@font-face { font-family: "Tarnac"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/tarnac-regular.woff2") format("woff2"); }
@font-face { font-family: "Tarnac"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/tarnac-italic.woff2") format("woff2"); }
@font-face { font-family: "Tarnac Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/tarnac-sans-regular.woff2") format("woff2"); }
@font-face { font-family: "Tarnac Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/tarnac-sans-bold.woff2") format("woff2"); }
/* Layout: one working column. Yellow brand band on top, budget strip, tabs, then the active panel.
   Tokens follow the Roundabout Brand Guidelines (Oct 2025): Yellow + Dusty Blue lead, Powder Blue for light grounds, Rust for wordmark-weight text.
   Type: Tarnac for headings, Tarnac Sans for text (licensed webfonts from the brand kit). Logos are the official RGB PNGs. Ported from the Oct 2025 artifact. */
:root {
  --yellow: #F5BF4A;
  --dusty-blue: #45697D;
  --powder-blue: #BACFD6;
  --rust: #66381F;
  --bg: #F8F5EE;
  --surface: #FFFFFF;
  --fg: #2E2119;
  --muted: #6E5F55;
  --line: #E6DECF;
  --heading: #66381F;
  --band: #F5BF4A;
  --band-ink: #45697D;
  --accent: #45697D;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCE7EB;
  --warn: #8F4F24;
  --warn-soft: #FBEBD0;
  --bad: #B23A1E;
  --bad-soft: #FBE3DA;
  --good: #45697D;
  --font-display: "Tarnac", "Sanchez", Georgia, serif;
  --font-body: "Tarnac Sans", "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Tarnac Sans", "Work Sans", system-ui, sans-serif;
  --logo-light: block;
  --logo-dark: none;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --logo-light: none; --logo-dark: block;
  --bg: #1C272E; --surface: #24333B; --fg: #F3EEE4; --muted: #AFC0C7; --line: #364954;
  --heading: #F0C7A6; --band: #2C3E48; --band-ink: #F5BF4A;
  --accent: #BACFD6; --accent-ink: #1C272E; --accent-soft: #2F4652;
  --warn: #F5BF4A; --warn-soft: #3A2F1A; --bad: #F2937B; --bad-soft: #3D2420; --good: #BACFD6;
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --logo-light: none; --logo-dark: block;
  --bg: #1C272E; --surface: #24333B; --fg: #F3EEE4; --muted: #AFC0C7; --line: #364954;
  --heading: #F0C7A6; --band: #2C3E48; --band-ink: #F5BF4A;
  --accent: #BACFD6; --accent-ink: #1C272E; --accent-soft: #2F4652;
  --warn: #F5BF4A; --warn-soft: #3A2F1A; --bad: #F2937B; --bad-soft: #3D2420; --good: #BACFD6;
  color-scheme: dark; }

