.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.err { color: var(--bad); font-weight: 600; font-size: 14px; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink-2); cursor: pointer; text-align: left; font-weight: 600; }

.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--ink); position: relative; flex: none; display: inline-block; }
.logo-mark::after { content: ""; position: absolute; inset: 0; background: no-repeat center / 76% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 56C32 56 50 38 50 25a18 18 0 0 0-36 0c0 13 18 31 18 31z' fill='%23F2B01E'/%3E%3Ccircle cx='32' cy='25' r='7' fill='%2312211C'/%3E%3C/svg%3E"); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding-block: 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 28px; font-weight: 800; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 980px) { .shell { grid-template-columns: 240px 1fr; } }
.side { background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 10px; position: sticky; top: 0; z-index: 30; }
@media (min-width: 980px) { .side { border-bottom: 0; border-right: 1px solid var(--line); height: 100vh; padding: 22px 16px; align-content: start; grid-template-rows: auto 1fr auto; overflow-y: auto; } .side .nav { gap: 0; } .side .nav a { padding-top: 9px; padding-bottom: 9px; } }
.side-brand { display: flex; gap: 10px; align-items: center; }
.side-brand b { font-family: var(--display); font-weight: 800; font-size: 19px; display: block; line-height: 1; }
.side-brand small { color: var(--ink-3); font-weight: 600; font-size: 12px; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding-bottom: 8px; }
.nav::-webkit-scrollbar { display: none; }
@media (min-width: 980px) { .nav { flex-direction: column; overflow: visible; margin: 18px 0 0; padding: 0; } }
.nav a { flex: none; text-decoration: none; font-weight: 600; color: var(--ink-2); padding: 9px 12px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav a:hover { background: var(--surface-2); }
.nav a.on { background: var(--ink); color: var(--bg); }
.badge { background: var(--gold); color: var(--on-gold); border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 7px; }
.side-foot { display: none; }
@media (min-width: 980px) { .side-foot { display: grid; gap: 10px; font-size: 14px; align-content: end; } .side-foot a { color: var(--ink-2); font-weight: 600; } }

.main { min-width: 0; }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; padding-block: 22px 6px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 980px) { .bar { padding-left: 32px; padding-right: 32px; padding-top: 30px; } }
.bar h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.025em; }
.bar-left { min-width: 0; }
.range { min-height: 42px; width: auto; border-radius: 999px; padding: 0 14px; font-weight: 600; }
.view { padding-block: 14px 60px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 18px; }
@media (min-width: 980px) { .view { padding-left: 32px; padding-right: 32px; } }

