/* KROMVY Studio · Dashboard V14. Auth remains on its existing isolated skin. */
.admin-active .storefront-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border-radius:28px;background:#fff;color:var(--ink);font-size:12px;font-weight:500;text-decoration:none;white-space:nowrap}
.admin-active .storefront-link svg{width:16px;height:16px;flex:none}
.admin-active .storefront-link:hover{background:#eae4ee}
.admin-active[data-admin-theme=dark] .storefront-link{background:#211d27;color:#f4f0f7}
.admin-active[data-admin-theme=dark] .storefront-link:hover{background:#302936}
@media(max-width:520px){.admin-active .workspace-account{gap:8px}.admin-active .account-menu summary>span:nth-child(2){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.admin-active .storefront-link{padding-inline:10px}}
/* Point of sale: catalog stays scannable, checkout remains one explicit operation. */
.admin-active .pos-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,420px);gap:24px;align-items:start}
.admin-active .pos-catalog,.admin-active .pos-checkout{min-width:0}
.admin-active .pos-layout input[type=search]{margin:0}
.admin-active .pos-checkout details{margin-bottom:0}
.admin-active .customer-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,260px);gap:16px;align-items:end}.admin-active .customer-tools input{margin:0}
@media(max-width:760px){.admin-active .customer-tools{grid-template-columns:1fr}}
.admin-active .pos-checkout{background:#fff;border-radius:22px;padding:24px;display:grid;gap:18px}
.admin-active .pos-search{display:grid;grid-template-columns:1fr 180px;gap:14px;align-items:end;margin-bottom:20px}
.admin-active .pos-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.admin-active #ready .pos-product{display:flex;flex-direction:column;gap:8px;text-align:left;padding:14px;background:#fff;color:var(--ink);border:1px solid transparent;border-radius:20px;min-width:0;overflow:hidden}
.admin-active #ready .pos-product:hover:not(:disabled){border-color:var(--accent);box-shadow:0 4px 16px #28202f0b}
.admin-active #ready .pos-product:disabled{opacity:.5}
.pos-product-image{display:grid;place-items:center;aspect-ratio:1.5;width:100%;border-radius:12px;overflow:hidden;background:#fff}
.pos-product-image img{width:100%;height:100%;object-fit:contain}.pos-no-image{font-size:12px;color:#6d6872}
.pos-product-name{font-size:16px;font-weight:500}.pos-product-variant{font-size:12px;color:var(--muted)}
.pos-product-footer{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;width:100%;margin-top:auto;padding-top:8px;font-variant-numeric:tabular-nums}.pos-product-footer small{font-size:11px;color:var(--muted)}
.pos-cart-lines{display:grid;gap:14px}.pos-cart-line{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:10px;align-items:start;border-bottom:1px solid var(--line);padding-bottom:14px;font-size:13px}
.pos-cart-line>img{width:52px;height:48px;object-fit:contain;background:#fff;border-radius:8px}.pos-cart-description{display:grid;gap:4px}.pos-cart-description small{color:var(--muted);font-size:11px}.pos-cart-line>strong{font-size:12px;font-variant-numeric:tabular-nums}
.pos-quantity{grid-column:2/-1;display:flex;gap:8px;align-items:center}.admin-active #ready .pos-quantity button{width:auto;min-width:40px;min-height:40px;padding:6px 10px}.pos-quantity output{min-width:20px;text-align:center}.pos-quantity button:last-child{margin-left:auto}
.pos-empty{padding:22px 0}.pos-customer{display:grid;gap:12px;border-top:1px solid var(--line);padding-top:18px}.pos-customer-editor:empty{display:none}.pos-customer-editor:not(:empty){background:#fff;padding:24px;border-radius:22px;margin-top:24px}
.payment-rows{display:grid;gap:12px}.payment-row{margin:0;padding:14px;border:1px solid var(--line);border-radius:14px;min-width:0}.payment-row legend{font-size:12px;padding:0 6px}.admin-active .payment-row .form-grid{grid-template-columns:1fr 1fr}.payment-row .form-grid>.field:last-child{grid-column:1/-1}.payment-row summary{min-height:44px;cursor:pointer;font-size:12px;padding:10px 0}.payment-editor>.quiet{margin-top:12px}
.admin-active .pos-checkout .business-note{font-size:11px;margin:0}.admin-active .pos-checkout h3{margin:0}.admin-active .pos-checkout [hidden],.admin-active .payment-row [hidden]{display:none!important}
.pos-totals{display:grid;gap:10px;padding:18px 0;border-top:1px solid var(--line);font-size:13px;font-variant-numeric:tabular-nums}.pos-totals>div{display:flex;justify-content:space-between;gap:12px}.pos-totals>div:nth-child(3){font-size:24px;letter-spacing:-.03em;margin:6px 0}.pos-totals>div:last-child{color:var(--accent)}
.admin-active .payment-collection{max-width:700px;margin:28px 0}.admin-active .customer-editor{margin-top:16px}.admin-active .check-field{display:flex;align-items:center;gap:10px;font-size:13px}.admin-active .check-field input{width:20px;height:20px;flex:none}
.admin-active .workspace-topbar>nav{min-width:0}.admin-active #ready .module-link{padding-inline:13px}
.is-added{animation:cart-added 240ms ease-out}@keyframes cart-added{from{transform:translateY(6px);opacity:.5}to{transform:none;opacity:1}}
.admin-active[data-admin-theme=dark] :is(.pos-checkout,.pos-customer-editor:not(:empty),#ready .pos-product){background:#211d27}
.admin-active[data-admin-theme=dark] .pos-totals>div:last-child{color:#ff997a}
@media(max-width:1400px){.admin-active .pos-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-account .connection-pill{display:none}}
@media(max-width:1000px){.admin-active .pos-layout{grid-template-columns:1fr}.admin-active .pos-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.admin-active .pos-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-active .pos-search{grid-template-columns:1fr}.admin-active .pos-checkout{padding:18px}.admin-active .pos-layout input,.admin-active .pos-layout select{font-size:16px}.pos-product-name{font-size:14px}}
@media(prefers-reduced-motion:reduce){.is-added{animation:none}}
.admin-active{--paper:#f2eff3;--ink:#242127;--muted:#6d6872;--line:#e7e3e9;--accent:#b93f20;--control-line:#a39ca8;background:var(--paper);color:var(--ink);accent-color:var(--accent)}
.admin-active :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
.admin-active ::selection{background:#ffd4c7;color:#542213}
.admin-active{scrollbar-color:#c4bdca #f2eff3}
.admin-active>header,.admin-active .workspace-toolbar,.admin-active #logout,.admin-active #progress:empty{display:none}
.admin-active>footer{display:block;border:0;background:transparent;font-size:10px;padding:16px 24px;color:var(--muted)}
.admin-active main{max-width:1720px;padding:28px 36px 40px;display:block;margin:auto}
.admin-active #ready{width:100%}
.workspace-topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:36px;min-height:56px}
.workspace-topbar button,.workspace-nav button{font-size:13px;font-weight:400}
.admin-active #ready .workspace-brand{display:flex;align-items:center;background:#fff;border:0;border-radius:32px;padding:10px 16px;min-height:52px;flex-shrink:0}
.workspace-brand img{display:block;width:120px;height:auto}
.workspace-topbar>nav{display:flex;align-items:center;gap:4px;background:white;padding:6px;border-radius:40px;max-width:100%;overflow-x:auto}
.admin-active #ready .module-link{min-height:40px;padding:10px 19px;border:0;background:transparent;color:#625c68;border-radius:30px;text-align:center;white-space:nowrap}
.admin-active #ready .module-link:hover{background:#f2eff3;color:var(--ink)}
.admin-active #ready .module-link[aria-current=page]{background:#242127;color:#fff;font-weight:500}
.workspace-account{display:flex;gap:12px;align-items:center;flex-shrink:0}
.connection-pill{display:flex;gap:7px;align-items:center;background:white;border-radius:28px;min-height:44px;padding:10px 14px;font-size:11px;color:#4b6457;white-space:nowrap}
.connection-pill svg{width:16px;height:16px}.connection-pill.is-offline{color:#9c2828}
.account-menu{position:relative;margin:0}.account-menu summary{display:flex;align-items:center;gap:10px;border-radius:30px;background:#fff;padding:7px 12px 7px 7px;list-style:none;min-height:52px}.account-menu summary::-webkit-details-marker{display:none}
.account-menu summary>span:nth-child(2){display:flex;flex-direction:column;gap:2px}.account-menu summary strong{font-size:12px;font-weight:600}.account-menu summary small{font-size:10px;color:var(--muted)}
.account-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#fbe2d9;color:#9b381e;font-size:18px;font-weight:600}
.account-menu summary>svg{width:15px;height:15px;margin-left:12px}
.account-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:270px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 40px #28202f16;z-index:5}
.account-dropdown .business-note{font-size:12px;margin-bottom:12px}.admin-active #ready .account-dropdown button{display:flex;gap:10px;align-items:center;width:100%;border:0;text-align:left}
.admin-active .workspace-layout{grid-template-columns:48px minmax(0,1fr);gap:30px;align-items:start}
.admin-active .workspace-nav{border:0;background:transparent;border-radius:0;padding:0;display:flex;align-items:center;flex-direction:column;gap:32px;position:sticky;top:24px}
.admin-active .workspace-nav nav{padding:5px;display:flex;flex-direction:column;gap:8px;border-radius:30px;background:white;overflow:visible}
.admin-active #ready .rail-link{min-height:38px;width:38px;padding:9px;border:0;border-radius:50%;background:transparent;color:#736b7b;display:grid;place-items:center}
.admin-active #ready .rail-link svg{width:18px;height:18px}
.admin-active #ready .rail-link:hover{background:#f2eff3;color:var(--ink)}
.admin-active #ready .rail-link[aria-current=page]{background:#242127;color:#fff}
.rail-light,.rail-status{display:grid;place-items:center;background:#fff;width:38px;height:44px;border-radius:25px;color:#736b7b}.rail-status{margin-top:12px;color:#4b6457}.rail-light svg,.rail-status svg{width:17px;height:17px}
.admin-active #ready button.rail-light{background:#fff;color:#736b7b;border:0;border-radius:25px;padding:10px;width:38px;min-height:44px}.admin-active #ready button.rail-light:hover{background:#eae4ee;color:var(--ink)}
.workspace-content{outline:none}.workspace-content>div{animation:workspace-reveal 320ms cubic-bezier(.16,1,.3,1)}
@keyframes workspace-reveal{from{transform:translateY(7px);filter:blur(3px)}to{transform:translateY(0);filter:blur(0)}}
.admin-active .workspace-content h2{font-size:30px;line-height:1.2;letter-spacing:-.035em;font-weight:500;margin:0 0 8px}
.admin-active .workspace-content h3{font-size:16px;font-weight:500;letter-spacing:-.015em;margin:0 0 14px;line-height:1.4}
.admin-active .workspace-content .business-note{font-size:13px;line-height:1.6;color:var(--muted)}
.dashboard-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:30px}
.dashboard-heading .business-note{margin:0}.dashboard-heading time{font-size:12px;color:var(--muted);white-space:nowrap}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;align-items:start}
.dashboard-panel{background:#fff;border-radius:22px;padding:22px;min-width:0}
.dashboard-grid>.dashboard-panel{height:100%}
.panel-label{display:flex;align-items:center;justify-content:space-between;gap:10px}.admin-active .panel-label h3{font-size:14px;margin:0}.currency-tag{color:var(--muted);font-size:11px;line-height:1.4;background:#f7f5f8;border-radius:20px;padding:5px 10px}
.balance-value{display:block;font-size:clamp(26px,2.4vw,39px);font-weight:500;letter-spacing:-.04em;font-variant-numeric:tabular-nums;line-height:1.3;margin:16px 0 5px;overflow-wrap:anywhere}
.metric-caption{font-size:11px;color:var(--muted);line-height:1.5;margin:0 0 18px}
.dashboard-actions{display:flex;gap:10px;margin:20px 0}.admin-active #ready .dashboard-actions button{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;border:0;min-height:42px;padding:10px 12px;border-radius:30px;font-size:12px}.dashboard-actions button svg{width:15px;height:15px}
.admin-active #ready .dashboard-actions .quiet{background:#f3f0f5}
.channel-box{background:#f5f2f6;border-radius:15px;padding:14px}.channel-box>p{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px;font-size:11px;font-weight:500}.channel-box>p>span{font-size:10px;color:var(--muted);font-weight:400}
.channel-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.channel-grid>div{display:flex;flex-direction:column;gap:8px;border-radius:10px;background:#fff;padding:12px;min-width:0}.channel-grid span{font-size:11px}.channel-grid strong{font-size:15px;font-weight:500;overflow-wrap:anywhere}.channel-grid small{font-size:10px;color:var(--muted)}
.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}
.dashboard-metric{background:#f4f1f5;border-radius:16px;padding:17px 15px;min-height:142px;display:flex;flex-direction:column;justify-content:space-between;min-width:0}
.metric-label{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;font-size:11px;line-height:1.4}.metric-label svg{flex-shrink:0;width:16px;height:16px;color:#84798a}
.dashboard-metric strong{font-size:clamp(20px,1.75vw,28px);line-height:1.25;letter-spacing:-.035em;font-weight:500;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;margin:15px 0 12px}.dashboard-metric p{font-size:10px;line-height:1.4;color:var(--muted);margin:0}
.dashboard-metric.is-featured{background:linear-gradient(145deg,#ed673e,#e96339 55%,#e95c33);color:#fff;box-shadow:inset 0 0 0 1px #ffffff3d}.is-featured .metric-label svg{color:#fff}.is-featured .metric-label{color:#35150e}.is-featured p{color:#35150e}.is-featured strong{color:#fff;font-weight:700}
.admin-active .chart-panel h3{margin-bottom:3px}.chart-panel>.business-note{font-size:11px;margin-bottom:18px}
.chart-surface{border-radius:15px;background:#f5f2f6;padding:14px 12px 10px;position:relative}.chart-legend{display:flex;align-items:center;gap:12px;font-size:9px}.chart-legend strong{margin-right:auto;font-weight:500}.chart-legend span{display:flex;align-items:center;gap:4px;white-space:nowrap}.chart-legend span:before{content:'';width:7px;height:7px;border-radius:2px;background:#242127}.chart-legend .legend-web:before{background:#ed724f}
.sales-chart{position:relative;display:flex;gap:6px;align-items:stretch;height:180px;margin:20px 0 0 36px;background:repeating-linear-gradient(to top,transparent 0,transparent 43px,#e8e3ec 44px,transparent 45px)}
.chart-axis{position:absolute;left:-36px;top:0;width:32px;height:154px;display:flex;flex-direction:column;justify-content:space-between;text-align:right;color:var(--muted);font-size:9px;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums;padding-right:4px}
.chart-column{flex:1;display:flex;flex-direction:column;min-width:0}.chart-stack{height:154px;display:flex;flex-direction:column-reverse;justify-content:flex-start;gap:2px}.chart-segment{display:block;background:#242127;border-radius:4px;flex-shrink:0}.chart-segment.web{background:repeating-linear-gradient(135deg,#f69a7b 0,#f69a7b 2px,#ec6d48 2px,#ec6d48 4px)}.chart-segment[style*="height: 0%"]{display:none}.month-label{text-align:center;color:var(--muted);font-size:10px;padding-top:9px;text-transform:capitalize}
.chart-empty{position:absolute;left:14px;right:14px;top:48%;text-align:center;font-size:12px;color:var(--muted);margin:0;background:#f5f2f6e6;padding:10px}
.dashboard-grid>.stock-panel{height:auto}.stock-reading{display:flex;align-items:baseline;gap:8px}.stock-reading strong{font-size:34px;line-height:1.2;font-weight:500;letter-spacing:-.03em}.stock-reading span{font-size:12px;color:var(--muted)}.stock-panel .metric-caption{margin-top:10px}.admin-active #ready .stock-panel button{display:flex;gap:12px;align-items:center;justify-content:space-between;width:100%;font-size:12px;min-height:40px;border:0;background:#f4f1f5;border-radius:25px}.stock-panel button svg{width:16px;height:16px}
.activity-panel{grid-column:span 2}.activity-heading{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-bottom:16px}.admin-active .activity-heading h3{margin:0;white-space:nowrap}.activity-controls{display:flex;align-items:center;gap:10px;min-width:0}.activity-controls input,.activity-controls select{border:0;background:#f5f2f6;border-radius:24px;font-size:11px;font-family:inherit;min-height:38px;margin:0;padding:9px 12px;width:160px;color:var(--ink)}.activity-controls select{width:145px}
.activity-panel .table-scroll{margin:0 0 12px;border:0}.activity-panel table{font-size:11px}.activity-panel th{font-size:10px;background:#f5f2f6}.activity-panel td,.activity-panel th{padding:12px 10px}.activity-panel td{white-space:nowrap}.activity-panel>.business-note{font-size:10px;margin:12px 0 0}
.status-badge{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px}.status-badge:before{content:'';width:5px;height:5px;border-radius:50%;background:#4e7f64}.status-badge.cancelled:before{background:#a94136}
.activity-empty{padding:28px 10px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:10px}.activity-empty>svg{color:#a49aa9;width:26px;height:26px}.activity-empty strong{font-size:14px;font-weight:500}.activity-empty .business-note{font-size:12px;margin:0}.admin-active #ready .activity-empty button{border:0;border-radius:24px;background:#f4f1f5;min-height:38px;display:flex;align-items:center;gap:12px;font-size:12px}
/* The operational modules inherit the reference, not a second visual system. */
.admin-active .workspace-content:not([data-module=overview])>div{padding:28px;border-radius:22px;background:#fff}
.admin-active button{border-radius:25px;background:#242127;border-color:#242127;transition:background-color 160ms ease,color 160ms ease,box-shadow 160ms ease}
.admin-active button:hover{background:#443c4b}.admin-active .quiet{color:var(--ink);background:#f4f1f5;border-color:transparent}.admin-active .quiet:hover{background:#eae4ee}
.admin-active :is(button,a,input,summary,select,textarea):focus-visible{outline:2px solid #b93f20;outline-offset:3px}
.admin-active .workspace-message:focus{outline:2px solid #b93f20;outline-offset:3px}.admin-active .workspace-message{border-radius:14px;background:#edf5ef;color:#32573f;border-color:#acc4b4}.admin-active .workspace-message.is-error{background:#fff1ed;border-color:#e5ab9d;color:#9c2828}
.admin-active .field input,.admin-active .field select,.admin-active .field textarea,.admin-active input[type=search]{border-radius:12px;caret-color:#b93f20;background:#fcfbfd}
.admin-active .variant-editor{border-radius:16px;background:#fcfbfd}.admin-active .variant-editor legend{font-weight:500}.admin-active .variant-preview{background:#f2eff3;border-radius:12px}.admin-active .section-head>button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.admin-active .table-scroll{border-radius:14px;border-color:#ece8ee}.admin-active th{background:#f4f1f6;color:#6d6872}.admin-active td{border-color:#ece8ee}.admin-active .cost-output{background:#f5f2f6;border:0;border-radius:18px}.admin-active .inline-form{background:#f5f2f6;padding:20px;border-radius:16px}
@media(min-width:1600px){.admin-active main{padding-top:36px}.workspace-topbar{margin-bottom:44px}.dashboard-heading{margin-bottom:34px}.dashboard-panel{padding:26px}.metric-grid{padding:16px}.dashboard-metric{min-height:160px}.sales-chart{height:215px}.chart-stack{height:189px}}
@media(max-width:1200px){.admin-active main{padding:24px}.workspace-topbar{gap:16px;flex-wrap:wrap}.workspace-topbar>nav{order:3;margin-left:78px}.workspace-account{margin-left:auto}.dashboard-grid{grid-template-columns:1fr 1fr}.chart-panel{grid-column:1/-1}.sales-chart{height:180px}.chart-stack{height:154px}.stock-panel{grid-column:1}.activity-panel{grid-column:2}.activity-heading{align-items:flex-start;flex-direction:column;gap:12px}.activity-controls{flex-wrap:wrap}.dashboard-heading time{display:none}.metric-grid{min-height:320px}}
@media(max-width:760px){.admin-active main{padding:18px 16px 30px}.workspace-topbar{margin-bottom:26px;gap:16px}.admin-active #ready .workspace-brand{padding:9px 13px;min-height:46px}.workspace-brand img{width:103px}.connection-pill{display:none}.account-menu summary{min-height:46px;padding:5px 9px 5px 5px}.account-menu summary strong{font-size:10px}.account-menu summary small{font-size:9px}.account-avatar{width:32px;height:32px;font-size:16px}.account-menu summary>svg{margin-left:2px;width:13px}.workspace-topbar>nav{margin:0;width:100%;padding:5px;gap:3px}.admin-active #ready .module-link{font-size:11px;padding:9px 12px;min-height:40px;flex:1}.admin-active .workspace-layout{grid-template-columns:minmax(0,1fr);gap:0}.admin-active .workspace-nav{display:none}.admin-active .workspace-content h2{font-size:27px}.dashboard-heading{margin-bottom:22px}.dashboard-heading .business-note{font-size:12px;max-width:40ch}.dashboard-grid{grid-template-columns:minmax(0,1fr);gap:16px}.dashboard-panel{padding:20px;border-radius:20px}.metric-grid{padding:12px;min-height:300px}.dashboard-metric{min-height:132px}.dashboard-metric strong{font-size:29px}.balance-value{font-size:36px}.chart-panel,.activity-panel,.stock-panel{grid-column:1}.activity-heading{gap:16px}.activity-controls{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.activity-controls input,.activity-controls select{width:100%;min-width:0}.activity-panel table{min-width:570px}.admin-active .workspace-content:not([data-module=overview])>div{padding:20px 16px;border-radius:20px}.admin-active .workspace-content h3{margin-top:24px}.admin-active .dashboard-panel h3{margin-top:0}.admin-active .section-head{gap:16px}.admin-active .section-head .business-note{font-size:12px}.admin-active .inline-form{padding:16px}.admin-active .form-actions button{width:100%!important}}
@media(prefers-reduced-motion:reduce){.workspace-content>div{animation:none}.admin-active *{scroll-behavior:auto;transition:none!important}}
@media(max-width:760px){.dashboard-metric strong{font-size:clamp(20px,6vw,24px)}.admin-active #ready .module-link{min-height:44px}}
.admin-active[data-admin-theme=dark]{--paper:#17141b;--ink:#f4f0f7;--muted:#b5aebe;--line:#3d3644;--control-line:#8e8498;color-scheme:dark;background:var(--paper)}
.admin-active[data-admin-theme=dark] :is(.dashboard-panel,.workspace-topbar>nav,.account-menu summary,.connection-pill,.workspace-nav nav,.account-dropdown){background:#211d27}
.admin-active[data-admin-theme=dark] .workspace-brand{background:#fff!important}
.admin-active[data-admin-theme=dark] .workspace-content:not([data-module=overview])>div{background:#211d27}
.admin-active[data-admin-theme=dark] :is(.dashboard-metric,.channel-box,.chart-surface,.currency-tag,.cost-output,.inline-form){background:#2b2532}
.admin-active[data-admin-theme=dark] .dashboard-metric.is-featured{background:linear-gradient(145deg,#ed673e,#e96339 55%,#e95c33)}
.admin-active[data-admin-theme=dark] :is(.channel-grid>div,.field input,.field select,.field textarea,input[type=search],.activity-controls select,.variant-editor,.variant-preview,th){background:#302936;color:var(--ink)}
.admin-active[data-admin-theme=dark] :is(.connection-pill,.rail-status){color:#9ad5ae}.admin-active[data-admin-theme=dark] .connection-pill.is-offline{color:#ffb4a5}
.admin-active[data-admin-theme=dark] #ready :is(.module-link,.rail-link){color:#c3baca}.admin-active[data-admin-theme=dark] #ready :is(.module-link,.rail-link)[aria-current=page]{background:#f4f0f7;color:#242127}
.admin-active[data-admin-theme=dark] #ready :is(.quiet,.dashboard-actions .quiet,.stock-panel button,.activity-empty button,button.rail-light){background:#302936;color:#f4f0f7}
.admin-active[data-admin-theme=dark] #ready :is(.quiet,.module-link,.rail-link):hover{background:#44394f;color:#fff}
.admin-active[data-admin-theme=dark] #ready :is(.module-link,.rail-link)[aria-current=page]:hover{background:#fff;color:#242127}
.admin-active[data-admin-theme=dark] :is(td,.table-scroll){border-color:#3d3644}
.admin-active[data-admin-theme=dark] .chart-empty{background:#2b2532ee}.admin-active[data-admin-theme=dark] .chart-segment.local{background:#f4f0f7}.admin-active[data-admin-theme=dark] .legend-local:before{background:#f4f0f7}
.admin-active[data-admin-theme=dark] .sales-chart{background:repeating-linear-gradient(to top,transparent 0,transparent 43px,#3d3644 44px,transparent 45px)}
.admin-active[data-admin-theme=dark] :is(button,a,input,summary,select,textarea):focus-visible{outline-color:#ff997a}
.admin-active[data-admin-theme=dark] .workspace-message{background:#233c2a;color:#c4edcc}.admin-active[data-admin-theme=dark] .workspace-message.is-error{background:#46282b;color:#ffccc3}
@media(forced-colors:active){.dashboard-panel,.dashboard-metric,.workspace-topbar>nav,.account-menu summary,.workspace-nav nav{border:1px solid CanvasText}.chart-segment{border:1px solid CanvasText}.module-link[aria-current=page],.rail-link[aria-current=page]{outline:2px solid Highlight}.is-featured strong{color:CanvasText;text-shadow:none}}
@media(min-width:1600px){.chart-axis{height:189px}}
/* One authored theme curtain. Snapshot layers never receive pointer events. */
.admin-active .landed-form{gap:20px}
.admin-active .landed-form h3{margin:24px 0 0;font-size:20px}
.admin-active .landed-intro{padding:20px;border-radius:18px;background:var(--surface-inset,#f5f2f6)}
.admin-active .landed-intro .field{max-width:600px}
.admin-active :is(.landed-products,.landed-expenses){display:grid;gap:20px;min-width:0}
.admin-active .landed-row{border:1px solid var(--control-line,#d9d3dc);border-radius:16px;padding:18px 20px 20px;min-width:0;margin:0}
.admin-active .landed-row legend{padding:0 8px;font-size:14px;font-weight:600}
.admin-active .landed-row details{margin:16px 0;font-size:13px}
.admin-active .landed-row summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--muted)}
.admin-active .landed-row summary::before{content:'+';margin-right:10px}
.admin-active .landed-row details[open] summary::before{content:'−'}
.admin-active #ready .landed-form .quiet{width:auto;align-self:flex-start;min-height:44px}
.admin-active .landed-form :is(input,select):disabled{opacity:.45}
.admin-active .landed-form [hidden]{display:none!important}
.admin-active .landed-form .cost-output{min-width:0;max-width:100%}
.admin-active[data-admin-theme=dark] .landed-intro{background:#2b2532}
@media(max-width:760px){.admin-active .landed-row{padding:12px}.admin-active .landed-intro{padding:16px}.admin-active .landed-form .form-grid{grid-template-columns:minmax(0,1fr)}.admin-active .landed-form :is(input,select){font-size:16px}}
::view-transition-old(root){animation:none;mix-blend-mode:normal}
::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition{pointer-events:none}
.dashboard-range{display:flex;flex-direction:row;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 10px;max-width:100%;padding:0;border:0;background:none}
.dashboard-range label{display:grid;gap:6px;min-width:0;margin:0;font-size:11px;color:var(--muted)}
.admin-active .dashboard-range :is(input,select){font:inherit;font-size:13px;color:var(--ink);background:#fff;border:1px solid var(--control-line);border-radius:12px;padding:10px 12px;min-height:44px;margin:0;width:170px;max-width:100%;color-scheme:light}
.admin-active #ready .dashboard-range button{min-height:44px;padding:10px 24px;margin:0;width:auto}
.range-status{font-size:11px;line-height:1.6;color:var(--muted);margin:0 0 24px;min-height:18px}
.range-error{color:#9c2828;background:#fff1ed;border:1px solid #e5ab9d;border-radius:12px;padding:12px 16px;font-size:13px}
.dashboard-results{transition:opacity 150ms ease}
.dashboard-results[aria-busy=true]{opacity:.5}
.admin-active #ready .sales-chart .chart-column{display:flex;flex:1;flex-direction:column;gap:0;min-width:0;padding:0;border:0;border-radius:3px;background:transparent;color:var(--ink);font:inherit;min-height:0;cursor:pointer}
.admin-active #ready .sales-chart .chart-column:hover{background:color-mix(in srgb,var(--ink) 5%,transparent)}
.chart-column .chart-stack{width:100%;transform-origin:center bottom;animation:chart-grow 520ms cubic-bezier(.16,1,.3,1) both;animation-delay:var(--bar-delay,0ms)}
.chart-column .month-label{font-size:9px;line-height:1.2;white-space:normal}
.chart-detail{font-size:10px;line-height:1.5;color:var(--muted);margin:12px 0 0;min-height:30px}
.chart-empty{pointer-events:none}
.dashboard-grid>.dashboard-panel{animation:panel-arrive 420ms cubic-bezier(.16,1,.3,1) both}
.dashboard-grid>.dashboard-panel:nth-child(2){animation-delay:45ms}
.dashboard-grid>.dashboard-panel:nth-child(3){animation-delay:90ms}
.dashboard-grid>.dashboard-panel:nth-child(4){animation-delay:135ms}
.dashboard-grid>.dashboard-panel:nth-child(5){animation-delay:180ms}
.admin-active button:active:not(:disabled){transform:translateY(1px)}
.admin-active .workspace-content[data-module=overview]>div{animation:none}
@keyframes panel-arrive{from{opacity:.35;transform:translateY(12px);filter:blur(2px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@keyframes chart-grow{from{transform:scaleY(.05)}to{transform:scaleY(1)}}
.admin-active[data-admin-theme=dark] .dashboard-range :is(input,select){background:#211d27;color-scheme:dark}
.admin-active[data-admin-theme=dark] .range-error{background:#46282b;color:#ffccc3}
@media(max-width:760px){.dashboard-range{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dashboard-range label:first-child{grid-column:1/-1}.admin-active .dashboard-range :is(input,select){width:100%;font-size:16px;min-width:0}.dashboard-range>button{grid-column:1/-1}.range-status{margin-bottom:20px}.chart-column .month-label{font-size:8px}}
@media(prefers-reduced-motion:reduce){.dashboard-grid>.dashboard-panel,.chart-column .chart-stack{animation:none}.admin-active button:active:not(:disabled){transform:none}::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
