/* Shared client-workspace theme; the public homepage has no .shell. */
body .shell .ticket-layout .table-sort-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; min-height: 28px; background: transparent; border: 0; color: #66758d; box-shadow: none; font: inherit; text-align: left; }
body .shell .ticket-layout .table-sort-btn .sort-state { display: inline-grid; place-items: center; width: 18px; height: 22px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #526cff; font-size: 16px; font-weight: 500; box-shadow: none; }
body .shell .ticket-layout .table-sort-btn:hover { background: transparent; color: #344ee0; box-shadow: none; transform: none; }
body #marketing-menu-actions .marketing-language { border: 1px solid #e2e8f1; border-radius: 6px; background: #f4f6fa; }
body #marketing-menu-actions .marketing-language .lang-btn,
body #marketing-menu-actions .marketing-language .lang-btn:hover { border: 0; border-radius: 4px; box-shadow: none !important; transform: none !important; background: transparent; color: #66758d; }
body #marketing-menu-actions .marketing-language .lang-btn:hover { background: #e8edf6; color: #071b3a; }
body #marketing-menu-actions .marketing-language .lang-btn.active,
body #marketing-menu-actions .marketing-language .lang-btn.active:hover { background: #fff; color: #415bd1; }
body .marketing-site .marketing-language { display: inline-grid; grid-template-columns: repeat(2, 36px); gap: 0; padding: 3px; border: 1px solid #e2e8f1; border-radius: 6px; background: #f3f5fa; height: 36px; box-sizing: border-box; flex-shrink: 0; }
body .marketing-site .marketing-language .lang-btn,
body .shell .hero .lang-switch .lang-btn { width: 36px; min-width: 36px; height: 28px; min-height: 28px; display: grid; place-items: center; padding: 0; margin: 0; border: 0; border-radius: 4px; background: transparent; color: #66758d; font-size: 11px; font-weight: 600; box-shadow: none !important; transform: none !important; transition: background-color .15s ease, color .15s ease; }
body .marketing-site .marketing-language .lang-btn:hover,
body .shell .hero .lang-switch .lang-btn:hover { background: #e8edf8; color: #344ee0; box-shadow: none !important; transform: none !important; }
body .marketing-site .marketing-language .lang-btn.active,
body .shell .hero .lang-switch .lang-btn.active { background: #fff; color: #415bd1; box-shadow: none !important; }
body .marketing-site .marketing-language .lang-btn:focus-visible,
body .shell .hero .lang-switch .lang-btn:focus-visible { outline: 2px solid #526cff; outline-offset: 1px; }
body .shell #close-create-modal::before, body .shell #close-create-modal::after { display: none; content: none; }
body .shell .ticket-layout .detail-panel .shipment-detail-clean-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
body .shell .ticket-layout .detail-panel .shipment-clean-card { min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
body .shell .ticket-layout .detail-panel .shipment-detail-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
body .shell .ticket-layout .detail-panel .shipment-clean-card > .kpi-label { display: block; margin-bottom: 10px; font-size: 10px; color: #75829a; font-weight: 500; }
body .shell .ticket-layout .detail-panel .shipment-product-list { display: grid; gap: 6px; }
body .shell .ticket-layout .detail-panel .shipment-product-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; background: #f3f6fc; border-radius: 6px; font-size: 12px; }
body .shell .ticket-layout .detail-panel .shipment-product-index { background: #e7edfb; color: #53637d; font-size: 10px; border-radius: 4px; width: 22px; height: 22px; }
body .shell .ticket-layout .detail-panel .shipment-problem-line { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e8edf5; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
body .shell .ticket-layout .detail-panel .shipment-problem-line span { font-size: 11px; color: #75829a; }
body .shell .ticket-layout .detail-panel .shipment-recipient-card { border-top: 1px solid #e8edf5; padding-top: 16px; }
body .shell .ticket-layout .detail-panel .shipment-recipient-card > strong { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #071b3a; }
body .shell .ticket-layout .detail-panel .shipment-recipient-card p { margin: 4px 0; font-size: 12px; line-height: 1.65; color: #53637d; overflow-wrap: anywhere; }
body .shell .ticket-layout .detail-panel .shipment-detail-title .badge { border: 0; border-radius: 4px; font-size: 10px; padding: 5px 8px; box-shadow: none; }
body .shell .hub-notice { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; align-items: center; gap: 16px; width: max-content; max-width: min(400px, calc(100vw - 32px)); padding: 12px 14px 12px 18px; border: 1px solid #dce3ee; border-left: 3px solid #526cff; border-radius: 8px; background: #fff; color: #34455e; box-shadow: 0 6px 24px #071b3a14; font-size: 13px; line-height: 1.5; }
body .shell .hub-notice button { flex: 0 0 28px; width: 28px; height: 28px; min-height: 28px; padding: 0; background: transparent; border: 0; box-shadow: none; color: #75829a; font-size: 20px; }
body .shell #create-modal-backdrop { background: rgba(7,27,58,.4); backdrop-filter: blur(3px); padding: 24px; }
body .shell #create-modal-backdrop .modal-card { width: min(740px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 28px; background: #fff; border: 1px solid #e2e8f1; border-radius: 10px; box-shadow: 0 24px 64px #071b3a30; }
body .shell #create-modal-backdrop .section-head { align-items: center; padding: 0 0 20px; margin: 0 0 22px; border-bottom: 1px solid #e8edf5; }
body .shell #create-ticket-title { color: #071b3a; font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: 0; }
body .shell #close-create-modal { width: 34px; height: 34px; min-height: 34px; padding: 0; border: 1px solid #e2e8f1; border-radius: 6px; background: #f8faff; color: #66758d; font-size: 24px; box-shadow: none; }
body .shell #create-form { gap: 18px 16px; }
body .shell #create-form label { color: #53637d; font-size: 12px; font-weight: 500; line-height: 1.5; }
body .shell #create-form input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]),
body .shell #create-form select { height: 42px; min-height: 42px; margin-top: 7px; padding: 0 12px; background: #fff; border: 1px solid #dce3ee; border-radius: 6px; font-size: 13px; font-weight: 400; color: #071b3a; box-shadow: none; }
body .shell #create-form textarea { min-height: 104px; margin-top: 7px; padding: 12px; background: #fff; border: 1px solid #dce3ee; border-radius: 6px; font-size: 13px; font-weight: 400; line-height: 1.6; box-shadow: none; }
body .shell #create-form input::placeholder, body .shell #create-form textarea::placeholder { font-weight: 400; color: #98a3b5; }
body .shell #create-form input[type="checkbox"] { accent-color: #526cff; width: 16px; height: 16px; }
body .shell #create-form label:has(input[type="checkbox"]) { background: #f8faff; border: 1px solid #e2e8f1; border-radius: 6px; }
body .shell #create-form .create-attachment-drop { display: block; margin-top: 7px; padding: 16px; border: 1px dashed #cdd7e9; background: #fbfcff; border-radius: 6px; box-shadow: none; }
body .shell #create-form .create-attachment-drop small { font-size: 11px; font-weight: 400; line-height: 1.5; color: #75829a; }
body .shell #create-form button[type="submit"] { min-height: 44px; margin-top: 4px; padding: 12px 20px; background: #071b3a; border: 1px solid #071b3a; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 600; box-shadow: none; }
body .shell #create-form button[type="submit"]:hover { background: #17345e; }
body .shell #create-form button[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
body .shell #create-form .sku-line-btn { background: #edf1ff; color: #344ee0; border: 1px solid #dce3ff; border-radius: 6px; box-shadow: none; }
@media (max-width: 600px) {
  body .shell #create-modal-backdrop { padding: 12px; }
  body .shell #create-modal-backdrop .modal-card { padding: 20px; max-height: calc(100dvh - 24px); }
  body .shell #create-form { grid-template-columns: 1fr; gap: 14px; }
  body .shell .hub-notice { right: 16px; bottom: 16px; }
}
body .shell .ticket-layout .ticket-detail-slot .detail-panel { padding: 22px; border: 1px solid #e2e8f1; border-radius: 8px; background: #fff; box-shadow: 0 3px 12px #071b3a04; }
body .shell .ticket-layout .ticket-detail-slot .detail-panel.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 260px; padding: 36px; text-align: center; color: #75829a; font-size: 13px; line-height: 1.65; border-style: solid; background: #fff; }
body .shell .ticket-layout .detail-panel.empty-state::before { content: ""; width: 44px; height: 44px; background: #f0f3ff url('/assets/ticket-plus.svg') center / 24px no-repeat; border-radius: 8px; opacity: .7; }
body .shell .ticket-layout .detail-panel .detail-panel-head h2 { margin-top: 7px; font-size: 20px; font-weight: 650; }
body .shell .ticket-layout .detail-panel .eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0; color: #75829a; }
body .shell .ticket-layout .detail-summary { gap: 16px 20px; padding: 16px 0; background: transparent; }
body .shell .ticket-layout .detail-summary > div { padding: 0; border: 0; }
body .shell .ticket-layout .detail-summary .kpi-label { font-size: 10px; font-weight: 500; color: #7b879b; margin-bottom: 6px; }
body .shell .ticket-layout .detail-summary > div > div { font-size: 12px; line-height: 1.5; color: #34455e; overflow-wrap: anywhere; }
body .shell .ticket-layout .detail-section { margin-top: 20px; }
body .shell .ticket-layout .detail-panel label { font-size: 12px; font-weight: 500; color: #53637d; }
body .shell .ticket-layout .detail-panel #detail-status { height: 40px; margin-top: 8px; padding: 0 10px; font-size: 12px; font-weight: 500; background: #f8faff; border-color: #dce3ee; }
body .shell .ticket-layout .detail-panel .message { padding: 14px 16px; background: #f7f9fd; border: 1px solid #e8edf5; border-radius: 6px; box-shadow: none; font-size: 13px; line-height: 1.65; color: #34455e; }
body .shell .ticket-layout .detail-panel .message strong { font-size: 12px; font-weight: 650; color: #071b3a; }
body .shell .ticket-layout .detail-panel .message small { font-size: 10px; color: #7b879b; }
body .shell .ticket-layout .detail-panel #new-message { margin-top: 8px; min-height: 104px; font-size: 13px; font-weight: 400; padding: 12px; line-height: 1.6; }
body .shell .ticket-layout .mention-help { font-size: 10px; line-height: 1.5; color: #7b879b; margin-top: 8px; }
body .shell .ticket-layout .detail-panel .attachment-dropzone { margin-top: 14px; padding: 14px 16px; border: 1px dashed #cdd7e9; border-radius: 6px; background: #fbfcff; }
body .shell .ticket-layout .attachment-drop-main { font-size: 12px; font-weight: 600; color: #344ee0; }
body .shell .ticket-layout .attachment-drop-sub { margin-top: 5px; font-size: 11px; line-height: 1.5; color: #75829a; }
body .shell .ticket-layout .attachment-dropzone small { font-size: 10px; color: #8a95a7; }
body .shell .ticket-layout .detail-panel #update-ticket { background: #071b3a; border: 1px solid #071b3a; color: #fff; border-radius: 6px; min-height: 44px; font-size: 12px; font-weight: 600; box-shadow: none; }
body .shell .ticket-layout .detail-panel #update-ticket:hover { background: #17345e; }
body .shell .ticket-layout .detail-panel #update-ticket:disabled { opacity: .5; cursor: not-allowed; }
body .shell .ticket-layout .request-table .badge { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; min-height: 26px; padding: 5px 8px; border: 0; border-radius: 4px; font-size: 10px; font-weight: 600; line-height: 1.3; box-shadow: none; background: #f0f3f8; color: #53637d; }
body .shell .ticket-layout .request-table .badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 5px; }
body .shell .ticket-layout .request-table .status-action { background: #fff1f3; color: #b7354b; }
body .shell .ticket-layout .request-table .status-reply-cmp { background: #edf1ff; color: #415bd1; }
body .shell .ticket-layout .request-table .status-reply-agent { background: #eef2f6; color: #53637d; }
body .shell .ticket-layout .request-table .status-closed,
body .shell .ticket-layout .request-table .status-processed,
body .shell .ticket-layout .request-table .status-tracking-updated { background: #eaf7f1; color: #28795b; }
body .shell .ticket-layout .request-table .status-hold,
body .shell .ticket-layout .request-table .status-tracking-waiting { background: #fff6e7; color: #956917; }
body .shell .ticket-layout .request-table .brand-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 22px; padding: 3px 6px; border-radius: 4px; border: 1px solid #e0e6f0; background: #f3f5f9; color: #53637d; font-size: 10px; font-weight: 600; box-shadow: none; }
body .shell .ticket-layout .request-table .brand-lcl { background: #edf1ff; border-color: #dee5ff; color: #415bd1; }
body .shell .ticket-layout div.table-type-switch {
  display: flex; gap: 20px; padding: 0; border: 0; border-bottom: 1px solid #e2e8f1;
  border-radius: 0; background: transparent; box-shadow: none; width: 100%;
}
body .shell .ticket-layout .table-type-switch .table-type-btn {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 2px;
  margin: 0 0 -1px; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: transparent; box-shadow: none; color: #66758d; font-size: 13px; font-weight: 500;
}
body .shell .ticket-layout .table-type-switch .table-type-btn.active { color: #344ee0; border-bottom-color: #526cff; background: transparent; box-shadow: none; font-weight: 650; }
body .shell .ticket-layout .table-type-switch .table-alert-badge { background: #edf1f8; color: #66758d; border: 0; border-radius: 4px; min-width: 22px; height: 20px; padding: 2px 5px; font-size: 11px; box-shadow: none; }
body .shell .ticket-layout .table-type-btn.active .table-alert-badge { background: #e9eeff; color: #344ee0; }
body .shell .ticket-layout .table-title-actions .mention-filter-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; min-height: 34px; padding: 7px 10px; border: 1px solid #dce3ee; border-radius: 6px; background: #fff; color: #53637d; font-size: 12px; font-weight: 500; box-shadow: none; }
body .shell .ticket-layout .mention-filter-btn::before,
body .shell .ticket-layout .mention-filter-btn::after,
body .shell .ticket-layout .mention-filter-btn > span::before { display: none; }
body .shell .ticket-layout .mention-filter-btn .ticket-filter-icon { display: block; width: 16px; height: 16px; opacity: .65; }
body .shell .ticket-layout .table-title-actions .mention-filter-btn.active { color: #344ee0; background: #edf1ff; border-color: #b8c5ff; }
body .shell .ticket-layout .table-title-actions .urgent-filter-btn.active { color: #b73545; background: #fff1f3; border-color: #edb9c2; }
body .shell .ticket-layout .table-title-actions .mention-filter-btn:disabled { opacity: .48; cursor: not-allowed; }
body .shell .ticket-layout .mention-filter-btn strong { border-radius: 4px; padding: 1px 4px; font-size: 10px; background: #edf1f8; color: inherit; }
body .shell .ticket-layout { gap: 20px; align-items: start; }
body .shell .ticket-layout > div { min-width: 0; }
body .shell .ticket-layout .table-block-head { padding: 16px 0 14px; margin: 0; }
body .shell .ticket-layout .table-title-row { margin-bottom: 14px; align-items: center; }
body .shell .ticket-layout .table-title-row h3 { margin: 0; font-size: 16px; }
body .shell .ticket-layout .table-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #f7f9fd;
  border: 1px solid #e5eaf3;
  border-radius: 8px;
  align-items: stretch;
}
body .shell .ticket-layout .table-filters .table-search-input { grid-column: span 2; width: 100%; min-width: 0; height: 40px; margin: 0; padding: 0 12px; font-size: 13px; font-weight: 400; background: #fff; border: 1px solid #dce3ee; border-radius: 6px; }
body .shell .ticket-layout .table-view-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; min-width: 0; width: 100%; height: 40px; padding: 3px; border: 1px solid #dce3ee; border-radius: 6px; background: #edf1f8; }
body .shell .ticket-layout .table-view-filter .view-btn { min-width: 0; min-height: 0; height: 32px; padding: 0 6px; border: 0; border-radius: 4px; font-size: 12px; color: #66758d; background: transparent; box-shadow: none; white-space: nowrap; }
body .shell .ticket-layout .table-view-filter .view-btn.active { background: #fff; color: #344ee0; font-weight: 650; box-shadow: 0 1px 3px #071b3a12; }
body .shell .ticket-layout .table-filters .status-multi-filter { position: relative; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
body .shell .ticket-layout .table-filters .status-multi-filter summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 40px; min-height: 40px; padding: 0 12px; border: 1px solid #dce3ee; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 500; color: #34455e; list-style: none; box-shadow: none; }
body .shell .ticket-layout .table-filters summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .shell .ticket-layout .table-filters details[open] summary { border-color: #526cff; box-shadow: 0 0 0 2px #526cff12; }
body .shell .ticket-layout .table-filters .status-multi-menu { top: calc(100% + 6px); left: 0; right: auto; width: 100%; min-width: 100%; max-width: min(340px, calc(100vw - 48px)); max-height: 280px; overflow-y: auto; padding: 6px; border: 1px solid #dce3ee; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px #071b3a16; z-index: 40; }
body .shell .ticket-layout .table-filters .status-multi-option { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px; margin: 0; font-size: 12px; font-weight: 400; color: #34455e; border-radius: 4px; }
body .shell .ticket-layout .table-filters .status-multi-option:hover { background: #f1f4ff; }
body .shell .ticket-layout .table-filters .status-multi-option::before,
body .shell .ticket-layout .table-filters .status-multi-option::after { display: none; }
body .shell .ticket-layout .table-filters .status-multi-option input[type="checkbox"] { position: static; appearance: auto; opacity: 1; width: 16px; height: 16px; min-width: 16px; margin: 0; padding: 0; clip-path: none; accent-color: #526cff; }
body .shell .ticket-layout .table-type-switch { padding: 3px; gap: 3px; border-radius: 6px; }
body .shell .ticket-layout .table-type-btn { min-height: 34px; padding: 7px 12px; font-size: 12px; }
body .shell .ticket-layout .table-title-actions button { min-height: 34px; padding: 6px 10px; border-radius: 6px; box-shadow: none; font-size: 11px; }
body .shell .ticket-layout .request-table th { font-size: 10px; padding: 12px 10px; line-height: 1.4; text-transform: none; color: #66758d; }
body .shell .ticket-layout .request-table td { padding: 12px 10px; font-size: 12px; line-height: 1.45; vertical-align: middle; }
body .shell .ticket-layout .request-table tbody tr:nth-child(even) { background: #fafbfe; }
body .shell .ticket-layout .request-table tbody tr.selected { background: #edf1ff; }
body .shell .ticket-layout .detail-panel { padding: 20px; border-top: 2px solid #526cff; }
body .shell .ticket-layout .detail-panel.empty-state { min-height: 220px; background: #f8faff; border: 1px dashed #d7dfef; color: #75829a; font-size: 13px; line-height: 1.6; }
body .shell:has(.ticket-layout) .split-kpi { padding: 8px; }
body .shell:has(.ticket-layout) .create-ticket-cta { min-height: 44px; font-size: 12px; padding: 8px 14px; }
body .shell:has(.ticket-layout) .create-action-icon { width: 28px; height: 28px; flex-basis: 28px; }
@media (max-width: 700px) {
  body .shell .ticket-layout .table-filters { grid-template-columns: 1fr; padding: 10px; }
  body .shell .ticket-layout .table-filters .table-search-input { grid-column: auto; }
  body .shell .ticket-layout .table-filters .status-multi-filter summary { height: 44px; }
}
body .shell .marketplace-table-wrap table { font-family: Inter, Arial, sans-serif; }
body .shell .marketplace-table-wrap tbody td { font-size: 13px; color: #34455e; }
body .shell .marketplace-table-wrap tbody td:nth-child(2) { font-weight: 700; color: var(--ink); }
body .shell .marketplace-table-wrap tbody tr:nth-child(even) { background: #f9faff; }
body .shell .marketplace-table-wrap tbody tr:hover { background: #eef2ff; }
body .shell .marketplace-table-wrap .response-pill { background: #edf1ff !important; color: #344ee0 !important; box-shadow: none !important; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; min-width: 68px; padding: 5px 8px; border-radius: 4px; }
.volume-share { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; }
.volume-track { display: block; width: 76px; height: 4px; background: #e7ecf7; border-radius: 2px; overflow: hidden; }
.volume-track i { display: block; height: 100%; background: #526cff; border-radius: 2px; }
body .shell #weekly-line { background: #fff; border: 1px solid #e5eaf3; border-radius: 6px; }
body .shell #weekly-line svg text { font-family: Inter, Arial, sans-serif; }
body .shell #weekly-line svg circle { stroke: #fff; stroke-width: 2px; }
body .shell .marketplace-table-wrap { overflow-x: auto; border-radius: 6px; padding: 0; }
body .shell .marketplace-table-wrap table { min-width: 760px; width: 100%; table-layout: fixed; font-size: 12px; }
body .shell .marketplace-table-wrap th, body .shell .marketplace-table-wrap td { padding: 8px 12px; text-align: center; line-height: 1.35; vertical-align: middle; overflow-wrap: normal; word-break: normal; }
body .shell .marketplace-table-wrap th { font-family: Inter, Arial, sans-serif; font-size: 11px; text-transform: none; letter-spacing: 0; font-weight: 600; height: 44px; color: var(--muted); }
body .shell .marketplace-table-wrap td { height: 46px; font-variant-numeric: tabular-nums; }
body .shell .marketplace-table-wrap th:nth-child(1), body .shell .marketplace-table-wrap td:nth-child(1) { width: 14%; }
body .shell .marketplace-table-wrap th:nth-child(2), body .shell .marketplace-table-wrap td:nth-child(2) { width: 10%; text-align: center; }
body .shell .marketplace-table-wrap th:nth-child(3), body .shell .marketplace-table-wrap td:nth-child(3) { width: 12%; text-align: center; }
body .shell .marketplace-table-wrap th:nth-child(4), body .shell .marketplace-table-wrap td:nth-child(4) { width: 15%; text-align: center; }
body .shell .marketplace-table-wrap th:nth-child(5), body .shell .marketplace-table-wrap td:nth-child(5) { width: 14%; }
body .shell .marketplace-table-wrap th:nth-child(6), body .shell .marketplace-table-wrap td:nth-child(6), body .shell .marketplace-table-wrap th:nth-child(7), body .shell .marketplace-table-wrap td:nth-child(7) { width: 17.5%; text-align: center; }
body .shell .marketplace-table-wrap .dashboard-marketplace-badge { padding: 0; }
body .shell .marketplace-table-wrap .dashboard-marketplace-badge img { height: 28px; }
body .shell .dashboard-marketplace-badge > span,
body .shell .marketplace-badge > span { display: none; }
body .shell .dashboard-marketplace-badge:has(img[src*="default.svg"]) > span,
body .shell .marketplace-badge:has(img[src*="default.svg"]) > span { display: inline; }
body .shell .marketplace-badge { background: transparent; border: 0; box-shadow: none; padding: 3px 0; min-width: 0; }
body .shell .marketplace-badge img.marketplace-logo,
body .shell .dashboard-marketplace-badge img.marketplace-logo { width: 88px; min-width: 88px; height: 34px; padding: 2px; border: 0; box-shadow: none; object-fit: contain; }
body .shell .dashboard-marketplace-badge { display: inline-flex; align-items: center; gap: 12px; border: 0; background: transparent; box-shadow: none; padding: 4px 0; border-radius: 0; }
body .shell .dashboard-marketplace-badge .marketplace-logo { width: 76px; height: 30px; min-width: 76px; object-fit: contain; background: #fff; border: 0; box-shadow: none; padding: 3px; border-radius: 3px; }
body .shell .dashboard-marketplace-badge > span { font-size: 11px; font-weight: 500; color: var(--muted); }
body .shell #kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 12px 0; }
body .shell #kpi-grid .kpi-card { display: flex; flex-direction: column; justify-content: flex-start; min-height: 100px; padding: 4px 22px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
body .shell #kpi-grid .kpi-card:first-child { background: transparent; padding-left: 0; }
body .shell #kpi-grid .kpi-card:last-child { border-right: 0; }
body .shell #kpi-grid .kpi-label { font-family: Inter, Arial, sans-serif; font-size: 12px; font-weight: 500; line-height: 1.5; min-height: 36px; text-transform: none; letter-spacing: 0; margin-bottom: 12px; color: var(--muted); }
body .shell #kpi-grid .kpi-value { font-family: inherit; font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: 0; margin: 0; color: var(--ink); }
body .shell #kpi-grid .kpi-card:first-child .kpi-value { color: var(--brand-strong); }
body .shell #kpi-grid .kpi-card:nth-child(2) .kpi-value { color: #168064; }
@media (min-width: 701px) and (max-width: 1100px) {
  body .shell #kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 0; }
  body .shell #kpi-grid .kpi-card:nth-child(3n) { border-right: 0; }
}
body .shell #kpi-grid .kpi-sub { font-size: 11px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
body .shell #section-summary-title { font-size: 20px; font-weight: 650; letter-spacing: 0; margin: 0 0 18px; color: var(--ink); }
body .shell .marketplace-badge .marketplace-logo { width: 48px; height: 24px; object-fit: contain; padding: 3px; border-radius: 3px; background: #fff; box-shadow: none; flex-shrink: 0; }
body .shell .platform-title .marketplace-logo { width: 80px; height: 34px; object-fit: contain; background: #fff; padding: 4px; border-radius: 4px; }
@media (max-width: 700px) {
  body .shell #kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body .shell #kpi-grid .kpi-card { padding: 16px; min-height: 116px; }
  body .shell #kpi-grid .kpi-card:first-child { padding-left: 16px; }
  body .shell #kpi-grid .kpi-card:nth-child(2n) { border-right: 0; }
  body .shell #kpi-grid .kpi-value { font-size: 26px; }
}
body .shell .hero .theme-toggle { display: none; }
body .shell .hero .lang-switch {
  display: inline-grid;
  grid-template-columns: 36px 36px;
  width: 80px;
  min-width: 80px;
  height: 36px;
  padding: 3px;
  gap: 0;
  border-radius: 6px;
  box-sizing: border-box;
}
body .shell .hero .lang-switch .lang-btn {
  display: grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
}
body .shell .hero { overflow: visible; z-index: 30; }
body .shell .portal-nav { flex-wrap: wrap; align-items: center; }
.hub-add-services { position: relative; color: var(--muted); font-size: 12px; }
.hub-add-services summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 6px; white-space: nowrap; }
.hub-add-services summary::-webkit-details-marker { display: none; }
.hub-add-services summary > span { font-size: 18px; line-height: 1; }
.hub-add-services[open] summary { color: var(--brand-strong); background: var(--bg); }
.hub-services-menu { position: absolute; top: calc(100% + 8px); left: 0; width: 244px; max-width: calc(100vw - 48px); padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px #071b3a16; z-index: 50; }
.hub-services-menu strong { display: block; padding: 8px; font-size: 11px; color: var(--muted); font-weight: 500; }
.hub-services-menu a { display: flex; justify-content: space-between; padding: 12px 8px; color: var(--ink); text-decoration: none; border-radius: 4px; }
.hub-services-menu a:hover { background: var(--bg); }
body:has(.shell) {
  --bg: #f5f7fb;
  --panel: #fff;
  --ink: #071b3a;
  --muted: #66758d;
  --line: #e2e8f1;
  --brand: #526cff;
  --brand-strong: #344ee0;
  --accent: #526cff;
  background: var(--bg);
  color: var(--ink);
}
body .shell { max-width: 1880px; padding: 20px 24px 32px; }
body .shell .hero {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 20px;
  min-height: 76px;
  box-shadow: 0 2px 8px #071b3a04;
}
body .shell .hero::after { display: none; }
body .shell .hero-top { min-height: 46px; gap: 24px; grid-template-columns: minmax(0, 1fr) auto auto; }
body .shell .hero-copy { display: flex; align-items: center; gap: 28px; }
body .shell .hero-copy h1 {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-size: 20px !important;
  font-weight: 750;
  -webkit-text-fill-color: var(--ink);
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: 0;
}
body .shell .hero-copy h1::before {
  content: "";
  display: block;
  flex: 0 0 30px;
  height: 32px;
  background: url('./blueprynt-logo.png') -16px -21px / 220px auto no-repeat;
}
body .shell .portal-nav { padding: 0; gap: 6px; border: 0; background: transparent; box-shadow: none; }
body .shell .portal-tab { padding: 9px 16px; border-radius: 6px; color: var(--muted); font-weight: 600; background: transparent; border: 1px solid transparent; box-shadow: none; }
body .shell .portal-tab.active { color: var(--brand-strong); background: #edf1ff; border-color: #dce3ff; box-shadow: none; }
body .shell .hero-meta { display: flex; align-items: center; gap: 16px; min-width: 0; }
body .shell .meta-card { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; min-height: 0; }
body .shell .meta-card .label { display: none; }
body .shell .theme-lang-stack { display: flex; align-items: center; gap: 8px; }
body .shell .theme-toggle { min-width: 68px; min-height: 34px; font-size: 11px; }
body .shell .lang-switch { min-height: 34px; }
body .shell .meta-card .value { color: var(--ink); font-weight: 600; }
body .shell .theme-toggle,
body .shell .lang-switch { color: var(--muted); background: var(--bg); border: 1px solid var(--line); box-shadow: none; }
body .shell .lang-btn { color: var(--muted); }
body .shell .lang-btn.active { background: var(--panel); color: var(--brand-strong); box-shadow: 0 1px 3px #071b3a12; }
body .shell .session-btn { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; box-shadow: none; min-height: 34px; padding: 6px 12px; font-size: 11px; }
body .shell .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; }
body .shell .panel.section { padding: 20px; }
body .shell .table-card-block { background: transparent; border: 0; box-shadow: none; padding: 0; }
body .shell .kpi-card { background: transparent; border-radius: 0; box-shadow: none; }
body .shell .split-kpi { padding: 8px 12px; min-height: 0; }
body .shell .kpi-grid { gap: 16px; }
body .shell .portal-nav .hub-clients-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}
body .shell .portal-nav .hub-clients-link:hover { background: var(--bg); border-color: #adb9d1; }
body .client-directory { background: var(--bg); color: var(--ink); padding: 0 28px 48px; }
body .client-directory-header { max-width: 1440px; margin: auto; padding: 18px 0; background: transparent; border-bottom: 1px solid var(--line); }
body .client-directory-header img { width: 152px; height: 42px; }
body .client-directory-account { gap: 12px; font-size: 12px; font-weight: 600; }
body .client-directory-account button { min-height: 34px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); box-shadow: none; font-size: 12px; }
body .client-directory-account button:hover:not(:disabled) { background: var(--bg); color: var(--ink); border-color: var(--line); box-shadow: none; transform: none; filter: none; }
body .client-directory-account .lang-switch { display: inline-grid; grid-template-columns: 36px 36px; width: 80px; min-width: 80px; height: 36px; min-height: 36px; padding: 3px; gap: 0; border: 1px solid var(--line); border-radius: 6px; box-sizing: border-box; background: var(--bg); box-shadow: none; }
body .client-directory-account .lang-switch .lang-btn { display: grid; place-items: center; width: 36px; min-width: 36px; height: 28px; min-height: 28px; margin: 0; padding: 0; border: 0; border-radius: 4px; font-size: 11px; font-weight: 600; background: transparent; color: var(--muted); box-shadow: none; transform: none; transition: background-color .15s ease, color .15s ease; }
body .client-directory-account .lang-switch .lang-btn:hover { background: #e8edf8; color: #344ee0; }
body .client-directory-account .lang-switch .lang-btn.active { background: var(--panel); color: var(--brand-strong); }
body .client-directory-account button:focus-visible { outline: 2px solid #526cff; outline-offset: 2px; }
body .client-directory-content { max-width: 1440px; padding: 36px 0; }
body .client-directory-title { margin-bottom: 26px; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
body .client-directory-title h1 { font-size: 24px; font-weight: 700; line-height: 1.3; }
body .client-directory-title > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
body .client-directory-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
body .client-directory-item { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 240px; max-width: none; padding: 24px 24px 0; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; box-shadow: 0 2px 5px #071b3a04; transition: border-color .15s, box-shadow .15s; }
body .client-directory-item:hover { border-color: #9cafe0; box-shadow: 0 6px 20px #071b3a0a; }
body .client-directory-item:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 4px; }
.client-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
body .client-monogram { width: 56px; height: 56px; background: #edf1ff; border: 1px solid #dce3ff; color: #425cba; font-size: 16px; letter-spacing: 0; }
.client-status { display: inline-flex; align-items: center; gap: 6px; color: #31765f; font-size: 11px; font-weight: 600; }
.client-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #399878; }
.client-card-name { padding: 22px 0 24px; }
body .client-directory-item strong { font-size: 21px; line-height: 1.3; }
body .client-directory-item small { font-size: 13px; color: var(--muted); margin-top: 5px; }
.client-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; min-height: 54px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; }
body .client-open { font-size: 20px; color: var(--muted); }
@media (max-width: 600px) {
  body .client-directory { padding: 0 20px 24px; }
  body .client-directory-header { gap: 16px; }
  body .client-directory-account { width: 100%; }
  body .client-directory-account > span { flex: 1; width: auto; }
  body .client-directory-content { padding-top: 28px; }
  body .client-directory-title h1 { font-size: 22px; }
}
body .shell .portal-nav .hub-clients-link:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 3px; }
@media (min-width: 1024px) {
  body .shell .kpi-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(200px, .7fr); align-items: center; }
  body .shell .kpi-card { border-bottom: 0; }
  body .shell .create-action-stack { grid-column: auto; }
}
body .shell .metric-card { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; box-shadow: none; padding: 12px 16px; }
body .shell .metric-card strong { color: var(--ink); font-size: 26px; font-weight: 700; }
body .shell .kpi-label,
body .shell .metric-card > span { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0; }
body .shell .create-ticket-cta { background: var(--brand); color: white; border: 1px solid var(--brand); border-radius: 6px; box-shadow: none; font-weight: 650; }
body .shell .create-ticket-cta.shipment-cta { background: #edf1ff; color: #344ee0; border-color: #dce3ff; }
body .shell .create-action-icon { background: #ffffff20; border-color: #ffffff30; }
body .shell .table-type-switch,
body .shell .table-view-filter { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; box-shadow: none; }
body .shell .table-type-btn { color: var(--muted); border-radius: 4px; font-weight: 600; }
body .shell .table-type-btn.active,
body .shell .table-view-filter button.active { color: white; background: var(--brand); box-shadow: none; border-radius: 4px; }
body .shell .table-block-head h3 { font-size: 16px; font-weight: 650; color: var(--ink); }
body .shell .table-filters input,
body .shell .table-filters select,
body .shell .table-filters summary { border-radius: 6px; border-color: var(--line); background: var(--panel); color: var(--ink); box-shadow: none; }
body .shell .request-table th { background: var(--bg); color: var(--muted); font-weight: 650; letter-spacing: 0; border-bottom: 1px solid var(--line); }
body .shell .request-table td { border-bottom-color: var(--line); }
body .shell .request-table tbody tr:hover { background: #f6f8ff; }
body .shell .request-table tbody tr.selected { background: #edf1ff; box-shadow: inset 3px 0 var(--brand); }
body .shell .detail-panel { border-top: 3px solid var(--brand); border-radius: 6px; background: var(--panel); box-shadow: none; }
body .shell .detail-panel h2 { font-size: 18px; font-weight: 700; color: var(--ink); }
body .shell .detail-panel input,
body .shell .detail-panel select,
body .shell .detail-panel textarea { border-radius: 6px; border-color: var(--line); background: var(--panel); color: var(--ink); }
body .shell .message { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; box-shadow: none; padding: 14px; }
body .shell .message small { color: var(--muted); }
body .shell .message-mentioned-me { border-left: 3px solid var(--brand); }
body .shell button:focus-visible,
body .shell a:focus-visible,
body .shell input:focus-visible,
body .shell textarea:focus-visible,
body .shell select:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
:root[data-theme="dark"] body:has(.shell) { --bg: #101725; --panel: #182235; --ink: #edf2ff; --muted: #a5b3cb; --line: #303e55; --brand: #7b90ff; --brand-strong: #acbaff; }
:root[data-theme="dark"] body .shell .hero-copy h1::before { background-color: #f8fbff; border-radius: 4px; }
:root[data-theme="dark"] body .shell .portal-tab.active,
:root[data-theme="dark"] body .shell .request-table tbody tr.selected,
:root[data-theme="dark"] body .shell .create-ticket-cta.shipment-cta { background: #28365a; color: #d2dcff; border-color: #3e5184; }
:root[data-theme="dark"] body .shell .request-table tbody tr:hover { background: #24314a; }
@media (max-width: 1100px) {
  body .shell { padding: 12px; }
  body .shell .hero-top { display: flex; flex-wrap: wrap; }
  body .shell .hero-copy { flex: 1 1 100%; justify-content: space-between; }
  body .shell .hero-meta { flex: 1; }
  body .shell .hero { padding: 18px; }
}
@media (max-width: 600px) {
  body .shell .hero-copy h1 { font-size: 15px; gap: 8px 16px; }
  body .shell .hero-copy { align-items: flex-start; flex-direction: column; gap: 14px; }
  body .shell .hero-meta { min-width: 0; grid-template-columns: 1fr; }
  body .shell .meta-card { padding: 8px; }
  body .shell .panel.section { padding: 12px; }
  body .shell .portal-tab { padding: 9px 12px; }
}

body .shell .ticket-layout thead th { vertical-align: middle; }
body .shell .ticket-layout .table-sort-btn { min-height: 0; height: auto; line-height: inherit; }
body .shell:has(.ticket-layout) .layout > .panel.section:first-child { padding-top: 0; padding-bottom: 0; }
body .shell:has(.ticket-layout) .layout > .panel.section:first-child .kpi-grid { padding-top: 14px; padding-bottom: 14px; }
body .marketing-site .marketplace-more { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: #eef2ff; border: 1px solid #cbd5ff; border-radius: 6px; box-shadow: none; color: #344ed1; padding: 13px 16px; font: inherit; font-size: 13px; font-weight: 650; white-space: nowrap; transition: background .15s, border-color .15s; }
body .marketing-site .marketplace-more:hover { background: #e1e8ff; border-color: #526cff; color: #243ebc; transform: none; }
body .marketing-site #open-marketplaces { width: auto; min-width: 0; max-width: 100%; white-space: normal; line-height: 1.4; padding: 12px 16px; min-height: 44px; font-size: 12px; }
body .marketing-site #open-marketplaces span { flex: 0 0 16px; }
body .marketing-site .logo-strip > div { grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(190px, 1.35fr); }
body .marketing-site #open-client-login,
body .marketing-site #open-client-login:hover,
body .marketing-site #open-client-login:active { transform: none; box-shadow: none; background: #071b3a; border: 1px solid #071b3a; color: #fff; border-radius: 6px; transition: background .15s, border-color .15s; }
body .marketing-site #open-client-login:hover { background: #203a60; border-color: #203a60; }
body .marketing-site #open-client-login span { transform: none; }
body .marketing-site #open-client-login:focus-visible,
body .marketing-site #open-marketplaces:focus-visible { outline: 2px solid #526cff; outline-offset: 3px; }
@media (max-width: 900px) { body .marketing-site .logo-strip > div { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { body .marketing-site #open-marketplaces { padding: 10px 6px; gap: 4px; } }
body #client-login { width: min(432px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 30px 34px 34px; border: 1px solid #e2e8f1; border-radius: 8px; background: #fff; box-shadow: 0 24px 80px #071b3a26; }
body #client-login::backdrop { background: #071b3a66; backdrop-filter: blur(4px); }
body #client-login .client-login-card { display: block; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body #client-login .login-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; padding-right: 18px; }
body #client-login .login-brand img { display: block; width: 150px; height: 50px; object-fit: contain; margin-left: -11px; }
body #client-login .login-brand span { padding-left: 12px; border-left: 1px solid #dce3ee; font-size: 9px; font-weight: 600; color: #7b899d; }
body #client-login h2 { font-size: 24px; line-height: 1.3; letter-spacing: 0; margin: 0 0 8px; color: #142641; }
body #client-login .client-login-card > p { font-size: 14px; line-height: 1.5; color: #66758d; margin: 0 0 28px; }
body #client-login .marketing-login-form { display: grid; gap: 18px; }
body #client-login label { display: grid; gap: 8px; color: #34455e; font-size: 12px; font-weight: 600; }
body #client-login input { height: 48px; width: 100%; border: 1px solid #dce3ee; border-radius: 6px; background: #f8faff; padding: 0 13px; color: #1d304b; font-size: 14px; font-weight: 400; box-shadow: none; transition: border-color .15s, background-color .15s; }
body #client-login input:autofill { box-shadow: inset 0 0 0 1000px #f8faff; -webkit-text-fill-color: #1d304b; caret-color: #1d304b; }
body #client-login input:-webkit-autofill { -webkit-box-shadow: inset 0 0 0 1000px #f8faff; -webkit-text-fill-color: #1d304b; }
body #client-login input:focus { outline: 2px solid #526cff30; outline-offset: 1px; border-color: #526cff; }
body #client-login input::placeholder { color: #96a0b2; font-weight: 400; }
body #client-login button[type="submit"] { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; margin-top: 6px; border: 1px solid #162e51; border-radius: 6px; background: #162e51; color: #fff; box-shadow: 0 3px 7px #162e510d; font-size: 14px; font-weight: 600; transition: background-color .15s; }
body #client-login button[type="submit"]:hover:not(:disabled) { background: #233f67; transform: none; }
body #client-login button[type="submit"]:disabled { opacity: 1; background: #233f67; border-color: #233f67; color: #fff; cursor: progress; filter: none; }
body #client-login .login-spinner { display: block; width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid #ffffff45; border-top-color: #fff; border-radius: 50%; animation: login-pending .8s linear infinite; }
body #client-login .close-client-login,
body #client-login .close-client-login:hover:not(:disabled) { top: 12px; right: 12px; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #78869a; box-shadow: none; transform: none; -webkit-tap-highlight-color: transparent; }
body #client-login .close-client-login:hover:not(:disabled) { background: #f0f3f9; color: #233651; }
body #client-login .close-client-login > span { width: 19px; height: 19px; background: currentColor; mask: url('./close.svg') center / contain no-repeat; }
body #client-login .error-box { margin-top: 16px; padding: 12px; border: 1px solid #f0d4d9; border-radius: 6px; background: #fff6f7; color: #984050; font-size: 12px; line-height: 1.5; }
@keyframes login-pending { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { body #client-login .login-spinner { animation: none; } body #client-login input, body #client-login button { transition: none; } }
@media (max-width: 480px) {
  body #client-login { padding: 24px 22px; }
  body #client-login input { font-size: 16px; }
  body #client-login .login-brand { gap: 5px; margin-bottom: 18px; }
  body #client-login .login-brand img { width: 136px; height: 46px; }
  body #client-login .login-brand span { font-size: 8px; padding-left: 9px; }
}
body .marketplaces-dialog { width: min(820px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 28px; border: 1px solid #e2e8f1; border-radius: 8px; background: #fff; color: #071b3a; box-shadow: 0 24px 80px #071b3a26; }
body .marketplaces-dialog::backdrop { background: #071b3a66; backdrop-filter: blur(4px); }
body .marketplaces-dialog header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 24px; }
body .marketplaces-dialog header p { margin: 0 0 8px; color: #526cff; font-size: 11px; font-weight: 650; }
body .marketplaces-dialog h2 { margin: 0; font-size: 24px; line-height: 1.3; letter-spacing: 0; }
body .marketplaces-dialog .close-marketplaces { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; padding: 0; border: 1px solid #e2e8f1; background: #fff; border-radius: 4px; box-shadow: none; color: #53647e; font-size: 24px; }
body .marketplaces-directory { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid #e2e8f1; }
body .marketplaces-directory > div { display: grid; place-items: center; min-width: 0; height: 104px; padding: 20px 14px; border-bottom: 1px solid #e2e8f1; }
body .marketplaces-directory img { display: block; width: 100%; max-width: 124px; height: 46px; object-fit: contain; }
body .marketplaces-dialog footer { display: flex; align-items: center; gap: 10px; padding-top: 22px; color: #53647e; font-size: 13px; }
body .marketplaces-dialog footer span { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #526cff; }
@media (max-width: 600px) {
  body .marketplaces-dialog { padding: 20px; }
  body .marketplaces-dialog h2 { font-size: 20px; }
  body .marketplaces-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body .marketplaces-directory > div { height: 84px; padding: 12px 8px; }
}
/* Ticket overview matches the dashboard's unframed metric row. */
body .shell:has(.ticket-layout) .kpi-grid { gap: 24px; align-items: center; }
body .shell:has(.ticket-layout) .split-kpi { padding: 4px 0; border: 0; }
body .shell:has(.ticket-layout) .split-kpi > .kpi-label { margin-bottom: 10px; font-size: 12px; font-weight: 600; text-transform: none; }
body .shell:has(.ticket-layout) .metric-pair { gap: 0; }
body .shell:has(.ticket-layout) .general-metric-pair { grid-template-columns: 1fr; }
body .shell:has(.ticket-layout) .metric-card { min-height: 58px; padding: 0 18px; border: 0; border-left: 1px solid #e2e8f1; border-radius: 0; background: transparent; box-shadow: none; }
body .shell:has(.ticket-layout) .general-metric-pair .metric-card { border-left: 0; padding-left: 0; }
body .shell:has(.ticket-layout) .metric-card > span { font-size: 11px; font-weight: 500; text-transform: none; margin-bottom: 12px; line-height: 1.4; }
body .shell:has(.ticket-layout) .metric-card strong { font-size: 30px; line-height: 1.1; font-weight: 700; color: #071b3a; }
body .shell:has(.ticket-layout) .general-metric-pair .metric-card strong { color: #526cff; }
body .shell:has(.ticket-layout) .create-action-stack { gap: 10px; padding-left: 20px; border-left: 1px solid #e2e8f1; }
body .shell:has(.ticket-layout) .create-ticket-cta { display: flex; justify-content: flex-start; align-items: center; gap: 12px; min-height: 46px; padding: 11px 16px; border-radius: 6px; background: #071b3a; border: 1px solid #071b3a; color: #fff; font-size: 12px; font-weight: 600; box-shadow: none; }
body .shell:has(.ticket-layout) .create-ticket-cta::after { display: none; }
body .shell:has(.ticket-layout) .create-ticket-cta.shipment-cta { background: #fff; color: #071b3a; border-color: #dce3ee; }
body .shell:has(.ticket-layout) .create-ticket-cta:hover { background: #142d53; }
body .shell:has(.ticket-layout) .create-ticket-cta.shipment-cta:hover { background: #f1f4ff; border-color: #aebeff; }
body .shell:has(.ticket-layout) .create-action-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; padding: 0; margin: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body .shell:has(.ticket-layout) .create-action-icon img { width: 22px; height: 22px; filter: invert(1); }
body .shell:has(.ticket-layout) .shipment-cta .create-action-icon img { filter: none; }
@media (min-width: 1024px) {
  body .shell:has(.ticket-layout) .kpi-grid { grid-template-columns: minmax(140px, .65fr) minmax(360px, 1.6fr) minmax(240px, 1fr); }
}
@media (max-width: 1023px) {
  body .shell:has(.ticket-layout) .create-action-stack { padding-left: 0; border-left: 0; }
}
