
@font-face { font-family: 'Super Foods'; src: url('https://macromike.com.au/cdn/shop/files/Super_Foods.ttf?v=7476259731532529250') format('truetype'); font-display: swap; }
@font-face { font-family: 'MM Gothic'; src: url('https://macromike.com.au/cdn/shop/files/Alternate_Gothic_Condensed_ATF.otf?v=12971506826244523368') format('opentype'); font-display: swap; }

:root {
  --ink: #1a1a1a;
  --ink-2: #3f3f3f;
  --muted: #6b6a66;
  --line: rgba(26, 26, 26, 0.1);
  --line-strong: rgba(26, 26, 26, 0.22);
  --bg: #fbf7ef;
  --card: #ffffff;
  --yellow: #fed600;
  --cream: #fff4dc;
  --teal: #67c8c6;
  --teal-soft: #e3f5f4;
  --coral: #ef695d;
  --coral-deep: #d9473c;
  --orange: #f8a056;
  --gold: #f4cb61;
  --red: #dd1d1d;
  --red-soft: #fde4e2;
  --green: #3f7a17;
  --green-soft: #ecf5e5;
  --grad: linear-gradient(133deg, #ef695d, #f8a056 50%, #f4cb61 100%);
  --display: 'Super Foods', 'Montserrat', system-ui, sans-serif;
  --gothic: 'MM Gothic', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --radius: 24px;
  --radius-lg: 32px;
  --radius-sm: 14px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 10px 30px rgba(26, 26, 26, 0.05);
  --shadow-lift: 0 2px 4px rgba(26, 26, 26, 0.05), 0 18px 40px rgba(26, 26, 26, 0.1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 Montserrat, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
form { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.stack > * + * { margin-top: 18px; }

/* Display type */
.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 5vw, 52px); line-height: 0.95; letter-spacing: 0.01em;
}
.display.sm { font-size: clamp(30px, 4vw, 42px); }
.display.pop { color: #fff; text-shadow: 0 3px 0 var(--coral-deep), 2px 3px 0 var(--coral-deep), -2px 3px 0 var(--coral-deep); }
.gothic { font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 400; }

/* Announcement strip */
.strip {
  background: var(--ink); color: #fff; text-align: center; padding: 9px 16px;
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.1em; font-size: 15px;
}
.strip b { color: var(--yellow); font-weight: 400; }

/* Header */
.header { background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { max-width: 1440px; margin: 0 auto; padding: 0 28px; height: 76px; display: flex; align-items: center; gap: 28px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: var(--pill); color: var(--ink-2); transition: background 0.15s; }
.nav a:hover { background: var(--cream); color: var(--ink); }
.nav a[aria-current='page'] { background: var(--ink); color: #fff; }
/* Header menus: a pill like the links that opens a small panel of links underneath */
.nav-menu { flex: none; }
.nav-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: var(--pill); color: var(--ink-2); transition: background 0.15s;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover, .nav-menu[open] summary { background: var(--cream); color: var(--ink); }
.nav-menu summary[aria-current='page'] { background: var(--ink); color: #fff; }
.nav-menu .caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.nav-menu[open] .caret { transform: translateY(1px) rotate(-135deg); }
.nav-sub {
  position: absolute; z-index: 20; min-width: 220px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift);
}
.nav-sub a { display: block; text-decoration: none; font-weight: 600; font-size: 14px; padding: 11px 14px; border-radius: 10px; color: var(--ink-2); white-space: nowrap; }
.nav-sub a:hover { background: var(--cream); color: var(--ink); }
.nav-sub a[aria-current='page'] { background: var(--ink); color: #fff; }
.who { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.who form { display: flex; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font-family: var(--gothic); font-size: 18px; letter-spacing: 0.04em; text-decoration: none; color: var(--ink);
  background: var(--yellow);
}
.avatar.c1 { background: var(--teal); } .avatar.c2 { background: var(--gold); } .avatar.c3 { background: #f7b7ad; } .avatar.c4 { background: var(--orange); }

/* View-as switcher (admins only) */
.viewas { display: inline-flex; align-items: center; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--pill); padding: 3px 3px 3px 12px; }
.viewas-label { white-space: nowrap; font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; color: var(--muted); margin-right: 6px; }
.viewas button { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: var(--pill); cursor: pointer; color: var(--muted); }
.viewas button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.viewas button:hover:not([aria-pressed='true']) { color: var(--ink); background: #fff; }

.banner { background: var(--yellow); color: var(--ink); }
.banner-inner { max-width: 1240px; margin: 0 auto; padding: 10px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-weight: 600; font-size: 14px; }
.banner-inner .gothic { font-size: 18px; margin-right: 8px; }
.banner form { display: flex; }

/* Layout */
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 36px 28px 72px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head p { margin-top: 10px; }
.crumb { display: inline-block; margin-bottom: 10px; font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.08em; font-size: 16px; text-decoration: none; color: var(--muted); }
.crumb:hover { color: var(--ink); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.section-title { margin: 40px 0 16px; font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.08em; font-size: 20px; color: var(--ink-2); }

/* Hero */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--grad); color: #fff;
  padding: 44px 44px 48px; min-height: 260px; box-shadow: var(--shadow-lift);
}
.hero.teal { background: linear-gradient(133deg, #3fb3b0, #67c8c6 55%, #a9e2df); }
.hero.teal .display.pop { text-shadow: 0 3px 0 #2a8c89, 2px 3px 0 #2a8c89, -2px 3px 0 #2a8c89; }
.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.hero .eyebrow { display: inline-block; margin-bottom: 18px; padding: 5px 14px; border: 2px solid #fff; border-radius: var(--pill); font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.08em; font-size: 16px; }
.hero .lede { margin-top: 18px; font-weight: 600; font-size: 16px; max-width: 460px; color: rgba(255, 255, 255, 0.95); }
.hero .lede .badge { vertical-align: 1px; }
.hero .eyebrow-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.hero .eyebrow-row .eyebrow { margin-bottom: 0; }
.hero .eyebrow-row .badge { background: #fff; color: var(--ink); }
.hero-art { position: absolute; right: 24px; bottom: -4px; height: 96%; display: flex; align-items: flex-end; gap: 0; pointer-events: none; }
.hero-art .mascot { height: 100%; width: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18)); }
.hero-art .bag { height: 52%; width: auto; margin-right: -26px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.18)); }
.hero-art .bag:nth-child(1) { transform: rotate(-10deg) translateY(-6px); }
.hero-art .bag:nth-child(2) { transform: rotate(6deg); height: 58%; z-index: 1; }

/* Cards */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
a.card { display: block; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card .icon { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: var(--cream); margin-bottom: 18px; }
.card .icon.pad { object-fit: contain; padding: 8px; }
.card h2 { margin-bottom: 6px; }
.card .go { margin-top: 18px; font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.card .corner { position: absolute; top: 20px; right: 20px; }
.card.cream { background: var(--cream); border-color: transparent; }
.stat { font-family: var(--display); font-size: 46px; line-height: 1; margin: 2px 0 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
  padding: 11px 24px; border-radius: var(--pill); white-space: nowrap; transition: transform 0.1s, background 0.15s;
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn.yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn.yellow:hover { background: #f2cb00; border-color: #f2cb00; }
.btn.coral { background: var(--red); border-color: var(--red); }
.btn.coral:hover { background: #e8323f; border-color: #e8323f; }
.btn.white { background: #fff; border-color: #fff; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); background: #fff; }
.btn.danger { background: transparent; color: #b4232f; border-color: rgba(180, 35, 47, 0.3); }
.btn.danger:hover { background: var(--red-soft); }
.btn.small { padding: 6px 15px; font-size: 13px; border-width: 1.5px; }
.btn.big { padding: 14px 28px; font-size: 15px; }

/* Badges and chips */
.badge {
  display: inline-block; font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 15px; line-height: 1; padding: 5px 11px 4px; border-radius: var(--pill); white-space: nowrap;
}
.badge.admin { background: var(--ink); color: #fff; }
.badge.staff { background: var(--yellow); color: var(--ink); }
.badge.external { background: var(--teal); color: var(--ink); }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: var(--pill); background: var(--bg); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--green-soft); color: var(--green); }
.chip.off { background: var(--red-soft); color: #9b1c27; }
.chip.warn { background: var(--cream); color: #7a5b00; }
.chip.soon { background: var(--ink); color: var(--yellow); font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; font-weight: 400; padding: 4px 11px 3px; }

/* Forms */
form.stack { max-width: 560px; }
label, .legend { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; padding: 0; }
.hint { font-size: 13px; color: var(--muted); margin-top: 7px; }
input[type='text'], input[type='email'], input[type='password'], select {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(254, 214, 0, 0.55); }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(254, 214, 0, 0.9); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.role-options { display: grid; gap: 10px; }
.role-option { display: flex; gap: 14px; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; background: #fff; margin: 0; transition: border-color 0.15s, background 0.15s; }
.role-option:hover { border-color: var(--ink); }
.role-option:has(input:checked) { border-color: var(--ink); background: var(--cream); box-shadow: inset 0 0 0 1px var(--ink); }
.role-option:has(input:disabled) { cursor: default; opacity: 0.7; }
.role-option input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.role-option .blurb { font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 4px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 6px; }

.alert { border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14px; font-weight: 600; }
.alert.error { background: var(--red-soft); color: #7d1620; }
.alert.success { background: var(--green-soft); color: var(--green); }
.alert.info { background: var(--cream); color: var(--ink); }

.secret {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font: 700 22px/1 ui-monospace, Menlo, monospace; letter-spacing: 0.08em;
  background: var(--cream); border: 2px dashed var(--ink); border-radius: var(--radius-sm); padding: 18px 20px;
}

/* Tables */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; font-weight: 400; color: var(--muted); padding: 16px 18px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fffcf4; }
tr.inactive td { color: var(--muted); }
tr.inactive .avatar { filter: grayscale(1); opacity: 0.6; }
.person { display: flex; align-items: center; gap: 12px; }
td .sub { font-size: 12px; color: var(--muted); }
.counts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.count { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--pill); padding: 5px 14px 5px 5px; font-weight: 700; font-size: 13px; }

/* Sign in */
.auth { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; min-height: calc(100vh - 38px); }
.auth-art { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: flex-start; gap: 36px; }
.auth-art .roundel { width: 84px; height: 84px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18)); }
.auth-art .display { font-size: clamp(44px, 5.2vw, 72px); max-width: 520px; }
.auth-art .lede { margin-top: 18px; font-weight: 600; font-size: 17px; max-width: 420px; }
.auth-art .scene { position: absolute; right: -20px; bottom: -10px; height: 52%; display: flex; align-items: flex-end; pointer-events: none; }
.auth-art .scene .mascot { height: 100%; width: auto; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.2)); }
.auth-art .scene .bag { height: 46%; width: auto; margin-right: -30px; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.2)); }
.auth-art .scene .bag:nth-child(1) { transform: rotate(-12deg) translateY(-10px); }
.auth-art .scene .bag:nth-child(2) { transform: rotate(7deg); height: 52%; z-index: 1; }
.auth-form { display: grid; place-items: center; padding: 48px 28px; background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .wordmark { height: 46px; width: auto; margin-bottom: 30px; }
.auth-card h1 { font-family: var(--display); font-weight: 400; font-size: 36px; text-transform: uppercase; }
.auth-card .intro { margin: 8px 0 26px; color: var(--muted); }
.auth-card .btn { width: 100%; }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.65); font-size: 13px; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 26px 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .roundel { width: 44px; height: 44px; }
.footer .wm { height: 26px; width: auto; }
.footer .spacer { flex: 1; }
.footer .gothic { font-size: 15px; color: rgba(255, 255, 255, 0.85); }

@media (max-width: 1480px) {
  .viewas-label { display: none; }
  .nav a, .nav-menu summary { padding: 9px 12px; }
  .header-inner { gap: 20px; }
  .nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .logo img { height: 34px; }
  .viewas { padding-left: 3px; }
}
@media (max-width: 1320px) {
  .nav { gap: 0; }
  .nav a, .nav-menu summary { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 980px) {
  .hero-art { opacity: 0.35; right: -40px; }
}
@media (max-width: 860px) {
  .header-inner { height: auto; flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
  .logo img { height: 34px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .logo { flex: 1; }
  .who { display: contents; }
  .viewas { order: 4; }
  .viewas-label { display: none; }
  .viewas { padding-left: 3px; }
  main { padding: 24px 16px 56px; }
  .banner-inner { padding: 10px 16px; }
  .hero { padding: 30px 24px 34px; }
  .hero-art { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 36px 24px 220px; }
  .auth-art .scene { height: 230px; }
  .footer-inner { padding: 22px 16px; }
}

/* Website watchdog */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 8px; }
.status-grid .card { padding: 20px 22px; }
.status-grid .label { font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; color: var(--muted); }
.status-grid .big { font-weight: 800; font-size: 18px; margin: 6px 0 4px; word-break: break-word; }
.level { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 700; }
.level.red { background: var(--red-soft); color: #9b1c27; }
.level.amber { background: var(--cream); color: #7a5b00; }
.level.green { background: var(--green-soft); color: var(--green); }
.level .gothic { font-size: 22px; letter-spacing: 0.06em; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checklist > li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.checklist .area { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-left: 6px; }
.checklist .detail { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.checklist ul { margin: 8px 0 0; padding-left: 20px; font-size: 13px; color: var(--ink-2); }
.checklist li li { margin: 2px 0; word-break: break-word; }
.checklist details summary { cursor: pointer; font-size: 13px; font-weight: 600; margin-top: 8px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.red { background: var(--red); } .dot.amber { background: #e0a400; } .dot.green { background: var(--green); }
.chip.red { background: var(--red-soft); color: #9b1c27; } .chip.amber { background: var(--cream); color: #7a5b00; } .chip.green { background: var(--green-soft); color: var(--green); }
.path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.group-head td { background: var(--cream); font-weight: 700; }
.events { list-style: none; padding: 0; margin: 0; }
.events li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.events time { color: var(--muted); font-size: 13px; }
.events .msg { white-space: pre-line; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.inline-form > div { flex: 1; min-width: 220px; }
select { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; }
@media (max-width: 700px) { .events li { grid-template-columns: 1fr; gap: 2px; } }

.sync-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.season { display: flex; gap: 24px; align-items: center; margin-bottom: 20px; background: var(--cream); border-color: transparent; }
.season.up { background: linear-gradient(133deg, #fde3df, #fef0dc 60%, #fff4dc); }
.season-label { font-size: 16px; color: var(--muted); }
.season-factor { font-family: var(--display); font-size: 46px; line-height: 1; color: var(--coral-deep); }
.season.down .season-factor { color: var(--teal); }
.stock-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { border: 1px solid var(--line-strong); background: #fff; border-radius: var(--pill); padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.filter b { margin-left: 4px; }
.filter[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
#stock-search { max-width: 280px; padding: 9px 14px; font-size: 14px; }
.stock-table { min-width: 980px; font-size: 13px; }
.stock-table td, .stock-table th { padding-left: 10px; padding-right: 10px; }
.stock-table .status { font-size: 11px; padding: 3px 8px; }
.stock-table th { font-size: 14px; letter-spacing: 0.06em; }
.stock-table td.r, .stock-table th.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stock-table td.product { min-width: 220px; max-width: 300px; }
.stock-table .neg { color: #b4232f; font-weight: 700; }
.stock-table tr.stale td { color: var(--muted); }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--pill); white-space: nowrap; background: var(--bg); color: var(--muted); }
.status.s-out { background: #b4232f; color: #fff; }
.status.s-make { background: var(--red-soft); color: #9b1c27; }
.status.s-tight { background: var(--cream); color: #7a5b00; }
.status.s-ok { background: var(--green-soft); color: var(--green); }
.status.s-limited { background: #efe6fb; color: #5b3a8c; }
.status.s-kit { background: var(--teal-soft); color: var(--ink-2); }
.sale-day { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 20px; background: linear-gradient(133deg, #fff4dc, #fde3df); border-color: transparent; }
.sale-day > div:first-child { min-width: 150px; }
.sale-day p { margin: 0 0 6px; }
.sale-cell { min-width: 118px; font-size: 12px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.sale-cell > div { white-space: nowrap; }
.sub.forecast { margin-top: 4px; color: var(--ink-2); }
.sale-cell .late { display: block; font-weight: 600; }
.sale-cell .neg { font-weight: 700; }
.sub.warn { color: #7a5b00; }
.sub.ok { color: var(--green); }
.status.s-sale, .filter.s-sale[aria-pressed='true'] { background: var(--coral); color: #fff; border-color: var(--coral); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--pill); background: var(--bg); color: var(--ink-2); }
.cover { min-width: 118px; }
.cover-nums { font-variant-numeric: tabular-nums; font-weight: 700; }
.cover-bar { position: relative; height: 8px; margin-top: 6px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.cover-bar span { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; }
.cover-incoming { background: var(--teal-soft); }
.cover-now { background: var(--teal); }
.cover-lead { width: 2px; background: var(--ink); border-radius: 0 !important; }
tr[data-status='out'] .cover-now, tr[data-status='make'] .cover-now { background: var(--coral); }
tr[data-status='tight'] .cover-now { background: var(--gold); }
details.runs { margin-top: 6px; font-size: 12px; }
details.runs summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
details.runs ul { margin: 6px 0 0; padding-left: 16px; }
details.runs li.stale { color: var(--muted); text-decoration: line-through; }
.stock-notes { margin-top: 28px; }
.stock-notes ul { margin: 10px 0; padding-left: 18px; }
.stock-notes li + li { margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 8px; }
.stat-tile { padding: 18px 20px; }
.stat-tile p { margin: 0; }
.stat-big { font-family: var(--display); font-size: 34px; line-height: 1.1; margin: 6px 0 8px !important; color: var(--ink); }
.delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--green); }
.delta.down { color: var(--coral-deep); }
.chart-card { padding: 18px 20px 12px; }
.chart-card p { margin: 8px 0 0; }
.sales-chart { width: 100%; height: auto; display: block; }
.sales-chart .grid { stroke: var(--line); stroke-width: 1; }
.sales-chart .axis { font: 600 11px 'Montserrat', system-ui, sans-serif; fill: var(--muted); }
.sales-chart .bar { fill: var(--coral); }
.sales-chart .bar.partial { fill: #f7b7ad; }
.sales-chart .ly { stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.sales-table { min-width: 100%; }
.sales-table td.r, .sales-table th.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sales-table tr.partial td { color: var(--ink-2); }
.sales-table td.nowrap { white-space: nowrap; }
.sales-table a { color: inherit; text-decoration: none; }
.sales-table a:hover { text-decoration: underline; }

body.tv {
  --u: min(1vw, 1.7778vh);
  height: 100vh; min-height: 0; overflow: hidden; color: #fff; cursor: default;
  background:
    radial-gradient(60% 55% at 0% 0%, rgba(239, 105, 93, 0.2), transparent 70%),
    radial-gradient(55% 50% at 100% 100%, rgba(244, 203, 97, 0.14), transparent 70%),
    #121212;
}
body.tv.idle { cursor: none; }
body.tv[data-phase='before'] [data-show]:not([data-show~='before']),
body.tv[data-phase='live'] [data-show]:not([data-show~='live']),
body.tv[data-phase='ended'] [data-show]:not([data-show~='ended']) { display: none; }

.tv-frame { height: 100vh; display: flex; flex-direction: column; gap: calc(var(--u) * 1.6); padding-top: calc(var(--u) * 2); }

/* Top bar */
.tv-top { display: flex; align-items: center; gap: calc(var(--u) * 1.6); margin: 0 calc(var(--u) * 2.6); }
.tv-top .wm { height: calc(var(--u) * 3.2); width: auto; }
.tv-top .spacer { flex: 1; }
.tv-clock { font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.08em; font-size: calc(var(--u) * 2.5); line-height: 1; white-space: nowrap; }
.tv-clock b { font-weight: 400; color: var(--yellow); }

/* Stage: the storefront's coral-to-gold banner */
.tv-stage {
  position: relative; flex: 1; min-height: 0; overflow: hidden; margin: 0 calc(var(--u) * 2.6);
  display: flex; align-items: center; padding: 0 calc(var(--u) * 4.4);
  border-radius: calc(var(--u) * 3); background: var(--grad);
  box-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 4) rgba(0, 0, 0, 0.45);
}
.tv-copy { position: relative; z-index: 2; }

/* Screens the TV cycles through. Only the one marked .on shows; the phase rule above hides the rest. */
.tv-slide { display: none; position: absolute; top: 0; right: 0; bottom: 0; left: 0; align-items: center; padding: 0 calc(var(--u) * 4.4); }
.tv-slide.on { display: flex; animation: tv-in 0.7s cubic-bezier(.2,.8,.2,1); }
.tv-data { flex-direction: column; align-items: flex-start; justify-content: center; gap: calc(var(--u) * 2); }
.tv-dots { position: absolute; right: calc(var(--u) * 2.4); bottom: calc(var(--u) * 2); z-index: 3; display: flex; gap: calc(var(--u) * 0.7); }
.tv-dots i { width: calc(var(--u) * 0.9); height: calc(var(--u) * 0.9); border-radius: 50%; background: rgba(26, 26, 26, 0.25); }
.tv-dots i.on { background: var(--ink); }

.tv-cols { display: flex; gap: calc(var(--u) * 5); width: 100%; }
.tv-big { flex: 1; min-width: 0; }
.tv-big .tv-label { margin-bottom: calc(var(--u) * 0.6); }
.tv-figure { font-family: var(--display); font-size: calc(var(--u) * 10.5); line-height: 0.95; color: #fff; text-shadow: 0 0.05em 0 var(--coral-deep); white-space: nowrap; }
.tv-sub { margin-top: calc(var(--u) * 1); font-weight: 800; font-size: calc(var(--u) * 1.9); line-height: 1.25; color: var(--ink); }
.tv-bar { margin-top: calc(var(--u) * 1.2); height: calc(var(--u) * 1.4); border-radius: var(--pill); background: rgba(26, 26, 26, 0.18); overflow: hidden; max-width: calc(var(--u) * 46); }
.tv-bar i { display: block; height: 100%; border-radius: var(--pill); background: var(--ink); }
.tv-foot { font-weight: 700; font-size: calc(var(--u) * 1.6); color: rgba(26, 26, 26, 0.75); }

.tv-list { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: calc(var(--u) * 1); }
.tv-list li { display: flex; align-items: center; gap: calc(var(--u) * 2); background: rgba(26, 26, 26, 0.1); border-radius: calc(var(--u) * 1.6); padding: calc(var(--u) * 1.1) calc(var(--u) * 2); }
.tv-list li.hot { background: var(--ink); color: #fff; }
.tv-list .rank { font-family: var(--display); font-size: calc(var(--u) * 3.6); line-height: 1; width: 1.1em; color: var(--ink); }
.tv-list li.hot .rank { color: var(--yellow); }
.tv-list .name { flex: 1; min-width: 0; font-weight: 800; font-size: calc(var(--u) * 2.5); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-list .name small { display: block; margin-top: calc(var(--u) * 0.3); font-weight: 600; font-size: calc(var(--u) * 1.5); opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-list .val { font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.06em; font-size: calc(var(--u) * 2.9); line-height: 1; white-space: nowrap; }
.tv-list li.hot .val { color: var(--yellow); }

.tv-demo { font-weight: 800; font-size: calc(var(--u) * 1.3); padding: calc(var(--u) * 0.7) calc(var(--u) * 1.3); border-radius: var(--pill); background: var(--yellow); color: var(--ink); white-space: nowrap; }

.tv-eyebrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.1em; font-size: calc(var(--u) * 2.1); line-height: 1;
  padding: 0.4em 0.85em 0.32em; border: calc(var(--u) * 0.2) solid #fff; border-radius: var(--pill);
}
.tv-eyebrow.live { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.tv-eyebrow .dot { width: 0.55em; height: 0.55em; margin-top: -0.08em; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0.18em rgba(221, 29, 29, 0.35); animation: tv-blink 1.2s ease-in-out infinite; }

.tv-title {
  margin: calc(var(--u) * 1.3) 0 calc(var(--u) * 1.6);
  font-family: var(--display); font-weight: 400; text-transform: uppercase; white-space: nowrap;
  font-size: calc(var(--u) * 9.6); line-height: 0.9; letter-spacing: 0.01em; color: #fff;
  text-shadow: 0 0.06em 0 var(--coral-deep), 0.035em 0.06em 0 var(--coral-deep), -0.035em 0.06em 0 var(--coral-deep);
}
.tv-title.wrap { font-size: calc(var(--u) * 7.8); }
.tv-title.long { font-size: calc(var(--u) * 7.2); }
.tv-title.xlong { font-size: calc(var(--u) * 5.4); }
.tv-label { margin-bottom: calc(var(--u) * 0.9); font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.12em; font-size: calc(var(--u) * 2.4); line-height: 1; color: var(--ink); }
.tv-lede { font-weight: 800; font-size: calc(var(--u) * 2.4); }

/* The countdown */
.tv-count { display: flex; gap: calc(var(--u) * 1.2); }
.tv-cell {
  background: var(--ink); border-radius: calc(var(--u) * 2); text-align: center;
  padding: calc(var(--u) * 1.3) calc(var(--u) * 1.2) calc(var(--u) * 1.15);
  box-shadow: 0 calc(var(--u) * 0.6) 0 rgba(0, 0, 0, 0.3);
}
.tv-num { display: flex; justify-content: center; font-family: var(--display); font-size: calc(var(--u) * 10); line-height: 0.95; color: var(--yellow); }
.tv-num span { width: 0.6em; text-align: center; }
.tv-cell .lbl { margin-top: calc(var(--u) * 0.7); font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.14em; font-size: calc(var(--u) * 1.9); line-height: 1; color: rgba(255, 255, 255, 0.72); }
body.final .tv-cell.s { background: var(--yellow); }
body.final .tv-cell.s .tv-num { color: var(--ink); }
body.final .tv-cell.s .lbl { color: var(--ink); }

/* Mike, with a slow sunburst behind him. Capped in --u so he stays clear of the numbers on squarer screens. */
.tv-art { position: absolute; right: calc(var(--u) * 0.6); bottom: 0; height: 100%; display: flex; align-items: flex-end; pointer-events: none; }
.tv-art .burst {
  position: absolute; left: 62%; top: 58%; width: calc(var(--u) * 120); height: calc(var(--u) * 120); margin: calc(var(--u) * -60) 0 0 calc(var(--u) * -60);
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.13) 0deg 7.5deg, transparent 7.5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 15%, transparent 100%); mask: radial-gradient(closest-side, #000 15%, transparent 100%);
  animation: tv-spin 160s linear infinite;
}
.tv-art img { position: relative; }
.tv-art .mascot { height: 92%; max-height: calc(var(--u) * 40); width: auto; filter: drop-shadow(0 calc(var(--u) * 1.2) calc(var(--u) * 1.6) rgba(0, 0, 0, 0.22)); }

/* Ticker: the storefront's announcement strip, in yellow */
.tv-ticker { flex: none; overflow: hidden; white-space: nowrap; background: var(--yellow); color: var(--ink); font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.1em; font-size: calc(var(--u) * 2.2); line-height: 1; padding: calc(var(--u) * 1.1) 0 calc(var(--u) * 0.95); }
.tv-ticker .track { display: inline-flex; animation: tv-marquee 60s linear infinite; }
.tv-ticker .sep { display: inline-block; width: 0.32em; height: 0.32em; margin: 0 1.1em; border-radius: 50%; background: var(--ink); vertical-align: 0.2em; }

/* Phase change flash */
body.flash .tv-stage::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 5; background: #fff; pointer-events: none; animation: tv-flash 1.4s ease-out forwards; }

@keyframes tv-spin { to { transform: rotate(360deg); } }
@keyframes tv-in { from { opacity: 0; transform: translateY(calc(var(--u) * 1.5)); } }
@keyframes tv-marquee { to { transform: translateX(-50%); } }
@keyframes tv-blink { 50% { opacity: 0.25; } }
@keyframes tv-flash { from { opacity: 0.85; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  body.tv *, body.tv *::before, body.tv *::after { animation: none !important; }
}

.whats-on { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.whats-on .card { padding: 18px 20px; }
.whats-on .when { font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.06em; font-size: 15px; color: var(--muted); }
.whats-on .now { background: linear-gradient(133deg, #fde3df, #fef0dc 60%, #fff4dc); border-color: transparent; }
.whats-on h3 { font-size: 17px; margin: 6px 0 4px; }
.whats-on p { font-size: 13px; color: var(--ink-2); margin: 0; }
.cal-table { min-width: 860px; font-size: 13px; }
.cal-table td.when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cal-table tr.child td { color: var(--ink-2); }
.cal-table tr.child td:nth-child(2) { padding-left: 34px; }
.cal-table tr.past td { opacity: 0.6; }
.cal-table a { color: inherit; }
.issues { list-style: none; padding: 0; margin: 0; }
.issues li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; gap: 10px; align-items: baseline; }
.kind { font-size: 11px; padding: 3px 8px; }

.st { max-width: 720px; margin: 0 auto; }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.st-title { font-size: 34px; line-height: 1; letter-spacing: 0.04em; }
.st-meta { margin-top: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.st-refresh .btn { min-height: 44px; }
.st .alert { margin-bottom: 12px; }
.st-search {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 18px; min-height: 48px;
  border: 1px solid var(--line-strong); border-radius: var(--pill); background: #fff; color: var(--ink);
}
.st-search:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.st-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 4px 12px; font-size: 12px; color: var(--muted); }
.st-legend b { color: var(--ink); font-weight: 700; }
.st-legend .neg { color: #b4232f; font-weight: 700; }
.st-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.st-cols { display: none; }
.st-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
  grid-template-areas: 'img name nums' 'img blends nums';
  padding: 10px 12px; border-top: 1px solid var(--line);
}
.st-cols + .st-row { border-top: 0; }
.st-row[hidden] { display: none; }
.st-img { grid-area: img; width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: var(--bg); display: block; }
.st-name { grid-area: name; min-width: 0; }
.st-t { font-weight: 700; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-sub { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-var::after { content: ' · '; }
.st-sku { font-variant-numeric: tabular-nums; }
.st-skucol { display: none; }
.st-tag { margin-left: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 1px 6px; border-radius: var(--pill); background: var(--bg); white-space: nowrap; }
.st-tag.warn { background: var(--cream); color: #7a5b00; }
.st-tag.shop { background: #e8f0fb; color: #23508c; }
.st-blends { grid-area: blends; display: flex; flex-wrap: wrap; gap: 4px; }
.st-blends:not(:empty) { margin-top: 5px; }
.st-blend, .st-blend-key { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--pill); background: var(--teal-soft); color: #1f6b69; white-space: nowrap; }
.st-blend.now { background: var(--teal); color: var(--ink); }
.st-blend b { font-weight: 800; }
.st-nums { grid-area: nums; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-avail { font-family: var(--display); font-size: 28px; line-height: 1; min-width: 2ch; text-align: right; }
.st-avail.none { color: var(--muted); }
.st-sold { font-weight: 800; font-size: 14px; color: var(--coral-deep); }
.st-zero { display: none; }
.st-row.out .st-avail { color: #b4232f; }
.st-row.out { background: #fff6f5; }
.st-row.missing { background: #fbfaf7; }
.st-row.inactive .st-t { color: var(--muted); }
.st-statuses { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.st-pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 14px;
  border: 1px solid var(--line-strong); background: #fff; border-radius: var(--pill);
  font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer;
}
.st-pill span { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-pill[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.st-pill[aria-pressed='true'] span { color: rgba(255, 255, 255, 0.7); }
.st-pill.empty:not([aria-pressed='true']) { opacity: 0.5; }
.st-tag.s-draft { background: #eef0f2; color: #4a5560; }
.st-tag.s-unlisted { background: #efe6fb; color: #5b3a8c; }
.st-tag.s-archived { background: #f3ede4; color: #6b5a3c; }
.st-tag.s-suspended { background: var(--red-soft); color: #9b1c27; }
.st-empty { padding: 24px 4px; }
.st-foot { margin-top: 16px; line-height: 1.5; }

@media (min-width: 900px) {
  .st { max-width: none; }
  .st-legend { margin: 12px 2px 14px; font-size: 13px; }
  .st-search { max-width: 420px; }
  .st-cols, .st-row {
    display: grid; column-gap: 18px; align-items: center;
    grid-template-columns: 44px minmax(0, 2.4fr) minmax(0, 1.5fr) minmax(0, 1.6fr) 90px 110px;
    grid-template-areas: 'img name sku blends sold avail';
    padding: 9px 18px;
  }
  .st-cols {
    position: sticky; top: 76px; z-index: 2; background: var(--ink); color: #fff; padding-top: 10px; padding-bottom: 10px;
    font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px;
  }
  .st-list { overflow: visible; }
  .st-cols { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .st-cols .r { text-align: right; }
  .st-row:hover { background: var(--cream); }
  .st-sku-m, .st-sub .st-tag { display: none; }
  .st-skucol .st-sku { word-break: break-all; }
  .st-sub .st-var::after { content: none; }
  .st-sub:not(:has(.st-var)) { display: none; }
  .st-skucol { grid-area: sku; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; font-size: 13px; color: var(--ink-2); word-break: break-all; }
  .st-skucol .st-tag { margin-left: 0; }
  .st-blends:not(:empty) { margin-top: 0; }
  .st-nums { display: contents; }
  .st-soldc { grid-area: sold; text-align: right; }
  .st-zero { display: inline; color: var(--line-strong); font-weight: 600; }
  .st-avail { grid-area: avail; font-size: 26px; }
}
@media (max-width: 860px) {
  body:has(.st) main { padding: 14px 10px 40px; }
  body:has(.st) .strip { display: none; }
  .st-head { padding: 0 4px; }
  .st-title { font-size: 30px; }
}
@media (max-width: 380px) {
  .st-row { grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 10px; padding: 9px 10px; }
  .st-img { width: 36px; height: 36px; }
  .st-avail { font-size: 24px; }
}

.bud-gap-below { margin-bottom: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ink { color: var(--ink); }

/* Hero: ring, year track and what's in */
.bud-hero { padding-bottom: 30px; }
.bud-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.bud-hero .lede { max-width: 620px; }
.bud-hero .lede b { color: #fff; font-weight: 800; }
.bud-ring { width: 190px; height: 190px; }
.bud-ring .ring-track { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 16; }
.bud-ring .ring-fill { fill: none; stroke: #fff; stroke-width: 16; stroke-linecap: round; }
.bud-ring .ring-over { fill: none; stroke: var(--yellow); stroke-width: 16; stroke-linecap: round; }
.bud-ring .ring-big { font-family: var(--display); font-size: 44px; fill: #fff; }
.bud-ring .ring-small { font: 700 11px Montserrat, system-ui, sans-serif; fill: rgba(255, 255, 255, 0.92); letter-spacing: 0.02em; }

.bud-track { position: relative; z-index: 1; margin-top: 34px; }
.bud-track-bar { position: relative; height: 20px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.28); }
.bud-track-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--pill); background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.bud-track-tick { position: absolute; top: 4px; bottom: 4px; width: 1.5px; margin-left: -0.75px; background: rgba(26, 26, 26, 0.16); }
.bud-track-mark { position: absolute; top: -9px; bottom: -9px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.bud-track-mark span {
  position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; line-height: 1;
  background: var(--ink); color: var(--yellow); padding: 4px 8px 3px; border-radius: var(--pill);
}
.bud-track-months { position: relative; height: 20px; margin-top: 8px; }
.bud-track-months span { position: absolute; transform: translateX(-50%); font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; opacity: 0.85; }
.bud-track-months span.now { opacity: 1; background: rgba(255, 255, 255, 0.3); padding: 0 6px; border-radius: var(--pill); }
.bud-track-legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 13px; font-weight: 600; }
.bud-track-legend b { font-weight: 800; }

.bud-coverage { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.bud-coverage > .gothic { font-size: 16px; margin-right: 4px; }
.bud-cov { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.94); color: var(--ink); border-radius: var(--pill); padding: 4px 11px 4px 8px; font-size: 12px; font-weight: 700; }
.bud-cov i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.bud-cov em { font-style: normal; font-weight: 600; color: var(--muted); }
.bud-cov.out { background: rgba(255, 255, 255, 0.28); color: #fff; }
.bud-cov.out em { color: rgba(255, 255, 255, 0.85); }

/* Tiles */
.bud-tiles { margin-top: 20px; }
.bud-tile.good { background: linear-gradient(180deg, var(--green-soft), #fff 65%); }
.bud-tile.close { background: linear-gradient(180deg, var(--cream), #fff 65%); }
.bud-tile.bad { background: linear-gradient(180deg, var(--red-soft), #fff 65%); }
.bud-tile p + p { margin-top: 4px; }
.bud-mini { position: relative; height: 10px; margin: 2px 0 12px; border-radius: var(--pill); background: rgba(26, 26, 26, 0.07); }
.bud-mini .fill, .bud-bullet .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--pill); background: #b9b4aa; }
.bud-mini .mark, .bud-bullet .mark { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.fill.good { background: var(--green); }
.fill.close { background: #e3ac00; }
.fill.bad { background: var(--coral); }
.bud-var { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bud-var.up { color: var(--green); }
.bud-var.close { color: #a07800; }
.bud-var.down { color: var(--coral-deep); }

/* Charts */
.bud-chart { width: 100%; height: auto; display: block; }
.bud-chart .grid { stroke: var(--line); stroke-width: 1; }
.bud-chart .base { stroke: var(--line-strong); stroke-width: 1.5; }
.bud-chart .axis { font: 600 11px Montserrat, system-ui, sans-serif; fill: var(--muted); }
.bud-chart .axis.month { font-size: 12.5px; fill: var(--ink-2); }
.bud-chart .axis.month.future { fill: #b3aea4; }
.bud-chart .axis.now { fill: var(--ink); font-weight: 800; }
.bud-chart .axis.sub { font-size: 10.5px; }
.bud-chart .ghost { fill: #fff6e2; stroke: rgba(26, 26, 26, 0.3); stroke-width: 1.3; stroke-dasharray: 5 4; }
.bud-chart .m.future .ghost { fill: #faf7f1; stroke: rgba(26, 26, 26, 0.16); }
.bud-chart .pct { font: 800 12.5px Montserrat, system-ui, sans-serif; fill: var(--muted); }
.bud-chart .pct.good { fill: var(--green); }
.bud-chart .pct.close { fill: #a07800; }
.bud-chart .pct.bad { fill: var(--coral-deep); }
.bud-chart .zone.good { fill: rgba(63, 122, 23, 0.05); }
.bud-chart .zone.bad { fill: rgba(217, 71, 60, 0.05); }
.bud-chart .zone-label { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.bud-chart .zone-label.good { fill: var(--green); }
.bud-chart .zone-label.bad { fill: var(--coral-deep); }
.bud-chart .gapbar.good { fill: var(--green); opacity: 0.85; }
.bud-chart .gapbar.bad { fill: var(--coral); }
.bud-chart .cum { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.bud-chart .cumdot { stroke: var(--ink); stroke-width: 2.5; }
.bud-chart .cumdot.good { fill: #b9e19a; }
.bud-chart .cumdot.bad { fill: #f7b7ad; }
.bud-chart .axis.empty { font-size: 14px; }
.bud-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.bud-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bud-legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.bud-legend i.ghost { background: #fff6e2; border: 1.5px dashed rgba(26, 26, 26, 0.35); }
.bud-legend i.hatch { background: repeating-linear-gradient(45deg, rgba(239, 105, 93, 0.6) 0 3px, #fde3df 3px 7px); }

/* Tabs on the gap chart: radio buttons, no script */
.bud-tabs > input[type='radio'] { position: absolute; opacity: 0; pointer-events: none; }
.bud-tablist { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bud-tablist label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: var(--pill); padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.bud-tablist label:hover { border-color: var(--ink); }
.bud-tablist label b { font-variant-numeric: tabular-nums; }
.bud-tablist label b.up { color: var(--green); }
.bud-tablist label b.down { color: var(--coral-deep); }
.bud-panel { display: none; }
#gap-rev:checked ~ .p-rev, #gap-exp:checked ~ .p-exp, #gap-pro:checked ~ .p-pro { display: block; }
#gap-rev:checked ~ .bud-tablist label[for='gap-rev'], #gap-exp:checked ~ .bud-tablist label[for='gap-exp'], #gap-pro:checked ~ .bud-tablist label[for='gap-pro'] { background: var(--ink); border-color: var(--ink); color: #fff; }
#gap-rev:checked ~ .bud-tablist label[for='gap-rev'] b.up, #gap-exp:checked ~ .bud-tablist label[for='gap-exp'] b.up, #gap-pro:checked ~ .bud-tablist label[for='gap-pro'] b.up { color: #b9e19a; }
#gap-rev:checked ~ .bud-tablist label[for='gap-rev'] b.down, #gap-exp:checked ~ .bud-tablist label[for='gap-exp'] b.down, #gap-pro:checked ~ .bud-tablist label[for='gap-pro'] b.down { color: #ffb4ab; }
#gap-rev:focus-visible ~ .bud-tablist label[for='gap-rev'], #gap-exp:focus-visible ~ .bud-tablist label[for='gap-exp'], #gap-pro:focus-visible ~ .bud-tablist label[for='gap-pro'] { outline: 3px solid rgba(254, 214, 0, 0.9); outline-offset: 2px; }

/* Revenue mix */
.bud-mix { padding: 20px 22px 16px; }
.bud-mix-row { display: grid; grid-template-columns: 64px 1fr 74px; gap: 12px; align-items: center; margin-bottom: 12px; }
.bud-mix-row .gothic { font-size: 16px; color: var(--muted); }
.bud-mix-bar { display: flex; height: 36px; border-radius: 12px; overflow: hidden; background: var(--bg); }
.bud-mix-bar span { display: flex; align-items: center; min-width: 0; padding: 0 10px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bud-mix-bar span + span { box-shadow: inset 2px 0 0 #fff; }
.bud-mix-total { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Line cards */
.bud-lines { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.bud-line { padding: 22px 20px 16px; overflow: hidden; }
.bud-line::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: #d8d3c8; }
.bud-line.good::before { background: var(--green); }
.bud-line.close::before { background: #e3ac00; }
.bud-line.bad::before { background: var(--coral); }
.bud-line-head { display: flex; align-items: center; gap: 8px; }
.bud-line-head h3 { flex: 1; font-size: 15px; font-weight: 700; }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; flex: none; }
.bud-chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--pill); white-space: nowrap; background: var(--bg); color: var(--muted); }
.bud-chip.good { background: var(--green-soft); color: var(--green); }
.bud-chip.close { background: var(--cream); color: #7a5b00; }
.bud-chip.bad { background: var(--red-soft); color: #9b1c27; }
.bud-line-big { font-family: var(--display); font-size: 32px; line-height: 1.05; margin: 12px 0 2px !important; }
.bud-bullet { position: relative; height: 12px; margin: 12px 0 10px; border-radius: var(--pill); background: rgba(26, 26, 26, 0.07); }
.bud-spark { width: 100%; height: auto; display: block; margin-top: 12px; }
.bud-spark .sg { fill: #efe9dd; }
.bud-spark .sg.future { fill: #f6f3ec; }
.bud-spark .sa { fill: #b9b4aa; }
.bud-spark .sa.good { fill: var(--green); }
.bud-spark .sa.close { fill: #e3ac00; }
.bud-spark .sa.bad { fill: var(--coral); }
.bud-spark .sm { font: 600 9px Montserrat, system-ui, sans-serif; fill: var(--muted); }
.bud-spark .sm.current { fill: var(--ink); font-weight: 800; }
.bud-src { margin-top: 8px !important; }
.bud-sub { font-family: Montserrat, system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 8px; }

/* Every line, every month */
.bud-heat { min-width: 1120px; font-size: 12.5px; border-collapse: separate; border-spacing: 0; }
.bud-heat th, .bud-heat td { border-bottom: 0; padding: 6px 4px; }
.bud-heat thead th { text-align: center; font-size: 15px; padding: 14px 4px 8px; border-bottom: 1px solid var(--line); }
.bud-heat thead th.now { color: var(--ink); box-shadow: inset 0 -3px 0 var(--yellow); }
.bud-heat th[scope='row'] {
  position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; white-space: nowrap;
  font: 600 13px Montserrat, system-ui, sans-serif; text-transform: none; letter-spacing: 0; color: var(--ink); padding: 6px 12px 6px 18px;
}
.bud-heat th[scope='row'] .sw { margin-right: 7px; vertical-align: -1px; }
.bud-heat .yr { text-align: right; white-space: nowrap; padding-right: 18px; padding-left: 12px; }
.bud-heat td.yr b { display: block; font-weight: 800; font-variant-numeric: tabular-nums; }
.bud-heat td.yr span { display: block; font-size: 11px; color: var(--muted); }
.bud-heat td.hc { text-align: center; font-variant-numeric: tabular-nums; border: 2px solid #fff; border-radius: 10px; min-width: 74px; line-height: 1.25; }
.bud-heat td.hc b { display: block; font-weight: 700; }
.bud-heat td.hc span { display: block; font-size: 11px; font-weight: 800; }
.hc.good { background: var(--green-soft); }
.hc.good span { color: var(--green); }
.hc.close { background: #fff1c9; }
.hc.close span { color: #7a5b00; }
.hc.bad { background: var(--red-soft); }
.hc.bad span { color: #b4232f; }
.hc.miss { color: var(--muted); background: repeating-linear-gradient(135deg, #faf7f1 0 6px, #f2ede3 6px 12px); }
.hc.fut { color: #a8a399; font-size: 11.5px; background: #fff; }
.bud-heat td.hc.cur { outline: 2px dashed rgba(26, 26, 26, 0.3); outline-offset: -4px; }
.bud-heat tr.group td { padding: 16px 18px 6px; font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; color: var(--muted); background: #fff; }
.bud-heat tr.total th, .bud-heat tr.total td.yr { border-top: 2px solid var(--line-strong); }
.bud-heat tr.total td.hc { font-weight: 700; }
.bud-heat tr.total td.hc.fut { background: #f7f4ee; color: var(--muted); }
.bud-heat tr.total th[scope='row'] { font-weight: 800; }
.bud-heat tr.profit th[scope='row'] { font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.08em; font-size: 16px; font-weight: 400; }
.bud-heat tbody tr:hover th[scope='row'] { background: #fffcf4; }
.bud-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; color: var(--muted); font-weight: 600; }
.bud-key span { display: inline-flex; align-items: center; gap: 6px; }
.bud-key i { width: 22px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }

/* Entering figures */
.bud-enter { margin-top: 40px; scroll-margin-top: 100px; }
.bud-enter-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.bud-enter-head h2 { margin-bottom: 6px; }
.bud-enter-head p { max-width: 640px; }
.bud-month-pick { display: flex; gap: 8px; align-items: center; }
.bud-month-pick select { width: auto; min-width: 230px; padding: 10px 14px; }
.bud-enter .alert { margin-bottom: 16px; }
.bud-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bud-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.bud-fieldset legend { font-size: 18px; color: var(--ink-2); padding: 0; margin-bottom: 12px; }
.bud-field { display: grid; grid-template-columns: 170px 1fr; gap: 3px 12px; align-items: center; margin-bottom: 12px; }
.bud-field label { margin: 0; display: flex; align-items: center; gap: 7px; }
.bud-field input { padding: 10px 14px; text-align: right; font-variant-numeric: tabular-nums; }
.bud-field .hint { grid-column: 2; margin-top: 0; font-size: 12px; text-align: right; }
.bud-form .actions { margin-top: 8px; }

@media (max-width: 700px) {
  .bud-scroll { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
  .bud-scroll .bud-chart { min-width: 680px; }
}
@media (max-width: 860px) {
  .bud-hero-grid { grid-template-columns: 1fr; }
  .bud-ring { width: 150px; height: 150px; margin: 0 auto; }
  .bud-fields { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bud-track-months span:not(.now) { display: none; }
  .bud-field { grid-template-columns: 1fr; }
  .bud-field .hint { grid-column: 1; text-align: left; }
  .bud-mix-row { grid-template-columns: 52px 1fr; }
  .bud-mix-total { display: none; }
}