[hidden] { display: none !important; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
.wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px 64px; display: grid; gap: 20px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--heading); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: 1.9rem; font-weight: 400; }
h2 { font-size: 1.3rem; font-weight: 400; }
h3 { font-size: 1.05rem; font-weight: 400; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mono { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack { display: grid; gap: 12px; }

header.top { display: grid; gap: 8px; background: var(--band); color: var(--band-ink); border-radius: 14px; padding: 22px 20px; }
header.top h1 { color: var(--band-ink); }
header.top .muted, header.top .small { color: var(--band-ink); }
header.top select { background: var(--surface); }
.brandrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wordmark { width: min(260px, 70%); height: auto; }
.wordmark.light { display: var(--logo-light); }
.wordmark.dark { display: var(--logo-dark); }
.welcome { width: min(190px, 46%); height: auto; }
.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.who { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.budget { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; }
.meter { height: 10px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.meter.over > i { background: var(--bad); }
.budget .big { font-family: var(--font-display); color: var(--heading); font-size: 1.7rem; }

nav.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
nav.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
nav.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.product .art { aspect-ratio: 4 / 3; max-width: 100%; border-radius: 8px; background: var(--powder-blue); overflow: hidden; }
.product .art img { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 8px; display: block; }
.product .price { font-weight: 700; }
.product .row.spread { flex-wrap: nowrap; align-items: baseline; }
.product h3 { min-width: 0; }

label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; }
label .req { color: var(--bad); font-weight: 500; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; width: 100%; box-sizing: border-box; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.fields .wide { grid-column: 1 / -1; }

button.btn { font: inherit; font-weight: 600; border-radius: 8px; padding: 9px 14px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
button.btn.ghost { background: transparent; color: var(--accent); }
button.btn.danger { border-color: var(--bad); background: transparent; color: var(--bad); }
button.btn:disabled { opacity: 0.45; cursor: not-allowed; }
button.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 14px; }
.cart-line { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.total { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.05rem; }

.notice { border-radius: 8px; padding: 10px 12px; font-size: 0.9rem; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.good { background: var(--accent-soft); color: var(--good); }

.pill { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 99px; border: 1px solid currentColor; }
.pill.pending { color: var(--warn); }
.pill.approved, .pill.ordered { color: var(--accent); }
.pill.shipped { color: var(--good); background: var(--accent-soft); }
.pill.declined { color: var(--bad); }

.req-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.req-card ul { margin: 0; padding-left: 18px; }
.addr { white-space: pre-line; font-size: 0.88rem; color: var(--muted); }
.comm-bars { display: grid; gap: 10px; }
.comm-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.comm-bar .meter { grid-column: 1 / -1; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
@media (prefers-reduced-motion: no-preference) { .meter > i { transition: width .3s ease; } }

/* Added for the production shop */
.product .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.estimate { display: grid; gap: 4px; font-size: 0.9rem; }
.estimate .line { display: flex; justify-content: space-between; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.err { color: var(--bad); font-size: 0.85rem; }
a { color: var(--accent); }
.store-section { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.store-section:first-child { border-top: 0; padding-top: 0; }
.section-head { display: flex; gap: 12px; align-items: center; }
.section-logo { display: block; height: 52px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 4px; }
.pill.failed { color: var(--bad); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; font-size: 0.88rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; white-space: pre-line; }
.sec-row { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sec-row:last-child { border-bottom: 0; }

/* ---------- Main street retro layer (Oct 20, 2026) ----------
   One idea: the shop is a little storefront. The header is a line drawing of it, and its
   scalloped yellow awning comes back as the divider over each section. Everything else stays
   quiet: Dusty Blue ink lines like the drawing, shop-window product cards, sign-style section names. */
:root { --ink: #45697D; --stripe: #F5BF4A; --stripe-alt: #FFFDF6; --glass: #DCE7EB; --paper: #FFFDF6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ink: #BACFD6; --stripe: #E2AE3E; --stripe-alt: #2C3E48; --glass: #2F4652; --paper: #24333B; } }
:root[data-theme="dark"] { --ink: #BACFD6; --stripe: #E2AE3E; --stripe-alt: #2C3E48; --glass: #2F4652; --paper: #24333B; }

header.top.storefront-head { background: none; padding: 0; border-radius: 0; gap: 14px; color: var(--fg); }
header.top.storefront-head h1 { color: var(--heading); }
header.top.storefront-head .muted { color: var(--muted); }
header.top.storefront-head .small { color: var(--fg); }
.storefront { display: block; width: 100%; max-width: 680px; height: auto; margin: 0 auto; color: var(--ink); }
.storefront .sf-wall, .storefront .sf-sign, .storefront .sf-door, .storefront .sf-item, .storefront .sf-pot { fill: var(--paper); }
.storefront .sf-stripe-a, .storefront .sf-ball { fill: var(--stripe); }
.storefront .sf-stripe-b { fill: var(--stripe-alt); }
.storefront .sf-glass { fill: var(--glass); }
.storefront .sf-sign-text { font-family: var(--font-display); font-size: 27px; fill: var(--heading); letter-spacing: 0.02em; }
.hello { display: grid; gap: 6px; text-align: center; justify-items: center; max-width: 60ch; margin: 0 auto; }
.hello .who { justify-content: center; }

/* Scalloped valance: the awning edge, reused as the divider over each section. */
.store-section { border-top: 0; padding-top: 0; gap: 14px; }
.store-section::before { content: ""; display: block; height: 14px; background:
  radial-gradient(circle at 50% 0, var(--stripe) 0 9px, var(--ink) 9px 11px, transparent 11.5px) 0 2px / 24px 14px repeat-x,
  linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat; }
.section-head h2 { display: inline-block; background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; padding: 4px 14px 5px; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--ink); }

/* Shop-window product cards */
.product { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px 12px 6px 6px; box-shadow: 4px 4px 0 var(--powder-blue); }
.product .art { background: var(--glass); border: 1.5px solid var(--ink); border-radius: 8px 8px 4px 4px; padding: 6px; box-sizing: border-box; }
.product .art img { border-radius: 4px; }
.product .price { background: var(--stripe); color: #2E2119; border: 1.5px solid var(--ink); border-radius: 4px; padding: 0 7px; font-size: 0.9rem; white-space: nowrap; }

/* Awning-style tabs */
nav.tabs { gap: 6px; border-bottom: 2px solid var(--ink); padding: 0 2px; }
nav.tabs button { border: 2px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; margin-bottom: -2px; padding: 9px 14px; color: var(--muted); }
nav.tabs button[aria-selected="true"] { color: #2E2119; background: var(--stripe); border-color: var(--ink); border-bottom: 2px solid var(--stripe); }

/* Buttons with a small printed offset */
button.btn { border: 2px solid var(--ink); background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--stripe); }
button.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 var(--powder-blue); }
button.btn:not(:disabled):active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--stripe); }
button.btn.danger { box-shadow: none; }

.budget, .panel, .req-card { border: 1.5px solid var(--ink); background: var(--paper); }
.budget { box-shadow: 4px 4px 0 var(--stripe); }
.meter { height: 12px; background: var(--glass); border: 1.5px solid var(--ink); }
.meter > i { background: var(--stripe); border-right: 1.5px solid var(--ink); border-radius: 0; }
.meter.over > i { background: var(--bad); }
input, select, textarea { border: 1.5px solid color-mix(in srgb, var(--ink) 55%, transparent); background: var(--paper); }
.empty { border: 1.5px dashed var(--ink); }
.notice:not(.bad):not(.warn):not(.good) { background: var(--glass); color: var(--fg); }
.grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
a.go-btn { display: inline-block; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 8px; padding: 11px 22px; box-shadow: 3px 3px 0 var(--stripe); }
a.go-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--stripe); }
a.go-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
