/* Load last on every interactive Simple Eats page. Feature CSS owns layout;
   these shared tokens and primitives own the visual and interaction defaults. */
:root{
  color-scheme:only light;
  --font-body:Montserrat,Arial,sans-serif;
  --font-heading:"League Spartan",Arial,sans-serif;
  --text-small:.875rem;
  --text-control:1rem;
  --text-body:1.125rem;
  --surface:#fff;
  --radius-control:12px;
  --radius-button:999px;
  --radius-panel:20px;
  --radius-image:16px;
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;
  --ease-soft:cubic-bezier(.22,1,.36,1);
  --duration-fast:180ms;--duration-enter:360ms;
  --focus-ring:3px solid var(--purple);
  --shadow-panel:0 16px 48px #25272216;
}
html{font-size:100%;text-size-adjust:100%;-webkit-text-size-adjust:100%}
body{font-size:var(--text-body);line-height:1.65}
body :is(button,.button,input,select,textarea,.field,.text-link){font-size:var(--text-control)}
body small{font-size:var(--text-small);line-height:1.6}
body :is(.badge,.status-pill,.eyebrow,.preview-bar){line-height:1.5;letter-spacing:.06em}
body :is(.manager-header,.manager-header nav,.manager-toolbar,.preview-toolbar){flex-wrap:wrap}
body :is(.manager-header nav,.manager-toolbar>.actions){min-width:0;max-width:100%}
body :is(.form-grid,.review-columns,.section-types)>*{min-width:0}
body :is(.hero,.page-heading){height:auto}
body .site-header{height:auto;min-height:8rem}
body .site-header :is(nav a,.header-right>a,.info-menu>summary){font-size:var(--text-control);line-height:1.5}
body .bag span{width:auto;height:auto;min-width:1.75rem;min-height:1.75rem}
body .site-footer{grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
@media(max-width:75rem){
 body .site-header{grid-template-columns:1fr auto 1fr;min-height:6.5rem;padding:8px 20px}
 body .site-header .mobile-only{display:inline-flex;justify-self:start}
 body .site-header .brand img{width:88px;height:88px}
 body .site-header .desktop-link{display:none}
 body .site-header nav{display:none;position:absolute;top:100%;left:0;right:0;padding:24px;background:white;border-bottom:1px solid var(--line);box-shadow:0 10px 15px #0000000b}
 body .site-header nav.open{display:flex;flex-direction:column;align-items:stretch;gap:16px;max-height:70dvh;overflow:auto}
}
@media(max-width:45rem){
 body :is(.form-grid,.plan-options,.review-columns,.section-types){grid-template-columns:minmax(0,1fr)}
 body .hero-copy{padding:32px 24px}
 body .header-right{gap:8px}
 body .manager-header nav{margin-left:0}
}
body :is(.button,button.primary,.ui-button){
  border-radius:var(--radius-button);min-height:44px;line-height:1.45;white-space:normal;text-align:center;
  transition:background-color var(--duration-fast) ease,color var(--duration-fast) ease,border-color var(--duration-fast) ease,box-shadow 220ms ease,transform 220ms var(--ease-soft);
}
body :is(.tool-button,.preview-toolbar button,.menu-builder button:not(.text-link)){border-radius:var(--radius-control)}
button{border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface);color:var(--ink);padding:10px 14px;line-height:1.45}
body :is(button,input,select,textarea){font-family:var(--font-body)}
body button:where(:not(.product-image):not([data-product]):not(.media-tile)){min-height:44px}
body .ui-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:15px 24px;border:1px solid var(--purple);background:var(--purple);color:white;font-weight:600;text-decoration:none}
body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=submit]):not([type=button]),select,textarea){
  min-width:0;min-height:44px;max-width:100%;border:1px solid var(--line);border-radius:var(--radius-control);
  background:var(--surface);color:var(--ink);padding:12px 14px;line-height:1.5;
  transition:border-color var(--duration-fast) ease,box-shadow var(--duration-fast) ease;
}
body textarea{font:inherit;resize:vertical;min-height:100px}
body :is(input[type=checkbox],input[type=radio]){accent-color:var(--purple)}
body :is(input,select,textarea):disabled{background:var(--cream);color:var(--muted);opacity:.75;cursor:not-allowed}
body :is(button,.button):disabled{cursor:not-allowed;transform:none;box-shadow:none}
body :is(input,textarea)::placeholder{color:var(--muted);opacity:.8}
body :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:var(--focus-ring);outline-offset:4px}
body :is(input,select,textarea):focus-visible{border-color:var(--purple);box-shadow:0 0 0 4px #64516810}
body :is(.icon-button,.round-add){min-width:44px;min-height:44px;flex-shrink:0;border-radius:50%}
body button.text-link{min-height:44px}
body :is(.ui-panel,.summary-box,.order-group,.email-preview,.guest-count-editor,.custom-cards article,.notification-options,.preferences-card){border-radius:var(--radius-panel)}
body :is(.ui-notice,.note,.notice,.weekly-location-tax){border-radius:var(--radius-control)}
body .weekly-request-link{border-radius:var(--radius-control)}
body :is(.ui-title,.product-detail h2,.product-card h3,.cart-line h3,.custom-cards h3){line-height:1.3;letter-spacing:normal;overflow-wrap:anywhere;text-wrap:pretty}
body :is(.ui-panel,.ui-notice,.field){min-width:0;overflow-wrap:anywhere}
body :is(.ui-dialog,dialog){border-radius:var(--radius-panel);color-scheme:only light}
body .ui-dialog{padding:0;overflow:hidden;max-height:90vh;max-height:90dvh;box-shadow:var(--shadow-panel)}
.ui-dialog>.ui-dialog-content{max-height:calc(90vh - 24px);max-height:calc(90dvh - 24px);margin:12px 6px 12px 0;padding:32px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9c90a0 transparent}
.ui-dialog>.dialog-close{position:absolute;top:12px;right:16px;z-index:3}
.ui-empty{text-align:center;padding:var(--space-8);background:var(--cream);border:1px solid var(--line);border-radius:var(--radius-panel)}
.ui-empty p{max-width:520px;margin-inline:auto}
.site-header nav a[aria-current=page]{color:var(--purple);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:7px}
@media(hover:hover) and (pointer:fine){
  body :is(.button,button.primary,.ui-button):hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 18px #25272218}
}
body :is(.button,button.primary,.ui-button):active:not(:disabled){transform:translateY(1px);box-shadow:none}
@media(prefers-reduced-motion:no-preference){
  html:not([data-motion=off]) .ui-enter{animation:ui-entrance var(--duration-enter) var(--ease-soft) both}
}
html[data-motion=on] .ui-enter{animation:ui-entrance var(--duration-enter) var(--ease-soft) both}
@keyframes ui-entrance{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){html:not([data-motion=on]) *,html:not([data-motion=on]) *::before,html:not([data-motion=on]) *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-motion:reduce){html:not([data-motion=on]) :is(.button,button.primary,.ui-button){transform:none!important}}
html[data-motion=off] *,html[data-motion=off] *::before,html[data-motion=off] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html[data-motion=off] :is(.button,button.primary,.ui-button){transform:none!important}
@media(forced-colors:active){body :is(a,button,input,select,textarea,summary):focus-visible{outline-color:Highlight}.ui-dialog>.ui-dialog-content{scrollbar-color:auto}}
@media(max-width:720px){body :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:var(--text-control)}}

