/* 27 South Brewing - BrewLog
   Brand: Core Refresh V03/2025. Charcoal base so the beer palettes can shine.
   Type: Field Gothic XCondensed (display) + Fraktion Sans (text). Licensed fonts are
   used when installed; Saira Extra Condensed and Archivo stand in otherwise. */

:root {
  --charcoal: #1c1e21;
  --sky: #d7f0fc;
  --salmon: #f37762;
  --brand-red: #af1e23;

  --font-display: "Field Gothic XCondensed", "Field Gothic No.34 Demi XCond", "FieldGothic-No.34DemiXCond", "Saira Extra Condensed", "Arial Narrow", sans-serif;
  --font: "PP Fraktion Sans", "Fraktion Sans", "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;

  /* Dark is the brand default */
  color-scheme: dark;
  --bg: #1c1e21;
  --surface: #232629;
  --surface-2: #2b2f33;
  --surface-3: #353a3f;
  --border: #33373c;
  --border-strong: #4a5057;
  --rule: rgba(255,255,255,.55);
  --text: #ffffff;
  --text-2: #c8ccd1;
  --text-3: #8b9198;
  --link: #d7f0fc;
  --btn-bg: #ffffff;
  --btn-ink: #1c1e21;
  --series-1: #d7f0fc;
  --series-2: #f37762;
  --series-3: #ffd752;
  --series-4: #86c69c;
  --series-5: #c9a7f0;
  --series-6: #f36a2b;
  --act-in: #c39bea;      /* in venue: the calendar's purple, lifted for the dark base */
  --act-in-bg: rgba(112,48,160,.28);
  --act-out: #ff6b6b;     /* out of venue: red */
  --act-out-bg: rgba(255,0,0,.18);
  --grid: #30343a;
  --bar-neutral: #5b6168;
  --good: #7fd19b;  --good-bg: rgba(25,150,96,.18);
  --warn: #ffd752;  --warn-bg: rgba(255,215,82,.12);
  --bad: #ff8a80;   --bad-bg: rgba(220,31,39,.18);
  --info: #d7f0fc;  --info-bg: rgba(215,240,252,.10);
  --st-planned: #a3a9b0;
  --st-brewing: #d7f0fc;
  --st-packaged: #7fd19b;
  --st-dumped: #ff8a80;
  --st-cancelled: #6b7178;
  --shadow: none;
  --invert: 1;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f3f1;
  --surface: #ffffff;
  --surface-2: #f0f0ee;
  --surface-3: #e4e4e1;
  --border: #e2e2df;
  --border-strong: #c9c9c5;
  --rule: rgba(28,30,33,.6);
  --text: #1c1e21;
  --text-2: #4b4f55;
  --text-3: #767b82;
  --link: #af1e23;
  --btn-bg: #1c1e21;
  --btn-ink: #ffffff;
  --series-1: #1c1e21;
  --series-2: #af1e23;
  --series-3: #2a7fb0;
  --series-4: #146c45;
  --series-5: #6b4bb8;
  --series-6: #b86a00;
  --act-in: #7030a0;
  --act-in-bg: #f1e8f8;
  --act-out: #d40000;
  --act-out-bg: #fde8e8;
  --grid: #ebebe8;
  --bar-neutral: #7b8188;
  --good: #146c45;  --good-bg: #e2f2e8;
  --warn: #7a4e00;  --warn-bg: #fff4cf;
  --bad: #af1e23;   --bad-bg: #fbe6e5;
  --info: #1d5a7a;  --info-bg: #e6f5fc;
  --st-planned: #6b7178;
  --st-brewing: #2a7fb0;
  --st-packaged: #146c45;
  --st-dumped: #af1e23;
  --st-cancelled: #9a9ea3;
  --shadow: 0 1px 2px rgba(0,0,0,.04);
  --invert: 0;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 300 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
strong, b { font-weight: 600; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-family: var(--font-display); font-size: 44px; font-weight: 600; letter-spacing: 0; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 13px; font-weight: 600; color: var(--text-2); }
.eyebrow, th, .kpi .label, label, .tracked {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow { color: var(--text-3); }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }

/* ---------- layout */
.app { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.sidebar { background: var(--charcoal); color: #fff; border-right: 1px solid rgba(255,255,255,.14); padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; }
.brand { display: flex; align-items: center; gap: 14px; padding: 2px 8px 24px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: .9; }
.brand-name small { display: block; font-family: var(--font); font-size: 9px; font-weight: 600; letter-spacing: .2em; color: #8b9198; margin-top: 5px; white-space: nowrap; }
.home-link { display: block; margin: -10px 8px 14px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8b9198; }
.home-link:hover { color: #fff; text-decoration: none; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radius); color: #a9aeb4; font-weight: 400; position: relative; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.05); text-decoration: none; }
.nav a.active { color: #fff; font-weight: 600; background: rgba(255,255,255,.07); }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 50%; width: 10px; height: 1px; background: #fff; }
.nav svg { width: 17px; height: 17px; flex: none; }
.nav-sep { height: 1px; background: rgba(255,255,255,.12); margin: 12px 6px; }
.sidebar-foot { margin-top: auto; padding: 8px 10px 0; }
.sidebar-foot .tracked { color: #8b9198; font-size: 10px; letter-spacing: .26em; line-height: 2; }
.theme-toggle { background: none; border: 1px solid rgba(255,255,255,.2); color: #c8ccd1; border-radius: var(--radius); padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; margin-top: 10px; }
.theme-toggle:hover { color: #fff; border-color: rgba(255,255,255,.45); }
.main { padding: 30px 34px 56px; min-width: 0; }

/* Page head: title sits on the latitude line */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--rule); }
.page-head p { margin: 6px 0 0; color: var(--text-3); }
.page-head .crumbs { margin-bottom: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- cards & grid */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px 0; }
.n { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text-3); margin-right: 6px; }
.card-head + .card-body { padding-top: 10px; }
.card-body { padding: 14px 20px 18px; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-side { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.mt { margin-top: 16px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px 16px 16px; }
.kpi .label { color: var(--text-3); font-size: 10px; }
.kpi .value { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .sub { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.kpi .value .unit { font-size: 20px; color: var(--text-3); margin-left: 3px; font-weight: 500; }

/* ---------- core range cards: tri-tone + icon + latitude line */
.core { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.core-card { position: relative; overflow: hidden; border-radius: var(--radius); padding: 16px 18px 18px; background: var(--c-bg); color: var(--c-fg); min-height: 200px; display: flex; flex-direction: column; }
.core-card:hover { text-decoration: none; filter: brightness(1.08); }
.core-card .eyebrow { color: var(--c-fg); opacity: .8; font-size: 10px; letter-spacing: .22em; }
.core-card .name { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1; margin-top: 8px; }
.core-card .icon { position: absolute; right: 16px; top: 14px; width: 84px; height: 74px; object-fit: contain; object-position: right bottom; }
.core-card .lat { position: absolute; left: 0; right: 0; top: 88px; height: 1px; background: var(--c-fg); opacity: .55; }
.core-card .stats { margin-top: auto; padding-top: 36px; }
.core-card .big { font-family: var(--font-display); font-size: 42px; font-weight: 600; line-height: 1; }
.core-card .big small { font-size: 20px; opacity: .75; margin-left: 2px; }
.core-card .meta { font-size: 12px; margin-top: 6px; opacity: .92; font-weight: 400; }
.core-card .meta + .meta { margin-top: 2px; }

/* ---------- beer dot: a circle split along the latitude line */
.beer-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; flex: none;
  background: linear-gradient(to bottom, var(--d-top) 0 55%, var(--d-bot) 55% 100%); }
.beer-dot.plain { background: linear-gradient(to bottom, transparent 0 55%, var(--text-3) 55% 100%); box-shadow: inset 0 0 0 1px var(--text-3); }
.beer-name { display: inline-flex; align-items: center; }
.beer-icon { height: 44px; width: auto; }

/* ---------- tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th { font-size: 10px; color: var(--text-3); background: var(--surface); position: sticky; top: 0; z-index: 1; }
tbody tr:hover td { background: var(--surface-2); }
tr.total td { font-weight: 600; border-top: 1px solid var(--rule); border-bottom: none; }
td.empty { text-align: center; color: var(--text-3); padding: 28px; }
table.compact th, table.compact td { padding: 7px 8px; }
.row-link { color: inherit; }
.row-link:hover { color: var(--link); }

/* ---------- badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.planned { color: var(--st-planned); }
.badge.brewing { color: var(--st-brewing); background: var(--info-bg); }
.badge.packaged { color: var(--st-packaged); background: var(--good-bg); }
.badge.dumped { color: var(--st-dumped); background: var(--bad-bg); }
.badge.cancelled { color: var(--st-cancelled); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--surface-3); color: var(--text-2); }

/* ---------- forms */
label { display: block; color: var(--text-3); margin-bottom: 5px; font-size: 10px; }
.field { margin-bottom: 14px; }
.hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
input[type=text], input[type=number], input[type=date], input[type=search], input[type=email], input[type=password], input[type=time], input:not([type]), select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg);
  color: var(--text); font: 400 14px var(--font); min-height: 38px;
}
:root[data-theme="light"] input:not([type=checkbox]):not([type=file]), :root[data-theme="light"] select, :root[data-theme="light"] textarea { background: var(--surface); }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--text); outline-offset: -1px; border-color: transparent; }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(var(--invert)); }
input[type=file] { font: inherit; color: var(--text-2); }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-4 { grid-column: 1 / -1; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin: 0; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-2); }
.check input { width: 16px; height: 16px; accent-color: var(--text); }

.btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; min-height: 38px; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: transparent; color: var(--text); font: 600 13px var(--font); letter-spacing: .02em; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; border-color: var(--text-3); }
.btn.primary { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.btn.primary:hover { filter: brightness(.9); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; }
.btn.sm { padding: 4px 11px; min-height: 30px; font-size: 12px; }
.btn svg { width: 16px; height: 16px; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.seg a { padding: 7px 13px; color: var(--text-2); font-weight: 500; font-size: 13px; border-right: 1px solid var(--border-strong); }
.seg a:last-child { border-right: 0; }
.seg a.on { background: var(--btn-bg); color: var(--btn-ink); font-weight: 600; }
.seg a:hover { text-decoration: none; }
.seg a:not(.on):hover { background: var(--surface-2); color: var(--text); }

/* ---------- flashes */
.flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: var(--radius); font-weight: 500; border-left: 3px solid currentColor; }
.flash.success { background: var(--good-bg); color: var(--good); }
.flash.error { background: var(--bad-bg); color: var(--bad); }
.flash.warning { background: var(--warn-bg); color: var(--warn); }
.callout { padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); color: var(--text-2); }
.callout.warn { background: var(--warn-bg); color: var(--warn); }
.callout.info { background: var(--info-bg); color: var(--info); }

/* ---------- charts */
.chart-box { position: relative; height: 240px; }
.chart-box.tall { height: 300px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
details.table-view summary { cursor: pointer; font-size: 12px; color: var(--text-3); margin-top: 8px; }

/* ---------- definition list */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; margin: 0; }
.dl dt { color: var(--text-3); }
.dl dd { margin: 0; font-weight: 500; }

/* ---------- schedule */
.gantt { overflow-x: auto; }
.gantt-inner { min-width: 900px; }
.g-head, .g-row { display: grid; grid-template-columns: 160px 1fr; }
.g-head .g-track { position: relative; height: 46px; border-bottom: 1px solid var(--rule); }
.g-month { position: absolute; top: 5px; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); padding-left: 6px; border-left: 1px solid var(--border-strong); height: 41px; }
.g-week { position: absolute; bottom: 4px; font-size: 10px; color: var(--text-3); padding-left: 4px; }
.g-label { padding: 12px 14px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.05; background: var(--surface); position: sticky; left: 0; z-index: 2; }
.g-head .g-label { border-bottom: 1px solid var(--rule); font-family: var(--font); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: flex-end; }
.g-label small { display: block; font-family: var(--font); font-size: 11px; color: var(--text-3); font-weight: 400; margin-top: 3px; }
.g-row .g-track { position: relative; border-bottom: 1px solid var(--border); padding: 8px 0; }
.g-lane { position: relative; height: 30px; margin: 3px 0; }
.g-grid { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--grid); }
.g-today { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--text); z-index: 2; }
.g-bar { position: absolute; top: 0; height: 30px; border-radius: 3px; padding: 0 8px; display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--b-ink, #fff); background-color: var(--b-bg, var(--bar-neutral)); overflow: hidden; white-space: nowrap; z-index: 1;
  box-shadow: 0 0 0 2px var(--surface); }
