/* Cookie HQ */
:root {
  --accent: #1f7a4d;
  --accent-ink: #fff;
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-2: #faf9f5;
  --ink: #1d2320;
  --ink-2: #4c5650;
  --ink-3: #7c857f;
  --line: #e4e2da;
  --line-2: #d6d3c8;
  --good: #1f7a4d;
  --good-bg: #e6f3ec;
  --warn: #9a5b00;
  --warn-bg: #fdf1dc;
  --bad: #b3261e;
  --bad-bg: #fbe6e4;
  --info: #23589a;
  --info-bg: #e5eef9;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 2px 8px rgba(20, 30, 25, .05);
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .8em; }
small, .small { font-size: .85em; }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.boot { padding: 40px; text-align: center; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* layout */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 16px; }
.brand .logo { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.brand b { display: block; font-size: 1rem; line-height: 1.1; }
.brand span { font-size: .8rem; color: var(--ink-3); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.nav .sec { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 14px 10px 4px; font-weight: 700; }
.nav .badge { margin-left: auto; }
.nav svg { width: 18px; height: 18px; flex: none; }
.side .foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: .85rem; }
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.top .title { font-weight: 800; font-size: 1.05rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 24px 28px 80px; max-width: 1240px; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 260px; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 25; }
  .menu-btn { display: inline-flex; }
  .top { padding: 10px 16px; }
  .content { padding: 16px 16px 90px; }
}