/* ==========================================================================
   Customer storefront: fluid sizing, touch targets, wide and short screens.
   Everything here is sized in rem, clamp() or percentages so it follows the
   visitor's text size and the width and height they actually have. Rules are
   scoped to storefront classes; the staff pages below are not touched.
   ========================================================================== */
:root{
  --gutter:clamp(1rem,4vw,2.5rem);
  --content-max:77.5rem;
  --tap:2.75rem;
  --grid-gap:clamp(1rem,2vw,1.625rem);
  --edge:max(var(--gutter),calc((100% - var(--content-max))/2 + var(--gutter)));
}
html{scroll-padding-block:1rem}
/* One scale for every screen: past full HD the whole page, type and spacing together, grows with the screen. */
@media(min-width:120rem){:root{font-size:112.5%}}
@media(min-width:150rem){:root{font-size:125%}}
@media(min-width:210rem){:root{font-size:156.25%}}
body{padding-inline:env(safe-area-inset-left) env(safe-area-inset-right)}

/* Header and footer follow the same content width as the pages between them. */
body .site-header{padding-inline:var(--edge);grid-template-columns:1fr auto 1fr}
body .site-footer{padding-inline:var(--edge);padding-block:clamp(2.25rem,5vw,3.5rem) 1.5rem}
body .brand img{width:clamp(4.5rem,9vw,6.5rem);height:auto;aspect-ratio:1/1;object-fit:contain}
@media(max-width:75rem){body .site-header{padding-inline:1rem}body .site-header .brand img{width:clamp(4.5rem,18vw,5.5rem);height:auto}}
body .site-footer img{flex:none;width:6.25rem;height:auto;aspect-ratio:1/1}
/* Four even columns on a wide screen, two on a tablet, one on a phone, all inside the same centred content width as the page. */
body .site-footer{grid-template-columns:minmax(0,1fr);gap:2rem var(--grid-gap)}
@media(min-width:40rem){body .site-footer{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:64rem){body .site-footer{grid-template-columns:repeat(4,minmax(0,1fr))}}
body .site-footer>div:first-child{grid-column:auto;align-items:center;align-self:start}
@media(min-width:40rem) and (max-width:63.99rem){body .site-footer>div:first-child{grid-column:1/-1}}
body .site-footer>.footer-note{grid-column:1/-1}
body .site-footer>div:first-child p{margin:0}
body .header-right{gap:.25rem 1rem}

/* Touch targets: 44px tall with a little room between neighbours. */
body .site-header nav>a,body .header-right>a,body .info-menu>summary,body .info-menu>div a{display:inline-flex;align-items:center;min-height:var(--tap)}
body .info-menu>div a{display:flex}
body .bag{min-height:var(--tap);padding-inline:.25rem;gap:.5rem}
body .bag .bag-kind{display:inline-flex;align-items:center;line-height:1;white-space:nowrap}
@media(max-width:25rem){
  body .bag .bag-kind{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
body .site-footer a:not(:has(img)),body .site-footer button.text-link{display:flex;align-items:center;justify-content:flex-start;min-height:var(--tap);margin:0 0 .5rem;padding:.25rem 0;font-size:var(--text-control);text-align:left}
body .site-footer p{font-size:var(--text-control)}
@media(max-width:720px){body .site-footer p,body .site-footer a{font-size:var(--text-control)}}
body a.text-link,body .promotion-banner a{display:inline-flex;align-items:center;min-height:var(--tap)}
body .weekly-request summary,body .customer-header nav a,body .account-footer a,body .preferences-back{display:flex;align-items:center;min-height:var(--tap)}
body .weekly-pickup-links a,body .weekly-pickup-links button,body .pickup-links a{display:inline-flex;align-items:center;min-height:var(--tap);font-size:var(--text-control)}
body .product-card h3 button{display:flex;align-items:center;min-height:var(--tap);padding-block:.25rem;width:100%}
body .product-card h3{margin-block:.25rem}
body .signup-consent{min-height:var(--tap);align-items:center}
body .signup-consent input{flex:0 0 1.25rem;width:1.25rem;height:1.25rem;margin:0}
body .cart-line .remove{margin-left:.75rem}
body .dietary-filter-options{gap:.5rem 1rem}
body .promotion-banner{padding:.25rem var(--gutter);font-size:var(--text-control)}

/* Page rhythm scales with the screen instead of jumping at two widths. */
body .section{max-width:var(--content-max);padding:clamp(2.5rem,6vw,4.6875rem) var(--gutter)}
body .page-heading{padding:clamp(2.25rem,5vw,3.5rem) var(--gutter)}
body .promise-strip{padding-inline:var(--gutter)}
body .info-cta{padding-inline:var(--edge)}
@media(max-width:720px){body .promise-strip{gap:.5rem 1.25rem}}
body :is(h1,.hero h1){letter-spacing:-.025em}
body h2{letter-spacing:-.02em;line-height:1.2}
body .step-number{color:#6a7560}
/* A word too long for its line is broken only as a last resort, so large text sizes never push the page sideways. */
body :is(h1,h2,h3,h4,.eyebrow,.pickup-location-title,.intro p,.page-heading p){overflow-wrap:break-word}
body :is(.hero-copy,.split-copy){overflow-wrap:break-word}

/* Home hero: the words sit on the left over the mural, on the content column, and never reach the subject. */
/* The photo is placed by width (--pw): a little larger than the window on a narrow one, so the subject sits further
   right, and no wider than 2200px on a big one, where the mural is carried on to the left edge. The crop keeps the
   face and both hands in frame; the hero stays between 540 and 640px tall. */
body .hero{height:clamp(28rem,66dvh,38rem);max-height:none;min-height:0;align-items:flex-end}
body .hero:after{background:linear-gradient(0deg,#162015c4,transparent 85%)}
body .hero-copy{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:2rem var(--gutter)}
body .hero-copy>*{max-width:min(100%,50rem)}
body .hero h1{font-size:clamp(3.25rem,14vw,4.0625rem);overflow-wrap:break-word}
body .hero .tagline{max-width:30rem}
body .hero-fill{display:none}
@media(min-width:45.0625rem){
  body .hero{
    --pw:min(2200px,max(100vw,calc(100vw + .449*(1280px - 100vw))));
    --left:max(0px,calc(100vw - var(--pw)));
    --ih:calc(var(--pw)/1.5);
    --hh:clamp(540px,calc(.27*var(--pw) + 48px),640px);
    height:min(var(--hh),max(288px,calc(100dvh - 7rem)));align-items:center}
  body .hero:after{background:linear-gradient(90deg,rgba(15,22,14,.66) 0,rgba(15,22,14,.42) calc(var(--left) + .22*var(--pw)),transparent calc(var(--left) + .5*var(--pw)))}
  body .hero>img:not(.hero-fill){inset:auto;left:var(--left);width:var(--pw);height:var(--ih);max-width:none;object-fit:fill;
    top:max(calc(100% - var(--ih)),min(0px,calc(1.5rem - .125*var(--ih))))}
  body .hero-fill{display:block;position:absolute;inset:0 auto 0 0;width:calc(var(--left) + 12rem);height:100%;object-fit:fill;
    object-view-box:inset(8% 86% 40% 0);filter:blur(14px);transform:scale(1.08);transform-origin:left center}
  body .hero-copy{--room:calc(var(--left) + .35*var(--pw) - 1.75rem);--start:clamp(var(--gutter),calc(var(--room) - 20rem),var(--edge));
    container-type:inline-size;width:max(15rem,calc(var(--room) - var(--start)));max-width:42rem;margin:0 0 0 var(--start);padding:clamp(2rem,4vw,3rem) 0}
  body .hero h1{font-size:clamp(2.25rem,min(5vw,30cqi),7rem)}}
@media(min-width:2201px){
  body .hero>img:not(.hero-fill){-webkit-mask-image:linear-gradient(90deg,transparent,#000 10rem);mask-image:linear-gradient(90deg,transparent,#000 10rem)}
}
@media(max-height:30rem) and (orientation:landscape){
  body .site-header{min-height:4.5rem}
  body .site-header .brand img{width:3.5rem}
  body .hero{height:min(var(--hh,20rem),calc(100dvh - 4.5rem));min-height:0}
  body .hero-copy{padding-block:1rem}
  body .hero h1{font-size:clamp(2.25rem,5vw,3rem);margin-bottom:.25rem}
  body .hero .tagline{font-size:1.125rem;margin-bottom:.75rem}
}
/* Where the subject of each page photo is, as the point the crop keeps. A photo staff choose in the editor is
   one of these four, so each has its own; any other photo is centred. */
body .hero>img[src$="/hero.jpg"]{object-position:50% 50%}
body .split>img[src$="/store.jpg"]{object-position:35% 50%}
body .split>img[src$="/catering.jpg"]{object-position:50% 40%}

/* Headings and rows wrap instead of squeezing, so a long heading or a larger text size never overflows. */
body .section-head{flex-wrap:wrap;align-items:flex-end;gap:.75rem 1.25rem}
body .section-head>div{flex:1 1 16rem;min-width:0}
body .section-head>a{white-space:normal;margin-top:0}
body .steps>div{padding-left:0}
body .steps{grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr))}
body .steps>div{min-width:0}
@media(max-width:720px){body .step-number{position:static;font-size:2rem;margin-bottom:.25rem}}
body .product-card .card-bottom{flex-wrap:wrap}
body :is(.cart-layout,.checkout-layout){grid-template-columns:minmax(0,1.6fr) minmax(min(100%,17.5rem),1fr)}
@media(max-width:720px){body :is(.cart-layout,.checkout-layout){grid-template-columns:minmax(0,1fr)}}
body :is(.order-group,.summary-box) :is(p,dd){overflow-wrap:anywhere}
body :is(.order-item,.total-row) strong{white-space:nowrap}
body :is(.order-item>div,.total-row){flex-wrap:wrap;gap:.25rem 1rem}
body .signup-consent>span{min-width:0;overflow-wrap:break-word}
body .order-reference{font-size:var(--text-small);overflow-wrap:anywhere}
body .hours td:first-child{white-space:nowrap;overflow-wrap:normal;word-break:normal;hyphens:none}
/* A row of hours wraps its hours under the day when the line is too short, so no word is ever cut and nothing spills out. */
body .hours,body .hours tbody{display:block}
body .hours tr{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.25rem .75rem;border-bottom:1px solid var(--line)}
body .hours td{border-bottom:0}
body .hours td:last-child{flex:1 1 auto;text-align:right}
body .split>*{min-width:0}
body .location-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr))}
body :is(.location-list,.location)>*{min-width:0;max-width:100%}
@media(max-width:64rem){body .hours-value{white-space:normal;text-align:right;padding-inline:.5rem}}

/* Product grids add and drop columns by the room there is, never more than three, and a lone card is not left on its own row. */
body .grid{grid-template-columns:repeat(auto-fill,minmax(max(9.5rem,calc((100% - 2*var(--grid-gap))/3)),1fr));gap:2rem var(--grid-gap)}
@media(max-width:44.99rem){#main .grid[data-home-section=featured]>.product-card:nth-child(n+3){display:none}}
@media(max-width:22.4rem){#main .grid[data-home-section=featured]>.product-card:nth-child(n+3){display:flex}}
body .placeholder-product{position:relative;display:grid;place-items:center;aspect-ratio:1.15;background:radial-gradient(circle at 50% 40%,#fff 0,var(--cream) 55%,var(--sage) 100%)}
body .placeholder-product img{width:min(40%,6.5rem);height:auto;opacity:.55}

/* Sticky panels stay put only where the screen is tall enough to spare the room. */
body :is(.summary-box,.info-intro,.giftcard-preview){position:static}
@media(min-width:45.0625rem) and (min-height:50rem){
  body .summary-box{position:sticky;top:1.25rem;max-height:calc(100dvh - 2.5rem);overflow:auto}
  body .info-intro{position:sticky;top:2rem;max-height:calc(100dvh - 4rem);overflow:auto}
  body .giftcard-preview{position:sticky;top:1.5rem}
}
body #message{position:static;padding:1rem var(--gutter)}
body #toast{bottom:max(1.5rem,calc(env(safe-area-inset-bottom) + .75rem));max-width:min(90vw,32rem)}

/* Pages with no content of their own: not found, maintenance. */
body .not-found{display:grid;justify-items:center;align-content:center;gap:.5rem;min-height:55dvh;text-align:center}
body .not-found h1{margin-bottom:1.5rem}
body .not-found .actions{justify-content:center}
body .maintenance-card{margin-block:12dvh}
body .maintenance-card img{margin-inline:auto}

/* Dialogs: one scroll for the whole popup, a cue when more is below, a photo that stays beside the text. */
dialog{--fade:#fff}
:is(#promotion-dialog,#notification-terms-dialog,#team-bio-dialog){--fade:var(--cream)}
dialog>:is(#product-content,.promotion-copy,#pickup-location-content,.team-bio-layout){
  background:
    linear-gradient(var(--fade) 30%,#0000) top/100% 1.5rem no-repeat local,
    linear-gradient(#0000,var(--fade) 70%) bottom/100% 1.5rem no-repeat local,
    radial-gradient(farthest-side at 50% 0,#25272224,#0000) top/100% .6rem no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%,#25272224,#0000) bottom/100% .6rem no-repeat scroll,
    var(--fade);
}

body .promotion-copy{padding:3.5rem clamp(1.25rem,5vw,2.25rem) 2rem}
body .product-detail{padding:clamp(2.5rem,5vw,3rem) clamp(1.25rem,4vw,2rem) clamp(1.5rem,3vw,2rem)}
body .product-detail .description,body .product-detail:has(.size-guide) .description{max-height:none;overflow:visible;margin-block:1rem}
body #product-content>img{align-self:start;position:sticky;top:0;width:100%;height:auto;aspect-ratio:1;max-height:calc(var(--dialog-height,90dvh) - 1.5rem);object-fit:cover}
body #product-content>.placeholder-product{align-self:start;position:sticky;top:0;min-height:0;aspect-ratio:1;height:auto}
@media(max-width:45rem){
  body #product-content>img,body #product-content>.placeholder-product{position:static;height:auto;aspect-ratio:4/3;max-height:42dvh}
}
@media(max-height:46rem){
  body .promotion-copy{padding-block:3.25rem 1.25rem}
  body .promotion-copy h2{font-size:clamp(1.5rem,5vw,2rem);margin-bottom:.75rem}
  body .promotion-copy .field{margin-bottom:.75rem}
  body .product-detail{padding-block:2.25rem 1.25rem}
  body .product-detail h2{font-size:1.625rem;margin-bottom:.5rem}
}
@media(max-width:45rem) and (orientation:landscape) and (max-height:32rem){
  body #product-content{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
  body #product-content>img,body #product-content>.placeholder-product{position:sticky;height:auto;aspect-ratio:1;max-height:calc(var(--dialog-height,90dvh) - 1.5rem)}
}

/* Hover only where there is a pointer to hover with; touch screens never keep a hover state. */
@media(hover:hover) and (pointer:fine){
  body .site-header nav a:hover,body .header-right>a:hover{color:var(--purple)}
  body :is(.button,button.primary):hover:not(:disabled){background:#514156}
  body .button.outline:hover:not(:disabled){background:var(--sage)}
  body .hero .button.outline:hover{background:#ffffff18}
  body .product-image:hover img{transform:scale(1.035)}
  body .round-add:hover{background:var(--sage)}
}

/* Windows high-contrast and other forced colours: shapes carry meaning, not just fills. */
@media(forced-colors:active){
  body :is(.round-add,.button,button.primary,.badge,.note,.notice,.plan-option,.product-card,.placeholder-product){border:1px solid ButtonText;forced-color-adjust:auto}
  body .plan-option:has(input:checked){border:2px solid Highlight}
  body .button:focus-visible,body .product-card:focus-within{outline:3px solid Highlight}
  body .placeholder-product img{opacity:1}
}

/* Staff workspace: readable controls, quiet surfaces and room to work on a laptop.
   Scope through staff page headers so customer storefront/account screens stay independent. */
body:has(> .manager-header, > .insights-header){background:var(--studio-bg,#f6f7f3)}
body:has(> .manager-header, > .insights-header) :is(main,section,article,fieldset,nav,.actions){min-width:0}
body:has(> .manager-header, > .insights-header) :is(.manager-header,.insights-header){background:var(--surface);border-bottom:1px solid var(--line);gap:16px 24px;flex-wrap:wrap}
body:has(> .manager-header, > .insights-header) .manager-header h1{line-height:1.2;margin:0 0 6px;overflow-wrap:anywhere}
body:has(> .manager-header, > .insights-header) .manager-header p{line-height:1.6;margin:0;color:var(--muted);font-size:var(--text-control)}
body:has(> .manager-header, > .insights-header) .manager-header nav{gap:8px;flex-wrap:wrap}
body:has(> .manager-header, > .insights-header) :is(.manager-header nav,.insights-header) a{display:inline-flex;align-items:center;min-height:44px;border-radius:var(--radius-control);font-size:var(--text-control);line-height:1.5}
body:has(> .manager-header, > .insights-header) .manager-header nav a{padding:8px 12px;text-underline-offset:.2em}
body:has(> .manager-header, > .insights-header) .manager-toolbar{gap:12px 20px;background:var(--surface)}
body:has(> .manager-header, > .insights-header) .manager-tabs{display:flex;gap:8px;flex-wrap:wrap;min-width:0;max-width:100%}
body:has(> .manager-header, > .insights-header) .manager-toolbar>.manager-tabs{flex:1 1 40rem}
body:has(> .manager-header, > .insights-header) .manager-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface);color:var(--ink);font-size:var(--text-control);font-weight:500;line-height:1.5;letter-spacing:normal;text-transform:none;white-space:normal;text-align:center;text-decoration:none;overflow-wrap:anywhere;transform:none;box-shadow:none}
body:has(> .manager-header, > .insights-header) .manager-tabs :is(a.selected,a[aria-current=page]){border-color:var(--purple);background:var(--purple);color:white;font-weight:600;text-decoration:underline;text-underline-offset:.2em}
body:has(> .manager-header, > .insights-header) :is(.manager-toolbar,.manager-header,.editor-pane,.messaging-main,.dashboard-print-actions) .button{min-height:44px;font-size:var(--text-control);line-height:1.5}
body:has(> .manager-header, > .insights-header) :is(.field,.toggle-field,.product-list-item strong,.preview-toolbar button,.tool-button){font-size:var(--text-control);line-height:1.5}
body:has(> .manager-header, > .insights-header) :is(.field small,.badge,.status-pill,.access-badge,.readiness-badge,.mock-badge,.studio-kicker,.nav-label){font-size:var(--text-small);line-height:1.6}
body:has(> .manager-header, > .insights-header) .field :is(input,select,textarea){border-radius:var(--radius-control);border-color:#c7c9bf;font-size:var(--text-control)}
body:has(> .manager-header, > .insights-header) .field :is(input,select,textarea):focus-visible{border-color:var(--purple)}
body:has(> .manager-header, > .insights-header) :is(.actions,.options-heading,.photo-actions,.week-actions){flex-wrap:wrap;gap:10px}
body:has(> .manager-header, > .insights-header) :is(button,.button,summary){scroll-margin-block:24px}
body:has(> .manager-header, > .insights-header) :is(.dashboard-card,.dashboard-panel,.panel,.section-card,.promotion-editor,.option-editor,.batch-panel,.batch-confirmation,.weekly-staff-order,.location-setting,.readiness-check,.subscriber-card,.mock-message,.week-option,.access-rule){min-width:0;border-radius:var(--radius-panel);box-shadow:0 3px 12px #25272204}
body:has(> .manager-header, > .insights-header) :is(.dashboard-panel,.panel,.option-editor){background:var(--surface)}
body:has(> .manager-header, > .insights-header) :is(.panel,.section-card,.promotion-editor,.access-rule)>summary{min-height:44px;line-height:1.6}
body:has(> .manager-header, > .insights-header) .product-list-item{gap:12px;padding:14px 12px;border-radius:var(--radius-control);margin-bottom:6px;border:1px solid var(--line)}
body:has(> .manager-header, > .insights-header) .product-list-item.selected{border-color:var(--purple);box-shadow:inset 3px 0 var(--purple);background:var(--sage)}
body:has(> .manager-header, > .insights-header) .product-list-item img{border-radius:8px;flex-shrink:0}
body:has(> .manager-header, > .insights-header) .product-list-item :is(strong,small){overflow-wrap:anywhere}
body:has(> .manager-header, > .insights-header) .product-preview img{height:auto;max-width:20rem;border-radius:var(--radius-image)}
body:has(> .manager-header, > .insights-header) :is(.dashboard-table-scroll,.table-scroll){max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:var(--radius-control);overscroll-behavior-x:contain}
body:has(> .manager-header, > .insights-header) table{width:100%;font-size:var(--text-control);line-height:1.6;font-variant-numeric:tabular-nums}
body:has(> .manager-header, > .insights-header) :is(.dashboard-table,.data-table) :is(th,td){padding:12px 14px;vertical-align:top}
body:has(> .manager-header, > .insights-header) table th{background:var(--cream);font-size:var(--text-small);letter-spacing:.03em;line-height:1.5;color:var(--ink)}
body:has(> .manager-header, > .insights-header) table tbody tr:nth-child(even){background:#f6f7f380}
body:has(> .manager-header, > .insights-header) table tbody tr:focus-within{background:var(--sage)}
body:has(> .manager-header, > .insights-header) :is(.empty-state,.dashboard-empty,.fulfillment-empty,.builder-empty,.ui-empty){padding:28px 24px;border:1px solid var(--line);border-top:3px solid var(--purple);border-radius:var(--radius-panel);background:var(--cream);color:var(--ink);font-size:var(--text-control);line-height:1.65}
body:has(> .manager-header, > .insights-header) :is(.empty-state,.dashboard-empty,.fulfillment-empty,.builder-empty,.ui-empty) p{max-width:42rem;margin-inline:auto;line-height:1.65}
body:has(> .manager-header, > .insights-header) pre{max-width:100%;overflow:auto;tab-size:2}
body:has(> .manager-header, > .insights-header) dialog{max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
.staff-login-page .field{font-size:var(--text-control);line-height:1.5}
.staff-login-page .staff-login-card{width:min(100%,30rem)}
.staff-login-page .staff-login-card p{line-height:1.65}

@media(min-width:75.001rem){
 body:has(> .manager-header, > .insights-header) .manager-header{flex-wrap:nowrap}
 body:has(> .manager-header, > .insights-header) .manager-header>nav{flex:1 1 22rem;justify-content:flex-end}
 body:has(> .manager-header, > .insights-header) .manager-header>div:not(.staff-session-controls){flex:0 1 17rem}
 body:has(> .manager-header, > .insights-header) .manager-header>.staff-session-controls{flex:0 0 auto}
}
@media(max-width:75rem){
 body:has(> .manager-header, > .insights-header) .manager-header>nav{order:4;flex-basis:100%;margin-left:0}
 body:has(> .manager-header, > .insights-header) .manager-header>.staff-session-controls{margin-left:auto}
}

@media(hover:hover) and (pointer:fine){
 body:has(> .manager-header, > .insights-header) .manager-tabs a:not(.selected):not([aria-current=page]):hover{background:var(--cream);border-color:#aaa29f}
 body:has(> .manager-header, > .insights-header) .product-list-item:not(.selected):hover{background:var(--cream);border-color:#aaa29f}
 body:has(> .manager-header, > .insights-header) .manager-header nav a:hover{background:var(--cream)}
}
body:has(> .manager-header, > .insights-header) :is(.manager-tabs a,.product-list-item):focus-visible{outline:var(--focus-ring);outline-offset:3px}
body:has(> .manager-header, > .insights-header) :is(.manager-tabs a,.product-list-item):active{border-color:var(--purple)}
@media(max-width:90rem){
 body:has(> .manager-header, > .insights-header) .manager-toolbar{position:static;overflow:visible}
 body:has(> .manager-header, > .insights-header) :is(.product-manager,.schedule-layout){grid-template-columns:15rem minmax(0,1fr)}
 body:has(> .manager-header, > .insights-header) :is(.product-manager,.schedule-layout) .product-preview{grid-column:2;max-width:42rem;width:100%}
}
@media(max-width:52rem){
 body:has(> .manager-header, > .insights-header) :is(.product-manager,.schedule-layout,.builder-layout){grid-template-columns:minmax(0,1fr)}
 body:has(> .manager-header, > .insights-header) :is(.product-manager,.schedule-layout) .product-preview{grid-column:auto;max-width:none}
 body:has(> .manager-header, > .insights-header) #product-list{max-height:17rem;overflow:auto}
 body:has(> .manager-header, > .insights-header) :is(.form-grid,.dashboard-filters,.fulfillment-filters,.batch-fields){grid-template-columns:minmax(0,1fr)}
 body:has(> .manager-header, > .insights-header) .dashboard-grid{grid-template-columns:minmax(0,1fr)}
 body:has(> .manager-header, > .insights-header) .manager-header nav{margin-left:0}
}
@media(forced-colors:active){
 body:has(> .manager-header, > .insights-header) :is(.product-list-item.selected,.manager-tabs a[aria-current=page]){border:2px solid Highlight}
}

/* ---------------------------------------------------------------------------------------------
   Manager shell: one quiet sidebar, a plain page title, and calm shared pieces for staff pages.
   A staff page opts in with <body class="manager-shell" data-nav="..."> and loads manager-nav.js
   first inside <body>. Feature CSS still owns the layout of each page.
   --------------------------------------------------------------------------------------------- */
:root{--nav-width:15rem;--page-gutter:48px}
body.manager-shell{background:var(--surface);padding-left:var(--nav-width);min-height:100vh}
.manager-nav{position:fixed;inset:0 auto 0 0;z-index:30;width:var(--nav-width);display:flex;flex-direction:column;padding:24px 14px 18px;background:#fafaf8;border-right:1px solid var(--line);overflow-y:auto;font-size:var(--text-control)}
.manager-nav-brand{display:flex;align-items:center;gap:10px;padding:0 10px 22px;color:var(--ink);font-family:var(--font-heading);font-size:1.3125rem;font-weight:700;letter-spacing:-.01em;text-decoration:none}
.manager-nav-brand img{width:40px;height:40px;border-radius:50%}
.manager-nav-body{display:flex;flex-direction:column;flex:1;min-height:0}
.manager-nav ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.manager-nav li{position:relative}
.manager-nav-link{display:flex;align-items:center;min-height:44px;padding:8px 12px;border-radius:10px;color:var(--ink);font-size:1.0625rem;line-height:1.4;text-decoration:none}
.manager-nav-link:hover{background:#25272209}
.manager-nav-link.open{font-weight:600}
.manager-nav-link[aria-current=page]{background:var(--sage);font-weight:600}
.manager-nav ul.manager-nav-sub{margin:2px 0 8px 12px;padding-left:10px;border-left:1px solid var(--line)}
.manager-nav-sub .manager-nav-link{min-height:40px;font-size:var(--text-control);color:var(--muted)}
.manager-nav-sub .manager-nav-link[aria-current=page]{color:var(--ink)}
.manager-nav-badge{position:absolute;top:6px;right:8px}
.manager-nav-badge .weekly-request-link{padding:4px 6px;border:0;background:transparent;font-size:0;gap:0}
.manager-nav-badge .weekly-request-link:not(.has-requests){display:none}
.manager-nav-badge .weekly-request-count{font-size:var(--text-small)}
.manager-nav-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--line);display:grid;gap:4px}
.manager-nav-foot .manager-nav-link{color:var(--muted);font-size:var(--text-control)}
.manager-nav-foot .staff-session-controls{margin:0;display:grid;gap:4px}
.manager-nav-foot .staff-session-controls button{justify-content:flex-start;width:100%;min-height:44px;padding:8px 12px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:var(--text-control);font-weight:400;letter-spacing:0;text-transform:none;text-align:left}
.manager-nav-foot .staff-session-controls button:hover{background:#25272209;color:var(--ink)}
.manager-nav-toggle{display:none}

body.manager-shell .manager-header{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px 24px;padding:44px var(--page-gutter) 12px;background:transparent;border-bottom:0}
body.manager-shell .manager-header>div:first-child{flex:1 1 20rem;min-width:0}
body.manager-shell .manager-header h1{margin:0;font-family:var(--font-heading);font-size:2.375rem;line-height:1.1;letter-spacing:-.02em}
body.manager-shell .manager-header p{margin:8px 0 0;max-width:44rem;color:var(--muted);font-size:var(--text-control);line-height:1.5}
body.manager-shell .manager-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-left:auto}
body.manager-shell .manager-actions [role=status]{color:var(--muted);font-size:var(--text-small)}
body.manager-shell>main{margin:0;padding:12px var(--page-gutter) 72px;max-width:82rem}
body.manager-shell :is(.button,button.primary){padding:10px 20px;min-height:44px;font-size:var(--text-control);font-weight:600;letter-spacing:0;text-transform:none}
body.manager-shell .button.outline{border-color:var(--line);color:var(--ink);background:var(--surface)}
body.manager-shell .button.outline:hover{background:var(--cream)}
body.manager-shell .muted{color:var(--muted);font-size:var(--text-control)}
body.manager-shell h2{font-family:var(--font-heading);font-size:1.5rem;letter-spacing:-.01em;line-height:1.25}
body.manager-shell [role=alert]:not([hidden]):not(:empty){padding:12px 16px;border:1px solid #d9b8b0;border-radius:var(--radius-control);background:#fbf1ee;color:#7a2a17;font-size:var(--text-control)}
body.manager-shell [role=alert].success:not([hidden]){border-color:#b9d1bd;background:#eff6ef;color:#1f4d2b}

/* Up to three plain numbers. */
.stat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:16px;margin:8px 0;padding:0;list-style:none}
.stat{padding:20px 22px;border:1px solid var(--line);border-radius:var(--radius-panel);background:var(--surface)}
.stat-label{display:block;color:var(--muted);font-size:var(--text-control);line-height:1.4}
.stat-value{display:block;margin-top:6px;font-family:var(--font-heading);font-size:2.5rem;font-weight:700;line-height:1.1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.stat-note{display:block;margin-top:6px;color:var(--muted);font-size:var(--text-small);line-height:1.5}

/* A titled block with an optional "View all" link. */
.page-section{margin-top:40px}
.page-section-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-bottom:12px}
.page-section-head h2{margin:0}
.page-section-head a{font-size:var(--text-control)}
.calm-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius-control)}
body.manager-shell table.calm-table{width:100%;border-collapse:collapse;font-size:var(--text-control)}
body.manager-shell table.calm-table :is(th,td){padding:12px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
body.manager-shell table.calm-table th{background:transparent;color:var(--muted);font-size:var(--text-small);font-weight:600;letter-spacing:0}
body.manager-shell table.calm-table tbody tr:nth-child(even){background:transparent}
body.manager-shell table.calm-table tbody tr:last-child :is(th,td){border-bottom:0}
body.manager-shell table.calm-table .number{text-align:right;font-variant-numeric:tabular-nums}

/* Plain actions and links, one per row. */
.action-list{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--radius-control);overflow:hidden}
.action-list li+li{border-top:1px solid var(--line)}
.action-list a{display:flex;align-items:center;justify-content:space-between;gap:4px 16px;flex-wrap:wrap;min-height:56px;padding:12px 18px;color:var(--ink);text-decoration:none}
.action-list a:hover{background:var(--cream)}
.action-list a::after{content:"\2192";color:var(--muted)}
.action-list strong{font-weight:600}
.action-list small{flex:1 1 14rem;color:var(--muted)}
.action-list.attention li{background:#fdf8ec}
.calm-empty{margin:0;padding:18px 20px;border:1px dashed var(--line);border-radius:var(--radius-control);color:var(--muted);font-size:var(--text-control)}
.status-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 0;padding:14px 18px;border-radius:var(--radius-control);background:var(--cream);font-size:var(--text-control);line-height:1.5}
.status-line.live{background:#eef5ee}
.status-dot{flex:none;width:10px;height:10px;border-radius:50%;background:#9a9d94}
.status-line.live .status-dot{background:#2f7d43}

/* Secondary options stay closed until asked for. */
details.more-options{margin-top:24px;border-top:1px solid var(--line);padding-top:4px}
details.more-options>summary{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);font-size:var(--text-control);cursor:pointer}
details.more-options>summary:hover{color:var(--ink)}
details.more-options[open]>summary{color:var(--ink);font-weight:600}
details.more-options>:not(summary){margin-top:12px}
details.more-options .actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

@media(max-width:60rem){
 :root{--page-gutter:20px}
 body.manager-shell{padding-left:0}
 .manager-nav{position:sticky;top:0;inset:0 0 auto 0;width:auto;flex-direction:row;flex-wrap:wrap;align-items:center;padding:8px 16px;border-right:0;border-bottom:1px solid var(--line);overflow:visible}
 .manager-nav-brand{padding:0}
 .manager-nav-toggle{display:inline-flex;align-items:center;margin-left:auto}
 .manager-nav-body{display:none;flex:1 1 100%;padding:10px 0 6px;max-height:calc(100dvh - 5rem);overflow-y:auto}
 .manager-nav.open .manager-nav-body{display:flex}
 .manager-nav-foot{margin-top:12px}
 body.manager-shell .manager-header{padding-top:24px}
 body.manager-shell .manager-header h1{font-size:1.875rem}
 body.manager-shell .manager-actions{margin-left:0}
}
@media print{.manager-nav{display:none}body.manager-shell{padding-left:0}}
body.manager-shell .badge{display:inline-block;margin:0;padding:3px 10px;border-radius:999px;font-size:var(--text-small);letter-spacing:0;text-transform:none;line-height:1.5}
body.manager-shell .manager-toolbar{position:static;display:flex;align-items:center;gap:12px;min-height:0;padding:0 var(--page-gutter);background:transparent;border:0}
body.manager-shell .eyebrow{letter-spacing:.02em;text-transform:none;color:var(--muted)}
.action-list li:has(>a[data-se-denied]){display:none}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body.manager-shell .manager-nav-foot .staff-session-controls button{justify-content:flex-start;border:0;background:transparent;color:var(--muted);font-weight:400}
body.manager-shell>main:is(.product-manager,.schedule-layout){max-width:none}
body.manager-shell>p.muted{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:110rem){body.manager-shell :is(.product-manager,.schedule-layout){grid-template-columns:15rem minmax(0,1fr)}body.manager-shell :is(.product-manager,.schedule-layout) .product-preview{grid-column:2;max-width:42rem;width:100%}}
@media(max-width:52rem){body.manager-shell :is(.product-manager,.schedule-layout){grid-template-columns:minmax(0,1fr)}body.manager-shell :is(.product-manager,.schedule-layout) .product-preview{grid-column:auto}}