/* ---------- building blocks ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; min-width: 0; }
.card h2 { font-size: 18px; font-weight: 800; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head p { font-size: 13px; color: var(--ink-3); }
.row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .row.r2 { grid-template-columns: 1.6fr 1fr; } .row.r2e { grid-template-columns: 1fr 1fr; } }

.headline { background: var(--hl-bg); color: var(--hl-fg); border-radius: 22px; padding: 26px; display: grid; gap: 16px; position: relative; overflow: hidden; }
.headline::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 240px; height: 240px; border-radius: 50%; border: 30px solid color-mix(in srgb, var(--gold) 22%, transparent); }
.headline .eyebrow { color: color-mix(in srgb, var(--hl-fg) 60%, transparent); }
.headline .big { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 8vw, 76px); line-height: .95; letter-spacing: -0.035em; color: var(--gold); }
.headline p { max-width: 60ch; color: color-mix(in srgb, var(--hl-fg) 82%, transparent); position: relative; z-index: 1; }
.headline .split { display: flex; flex-wrap: wrap; gap: 10px 26px; position: relative; z-index: 1; font-weight: 600; }
.headline .split b { font-family: var(--display); font-size: 22px; display: block; color: var(--hl-fg); }
.headline .split span { color: color-mix(in srgb, var(--hl-fg) 62%, transparent); font-size: 13px; }

.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 4px; min-width: 0; }
.kpi .lbl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.kpi .val { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 13px; color: var(--ink-2); }
.kpi svg { margin-top: 4px; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-box { width: 100%; overflow-x: auto; }
.chart-box svg { display: block; width: 100%; min-width: 520px; height: auto; }
.chart-box svg text { fill: var(--ink-3); font: 11px var(--body); }

.funnel { display: grid; gap: 10px; }
.fstep { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.fstep .fl { font-weight: 600; font-size: 14px; }
.fstep .fv { font-weight: 800; font-variant-numeric: tabular-nums; font-family: var(--display); }
.fbar { grid-column: 1 / -1; height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.fbar span { display: block; height: 100%; border-radius: 99px; background: var(--pine); }
.fstep .fr { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); }

.tbl-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.who b { display: block; font-weight: 700; }
.who small { color: var(--ink-3); }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.neutral { background: var(--surface-2); color: var(--ink-2); }

.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 110px; }
.hours span { background: var(--pine); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.hours span.peak { background: var(--gold); opacity: 1; }
.hours-axis { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 11px; color: var(--ink-3); margin-top: 6px; }

.feed { display: grid; gap: 2px; }
.feed div { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed div:last-child { border-bottom: 0; }
.feed time { color: var(--ink-3); font-size: 12px; white-space: nowrap; }

/* client cards */
.clients { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.client { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 14px; cursor: pointer; text-align: left; transition: border-color .15s; min-width: 0; }
.client:hover { border-color: var(--ink-3); }
.client-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.client h3 { font-size: 17px; font-weight: 800; }
.client .offer { font-size: 13px; color: var(--ink-2); }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini div { background: var(--surface-2); border-radius: 12px; padding: 10px; }
.mini b { display: block; font-family: var(--display); font-size: 20px; font-variant-numeric: tabular-nums; }
.mini span { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters .input { width: auto; min-height: 40px; border-radius: 999px; padding: 0 14px; }
.status-sel { min-height: 34px !important; padding: 0 10px !important; border-radius: 999px !important; font-weight: 700; font-size: 13px; width: auto !important; }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(5, 12, 9, .45); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--bg); z-index: 70; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.2); padding: calc(20px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) 20px; display: grid; gap: 16px; align-content: start; animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: .5; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.drawer-head h2 { font-size: 26px; font-weight: 800; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 20px; line-height: 1; flex: none; }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 480px) { .form-grid { grid-template-columns: 1fr; } }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad-bg); }