/* components */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 16px; }
.card h2, .card h3 { margin-bottom: .6em; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; flex: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head > div:first-child { flex: 1; min-width: 220px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }

.stat { padding: 16px; }
.stat .k { font-size: .8rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stat .v { font-size: 1.7rem; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: .85rem; color: var(--ink-2); }

.btn { appearance: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; line-height: 1.2; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, white); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { padding: 5px 10px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.linkish { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 800; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.good { background: var(--good-bg); color: var(--good); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.badge.info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.badge.mm { background: #fbe7f0; color: #a3275f; border-color: transparent; }
html[data-theme=thinmint] .badge.mm { background: #4a2236; color: #f5a9c9; }
.badge.solid { background: var(--accent); color: #fff; border-color: transparent; }

.note { padding: 10px 14px; border-radius: 10px; background: var(--info-bg); color: var(--info); font-size: .92rem; }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.note.bad { background: var(--bad-bg); color: var(--bad); }
.note.good { background: var(--good-bg); color: var(--good); }

/* forms */
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 4px; color: var(--ink-2); }
label.f > em { display: block; font-style: normal; font-size: .8rem; color: var(--ink-3); margin-top: 3px; }
input, select, textarea { font: inherit; color: inherit; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 55%, var(--surface)); outline-offset: 1px; }
textarea { min-height: 80px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
input.qty { width: 64px; text-align: right; padding: 6px 8px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; cursor: pointer; }
.check input { margin-top: 4px; }
.fields { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.fields .wide { grid-column: 1 / -1; }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 800; background: var(--surface); position: sticky; top: 0; }
tbody tr:hover td { background: var(--surface-2); }
tr.click { cursor: pointer; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 800; border-top: 2px solid var(--line-2); }
.vgrid th.num { min-width: 46px; }

/* lists */
.list > .item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list > .item:last-child { border-bottom: 0; }
.item .grow { flex: 1; min-width: 0; }
.item .t { font-weight: 700; }
.item .d { font-size: .87rem; color: var(--ink-2); }
.datebox { width: 52px; text-align: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); padding: 4px 0; flex: none; }
.datebox b { display: block; font-size: 1.2rem; line-height: 1.1; }
.datebox span { font-size: .7rem; text-transform: uppercase; font-weight: 800; color: var(--ink-3); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a, .tabs button { padding: 9px 14px; text-decoration: none; color: var(--ink-2); font-weight: 700; border: 0; background: none; font: inherit; font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs .on { color: var(--accent); border-bottom-color: var(--accent); }

.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress > div { height: 100%; background: var(--accent); border-radius: 99px; }

/* modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(20, 25, 22, .45); z-index: 50; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 14px; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.modal.wide { width: min(980px, 100%); }
.modal header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal header h2 { margin: 0; flex: 1; font-size: 1.15rem; }
.modal .body { padding: 18px 20px; }
.modal footer { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; position: sticky; bottom: 0; background: var(--surface); }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; max-width: 90vw; }
.toast.bad { background: var(--bad); }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 500px at 20% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent), var(--bg); }
.auth .card { width: min(440px, 100%); padding: 28px; }
.auth .card.wide { width: min(640px, 100%); }
.auth .brand { padding: 0 0 18px; }

/* booth cards */
.booth { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.booth:last-child { border-bottom: 0; }
.booth .who { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.booth .acts { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
@media (max-width: 640px) { .booth { grid-template-columns: 52px 1fr; } .booth .acts { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; } }
.chip { font-size: .78rem; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.chip.me { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: transparent; color: var(--accent); font-weight: 700; }
.chip.wait { border-style: dashed; color: var(--ink-3); }
.slots { display: flex; gap: 3px; }
.slots i { width: 10px; height: 10px; border-radius: 3px; background: var(--line); display: inline-block; }
.slots i.f { background: var(--accent); }

/* steps (onboarding) */
.steps { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.steps span { flex: 1; min-width: 40px; height: 6px; border-radius: 99px; background: var(--line); }
.steps span.done { background: var(--accent); }
.checklist .item .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; font-weight: 800; font-size: .8rem; color: var(--ink-3); }
.checklist .item.done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }

/* charts */
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar { display: grid; grid-template-columns: minmax(90px, 200px) 1fr 70px; gap: 10px; align-items: center; font-size: .88rem; }
.bar .track { height: 14px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar .track > div { height: 100%; background: var(--accent); border-radius: 4px; }
.bar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heat td { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; border: 2px solid var(--surface); }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 70px; }
.spark > div { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }

.drop { border: 2px dashed var(--line-2); border-radius: 12px; padding: 26px; text-align: center; color: var(--ink-2); background: var(--surface-2); cursor: pointer; }
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }

.empty { text-align: center; padding: 30px 10px; color: var(--ink-3); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .92rem; }
.kv dt { color: var(--ink-3); font-weight: 700; }
.kv dd { margin: 0; }
.var-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

@media print {
  .side, .top, .no-print, .toasts { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; padding: 0; }
  body { background: #fff; font-size: 12px; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* ---------- themes (Settings → Appearance) ---------- */
html[data-theme="lemonade"] { --accent: #2b4c8c; --bg: #fffbea; --surface-2: #fff8d6; --line: #efe6bf; --line-2: #e2d6a3; }
html[data-theme="lemonade"] .brand .logo, html[data-theme="lemonade"] .btn.primary { background: #2b4c8c; }
html[data-theme="lemonade"] .auth { background: radial-gradient(900px 420px at 15% -10%, #ffe36e, transparent), #fffbea; }
html[data-theme="caramel"] { --accent: #6b3fa0; --bg: #f8f1ea; --surface-2: #fbf5ef; --line: #eadfd2; --line-2: #dccdbc; }
html[data-theme="caramel"] .auth { background: radial-gradient(900px 420px at 15% -10%, #e7b77a, transparent), #f8f1ea; }
html[data-theme="shortbread"] { --accent: #1f6fb5; --bg: #f1f6fb; --surface-2: #f6f9fd; --line: #dce6f0; --line-2: #c9d7e6; }
html[data-theme="pbpatty"] { --accent: #9b2226; --bg: #fbf3f1; --surface-2: #fdf8f6; --line: #f0dcd6; --line-2: #e3c6be; }
html[data-theme="gsgreen"] { --accent: #1f7a4d; }
html[data-theme="thinmint"] {
  color-scheme: dark;
  --accent: #5fd3a0; --accent-ink: #0d1a14;
  --bg: #12171a; --surface: #1a2125; --surface-2: #20292e; --ink: #e8efeb; --ink-2: #b7c3bd; --ink-3: #85938c;
  --line: #2b363b; --line-2: #3a474d;
  --good: #6fdcaa; --good-bg: #183a2b; --warn: #f1c070; --warn-bg: #3b2f17; --bad: #ff8a80; --bad-bg: #3d1f1d; --info: #8cb8ff; --info-bg: #1c2b44;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
}
html[data-theme="thinmint"] input, html[data-theme="thinmint"] select, html[data-theme="thinmint"] textarea { background: #11181b; }
html[data-theme="thinmint"] .nav a.on { background: #1f3a2f; }
html[data-theme="thinmint"] .chip.me { background: #1f3a2f; }
html[data-theme="thinmint"] .auth { background: radial-gradient(900px 420px at 15% -10%, #1f4636, transparent), #12171a; }
html[data-theme="thinmint"] .drop.over { background: #1f3a2f; }
.drop svg { width: 30px; height: 30px; color: var(--ink-3); }
.item > svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.grid > .card + .card, .row > .card + .card { margin-top: 0; }
.vgrid tbody td:first-child, .vgrid tfoot td:first-child { min-width: 128px; }
@media (max-width: 640px) { .card { padding: 14px; } .tbl-wrap { margin: 0 -14px; padding: 0 14px; } th, td { padding: 7px 6px; } }
@media (max-width: 640px) { .list > .item { flex-wrap: wrap; } .list > .item .grow { flex-basis: 70%; } }

/* + New, top tabs, dashboard */
.new-btn { margin-left: auto; flex: none; }
.new-btn svg { width: 16px; height: 16px; }
.top-brand { padding: 0; }
.shell.tabs-mode { grid-template-columns: 1fr; }
.shell.tabs-mode > .side { display: none; }
.toptabs { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 57px; z-index: 4; }
.toptabs .tabrow, .toptabs .subrow { display: flex; gap: 4px; padding: 0 28px; overflow-x: auto; scrollbar-width: none; }
.toptabs .tabrow a { padding: 10px 14px; font-weight: 800; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.toptabs .tabrow a.on { color: var(--accent); border-bottom-color: var(--accent); }
.toptabs .subrow { background: var(--surface-2); border-top: 1px solid var(--line); padding-top: 6px; padding-bottom: 6px; }
.toptabs .subrow a { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; white-space: nowrap; font-size: .92rem; }
.toptabs .subrow a.on { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.toptabs svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .shell.tabs-mode > .side { display: flex; }
  .toptabs { top: 49px; }
  .toptabs .tabrow, .toptabs .subrow { padding: 0 12px; }
  .new-btn span, .new-btn { font-size: .85rem; }
}
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; grid-auto-flow: row dense; }
.dash-cell.wide { grid-column: 1 / -1; }
.dash-cell > .card, .dash-cell > div > .card { margin: 0; }
@media (max-width: 900px) { .dash { grid-template-columns: minmax(0, 1fr); } }
.dash-cell { min-width: 0; }
.phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.phase { display: flex; gap: 8px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; color: var(--ink-2); }
.phase .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-weight: 800; flex: none; font-size: .85rem; }
.phase b { display: block; font-size: .9rem; color: var(--ink); line-height: 1.15; }
.phase small { color: var(--ink-3); font-size: .75rem; }
.phase.done .num { background: var(--good); color: #fff; }
.phase.now { border-color: var(--accent); }
.phase.on { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
@media (max-width: 760px) { .phases { grid-template-columns: repeat(5, 150px); overflow-x: auto; } }
.task .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; font-size: .8rem; font-weight: 800; }
.task.done .tick { background: var(--good); border-color: var(--good); color: #fff; }
.task.done .t { color: var(--ink-3); text-decoration: line-through; }
.season-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: -2px 0 12px; }
.season-bar > div { height: 100%; background: var(--accent); }
.new-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.new-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); }
.new-group svg { width: 18px; height: 18px; }
.new-item { display: flex; width: 100%; gap: 8px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; margin-top: 6px; cursor: pointer; font: inherit; color: var(--ink); }
.new-item:hover { border-color: var(--accent); color: var(--accent); }
.new-item svg { width: 15px; height: 15px; flex: none; }

.support-banner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: #fff8e1; border: 1px solid #f0d68a; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; color: #3b3200; }
.support-banner .sb-title { font-weight: 800; font-size: 1.05rem; margin-bottom: 2px; }
.support-banner .sb-msg { font-size: .95rem; }
.support-banner .sb-progress { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: .85rem; font-weight: 700; }
.support-banner .sb-track { flex: 1; max-width: 320px; height: 8px; background: #f3e5b5; border-radius: 4px; overflow: hidden; }
.support-banner .sb-track > div { height: 100%; background: #c99a06; }
.support-banner .sb-acts { display: flex; gap: 8px; align-items: center; flex: none; }
.support-banner .grow { min-width: 240px; }

/* ---------- training slides (1.32) ---------- */
@font-face { font-family: "CHQ Display"; src: url("vendor/poppins/poppins-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "CHQ Display"; src: url("vendor/poppins/poppins-700i.woff") format("woff"); font-weight: 700; font-style: italic; font-display: swap; }
.lr { --lr-bg: #dff2b8; --lr-ink: #1f7a4d; --lr-acc: #7cc243; position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--lr-bg); color: #1f2421; transition: background .35s; outline: none; }
.lr-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.lr-x, .lr-menu { background: rgba(255,255,255,.65); border: 0; border-radius: 999px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--lr-ink); cursor: pointer; }
.lr-x { width: 38px; height: 38px; padding: 0; }
.lr-title { flex: 1; font-weight: 800; color: var(--lr-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-with { font-weight: 600; opacity: .8; }
.lr-preview { margin: 0 14px 6px; background: #fff7d1; border: 1px dashed #c9a227; color: #6b5200; border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.lr-progress { height: 5px; margin: 0 14px; background: rgba(255,255,255,.55); border-radius: 99px; overflow: hidden; }
.lr-progress span { display: block; height: 100%; background: var(--lr-ink); border-radius: 99px; transition: width .3s; }
.lr-stage { flex: 1; overflow: auto; display: flex; padding: 14px; }
.lr-slide { margin: auto; width: 100%; max-width: 1180px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; animation: lrIn .35s ease; }
.lr-slide.lr-wide-right { grid-template-columns: 1fr 1fr; }
@keyframes lrIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lr-copy { min-width: 0; }
.lr-h { font-family: "CHQ Display", var(--font); font-style: italic; font-weight: 700; font-size: clamp(30px, 5vw, 58px); line-height: 1.05; color: var(--lr-ink); margin: 2px 0 14px; letter-spacing: -.01em; }
.lr-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; font-weight: 800; color: var(--lr-ink); opacity: .75; }
.lr-text { font-size: clamp(16px, 1.7vw, 20px); line-height: 1.5; margin: 0 0 12px; }
.lr-bullets, .lr-steps { margin: 6px 0 12px; padding: 0; list-style: none; font-size: clamp(15.5px, 1.6vw, 19px); line-height: 1.45; }
.lr-bullets li { position: relative; padding-left: 26px; margin: 8px 0; }
.lr-bullets li::before { content: ""; position: absolute; left: 4px; top: .48em; width: 11px; height: 11px; border-radius: 50%; background: var(--lr-acc); box-shadow: 0 0 0 3px rgba(255,255,255,.7); }
.lr-steps { counter-reset: lr; }
.lr-steps li { counter-increment: lr; position: relative; padding-left: 44px; margin: 10px 0; min-height: 32px; }
.lr-steps li::before { content: counter(lr); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--lr-ink); color: #fff; font-weight: 800; display: grid; place-items: center; font-family: "CHQ Display", var(--font); }
.lr-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.lr-fact { background: rgba(255,255,255,.75); border-radius: 18px; padding: 12px 16px; min-width: 120px; }
.lr-fact-big { font-family: "CHQ Display", var(--font); font-weight: 700; font-size: clamp(24px, 3.2vw, 36px); color: var(--lr-ink); line-height: 1.1; }
.lr-fact-lab { font-size: 13.5px; font-weight: 600; opacity: .8; }
.lr-dates { display: grid; gap: 6px; margin: 6px 0 12px; }
.lr-date { display: grid; grid-template-columns: 120px 1fr; gap: 10px; background: rgba(255,255,255,.7); border-radius: 12px; padding: 8px 12px; font-size: 15.5px; }
.lr-date b { color: var(--lr-ink); }
.lr-date.past { opacity: .55; }
.lr-places { display: grid; gap: 8px; margin: 6px 0 12px; }
.lr-place { background: rgba(255,255,255,.75); border-radius: 14px; padding: 10px 14px; }
.lr-skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.lr-skill { border-radius: 16px; padding: 12px 14px; font-size: 14.5px; }
.lr-skill b { display: block; font-family: "CHQ Display", var(--font); font-size: 17px; margin-bottom: 4px; }
.lr-example, .lr-note { background: rgba(255,255,255,.7); border-left: 5px solid var(--lr-acc); border-radius: 10px; padding: 10px 14px; margin: 8px 0 12px; font-size: 15px; }
.lr-updated { display: inline-block; background: #fff; color: var(--lr-ink); border-radius: 99px; padding: 3px 10px; font-weight: 800; font-size: 12.5px; margin-bottom: 6px; }
.lr-link { display: inline-block; margin-top: 6px; font-weight: 800; color: var(--lr-ink); }
.lr-art { display: flex; align-items: center; justify-content: center; min-width: 0; }
.lr-sticker { max-width: 100%; max-height: 52vh; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.08)); }
.lr-decor { width: 100%; max-width: 420px; height: auto; }
.lr-hero { grid-template-columns: 1fr; text-align: center; }
.lr-hero .lr-copy { max-width: 760px; margin: 0 auto; }
.lr-hero .lr-art { margin-top: 6px; }
.lr-hero .lr-decor { max-width: 300px; }
.lr-hero .lr-sticker { max-height: 34vh; }
.lr-hero .lr-h { font-size: clamp(38px, 7vw, 84px); }
.lr-slide.has-bg { position: relative; display: block; max-width: min(1180px, calc((100vh - 170px) * 16 / 9)); aspect-ratio: 16 / 9; }
.lr-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 18px; }
.lr-hero-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(78%, 680px); background: rgba(255,255,255,.9); border-radius: 22px; padding: clamp(14px, 3vw, 30px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.lr-hero-card .lr-h { font-size: clamp(28px, 5vw, 60px); }
.lr-bottom { display: flex; align-items: center; gap: 12px; padding: 10px 14px 6px; }
.lr-crumb { flex: 1; text-align: center; font-weight: 700; color: var(--lr-ink); font-size: 14px; }
.lr-count { font-weight: 500; opacity: .75; }
.lr-nav { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--lr-ink); font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.lr-nav:disabled { opacity: .35; cursor: default; }
.lr-nav.next { background: var(--lr-ink); color: #fff; }
.lr-nav.finish { width: auto; border-radius: 99px; padding: 0 20px; font-size: 16px; font-weight: 800; }
.lr-credit { text-align: center; font-size: 11px; opacity: .65; padding: 0 14px 8px; min-height: 8px; }
.lr-quiz { background: rgba(255,255,255,.8); border-radius: 16px; padding: 12px 14px; margin: 10px 0; }
.lr-quiz-q { font-weight: 800; margin-bottom: 8px; color: var(--lr-ink); }
.lr-quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.lr-chip { border: 2px solid var(--lr-ink); background: #fff; color: var(--lr-ink); border-radius: 99px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.lr-chip.on { background: var(--lr-ink); color: #fff; }
.lr-chip.right { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.lr-chip.wrong { background: #fde2e2; border-color: #c0392b; color: #8a1f14; }
.lr-chip.off { opacity: .45; }
.lr-chip:disabled { cursor: default; }
.lr-quiz-why { margin-top: 8px; font-size: 14.5px; min-height: 1em; }
.lr-btn { border: 0; background: var(--lr-ink); color: #fff; border-radius: 99px; padding: 10px 18px; font: inherit; font-weight: 800; cursor: pointer; }
.lr-btn.small { padding: 6px 12px; font-size: 13.5px; }
.lr-btn.ghost { background: rgba(255,255,255,.75); color: var(--lr-ink); }
.lr-btn:disabled { opacity: .4; cursor: default; }
.lr-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.lr-calc { background: rgba(255,255,255,.8); border-radius: 16px; padding: 12px 14px; margin: 10px 0; font-size: 15.5px; }
.lr-calc label { font-weight: 700; }
.lr-num { width: 110px; font: inherit; font-size: 18px; font-weight: 700; padding: 6px 10px; border: 2px solid var(--lr-ink); border-radius: 12px; }
.lr-calc-out { margin-top: 8px; }
.lr-score { font-weight: 800; color: var(--lr-ink); }
.lr-small { font-size: 13px; opacity: .8; }
.lr-big { font-family: "CHQ Display", var(--font); font-weight: 700; font-size: 26px; color: var(--lr-ink); }
.lr-mock { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; box-shadow: 0 12px 34px rgba(0,0,0,.1); padding: 12px; font-size: 14.5px; }
.lr-mock-head { font-weight: 800; padding: 4px 6px 10px; color: var(--lr-ink); }
.lr-mock-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-top: 1px solid #eef0ec; }
.lr-mock-row .grow { flex: 1; min-width: 0; }
.lr-fake { background: #f3f5f1; border-radius: 8px; padding: 4px 10px; font-weight: 600; }
.lr-fake.num { min-width: 34px; text-align: center; }
.lr-fake.btn { background: var(--lr-ink); color: #fff; text-align: center; margin-top: 8px; border-radius: 99px; padding: 8px; }
.lr-rank { width: 26px; height: 26px; border-radius: 50%; background: var(--lr-bg); color: var(--lr-ink); display: grid; place-items: center; font-weight: 800; }
.lr-tag { margin-left: 6px; background: #fff3c4; color: #7a5a00; border-radius: 99px; padding: 1px 8px; font-size: 11.5px; font-weight: 800; }
.lr-tix { min-width: 40px; text-align: right; }
.lr-radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--lr-ink); }
.lr-radio.on { background: var(--lr-ink); box-shadow: inset 0 0 0 3px #fff; }
.lr-lineup { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; width: 100%; }
.lr-cookie { background: rgba(255,255,255,.8); border-radius: 16px; padding: 8px; text-align: center; font-weight: 700; font-size: 13.5px; }
.lr-cookie img { width: 100%; height: 92px; object-fit: contain; display: block; }
.lr-cookie-dot { width: 76px; height: 76px; margin: 8px auto; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: "CHQ Display", var(--font); font-size: 24px; }
.lr-alg { width: 100%; max-width: 480px; background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 12px 34px rgba(0,0,0,.1); }
.lr-alg-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.lr-alg-img { width: 90px; height: 90px; object-fit: contain; }
.lr-flip { display: block; width: 100%; min-height: 110px; margin: 10px 0 8px; background: #fff; border: 3px dashed var(--lr-acc); border-radius: 18px; padding: 14px; font: inherit; font-size: 18px; font-weight: 700; color: #1f2421; cursor: pointer; text-align: left; }
.lr-confetti { font-size: 40px; letter-spacing: 6px; animation: lrIn .6s ease; }
.lr-menu-item { width: 100%; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; }
.lr-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.lr-actions { position: sticky; bottom: 0; padding: 10px 0; background: var(--bg); display: flex; justify-content: flex-end; }
.lr-art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.lr-art-card { border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; gap: 6px; background: var(--surface, #fff); }
.lr-art-card.off { opacity: .5; }
.lr-art-card select { width: 100%; }
.lr-art-thumb { height: 110px; display: grid; place-items: center; background: repeating-conic-gradient(#f2f2f2 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: 8px; overflow: hidden; }
.lr-art-thumb img { max-width: 100%; max-height: 110px; object-fit: contain; }
@media (max-width: 820px) {
  .lr-slide, .lr-slide.lr-wide-right { grid-template-columns: 1fr; gap: 14px; }
  .lr-art { order: -1; }
  .lr-sticker { max-height: 150px; }
  .lr-decor { max-width: 200px; }
  .lr-slide.lr-wide-right .lr-art, .lr-slide:has(.lr-lineup) .lr-art { order: 0; }
  .lr-date { grid-template-columns: 96px 1fr; font-size: 14.5px; }
  .lr-slide.has-bg { aspect-ratio: auto; max-width: 100%; display: flex; flex-direction: column; gap: 10px; }
  .lr-bg { position: static; height: auto; max-height: 30vh; }
  .lr-hero-card { position: static; transform: none; width: 100%; }
  .lr-menu { padding: 8px 10px; }
}
html[data-theme=thinmint] .lr { color: #1f2421; }

/* ---------- guided initial order (1.33) ---------- */
.io-walk { display: grid; gap: 10px; }
.io-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.05em; }
.io-stepno { font-size: 12.5px; color: var(--ink-3); font-weight: 700; margin-left: auto; }
.io-kit { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.io-kit-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--line); }
.io-kit-row:first-child { border-top: 0; }
.io-kit-row.tot { background: var(--surface-2); font-weight: 700; }
.io-why { font-size: 13.5px; background: var(--info-bg); color: var(--info); border-radius: 10px; padding: 8px 12px; }
.io-steps { display: grid; gap: 2px; }
.io-row { display: grid; grid-template-columns: minmax(0, 1fr) 46px 40px 42px 40px; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.io-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.io-n { text-align: center; font-size: 1.1em; font-variant-numeric: tabular-nums; }
.io-pm { width: 40px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 20px; font-weight: 800; cursor: pointer; line-height: 1; }
.io-pm:disabled { opacity: .35; cursor: default; }
.io-d { font-size: 12.5px; font-weight: 800; text-align: right; }
.io-d.up { color: var(--good); } .io-d.down { color: var(--warn); }
.io-meter { display: grid; gap: 4px; }
.io-track { position: relative; height: 12px; border-radius: 99px; background: var(--line); overflow: visible; }
.io-band { position: absolute; top: 0; bottom: 0; background: var(--good-bg); border: 2px solid var(--good); border-radius: 99px; box-sizing: border-box; }
.io-track i { position: absolute; top: -5px; width: 6px; height: 22px; margin-left: -3px; border-radius: 3px; background: var(--ink); transition: left .15s; }
.io-meter.bad .io-track i { background: var(--bad); }
.io-meter.bad .io-meter-lab b { color: var(--bad); }
.io-meter-lab { font-size: 13.5px; }
.io-agree { align-items: flex-start; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.io-agree input { margin-top: 3px; }
.io-ask summary { cursor: pointer; font-size: 14px; color: var(--ink-2); }
.io-nav { margin-top: 4px; }
.io-pick { border-radius: 12px; padding: 10px 14px; background: var(--warn-bg); color: var(--ink); }
.io-pick.now { background: var(--good-bg); }
.io-pick p { margin: 6px 0; }
.io-pick-h { font-weight: 800; }
.io-saved { font-weight: 800; color: var(--good); font-size: 1.05em; }
.good-ink { color: var(--good); }
.io-all { display: grid; gap: 14px; width: 100%; }
.lr .io-card { background: #fff; color: #1d2320; border-radius: 18px; padding: 14px; box-shadow: 0 12px 34px rgba(0,0,0,.1); text-align: left; font-size: 15px;
  --ink: #1d2320; --ink-2: #4c5650; --ink-3: #7c857f; --line: #e4e2da; --line-2: #d6d3c8; --surface: #fff; --surface-2: #faf9f5; --good: #1f7a4d; --good-bg: #e6f3ec; --warn: #9a5b00; --warn-bg: #fdf1dc; --bad: #b3261e; --info: #23589a; --info-bg: #e5eef9; }
.lr .lr-panel { width: 100%; max-width: 520px; max-height: 70vh; overflow: auto; }
@media (max-width: 520px) { .io-row { grid-template-columns: minmax(0, 1fr) 36px 36px 34px 36px; gap: 4px; } .io-pm { width: 36px; } }
.ft { display: grid; gap: 10px; }
.ft h3 { margin: 0; }
.ft-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ft-rules .ft-how, .ft-rules > p { grid-column: 1 / -1; margin: 0; }
.ft-col { border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ft-col ul { margin: 6px 0 0; padding-left: 18px; }
.ft-col.yes { background: var(--good-bg); } .ft-col.no { background: var(--surface-2); border: 1px solid var(--line); }
.ft-form { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
@media (max-width: 640px) { .ft-rules { grid-template-columns: 1fr; } }
.lr-cookie { position: relative; }
.lr-cookie.is-new { outline: 3px dashed var(--lr-acc, #e8a); outline-offset: 2px; border-radius: 14px; }
.lr-new { position: absolute; top: -8px; right: -6px; background: #e0245e; color: #fff; font-weight: 900; font-size: 11px; letter-spacing: .06em; border-radius: 99px; padding: 3px 8px; z-index: 1; transform: rotate(6deg); }
.lr-cookie-q { background: #fff !important; color: var(--lr-ink); border: 3px dashed var(--lr-acc, #e8a); font-size: 28px; }
.ft-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ft-acts .btn.primary { margin-right: auto; }
.lr-team-rules { margin-top: 14px; font-size: 14.5px; color: #1d2320; --good-bg: rgba(255,255,255,.8); --surface-2: rgba(255,255,255,.55); --line: rgba(0,0,0,.08); --ink-2: #3c4640; }
.lr-team-rules .ft-rules p { color: var(--lr-ink); }
.io-agree input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--good); appearance: auto; -webkit-appearance: checkbox; }

/* ---------- 1.34 ---------- */
.lr-callout .lr-text { font-size: 1.25em; font-weight: 700; background: rgba(255,255,255,.75); border-left: 6px solid var(--lr-ink); border-radius: 12px; padding: 12px 16px; }
.lr-checklist { display: grid; gap: 6px; margin-top: 10px; }
.lr-checklist label { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.7); border-radius: 10px; padding: 8px 12px; font-weight: 600; cursor: pointer; }
.lr-checklist input { width: 20px; height: 20px; accent-color: var(--lr-ink); }
.lr-checklist label:has(input:checked) span { text-decoration: line-through; opacity: .6; }
.lr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; width: 100%; }
.lr-card { border-radius: 16px; padding: 12px 14px; color: #1d2320; box-shadow: 0 6px 18px rgba(0,0,0,.06); font-size: 14.5px; }
.lr-card b { display: block; font-size: 1.05em; margin-bottom: 4px; }
.lr-whatif { min-height: 180px; font-size: 1.1em; }
.lr-reconcile { max-width: 380px; }
.lr-rc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 6px; border-top: 1px solid #eef0ec; font-size: 14px; }
.lr-rc-row input { width: 96px; }
.lr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lr-version { margin-top: 12px; }
.lr-chip.on { background: var(--lr-ink); color: #fff; }
.lr-date.major b, .lr-date.major span { font-weight: 900; }
.lr-date.major { box-shadow: inset 4px 0 0 var(--lr-ink); }
.lr-axis { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.bc { display: grid; gap: 8px; margin: 6px 0 12px; }
.bc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.wk-thumb { display: grid; gap: 4px; width: 120px; }
.wk-thumb img { width: 120px; height: 90px; object-fit: contain; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
.wk-thumb.small, .wk-thumb.small img { width: 64px; height: 48px; }
.warn-card { border-color: var(--warn); }
.season-done .grid { margin: 8px 0; }