.g-bar:hover { text-decoration: none; filter: brightness(1.1); z-index: 3; }
.g-bar img { height: 18px; width: auto; flex: none; }
.g-bar.packaged { opacity: .72; }
.g-bar.packaged:hover { opacity: 1; }
.g-bar.brewing { box-shadow: inset 0 0 0 2px var(--text), 0 0 0 2px var(--surface); }
.g-bar.planned { background-color: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--b-bg, var(--bar-neutral)), 0 0 0 2px var(--surface); }
.g-bar.dumped { background-color: transparent; color: var(--st-dumped); box-shadow: inset 0 0 0 1.5px var(--st-dumped); text-decoration: line-through; }
.g-bar.estimated { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 5px, transparent 5px 10px); }
.g-bar .code { opacity: .75; font-weight: 400; }
.g-bar.contract { background-color: var(--surface-3); color: var(--text); box-shadow: inset 3px 0 0 var(--sky), 0 0 0 2px var(--surface); font-weight: 500; }
.g-bar.clash { box-shadow: inset 0 0 0 2px var(--bad), 0 0 0 2px var(--bad); opacity: 1; z-index: 2; }
.g-bar.clash::after { content: "!"; margin-left: auto; font-weight: 700; color: var(--bad); background: var(--surface); border-radius: 50%; width: 16px; height: 16px; display: grid; place-items: center; font-size: 11px; flex: none; }
.sw { display: inline-block; width: 22px; height: 12px; border-radius: 2px; }