/* QR */
.qr-wrap { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .qr-wrap { grid-template-columns: 300px 1fr; } }
.qr-box { background: #fff; border-radius: 18px; padding: 18px; display: grid; justify-items: center; gap: 10px; border: 1px solid var(--line); color: #10241D; }
.qr-box canvas { width: 100%; max-width: 260px; height: auto; image-rendering: pixelated; }
.qr-box .qr-cap { font: 700 13px var(--body); text-align: center; }
.url { font-family: var(--mono); font-size: 13px; background: var(--surface-2); padding: 10px 12px; border-radius: 10px; word-break: break-all; }

/* report (printable) */
.report { background: #fff; color: #10241D; border-radius: 18px; padding: 36px; border: 1px solid var(--line); display: grid; gap: 22px; max-width: 860px; }
.report * { border-color: #D7DFD5; }
.rep-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: start; border-bottom: 3px solid #10241D; padding-bottom: 16px; }
.rep-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.rep-head .q { font-family: var(--mono); font-size: 13px; color: #4B5E56; }
.rep-big { display: grid; gap: 6px; }
.rep-big .n { font-family: var(--display); font-size: 56px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: #1C5B4A; }
.rep-big p { color: #4B5E56; max-width: 60ch; }
.rep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .rep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .report { padding: 22px; } }
.rep-grid div { border: 1px solid #D7DFD5; border-radius: 12px; padding: 12px; }
.rep-grid b { display: block; font-family: var(--display); font-size: 26px; font-variant-numeric: tabular-nums; }
.rep-grid span { font-size: 12px; color: #4B5E56; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.rep-notes { display: grid; gap: 8px; }
.rep-notes h3 { font-size: 17px; }
.rep-notes li { color: #26392F; margin-bottom: 4px; }
.rep-foot { font-size: 12px; color: #4B5E56; border-top: 1px solid #D7DFD5; padding-top: 12px; }
.report .chart-box svg text { fill: #6B7C74; }

@media print {
  body { background: #fff; }
  .side, .bar, .no-print, .toast, .drawer, .scrim { display: none !important; }
  .shell { display: block; }
  .view { padding: 0; }
  .report { border: 0; padding: 0; max-width: none; page-break-after: always; break-after: page; border-radius: 0; }
  .chart-box svg { min-width: 0; }
}

/* ===================== v2 additions ===================== */
.ok-msg { color: var(--good); font-weight: 600; font-size: 14px; }
.login-form { display: grid; gap: 12px; }
.login-card .seg { width: 100%; }
.login-card .seg button { flex: 1; }
.demo-pick { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.demo-people { display: grid; gap: 8px; }
.person-btn { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.person-btn:hover { border-color: var(--ink-3); }
.person-btn b { display: block; font-size: 15px; }
.person-btn small { color: var(--ink-3); font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--av, var(--pine)); flex: none; }
.role { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.role.owner { background: var(--ink); color: var(--bg); }
.role.manager { background: color-mix(in srgb, var(--gold) 28%, var(--surface)); color: var(--ink); }
.role.merchant { background: var(--surface-2); color: var(--ink-2); }

.me { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.me div { min-width: 0; }
.me b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-only { display: inline-block; font-size: 14px; }
@media (min-width: 980px) { .mobile-only { display: none; } }
.bar-right { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nav .sep { flex: none; height: 1px; background: var(--line); margin: 8px 6px; }
@media (max-width: 979px) { .nav .sep { display: none; } }

/* state pills for offers */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.live { background: var(--good-bg); color: var(--good); }
.st.scheduled { background: color-mix(in srgb, var(--gold) 22%, var(--surface)); color: var(--warn); }
.st.paused, .st.draft { background: var(--surface-2); color: var(--ink-2); }
.st.sold_out { background: var(--warn-bg); color: var(--warn); }
.st.ended { background: var(--surface-2); color: var(--ink-3); }

.cap { display: grid; gap: 4px; min-width: 110px; }
.cap-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.cap-bar span { display: block; height: 100%; border-radius: 99px; background: var(--gold); }
.cap small { font-size: 12px; color: var(--ink-3); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.icon-btn { min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.icon-btn:hover { background: var(--surface-2); }

/* live preview of a coupon stub */
.preview { background: var(--surface-2); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.pstub { display: grid; grid-template-columns: 1fr 86px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.pstub-main { padding: 14px 14px 14px 16px; border-left: 6px solid var(--biz, var(--pine)); display: grid; gap: 4px; min-width: 0; }
.pstub-main .c { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pstub-main .t { font-family: var(--display); font-size: 19px; font-weight: 800; line-height: 1.12; overflow-wrap: anywhere; }
.pstub-main .b { font-weight: 600; color: var(--ink-2); font-size: 14px; }
.pstub-side { border-left: 2px dashed var(--line); display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 800; color: var(--pine); font-size: 14px; padding: 8px; }

/* communities */
.comms { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .comms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .comms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.comm { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: grid; min-width: 0; }
.comm-top { padding: 18px 20px; color: #fff; background: var(--cc); display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.comm-top h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.comm-top small { color: rgba(255,255,255,.82); font-weight: 600; }
.comm-top .st { background: rgba(255,255,255,.92); }
.comm-body { padding: 16px 20px 20px; display: grid; gap: 14px; }
.checklist { display: grid; gap: 6px; font-size: 14px; }
.checklist div { display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
.checklist i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; flex: none; border: 2px solid var(--line); }
.checklist .done i { background: var(--good); border-color: var(--good); color: #fff; }
.checklist .done { color: var(--ink); }

/* redeem console */
.redeem-wrap { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .redeem-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.code-in { font-family: var(--mono); font-size: clamp(30px, 6vw, 44px); letter-spacing: .3em; text-transform: uppercase; text-align: center; min-height: 80px; border-radius: 16px; }
.look-card { border-radius: 16px; padding: 18px; display: grid; gap: 8px; background: var(--surface-2); }
.look-card h3 { font-size: 22px; font-weight: 800; }
.look-card .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ink-2); font-size: 14px; }
.big-ok { display: grid; place-items: center; gap: 6px; padding: 22px; border-radius: 16px; background: var(--good-bg); color: var(--good); font-weight: 800; font-size: 18px; text-align: center; animation: pop .4s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

/* customers + team */
.search-in { min-width: min(320px, 100%); }
.timeline { display: grid; gap: 0; }
.timeline div { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.timeline div:last-child { border-bottom: 0; }
.timeline time { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.timeline .dot { margin-top: 4px; }
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.matrix th, .matrix td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; font-weight: 600; }
.matrix .y { color: var(--good); font-weight: 800; }
.matrix .n { color: var(--ink-3); }
.invite { font-family: var(--mono); font-size: 12px; white-space: pre-wrap; background: var(--surface-2); padding: 12px; border-radius: 12px; }

.headline .big.small { font-size: clamp(36px, 6vw, 58px); }
.rev { display: flex; flex-wrap: wrap; gap: 10px 28px; position: relative; z-index: 1; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--hl-fg) 18%, transparent); }
.rev b { font-family: var(--display); font-size: 26px; display: block; color: var(--gold); }
.rev span { color: color-mix(in srgb, var(--hl-fg) 62%, transparent); font-size: 13px; font-weight: 600; }
.note-box { padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 600; font-size: 14px; }

/* ===================== games ===================== */
.srcbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.srcbar span { display: block; height: 100%; }
.legend.small { font-size: 12px; margin-top: 8px; }
.gcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: grid; min-width: 0; }
.gcard-top { padding: 18px 20px; color: #fff; background: var(--gc); display: flex; justify-content: space-between; align-items: start; gap: 10px; position: relative; overflow: hidden; }
.gcard-top::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(255,255,255,.1); }
.gcard-top h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.gcard-top small { color: rgba(255,255,255,.85); font-weight: 600; }
.gcard-top .st { background: rgba(255,255,255,.92); position: relative; z-index: 1; }
.section-title { display: grid; gap: 2px; margin-top: 6px; }
.section-title h2 { font-size: 22px; font-weight: 800; }
.pp-admin { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pp-admin:last-of-type { border-bottom: 0; }
.pp-admin b { display: block; }
.pp-admin small { color: var(--ink-3); font-size: 12px; }
.pp-num { text-align: center; }
.pp-num b { font-family: var(--display); font-size: 26px; }
.winner { margin-top: 12px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--gold) 18%, var(--surface)); display: grid; gap: 6px; animation: pop .4s cubic-bezier(.2,1.4,.4,1); }
.winner > b { font-family: var(--display); font-size: 28px; font-weight: 800; }
.prize-pick { display: grid; gap: 8px; }
.pp-line { display: grid; grid-template-columns: 20px 1fr 130px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.pp-line input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--pine); }
.pp-line b { display: block; font-size: 14px; }
.pp-line small { color: var(--ink-3); font-size: 12px; }
.pp-line select { min-height: 36px; padding: 0 8px; }
@media (max-width: 480px) { .pp-line { grid-template-columns: 20px 1fr; } .pp-line select { grid-column: 2; } }
.caption { white-space: pre-wrap; line-height: 1.5; color: var(--ink); }
.lg { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--line); color: #fff; font-family: var(--display); font-weight: 800; }
.lg img { width: 84%; height: 84%; object-fit: contain; }
.lg.mono { box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.gcard-top .lg { box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.logo-up { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.logo-up-ctl { display: grid; gap: 4px; justify-items: start; flex: 1; min-width: 200px; }
.logo-up-ctl label.btn { cursor: pointer; }

/* ===================== growth ===================== */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kcol { background: var(--surface-2); border-radius: 16px; padding: 10px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.kcol-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px; }
.kcol-head span { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 6px; cursor: pointer; transition: border-color .15s; }
.kcard:hover { border-color: var(--ink-3); }
.kc-top { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.kc-top b { font-size: 15px; line-height: 1.2; }
.kc-plan { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kc-plan b { font-variant-numeric: tabular-nums; font-size: 14px; }
.pitch-wrap { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1180px) { .pitch-wrap { grid-template-columns: 420px minmax(0, 1fr); } }
.pitch-form { position: relative; }
@media (min-width: 1180px) { .pitch-form { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; } }
.pitch-prev { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #FBF8F1; box-shadow: var(--shadow); min-width: 0; }
.pitch-prev-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pitch-prev-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.pitch-prev-bar .mono { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pfPrev { max-height: 78vh; overflow-y: auto; }
.data-mode { display: grid; gap: 6px; justify-items: start; }
.sample-banner { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 600; }
.sample-banner .linkish { color: var(--warn); text-decoration: underline; font-size: 13px; }
@media (min-width: 980px) { .sample-banner { padding-left: 32px; padding-right: 32px; } }
.mode-switch { font-size: 13px; }
.setup.full { padding: 28px; }
.setup-steps { display: grid; gap: 8px; }
.setup-step { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.setup-step i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: var(--surface); border: 2px solid var(--line); }
.setup-step.done i { background: var(--good); border-color: var(--good); color: #fff; }
.setup-step b { display: block; }
.setup-step small { color: var(--ink-3); }
.setup-step.done b { color: var(--ink-3); }
.slot{display:inline-block;min-width:44px;padding:3px 8px;border-radius:999px;background:var(--bg2,#F1EEE6);font-weight:700;font-variant-numeric:tabular-nums;font-size:13px}
.slot.full{background:#1C5B4A;color:#fff}
.cap-row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.cap-row > div { display: grid; gap: 4px; min-width: 0; }

/* ===================== phone polish ===================== */
@media (max-width: 979px) {
  .nav a { min-height: 44px; }
  .icon-btn { min-height: 40px; padding: 0 14px; }
  button.linkish, a.small { display: inline-flex; align-items: center; min-height: 40px; }
  .mobile-only { min-height: 40px; padding: 0 14px !important; border: 1px solid var(--line) !important; border-radius: 999px; background: var(--surface) !important; display: inline-flex; align-items: center; }
  .view { overflow-x: clip; }
  .filters { width: 100%; }
  .filters .input, .filters select { flex: 1 1 140px; min-width: 0; max-width: 100%; min-height: 44px; }
  .filters .btn { flex: 1 1 auto; }
  .report { max-width: 100%; overflow-wrap: anywhere; }
  .sample-banner .linkish { min-height: 36px; }
  table { font-size: 14px; }
}
/* drawers and uploads on narrow screens */
.drawer > * { min-width: 0; }
.drawer .seg { display: flex; flex-wrap: wrap; border-radius: 18px; }
.drawer .seg button { flex: 1 1 auto; }
.logo-up { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.logo-up-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.logo-up-ctl small { flex-basis: 100%; }
@media (max-width: 979px) { .drawer { width: 100%; padding-left: 16px; padding-right: max(16px, env(safe-area-inset-right, 0px)); } .drawer-head h2 { font-size: 23px; } }
