
/* Shared chrome for the storefront. Landing and admin retain their own shells. */
body.workspace-shell-page, #customer-orders {--sidebar:232px;--accent:#efa465;--accent-soft:#efa46512}
html[data-theme=light] body.workspace-shell-page, html[data-theme=light] #customer-orders {--accent:#a94d17;--accent-soft:#a94d1710}
body #server-sidebar.sidebar {width:var(--sidebar);padding:20px 12px;overflow-y:auto;overscroll-behavior:contain}
body #server-sidebar.sidebar .brand {flex-shrink:0}
body #server-sidebar.sidebar nav a {min-height:38px;gap:11px;margin-bottom:3px}
body #server-sidebar.sidebar nav a:hover {background:var(--hover);color:var(--text)}
body #server-sidebar.sidebar nav a.active {box-shadow:inset 3px 0 var(--accent);background:var(--raised);color:var(--text)}
body #server-sidebar.sidebar nav a.active .nav-symbol {color:var(--accent)}
body #server-sidebar.sidebar .sidebar-bottom {margin-top:auto;padding-top:14px}
body #server-sidebar.sidebar .nav-symbol svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}
body #server-sidebar.sidebar .sidebar-notification-count{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:6px;background:var(--accent);color:#24170d;font-size:11px;line-height:1;font-weight:700;font-variant-numeric:tabular-nums}
body #server-sidebar.sidebar .sidebar-notification-count[hidden]{display:none}
html[data-theme=light] body #server-sidebar.sidebar .sidebar-notification-count{color:#fff}
body #workspace-header.topbar.shared-topbar {position:sticky;top:0;z-index:25;display:flex;align-items:center;box-sizing:border-box;width:100%;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--bg);box-shadow:none;backdrop-filter:none}
body #workspace-header .topbar-right {display:flex;align-items:center;margin-left:auto;flex-shrink:0}
body #workspace-header svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
body #workspace-header [hidden] {display:none}
/* customer-dashboard.css pads the .customer-dashboard section (== #customer-orders) by
   26px/38px for the old flow; on routed pages that padding floats above the sticky
   header and below the footer-less main, showing the page bg as a band. */
