body{font-size:16px;line-height:1.5;background:#efeee7}.muted,.small,.filename,.history span{color:var(--muted)}.brand img{width:190px}.primary{background:var(--red);border-color:var(--red);color:var(--card);box-shadow:0 2px 0 var(--red-dark)}.primary:hover{background:var(--red-dark)}button{color:var(--ink);background:var(--card);border-color:var(--line);font-size:16px}button:hover{background:var(--paper)}input:not([type=checkbox]),select,textarea{font-size:16px;color:var(--ink);background:var(--card);border-color:#a6ada8}.small{font-size:13px}label{font-size:15px}h1{font-size:46px}h2{font-size:28px}.panel,.stat,.table-wrap{background:var(--card);border-color:var(--line)}.admin-shell{grid-template-columns:244px minmax(0,1fr)}.sidebar{background:var(--ink);padding:32px 22px;color:var(--paper)}.sidebar nav a{color:var(--paper);font-size:16px;border-left:3px solid transparent;border-radius:5px}.sidebar nav a[aria-current=page]{background:#ffffff12;border-left-color:var(--gold)}.sidebar nav a:hover{background:#ffffff18}.sidebar .eyebrow{color:#bdc8c8;font-size:11px}.sidebar-bottom{border-top:1px dashed #ffffff40;padding-top:20px;margin-top:auto;color:#c4ccca}.topbar{background:transparent;border-color:var(--line);font-size:14px;padding:25px 36px}.topbar button{font-size:14px}.topbar a:hover,.view-links a,td a{color:var(--red)}.admin-main main{padding:32px 36px}.stat{position:relative;overflow:hidden;padding:23px}.stat:before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:var(--ink)}.stat:nth-child(2):before{background:var(--nw)}.stat:nth-child(3):before{background:var(--gold)}.stat:nth-child(4):before{background:var(--red)}.stat span{font-size:14px;color:var(--muted)}.stat strong{font:46px/1 var(--display);margin-top:14px}.stats{gap:17px}.panel{border-radius:12px}.dashboard-panels{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:22px}.dashboard-panels .panel{margin:0}.catalog-row{display:flex;align-items:center;gap:16px;padding:18px 0;border-top:1px solid var(--line);text-decoration:none}.catalog-row img{width:85px;height:60px;object-fit:contain;background:#ede8df;border-radius:5px}.catalog-row strong{display:block;font-size:16px}.catalog-row .small{display:block}.catalog-row>span:last-child{color:var(--red);font-size:24px;margin-left:auto}.view-links a{min-height:44px;display:flex;align-items:center;font-size:15px}.dashboard-panels .view-links{display:grid;gap:8px}th{background:#eeeade;color:var(--muted);font-size:12px}td{font-size:15px;border-color:var(--line)}td img,.photo-main,.photo-gallery img{background:#ede8df}.pill{font-size:12px}.pill.draft{background:#f9e8c9;color:#735117}.history{font-size:14px}.notice{background:#f9e8c9;border-color:#e5c78b}.nav-toggle{color:var(--paper);background:#ffffff12;border-color:#ffffff40}
.login-page{padding:40px;min-height:100vh}.login-shell{display:grid;grid-template-columns:1fr 1fr;max-width:1040px;width:100%;min-height:630px;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 16px 35px #172f4012;background:var(--card)}.login-story{padding:46px;background:var(--ink);color:var(--paper);display:flex;flex-direction:column;justify-content:space-between;gap:36px;border-bottom:6px solid var(--red)}.login-story h2{font-size:62px;margin:0 0 22px;line-height:1}.login-story h2 em{font-style:normal;color:var(--gold)}.login-story p{color:#c4ccca}.login-story .eyebrow{font-size:11px;color:var(--gold)}.login-card{border:0;border-radius:0;box-shadow:none;width:auto;padding:52px 46px;background:var(--card);align-self:center}.login-card h1{font-size:44px}.login-card form{margin:30px 0 24px}.login-card>p.muted{font-size:16px}.login-card #message:empty{display:none}.login-card .brand{display:none}
@media(max-width:1100px){.dashboard-panels{grid-template-columns:1fr}.topbar{padding:22px 28px}.admin-main main{padding:28px}.topbar>div{gap:14px}}
@media(max-width:720px){.admin-shell{display:block}.sidebar{padding:18px 20px}.sidebar .brand{padding:0}.sidebar .brand img{width:155px}.sidebar .eyebrow{margin-top:14px}.nav-toggle{top:27px}.sidebar nav a{font-size:15px}.sidebar-bottom{display:none}.topbar{padding:18px}.topbar>div{gap:12px}.topbar a{min-height:44px;display:flex;align-items:center}.admin-main main{padding:24px 16px}.page-heading h1{font-size:38px}.stat{padding:20px 16px}.stat strong{font-size:38px}.stat span{font-size:13px}.form-grid{grid-template-columns:1fr}.panel{padding:20px}.login-page{padding:18px}.login-shell{grid-template-columns:1fr;min-height:0}.login-story{padding:26px;gap:24px}.login-story h2{font-size:38px;margin:0}.login-story>div>p,.login-story>.eyebrow{display:none}.login-story .brand img{width:175px}.login-card{padding:30px 24px}.login-card h1{font-size:38px}.toolbar input{min-width:0;flex-basis:100%}.toolbar select{width:100%}.editor{grid-template-columns:minmax(0,1fr)}.photo-main{max-width:100%}.page-heading{flex-wrap:wrap}.catalog-row{gap:12px}.catalog-row img{width:65px}.catalog-row strong{overflow-wrap:anywhere}}

/* Admin section themes. Scoped to the console, never the storefront or login. */
body[data-admin-section]{--section-accent:#172f40;--section-tint:#eef1f3;--section-products:#365d83;--section-inventory:#507c56;--section-orders:#a07136;--section-reports:#756092;--section-warnings:#af5847;--section-settings:#606970;--section-review:#aa8539;--section-accounts:#536d80;--red:#a83b2d;--red-dark:#8e3023;background:var(--paper)}
body[data-admin-section=products]{--section-accent:var(--section-products);--section-tint:#edf2f7}
body[data-admin-section=inventory]{--section-accent:var(--section-inventory);--section-tint:#eef3ed}
body[data-admin-section=orders]{--section-accent:var(--section-orders);--section-tint:#faf3e8}
body[data-admin-section=reports]{--section-accent:var(--section-reports);--section-tint:#f2eff6}
body[data-admin-section=warnings]{--section-accent:var(--section-warnings);--section-tint:#faefeb}
body[data-admin-section=settings],body[data-admin-section=password]{--section-accent:var(--section-settings);--section-tint:#f0f1f1}
body[data-admin-section=review]{--section-accent:var(--section-review);--section-tint:#faf5e8}
body[data-admin-section=accounts]{--section-accent:var(--section-accounts);--section-tint:#eff3f5}
body[data-admin-section] .page-heading{border-bottom:3px solid var(--section-accent);padding-bottom:22px;margin-bottom:26px;align-items:center}
.section-kicker{display:flex;gap:12px;align-items:center;margin-bottom:12px}.section-kicker .eyebrow{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.section-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;background:var(--section-tint);color:var(--section-accent);flex-shrink:0}
.section-icon svg,.sidebar nav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.page-subtitle{margin:12px 0 0;color:var(--muted);max-width:65ch;font-size:16px}
body[data-admin-section] .sidebar nav a{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 10px;position:relative}
body[data-admin-section] .sidebar nav a[aria-current=page]{border-left-color:var(--section-accent);background:#ffffff16;box-shadow:inset 0 0 0 1px #ffffff30;text-decoration:underline;text-underline-offset:5px;font-weight:700}
body[data-admin-section] .sidebar nav svg{width:20px;height:20px}.sidebar .warning-badge{margin-left:auto}
body[data-admin-section] .stat:before{background:var(--section-accent)}
body[data-admin-section] th{background:var(--section-tint);color:var(--ink);font-size:14px;letter-spacing:.02em;padding:18px 16px}
body[data-admin-section] td{font-size:16px;padding:18px 16px}
body[data-admin-section] .small,body[data-admin-section] .pill{font-size:14px}
body[data-admin-section] .table-wrap{max-width:100%}.catalog-table td img{width:128px;height:82px;object-fit:contain}.stock-table td img{width:56px;height:40px;object-fit:contain}
body[data-admin-section] .product-title-link{display:inline-flex;align-items:center;min-height:44px;font-weight:700;line-height:1.4;color:var(--ink);text-decoration:underline;text-decoration-color:#9fa8ac}
body[data-admin-section] .product-name{min-width:240px;max-width:360px}
body[data-admin-section] .row-action{display:inline-flex;min-height:44px;padding:9px 14px;align-items:center;justify-content:center;border:1px solid var(--section-accent);border-radius:6px;text-decoration:none;color:var(--ink);font-weight:600;background:var(--section-tint)}
body[data-admin-section] .row-action:hover{background:var(--card);text-decoration:underline}.stock-history-link{display:flex;min-height:44px;align-items:center;margin-top:5px;color:var(--ink)}
.stock-count{display:block;font:32px/1.15 var(--display);margin-bottom:8px}.stock-cell{min-width:145px}.pill.stock-low{background:#fff0d4;color:#754510}.pill.stock-out{background:#f7e4e0;color:#8e3023}.pill.stock-in{background:#e7f1e7;color:#305336}.pill.stock-uncounted,.pill.stock-untracked{background:#eef0f1;color:#435762}
.inventory-overview{margin-bottom:24px}.inventory-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:10px}.inventory-overview>.row-action{margin-top:6px}
body[data-admin-section] .bulk-panel-toggle{background:var(--section-tint)}
body[data-admin-section] .report-tabs{gap:8px;padding-bottom:14px;border-bottom:1px solid var(--line)}
body[data-admin-section] .report-tabs a{border-color:#a79bb7;background:var(--card);line-height:1.4;white-space:normal;text-align:center;color:var(--ink);font-size:16px}
body[data-admin-section] .report-tabs a[aria-current]{background:var(--section-reports);border-color:var(--section-reports);color:white;text-decoration:underline;text-underline-offset:4px}
.order-card{border-top:3px solid var(--section-accent)}.order-card[data-order-state=awaiting]{border-left:4px solid #a07136}.order-card[data-order-state=complete]{border-left:4px solid #507c56}.order-next{background:var(--section-tint);color:var(--ink);font-weight:bold}.order-meta{padding:16px;background:var(--section-tint);border-radius:7px;gap:16px}.order-meta>strong:last-child{font:30px/1.2 var(--display)}
body[data-admin-section] :is(button,a,input,select,textarea,summary,.table-wrap):focus-visible{outline:3px solid #365d83;outline-offset:4px}.sidebar a:focus-visible,.sidebar button:focus-visible{outline-color:#f7f2e7!important}
body[data-admin-section] button,body[data-admin-section] input:not([type=checkbox]),body[data-admin-section] select{min-height:44px}
@media(max-width:1024px){body[data-admin-section] .page-heading{align-items:flex-start}.section-kicker .eyebrow{max-width:45ch}}
@media(max-width:720px){body[data-admin-section] .sidebar nav a{flex:1 1 140px}.section-kicker{gap:10px}.section-kicker .eyebrow{font-size:12px}.page-subtitle{font-size:16px}.inventory-stats{grid-template-columns:1fr}.inventory-stats .stat{display:flex;align-items:center;justify-content:space-between;gap:16px}.inventory-stats .stat strong{margin:0;font-size:36px}.inventory-stats .stat span{font-size:16px}body[data-admin-section] .page-heading{padding-bottom:20px}body[data-admin-section] .report-tabs a{flex:1 1 135px}.order-meta{flex-wrap:wrap}.order-meta>*{min-width:0}body[data-admin-section] .topbar{font-size:16px}body[data-admin-section] .topbar button{font-size:16px}}
@media(prefers-reduced-motion:reduce){body[data-admin-section] *,body[data-admin-section] *:before,body[data-admin-section] *:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
body[data-admin-section] input:not([type=checkbox]),body[data-admin-section] select,body[data-admin-section] textarea{border-color:#7e8b90}
body[data-admin-section] .catalog-table td:nth-child(2){min-width:160px}
body[data-admin-section] .catalog-table td img{min-width:128px}
body[data-admin-section] .stock-table td img{min-width:56px}
body[data-admin-section] .inventory-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1100px){body[data-admin-section] .inventory-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){body[data-admin-section] .inventory-stats{grid-template-columns:1fr}}
.orders-overview{margin-bottom:24px}.orders-stats{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:10px}.orders-stats .stat{min-width:0}.orders-stats .stat strong{overflow-wrap:anywhere}
@media(max-width:1200px){.orders-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.orders-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.orders-stats .stat{padding:18px}.orders-stats .stat strong{font-size:36px}.orders-stats .stat span{font-size:16px}}
@media(max-width:350px){.orders-stats{grid-template-columns:1fr}.orders-stats .stat{display:flex;align-items:center;justify-content:space-between;gap:12px}.orders-stats .stat strong{margin:0}}
.unified-catalog{max-width:100%;min-width:0;overflow-x:auto}.unified-catalog table{width:100%;min-width:0;table-layout:fixed;white-space:normal}.unified-catalog th:first-child{width:52px}.unified-catalog th:nth-child(2){width:144px}.unified-catalog th:nth-child(3){width:auto}.unified-catalog th:nth-child(5){width:150px}.unified-catalog th:nth-child(6){width:140px}.unified-catalog th:nth-child(4){width:85px}.unified-catalog th:last-child{width:142px}.unified-catalog td{vertical-align:middle;min-width:0;overflow-wrap:anywhere}.unified-catalog td img{width:128px;max-width:100%;height:82px;object-fit:contain}.unified-catalog .product-title-link{display:block;min-width:0;font-weight:700}.catalog-location,.catalog-sku,.catalog-threshold,.catalog-tracking,.catalog-updated,.catalog-review{display:block;margin-top:6px;font-size:14px;color:var(--muted)}.catalog-count{display:block;font-size:22px;margin-bottom:6px}.unified-catalog .pill{white-space:nowrap;display:inline-block;margin:3px 3px 3px 0}.catalog-information{margin-top:8px}.catalog-information summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:14px;text-decoration:underline}.catalog-information summary:before{content:'▸';margin-right:6px}.catalog-information[open] summary:before{content:'▾'}.catalog-information p{margin:6px 0;white-space:normal;overflow-wrap:anywhere}.unified-catalog .row-action{white-space:nowrap;display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px}.catalog-adjust{display:flex;align-items:center;min-height:44px;margin-top:6px}.catalog-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.catalog-filters input[type=search]{grid-column:1/-1;min-width:0}.catalog-filters select{width:100%;min-width:0}.csv-panel summary{cursor:pointer;min-height:44px;font-weight:bold}.csv-panel .table-wrap{max-width:100%;overflow:auto}.csv-panel td{max-width:450px;overflow-wrap:anywhere}.csv-panel button{margin-right:12px;margin-top:12px}
@media(max-width:1200px){.unified-catalog th:nth-child(2){width:105px}.unified-catalog th:last-child{width:120px}.unified-catalog th:nth-child(3){width:auto}.unified-catalog td,.unified-catalog th{padding:12px 8px}.catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.unified-catalog table,.unified-catalog tbody{display:block}.unified-catalog thead{display:block}.unified-catalog thead tr{display:flex}.unified-catalog thead th:not(:first-child){display:none}.unified-catalog thead th:first-child{width:auto}.unified-catalog thead .selection-control{display:flex;align-items:center;gap:10px;white-space:nowrap}.unified-catalog thead .selection-control:after{content:"Select all on this page"}.unified-catalog tr{display:grid;grid-template-columns:52px 128px minmax(0,1fr);padding:14px;gap:8px;border-bottom:1px solid var(--line)}.unified-catalog td{display:block;border:0;padding:0}.unified-catalog td:nth-child(4),.unified-catalog td:nth-child(5),.unified-catalog td:nth-child(6),.unified-catalog td:nth-child(7){grid-column:2/-1}.unified-catalog td:nth-child(4):before{content:'Price: ';font-weight:bold}.unified-catalog td:last-child{display:flex;gap:12px;flex-wrap:wrap}.catalog-updated{margin-top:8px}.catalog-adjust{margin:0}.unified-catalog .row-action{padding:8px 16px}}
@media(max-width:720px){.catalog-filters{grid-template-columns:1fr}.unified-catalog tr{grid-template-columns:44px minmax(0,1fr)}.unified-catalog td:nth-child(3){grid-column:1/-1}.unified-catalog td:nth-child(n+4){grid-column:1/-1}.unified-catalog td:nth-child(2) img{width:160px;height:100px}.catalog-location,.catalog-sku,.catalog-threshold,.catalog-tracking,.catalog-updated,.catalog-review,.catalog-information summary{font-size:16px}}
.inventory-count{display:inline-block;padding:5px 10px;border-radius:6px;font-weight:700;line-height:1.4}.inventory-count-low{background:#fbe2df;color:#8b2720}.inventory-count-healthy{background:#dcf3e4;color:#185b32}.pill.stock-low{background:#fbe2df;color:#8b2720}
