/* Atlas Commerce · merchant console */
:root {
  --ink:#232920; --muted:#62695a; --line:#dbddd2; --surface:#fff; --paper:#fff;
  --bg:#f7f7f0; --sidebar:#22281f; --hover:#f0f2e7; --teal:#3d5632; --green:#49683b; --wash:#f1f3e9;
  --form-border:#bec3b4; --control-height:40px; --field-gap:17px; --panel-gap:22px;
  --accent:#e6ed84; --divider:var(--line);
  font-family:Inter,"PingFang SC","Microsoft YaHei","Hiragino Sans GB",system-ui,sans-serif;
  font-size:15px; line-height:1.6;
}
::selection { background:#e4eba3; color:#24331d; }
.console { --rail:224px; --mast:65px; --space:clamp(22px,2.6vw,44px); --rail-ink:#e6eadc; min-height:100vh; }
.workspace { margin-left:var(--rail); padding-top:var(--mast); min-height:100vh; display:flex; flex-direction:column; min-width:0; }
.canvas { width:100%; max-width:1670px; margin:0 auto; padding:0 var(--space) 24px; flex:1; min-width:0; outline:none; }
.skip-admin:not(:focus) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(100%); }
.skip-admin:focus { position:fixed; top:6px; left:8px; z-index:140; background:white; padding:8px 15px; }
.merchant-topbar { position:fixed; inset:0 0 auto var(--rail); z-index:55; height:var(--mast); display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 var(--space); border-bottom:1px solid var(--line); background:#fff; }
.top-location,.top-actions,.merchant-location-home,.visit-site,.top-actions summary,.merchant-brand a { display:flex; align-items:center; }
.top-location { gap:14px; min-width:0; font-size:13px; }
.merchant-location-home { color:var(--muted); gap:7px; text-decoration:none; white-space:nowrap; }
.merchant-location-home svg { width:17px; height:17px; }
.location-divider { color:#acb09f; }
.location-name,.identity-text b { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.location-name { font-weight:600; }
.top-actions { gap:12px; flex:none; }
.top-actions .command-open { justify-content:start; gap:10px; font-size:13px; font-weight:450; color:var(--muted); min-height:35px; padding:5px 10px; background:var(--bg); border:1px solid var(--line); border-radius:6px; width:clamp(138px,14vw,205px); }
.command-open kbd { font-size:10px; margin-left:auto; border:1px solid #d6d9cd; border-radius:3px; background:#fff; padding:1px 4px; }
.visit-site,.top-actions summary { cursor:pointer; gap:6px; text-decoration:none; font-weight:540; color:var(--ink); font-size:13px; padding:4px; border-radius:5px; white-space:nowrap; }
.visit-site:hover,.top-actions summary:hover { background:var(--hover); }
.top-actions .visit-site svg,.top-actions .top-new svg { width:15px; height:15px; }
.top-actions .top-new { padding:5px 9px; border:1px solid var(--line); }
.bar-dropdown { position:relative; border:0; margin:0; padding:0; }
.bar-dropdown summary,.screen-tools summary,.ops-panel summary { list-style:none; }
summary::-webkit-details-marker { display:none; }
.bar-dropdown[open]>summary,.screen-tools details[open]>summary,.ops-panel[open]>summary { margin:0; }
.top-actions .bar-account { padding:0; }
.account-initial { display:grid; place-items:center; width:33px; height:33px; border-radius:50%; background:#e9eadd; border:1px solid #daded1; font-weight:670; text-transform:uppercase; }
.bar-popup,.screen-pane,.command-dialog { border:1px solid var(--line); background:#fff; border-radius:10px; box-shadow:0 9px 30px #20271b23; }
.bar-popup { position:absolute; top:calc(100% + 9px); right:0; min-width:155px; padding:6px; }
.bar-popup form { margin:0; }
.bar-popup > small { display:block; padding:6px 8px; max-width:200px; overflow-wrap:anywhere; }
.bar-popup :is(a,button) { display:flex; align-items:center; justify-content:start; gap:9px; text-align:start; width:100%; min-height:35px; padding:6px 9px; font-size:13px; background:transparent; color:var(--ink); border:0; border-radius:5px; text-decoration:none; }
.bar-popup :is(a,button):hover { background:var(--hover); color:var(--ink); }
.merchant-topbar .mobile-toggle,.merchant-brand .mobile-rail-close { display:none; }
.sidebar { position:fixed; inset:0 auto 0 0; width:var(--rail); z-index:65; display:flex; flex-direction:column; overflow:visible; color:var(--rail-ink); background:var(--sidebar); }
.merchant-brand { height:var(--mast); flex:none; display:flex; align-items:center; padding:0 17px; }
.merchant-brand a { gap:9px; color:#f9faef; text-decoration:none; white-space:nowrap; }
.merchant-brand a>span { font:600 23px/1.1 Georgia,"Times New Roman",serif; letter-spacing:-1px; }
.merchant-brand em { font-size:17px; font-weight:400; letter-spacing:-.65px; }
.merchant-brand .atlas-mark { width:32px; height:32px; }
.site-identity { min-width:0; display:flex; gap:9px; align-items:center; margin:7px 12px 9px; border:1px solid #4b5144; background:#30372b; border-radius:8px; padding:9px; text-decoration:none; color:#f4f5eb; }
.site-identity:hover { color:#fff; background:#384032; }
.site-identity .site-emblem { display:grid; place-items:center; flex:none; width:32px; height:32px; color:#ebefc6; background:#414a37; border-radius:6px; }
.site-identity .identity-text { display:grid; min-width:0; gap:1px; }
.identity-text small { color:#c4cbb7; font-size:10px; }
.identity-text b { font-size:13px; line-height:1.4; }
.site-identity>svg { width:13px; margin-left:auto; color:#bac2ae; }
.studio-nav { flex:1; min-height:0; overflow:auto; padding:0 11px 14px; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#626b58 transparent; }
.nav-section { padding:3px 0; }
.nav-section>p { font-size:11px; letter-spacing:.07em; line-height:1.3; color:#bec5b3; margin:13px 9px 6px; font-weight:570; }
.menu-group { margin:2px 0; }
.menu-heading { display:flex; align-items:stretch; border-radius:6px; }
.menu-heading:hover,.menu-heading:focus-within { background:#353e2e; }
.menu-heading .nav-item { min-width:0; flex:1; display:flex; align-items:center; gap:10px; color:var(--rail-ink); text-decoration:none; font-size:13px; font-weight:510; line-height:1.4; padding:7px 10px; min-height:34px; }
.menu-heading .nav-item svg { width:16px; height:16px; }
.menu-group.current .menu-heading { background:var(--accent); }
.menu-group.current .menu-heading :is(a,svg,button) { color:#242b1a; }
.menu-group.current .nav-item { font-weight:680; }
.sidebar .menu-caret { padding:0 6px; min-height:0; width:29px; background:transparent; color:#c6cdbb; border:0; border-radius:5px; }
.sidebar .menu-caret:hover { color:#fff; background:#ffffff17; }
.sidebar .menu-group.current .menu-caret:hover { color:#131910; background:#0000000b; }
.menu-caret svg { width:12px; height:12px; transform:rotate(180deg); }
.is-open .menu-caret svg { transform:none; }
.submenu { display:none; list-style:none; margin:4px 0 5px 18px; padding:0 0 0 13px; border-left:1px solid #525949; }
.menu-group.is-open .submenu { display:block; }
.submenu a { display:block; padding:5px 6px; border-radius:4px; color:#d0d6c7; font-size:12.5px; line-height:1.6; text-decoration:none; }
.submenu a[aria-current] { color:#eef4a0; font-weight:650; }
.submenu a:hover { background:#394232; color:#fff; }
.sidebar .collapse-menu { flex:none; width:100%; min-height:45px; justify-content:start; gap:10px; padding:8px 22px; border-radius:0; border:0; border-top:1px solid #444b3d; color:#d6dbce; background:var(--sidebar); font-size:12px; }
.sidebar .collapse-menu:hover { background:#333b2d; }
.console.menu-folded { --rail:65px; }
.menu-folded .merchant-brand { justify-content:center; padding:0; }
.menu-folded :is(.merchant-brand a>span,.site-identity,.nav-section>p,.nav-item span,.menu-caret,.collapse-menu span) { display:none; }
.menu-folded .studio-nav { padding:10px 8px; }
.menu-folded .nav-section+.nav-section { border-top:1px solid #494f42; margin-top:5px; }
.menu-folded .menu-heading .nav-item,.menu-folded .collapse-menu { justify-content:center; padding:8px; }
.menu-folded .submenu { display:none; }
.menu-folded .flyout>.submenu { display:block; position:fixed; left:calc(var(--rail) - 1px); z-index:95; min-width:160px; margin:0; padding:5px; border:1px solid #424b39; background:var(--sidebar); box-shadow:0 6px 18px #1a201826; border-radius:6px; }
.rail-backdrop { display:none; }
.page-context { display:flex; justify-content:space-between; align-items:center; min-height:47px; gap:16px; }
.context-trail { color:var(--muted); font-size:11px; font-weight:600; letter-spacing:.09em; }
.screen-tools { position:relative; z-index:7; display:flex; gap:7px; }
.screen-tools details { border:0; padding:0; margin:0; }
.screen-tools summary { display:flex; align-items:center; gap:4px; cursor:pointer; color:var(--muted); padding:3px 7px; font-size:12px; }
.screen-tools summary:hover { text-decoration:underline; }
.screen-tools summary svg { width:14px; height:14px; }
.screen-pane { position:absolute; right:0; top:calc(100% + 4px); width:min(315px,calc(100vw - 30px)); padding:14px; }
.screen-pane strong { display:block; margin-bottom:6px; }
.screen-pane label { display:inline-block; font-size:13px; font-weight:450; margin:3px 10px 3px 0; }
.screen-pane p { margin-bottom:8px; font-size:13px; }
button.help-find { padding:3px 0; color:var(--teal); border:0; background:none; min-height:0; }
.admin-footer { display:flex; justify-content:space-between; gap:12px; margin:20px var(--space) 0; border-top:1px solid var(--line); padding:12px 0 18px; color:var(--muted); font-size:12px; }
.admin-footer span:first-child { font-family:Georgia,serif; font-size:15px; }
.command-dialog { width:min(540px,calc(100% - 24px)); padding:19px; color:var(--ink); }
.command-dialog::backdrop { background:#20251c77; }
.command-head,.command-search,.command-results a { display:flex; align-items:center; gap:8px; }
.command-head { justify-content:space-between; margin:0 0 12px; }
.command-head h2 { margin:0; font-size:20px; }
.command-results { overflow:auto; margin-top:10px; max-height:min(49vh,430px); }
.command-results a { padding:8px; text-decoration:none; border-radius:5px; color:var(--ink); }
.command-results a:hover,.command-results a:focus-visible { background:var(--wash); }
.command-results strong { flex:1; font-size:14px; }
.command-results small { font-size:12px; }
body:has(> .access) { min-height:100vh; display:flow-root; background:#eef0e4; }
.access { width:min(450px,calc(100% - 28px)); max-width:100%; margin:min(12vh,120px) auto 28px; padding:clamp(20px,4vw,38px); background:#fff; border:1px solid var(--line); border-top:6px solid #2f3927; border-radius:12px; box-shadow:0 12px 42px #333c2610; }
.access.install { width:min(685px,calc(100% - 28px)); }
.access-brand { display:flex; align-items:center; gap:10px; margin-bottom:25px; }
.access-brand span { font-weight:650; }
.studio-version { margin-left:auto; color:var(--muted); font:11px/1.6 ui-monospace,monospace; }
.access h1 { font-size:28px; margin-bottom:8px; }
.access form { display:grid; gap:16px; }
.access .checks { display:grid; grid-template-columns:repeat(auto-fit,minmax(125px,1fr)); gap:8px; }
.access .checks b { color:#34592c; }
/* Commerce pages */
.merchant-title,.merchant-title-actions,.ops-panel>header,.ops-panel>summary { display:flex; align-items:center; }
.merchant-title { justify-content:space-between; gap:18px; flex-wrap:wrap; margin:0 0 24px; }
.merchant-title h1,.canvas .section-heading h1,.canvas .wp-entry-heading h1,.canvas .edit-heading-title h1,.canvas>h1 { color:var(--ink); font-size:clamp(27px,2.5vw,38px); line-height:1.25; font-weight:655; letter-spacing:-.04em; }
.merchant-title h1 { margin:0; }
.merchant-title p { color:var(--muted); margin:6px 0 0; font-size:13px; }
.merchant-title p span { padding:0 4px; }
.merchant-title-actions { gap:8px; flex-wrap:wrap; }
.ops-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr)); gap:12px; margin-bottom:17px; }
.ops-metric { display:flex; flex-direction:column; min-width:0; padding:17px 18px 15px; color:var(--ink); background:white; text-decoration:none; border:1px solid var(--line); border-radius:9px; }
.ops-metric:hover { border-color:#9fa98b; color:var(--ink); }
.ops-metric:first-child { background:#edf0ae; border-color:#d9dd98; }
.ops-metric>span { display:flex; align-items:center; gap:7px; margin-bottom:12px; font-size:13px; font-weight:560; }
.ops-metric>span svg { width:16px; height:16px; }
.ops-metric strong { font-size:clamp(22px,2.1vw,35px); line-height:1.17; letter-spacing:-.055em; font-weight:630; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.ops-metric small { font-size:11.5px; margin-top:7px; }
.ops-columns { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:17px; align-items:start; }
.ops-panel { margin:0; min-width:0; border:1px solid var(--line); border-radius:9px; background:white; overflow:hidden; }
.ops-panel>header { flex-wrap:wrap; justify-content:space-between; gap:6px 14px; padding:16px 18px; border-bottom:1px solid #e6e8df; }
.ops-panel h2 { font-size:17px; margin:0; color:var(--ink); font-weight:650; letter-spacing:-.025em; }
.ops-panel>header small { font-size:11.5px; display:block; margin-top:3px; }
.ops-panel>header>a { display:flex; align-items:center; gap:3px; font-size:12px; color:#4d6242; text-decoration:none; }
.ops-panel>header>a svg { width:14px; height:14px; }
.ops-panel>header>a:hover { text-decoration:underline; }
.ops-sales>header { border-bottom:0; }
.periods { display:flex; padding:2px; gap:2px; border:1px solid #dddfd4; border-radius:6px; background:#f6f7f0; }
.periods a { padding:3px 8px; border-radius:4px; line-height:1.55; text-decoration:none; color:var(--muted); font-size:12px; white-space:nowrap; }
.periods a[aria-current] { background:#30362a; color:white; }
.ops-chart { display:flex; align-items:end; gap:clamp(1px,.22vw,4px); margin:6px 18px 0; height:115px; border-bottom:1px solid #cdd2bd; background:repeating-linear-gradient(to top,transparent 0 calc(33.33% - 1px),#e6e8dc calc(33.33% - 1px) 33.33%); }
.ops-chart i { flex:1; height:var(--bar); min-width:0; background:#8b9864; border-radius:2px 2px 0 0; }
.ops-chart-dates { display:flex; align-items:center; justify-content:space-between; padding:7px 18px 14px; color:var(--muted); font-size:11px; }
.ops-chart-empty { display:grid; place-content:center; justify-items:center; gap:10px; margin:5px 18px 17px; min-height:125px; color:var(--muted); border:1px dashed #d9ddcb; border-radius:6px; background:#f9faf5; font-size:13px; }
.ops-chart-empty svg { width:24px; height:24px; color:#8b977d; }
.ops-queue,.ops-products-list { list-style:none; padding:0 16px; margin:0; }
.ops-queue li+li,.ops-products-list li+li { border-top:1px solid #e7e9df; }
.ops-queue a { display:flex; align-items:center; gap:9px; min-height:43px; padding:5px 0; color:var(--ink); text-decoration:none; font-size:13px; }
.ops-queue a:hover>span:nth-child(2),.ops-products-list a:hover { text-decoration:underline; }
.ops-queue a>b { margin-left:auto; font-size:14px; }
.ops-queue a>svg { width:12px; height:12px; color:#7d8771; }
.ops-symbol { width:27px; height:27px; display:grid; place-items:center; background:#f1f3e8; color:#4a5e3f; border-radius:5px; }
.ops-symbol svg { width:15px; height:15px; }
.ops-empty { padding:17px 18px 20px; margin:0; color:var(--muted); font-size:13px; }
.ops-table-scroll { overflow-x:auto; }
.ops-table-scroll table { border:0; margin:0; width:100%; min-width:370px; border-collapse:collapse; font-size:13px; }
.ops-table-scroll :is(th,td) { padding:8px 12px; text-align:left; font-size:12.5px; line-height:1.5; }
.ops-table-scroll tr>:first-child { padding-left:18px; }
.ops-table-scroll :is(th,td):nth-child(2) { white-space:nowrap; font-variant-numeric:tabular-nums; }
.ops-table-scroll th { background:#fafbf5; color:var(--muted); font-size:11.5px; }
.ops-table-scroll a,.ops-products-list a { text-decoration:none; font-weight:600; color:var(--ink); }
.ops-table-scroll small { display:block; max-width:160px; overflow-wrap:anywhere; font-size:11px; }
.ops-badge { display:inline-flex; align-items:center; white-space:nowrap; min-height:20px; padding:1px 7px; border-radius:4px; background:#f0f1eb; color:#545b4e; font-size:11.5px; }
.ops-badge:is([data-state=paid],[data-state=published]) { color:#2d5525; background:#e6efdb; }
.ops-badge:is([data-state=draft],[data-state=unpaid]) { color:#79501c; background:#faf0d9; }
.ops-products-list li { display:grid; align-items:center; grid-template-columns:minmax(0,1fr) auto; gap:1px 8px; padding:9px 0; }
.ops-products-list a { grid-column:1; overflow-wrap:anywhere; font-size:13px; }
.ops-products-list small { grid-column:1; font-size:11px; }
.ops-products-list .ops-badge { grid-column:2; grid-row:1 / span 2; }
.ops-settings { margin-top:17px; }
.ops-shortcuts { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr)); padding:6px 12px; }
.ops-shortcuts a { display:flex; align-items:center; gap:8px; padding:11px 8px; color:var(--ink); text-decoration:none; border-radius:5px; }
.ops-shortcuts a:hover { background:var(--wash); }
.ops-shortcuts a>svg:first-child { width:19px; height:19px; color:#536448; }
.ops-shortcuts a>svg:last-child { width:12px; height:12px; margin-left:auto; }
.ops-shortcuts b,.ops-shortcuts small { display:block; }
.ops-shortcuts b { font-size:13px; }
.ops-shortcuts small { line-height:1.45; margin-top:2px; font-size:11px; }
.ops-minor { margin-top:17px; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr)); gap:17px; align-items:start; }
.ops-minor .ops-panel { padding:0; }
.ops-panel>summary { gap:8px; padding:12px 16px; cursor:pointer; font-size:13px; font-weight:580; }
.ops-panel>summary>svg:last-child { margin-left:auto; width:12px; transform:rotate(180deg); }
.ops-panel[open]>summary>svg:last-child { transform:none; }
.quick-draft,.ops-facts { display:grid; gap:12px; padding:4px 16px 16px; margin:0; }
.ops-facts>div { display:flex; align-items:center; justify-content:space-between; gap:9px; font-size:13px; }
.ops-facts dd { margin:0; }
:where(a,summary,button,[tabindex],input,textarea,select):focus-visible { outline:2px solid #628042; outline-offset:2px; }
:where(input:not([type=checkbox],[type=radio]),select,textarea):focus { border-color:#67804b; box-shadow:0 0 0 1px #67804b; }
input:is([type=checkbox],[type=radio]) { accent-color:#536b3d; }
:is(.canvas,.access) :is(button,.btn,input[type=submit]):not(.secondary,.danger,.plain,.icon-btn,.wp-term-remove,.help-find,.edit-text-button,[data-mode],:where(.tox *,.tox-tinymce-aux *)) { color:white; background:#30392a; border-color:#30392a; }
:is(.canvas,.access) :is(button,.btn,input[type=submit]):not(.secondary,.danger,.plain,.icon-btn,.wp-term-remove,.help-find,.edit-text-button,[data-mode],:where(.tox *,.tox-tinymce-aux *)):hover { background:#454f3e; border-color:#454f3e; }
:is(.canvas,.access) :is(button.secondary,.btn.secondary,input.secondary[type=submit]) { background:#fff; border-color:#bcc3b1; color:#313d28; }
:is(.canvas,.access) :is(button.secondary,.btn.secondary,input.secondary[type=submit]):hover { background:#edf1e4; border-color:#75886a; }
:is(.canvas,.access) a:hover { color:#38562a; }
.canvas .card,.canvas .panel,.canvas .wp-entry-filters,.canvas .wp-entry-table-wrap,.canvas .edit-box,.canvas .edit-widget,.canvas .edit-localize,.canvas .edit-field-grid { border-color:var(--line); border-radius:9px; box-shadow:none; }
.canvas .edit-rich .edit-box { overflow:hidden; }
.canvas .edit-media-unit .edit-dropzone { border:1.5px dashed #9fae91; border-radius:7px; background:#f4f7ef; }
.canvas .setting-tile,.canvas :is(fieldset,.shop-settlement) { border-color:var(--line); }
.canvas .wp-entries .wp-entry-heading { gap:10px; justify-content:flex-end; }
.canvas .wp-entry-heading h1 { margin-right:auto; }
.canvas :is(.wp-filter-extra,.wp-entry-search,.wp-entry-tools,.shop-filters) :is(a,summary),.canvas :is(.wp-status-links,.wp-row-actions,.edit-jump,.wp-entry-table,.wp-term-table) a { color:#3a5331; }
.canvas .module-tabs { padding:0 0 8px; border-bottom:1px solid var(--line); }
.canvas .module-tabs .btn { font-size:13px; }
.canvas th,.canvas .wp-entry-table th { background:#f4f5ed; color:#454d3f; border-color:var(--line); }
.canvas th,.canvas td,.canvas .card>:is(h2,h3) { border-color:var(--line); }
.canvas table { border-color:var(--line); }
.canvas tbody tr:nth-child(odd)>td { background:#fafbf5; }
.canvas tbody tr:has(input[type=checkbox]:checked)>td { background:#eff3df; }
.canvas .edit-tabs button[aria-pressed=true] { background:#e8edde; color:var(--ink); }
.canvas :is(.wp-entry-table,.wp-term-table) tbody tr:nth-child(odd) { background:#fcfcf9; }
.canvas .admin-product-thumb { float:left; margin:0 10px 5px 0; object-fit:cover; border-radius:4px; }
.canvas .product-price { font-variant-numeric:tabular-nums; }
.canvas .wp-entry-heading .btn,.canvas .edit-heading-title .btn { min-height:var(--control-height); padding:5px 12px; }
.canvas :is(.edit-title-widget,.wp-filter-extra) :is(input,select,textarea) { border-radius:6px; }
@media(min-width:783px) {
  .general-options>label.setting-row { display:grid; align-items:center; gap:16px; grid-template-columns:clamp(155px,19%,230px) minmax(160px,510px); }
  .general-options>label.setting-row input { margin:0; }
  .general-options>.setting-control { margin-left:calc(clamp(155px,19%,230px) + 16px); }
}
@media(min-width:783px) and (max-width:1120px) {
  .console { --rail:190px; --space:19px; }
  .merchant-brand { padding:0 13px; }
  .merchant-brand a>span { font-size:21px; }
  .merchant-brand em { font-size:15px; }
  .top-location { gap:8px; }
  .ops-columns { grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); }
  .ops-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:782px) {
  .console,.console.menu-folded { --rail:244px; --mast:54px; --space:15px; }
  .merchant-topbar { left:0; padding:0 10px; gap:5px; }
  .workspace { margin:0; }
  .top-location { gap:6px; font-size:12px; }
  .merchant-location-home,.location-divider { display:none; }
  .merchant-topbar .mobile-toggle,.merchant-brand .mobile-rail-close { display:inline-flex; justify-content:center; align-items:center; flex:none; width:38px; height:41px; min-height:0; padding:5px; color:var(--ink); background:transparent; border:0; }
  .merchant-brand .mobile-rail-close { color:white; margin-left:auto; }
  .top-actions { gap:3px; }
  .top-actions .command-open,.top-actions .visit-site,.top-actions .top-new,.top-actions .bar-account { width:37px; height:40px; justify-content:center; padding:3px; border:0; background:transparent; }
  .top-actions .command-open span,.top-actions .command-open kbd,.top-actions .visit-site span,.top-actions .top-new span { display:none; }
  .account-initial { width:29px; height:29px; }
  .bar-popup :is(button,a) { min-height:41px; }
  .sidebar { transform:translateX(-105%); visibility:hidden; max-width:87vw; z-index:90; }
  .drawer-open .sidebar { transform:translateX(0); visibility:visible; }
  .drawer-lock { overflow:hidden; }
  .rail-backdrop:not([hidden]) { display:block; position:fixed; inset:0; width:100%; height:100%; z-index:80; background:#18211380; border:0; border-radius:0; }
  .menu-heading .nav-item,.submenu a { min-height:40px; }
  .sidebar .collapse-menu { display:none; }
  .sidebar .menu-caret { width:36px; }
  .page-context { min-height:42px; }
  .screen-tools { gap:2px; }
  .screen-tools summary { min-height:31px; padding:4px; }
  .merchant-title { gap:12px; margin-bottom:16px; }
  .ops-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:12px; }
  .ops-metric { padding:12px; }
  .ops-metric>span { margin-bottom:9px; }
  .ops-metric strong { font-size:22px; }
  .ops-columns { grid-template-columns:minmax(0,1fr); gap:12px; }
  .ops-sales { order:1; } .ops-tasks { order:2; } .ops-orders { order:3; } .ops-products { order:4; }
  .ops-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ops-shortcuts a { gap:6px; }
  .ops-shortcuts a>svg:last-child { display:none; }
  .ops-panel>header { padding:13px; }
  .ops-minor,.ops-settings { margin-top:12px; }
}
@media(max-width:410px) {
  .canvas .wp-entries .wp-entry-heading { justify-content:start; }
  .canvas .wp-entry-heading h1 { width:100%; }
  .ops-shortcuts { grid-template-columns:minmax(0,1fr); }
  .ops-shortcuts a>svg:last-child { display:block; }
}
@media print { .sidebar,.merchant-topbar,.page-context,.admin-footer { display:none; } .workspace { margin:0; padding:0; } }
.canvas .locale-filters a[aria-current] { background:#e9efdb; color:#344c29; }
.canvas .locale-default { color:#49633a; }
.canvas .locale-actions { border-radius:8px 8px 0 0; border-color:var(--line); }
.canvas .locale-table { border-radius:0 0 8px 8px; border-color:var(--line); }
.canvas .wp-entry-table .wp-title-col .wp-entry-title { color:#344f2b; }
.canvas .shop-orders td:nth-child(2) small { max-width:15ch; text-overflow:ellipsis; overflow:hidden; white-space:nowrap; }
@media(max-width:782px) {
  .canvas[data-section=shop] .table-wrap table.shop-orders,.shop-orders tbody,.shop-orders thead,.shop-orders thead tr { display:block; width:100%; min-width:0; }
  .canvas .shop-orders thead th { display:none; }
  .canvas .shop-orders thead th:first-child:has(input) { display:flex; align-items:center; width:100%; gap:7px; padding:10px; }
  .shop-orders thead th:first-child:has(input)::after { content:'全选当前页'; font-size:12px; }
  .shop-orders tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px 12px; padding:12px 12px 14px 37px; position:relative; border-bottom:1px solid var(--line); }
  .canvas .shop-orders tbody td { width:auto; min-width:0; padding:0; background:transparent; border:0; line-height:1.5; }
  .shop-orders tbody td:first-child:not([colspan]) { position:absolute; left:10px; top:14px; }
  .shop-orders tbody td:nth-child(2),.shop-orders tbody td[data-label="客户"],.shop-orders tbody td[colspan] { grid-column:1/-1; }
  .canvas .shop-orders tbody td:nth-child(2)>small { max-width:none; }
  .shop-orders tbody [data-label]::before { content:attr(data-label); display:block; color:var(--muted); font-size:11px; margin-bottom:2px; }
  .canvas .shop-orders tbody tr:has(input:checked) { background:#eef2e3; }
}

/* Shared navigation for order, marketing and storefront workspaces. */
.canvas .desk-heading { margin:0 0 16px; }
.canvas .desk-tabs {
  display:flex; align-items:stretch; flex-wrap:wrap; gap:6px;
  margin:0 0 22px; padding:0 0 12px; border-bottom:1px solid var(--line);
}
.canvas .desk-tabs>a {
  display:inline-flex; align-items:center; justify-content:center; min-height:40px;
  padding:7px 14px; border:1px solid transparent; border-radius:6px;
  font-size:14px; line-height:1.4; font-weight:540;
  text-align:center; text-decoration:none; color:#44513c;
}
.canvas .desk-tabs>a:hover { background:#ebeee2; color:#293526; }
.canvas .desk-tabs>a[aria-current=page] {
  color:#fff; background:#35452f; border-color:#35452f; font-weight:650;
}
.canvas .desk-tabs>a:focus-visible { outline:2px solid #546f48; outline-offset:2px; }
.canvas .studio-top + .desk-tabs { margin-top:15px; }
.canvas:is([data-section=member-desk],[data-section=product-options]) td>small {
  display:block; margin-top:3px; font-size:12px; color:var(--muted);
}
.canvas[data-section=product-options] .op-editor .op-rowhead .op-mini { gap:6px; }
.canvas[data-section=partner-desk] .grid>label:has(>input[type=checkbox]) {
  align-self:center; display:flex; align-items:center; gap:6px; min-height:36px;
}
.canvas[data-section=partner-desk] .grid>label>input[type=checkbox] { flex:none; margin:0; }

@media (max-width:650px) {
  .canvas .desk-heading { margin-bottom:12px; }
  .canvas .desk-tabs {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px;
    padding-bottom:12px; margin-bottom:16px;
  }
  .canvas .desk-tabs>a {
    justify-content:flex-start; min-height:42px; padding:8px 11px;
    background:#f0f2e8; border:1px solid #e1e5d7;
  }
  .canvas[data-section=member-desk] form.toolbar>a:last-child { min-height:40px; display:inline-flex; align-items:center; }
  .canvas[data-section=partner-desk] .grid:has(>label>input[type=checkbox]) { row-gap:10px; }
  .canvas[data-section=partner-desk] .grid>label:has(>input[type=checkbox]) { min-height:28px; }
}