body.workspace-shell-page #customer-orders{padding-top:0;padding-bottom:0}
:is(body,#customer-orders) .shared-dashboard>main {box-sizing:border-box;width:100%;max-width:1680px;margin:0 auto;padding:26px clamp(24px,3vw,48px) 28px;min-width:0}
:is(body,#customer-orders) .shared-dashboard .breadcrumbs {flex-wrap:wrap;row-gap:6px}
:is(body,#customer-orders) .shared-dashboard :is(.content-grid,.checkout-grid,.payment-layout,.details-column,.option-body) {min-width:0}
:is(body,#customer-orders) .shared-dashboard .panel-heading {flex-wrap:wrap}
:is(body,#customer-orders) .shared-dashboard footer {flex-wrap:wrap}
#workspace-header .notification-empty a {display:inline-block;margin-top:12px;color:var(--accent);font-size:12px}
@media(max-width:1150px){body.workspace-shell-page,#customer-orders{--sidebar:216px}}
@media(max-width:700px){body #server-sidebar.sidebar{width:232px}:is(body,#customer-orders) .shared-dashboard>main{padding:20px 16px 24px}}

#workspace-header .notification-center{position:relative;flex-shrink:0}
#workspace-header .notification-trigger{position:relative;color:var(--text)}
#workspace-header .notification-badge{position:absolute;top:-5px;right:-6px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border:2px solid var(--bg);border-radius:12px;background:var(--accent);color:#20150d;font-size:10px;font-weight:700;line-height:1}
#workspace-header .notification-badge[hidden],#workspace-header .notification-panel[hidden]{display:none}
#workspace-header .notification-panel{position:absolute;top:calc(100% + 15px);right:-58px;width:min(386px,calc(100vw - 28px));max-height:min(560px,calc(100vh - 94px));display:flex;flex-direction:column;overflow:hidden;border:1px solid color-mix(in srgb,var(--accent) 22%,var(--line));border-radius:12px;background:var(--panel);box-shadow:0 18px 42px #0005;z-index:50;color:var(--text)}
#workspace-header .notification-panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:18px 20px 15px;border-bottom:1px solid var(--line)}
#workspace-header .notification-eyebrow{display:block;margin-bottom:3px;color:var(--accent);font-size:10px;font-weight:700;letter-spacing:.1em}
#workspace-header .notification-panel h2{margin:0;font-size:18px;line-height:1.25;letter-spacing:-.35px}
#workspace-header .notification-read{padding:4px 0;border:0;background:none;color:var(--accent);font-family:inherit;font-size:11px;font-weight:600;line-height:1.3;white-space:nowrap;cursor:pointer}
#workspace-header .notification-read:disabled{color:var(--faint);cursor:default}
#workspace-header .notification-list{min-height:0;overflow-y:auto;overscroll-behavior:contain}
#workspace-header .notification-item{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;padding:15px 20px;border-bottom:1px solid var(--line);background:var(--panel)}
#workspace-header .notification-item:hover{background:var(--raised)}
#workspace-header .notification-item.is-unread{background:color-mix(in srgb,var(--accent) 5%,var(--panel))}
#workspace-header .notification-symbol{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-size:15px;font-weight:700}
#workspace-header .notification-item.is-delivered .notification-symbol{background:color-mix(in srgb,var(--green) 12%,transparent);color:var(--green)}
#workspace-header .notification-copy{min-width:0}
#workspace-header .notification-title{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:650}
#workspace-header .notification-title i{width:5px;height:5px;border-radius:50%;background:var(--accent);flex-shrink:0}
#workspace-header .notification-copy small{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.45;overflow-wrap:anywhere}
#workspace-header .notification-copy time{display:block;margin-top:7px;color:var(--faint);font-size:10px}
#workspace-header .notification-empty{padding:35px 22px;text-align:center}
#workspace-header .notification-empty strong{display:block;font-size:13px}
#workspace-header .notification-empty small{display:block;margin-top:5px;color:var(--muted);font-size:11px}
#workspace-header .notification-footer{display:flex;justify-content:space-between;padding:13px 20px;color:var(--accent);font-size:12px;font-weight:600}
#workspace-header .notification-footer:hover{background:var(--raised)}
@media(max-width:700px){#workspace-header .notification-panel{position:fixed;top:70px;left:14px;right:14px;width:auto;max-height:calc(100vh - 84px)}}

/* New updates stay brief; full history remains available through the bell. */
#workspace-header .notification-popup{--notice-accent:var(--accent);position:fixed;right:24px;bottom:24px;width:min(390px,calc(100vw - 32px));box-sizing:border-box;padding:20px;border:1px solid color-mix(in srgb,var(--notice-accent) 22%,var(--line));border-radius:14px;background:var(--panel);color:var(--text);box-shadow:0 12px 36px #0004;z-index:60;animation:notice-arrive .18s ease-out}
#workspace-header .notification-popup[hidden]{display:none}
#workspace-header .notification-popup-message{display:flex;gap:14px;padding-right:12px;min-width:0}
#workspace-header .notification-popup-message>div{min-width:0}
#workspace-header .notification-popup-symbol{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:12px;background:color-mix(in srgb,var(--notice-accent) 10%,transparent);border:1px solid color-mix(in srgb,var(--notice-accent) 20%,var(--line));color:var(--notice-accent);font-size:17px;font-weight:700}
#workspace-header .notification-popup-symbol svg{width:21px;height:21px}
#workspace-header .notification-popup-eyebrow{display:flex;align-items:center;gap:12px;font-size:9px;font-weight:650;letter-spacing:.07em;color:var(--notice-accent);margin:0 0 7px}
#workspace-header .notification-popup-eyebrow>span{font-size:10px;letter-spacing:0;font-weight:400;color:var(--muted)}
#workspace-header .notification-popup strong{display:block;font-size:16px;line-height:1.35;font-weight:650;letter-spacing:-.25px}
#workspace-header .notification-popup p{margin:5px 0 0;font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
#workspace-header .notification-popup small{display:block;margin-top:6px;color:var(--muted);font-size:11px}
#workspace-header .notification-popup-close{position:absolute;top:9px;right:9px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);font-family:inherit;font-size:20px;line-height:1;cursor:pointer}
#workspace-header .notification-popup-close:hover{background:var(--raised);color:var(--text)}
#workspace-header .notification-popup-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}
#workspace-header .notification-popup-link{display:flex;align-items:center;justify-content:center;gap:16px;min-height:34px;padding:7px 12px;border-radius:7px;background:color-mix(in srgb,var(--notice-accent) 12%,transparent);border:1px solid color-mix(in srgb,var(--notice-accent) 24%,var(--line));color:var(--notice-accent);font-size:12px;font-weight:650}
#workspace-header .notification-popup-link:hover{background:color-mix(in srgb,var(--notice-accent) 20%,transparent)}
#workspace-header .notification-popup-all{padding:0;border:0;background:transparent;color:var(--muted);font-family:inherit;font-size:11px;cursor:pointer}
#workspace-header .notification-popup-all:hover{color:var(--text)}
#workspace-header .notification-popup[data-type=delivered]{--notice-accent:var(--green)}
#workspace-header .notification-popup[data-type=delivered] .notification-popup-symbol{background:color-mix(in srgb,var(--green) 12%,transparent);color:var(--green)}
@keyframes notice-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){#workspace-header .notification-popup{right:16px;bottom:16px}}
@media(prefers-reduced-motion:reduce){#workspace-header .notification-popup{animation:none}}
#workspace-header .notification-sound{display:flex;align-items:center;gap:9px;width:100%;padding:11px 20px;border:0;border-top:1px solid var(--line);background:var(--panel);color:var(--muted);font-family:inherit;font-size:11px;text-align:left;cursor:pointer}
#workspace-header .notification-sound:hover{background:var(--raised)}
#workspace-header .notification-sound svg{width:15px;height:15px}
#workspace-header .notification-sound b{margin-left:auto;padding:2px 7px;border-radius:5px;background:var(--raised);color:var(--muted);font-size:10px;font-weight:600}
#workspace-header .notification-sound[aria-pressed=true] b{background:var(--accent-soft);color:var(--accent)}

/* Shared toolbar: a three-zone command bar on its own surface. Left names the
   workspace, the centre carries the catalog field, the right holds every account
   control inside a contained unit so nothing floats loose in the bar. */
body #workspace-header.topbar.shared-topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;height:64px;min-height:64px;padding-inline:20px;gap:18px;font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--panel);border-bottom-color:var(--line)}
body #workspace-header .header-left{display:flex;align-items:center;gap:4px;min-width:0}
body #workspace-header .header-context{display:flex;align-items:center;gap:11px;white-space:nowrap;padding:0;margin:0 0 0 6px;border:0}
body #workspace-header .header-context:before{content:"";width:1px;height:20px;background:var(--line)}
body #workspace-header .header-context strong{font-size:13px;font-weight:650;letter-spacing:-.01em;line-height:18px;color:var(--text)}
body #workspace-header .catalog-link{justify-self:center;position:relative;display:flex;align-items:center;box-sizing:border-box;gap:10px;width:min(460px,100%);min-width:0;height:40px;padding-inline:13px;border:1px solid var(--line);border-radius:11px;background:var(--bg);font-size:13px;white-space:nowrap;color:var(--muted);cursor:text}
body #workspace-header .catalog-link svg{width:16px;height:16px}
body #workspace-header .catalog-input{display:block;flex:1;min-width:0;width:auto;height:auto;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;color:var(--text);font:inherit;font-size:13px;line-height:20px}
body #workspace-header .catalog-input::placeholder{color:var(--muted);opacity:1}
body #workspace-header .catalog-input:focus{border:0;box-shadow:none;outline:none}
body #workspace-header .catalog-link:hover,body #workspace-header .catalog-link:focus-within{border-color:color-mix(in srgb,var(--accent) 40%,var(--line));box-shadow:0 0 0 3px var(--accent-soft);color:var(--text)}
body #workspace-header .catalog-results{position:absolute;top:calc(100% + 8px);left:0;right:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 18px 42px #0005;z-index:60}
body #workspace-header .catalog-result{display:flex;align-items:center;gap:11px;padding:10px 12px;border-bottom:1px solid var(--line);color:var(--text);text-decoration:none}
body #workspace-header .catalog-result:hover,body #workspace-header .catalog-result.active{background:var(--raised)}
body #workspace-header .catalog-result-mark{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-size:10.5px;font-weight:700;letter-spacing:.02em}
body #workspace-header .catalog-result-copy{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
body #workspace-header .catalog-result-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:600}
body #workspace-header .catalog-result-copy small{color:var(--muted);font-size:11px}
body #workspace-header .catalog-result-state{flex-shrink:0;color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
body #workspace-header .catalog-result-state.available{color:var(--green)}
body #workspace-header .catalog-result-all{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;color:var(--accent);font-size:12px;font-weight:600}
body #workspace-header .catalog-result-all:hover{background:var(--raised)}
body #workspace-header .catalog-result-none{margin:0;padding:13px 12px;color:var(--muted);font-size:12px}
body #workspace-header .topbar-right{display:flex;align-items:center;gap:8px;margin-left:0;flex-shrink:0}
body #workspace-header .header-tools{display:flex;align-items:center;padding:3px;border:1px solid var(--line);border-radius:11px;background:var(--raised)}
body #workspace-header .header-tools .notification-center{display:flex;align-items:center}
body #workspace-header .header-tools .notification-center:after{content:"";width:1px;height:18px;margin-inline:3px;background:var(--line)}
body #workspace-header .icon-button{position:relative;box-sizing:border-box;display:grid;place-items:center;width:40px;min-width:40px;height:40px;padding:0;border:1px solid transparent;border-radius:11px;background:transparent;box-shadow:none;transform:none;flex-shrink:0;color:var(--muted)}
body #workspace-header .icon-button svg{width:18px;height:18px}
body #workspace-header .icon-button:hover{color:var(--text);background:var(--raised)}
body #workspace-header .header-tools .icon-button{width:34px;min-width:34px;height:34px;border-radius:8px}
body #workspace-header .header-tools .icon-button:hover{background:color-mix(in srgb,var(--text) 7%,transparent)}
body #workspace-header .notification-trigger[aria-expanded=true]{color:var(--text);background:color-mix(in srgb,var(--text) 9%,transparent)}
body #workspace-header .notification-badge{top:0;right:0;min-width:17px;height:17px;padding:0 4px;border:2px solid var(--raised);font-size:9.5px}
body #workspace-header .topbar-right>.button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;gap:8px;height:40px;min-height:40px;margin:0;padding-inline:14px;background:transparent;border:1px solid var(--line);border-radius:11px;font-size:12.5px;font-weight:600;line-height:1;white-space:nowrap;color:var(--muted)}
body #workspace-header .topbar-right>.button:hover{color:var(--text);background:var(--raised)}
body #workspace-header #workspace-account{background:var(--accent);border-color:transparent;color:#24170d}
html[data-theme=light] body #workspace-header #workspace-account{color:#fff}
body #workspace-header #workspace-account:hover{background:color-mix(in srgb,var(--accent) 86%,var(--text));color:#24170d}
html[data-theme=light] body #workspace-header #workspace-account:hover{color:#fff}
body #workspace-header .header-profile{display:flex;align-items:center;box-sizing:border-box;gap:9px;height:40px;min-width:0;padding:0 12px 0 5px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--text);text-decoration:none}
body #workspace-header .header-profile .avatar{display:grid;place-items:center;margin:0;width:30px;height:30px;border:0;border-radius:50%;flex-shrink:0;background:var(--accent-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 25%,transparent);color:var(--accent);font-size:12px;font-weight:650}
body #workspace-header .header-profile-copy{display:flex;align-items:center;min-width:0}
body #workspace-header .header-profile-copy strong{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;line-height:18px}
body #workspace-header .header-profile-arrow{display:grid;place-items:center;color:color-mix(in srgb,var(--muted) 80%,transparent)}
body #workspace-header .header-profile-arrow svg{width:13px;height:13px}
body #workspace-header .header-profile:hover{background:var(--raised)}
body #workspace-header :is(a,button):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:1200px){body #workspace-header .catalog-link{width:min(340px,100%)}}
@media(max-width:1000px){body #workspace-header .header-context{display:none}body #workspace-header .header-left{gap:0}}
@media(max-width:760px){body #workspace-header.topbar.shared-topbar{height:60px;min-height:60px;padding-inline:12px;gap:10px}body #workspace-header .catalog-link{width:auto;justify-self:stretch}body #workspace-header .topbar-right{gap:6px}body #workspace-header .topbar-right>.button{padding-inline:10px}body #workspace-header .header-profile{padding-inline:5px}body #workspace-header .header-profile-copy,body #workspace-header .header-profile-arrow{display:none}}

/* Interaction polish: one easing scale for the whole console so hovers, theme
   swaps and the sidebar all settle the same way instead of snapping. */
:root{--ease:cubic-bezier(.22,.7,.25,1);--quick:130ms;--calm:240ms}
body,.sidebar,.dashboard,#workspace-header,.panel,.spec-table,.summary-strip,.summary-item,.stepper,.avatar,.status,.catalog-link,.notification-panel,.notification-popup,.notification-item,.notification-sound,.section-nav a,.breadcrumbs a{transition:background-color var(--calm) var(--ease),border-color var(--calm) var(--ease),color var(--calm) var(--ease),box-shadow var(--quick) var(--ease)}
a,button{transition:background-color var(--quick) var(--ease),border-color var(--quick) var(--ease),color var(--quick) var(--ease),box-shadow var(--quick) var(--ease),opacity var(--quick) var(--ease)}
.dashboard{transition:margin-left var(--calm) var(--ease)}
.sidebar{transition:transform var(--calm) var(--ease),opacity var(--quick) linear,visibility 0s,background-color var(--calm) var(--ease),border-color var(--calm) var(--ease)}
body.sidebar-collapsed .sidebar,body.sidebar-collapsed #customer-orders .sidebar{display:flex;visibility:hidden;opacity:0;pointer-events:none;transform:translateX(-100%);transition:transform var(--calm) var(--ease),opacity var(--quick) linear,visibility 0s var(--calm),background-color var(--calm) var(--ease),border-color var(--calm) var(--ease)}
@media(max-width:700px){
.sidebar,#customer-orders .sidebar{display:flex;visibility:hidden;opacity:0;pointer-events:none;transform:translateX(-100%)}
body.sidebar-open .sidebar,body.sidebar-open #customer-orders .sidebar{visibility:visible;opacity:1;pointer-events:auto;transform:none}
}
#workspace-header .notification-panel:not([hidden]){transform-origin:top right;animation:panel-arrive 180ms var(--ease) both}
@keyframes panel-arrive{from{opacity:0;transform:translateY(-6px) scale(.99)}to{opacity:1;transform:none}}
:is(body,#customer-orders) .shared-dashboard>main{animation:console-arrive 260ms ease-out backwards}
@keyframes console-arrive{from{opacity:0}}
:active-view-transition ::is(body,#customer-orders) .shared-dashboard>main{animation:none}
#customer-orders .shared-dashboard>main[data-workspace-view]{animation:none}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important;scroll-behavior:auto!important}}