/* ---------- misc */
.split-bar { display: flex; height: 8px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.split-bar span { display: block; height: 100%; }
.cost-bars .row { display: grid; grid-template-columns: 130px 1fr 90px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.cost-bars .track { height: 6px; background: var(--surface-2); overflow: hidden; }
.cost-bars .fill { height: 100%; background: var(--series-1); }
.empty-state { text-align: center; padding: 56px 24px; }
.empty-state h2 { font-family: var(--font-display); font-size: 32px; font-weight: 600; margin-bottom: 8px; }
.empty-state p { color: var(--text-3); margin: 0 auto 20px; max-width: 460px; }
.lines-table input, .lines-table select { min-height: 34px; padding: 5px 8px; }
.lines-table td { padding: 4px; border-bottom: 0; }
.lines-table th { padding: 4px; }
.lines-table tbody tr:hover td { background: transparent; }
.icon-btn { border: 0; background: transparent; color: var(--text-3); cursor: pointer; padding: 6px; border-radius: var(--radius); }
.icon-btn:hover { background: var(--surface-2); color: var(--bad); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
h2.section-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.detail-hero { display: flex; align-items: center; gap: 18px; }
.detail-hero .beer-icon { height: 64px; }
code { font-size: 12px; background: var(--surface-3); padding: 1px 5px; border-radius: 3px; }

@media (max-width: 1200px) {
  .core { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .g-side { grid-template-columns: minmax(0, 1fr); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: center; padding: 10px 16px; overflow-x: auto; gap: 2px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .brand { padding: 0 10px 0 0; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-name, .nav-sep, .sidebar-foot, .home-link { display: none; }
  .nav { display: flex; gap: 2px; }
  .nav a { padding: 7px 10px; white-space: nowrap; }
  .nav a span { display: none; }
  .nav a.active span { display: inline; }
  .nav a.active::before { display: none; }
  .main { padding: 20px 16px 40px; }
  h1 { font-size: 36px; }
  .g-2, .g-3, .g-21, .g-side { grid-template-columns: minmax(0, 1fr); }
  .core { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .cost-bars .row { grid-template-columns: 100px 1fr 80px; }
}

/* ---------- home / hub */
body.home { min-height: 100vh; display: flex; flex-direction: column; }
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 40px;
  background: var(--charcoal); color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); }
.home-top .tracked { font-size: 11px; letter-spacing: .26em; }
.home-top .btn { color: #c8ccd1; border-color: rgba(255,255,255,.2); }
.home-top .btn:hover { color: #fff; background: rgba(255,255,255,.06); }
.home-brand { display: flex; align-items: center; gap: 16px; color: #fff; }
.home-brand:hover { text-decoration: none; }
.home-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 44px 40px 56px; }
.home-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 26px;
  margin-bottom: 30px; border-bottom: 1px solid var(--rule); }
.home-hero h1 { font-size: 72px; line-height: .95; margin-top: 6px; }
.home-hero p { margin: 12px 0 0; max-width: 460px; }
.home-lat { width: 220px; height: auto; color: var(--text); opacity: .9; flex: none; margin-bottom: -27px; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.module { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 22px 24px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.module.live:hover { text-decoration: none; border-color: var(--text-3); background: var(--surface-2); }
.module.live:hover .module-go { text-decoration: underline; text-underline-offset: 4px; }
.module.soon { color: var(--text-3); }
.module.soon h2 { color: var(--text-2); }
.module-head { display: flex; justify-content: space-between; align-items: flex-start; }
.module-num { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-3); }
.module-icon { width: 34px; height: 34px; }
.module-line { height: 1px; background: currentColor; opacity: .35; margin: 18px -24px 18px; }
.module h2 { font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1; }
.module p { margin: 8px 0 0; color: var(--text-3); max-width: 440px; }
.module-stats { display: flex; gap: 28px; margin: 18px 0 0; }
.module-stats dt { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.module-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1; }
.module-stats dd small { font-size: 16px; color: var(--text-3); }
.module-foot { margin-top: auto; padding-top: 18px; }
.module-go { font-weight: 600; letter-spacing: .02em; }
.home-foot { text-align: center; padding: 18px; font-size: 10px; letter-spacing: .26em; color: var(--text-3); border-top: 1px solid var(--border); }
@media (max-width: 860px) {
  .home-top { padding: 14px 16px; }
  .home-top .actions .tracked { display: none; }
  .home-main { padding: 26px 16px 40px; }
  .home-hero h1 { font-size: 52px; }
  .home-lat { width: 120px; }
  .module-grid { grid-template-columns: minmax(0, 1fr); }
  .module { min-height: 0; }
}

/* ---------- investor insights */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.pill.up { color: var(--good); background: var(--good-bg); }
.pill.down { color: var(--bad); background: var(--bad-bg); }
.inv-hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: end;
  padding: 26px 28px 22px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(215,240,252,.10), transparent 60%), var(--surface); border: 1px solid var(--border); }
:root[data-theme="light"] .inv-hero { background: radial-gradient(120% 140% at 100% 0%, rgba(42,127,176,.10), transparent 60%), var(--surface); }
.inv-big { font-family: var(--font-display); font-weight: 600; font-size: 84px; line-height: .95; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.inv-hero-sub { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.inv-hero-facts { display: flex; gap: 30px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.inv-hero-facts dt { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.inv-hero-facts dd { margin: 3px 0 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1; }
.inv-hero-facts dd.small { font-family: var(--font); font-size: 12px; margin-top: 6px; }
.inv-hero-chart { min-width: 0; }
.inv-lat { position: absolute; left: 0; right: 0; bottom: 64px; width: 100%; height: 40px; color: var(--text); opacity: .08; pointer-events: none; }
.inv-donut { position: relative; }
.inv-donut-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.inv-donut-centre strong { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.inv-mix { list-style: none; margin: 14px 0 0; padding: 0; }
.inv-mix li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--border); }
.inv-mix i { width: 12px; height: 12px; border-radius: 3px; }
.inv-mix .name small, .inv-mix .num small { display: block; font-size: 11px; color: var(--text-3); }
.inv-mix .num { text-align: right; }
.inv-quarters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.inv-q { padding: 16px 18px; }
.inv-q.empty { opacity: .6; }
.inv-q-head { display: flex; justify-content: space-between; align-items: baseline; }
.inv-q-value { font-family: var(--font-display); font-size: 32px; font-weight: 600; margin: 8px 0 12px; }
.inv-q-value small { font-size: 15px; color: var(--text-3); }
.inv-q-bars .bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-bottom: 5px; }
.inv-q-bars .bar span { display: block; height: 100%; border-radius: 4px; }
.inv-q-foot { margin-top: 8px; }
.inv-year { display: grid; grid-template-columns: 110px 1fr 220px; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border); }
.inv-year:first-child { border-top: 0; }
.inv-year:hover { text-decoration: none; }
.inv-year .label { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.inv-year .label small { display: block; font-family: var(--font); font-size: 11px; color: var(--text-3); font-weight: 400; }
.inv-year .track { height: 14px; background: var(--surface-2); border-radius: 7px; overflow: hidden; }
.inv-year .track span { display: block; height: 100%; background: linear-gradient(90deg, var(--series-1), var(--sky)); border-radius: 7px; }
:root[data-theme="light"] .inv-year .track span { background: var(--series-1); }
.inv-year .num { text-align: right; }
@media (max-width: 1100px) {
  .inv-quarters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .inv-hero { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .inv-big { font-size: 60px; }
  .inv-lat { display: none; }
  .inv-year { grid-template-columns: 80px 1fr; }
  .inv-year .num { grid-column: 1 / -1; text-align: left; }
}

.inv-updated { margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--border); text-align: right; }

/* ---------- activations: purple = in venue, red = out of venue */
.act-title.in, .act-chip.in { color: var(--act-in); }
.act-title.out, .act-chip.out { color: var(--act-out); }
.act-title.unset, .act-chip.unset { color: var(--text-2); }
h1.act-title { font-size: 52px; }
.act-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.act-swatch.in { background: var(--act-in); }
.act-swatch.out { background: var(--act-out); }
.act-swatch.unset { background: var(--text-3); }
.act-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.act-badge.in { color: var(--act-in); background: var(--act-in-bg); }
.act-badge.out { color: var(--act-out); background: var(--act-out-bg); }
.act-badge.unset { color: var(--text-2); background: var(--surface-2); }
.act-progress { display: inline-block; vertical-align: middle; width: 70px; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-right: 6px; }
.act-progress span { display: block; height: 100%; background: var(--good); border-radius: 3px; }
.act-progress.big { display: block; width: 100%; height: 8px; }
.act-overdue { color: var(--bad); font-weight: 600; }

.act-upcoming { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.act-next { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-left: 4px solid var(--text-3); color: var(--text); }
.act-next:hover { text-decoration: none; background: var(--surface-2); }
.act-next.in { border-left-color: var(--act-in); }
.act-next.out { border-left-color: var(--act-out); }
.act-next-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.05; }
.act-next.in .act-next-title { color: var(--act-in); }
.act-next.out .act-next-title { color: var(--act-out); }
.act-next-foot { margin-top: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.act-months { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.act-month { padding: 14px 16px 16px; scroll-margin-top: 20px; }
.act-month.current { border-color: var(--text-3); }
.act-month-head h2 { font-size: 28px; margin-bottom: 10px; }
.act-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.act-dow { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding: 0 4px 4px; }
.act-day { min-height: 92px; padding: 4px; border-radius: 4px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.act-day.we { background: color-mix(in srgb, var(--surface-2) 80%, var(--surface-3)); }
.act-day.other { background: transparent; }
.act-day.other .act-daynum { color: var(--border-strong); }
.act-day.today { box-shadow: inset 0 0 0 1.5px var(--text); }
.act-daynum { font-size: 11px; font-weight: 600; color: var(--text-3); display: flex; justify-content: space-between; }
a.act-daynum:hover { color: var(--text); text-decoration: none; }
.act-daynum .plus { opacity: 0; }
.act-day:hover .plus { opacity: 1; }
.act-chip { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.25; padding: 2px 4px; border-radius: 3px;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.act-chip.in { background: var(--act-in-bg); }
.act-chip.out { background: var(--act-out-bg); }
.act-chip.unset { background: var(--surface-3); }
.act-chip:hover { text-decoration: none; filter: brightness(1.15); }
.act-chip.past { opacity: .55; }
.act-chip.cancelled { text-decoration: line-through; opacity: .5; }

.act-type-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.act-type-opt { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--border-strong); border-radius: var(--radius);
  cursor: pointer; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; margin: 0; }
.act-type-opt input { accent-color: currentColor; }
.act-type-opt.in { color: var(--act-in); }
.act-type-opt.out { color: var(--act-out); }
.act-type-opt.unset { color: var(--text-2); }
.act-type-opt:has(input:checked) { border-color: currentColor; background: var(--surface-2); }

.act-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; margin: 0; }
.act-field dt { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.act-field dd { margin: 0; font-weight: 400; }

.act-tasks { list-style: none; margin: 0; padding: 0; }
.act-tasks li { display: grid; grid-template-columns: 28px 1fr 30px; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--border); }
.act-tasks li:first-child { border-top: 0; }
.act-tasks li.done .act-task-body > div:first-child { text-decoration: line-through; color: var(--text-3); }
.act-check { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--border-strong); background: transparent; color: var(--good);
  font-weight: 700; cursor: pointer; display: grid; place-items: center; padding: 0; }
.act-tasks li.done .act-check { background: var(--good-bg); border-color: var(--good); }
.act-tasks li.overdue .act-check { border-color: var(--bad); }
.act-owner { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 1px 6px; border-radius: 4px;
  background: var(--surface-3); color: var(--text); margin-right: 7px; vertical-align: 1px; }
.act-addtask { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.act-addtask .task { grid-column: 1 / -1; }

.act-timeline { position: relative; height: 120px; margin: 0 40px; }
.act-timeline .line { position: absolute; left: 0; right: 0; top: 60px; height: 1px; background: var(--rule); }
.act-timeline .today { position: absolute; top: 18px; bottom: 18px; border-left: 1px dashed var(--text-3); }
.act-timeline .today span { position: absolute; top: -16px; left: -16px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.act-timeline .mark { position: absolute; top: 60px; }
.act-timeline .mark i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--text-2); }
.act-timeline .mark.event i { width: 18px; height: 18px; left: -9px; top: -9px; border: 0; background: var(--text); }
.act-timeline .mark.event.in i { background: var(--act-in); }
.act-timeline .mark.event.out i { background: var(--act-out); }
.act-timeline .mark.marketing i { border-color: var(--sky); background: var(--sky); }
.act-timeline .mark.done i { border-color: var(--good); background: var(--good); }
.act-timeline .mark.overdue i { border-color: var(--bad); }
.act-timeline .mark span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; color: var(--text-3); text-align: center; line-height: 1.3; }
.act-timeline .mark span b { color: var(--text); font-weight: 600; }
.act-timeline .mark span.up { bottom: 12px; }
.act-timeline .mark span.down { top: 12px; }
@media (max-width: 1100px) {
  .act-upcoming { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .act-fields { grid-template-columns: minmax(0, 1fr); }
  .act-chip { font-size: 10px; -webkit-line-clamp: 3; }
  .act-day { min-height: 60px; }
  .act-timeline { margin: 0 20px; }
}

.act-chip[draggable] { cursor: grab; }
.act-chip.dragging { opacity: .35; }
.act-day.drop { box-shadow: inset 0 0 0 2px var(--text); background: var(--surface-3); }
.act-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: flex; gap: 14px; align-items: center;
  padding: 10px 12px 10px 16px; border-radius: var(--radius); background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 6px 24px rgba(0,0,0,.35); font-weight: 500; }
.act-toast .btn { color: var(--btn-ink); border-color: currentColor; }
.act-toast[hidden] { display: none; }

/* ---------- venue bookings */
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.bk-panel { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; scroll-margin-top: 16px; }
.bk-panel-add { border-left: 1px solid var(--border); padding-left: 24px; }
.bk-month { padding: 12px; }
.bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bk-day { display: flex; flex-direction: column; gap: 2px; min-height: 104px; padding: 5px 6px; border-radius: 4px; background: var(--surface-2);
  color: var(--text); min-width: 0; border: 1.5px solid transparent; }
.bk-day:hover { text-decoration: none; border-color: var(--border-strong); }
.bk-day.other { background: transparent; opacity: .45; }
.bk-day.past { opacity: .7; }
.bk-day.today { border-color: var(--text-3); }
.bk-day.sel { border-color: var(--text); background: var(--surface-3); }
.bk-day-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.bk-num { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.bk-total { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); }
.bk-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; font-size: 12.5px; line-height: 1.4; }
.bk-line .t { color: var(--text-3); font-variant-numeric: tabular-nums; }
.bk-line .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.bk-line .p { font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-more { font-size: 11px; color: var(--text-3); }
.bk-event { font-size: 10.5px; font-weight: 600; color: var(--act-in); background: var(--act-in-bg); border-radius: 3px; padding: 1px 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-event.big { font-size: 12px; padding: 4px 8px; margin-bottom: 6px; white-space: normal; }
.bk-event a { color: inherit; }
.bk-panel { padding: 18px 20px 20px; }
.bk-list { list-style: none; margin: 0; padding: 0; }
.bk-list li { display: grid; grid-template-columns: 58px minmax(0, 1fr) 44px; grid-template-areas: "time who pax" "time act act";
  gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--border); align-items: start; }
.bk-list li.editing { display: block; }
.bk-time { grid-area: time; font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.1; }
.bk-who { grid-area: who; }
.bk-who small { display: block; font-size: 11.5px; color: var(--text-3); }
.bk-who small.note { color: var(--text-2); font-style: italic; }
.bk-pax { grid-area: pax; text-align: right; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1; }
.bk-pax small { display: block; font-family: var(--font); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.bk-actions { grid-area: act; display: flex; gap: 2px; margin-left: -11px; }
.bk-form .field { margin-bottom: 10px; }
.bk-form-row { display: flex; gap: 8px; }
@media (max-width: 1000px) {
  .bk-panel { grid-template-columns: minmax(0, 1fr); }
  .bk-panel-add { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
}
@media (max-width: 860px) {
  .bk-day { min-height: 70px; padding: 3px; }
  .bk-line .t, .bk-line .n { display: none; }
  .bk-line { grid-template-columns: 1fr; }
  .bk-line .p::after { content: " pax"; font-weight: 400; color: var(--text-3); }
  .bk-event { display: none; }
}

/* ---------- activation ideas board */
.idea-capture { padding: 14px 16px; margin-bottom: 18px; }
.idea-capture .idea-title-input { font-size: 18px; min-height: 46px; border: 0; background: transparent; padding: 4px 2px; }
.idea-capture .idea-title-input:focus { outline: none; }
.idea-capture .idea-extra { display: none; margin-top: 8px; }
.idea-capture.open .idea-extra { display: block; }
.idea-capture-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.idea-extra textarea { min-height: 60px; margin-bottom: 8px; }
.idea-extra-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.act-type-pick.small .act-type-opt { padding: 6px 10px; font-size: 12px; }
.idea-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.idea-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; min-height: 220px; }
.idea-col.drop { border-color: var(--text); background: var(--surface-2); }
.idea-col-head { display: flex; justify-content: space-between; align-items: center; }
.idea-col-head h2 { font-size: 26px; }
.idea-drop { display: flex; flex-direction: column; gap: 10px; }
.idea-card { padding: 12px 14px; border-left: 4px solid var(--text-3); background: var(--surface-2); cursor: grab; }
.idea-card.in { border-left-color: var(--act-in); }
.idea-card.out { border-left-color: var(--act-out); }
.idea-card.dragging { opacity: .4; }
.idea-card.editing { cursor: default; border-left-color: var(--text); }
.idea-card.editing .idea-extra { display: block; margin-top: 8px; }
.idea-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.idea-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.1; margin: 0; }
.idea-vote { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: 999px; padding: 2px 9px;
  font: 600 12px var(--font); cursor: pointer; white-space: nowrap; }
.idea-vote:hover { border-color: var(--text); }
.idea-notes { margin: 8px 0 0; font-size: 13px; color: var(--text-2); }
.idea-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.idea-meta:empty { display: none; }
.idea-actions { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.idea-actions .icon-btn { margin-left: auto; }
.idea-empty { padding: 18px 8px; text-align: center; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); }
@media (max-width: 1000px) { .idea-board { grid-template-columns: minmax(0, 1fr); } }

/* ---------- wholesale tools: customer insights */
:root { --heat: #8fd3f4; --heat-ink: #14171a; --free: #ffd752; }
:root[data-theme="light"] { --heat: #1f6f9e; --heat-ink: #ffffff; --free: #c98a00; }
.ct-heat-wrap { overflow-x: auto; margin: 0 -4px; }
.ct-heat { border-collapse: separate; border-spacing: 2px; width: 100%; font-variant-numeric: tabular-nums; }
.ct-heat th { position: static; font-size: 10px; padding: 4px 6px; text-align: center; background: none; }
.ct-heat th.name, .ct-heat td.name { text-align: left; white-space: nowrap; max-width: 230px; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; font-size: 13px; }
.ct-heat th.now { color: var(--text-2); }
.ct-heat td { padding: 0 6px; height: 30px; border: 0; font-size: 12px; }
.ct-heat tbody tr:hover td { background: inherit; }
.ct-heat tbody tr:hover td.name { color: var(--text); }
.ct-heat td.hm { min-width: 46px; text-align: center; border-radius: 3px; color: var(--text-2);
  background: color-mix(in srgb, var(--heat) var(--h), var(--surface-2)); position: relative; }
.ct-heat td.hm.hi { color: var(--heat-ink); font-weight: 600; }
.ct-heat tbody tr:hover td.hm { background: color-mix(in srgb, var(--heat) var(--h), var(--surface-2)); outline: 1px solid var(--border-strong); }
.ct-heat td.hm.now { outline: 1.5px dashed var(--border-strong); outline-offset: -2px; }
.ct-heat td.hm.has-free::after { content: ""; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--free); box-shadow: 0 0 0 1.5px var(--surface); }
.ct-heat td.num { text-align: right; white-space: nowrap; padding-left: 10px; }
.ct-heat td.trend { color: var(--text-2); padding: 0 4px 0 12px; }
.ct-heat-key { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ct-ramp { width: 120px; height: 10px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--heat) 14%, var(--surface-2)), var(--heat)); }
.ct-key-free, .ct-key-now { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; }
.ct-key-free i { width: 7px; height: 7px; border-radius: 50%; background: var(--free); }
.ct-key-now i { width: 14px; height: 10px; border: 1.5px dashed var(--border-strong); border-radius: 2px; }
.ct-free-swatch { background: var(--free) !important; }
.ct-change.up { color: var(--good); } .ct-change.down { color: var(--bad); }
.tag.ct-new { background: var(--good-bg); color: var(--good); margin-left: 6px; }
.tag.ct-lapsed { margin-left: 6px; }
.ct-spark { display: block; }
.ct-mover { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.ct-mover:last-child { border-bottom: 0; }
.ct-mover .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ct-mover .num { text-align: right; font-weight: 600; font-size: 13px; color: var(--good); }
.ct-mover .num.down { color: var(--bad); }
.ct-mover .small.muted + .num { color: var(--text-2); }
.ct-mover .ct-spark { color: var(--text-3); }
.ct-free-row { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 5px 0; color: var(--text); font-size: 13px; }
.ct-free-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-free-row .track { height: 8px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.ct-free-row .track span { display: block; height: 100%; background: var(--free); border-radius: 0 2px 2px 0; }
.ct-free-row .num { text-align: right; white-space: nowrap; }
.ct-free-pill { color: var(--free); font-weight: 600; }
.ct-beer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px 28px; }
.ct-beer-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-strong); padding-bottom: 6px; margin-bottom: 4px; }
.ct-beer .ct-free-row { grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; }
.ct-vol-form { display: flex; gap: 4px; align-items: center; }
.ct-vol-form input { width: 64px; padding: 4px 6px; min-height: 0; }
.ct-vol-form select { width: auto; padding: 4px 6px; min-height: 0; }
tr.ct-unknown td { background: var(--warn-bg); }
.ct-foot { margin-top: 18px; }
.ct-small { margin-top: 14px; }
.ct-small summary { cursor: pointer; font-size: 13px; color: var(--text-2); padding: 6px 0; }
.ct-small[open] summary { margin-bottom: 6px; }
.ct-rank { display: grid; grid-template-columns: 28px minmax(0, 1fr) 90px 92px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.ct-rank:last-child { border-bottom: 0; }
.ct-rank .pos { font-size: 24px; color: var(--text-3); }
.ct-rank .who { display: flex; flex-direction: column; min-width: 0; }
.ct-rank .who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-rank .num { display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; }
.ct-pct-track { display: block; height: 8px; background: var(--surface-2); border-radius: 2px; overflow: hidden; min-width: 50px; }
.ct-pct-track span { display: block; height: 100%; border-radius: 0 2px 2px 0; }
.ct-pct-track .good { background: var(--good); } .ct-pct-track .bad { background: var(--bad); }
.ct-pct-cell { display: grid; grid-template-columns: 70px auto; gap: 8px; align-items: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.muted-row td { color: var(--text-3); }
tr.muted-row td a { color: var(--text-2); }

/* ---------- sign-in, users, user menu */
.sidebar .user-menu { margin-top: auto; padding: 10px 10px 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; border-top: 1px solid rgba(255,255,255,.14); }
.sidebar .user-menu + .sidebar-foot { margin-top: 6px; }
.user-chip { display: flex; align-items: center; gap: 8px; color: inherit; flex-basis: 100%; text-decoration: none; }
.user-chip:hover { text-decoration: none; }
.user-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text); font-weight: 700; font-size: 12px; flex: none; }
.sidebar .user-dot { background: rgba(255,255,255,.14); color: #fff; }
.user-name { display: flex; flex-direction: column; font-size: 13px; line-height: 1.2; min-width: 0; }
.user-name small { color: #8b9198; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.user-link { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: #c8ccd1; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.user-link:hover { color: #fff; }
.user-menu form { margin: 0; display: inline; }
.home-user { display: flex; align-items: center; gap: 14px; margin-left: 10px; }
.home-user .user-chip { flex-basis: auto; }
.home-user .user-name small { color: var(--text-3); }
.home-user .user-link { color: var(--text-2); }
.home-user .user-link:hover { color: var(--text); }
.auth-narrow { max-width: 440px; margin: 40px auto; }
.auth-wide { max-width: 1200px; margin: 0 auto; }
.auth-card { padding: 28px; }
.auth-card h1 { margin: 4px 0 16px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; }
.auth-card .btn.primary { margin-top: 6px; justify-content: center; }
.role-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.role-key { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.role-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; background: var(--surface-3); color: var(--text-2); }
.role-badge.admin { background: var(--bad-bg); color: var(--bad); }
.role-badge.team { background: var(--info-bg, var(--surface-3)); color: var(--info, var(--text)); }
.role-badge.investor { background: var(--good-bg); color: var(--good); }
.user-edit { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0; }
.user-edit input, .user-edit select { width: auto; flex: 1 1 140px; }
form.stack { display: flex; flex-direction: column; gap: 10px; }
form.stack label { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 860px) {
  .sidebar .user-menu { margin: 0 0 0 auto; padding: 0 0 0 10px; border-top: 0; flex-wrap: nowrap; }
  .sidebar .user-name, .sidebar .user-menu a.user-link { display: none; }
  .user-chip { flex-basis: auto; }
  .role-keys { grid-template-columns: 1fr; }
  .home-user .user-name { display: none; }
}
.rpt { padding: 22px 24px; }
.rpt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rpt-total-label { margin-top: 10px; color: var(--text-2); font-size: 14px; }
.rpt-total { font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; margin: 4px 0 6px; }
.rpt-list { margin: 18px 0 0; border-top: 1px solid var(--border-strong); }
.rpt-list div { display: grid; grid-template-columns: minmax(0, 1fr) auto 140px; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--border); }
.rpt-list dt { color: var(--text-2); font-size: 14px; text-transform: none; letter-spacing: 0; }
.rpt-list dd { margin: 0; text-align: right; font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.rpt-list dd.d { font-weight: 400; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpt-text { position: absolute; left: -9999px; width: 1px; height: 1px; }
.rpt-note { margin: 14px 0 0; }
@media (max-width: 600px) { .rpt-list div { grid-template-columns: minmax(0, 1fr) auto; } .rpt-list dd.d { grid-column: 1 / -1; text-align: left; } }
.priv-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.priv-row form { margin: 0; }
.priv-add { display: flex; gap: 6px; margin-top: 10px; }
.priv-add select { flex: 1; min-width: 0; }
.fc-table th, .fc-table td { white-space: nowrap; }
.fc-status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.fc-status.bad { background: var(--bad-bg); color: var(--bad); }
.fc-status.warn { background: var(--warn-bg); color: var(--warn); }
.fc-status.good { background: var(--good-bg); color: var(--good); }
.fc-weeks { display: flex; gap: 6px; align-items: flex-end; overflow-x: auto; padding-bottom: 4px; }
.fc-week { flex: 1 0 44px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fc-week-bar { height: 110px; width: 100%; max-width: 34px; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.fc-week-bar span { display: block; width: 100%; background: var(--series-3); border-radius: 3px 3px 0 0; }
.fc-week-l { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fc-week-d { font-size: 10px; color: var(--text-3); white-space: nowrap; }

/* ---------- investor insights: beyond the numbers */
.inv-nf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 16px; margin: 0 0 14px; }
.inv-nf-stats dt { color: var(--text-3); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.inv-nf-stats dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.inv-nf-stats dd small { font-size: 15px; color: var(--text-3); font-weight: 500; }
.inv-beers { display: flex; flex-direction: column; gap: 6px; }
.inv-beer { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; }
.inv-beer .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-beer .track { height: 8px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.inv-beer .track span { display: block; height: 100%; background: var(--series-1); border-radius: 0 2px 2px 0; }
.inv-beer .num { text-align: right; font-variant-numeric: tabular-nums; }
.inv-upcoming { list-style: none; margin: 6px 0 0; padding: 0; }
.inv-upcoming li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.inv-upcoming li:last-child { border-bottom: 0; }
.ct-heat.bz td.hm { min-width: 26px; height: 24px; }
.ct-heat.bz th { padding: 4px 2px; }
.vt-table th, .vt-table td { white-space: nowrap; }
.vt-table td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.vt-table tr.vt-sep td { border-top: 1px solid var(--border-strong); }
.vt-table tr.vt-strong td { font-weight: 600; }
.vt-table td.now, .vt-table th.now { background: var(--surface-2); }

/* ---------- raw materials */
.raw-mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.raw-mode:last-of-type { border-bottom: 0; }
.raw-mode input[type=radio] { margin-top: 4px; }
.raw-mode .field { display: block; }

/* ---------- release cans (artwork from 27southbrewing.com.au) */
.beer-can { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 84px; border-radius: 10px;
  background: var(--can-bg); overflow: hidden; flex: none; }
.beer-can img { height: 92%; width: auto; object-fit: contain; mix-blend-mode: multiply; }   /* multiply hides white backgrounds on JPG renders */
.audit-kind { display: inline-block; min-width: 66px; padding: 1px 7px; margin-right: 6px; border-radius: 3px; font-size: 10px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; background: var(--surface-3); color: var(--text-2); text-align: center; }
.audit-kind.signin, .audit-kind.signout { background: var(--good-bg); color: var(--good); }
.audit-kind.signin_failed { background: var(--bad-bg); color: var(--bad); }
.audit-kind.download { background: var(--warn-bg); color: var(--warn); }

/* ---------- phones: wide tables and button rows scroll inside their card instead of widening the page */
@media (max-width: 860px) {
  .card-body > table, .card-body > div > table:not(.ct-heat) { display: block; overflow-x: auto; max-width: 100%; }
  .seg { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .seg a { flex: none; }
  .page-head .actions, .card-head .actions, .card-head { flex-wrap: wrap; max-width: 100%; min-width: 0; }
  .card-head .seg, .page-head .seg { max-width: calc(100vw - 48px); }
}

.drink-cat { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 10px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; background: var(--surface-3); color: var(--text-2); }
.drink-cat.beer { background: color-mix(in srgb, var(--series-3) 25%, transparent); color: var(--text); }
.drink-cat.wine { background: color-mix(in srgb, var(--series-2) 25%, transparent); color: var(--text); }
.drink-cat.spirit { background: color-mix(in srgb, var(--series-5) 25%, transparent); color: var(--text); }
.drink-cat.mixer { background: color-mix(in srgb, var(--series-4) 25%, transparent); color: var(--text); }
