:root {
  color: var(--charcoal, #242424);
  background: var(--ivory, #faf7ef);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  --serif: Georgia, 'Times New Roman', serif;
  --line: color-mix(in srgb, var(--navy) 14%, var(--ivory));
  --muted: color-mix(in srgb, var(--charcoal) 72%, var(--ivory));
  --paper: color-mix(in srgb, var(--white) 76%, var(--ivory));
  --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; color: inherit; }
img { display: block; width: 100%; }
a { color: var(--maroon); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.65; }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; }
#main:focus { outline: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { color: var(--navy); font-family: var(--serif); font-weight: 500; line-height: 1.07; }
h1 { margin-bottom: 25px; font-size: clamp(2.6rem, 5vw, 4.25rem); letter-spacing: -0.065em; }
h2 { margin-bottom: 16px; font-size: clamp(1.75rem, 3vw, 3rem); letter-spacing: -0.045em; }
h3 { color: var(--navy); }
p { margin-bottom: 0.95rem; }
.frame { width: min(100% - 80px, 1280px); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 8px; left: 12px; transform: translateY(-150%); padding: 10px 15px; background: var(--white); }
.skip:focus { transform: translateY(0); }
.demo-bar, .local-note { padding: 7px 12px; background: var(--navy); color: var(--ivory); text-align: center; font-size: 0.83rem; }
.local-note { background: var(--maroon); }
.nav { display: grid; min-height: 83px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.identity { display: inline-flex; width: fit-content; align-items: center; gap: 9px; color: var(--navy); text-decoration: none; line-height: 1; }
.nav-logo { width: 57px; height: auto; }
.identity strong { display: block; font: 600 1.51rem/0.95 var(--serif); letter-spacing: -0.04em; }
.identity small { display: block; margin-top: 5px; font-size: 0.7rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.nav nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 38px); }
.nav nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); text-decoration: none; font-size: 0.92rem; font-weight: 600; white-space: nowrap; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--maroon); text-decoration: underline; }
.bag-link { display: flex; justify-self: end; align-items: center; gap: 8px; min-height: 44px; padding: 7px 11px 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); text-decoration: none; font-weight: 650; }
.bag-link span, .page-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding-inline: 5px; border-radius: 999px; color: var(--ivory); background: var(--navy); font: 600 0.82rem/1 -apple-system, BlinkMacSystemFont, sans-serif; }
.hero { display: grid; isolation: isolate; grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1fr); overflow: hidden; min-height: 455px; border-radius: var(--radius); background: var(--navy); color: var(--ivory); box-shadow: 0 18px 38px #17203719; }
.hero-copy { z-index: 1; align-self: center; padding: clamp(30px, 6vw, 88px) clamp(28px, 5.3vw, 77px); }
.eyebrow { color: var(--maroon); font-size: 0.77rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 15px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--ivory); font-size: clamp(3.1rem, 6.25vw, 6rem); letter-spacing: -0.075em; line-height: 0.99; margin-bottom: 19px; }
.hero-description { color: var(--ivory); opacity: 0.89; max-width: 37ch; font-size: clamp(1rem, 1.7vw, 1.13rem); margin-bottom: 27px; }
.hero-photo { height: 100%; min-height: 100%; object-fit: cover; object-position: 77% center; }
.hero-actions, .inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 17px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; text-align: center; font-size: 0.93rem; font-weight: 700; transition: background-color 150ms ease, border-color 150ms ease; }
.primary { color: var(--white); background: var(--navy); }
.primary:hover { background: color-mix(in srgb, var(--navy) 84%, var(--white)); }
.secondary { border-color: var(--line); background: transparent; color: var(--navy); }
.secondary:hover { border-color: var(--navy); background: color-mix(in srgb, var(--navy) 6%, var(--ivory)); }
.gold-button { background: var(--gold); color: var(--navy); }
.gold-button:hover { background: color-mix(in srgb, var(--gold) 78%, var(--ivory)); }
.hero :focus-visible, footer :focus-visible { outline-color: var(--gold); }
.hero-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ivory); font-size: 0.93rem; font-weight: 650; }
.section { margin-block: 62px; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 18px; }
.section-title h2 { margin: 0; }
.section-title .eyebrow { margin-bottom: 8px; }
.feature-link { padding-block: 8px; font-size: 0.94rem; font-weight: 650; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px 23px; }
.filters a { display: inline-flex; align-items: center; min-height: 43px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-size: 0.88rem; font-weight: 650; text-decoration: none; }
.filters a:hover { border-color: var(--navy); }
.filters a[aria-current] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.product-image { display: block; width: 100%; padding: 0; border: 0; background: transparent; }
.product-image:focus-visible { outline-offset: -4px; }
.packshot { width: 100%; aspect-ratio: 0.75; background-color: var(--ivory); background-image: var(--packshots); background-repeat: no-repeat; background-size: 400% 200%; background-position: var(--pack-x) var(--pack-y); }
.card-body { display: flex; flex-direction: column; gap: 7px; padding: 16px; flex: 1; }
.category { color: var(--maroon); font-size: 0.74rem; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; margin: 0; }
.card-body h3 { margin: 0; line-height: 1.25; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.text-button { padding: 0; border: 0; background: transparent; color: inherit; font-weight: inherit; text-align: left; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.summary { color: var(--muted); font-size: 0.93rem; margin: 0 0 4px; }
.card-end { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-top: auto; }
.card-end strong { color: var(--navy); }
.compact { min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--ivory); color: var(--navy); font-size: 0.86rem; font-weight: 700; }
.compact:hover { color: var(--white); background: var(--navy); }
.spotlight { display: grid; grid-template-columns: 1fr 0.82fr; align-items: center; margin-block: 28px 40px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.spotlight img { height: 100%; max-height: 370px; object-fit: cover; }
.spotlight > div { padding: clamp(25px, 5vw, 75px); }
.spotlight p { color: var(--muted); max-width: 41ch; }
.spotlight + .spotlight { margin-bottom: 65px; }
footer { background: var(--navy); color: var(--ivory); }
.footer-grid { min-height: 150px; padding-block: 30px; display: grid; grid-template-columns: 1.5fr 1fr auto; align-items: center; gap: 24px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-logo { width: 75px; height: auto; }
footer p { margin: 3px 0 0; font-size: 0.9rem; }
footer a { display: block; color: var(--ivory); padding-block: 5px; font-size: 0.9rem; }
.page { min-height: 60vh; margin-block: 36px 70px; }
.page h1 { margin-top: 12px; }
.catalog-tools { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 20px; }
.catalog-tools label:first-child { flex: 1 1 245px; }
.catalog-tools label:last-child { flex: 0 1 212px; }
label { display: block; color: var(--navy); font-size: 0.91rem; font-weight: 650; }
label input:not([type=radio]), label select { display: block; width: 100%; min-height: 44px; margin-top: 5px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); font-size: 1rem; font-weight: 450; }
.result-count, .muted, .address-preview, .order-summary > p { color: var(--muted); font-size: 0.92rem; }
.result-count { margin-block: 18px 10px; }
.empty-inline { padding-top: 20px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.83fr); align-items: start; gap: 20px; }
.panel { min-width: 0; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.panel h2 { font-size: clamp(1.55rem, 2.3vw, 2.2rem); }
.page-count { vertical-align: middle; letter-spacing: 0; }
.order-summary .button, .form-panel form > .button { width: 100%; }
.center-link { display: block; padding: 9px 0 0; text-align: center; font-size: 0.94rem; font-weight: 650; }
.line-items, .recent { padding: 0; margin: 0; list-style: none; }
.line-items li { display: grid; grid-template-columns: 57px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-block: 13px; border-bottom: 1px solid var(--line); }
.line-items li:first-child { padding-top: 0; }
.line-items .mini { width: 57px; border: 1px solid var(--line); border-radius: 5px; }
.line-info { display: grid; align-content: start; gap: 3px; }
.line-info span, .line-price { font-size: 0.91rem; }
.line-price { color: var(--navy); }
.cart-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 8px 12px; margin-top: 3px; }
.cart-actions label input { width: 70px; min-height: 42px; }
.remove { color: var(--maroon); min-height: 44px; font-weight: 600; }
.totals { color: var(--navy); margin: 15px 0; }
.totals > div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.totals dd, .review-details dd { margin: 0; }
.totals .total { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 1.15rem; font-weight: 750; }
.summary-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; }
.summary-heading a { white-space: nowrap; }
.form-panel label { margin-bottom: 14px; }
.form-panel fieldset { margin: 0 0 15px; padding: 0; border: 0; }
.form-panel legend { color: var(--navy); margin-bottom: 5px; font-weight: 650; }
.form-panel .radio { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 9px; margin-bottom: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.radio input { accent-color: var(--navy); margin-top: 5px; }
.radio small { display: block; font-size: 0.83rem; font-weight: 450; }
.radio:has(input:checked) { border-color: var(--navy); }
.address-preview { margin-top: -7px; }
.review-details { display: grid; gap: 10px; }
.review-details dt { font-weight: 750; color: var(--navy); }
.review-details dd { overflow-wrap: anywhere; }
.form-error { color: var(--maroon); font-weight: 650; }
.form-error:empty { margin: 0; }
.form-error:not(:empty) { margin-top: 9px; }
.empty-page { text-align: center; padding-block: 72px; }
.confirmation-head { text-align: center; padding: 10px 0 30px; }
.confirmation-head .inline-actions { justify-content: center; }
.confirmation-head h1 { margin-bottom: 12px; }
.confirmation-crest { width: 135px; height: auto; margin: 0 auto 13px; }
.order-page .two-column { max-width: 965px; margin: 0 auto; }
.recent li { display: flex; justify-content: space-between; gap: 10px; padding-block: 7px; border-bottom: 1px solid var(--line); }
.form-panel form + h3 { margin-top: 22px; margin-bottom: 5px; font-size: 1rem; }
.track-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.track-heading h2, .track-heading .eyebrow { margin-bottom: 3px; }
.status-pill { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--maroon); font-size: 0.85rem; font-weight: 750; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 19px 0 25px; list-style: none; }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 7px; align-items: center; padding-inline: 4px; text-align: center; color: var(--muted); font-size: 0.78rem; }
.stage-dot { z-index: 1; width: 12px; height: 12px; border: 2px solid var(--line); border-radius: 50%; background: var(--paper); }
.timeline li:not(:last-child)::after { content: ''; position: absolute; top: 5px; left: 50%; width: 100%; height: 2px; background: var(--line); }
.timeline li.complete { color: var(--navy); font-weight: 650; }
.timeline li.complete .stage-dot, .timeline li.complete:has(+ .complete)::after { background: var(--navy); border-color: var(--navy); }
.timeline li[aria-current] .stage-dot { outline: 2px solid var(--gold); outline-offset: 2px; }
dialog { overflow: auto; width: min(92vw, 730px); max-height: 88vh; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--charcoal); box-shadow: 0 20px 80px #12182855; }
dialog::backdrop { background: #14263f99; }
.dismiss { position: absolute; right: 11px; top: 11px; z-index: 1; }
.icon-button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--navy); font-size: 1.4rem; }
.product-detail { display: grid; grid-template-columns: 0.85fr 1fr; }
.detail-image { height: auto; align-self: start; }
.detail-body { padding: 40px 28px 26px; }
.detail-body .category { margin-bottom: 8px; }
.detail-body h2 { font-size: clamp(1.85rem, 4vw, 2.8rem); }
.detail-price { display: block; color: var(--navy); margin-bottom: 12px; font-size: 1.25rem; }
.detail-body label { margin-bottom: 10px; }
.detail-body label input { max-width: 90px; }
.document-modal { max-width: 560px; }
.document-preview { padding: 24px clamp(16px, 5vw, 40px) 28px; }
.document-header { padding: 25px 16px 13px; margin-bottom: 18px; border-radius: 8px; background: var(--navy); text-align: center; }
.document-header .eyebrow { margin: 8px 0 0; color: var(--gold); }
.document-logo { width: 122px; height: auto; margin: auto; }
.email-lines { padding-left: 20px; }
.shipping-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.closing { color: var(--maroon); font-family: var(--serif); font-style: italic; }
#toast { position: fixed; z-index: 9; bottom: 19px; left: 50%; width: max-content; max-width: calc(100% - 30px); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; color: var(--white); background: var(--navy); padding: 11px 17px; border-radius: 9px; }
#toast.visible { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 1050px) {
  .hero { min-height: 390px; grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1fr); }
  .frame { width: calc(100% - 48px); }
  .hero-copy { padding: 36px 33px; }
  .product-grid { gap: 12px; }
  .card-body { padding: 12px; }
}
@media (max-width: 750px) {
  .frame { width: calc(100% - 34px); }
  .nav { grid-template-columns: 1fr auto; gap: 0 10px; padding-top: 10px; }
  .nav nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .bag-link { grid-column: 2; grid-row: 1; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 32px 25px 27px; }
  .hero-photo { height: auto; min-height: 0; max-height: 330px; aspect-ratio: 1.5; }
  .section { margin-block: 40px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight img { max-height: 285px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .two-column { grid-template-columns: 1fr; }
  .page { margin-block: 25px 43px; }
}
@media (max-width: 375px) {
  .frame { width: calc(100% - 22px); }
  .nav nav { gap: 12px; }
  .section-title { align-items: start; flex-direction: column; gap: 2px; }
  .filters a { padding-inline: 10px; }
  .product-detail { grid-template-columns: 1fr; }
  .detail-image { max-height: 200px; width: 150px; margin-inline: auto; }
  .detail-body { padding-top: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print {
  @page { margin: 16mm; }
  body:has(dialog[open]) > :not(dialog) { display: none !important; }
  dialog[open] { position: static; width: auto; max-width: none; max-height: none; border: 0; box-shadow: none; overflow: visible; }
  dialog::backdrop, .dismiss, .print-action { display: none !important; }
  .document-header { print-color-adjust: exact; }
}
.draft-form { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.draft-form h3 { margin-bottom: 5px; }
.draft-form p { color: var(--muted); font-size: 0.92rem; }
.draft-form label { margin-bottom: 10px; }

/* Shared storefront components and standalone operations */
:root {
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --surface: var(--ivory);
  --text: var(--charcoal);
  --heading: var(--navy);
  --accent: var(--maroon);
}
:root, body { background: var(--surface); color: var(--text); }
h1, h2, h3, label, .review-details dt, .line-price { color: var(--heading); }
a, .eyebrow, .category, .availability, .form-error { color: var(--accent); }
:focus-visible { outline-color: var(--accent); }
button[disabled] { cursor: not-allowed; opacity: .62; }
textarea { font: inherit; color: inherit; }
main { min-height: 60vh; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.store-nav { grid-template-columns: minmax(180px, .65fr) minmax(260px, 1.1fr) minmax(180px, .6fr); min-height: 78px; }
.store-search { display: flex; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); min-width: 0; overflow: hidden; }
.store-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.store-search input { outline: 0; border: 0; width: 100%; height: 46px; min-width: 0; padding: 8px 12px; background: transparent; }
.store-search button { border: 0; border-inline-start: 1px solid var(--line); padding-inline: 14px; background: transparent; color: var(--heading); font-weight: 650; min-height: 44px; }
.store-search button:focus-visible { outline-offset: -4px; }
.header-utilities { display: flex; gap: 10px; justify-self: end; align-items: center; }
.utility-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; color: var(--heading); font-weight: 650; text-decoration: none; white-space: nowrap; }
.account-icon { width: 22px; height: 22px; position: relative; display: inline-block; border: 1.5px solid currentColor; border-radius: 50%; }
.account-icon::before, .account-icon::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); }
.account-icon::before { width: 5px; height: 5px; top: 4px; border: 1px solid currentColor; border-radius: 50%; }
.account-icon::after { width: 10px; height: 5px; bottom: 3px; border: 1px solid currentColor; border-bottom: 0; border-radius: 7px 7px 0 0; }
.nav-secondary { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-block: 5px 10px; }
.nav-secondary nav { display: flex; align-items: center; gap: clamp(7px, 2.3vw, 35px); flex-wrap: wrap; }
.nav-secondary nav a, .category-menu summary, .ops-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; color: var(--heading); text-decoration: none; }
.nav-secondary nav a:hover, .ops-nav a:hover { text-decoration: underline; }
.category-menu { position: relative; z-index: 4; }
.category-menu summary { cursor: pointer; list-style: none; gap: 7px; }
.category-menu summary::-webkit-details-marker { display: none; }
.category-menu > div { position: absolute; top: 100%; left: 0; min-width: 200px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 15px 38px #17203722; }
.category-menu > div a { display: flex; padding: 0 7px; white-space: nowrap; }
.hero { margin-top: 4px; }
.hero-copy { padding-block: clamp(34px,4.2vw,64px); }
.hero-create { color: var(--ivory); border-color: #ffffff63; }
.hero-create:hover { color: var(--white); border-color: var(--white); background: #ffffff17; }
.event-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block: 4px 16px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.event-strip > div:last-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.event-strip .button { min-height: 40px; }
.page-heading { margin-bottom: 22px; }
.page-heading > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 22px; }
.page-heading h1 { margin: 0; }
.page-heading .eyebrow { margin-bottom: 7px; }
.product-grid .product-name { color: var(--heading); text-decoration: none; }
.product-grid .product-name:hover { text-decoration: underline; }
.product-image { text-decoration: none; }
.packshot { background-image: var(--product-sheet); }
.availability { font-size: .84rem; font-weight: 720; }
.card-end { flex-wrap: wrap; gap: 8px; }
.catalog-tools { align-items: end; margin-bottom: 12px; }
.catalog-tools label:first-child { flex: 1 1 220px; }
.catalog-tools > label { flex: 0 1 155px; }
.catalog-tools .button { min-height: 44px; }
.gallery-main { width: 100%; display: block; border: 1px solid var(--line); background: var(--paper); padding: 0; overflow: hidden; border-radius: 12px; }
.large-packshot { max-width: 478px; margin-inline: auto; }
.gallery-thumbs { margin-top: 10px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.specs dt { font-weight: 700; color: var(--heading); }
.specs dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.quantity-control { display: flex; align-items: center; gap: 7px; margin: 5px 0 12px; }
.quantity-control .button { min-width: 44px; padding: 7px 12px; }
.quantity-control input, .form-panel textarea, .draft-form textarea { min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.quantity-control input { width: 95px; }
textarea { display: block; width: 100%; resize: vertical; margin-top: 5px; }
.form-panel textarea { background: var(--paper); }
.buy-form { margin-bottom: 14px; }
.buy-form > label { margin-bottom: 5px; }
.breadcrumb { margin-bottom: 13px; }
.product-page { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.list-panel + .list-panel, .list-panel { margin-top: 18px; }
.narrow-panel { max-width: 860px; }
.form-grid, .checkout-steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 16px; }
.address-grid, .contact-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.checkout-steps { margin-bottom: 17px; max-width: 580px; gap: 8px; }
.checkout-steps span { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 650; }
.checkout-steps span[aria-current] { color: var(--heading); border-color: var(--accent); border-width: 2px; }
.order-summary .button + .button { margin-top: 9px; }
.order-summary .line-items li { grid-template-columns: 47px minmax(0,1fr) auto; }
.order-summary .line-items .mini { width: 47px; }
.line-info { min-width: 0; overflow-wrap: anywhere; }
.cart-line { display: flex; flex-wrap: wrap; align-items: end; gap: 7px; margin-top: 5px; }
.cart-line label input { width: 79px; }
.cart-line .button { padding-inline: 10px; min-height: 44px; }
.cart-line .form-error { width: 100%; }
.field-context { margin-top: 9px; }
.account-layout { display: grid; grid-template-columns: minmax(150px, 225px) minmax(0,1fr); gap: 19px; align-items: start; }
.account-nav { display: grid; gap: 2px; min-width: 0; }
.account-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 6px; color: var(--heading); font-weight: 650; text-decoration: none; }
.account-nav a[aria-current], .account-nav a:hover { background: var(--paper); }
.account-nav .button { justify-self: start; margin-top: 7px; }
.subsection-title { margin: 22px 0 8px; }
.record-list { padding: 0; margin: 0; list-style: none; }
.record-list > li { display: flex; justify-content: space-between; align-items: start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.record-list > li:last-child { border-bottom: 0; }
.record-list li p { color: var(--muted); margin: 3px 0; }
.record-list li > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.record-name { display: inline-block; font-weight: 700; padding-block: 4px; }
.record-filters { margin-bottom: 18px; }
.record-filters label:first-child { max-width: 510px; }
.check-row { display: flex; align-items: center; gap: 9px; min-height: 44px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.timeline { grid-template-columns: repeat(5,minmax(0,1fr)); }
.timeline small { line-height: 1.2; }
.shipment-stack { display: grid; gap: 11px; }
.shipment-card { border: 1px solid var(--line); border-radius: 9px; padding: 14px; }
.shipment-card h3 { margin: 0; overflow-wrap: anywhere; }
.shipment-card p { margin-bottom: 6px; }
.inbox-columns { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
.message-list a[aria-current] { text-decoration-thickness: 2px; }
.email-view { overflow-wrap: anywhere; }
.email-view .closing { margin: 15px 0 0; }
.dialog-content { padding: 32px clamp(15px,5vw,40px) 23px; }
.dialog-content h2 { padding-right: 28px; }
.gallery-modal { max-width: 650px; }
.ops-header { border-bottom: 1px solid var(--line); padding-block: 10px 0; background: var(--paper); }
.ops-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ops-heading strong { color: var(--heading); font-size: 1.25rem; }
.ops-heading p { margin: 0; color: var(--muted); font-size: .87rem; }
.ops-nav { display: flex; flex-wrap: wrap; gap: 4px 15px; padding-block: 5px 0; }
.ops-nav a[aria-current] { border-bottom: 2px solid var(--accent); color: var(--accent); }
.ops-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 17px; }
.metric-card { display: grid; gap: 3px; color: var(--heading); text-decoration: none; }
.metric-card strong { font-size: 1.9rem; line-height: 1.1; }
.metric-card:hover span { text-decoration: underline; }
.inventory-list.panel { padding: 10px 20px; }
.inventory-counts { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px 15px; margin: 0; }
.inventory-counts dt { color: var(--muted); font-size: .8rem; }
.inventory-counts dd { margin: 0; font-weight: 700; }
.internal-line { grid-template-columns: minmax(130px,1fr) 93px auto; align-items: end; margin-bottom: 10px; }
.internal-line label { margin-bottom: 0; }
.internal-line + .internal-line { padding-top: 6px; border-top: 1px solid var(--line); }
.status-pill { align-self: start; min-width: max-content; }
#toast { border: 1px solid #ffffff34; }

:root[data-appearance="dark"] {
  color-scheme: dark;
  --surface: #101720;
  --paper: #192432;
  --line: #536477;
  --text: #edf0f5;
  --heading: #faf7ef;
  --muted: #bdcbd9;
  --accent: #e9cb87;
}
:root[data-appearance="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root[data-appearance="system"] {
    color-scheme: dark;
    --surface: #101720;
    --paper: #192432;
    --line: #536477;
    --text: #edf0f5;
    --heading: #faf7ef;
    --muted: #bdcbd9;
    --accent: #e9cb87;
  }
}
.identity, .bag-link, .secondary, .compact, .filters a, .icon-button { color: var(--heading); }
.secondary:hover { border-color: var(--heading); }
.compact, label input:not([type=radio]), label select { background: var(--paper); }
.compact:hover { color: var(--white); background: var(--navy); }
.filters a[aria-current] { color: var(--white); }
.hero-create { color: var(--ivory); }
.status-pill, .closing { color: var(--accent); }
.timeline li.complete { color: var(--heading); }
.timeline li.complete .stage-dot, .timeline li.complete:has(+ .complete)::after { background: var(--accent); border-color: var(--accent); }
.timeline li[aria-current] .stage-dot { outline-color: var(--heading); }
@media (max-width: 825px) {
  .store-nav { grid-template-columns: minmax(0,1fr) auto; gap: 5px 10px; padding-top: 8px; }
  .store-search { grid-row: 2; grid-column: 1/-1; margin-bottom: 5px; }
  .nav-secondary nav { gap: 0 12px; }
  .nav-secondary .button { white-space: nowrap; }
  .account-layout { grid-template-columns: 1fr; gap: 11px; }
  .account-nav { display: flex; flex-wrap: wrap; align-items: start; }
  .account-nav .button { margin-top: 0; }
}
@media (max-width: 750px) {
  .hero { min-height: 0; }
  .hero-copy { padding: 26px 23px 21px; }
  .hero h1 { font-size: clamp(2.7rem,8vw,4rem); margin-bottom: 12px; }
  .hero-photo { max-height: 226px; }
  .page-heading { margin-bottom: 15px; }
  .product-page, .inbox-columns { grid-template-columns: 1fr; }
  .record-name { min-height: 38px; }
  .catalog-tools > label { flex: 1 1 125px; }
  .catalog-tools label:first-child { flex: 1 1 100%; }
  .ops-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .internal-line { grid-template-columns: minmax(0,1fr) 78px; }
  .internal-line .button { justify-self: start; }
  .product-modal { margin: auto auto 0; width: min(100%, 600px); max-height: 89dvh; border-radius: 17px 17px 0 0; }
  .product-detail { grid-template-columns: minmax(100px,.65fr) minmax(0,1fr); }
  .detail-body { padding: 26px 16px 17px; }
  .document-modal { max-height: 90dvh; }
}
@media (max-width: 460px) {
  .nav-secondary { flex-wrap: wrap; gap: 0 8px; }
  .nav-secondary nav { flex-wrap: wrap; font-size: .9rem; }
  .nav-secondary .button { min-height: 44px; }
  .account-icon { width: 19px; height: 19px; }
  .header-utilities { gap: 5px; }
  .utility-link, .bag-link { font-size: .85rem; }
  .bag-link { padding-inline: 8px; }
  .nav-logo { width: 42px; }
  .identity strong { font-size: 1.25rem; }
  .identity small { font-size: .62rem; }
  .address-grid { grid-template-columns: minmax(0,1fr) 52px minmax(0,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .record-list > li { flex-wrap: wrap; }
  .inventory-counts { width: 100%; }
  .event-strip { align-items: start; flex-wrap: wrap; }
  .section { margin-block: 28px; }
  .card-end { flex-direction: column; align-items: stretch; }
  .card-end .availability { min-height: 21px; }
  .timeline li { line-height: 1.2; overflow-wrap: anywhere; }
}
@media (max-width: 350px) {
  .header-utilities .utility-link > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .utility-link { min-width: 44px; }
  .form-grid:not(.internal-line) { grid-template-columns: 1fr; }
}
.demo-bar a { color: var(--ivory); margin-inline-start: 7px; }
.gallery-thumbs button { display: grid; place-items: center; padding: 3px; width: 55px; min-height: 62px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.gallery-thumbs button[aria-pressed="true"] { border: 2px solid var(--accent); }
.photo-thumb { width: 42px; border-radius: 4px; }
@media (max-width: 460px) {
  .demo-wide, .hero-create { display: none; }
  .nav-secondary nav { flex: 1 0 100%; justify-content: space-between; column-gap: 5px; font-size: .88rem; }
  .nav-secondary { padding-bottom: 9px; }
  .nav-secondary > .button { padding-block: 6px; }
  .hero-photo { max-height: 174px; object-position: 82% center; }
}
@media (max-width: 350px) {
  .nav-secondary nav { justify-content: start; column-gap: 9px; font-size: .84rem; }
}
