:root {
  --bg: #06080c;
  --bg-2: #0e131b;
  --card: #0e131b;
  --card-2: #141b26;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #f4efe6;
  --muted: #9aa3b2;
  --steel: #9aa3b2;
  --gold: #d4af5f;
  --gold-2: #e9c987;
  --gold-ink: #1a1408;
  --good: #3fb68b;
  --bad: #e5484d;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --sans: Inter, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --serif: Fraunces, "Iowan Old Style", Palatino, "Times New Roman", serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --r: 20px;
  --tab: calc(68px + env(safe-area-inset-bottom));
  --spring: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; overflow-x: clip; }
body { min-height: 100dvh; }
button, input, textarea, select { font: inherit; color: inherit; }
button {
  background-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
button { cursor: pointer; }
img { max-width: 100%; }
a { color: var(--gold-2); text-decoration: none; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.main { flex: 1; width: min(480px, 100%); max-width: 100%; min-width: 0; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 22px var(--tab); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 8px; letter-spacing: 0.16em; font-size: 12px; font-weight: 600; }
.brand img { width: 26px; height: 26px; object-fit: contain; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.streak {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line);
  background: #14110c; color: var(--gold-2); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 600;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold);
  background: #1a1408; color: var(--gold-2); display: grid; place-items: center; font-size: 12px; font-weight: 650; letter-spacing: 0.04em;
}
.kicker, .eyebrow {
  font-family: var(--mono); color: rgba(233, 201, 135, 0.72); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
}
h1, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }
h1 { font-size: 40px; line-height: 1.02; margin: 10px 0 0; letter-spacing: -1.2px; }
h1 em, .gold-em { font-style: italic; font-weight: 500; color: var(--gold-2); }
.sub { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 16px; margin-top: 14px;
}
.card h2 { font-size: 20px; margin: 6px 0; font-family: var(--serif); font-weight: 500; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pill {
  border: 1px solid var(--line); color: var(--steel); border-radius: 999px; padding: 4px 9px; font-size: 11px; letter-spacing: 0.02em;
}
.pill.gold { color: var(--gold-ink); background: var(--gold); border-color: transparent; font-weight: 650; }
.pill.live { color: var(--gold-2); border-color: rgba(201, 165, 92, 0.45); }
.btn {
  appearance: none; border: 0; background: linear-gradient(180deg, #e9c987, #d4af5f); color: var(--gold-ink);
  border-radius: 14px; min-height: 48px; padding: 0 16px; font-weight: 650; width: 100%;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn.slim { min-height: 40px; width: auto; padding: 0 14px; border-radius: 999px; }
.btn:disabled { opacity: 1; background: #3a3120; color: #f4efe6; }
.btn.ghost:disabled { background: transparent; color: #c5cdd8; border-color: var(--line-strong); }
.bar { height: 4px; border-radius: 99px; background: #1c2636; margin: 12px 0; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #8c7340, var(--gold-2)); width: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 8px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 10px 11px; }
.tile .k { color: var(--steel); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.tile .n { font-size: 26px; margin-top: 8px; }
.tile .d { color: var(--good); font-size: 12px; margin-top: 4px; font-family: var(--mono); }
.wizard-entry { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.wizard-entry.is-locked { opacity: 0.72; }
.wizard-entry.is-locked .wizard-hat { filter: grayscale(0.4); }
.wizard-hat { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 18px; color: var(--gold-2); border: 1px solid rgba(233, 201, 135, .45); background: radial-gradient(circle at 50% 28%, rgba(233, 201, 135, .22), rgba(233, 201, 135, .04) 68%); }
.wizard-hat svg { width: 34px; height: 34px; }
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.qa button, .chipbtn {
  background: var(--card-2); border: 1px solid var(--line); border-radius: 20px; min-height: 96px; padding: 12px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink);
  box-shadow: var(--shadow);
}
.qa span, .ic { width: 28px; height: 28px; display: grid; place-items: center; color: var(--gold-2); }
.qa small { font-size: 11px; color: var(--muted); text-align: center; }
.plan { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.plan:first-of-type { border-top: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.dot.off { background: #2a3548; }
.check {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; color: var(--good);
}
.check.on { background: #16261c; border-color: #2f6a45; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(8, 10, 14, 0.96); backdrop-filter: blur(22px) saturate(1.2);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.tabs button { position: relative; background: none; border: 0; color: var(--steel); min-height: 52px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; letter-spacing: 0.04em; }
.nav-badge { position: absolute; top: 2px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 750; line-height: 18px; text-align: center; letter-spacing: 0; }
.hub button { position: relative; }
.hub .nav-badge { top: 6px; right: 8px; }
.tabs button.on::after { content: ""; position: absolute; top: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-2); }
.tabs button.on svg { fill: rgba(233, 201, 135, 0.18); }
.tablock { position: absolute; top: 2px; right: calc(50% - 18px); width: 14px; height: 14px; color: var(--steel); }
.tablock svg { width: 12px; height: 12px; }
.tabs button.on .tablock { color: var(--gold-2); }
.tabs button.on { color: var(--gold-2); }
.tabs svg { width: 22px; height: 22px; }
.soon { font-size: 8px; letter-spacing: 0.08em; color: var(--steel); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; background: #0c121c; border-radius: 14px; padding: 4px; margin-top: 12px; }
.seg button, .chips button {
  border: 0; background: transparent; color: var(--steel); border-radius: 10px; min-height: 44px; padding: 0 12px;
}
.seg button.on { background: #182235; color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding-bottom: 2px; margin-top: 12px; }
.chips button { border: 1px solid var(--line); background: #101826; border-radius: 999px; white-space: nowrap; }
.chips button.on { background: #2a2418; color: var(--gold-2); border-color: rgba(201,165,92,.45); }
.list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.item, a.item, a.item:visited {
  width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  color: inherit; text-decoration: none;
}
.item b, a.item b { display: block; font-weight: 600; color: var(--ink); text-decoration: none; }
.item small, .muted { color: var(--muted); font-size: 13px; }
.item .go { color: var(--gold-2); font-weight: 650; text-decoration: none; }
.item.now { border-color: rgba(201, 165, 92, 0.55); box-shadow: inset 3px 0 0 var(--gold); }
.ringbox { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; }
.ring { width: 92px; height: 92px; }
.search { width: 100%; background: #101826; border: 1px solid var(--line); border-radius: 14px; min-height: 46px; padding: 0 14px; margin-top: 12px; }
.sheet {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center;
}
.sheet[hidden], [hidden] { display: none !important; }
.panel {
  width: min(520px, 100%); max-height: min(92dvh, 900px); overflow: auto; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 28px 28px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
}
.grab { width: 40px; height: 4px; border-radius: 99px; background: #2c384c; margin: 6px auto 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.field span { color: var(--steel); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  background: #101826; border: 1px solid var(--line); border-radius: 12px; min-height: 46px; padding: 10px 12px;
  max-width: 100%; overflow-wrap: anywhere;
}
.err { color: var(--bad); min-height: 1.2em; font-size: 14px; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab) + 8px); transform: translateX(-50%) translateY(12px);
  background: #172033; border: 1px solid var(--line-strong); color: var(--ink); border-radius: 999px; padding: 10px 14px;
  opacity: 0; pointer-events: none; z-index: 50; transition: opacity .25s var(--spring), transform .25s var(--spring);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; margin-top: 16px; }
.pod { background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-align: center; padding: 12px 8px; }
.pod.first { background: #141a28; border-color: rgba(201,165,92,.45); padding-top: 16px; padding-bottom: 16px; }
.pod .who { width: 54px; height: 54px; margin: 6px auto; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-weight: 650; overflow: hidden; }
.pod .who img, .face img, .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who-line { display: flex; align-items: center; gap: 8px; }
.face { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #172033; flex: none; font-size: 11px; font-weight: 650; }
.ap-list { margin-top: 8px; }
.ap-who { display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow: auto; margin-top: 8px; }
.ap-who .item { min-height: 48px; }
.ap-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; position: sticky; bottom: 0; z-index: 1; background: var(--bg-2); padding-top: 10px; }
.ap-actions .btn { min-height: 48px; }
.home-board { margin: 4px 0 18px; }
.home-board h2 { font-size: 32px; }
.welcome { overflow-wrap: anywhere; }
.ap-goal { padding: 20px 18px 16px; }
.ap-goal-amt { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -0.04em; margin: 10px 0 6px; }
.ap-goal-bar { height: 6px; border-radius: 99px; background: #1c2636; margin: 12px 0 8px; overflow: hidden; }
.ap-goal-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8c7340, var(--gold-2)); }
.ap-goal .btn.slim { min-height: 44px; }
.producers { margin-top: 32px; }
.producers h2 {
  font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.05;
  letter-spacing: -0.03em; margin: 0;
}
.producers .btn { margin-top: 16px; }
.producers .btn.ghost { margin-top: 8px; }
.rank-list { list-style: none; margin: 8px 0 0; padding: 0; }
.rank-row {
  display: grid; grid-template-columns: 52px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  min-height: 64px; padding: 8px 0; border-top: 1px solid var(--line);
}
.rank-row:first-child { border-top: 0; }
.rank-mark { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.rank-mark .trophy svg { width: 18px; height: 18px; display: block; }
.trophy.gold { color: #e9c987; }
.trophy.silver { color: #d7dee8; }
.trophy.bronze { color: #c4a574; }
.rank-mark .ord { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
.rank-row.is-1 .ord { color: #e9c987; }
.rank-row.is-2 .ord { color: #d7dee8; }
.rank-row.is-3 .ord { color: #c4a574; }
.rank-face {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: #172033; font-size: 12px; font-weight: 650; border: 1px solid var(--line-strong);
}
.rank-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank-who { min-width: 0; }
.rank-name { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-who small { display: block; color: var(--gold-2); font-size: 12px; }
.rank-amt { font-size: 15px; white-space: nowrap; }
.annuity-line { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.35; letter-spacing: 0; white-space: normal; }
.annuity-only { margin-top: 14px; }
.annuity-only h3 { font-size: 15px; margin: 0 0 4px; font-weight: 600; }
.annuity-only ul { list-style: none; margin: 0; padding: 0; }
.annuity-only li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid var(--line); }
.goal-help { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 6px; }
.goal-help summary { min-height: 44px; display: flex; align-items: center; font-weight: 650; cursor: pointer; }
.goal-help ul { margin: 4px 0 8px; padding-left: 18px; }
.goal-help li { margin: 8px 0; line-height: 1.4; }
.goal-help .btn { margin-top: 8px; }
.recruit-period { margin-top: 12px; }
.recruit-period button { flex: 1 1 7rem; }
.sheet .ap-kind { margin-top: 0; }
.sheet .ap-kind button { flex: 1 1 8rem; }
.rank-row.is-you { background: linear-gradient(90deg, rgba(233, 201, 135, 0.08), transparent 70%); }
.brief-line span:first-child {
  min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.month-switch { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.month-switch .btn { min-width: 48px; min-height: 48px; padding: 0; font-size: 22px; }
.month-pick { flex: 1; min-width: 0; }
.month-switch select, .month-label {
  width: 100%; min-height: 48px; background: #0c121c; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; padding: 0 8px; font: inherit; font-size: 16px;
}
.month-label { display: grid; place-items: center; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.ap-list p { margin: 8px 0; }
.ap-sub { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.ap-sub:first-child { border-top: 0; }
.ap-sub p { margin: 0; }
.ap-sub small { color: var(--gold-2); font-size: 13px; line-height: 1.35; }
.ap-sub .btn.slim { width: 100%; min-height: 48px; color: var(--gold-2); border-color: rgba(201, 165, 92, 0.55); }
.ap-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ap-tools .btn.slim { width: auto; min-height: 44px; }
.ap-tools .field, .ap-tools #apWhoBox, .ap-tools #apSplitBox { flex: 1 1 100%; }
#monthPolicies .item { width: 100%; text-align: left; }
.ap-ask { z-index: 60; align-items: center; padding: 22px 16px; }
.ap-ask .panel { border-radius: 22px; padding: 22px 18px 18px; }
.ap-ask p { font-size: 17px; line-height: 1.45; margin: 4px 0 16px; }
.ap-ask .row { display: flex; gap: 10px; }
.ap-ask .row .btn { flex: 1; min-height: 48px; }
.ap-wait { padding: 10px 0; border-top: 1px solid var(--line); }
.ap-wait:first-child { border-top: 0; }
.pod.first .who { border-color: var(--gold); color: var(--gold-2); }
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
th { text-align: left; color: var(--steel); font-size: 10px; letter-spacing: 0.12em; font-weight: 600; padding: 6px; }
td { padding: 10px 6px; border-top: 1px solid var(--line); }
tr.me td { background: #1a2218; color: var(--gold-2); }
tr.me td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.up { color: var(--good); } .down { color: var(--bad); }
.flip {
  min-height: 180px; border-radius: 22px; border: 1px solid var(--line); background: var(--card-2);
  padding: 22px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 22px; line-height: 1.35;
}
.flip em { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold-2); }
.read h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 8px 0; }
.read p, .read li { color: #d7deea; line-height: 1.55; }
.read article { font-size: 16px; }
.login { width: min(420px, 100%); margin: 8vh auto; padding: 24px 20px; }
.login img.mark { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(212, 175, 95, 0.35)); }
.gate { text-align: center; padding: 28px 8px; }
.frame { width: 100%; height: calc(100dvh - 150px); border: 0; border-radius: 18px; background: #fff; }
.heat { display: flex; gap: 4px; margin-top: 10px; }
.heat i { flex: 1; height: 14px; border-radius: 4px; background: #1a2230; }
.heat i.on { background: #8c7340; }
.heat i.hot { background: var(--gold); }
.note { color: var(--muted); font-size: 13px; line-height: 1.45; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.toggle { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.toggle span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toggle span b { color: var(--ink); font-weight: 600; font-size: 15px; }
.toggle span small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.steps { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #1a1408; color: #e9c987; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 14px; }
.step b { color: var(--ink); display: block; font-size: 16px; }
.step small { color: var(--muted); display: block; margin-top: 2px; line-height: 1.4; font-size: 13px; }
.switch { width: 46px; height: 28px; border-radius: 99px; border: 0; background: #243044; position: relative; flex: none; }
.switch.on { background: #6d5a32; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #e8e4dc; transition: transform .2s var(--spring); }
.switch.on i { transform: translateX(18px); background: var(--gold-2); }
.choices { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.choices button { text-align: left; background: #101826; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.choices button.good { border-color: #2f6a45; }
.choices button.bad { border-color: #7a403c; }
canvas.poster { width: 100%; height: auto; border-radius: 16px; background: #0b1220; }
.offline { background: #1c160e; color: var(--gold-2); text-align: center; font-size: 12px; padding: 6px; letter-spacing: 0.04em; }
.lede { font-family: var(--serif); font-style: italic; color: var(--gold-2); font-size: 28px; line-height: 1.15; margin: 8px 0 0; }
.hero-n { font-size: 72px; line-height: 0.9; letter-spacing: -0.045em; margin-top: 18px; }
.stands { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.stand { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 12px 13px; min-height: 104px; }
.stand.lead { grid-column: 1 / -1; border-color: rgba(233, 201, 135, 0.55); }
.stand.lead b { color: var(--gold-2); }
.blist { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.bclip { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.bclip img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; background: #10161f; }
.bclip b { display: block; }
.bclip .row { margin-top: 8px; }
.stand .k { color: var(--steel); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.stand b { display: block; font-size: 28px; margin-top: 10px; }
.stand small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.cat {
  text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  min-height: 118px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.cat b { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.03em; line-height: 1.05; }
.cat small { color: var(--muted); font-size: 13px; }
.fold { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 8px; }
.fold summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary b { font-weight: 600; }
.pips { display: flex; gap: 5px; }
.pips i { width: 22px; height: 3px; border-radius: 99px; background: #243044; }
.pips i.on { background: var(--gold); }
.item.course { grid-template-columns: 1fr; align-items: start; padding: 16px; }
.course .meta { display: flex; flex-direction: column; gap: 10px; }
.stage { position: fixed; inset: 0; z-index: 30; background: var(--bg); overflow: auto; }
.stage.res-frame {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  height: 100%;
  max-height: 100%;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
@supports (height: 100dvh) {
  html:not(.in-frame) .stage.res-frame { height: 100dvh; max-height: 100dvh; }
}
.res-frame-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px 0 8px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.res-frame-bar .back { min-height: 44px; padding-bottom: 0; }
.res-frame-host {
  margin-left: auto;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.res-site {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 1px;
  border: 0;
  background: #fff;
}
.res-frame-fallback { flex: none; margin: 0; padding: 12px 16px 16px; }
.res-frame-fallback a { font-weight: 650; }
.screen:has(.stage) { min-height: 100dvh; }
.stage .in { width: min(520px, 100%); max-width: 100%; min-width: 0; margin: 0 auto; min-height: 100%; padding: calc(12px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom)); }
.back { appearance: none; background: transparent; border: 0; color: var(--gold-2); min-height: 44px; padding: 0 0 8px; display: inline-flex; align-items: center; gap: 4px; font-weight: 560; }
.back svg { width: 18px; height: 18px; }
.prose p { font-size: 17px; line-height: 1.55; color: #e7edf6; margin: 0 0 14px; }
.prose b { color: #fff; font-weight: 640; }
.prose ul, .prose ol { margin: 0 0 16px; padding: 0; list-style: none; }
.prose li { position: relative; padding: 7px 0 7px 18px; color: #d5dce8; line-height: 1.45; }
.prose li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; border-radius: 1px; background: var(--gold); transform: rotate(45deg); }
.say, .tip { margin-top: 18px; padding: 16px 16px 14px; border-radius: 18px; background: #10192a; border: 1px solid var(--line); }
.say span, .tip span { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 8px; font-weight: 650; }
.say p { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.35; color: var(--ink); }
.tip p { margin: 0; color: var(--muted); line-height: 1.45; }
.lessons { display: flex; gap: 8px; overflow-x: auto; margin: 16px 0 8px; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.lessons button { flex: none; scroll-snap-align: start; max-width: 200px; text-align: left; background: #101826; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; color: var(--muted); }
.lessons button.on { border-color: rgba(201, 165, 92, 0.55); color: var(--ink); }
.lessons button small { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.ladder { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ladder button { width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; }
.ladder button small { display: block; color: var(--muted); margin-top: 4px; }
.ladder .lv { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 13px; }
.ladder button.done .lv { color: var(--gold-2); border-color: var(--gold); }
.ladder button:disabled { opacity: 0.42; }
.navrow { display: flex; gap: 10px; margin-top: 22px; }
.navrow .btn { flex: 1; }
.qtop { height: 3px; border-radius: 99px; background: #1c2636; margin: 16px 0; overflow: hidden; }
.qtop i { display: block; height: 100%; background: var(--gold); }
.choice-k { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 12px; }
.score { font-family: var(--mono); font-size: 64px; letter-spacing: -0.04em; margin: 8px 0; }
.screen.no-enter,
.stage.no-enter { animation: none; opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .screen { animation: rise .38s var(--spring); }
  .stage { animation: slideIn .42s var(--spring); }
  .reader { animation: rise .32s var(--spring); }
  .btn, .item, .qa button, .tabs button, .cat, .ladder button, .choices button, .back {
    transition: transform .16s var(--spring), background .16s linear, border-color .16s linear;
  }
  .btn:active, .item:active, .qa button:active, .cat:active, .ladder button:active, .choices button:active, .tabs button:active { transform: scale(0.97); }
}
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 900px) {
  body { background: radial-gradient(1200px 600px at 70% -10%, #121a2a, var(--bg) 55%); }
  .main { padding-top: 28px; }
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,0.03);
}
.chip.gold { color: var(--gold-ink); background: linear-gradient(180deg, #e9c987, #d4af5f); border-color: transparent; }
.chip.green { color: #d8ffef; background: rgba(63, 182, 139, 0.16); border-color: rgba(63, 182, 139, 0.35); }
.chip.muted { color: var(--muted); }
.chip svg { width: 14px; height: 14px; display: block; }
.skel {
  height: 14px; border-radius: 8px; margin-top: 10px;
  background: linear-gradient(90deg, #141b26 0%, #243044 45%, #141b26 100%);
  background-size: 200% 100%;
}
.skel.lg { height: 88px; border-radius: 20px; }
.brief-line, .checkrow {
  width: 100%; text-align: left; background: transparent; border: 0; color: var(--ink);
  min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding: 8px 0;
}
.brief-line:first-of-type, .checkrow:first-of-type { border-top: 0; }
.checkrow { gap: 12px; justify-content: flex-start; }
.wins { display: flex; gap: 10px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.win-pill {
  flex: none; scroll-snap-align: start; width: 220px; text-align: left; display: flex; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; min-height: 72px; padding: 12px;
  box-shadow: var(--shadow);
}
.win-pill small { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reacts { display: flex; gap: 8px; margin-top: 10px; }
.reacts button { min-height: 44px; min-width: 64px; border-radius: 999px; border: 1px solid var(--line); background: #10161f; color: var(--ink); }
.reacts button.on { border-color: rgba(212, 175, 95, 0.6); color: var(--gold-2); }
.lead {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 12px; box-shadow: var(--shadow);
}
.lead b { display: block; }
.lead-main { min-width: 0; }
.not-fit { margin-top: 8px; min-height: 44px; width: auto; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: #10161f;
  display: grid; place-items: center; color: var(--gold-2);
}
.iconbtn svg { width: 18px; height: 18px; }
.kanban { display: flex; gap: 10px; overflow-x: auto; margin-top: 14px; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.col { flex: none; width: 240px; scroll-snap-align: start; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 20px; padding: 10px; min-height: 280px; }
.col .kicker { margin-bottom: 8px; }
.col .lead { grid-template-columns: 1fr; margin-top: 8px; }
.pod .who.gold { box-shadow: 0 0 0 2px #e9c987; }
.pod .who.silver { box-shadow: 0 0 0 2px #c5cdd8; }
.pod .who.bronze { box-shadow: 0 0 0 2px #a97855; }
.pin {
  position: fixed; z-index: 18; left: 50%; bottom: calc(var(--tab) + 10px); transform: translateX(-50%);
  width: min(440px, calc(100% - 28px)); display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 18px; background: #1a2218; border: 1px solid rgba(212, 175, 95, 0.45);
  box-shadow: var(--shadow);
}
.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.meters div { background: #10161f; border-radius: 14px; padding: 10px; border: 1px solid var(--line); }
.meters b { display: block; font-size: 20px; margin-top: 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i {
  position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; background: var(--gold-2);
  animation: fall 1.1s var(--spring) forwards;
}
.hub-row { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.portal-access { border-color: rgba(233, 201, 135, 0.45); }
#resourcesEntry .btn,
.portal-access .btn { min-height: 48px; }
/* The Resources list is its own scrollport. A fixed-height column keeps the
   last row above the tab bar in iOS Safari, the installed PWA, and a GHL iframe. */
html:has(.res-page),
body:has(.res-page) {
  height: 100%;
  overflow: hidden;
}
.app:has(.res-page) {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}
.main:has(.res-page) {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
  padding-bottom: calc(var(--tab) + 24px);
  scroll-padding-top: calc(12px + env(safe-area-inset-top));
  scroll-padding-bottom: calc(var(--tab) + 24px);
}
html.in-frame:has(.res-page),
html.in-frame:has(.res-page) body,
html.in-frame .app:has(.res-page) {
  height: 100%;
  max-height: 100%;
}
@supports (height: 100dvh) {
  html:not(.in-frame) .app:has(.res-page) {
    height: 100dvh;
    max-height: 100dvh;
  }
}
.res-page { width: 100%; max-width: 100%; min-width: 0; padding-bottom: 12px; }
.res-page h1,
.res-page .lede,
.res-page .cats,
.res-page .list,
.res-page .item,
.res-page .cat,
.res-page .search { max-width: 100%; min-width: 0; }
.res-page .item b,
.res-page .item small,
.res-page .cat b,
.res-page .lede { overflow-wrap: anywhere; }
.remember { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-height: 44px; color: var(--muted); }
.remember input { width: 18px; height: 18px; accent-color: #d4af5f; }
@media (prefers-reduced-motion: no-preference) {
  .skel { animation: shimmer 1.2s linear infinite; }
  .login img.mark { animation: crest 0.8s var(--spring) both; }
  .row-in { animation: rise 0.45s var(--spring) both; }
  .check.on { animation: pop 0.35s var(--spring); }
  .tabs button svg { transition: transform 0.22s var(--spring), fill 0.22s linear; }
  .tabs button.on svg { transform: translateY(-1px); }
  .confetti i { animation: fall 1.1s var(--spring) forwards; }
}
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes crest { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes pop { 40% { transform: scale(1.18); } }
@keyframes fall { to { transform: translateY(100dvh) rotate(180deg); opacity: 0.2; } }
.xbtn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; flex: none;
  border: 1px solid rgba(233, 201, 135, 0.75); background: #1a1408; color: #e9c987;
  font-weight: 700; font-size: 14px; letter-spacing: 0.01em;
}
.xbtn svg { width: 16px; height: 16px; stroke: #e9c987; }
.sheet-head, .panel .between { gap: 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 0; font-size: 26px; }
.kvbox { margin-top: 14px; border-top: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 108px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv span { color: #c5cdd8; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.kv b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.kv a { color: var(--gold-2); }
.history { margin: 8px 0 0; padding: 0; list-style: none; }
.history li { padding: 10px 0; border-top: 1px solid var(--line); }
.history small, .history p { display: block; color: var(--muted); margin: 2px 0 0; }
.ot-hero { margin-top: 8px; padding: 8px 0 12px; }
.ot-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.ot-hero h1 { font-size: 34px; }
.ot-hero h1 em { font-style: italic; color: var(--gold-2); }
.ot-hero p { color: var(--muted); line-height: 1.45; }
.ot-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; padding: 4px; border-radius: 16px; background: #10161f; border: 1px solid rgba(233, 201, 135, 0.28); }
.ot-seg button { min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: #d7deea; font-weight: 700; }
.ot-seg button.on { color: var(--gold-ink); background: linear-gradient(180deg, #e9c987, #d4af5f); }
.ot-stat { margin: 10px 0 0; color: #c5cdd8; font-size: 13px; }
.ot-stat b { color: var(--gold-2); }
.ot-prog { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; color: #d7deea; font-size: 13px; font-weight: 650; }
.ot-prog .bar { flex: 1; min-width: 72px; margin: 0; }
.ot-chip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(233, 201, 135, 0.45); background: #1a1408; color: #e9c987; font-weight: 700; font-size: 13px; }
.ot-chip.on { background: linear-gradient(180deg, #e9c987, #d4af5f); color: #1a1408; border-color: transparent; }
.ot-card {
  position: relative; min-height: 280px; display: flex; flex-direction: column; justify-content: center;
  padding: 22px 18px; border-radius: 24px; text-align: center; color: #f4efe6; cursor: pointer;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(212, 175, 95, 0.22), transparent 55%),
    linear-gradient(160deg, #162033, #0c121c);
  box-shadow: var(--shadow);
  transition: transform .16s var(--spring);
}
.ot-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(130deg, #e9c987, rgba(233, 201, 135, 0.08) 42%, #8c7340);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.ot-card.turn { transform: perspective(900px) rotateY(90deg); }
.ot-card .lbl { font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #e9c987; }
.ot-card .ot-q { margin: 14px 0; font-family: var(--serif); font-size: 30px; line-height: 1.15; color: #f4efe6; }
.ot-card .hint { color: #d5deea; font-size: 14px; line-height: 1.4; }
.ot-card.back { text-align: left; justify-content: flex-start; background: #f7f1e4; color: #1a1408; }
.ot-card.back .lbl { color: #6b5014; }
.ot-card.back .ot-q-mini { margin: 8px 0 12px; font-family: var(--serif); font-size: 18px; color: #3a3120; }
.ot-ans p { margin: 0 0 10px; line-height: 1.5; color: #1a1408; }
.ot-f { margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: #efe4cc; }
.ot-f span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #6b5014; margin-bottom: 4px; }
.ot-f p { margin: 0; color: #1a1408; }
.ot-badge { position: absolute; top: 14px; right: 14px; padding: 4px 8px; border-radius: 999px; background: #1a1408; color: #e9c987; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.ot-card.back .ot-badge { background: #1a1408; color: #e9c987; }
.ot-ctl { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; margin-top: 12px; align-items: center; }
.ot-nav { width: 52px; height: 52px; border-radius: 16px; border: 1px solid rgba(233, 201, 135, 0.45); background: #1a1408; color: #e9c987; font-size: 28px; line-height: 1; }
.ot-know { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ot-pr { margin-top: 8px; }
.ot-chat .who { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #e9c987; }
.ot-chat .bubble { display: inline-block; margin-top: 8px; padding: 16px 18px; border-radius: 18px 18px 18px 6px; background: linear-gradient(160deg, #162033, #0c121c); color: #f4efe6; font-family: var(--serif); font-size: 26px; line-height: 1.25; border: 1px solid rgba(233, 201, 135, 0.35); }
.ot-res { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.ot-score { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: #1a1408; border: 2px solid #e9c987; color: #e9c987; flex: none; }
.ot-score b { font-size: 28px; line-height: 1; }
.ot-score span, .ot-fb span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }
.ot-fb { margin-top: 10px; padding: 12px; border-radius: 16px; }
.ot-fb ul { margin: 6px 0 0; padding-left: 18px; }
.ot-fb.good { background: #14261c; color: #d8ffef; }
.ot-fb.good span { color: #8ee0c0; }
.ot-fb.imp { background: #2a2418; color: #f4efe6; }
.ot-fb.imp span { color: #e9c987; }
.ot-fb.say { background: #141b26; }
.ot-fb.say span { color: #e9c987; }
.ot-fb.say p { font-family: var(--serif); font-size: 18px; }
.ot-track { margin-top: 12px; border-radius: 16px; border: 1px solid var(--line); background: #f7f1e4; color: #1a1408; padding: 4px 12px 12px; }
.ot-track summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 750; color: #1a1408; }
.ot-done { padding: 20px 0; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.vcard {
  text-align: left; min-height: 148px; padding: 14px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #141b26, #0e131b); color: var(--ink); display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow);
}
.vcard b { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vcard small { color: #c5cdd8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bfold { display: grid; gap: 10px; margin-top: 14px; }
.bfold .vcard { min-height: 0; text-decoration: none; color: var(--ink); }
.recipe { margin: 8px 0 0; padding-left: 18px; color: var(--ink); }
.recipe li { margin: 6px 0; }
.biz-face { position: relative; margin-top: 8px; padding: 0 0 16px; border-radius: 28px; overflow: hidden; text-align: left; background-color: var(--bg, #07090d); background-size: cover; background-position: center; border: 1px solid color-mix(in srgb, var(--accent, #e9c987) 45%, transparent); color: var(--ink, #f4efe6); }
.biz-face .wash { position: absolute; inset: 0; pointer-events: none; opacity: 0.45; }
.biz-face { container-type: inline-size; }
.biz-face .hero-wrap { position: relative; height: min(125cqw, 520px); overflow: hidden; background: #12160f; z-index: 1; touch-action: pan-y; }
.biz-face .pstage { position: relative; z-index: 1; min-height: 196px; padding: 22px 16px 8px; }
.biz-face .phead { position: absolute; left: 0; right: 0; top: 0; height: 118px; overflow: hidden; }
.biz-face .ptex { position: absolute; inset: 0; }
.biz-face .hd-lines { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 36%, transparent), transparent 82%), repeating-linear-gradient(180deg, transparent 0 11px, color-mix(in srgb, var(--accent) 62%, transparent) 11px 12px); }
.biz-face .hd-arc { background: radial-gradient(130% 100% at 50% -20%, color-mix(in srgb, var(--accent) 78%, transparent), transparent 64%); }
.biz-face .hd-bars { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 32%, transparent) 0 10px, transparent 10px 22px), linear-gradient(180deg, color-mix(in srgb, var(--accent) 24%, transparent), transparent); }
.biz-face .hd-mesh { background: linear-gradient(118deg, transparent 0 46%, color-mix(in srgb, var(--accent) 55%, transparent) 46% 47%, transparent 47%), linear-gradient(62deg, transparent 0 42%, color-mix(in srgb, var(--accent) 40%, transparent) 42% 43%, transparent 43%), radial-gradient(90% 90% at 100% 0, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%); }
.biz-face .tex-linen, .tex-linen { background-image: repeating-linear-gradient(0deg, color-mix(in srgb, var(--ink) 12%, transparent) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 8%, transparent) 0 1px, transparent 1px 5px); }
.biz-face .tex-grain, .tex-grain { background-image: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--ink) 18%, transparent) 0 1px, transparent 1.5px), radial-gradient(circle at 70% 40%, color-mix(in srgb, var(--accent) 30%, transparent) 0 1px, transparent 1.6px); background-size: 7px 9px, 11px 8px; }
.biz-face .tex-dots, .tex-dots { background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 75%, transparent) 1.15px, transparent 1.4px); background-size: 12px 12px; }
.biz-face .tex-diagonal, .tex-diagonal { background-image: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--accent) 40%, transparent) 8px 9px); }
.biz-face .tex-waves, .tex-waves { background-image: radial-gradient(ellipse at 0 100%, transparent 0 8px, color-mix(in srgb, var(--accent) 45%, transparent) 9px 10px, transparent 11px); background-size: 28px 16px; }
.biz-face .pphoto-wrap { position: relative; z-index: 1; width: min(70vw, 240px); height: min(70vw, 240px); border-radius: 18px; overflow: hidden; border: 2px solid var(--accent, #e9c987); background: #12160f; box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.biz-face .pphoto { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 20%); transform: scale(var(--fz, 1)); transform-origin: var(--fx, 50%) var(--fy, 20%); display: block; }
.biz-face .pphoto.crest { object-fit: contain; object-position: center; transform: none; padding: 14px; }
.biz-face .pstage .hero-id { position: relative; left: auto; right: auto; bottom: auto; margin-top: 12px; }
.biz-face .hero, .biz-face .face { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 20%); transform: scale(var(--fz, 1)); transform-origin: var(--fx, 50%) var(--fy, 20%); display: block; border: 0; border-radius: 0; }
.biz-face .hero.crest, .biz-face .face.crest { object-fit: contain; object-position: center; transform: none; padding: 48px; background: #12160f; }
.biz-face .veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.2), transparent 36%, var(--bg, #07090d) 96%); }
.biz-face .hero-id { position: absolute; left: 16px; right: 16px; bottom: 12px; pointer-events: none; }
.biz-face.adjusting .photo-frame { touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.biz-face.adjusting .drag-hint { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 3; margin: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(0,0,0,.62); color: #f7f4ee; font-family: Inter, system-ui, sans-serif; font-size: 16px; font-weight: 750; letter-spacing: 0; text-transform: none; }
.photo-adjust { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; padding: 12px 16px 0; }
.zoom-field { display: grid; gap: 4px; min-width: 0; }
.zoom-field span { font-size: 13px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent, #e9c987); }
.zoom-field input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 48px; margin: 0; background: transparent; }
.zoom-field input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: color-mix(in srgb, var(--ink, #f4efe6) 22%, transparent); border-radius: 99px; }
.zoom-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 32px; height: 32px; margin-top: -12px; border-radius: 50%; background: #e9c987; border: 2px solid #1a1408; }
.zoom-field input[type="range"]::-moz-range-track { height: 8px; background: color-mix(in srgb, var(--ink, #f4efe6) 22%, transparent); border-radius: 99px; }
.zoom-field input[type="range"]::-moz-range-thumb { width: 32px; height: 32px; border-radius: 50%; background: #e9c987; border: 2px solid #1a1408; }
.photo-adjust .btn { min-height: 48px; min-width: 96px; }
.biz-face .nm { display: block; font-family: var(--serif); font-size: 32px; font-weight: 560; margin: 0; line-height: 1.05; color: var(--ink, #f4efe6); }
.biz-face .ttl { display: block; margin-top: 4px; color: var(--accent, #e9c987); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.biz-face .biz-body { position: relative; z-index: 1; padding: 4px 16px 0; }
.biz-face .co, .biz-face .sub, .biz-face .fine { display: block; color: var(--muted, #b7c0cc); font-size: 13px; }
.biz-face .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.biz-face .pill { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on, #1a1408); background: var(--accent, #e9c987); border-radius: 999px; padding: 4px 8px; }
.biz-face .cline { display: block; margin-top: 8px; font-size: 16px; line-height: 1.35; color: var(--ink, #f4efe6); }
.biz-face p { color: var(--ink, #f4efe6); font-size: 14px; line-height: 1.4; }
.biz-face .save { display: block; margin-top: 12px; text-align: center; background: var(--ink, #f4efe6); color: var(--bg, #07090d); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 12px; padding: 12px; font-size: 13px; }
.stack { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.crop-frame { width: 240px; height: 300px; display: block; margin: 12px auto; border-radius: 18px; border: 2px solid #e9c987; touch-action: none; cursor: grab; background: #12160f; }
.crop-frame.square { width: 240px; height: 240px; border-radius: 22px; }
.biz-btns { display: grid; gap: 8px; margin-top: 12px; }
.biz-btns .b { display: block; text-decoration: none; background: color-mix(in srgb, var(--ink, #f4efe6) 6%, transparent); color: var(--ink, #f4efe6); border: 1px solid color-mix(in srgb, var(--accent, #e9c987) 45%, transparent); font-weight: 700; border-radius: 14px; padding: 12px; }
.biz-btns .b.funnel { background: var(--accent, #e9c987); color: var(--on, #1a1408); border-color: transparent; }
.biz-btns .b.soon { opacity: 0.9; }
.biz-btns .b small, .biz-btns .b b { display: block; }
.biz-btns .b small { margin-top: 2px; font-size: 11px; font-weight: 600; opacity: 0.75; }
.share-list { display: grid; gap: 8px; margin-top: 8px; }
.share-list .btn { text-align: left; text-decoration: none; min-height: 48px; display: flex; align-items: center; }
input[type="color"] { width: 100%; height: 44px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: transparent; }
.biz-editor { max-width: 100%; padding-bottom: 220px; }
.biz-editor h1 { font-size: clamp(32px, 9vw, 40px); overflow-wrap: anywhere; }
.biz-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 14px 0 4px; position: sticky; top: env(safe-area-inset-top); z-index: 5; background: var(--bg); padding: 8px 0; }
@media (max-width: 430px) {
  .biz-face .nm { font-size: clamp(28px, 8vw, 32px); }
}
.biz-steps button { min-height: 44px; padding: 0 2px; border-radius: 12px; border: 1px solid var(--line); background: #101826; color: var(--steel); font-size: 12px; font-weight: 650; }
.biz-steps button.on { background: #2a2418; color: var(--gold-2); border-color: rgba(201, 165, 92, 0.45); }
.biz-editor .chips button, .biz-editor .chip, .biz-editor .btn.slim, .biz-editor .photo-pick { min-height: 44px; }
.biz-editor .row > .field { flex: 1 1 140px; min-width: 0; }
.biz-editor .field input, .biz-editor .field textarea { font-size: 16px; }
.biz-bar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 25; width: min(480px, 100%); display: grid; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(6, 8, 12, 0.94); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
.biz-bar > .btn { min-height: 52px; font-size: 17px; }
.biz-bar .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.biz-bar .row.one { grid-template-columns: 1fr; }
.biz-bar .row .btn { width: 100%; min-height: 48px; }
.biz-switch { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 4px; }
.biz-switch input { width: 22px; height: 22px; margin: 0; accent-color: #d4af5f; flex: none; }
.biz-switch span { font-size: 15px; font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--ink); }
.biz-face .biz-btns .b { min-height: 48px; display: flex; flex-direction: column; justify-content: center; }
.stage .in:has(.biz-editor) { padding-left: 16px; padding-right: 16px; }
.biz-qr { width: 120px; height: 120px; margin: 12px auto 0; display: block; border-radius: 12px; background: #f4efe6; }
.biz-qr.big { width: min(78vw, 280px); height: auto; }
.vprev { margin-top: 8px; padding: 16px; border-radius: 18px; background: #10161f; border: 1px solid rgba(233, 201, 135, 0.28); }
.vprev .serif { font-size: 26px; line-height: 1.2; margin: 0 0 8px; color: #f4efe6; }
.share-hero { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; margin-top: 8px; }
.photo-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--gold-2); font-size: 12px; font-weight: 700; text-align: center; }
.photo-pick img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid #e9c987; background: #1a1408; }
.photo-pick img.crest { object-fit: contain; padding: 16px; }
.linkcard h2 { font-size: 22px; }
.url { font-family: var(--mono); font-size: 12px; color: #e9c987; overflow-wrap: anywhere; }
.tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.tpl { text-align: left; min-height: 72px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: #10161f; color: var(--ink); }
.tpl small { display: block; color: #c5cdd8; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.tpl.on { border-color: rgba(233, 201, 135, 0.7); background: #1a1408; }
.confirm { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; color: #f4efe6; line-height: 1.4; }
.confirm input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: #d4af5f; }
.sendbox { margin-top: 14px; padding: 14px; border-radius: 18px; border: 1px solid rgba(242, 198, 107, 0.35); background: #14110c; }
.send-actions { display: flex; flex-direction: column; gap: 8px; }
.send-actions .btn { width: 100%; }
.sendbox .row { flex-wrap: wrap; }
.sendbox .row .btn { flex: 1; min-width: 96px; }
.sentlog { margin: 8px 0 0; padding-left: 18px; color: #d7c7a2; }
.sentlog li { margin: 4px 0; }
.tlist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.tcard {
  text-align: left; padding: 14px; border-radius: 18px; border: 1px solid var(--line);
  background: #10161f; color: var(--ink); display: flex; flex-direction: column; gap: 6px;
}
.tcard b { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.tcard small { color: #c5cdd8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard.on { border-color: rgba(233, 201, 135, 0.7); background: #1a1408; }
.row .btn { width: auto; }
.recruit-screen { min-width: 0; }
.recruit-screen h1, .recruit-screen h2, .recruit-screen .note, .recruit-screen .url { overflow-wrap: break-word; line-height: 1.35; }
@media (max-width: 420px) {
  .recruit-screen .share-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
.recruit-screen .url { margin: 8px 0 0; }
.recruit-screen .hub button {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 8px 10px; line-height: 1.2; min-height: 48px;
}
.recruit-screen a.btn, .recruit-screen button.btn, .sheet .ap-actions .btn {
  display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
  box-sizing: border-box; width: auto; min-height: 44px; height: auto; padding: 10px 16px; line-height: 1.25; white-space: normal;
}
.recruit-screen .tap-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 8px; margin-top: 12px;
}
.recruit-screen .tap-row > .btn { width: 100%; }
.recruit-screen .plats button, .recruit-screen .seg button {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 8px 14px; line-height: 1.2;
}
.recruit-screen .lead-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.recruit-screen .lead-tools .seg { flex: 0 0 auto; width: auto; margin: 0; gap: 0; padding: 3px; }
.recruit-screen .lead-tools .seg button {
  flex: 0 0 auto; min-height: 44px; padding: 6px 8px; white-space: nowrap; line-height: 1.2;
}
.recruit-screen .lead .not-fit { min-height: 44px; padding: 8px 14px; }
.show-row { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 10px; }
.show-row input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: #d4af5f; }
.show-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.3; }
.show-row b { font-size: 15px; font-weight: 650; }
.show-row small { color: var(--muted); font-size: 13px; font-weight: 500; }

.tabs {
  background: linear-gradient(180deg, rgba(26, 20, 8, 0.2), rgba(6, 8, 12, 0.94));
  border-top: 1px solid rgba(242, 198, 107, 0.35);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}
.tabs button { gap: 2px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.tabs button .glyph {
  width: 42px; height: 28px; display: grid; place-items: center; border-radius: 999px;
}
.tabs button.on .glyph {
  background: linear-gradient(180deg, rgba(242, 198, 107, 0.34), rgba(227, 167, 47, 0.08));
  box-shadow: inset 0 0 0 1px rgba(242, 198, 107, 0.55);
}
.tabs button.on::after { display: none; }
.qa { grid-template-columns: 1fr 1fr; }
.qa button {
  min-height: 88px; border-radius: 18px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(242, 198, 107, 0.2), transparent 55%),
    linear-gradient(165deg, #1a160f, #0e131b);
  border: 1px solid rgba(242, 198, 107, 0.32);
}
.qa small { color: #f4efe6; font-size: 13px; font-weight: 650; letter-spacing: 0.01em; }
.hub { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.hub button {
  min-height: 48px; border-radius: 16px; border: 1px solid rgba(242, 198, 107, 0.28);
  background: #10161f; color: #d7c7a2; font-weight: 750; letter-spacing: 0.01em;
}
.hub button.on {
  color: #1a1408; border-color: transparent;
  background: linear-gradient(180deg, #f2c66b, #e3a72f);
}
.plats { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; margin-top: 8px; }
.plats button {
  border: 1px solid rgba(242, 198, 107, 0.35); background: #14110c; color: #f4efe6;
  border-radius: 999px; min-height: 40px; padding: 0 14px; white-space: nowrap; font-weight: 700;
}
.plats button.on { background: linear-gradient(180deg, #f2c66b, #c9922e); color: #1a1408; border-color: transparent; }
.linkrow { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.linkcard { padding: 12px 14px; }
.linkcard .note { margin: 4px 0 8px; }
.film { display: flex; gap: 10px; overflow-x: auto; max-width: 100%; padding: 12px 2px 6px; scroll-snap-type: x mandatory; }
.th {
  flex: none; width: 132px; scroll-snap-align: start; text-align: left; color: #f4efe6;
  background: transparent; border: 0; padding: 0;
}
.th canvas {
  width: 132px; height: 168px; border-radius: 16px; display: block;
  border: 1px solid rgba(242, 198, 107, 0.28); background: #0b1120;
}
.th b { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; line-height: 1.25; }
.th.on canvas { border-color: #f2c66b; box-shadow: 0 0 0 2px rgba(242, 198, 107, 0.45); }
.poster { width: 100%; height: auto; border-radius: 22px; margin-top: 8px; border: 1px solid rgba(242, 198, 107, 0.35); background: #0b1120; }
.lgallery { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.lcard {
  position: relative; overflow: hidden; text-align: left; color: #f4efe6;
  min-height: 118px; border-radius: 22px; padding: 16px; display: grid;
  grid-template-columns: 64px 1fr; gap: 12px; align-items: center;
  border: 1px solid rgba(242, 198, 107, 0.38);
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(242, 198, 107, 0.28), transparent 52%),
    linear-gradient(155deg, #1c160d 0%, #10141c 58%, #070b12 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  animation: rise 0.55s ease both;
}
.lcard.teal {
  border-color: rgba(45, 212, 191, 0.45);
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(45, 212, 191, 0.28), transparent 50%),
    linear-gradient(155deg, #06221f, #10141c 60%, #070b12);
}
.lcard.cream {
  background:
    radial-gradient(90% 80% at 0% 100%, rgba(244, 239, 230, 0.16), transparent 46%),
    linear-gradient(155deg, #2a2114, #14110c 55%, #0c1018);
}
.lcard.film {
  background:
    radial-gradient(80% 80% at 100% 100%, rgba(45, 212, 191, 0.2), transparent 46%),
    radial-gradient(80% 70% at 0% 0%, rgba(242, 198, 107, 0.24), transparent 42%),
    linear-gradient(160deg, #14182a, #0c1018);
}
.lcard.lic { border-color: rgba(63, 182, 139, 0.5); }
.lcard small { display: block; letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; color: #e6cb8e; font-weight: 750; }
.lcard b { display: block; font-family: Fraunces, Georgia, serif; font-size: 26px; font-weight: 560; line-height: 1.05; margin: 4px 0; }
.lcard em { display: block; font-style: normal; color: #d7deea; font-size: 14px; line-height: 1.35; }
.lmark { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(242, 198, 107, 0.12); border: 1px solid rgba(242, 198, 107, 0.35); color: #f2c66b; }
.lmark img { width: 46px; height: 46px; object-fit: contain; }
.lglow { position: absolute; right: -30px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 198, 107, 0.28), transparent 68%); pointer-events: none; }
.saycard .serif { font-size: 26px; line-height: 1.25; margin: 8px 0 14px; }
.prompter { min-height: calc(100dvh - 28px); display: flex; flex-direction: column; }
.prompter .intro-tabs { margin: 10px 0 4px; }
.intro-tabs button { flex: 1; }
.prompter-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel .between h2 { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.15; }
.prompter-step { margin: 0; color: #e6cb8e; font-weight: 750; }
.prompter-note { margin: 10px 0 0; color: #d7deea; font-size: 14px; }
.prompter-step { overflow-wrap: anywhere; }
.prompter-line, .sayline { font-family: Fraunces, Georgia, serif; font-weight: 560; font-size: 22px; line-height: 1.35; margin: 0; color: #f4efe6; overflow-wrap: anywhere; }
.script-lines { display: grid; gap: 14px; margin-top: 14px; }
.line-mask { width: 100%; text-align: left; min-height: 52px; border-radius: 14px; border: 1px dashed rgba(233, 201, 135, 0.45); background: #14110c; color: #e9c987; padding: 12px 14px; }
.obj-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.obj-kicker { color: #ffe08a; }
.obj-chip { white-space: normal; text-align: left; height: auto; min-height: 44px; max-width: 100%; border-radius: 14px; padding: 8px 12px; line-height: 1.3; color: #1a1206; background: #ffd24d; border-color: #ffe08a; font-weight: 750; font-size: 15px; }
.obj-mark { color: #1a1206; background: #ffd24d; border-radius: 6px; padding: 0 4px; font-weight: 700; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.obj-title { color: #ffe08a; font-size: 28px; }
.jump-list { display: grid; gap: 8px; }
.jump-row { width: 100%; text-align: left; background: #10161f; color: #f4efe6; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 12px 14px; }
.jump-row b { display: block; font-family: Fraunces, Georgia, serif; font-weight: 560; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.jump-row small { color: #c5cdd8; }
.jump-row.on { border-color: rgba(233, 201, 135, 0.7); background: #1a1408; }
.obj-row { background: #1a1408; border-color: rgba(255, 210, 77, 0.85); }
.obj-row b { color: #ffe08a; }
.prompter-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.prompter-tools .btn { width: auto; }
.saycard .serif { overflow-wrap: anywhere; }
.prompter-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: sticky; bottom: 0; margin-top: auto; padding: 16px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, #06080c 28%); }
.live h1 { font-size: 30px; line-height: 1.05; margin: 2px 0 0; }
.mode-tabs { margin-top: 8px; }
.mode-tabs button { flex: 1; font-size: 16px; font-weight: 750; }
.live .intro-tabs { margin-top: 8px; }
.live-bar { position: sticky; top: env(safe-area-inset-top); z-index: 6; background: #06080c; padding: 6px 0 8px; }
.live-find { position: relative; margin-top: 0; }
.live-find span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.live-find input { min-height: 48px; font-size: 17px; }
.live-jumps { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; -webkit-overflow-scrolling: touch; }
.live-jumps button { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: #10161f; color: #f4efe6; font-size: 15px; font-weight: 700; }
.live-acts { display: flex; gap: 8px; margin-top: 8px; }
.live-acts .btn { flex: 1; min-height: 44px; }
.live-list { display: grid; gap: 10px; margin-top: 4px; }
.live-sec { border-radius: 16px; background: #10161f; border: 1px solid rgba(255,255,255,.08); scroll-margin-top: 188px; }
.live-sec > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 16px; cursor: pointer; color: #f4efe6; font-family: Fraunces, Georgia, serif; font-size: 20px; font-weight: 560; line-height: 1.25; background: transparent; border-radius: 16px; }
.live-sec > summary::-webkit-details-marker { display: none; }
.live-sec > summary span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.live-sec > summary::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
.live-sec[open] > summary { border-radius: 16px 16px 0 0; }
.live-sec[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.live-sec.gold { background: #ffd24d; border-color: #ffe08a; }
.live-sec.gold > summary { background: #ffd24d; color: #1a1206; }
.live-body { padding: 0 14px 16px; }
.live-sec.gold > .live-body { background: #12100c; border-radius: 0 0 15px 15px; margin: 0; padding: 12px 12px 14px; }
.live-sec .live-sec { margin-top: 10px; }
.live .sayline { font-size: 23px; line-height: 1.4; color: #fff; }
.live .script-sub { margin: 18px 0 0; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #e6cb8e; font-weight: 750; }
.live .prompter-note { font-size: 17px; line-height: 1.4; }
.live-sec.live-miss { display: none; }
@media (prefers-reduced-motion: reduce) {
  .lcard { animation: none; }
}
.leaders-page { padding-bottom: 8px; }
.lb-hero { display: flex; align-items: center; gap: 12px; margin-top: 0; }
.lb-crest { width: 44px; height: 44px; object-fit: contain; }
.lb-hero h1 { margin: 0; font-size: 30px; line-height: 1; }
.lb-goal { margin: 8px 0 12px; padding: 12px 14px 12px; border-radius: 20px; background: radial-gradient(120% 80% at 0% 0%, rgba(233, 201, 135, 0.16), transparent 55%), #100e0a; border: 1px solid rgba(233, 201, 135, 0.35); }
.lb-goal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lb-goal-of { color: var(--muted); font-size: 13px; }
.lb-hero-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lb-hero-amt { display: block; margin-top: 2px; font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 0.95; letter-spacing: -0.04em; color: var(--gold-2); }
.lb-policies, .lb-goal-line { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.lb-goal-bar, .lb-bar { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.lb-goal-bar { margin: 8px 0 0; height: 8px; }
.lb-goal-bar i, .lb-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #8c7340, #e9c987); }
.lb-podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 8px; align-items: end; margin-top: 8px; }
.lb-pod { background: #10161f; border: 1px solid var(--line); border-radius: 20px; text-align: center; padding: 12px 8px 14px; min-width: 0; }
.lb-pod.first { padding-top: 16px; padding-bottom: 18px; background: radial-gradient(80% 60% at 50% 0%, rgba(233, 201, 135, 0.2), transparent 70%), #14110c; border-color: rgba(233, 201, 135, 0.55); }
.lb-pod.silver { border-color: rgba(197, 205, 216, 0.45); }
.lb-pod.bronze { border-color: rgba(169, 120, 85, 0.55); }
.lb-pod b { display: block; margin-top: 8px; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.lb-face { width: 64px; height: 64px; margin: 8px auto 0; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-weight: 700; background: #1a1408; border: 2px solid rgba(233, 201, 135, 0.35); }
.lb-pod.gold .lb-face { border-color: #e9c987; box-shadow: 0 0 0 4px rgba(233, 201, 135, 0.15); }
.lb-pod.silver .lb-face { border-color: #c5cdd8; }
.lb-pod.bronze .lb-face { border-color: #a97855; }
.lb-face.sm { width: 40px; height: 40px; margin: 0; font-size: 12px; }
.lb-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-place { display: flex; justify-content: center; align-items: center; gap: 4px; color: var(--gold-2); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.lb-crown { width: 16px; height: 16px; }
.lb-amt { display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }
.lb-tier { display: inline-flex; margin-top: 6px; min-height: 20px; padding: 0 7px; border-radius: 999px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.lb-tier.mega { color: #1a1408; background: linear-gradient(180deg, #ffe7a3, #d4af5f); }
.lb-tier.huge { color: #e9c987; border: 1px solid rgba(233, 201, 135, 0.6); }
.lb-tier.big { color: #c5cdd8; border: 1px solid rgba(197, 205, 216, 0.4); }
.lb-tier.win { color: var(--muted); border: 1px solid var(--line); }
.lb-move { margin-left: 4px; font-size: 11px; }
.lb-move.up { color: #8dcea8; }
.lb-move.down { color: #e07a7a; }
.lb-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lb-row { display: grid; grid-template-columns: 42px 40px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); }
.lb-row.is-you { border-color: rgba(233, 201, 135, 0.45); }
.lb-ord { color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-who { min-width: 0; }
.lb-who b { display: inline; margin-right: 6px; }
.lb-who .lb-bar { margin-top: 6px; }
.lb-row .lb-amt { margin: 0; text-align: right; }
.lb-cta { margin-top: 18px; }
.lb-tools { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 4px; opacity: 0.78; }
.lb-tool-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lb-tools .month-switch, .lb-tools .recruit-period, .lb-tools .chips { margin: 0; }
.lb-tools .recruit-period { width: 100%; }
.lb-tools .recruit-period button { flex: 1 1 0; }
.lb-tools .month-switch .btn, .lb-tools .chips button, .lb-tools .seg button, .lb-tools select, .lb-tools .month-label {
  min-width: 0; min-height: 28px; height: 28px; padding: 0 8px; font-size: 12px; font-weight: 550;
  color: var(--muted); background: transparent; border-color: transparent; box-shadow: none;
}
.lb-tools .chips button.on, .lb-tools .seg button.on { color: var(--gold-2); background: transparent; }
.lb-tools .month-pick { flex: 0 1 auto; }
@media (prefers-reduced-motion: no-preference) {
  .lb-pod { animation: lbRise .55s var(--spring) both; }
  .lb-pod.first { animation-delay: .08s; }
  .lb-goal-bar i, .lb-bar i { transition: width .7s var(--spring); }
}
@keyframes lbRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .main:has(.leaders-page) { width: min(980px, calc(100% - 48px)); }
  .lb-podium { max-width: 520px; }
}
@media (max-width: 359px) {
  .lb-hero-amt { font-size: 34px; }
  .lb-pod b { font-size: 13px; }
  .lb-face { width: 52px; height: 52px; }
}
