/* Deep navy navigation, quiet neutral content. Existing typography is retained. */
:root{--green:#1a2f3b;--green-dark:#12232d;--ink:#203441;--muted:#75838d;--line:#e3e8eb;--bg:#f4f6f7;--light:#edf2f5;--white:#fff;--gold:#879bab}
body{background:var(--bg);color:var(--ink)}:focus-visible{outline-color:#7a9bb2}
.sidebar{background:#fff;border-right-color:#e1e7eb}.brand{color:#1b2d4c}.brand-symbol{background:#1a2f3b;border-radius:9px}.brand-dot{color:#879bab}.workspace-card{border-color:#e1e7eb;background:#f8fafb;box-shadow:none}.workspace-card strong{color:#253850}.workspace-card small{color:#747b85}.store-icon{color:#5d7588;background:#edf2f6}.nav-caption{color:#81919c}.sidebar nav{display:flex;flex-direction:column;gap:7px}.nav-item{color:#6c7481;transition:background .15s,color .15s}.nav-item:hover{background:#f0f4f6;color:#1a2f3b}.nav-item.active{color:#1a2f3b;background:#edf2f5;box-shadow:inset 3px 0 0 #879bab}.nav-arrow{color:#8597a5}.tag{background:#eff3f5;color:#617784}.sidebar-bottom p,.logout{color:#737c87}.topbar{background:#fff;border-bottom-color:#e1e7eb}.topbar strong{color:#33465f}.avatar{background:#edf2f6;color:#5c7487}.eyebrow{color:#758a9b}.page-heading h1{color:#1d2e49}.page-heading .muted{color:#717a88}
.button.primary,.button.dark{background:#1a2f3b;color:#fff;box-shadow:0 3px 8px #15233a0b}.button.primary:hover,.button.dark:hover{background:#12232d}.button.secondary{color:#33475f;border-color:#dce4e9;background:#fff}.button.secondary:hover{background:#f3f6f8;border-color:#8da2b2}.demo-banner{background:#edf2f5;border-color:#dfe7ec;color:#607585}.demo-banner strong{color:#2b405e}.info-icon{border-color:#93a6b4;color:#60788b}.demo-label{color:#748d9f}
.stat-card,.orders-panel,.activity-card{background:#fff;border-color:#e1e7eb;box-shadow:0 6px 20px #1d2d4304;border-radius:12px}.stat-card{border-top:2px solid #e1e7eb}.stat-label{color:#707c8d}.stat-label>span:not(.status-dot){color:#8ba0af}.stat-number,.stat-time{color:#1c2e4b}.stat-card p,.panel-heading p{color:#7d8188}.status-dot{background:#7b98aa}.count-badge{background:#edf2f5;color:#263b5c}.filters{background:#f7f9fa;border-color:#e1e7eb}input,select{color:#344761;border-color:#dedfdc}.field label{color:#65738a}.reset-link{color:#778b99}.orders-toolbar{color:#4b5e77}.selection-count{color:#526c80}.page-size-form select{border-color:#dce4e9;color:#31445f}
.orders-table th,.inquiries-table th{background:#f5f7f9;border-color:#e3e8ed;color:#6f808d}.orders-table td,.inquiries-table td{border-color:#edf0f2;color:#35455b}.orders-table .product-name,.orders-table .buyer-name{color:#2b3c56}.orders-table .order-id{color:#7e8791}.orders-table .order-option{background:#edf1f7;border-color:#cfd8e6;color:#263e64}.orders-table .order-payment-cell{color:#1a2f3b}.quantity-multiple{background:#edf1f7;border-color:#cfd8e6;color:#263e64}.order-status.status-payed{background:#edf1f6;color:#2a405f}.order-status.status-preparing{background:#eef3f7;color:#476c83}.order-checkbox{accent-color:#263c60}.orders-table tbody tr:hover{background:#fafcfd}.orders-table tbody tr.is-selected,.orders-table tbody tr.is-selected .order-link-cell{background:#eef2f7}.store-product-link{color:#475b79;border-color:#dce4e9;box-shadow:none}.store-product-link:hover{background:#edf3f7;border-color:#9aafbd;color:#233a5d}.store-product-link.is-disabled{color:#b8bfc8;background:#f5f7f8;border-color:#e7ecef}.orders-table th.order-link-cell{background:#f5f7f9}
/* The hidden hover label must not reserve width around the paid badge. */
.orders-table .prepare-button{display:inline-flex;align-items:center;justify-content:center;min-width:0;width:auto}
.orders-table .prepare-button .prepare-current{display:inline;opacity:1}.orders-table .prepare-button .prepare-target{display:none;opacity:1}
.orders-table .prepare-button:hover,.orders-table .prepare-button:focus-visible{background:#1a2f3b;color:white;border-color:#1a2f3b}
.orders-table .prepare-button:hover .prepare-current,.orders-table .prepare-button:focus-visible .prepare-current{display:none}
.orders-table .prepare-button:hover .prepare-target,.orders-table .prepare-button:focus-visible .prepare-target{display:inline}
.bulk-prepare-form .button:disabled{background:#f2f4f6;color:#9aa7b0;border-color:#e2e8ec}.table-footer{color:#7a828f}.pagination a{border-color:#dce4e9}.run-result,.run-row small,.quiet-empty{color:#7e8895}.schedule-copy{color:#7b8390}.schedule-copy strong{color:#2b405e}.schedule-meta{background:#f3f6f8;color:#6d8291}.schedule-meta strong{color:#465975}.helper{color:#7c8491}.page-footer,.page-footer>span{color:#8699a6}.bulk-result-details li{border-color:#dbd9d2}.login-story{background:#edf0f4}.login-story h1{color:#1a2f3b}.login-story p{color:#748095}.login-note{border-color:#e5e0d5;color:#7c8290}.story-footer{color:#8a9fab}.login-card h2{color:#1a2f3b}
.inquiries-table{min-width:900px;table-layout:fixed;font-size:14px}.inquiry-col-state{width:102px}.inquiry-col-time{width:180px}.inquiry-col-writer{width:112px}.inquiry-col-link{width:70px}.inquiries-table th{padding:14px 16px;font-size:12px;font-weight:500}.inquiries-table td{padding:18px 16px;vertical-align:top;line-height:1.6;white-space:normal}.inquiries-table td small{font-size:11px;overflow-wrap:anywhere}.inquiry-content>strong{font-size:14px;font-weight:500;color:#263c5c}.inquiry-question{font-size:14px;margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere;color:#48556a}.inquiry-answer{margin-top:12px;padding:10px 12px;background:#f3f6f8;border:1px solid #e1e7eb;border-radius:7px;font-size:13px}.inquiry-answer summary{cursor:pointer;color:#526c80}.inquiry-answer p{margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere;color:#505c70}.inquiry-unanswered{background:#e8eff4;color:#355a72}.inquiry-answered{background:#edf1f6;color:#425d7f}.inquiry-schedule{margin-top:20px;line-height:1.8}
.nav-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 22px;width:22px;height:24px}.nav-icon svg{display:block;width:22px;height:24px}.inquiry-reply-link{margin-top:12px}.inquiry-reply-link .button{min-height:32px;font-size:12px;padding:5px 12px}.reply-panel{max-width:1000px}.reply-panel .panel-heading{align-items:flex-start;gap:20px}.reply-panel .panel-heading h2{font-size:17px;font-weight:500;line-height:1.6}.reply-body{padding:0 24px 24px}.reply-question,.reply-existing{padding:18px 20px;background:#f7f9fa;border:1px solid #e1e7eb;border-radius:8px;margin-bottom:22px}.reply-existing{background:#f0f3f7}.reply-body h3{font-size:12px;color:#647f92;font-weight:600;margin:0 0 9px}.reply-question p,.reply-existing p{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.reply-label{display:block;font-size:14px;font-weight:500;margin-bottom:10px}.reply-body textarea{box-sizing:border-box;display:block;width:100%;resize:vertical;min-height:200px;font:inherit;font-size:14px;line-height:1.8;color:#30435e;background:white;border:1px solid #dce4e9;border-radius:8px;padding:15px 17px}.reply-body textarea::placeholder{color:#949aa1}.reply-body textarea:read-only{background:#f5f7f8}.reply-meta{display:flex;justify-content:space-between;gap:20px;font-size:12px;color:#7d8390;margin:10px 0 24px;line-height:1.7}.reply-actions{display:flex;justify-content:flex-end;gap:10px}.reply-body .alert{margin-bottom:20px}.reply-actions button:disabled{background:#d9dce2;color:#6d7685;cursor:default}
@media(max-width:760px){.reply-body{padding:0 14px 18px}.reply-meta{flex-direction:column;gap:3px}.reply-question,.reply-existing{padding:14px}.reply-actions .button{font-size:12px}}
@media(hover:none),(pointer:coarse){.orders-table .prepare-button .prepare-current{display:none}.orders-table .prepare-button .prepare-target{display:inline}}
.sidebar,.topbar{background:#1a2f3b;border-color:#2a414e}.sidebar .brand,.login-story .brand{color:#f5f8fa}.sidebar .brand-symbol,.login-story .brand-symbol{color:#1a2f3b;background:#f1f5f7}.sidebar .brand-dot,.login-story .brand-dot{color:#a6bccb}.sidebar .workspace-card{background:#223b49;border-color:#3a505c}.sidebar .workspace-card strong{color:#f1f6f9}.sidebar .workspace-card small{color:#b8c9d4}.sidebar .store-icon{color:#c5d8e3;background:#2e4857}.sidebar .nav-caption{color:#91a9ba;letter-spacing:1.6px}.sidebar .nav-item{color:#b9cbd6;border-radius:7px}.sidebar .nav-item:hover{background:#243e4d;color:white}.sidebar .nav-item.active{background:#2d4859;color:#fff;box-shadow:inset 2px 0 0 #b5cad8}.sidebar .nav-arrow{color:#8faaba}.sidebar-bottom .tag{background:#2a4352;color:#c1d2dd}.sidebar-bottom p,.sidebar .logout{color:#a7bdcb}.sidebar .logout:hover{color:#fff}.topbar{color:#a9becb}.topbar strong,.topbar .admin-badge{color:#f5f8fa}.topbar .slash{color:#688596}.topbar .avatar{background:#304c5e;color:#edf4f9}.stat-card,.orders-panel,.activity-card{border-radius:9px;box-shadow:none}.stat-card{border-top-width:1px}.button.primary,.button.dark{box-shadow:none}.login-story{background:#1a2f3b}.login-story h1{color:#f7fafc}.login-story p{color:#b9cbd6}.login-story .eyebrow,.login-story .story-footer{color:#97b1c3}.page-footer{border-color:#e1e7eb}
@media(max-width:760px){.sidebar{flex-wrap:wrap;gap:12px}.sidebar>.brand{order:1}.sidebar-bottom{order:2;margin-left:auto}.sidebar nav{display:flex;order:3;flex-direction:row;flex-basis:100%;width:100%;gap:8px}.sidebar nav .nav-item{flex:1;font-size:13px;padding:9px 12px}.sidebar nav .nav-item>span:first-child{font-size:17px}.sidebar nav .nav-arrow{display:none}.inquiries-table td{padding-top:15px;padding-bottom:15px}}
.sidebar .store-icon svg{display:block;width:30px;height:30px;flex:none}
.market-settings-link{display:flex;align-items:center;gap:9px;width:max-content;padding:9px 12px;margin-bottom:14px;border:1px solid #587180;border-radius:7px;color:#e1edf5;font-size:13px;font-weight:600;background:#243e4d}.market-settings-link svg{width:18px;height:18px}.market-settings-link:hover,.market-settings-link[aria-current=page]{background:#36596e;border-color:#87a7bc;color:#fff}
.market-settings{display:grid;grid-template-columns:175px minmax(0,1fr);background:#fff;border:1px solid #dce4e9;border-radius:10px;overflow:hidden;min-height:560px}.market-tabs{display:flex;flex-direction:column;gap:6px;padding:22px 12px;background:#f7f9fa;border-right:1px solid #e2e8ec}.market-tab{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px 14px;border-radius:7px;color:#63798c;font-weight:500;font-size:14px}.market-tab:hover{background:#edf2f6;color:#1a2f3b}.market-tab.active{background:#e5eef4;color:#1a2f3b;box-shadow:inset 3px 0 #587180;font-weight:700}.market-tab-dot{width:6px;height:6px;background:#ccd6dd;border-radius:50%;flex:none}.market-tab-dot.on{background:#2195ca}.market-panel{padding:32px;animation:market-panel-in 140ms ease-out}.market-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.market-panel-heading h2{font-size:17px;margin-bottom:8px}.market-panel-heading .muted{font-size:13px}.market-toggle-form{display:flex;align-items:center;gap:10px;flex:none;padding:8px 12px;background:#f3f6f8;border-radius:8px;font-size:13px;color:#415e70}.market-switch{position:relative;width:42px;height:24px;min-height:0;padding:0;border:0;border-radius:20px;background:#c5d0d9;transition:background .15s}.market-switch span{position:absolute;width:18px;height:18px;border-radius:50%;background:#fff;left:3px;top:3px;transition:transform .15s}.market-switch.on{background:#398ab7}.market-switch.on span{transform:translateX(18px)}.market-switch:disabled{cursor:default;opacity:.55}.market-account-summary{padding:20px 24px;background:#f6f8fa;border:1px solid #e0e7ec;border-radius:8px;display:grid;gap:13px;margin-bottom:24px}.market-account-summary>div{display:grid;grid-template-columns:120px 1fr;align-items:center;font-size:13px}.market-account-summary>div>span{color:#7a8d9b}.market-account-summary strong{font-weight:500;color:#344e63}.market-status{display:inline-flex;align-items:center;gap:7px;width:max-content}.market-status:after{content:'';width:7px;height:7px;background:#b6c4ce;border-radius:50%}.market-status.verified:after{background:#239bd0}.market-message{font-size:13px;line-height:1.8;color:#607b8d;margin:0 0 20px;padding:12px 15px;border-radius:6px;background:#eef5f9}.market-message.error{color:#b42318;background:#fff2f0}.market-credentials{display:grid;gap:17px}.market-field{display:grid;grid-template-columns:205px minmax(0,1fr);align-items:center;gap:20px;color:#4e697b;font-size:13px}.market-field input{width:100%;height:42px;padding:10px 13px;border:1px solid #d5dfe6;border-radius:6px;color:#263e51;background:#fff;font-size:14px}.market-field input::placeholder{color:#9aaab5;font-size:13px}.market-field .required{margin-left:5px;color:#6e8ba0}.market-save-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:8px}.market-save-row p{font-size:12px;color:#8a9ba6}.market-save-row .button{flex:none}.market-bottom-actions{border-top:1px solid #e3e9ed;margin-top:24px;padding-top:23px;display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}.market-bottom-actions>div,.market-action-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.market-seller-link{font-size:12px;color:#7e95a5;margin-left:7px}.market-panel .button{font-size:13px;min-height:38px}.market-panel .button:disabled{background:#f1f4f6;color:#a0aeb7;border-color:#e3e9ed;cursor:default}.market-disconnect{border-top:1px solid #edf1f4;margin-top:25px;padding-top:17px;font-size:12px;color:#889da9}.market-disconnect summary{cursor:pointer;width:max-content}.market-disconnect p{line-height:1.8;margin:12px 0}.market-disconnect .danger{color:#b42318;border-color:#f0c6bf;background:#fff}.market-content>.alert{margin-bottom:22px}
@keyframes market-panel-in{from{opacity:.6}to{opacity:1}}
@media(max-width:1050px){.market-panel{padding:24px}.market-panel-heading{align-items:flex-start;flex-direction:column}.market-field{grid-template-columns:155px minmax(0,1fr);gap:12px}}
@media(max-width:760px){.market-settings{grid-template-columns:1fr}.market-tabs{flex-direction:row;overflow-x:auto;padding:10px;border-right:0;border-bottom:1px solid #e2e8ec;gap:4px}.market-tab{white-space:nowrap;padding:10px 12px;gap:10px}.market-tab.active{box-shadow:inset 0 -2px #587180}.market-panel{padding:20px 16px}.market-field{grid-template-columns:1fr;gap:8px}.market-save-row{align-items:flex-start;flex-direction:column}.market-save-row .button{align-self:flex-end}.market-account-summary{padding:17px}.market-account-summary>div{grid-template-columns:100px 1fr}.market-settings-link{margin:0 0 8px}}
@media(prefers-reduced-motion:reduce){.market-panel{animation:none}.market-switch,.market-switch span{transition:none}}
/* Order detail uses the same typeface, navy accents and quiet borders. */
.confirmation-diagnostic { margin-top: 8px; }
.confirmation-diagnostic p { margin: 0 0 5px; }
.confirmation-diagnostic small { font-size: 12px; overflow-wrap: anywhere; }
.confirmation-diagnostic code { user-select: all; font: inherit; }
.orders-table tr[data-detail-row] { cursor: pointer; }
.orders-table .order-buyer-heading, .orders-table .order-buyer-cell { text-align: center; vertical-align: middle; }
.order-detail-link { color: inherit; text-decoration: none; }
.order-detail-link:hover, .order-detail-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.order-detail-dialog { width: min(1120px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 64px); padding: 0; border: 1px solid #dce3e8; border-radius: 14px; color: #233a48; background: #fff; }
.order-detail-dialog::backdrop { background: rgba(15, 30, 40, .48); }
.order-detail-dialog[open] { animation: order-detail-enter 180ms cubic-bezier(.2, .7, .2, 1) both; }
.order-detail-dialog[open]::backdrop { animation: order-backdrop-enter 180ms ease-out both; }
[data-order-detail][aria-busy="true"] { cursor: progress; }
@keyframes order-detail-enter {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes order-backdrop-enter {
  from { background-color: rgba(15, 30, 40, 0); }
  to { background-color: rgba(15, 30, 40, .48); }
}
@media (prefers-reduced-motion: reduce) {
  .order-detail-dialog[open], .order-detail-dialog[open]::backdrop { animation: none; }
}
.order-detail-dialog .order-detail-content { display: flex; flex-direction: column; max-height: calc(100dvh - 66px); }
.order-detail-dialog .detail-header, .order-detail-dialog .detail-copy-feedback { flex-shrink: 0; }
.order-detail-dialog .detail-scroll { min-height: 0; }
body:has(.order-detail-dialog[open]) { overflow: hidden; }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px 18px; }
.detail-header h2 { font-size: 18px; margin: 0; }
.detail-header .eyebrow { font-size: 10px; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.detail-actions .button { min-width: 100px; padding: 9px 12px; min-height: 38px; font-size: 13px; }
.detail-actions .memo-copy-button:disabled { cursor: default; }
.detail-actions .button.is-copy-complete { background: #dff2ff; border-color: #9acded; color: #24658a; }
.detail-actions .button.is-copy-complete:hover { background: #d0ecff; border-color: #80bddd; color: #24658a; }
.detail-copy-feedback { padding: 0 28px 12px; color: #587180; font-size: 12px; line-height: 1.6; }
.detail-copy-feedback.is-copy-success { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.detail-copy-feedback textarea { width: 100%; height: 64px; margin-top: 8px; padding: 8px; border: 1px solid #cbd7df; border-radius: 5px; font: inherit; white-space: pre; overflow: auto; }
.detail-close { display: grid; place-items: center; color: #6d7e89; text-decoration: none; font-size: 28px; width: 32px; height: 38px; }
.detail-scroll { overflow-y: auto; overscroll-behavior: contain; max-height: calc(100dvh - 176px); padding: 0 28px 24px; }
.detail-section { margin-top: 30px; }
.detail-section:first-of-type { margin-top: 16px; }
.detail-section h3 { margin: 0 0 24px; font-size: 16px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid #dce3e8; }
.detail-grid > div { display: grid; grid-template-columns: 36.5% minmax(0, 1fr); border-bottom: 1px solid #e4e9ed; }
.detail-grid .detail-wide { grid-column: 1 / -1; grid-template-columns: 18.25% minmax(0, 1fr); }
.detail-grid dt { background: #f7f8fa; color: #566773; padding: 16px 12px; font-size: 14px; font-weight: 400; line-height: 1.7; }
.detail-grid dd { margin: 0; padding: 16px 20px; font-size: 14px; font-weight: 400; overflow-wrap: anywhere; line-height: 1.7; }
.detail-grid dd a { color: inherit; text-underline-offset: 3px; }
.detail-grid .order-option { display: inline-block; max-width: 100%; margin: 0; padding: 3px 8px; border: 1px solid #cfd8e6; border-radius: 6px; background: #edf1f7; color: #263e64; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-grid dd a.order-option { color: #263e64; text-decoration: none; }
.detail-grid dd a.order-option:hover, .detail-grid dd a.order-option:focus-visible { text-decoration: underline; }
.detail-grid .quantity-count { line-height: 1.55; }
.detail-grid .quantity-count:not(.quantity-multiple) { display: inline; min-width: 0; min-height: 0; }
.detail-grid .quantity-multiple { background: #587180; border-color: #587180; color: #fff; }
.detail-empty { color: #a3adb4; }
.detail-grid dd .detail-inline-button { display: inline-block; margin-left: 6px; padding: 2px 9px; border: 1px solid #dce3e8; border-radius: 4px; font-size: 13px; line-height: 1.6; color: inherit; text-decoration: none; background: #fff; }
.detail-grid dd .detail-inline-button:hover { background: #f3f6f8; }
.detail-memo { white-space: pre-wrap; }
.customs-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.customs-button { font-size: 14px; padding: 0; min-height: 24px; border: none; background: none; color: #587180; border-radius: 0; }
.customs-button:disabled { background: none; border: none; color: #a3adb4; }
.customs-status { color: #587180; font-size: 13px; margin-top: 7px; }
.customs-code--match { color: #365d72; }
.customs-code--mismatch { color: #b42318; }
.customs-verdict { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid; border-radius: 5px; font-size: 13px; font-weight: 600; line-height: 1.6; }
.customs-verdict--match { color: #075985; background: #bae6fd; border-color: #38bdf8; }
.customs-verdict--mismatch { color: #b42318; background: #fff2f0; border-color: #f2c9c3; }
.customs-reasons { margin: 8px 0 3px; padding-left: 18px; color: #b42318; font-size: 13px; line-height: 1.7; }
.customs-status--error { color: #82632a; }
.customs-checked-at { display: block; margin-top: 5px; font-size: 11px; color: #85939d; }
.customs-status small { display: inline-block; margin-left: 8px; color: #85939d; }
.customs-help-content { margin-top: 8px; padding: 12px 16px; border: 1px solid #dce3e8; border-radius: 6px; background: #f7f8fa; }
.customs-help-content p { margin: 0 0 8px; }
.detail-note { background: #edf2f5; padding: 12px 16px; margin-top: 18px; border-radius: 7px; font-size: 13px; }
.order-detail-page > .order-detail-content { background: #fff; border: 1px solid #dce3e8; border-radius: 14px; }
.order-detail-page .detail-scroll { max-height: none; }
.detail-loading { padding: 32px; }
@media (max-width: 760px) {
  .order-detail-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); }
  .order-detail-dialog .order-detail-content { max-height: calc(100dvh - 26px); }
  .detail-header { padding: 18px 16px; align-items: flex-start; }
  .detail-header .eyebrow { display: none; }
  .detail-actions { justify-content: flex-end; }
  .detail-scroll { padding: 0 16px 20px; max-height: calc(100dvh - 160px); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid > div, .detail-grid .detail-wide { grid-template-columns: 108px minmax(0, 1fr); }
  .detail-grid dd { padding: 12px; }
  .detail-grid dt { padding: 12px 10px; }
}

/* Stage links filter saved orders without changing their state. */
.filters { flex-wrap: wrap; }
.date-shortcuts { display: flex; flex: 0 0 100%; align-items: center; gap: 14px; margin-bottom: 3px; }
.date-shortcuts > span { color: #65738a; font-size: 12px; font-weight: 500; }
.date-preset-group { display: inline-flex; border: 1px solid #d9e2e8; border-radius: 6px; overflow: hidden; background: #fff; }
.date-preset { min-width: 61px; padding: 7px 12px; border-right: 1px solid #e2e8ed; color: #657789; font-size: 13px; text-align: center; text-decoration: none; white-space: nowrap; }
.date-preset:last-child { border-right: 0; }
.date-preset:hover { background: #edf2f5; color: #203441; }
.date-preset.is-active { color: #fff; background: #587180; }
@media(max-width:760px) { .date-shortcuts { flex-wrap: wrap; gap: 8px; } .date-preset { min-width: 0; padding: 7px 10px; } }
.order-stages { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; margin: 0 0 20px; padding: 0 2px; border-bottom: 1px solid #dfe6eb; }
.order-stage { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 0 auto; padding: 15px 12px; border-bottom: 2px solid transparent; color: #75838d; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.order-stage:hover { color: #203441; background: #edf2f5; }
.order-stage.is-active { color: #1a2f3b; border-bottom-color: #1a2f3b; }
.stage-count { min-width: 22px; padding: 1px 6px; border-radius: 5px; background: #e9eef2; color: #677c8a; font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.order-stage.is-active .stage-count { color: #fff; background: #587180; }
.stage-claims-start { margin-left: 10px; }
.orders-table .empty-icon { display: inline-flex; align-items: center; justify-content: center; color: #587180; background: #edf2f5; }
.orders-table .empty-icon svg { display: block; }
@media(max-width:760px) { .order-stage { padding: 13px 10px; font-size: 13px; } .order-stages { margin-bottom: 14px; } }

.activity-grid { align-items: start; }
.activity-side { display: grid; gap: 18px; min-width: 0; }
.auto-collection-card .schedule-copy { font-size: 15px; line-height: 1.65; }
.auto-collection-card .schedule-meta { margin-top: 16px; }
.auto-collection-card .helper { margin-bottom: 0; }
.exchange-card .section-title { margin-bottom: 16px; }
.exchange-card h2 { display: flex; align-items: center; gap: 8px; }
.fx-symbol { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #edf2f5; color: #587180; font-size: 14px; }
.fx-quote { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 17px; border-radius: 7px; border: 1px solid #e1e7eb; background: #f7f9fa; }
.fx-currency { color: #657789; font-size: 13px; }
.fx-currency span { margin-left: 5px; color: #8997a1; font-size: 11px; }
.fx-value { display: inline-block; color: #203441; margin-top: 6px; font-size: 25px; font-variant-numeric: tabular-nums; }
.fx-value small { margin-left: 4px; font-size: 13px; font-weight: 500; }
.fx-unit { margin-left: 8px; font-size: 11px; color: #8997a1; }
.fx-comparison { display: flex; flex-direction: column; gap: 7px; text-align: right; white-space: nowrap; }
.fx-comparison > span { font-size: 11px; color: #8997a1; }
.fx-comparison strong { font-size: 15px; color: #587180; font-variant-numeric: tabular-nums; }
.fx-comparison .is-down { color: #b42318; }
.fx-note { margin-top: 11px; font-size: 11px; color: #8997a1; line-height: 1.7; }
.fx-note a { text-decoration: underline; text-underline-offset: 2px; }
/* The list heading sits above its card; stage navigation belongs to the card. */
.orders-view { display: contents; }
.orders-view.has-query-fade .table-scroll,
.orders-view.has-query-fade .table-footer,
.orders-view.has-query-fade .orders-panel-heading .count-badge,
.stats-grid.has-query-fade .stat-number { animation: orders-results-enter 140ms ease-out both; }
@keyframes orders-results-enter {
  from { opacity: .45; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .orders-view.has-query-fade .table-scroll,
  .orders-view.has-query-fade .table-footer,
  .orders-view.has-query-fade .orders-panel-heading .count-badge,
  .stats-grid.has-query-fade .stat-number { animation: none; }
}
.orders-content { overflow-anchor: none; }
.orders-query-status { position:fixed; right:24px; bottom:24px; z-index:20; max-width:calc(100vw - 48px); margin:0; padding:12px 18px; border:1px solid #dce5ea; border-radius:8px; background:#fff; color:#1a2f3b; box-shadow:0 3px 12px #1a2f3b15; }
.orders-query-status.is-error { color:#b9382e; border-color:#f0c8c3; }
.orders-panel-heading { padding: 0 0 16px; }
.orders-panel-heading .button { flex-shrink: 0; gap: 9px; }
.orders-panel-heading .excel-icon { display: block; flex: 0 0 24px; }
.orders-panel > .order-stages { margin: 0 24px 22px; padding: 6px 0 0; }
@media(max-width:760px) { .orders-panel-heading { padding: 0 0 14px; gap: 12px; } .orders-panel > .order-stages { margin: 0 14px 16px; } }

.market-collection-scope{margin:0 0 20px;font-size:12px;line-height:1.8;color:#8a9ba6}

.order-payment-cell .order-amount-basis{display:block;font-size:10px;font-weight:400;color:#8a9ba6;margin-top:4px;white-space:normal}

/* Store workspaces: keep each open tab bound to its own store URL. */
.sidebar{overflow-y:auto}
.workspace-card{margin-bottom:14px}
.workspace-card>div{min-width:0;overflow-wrap:anywhere}
.store-switcher{display:grid;gap:6px;margin-bottom:22px}
.store-choice{display:flex;align-items:center;justify-content:center;min-width:0;gap:6px;padding:10px 8px;border:1px solid #35515f;border-radius:7px;color:#c6d5de;font-size:13px}
.store-choice.active{background:#355669;border-color:#7292a3;color:#fff}
.store-choice-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.store-choice-check{flex:none;font-size:11px}
.store-settings{grid-column:1/-1;font-size:11px;color:#a9c0cd;padding:5px 10px}
.workspace-market-nav{display:flex;flex-wrap:wrap;gap:7px;padding:16px 20px;border-bottom:1px solid var(--line)}
.workspace-market-nav a{padding:8px 12px;border-radius:6px;color:#587180;font-size:13px}
.workspace-market-nav a[aria-current=page]{background:#e5eef3;color:#1a2f3b;font-weight:700}
.workspace-settings{max-width:720px;padding:28px;background:#fff;border:1px solid var(--line);border-radius:10px}
.workspace-settings form{display:grid;gap:25px}
.workspace-settings .field{display:grid;gap:10px}
.workspace-settings .button{justify-self:start}
@media(max-width:760px){.store-switcher{grid-template-columns:1fr 1fr;margin-bottom:12px}.store-settings{grid-column:1/-1}.workspace-market-nav{padding:12px}.store-choice{padding:8px}.sidebar{overflow-y:visible}}

.sidebar nav.store-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){.sidebar nav.store-switcher{order:3;display:grid;grid-template-columns:1fr 1fr}.sidebar nav[aria-label="주 메뉴"]{order:4}}

.market-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:18px}
.market-store-tabs{display:flex;gap:6px;padding:4px;background:#edf2f5;border:1px solid #dce4e9;border-radius:8px}
.market-store-tabs a{display:block;padding:8px 17px;border:1px solid transparent;border-radius:5px;color:#587180;font-size:13px;font-weight:600;white-space:nowrap}
.market-store-tabs a:hover{background:#e0e9ee}
.market-store-tabs a[aria-current="page"]{background:#1a2f3b;border-color:#1a2f3b;color:#fff}
@media(max-width:760px){.market-title-row{gap:12px}.market-store-tabs a{padding:8px 13px}}

/* Quiet warm yellow for paid/preparing orders; keep confirmation hover. */
.order-stages .order-stage[data-order-stage="PAYED"] .stage-count,.order-stages .order-stage[data-order-stage="PREPARING"] .stage-count{background:#e9eef2;color:#677c8a}
.orders-table .order-status.status-payed,.orders-table .order-status.status-preparing,.order-stages .order-stage[data-order-stage="PAYED"] .stage-count.has-orders,.order-stages .order-stage[data-order-stage="PREPARING"] .stage-count.has-orders{background:#f4ebd3;color:#755f2c}
.orders-table .prepare-button.status-payed:hover,.orders-table .prepare-button.status-payed:focus-visible{background:#1a2f3b;color:#fff;border-color:#1a2f3b}
