/* Snap Theory — styles (base) */
:root {
  --bg: #0b0d10;
  --panel: #13161b;
  --panel-2: #1a1e25;
  --line: #262c35;
  --text: #edf0f4;
  --muted: #8a94a3;
  --accent: #c6ff3a;
  --accent-ink: #11140a;
  --pos: #4be08a;
  --neg: #ff6262;
  --warn: #ffc24b;
  --radius: 14px;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body[data-loading] main { opacity: 0.35; pointer-events: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
h2, h3 { font-family: var(--display); letter-spacing: 0.02em; text-transform: uppercase; font-weight: 700; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.center { text-align: center; }
.pad { padding: 2rem 1rem; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.accent { color: var(--accent); }
[hidden] { display: none !important; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 1px solid transparent; border-radius: 10px;
  padding: 0.7rem 1.15rem; font: 600 0.95rem var(--body);
  cursor: pointer; text-decoration: none !important; transition: transform 0.08s, background 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #d6ff6a; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.85rem; cursor: pointer; padding: 0.25rem; }
.link-btn:hover { color: var(--text); }

label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
label.inline { flex-direction: row; align-items: center; gap: 0.6rem; }
label.check { flex-direction: row; align-items: flex-start; gap: 0.55rem; font-weight: 500; color: var(--text); font-size: 0.85rem; }
input, select, textarea {
  width: 100%; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.7rem 0.8rem; font: 500 16px var(--body); /* 16px avoids iOS zoom */
}
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; flex: none; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
textarea { resize: vertical; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.stack { display: flex; flex-direction: column; gap: 0.9rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
.form-msg { min-height: 1.2em; margin: 0; font-size: 0.88rem; }
.form-msg.err { color: var(--neg); }
.form-msg.ok { color: var(--pos); }
.form-msg.warn { color: var(--warn); }
.fine { font-size: 0.75rem; color: var(--muted); margin: 0; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2rem);
  background: rgba(11, 13, 16, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 0.55rem; font: 800 1.35rem var(--display); letter-spacing: 0.03em; color: var(--text); text-transform: uppercase; text-decoration: none !important; }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 0.95rem; }
.nav { display: flex; gap: 0.3rem; margin-right: auto; margin-left: 1rem; }
.nav a { color: var(--muted); padding: 0.45rem 0.8rem; border-radius: 8px; font-weight: 600; text-decoration: none; }
.nav a.active { color: var(--text); background: var(--panel-2); }
.nav a.nav-add { color: var(--accent); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; }

/* dropdown menus */
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 0.4rem; box-shadow: 0 12px 30px rgba(0,0,0,0.45); z-index: 30; }
.menu-up .menu-pop { top: auto; bottom: calc(100% + 6px); }
.menu-pop p { margin: 0.3rem 0.6rem 0.5rem; word-break: break-all; }
.menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: 500 0.92rem var(--body); padding: 0.55rem 0.7rem; border-radius: 8px; cursor: pointer; }
.menu-item:hover { background: var(--line); }
.menu-item.danger { color: var(--neg); }

/* ---------- tabs / chips / segmented ---------- */
.tabs { display: flex; background: var(--panel-2); border-radius: 12px; padding: 4px; gap: 4px; }
.tab { flex: 1; background: none; border: 0; color: var(--muted); font: 600 0.92rem var(--body); padding: 0.6rem; border-radius: 9px; cursor: pointer; }
.tab.active { background: var(--panel); color: var(--text); box-shadow: 0 1px 0 var(--line) inset, 0 2px 8px rgba(0,0,0,.3); }
.tabs-lg { margin-bottom: 1rem; }
.chips { display: flex; gap: 0.45rem; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 0.45rem 0.9rem; font: 600 0.85rem var(--body); cursor: pointer; }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.seg { display: inline-flex; background: var(--panel-2); border-radius: 10px; padding: 3px; }
.seg button { background: none; border: 0; color: var(--muted); font: 600 0.82rem var(--body); padding: 0.4rem 0.75rem; border-radius: 8px; cursor: pointer; }
.seg button.active { background: var(--panel); color: var(--text); }

/* ---------- app layout ---------- */
.layout { width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.2rem clamp(0.8rem, 3vw, 2rem) 2rem; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; flex: 1; }
.layout > main { min-width: 0; }
.sidebar { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 1rem; }
.sidebar h3 { margin-bottom: 0.7rem; }
.narrow { max-width: 440px; margin: 1.2rem auto 0; }
.banner { padding: 0.7rem 1rem; text-align: center; font-weight: 600; font-size: 0.9rem; }
.banner-warn { background: #3a2c0b; color: var(--warn); }

/* stats */
.stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.stat span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.stat b { font-size: 1.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { color: var(--muted); font-size: 0.75rem; }
.stat-hero { background: linear-gradient(140deg, #1b2210, var(--panel) 65%); border-color: #34411a; }
.stat-hero b { font-size: 2rem; }

.list-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin: 1.4rem 0 0.8rem; flex-wrap: wrap; }
.filters { display: flex; gap: 0.5rem; align-items: center; }
.filters select { width: auto; padding: 0.45rem 2rem 0.45rem 0.7rem; font-size: 0.85rem; }

/* ---------- ads ---------- */
.ad-slot { margin: 1rem 0; overflow: hidden; }
.ad-wide { min-height: 90px; }
.ad-tall { min-height: 250px; margin: 0; }
.ad-placeholder { display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font: 600 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- toast / footer ---------- */
.toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 140%); background: var(--text); color: var(--bg); padding: 0.7rem 1.1rem; border-radius: 12px; font-weight: 600; z-index: 50; transition: transform 0.25s; box-shadow: 0 8px 30px rgba(0,0,0,.5); max-width: calc(100% - 2rem); }
.toast.show { transform: translate(-50%, 0); }
.toast-err { background: var(--neg); color: #fff; }
.footer { border-top: 1px solid var(--line); padding: 1.2rem clamp(1rem, 4vw, 2rem); color: var(--muted); font-size: 0.8rem; text-align: center; }
.footer p { margin: 0.25rem 0; }

/* legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 4rem; flex: 1; }
.doc h1 { font: 800 2.6rem var(--display); text-transform: uppercase; margin-bottom: 1rem; }
.doc h2 { margin: 1.8rem 0 0.5rem; font-size: 1.2rem; }
.doc p, .doc li { color: #c3cad4; }

/* ================= Snap Theory ================= */
.intro { max-width: 1320px; width: 100%; margin: 0 auto; padding: 1.6rem clamp(0.8rem, 3vw, 2rem) 0.4rem; }
.intro h1 { font: 800 clamp(1.9rem, 4.6vw, 3rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.intro p { color: #b9c1cc; margin: 0.5rem 0 0; max-width: 46rem; }

.workspace { width: 100%; max-width: 1320px; margin: 0 auto; padding: 1rem clamp(0.8rem, 3vw, 2rem) 2rem; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 1.25rem; align-items: start; flex: 1; }

/* builder */
.builder { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 1.1rem; scrollbar-width: thin; }
.builder h3 { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.5rem; }
.group { display: flex; flex-direction: column; gap: 0.85rem; border-top: 1px solid var(--line); padding-top: 1rem; position: relative; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.label { font-size: 0.74rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.hint { margin: 0; font-size: 0.76rem; color: var(--muted); }
.range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.45rem; align-items: center; }
.range span { color: var(--muted); font-size: 0.8rem; }
.range input, .range select { padding: 0.55rem 0.65rem; font-size: 15px; }
.builder .seg { display: flex; width: 100%; }
.builder .seg button { flex: 1; padding: 0.5rem 0.3rem; }
.seg-sm button { font-size: 0.76rem; }
.subgroup { display: flex; flex-direction: column; gap: 0.5rem; }
.subgroup .grid2 { gap: 0.45rem; }
.presets { display: flex; flex-direction: column; gap: 0.5rem; }
.presets .chips { flex-wrap: wrap; overflow: visible; }
.presets .chip { font-size: 0.78rem; padding: 0.38rem 0.7rem; }
.chip.locked { color: var(--muted); }
.chips.multi { flex-wrap: wrap; }
.chips.multi button { flex: none; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 0.38rem 0.65rem; font: 600 0.8rem var(--body); cursor: pointer; }
.chips.multi button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.teams-field summary { cursor: pointer; display: flex; gap: 0.5rem; align-items: baseline; list-style: none; }
.teams-field summary::-webkit-details-marker { display: none; }
.teams-field summary::after { content: '▾'; color: var(--muted); margin-left: auto; }
.team-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 0.35rem; margin-top: 0.6rem; }
.team-grid button { padding: 0.38rem 0 !important; font-family: var(--mono) !important; }
.reset { align-self: flex-start; }
.link-btn.inline { padding: 0; color: var(--accent); font-size: inherit; }
.pro-tag { font: 700 0.62rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 0.15rem 0.4rem; border-radius: 5px; vertical-align: middle; }

.premium-group.locked .premium-fields { opacity: 0.35; filter: grayscale(1); pointer-events: none; max-height: 330px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.lock-cover { position: absolute; inset: 2.6rem 0 0 0; z-index: 2; display: flex; justify-content: center; align-items: center; cursor: pointer; }
.premium-fields { display: flex; flex-direction: column; gap: 0.85rem; }

/* results */
.results { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.results-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.results-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.results-head p { margin: 0.25rem 0 0; }
.actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.verdict { border-radius: 12px; padding: 0.75rem 1rem; background: var(--panel); border: 1px solid var(--line); font-size: 0.92rem; }
.verdict b { margin-right: 0.35rem; }
.v-high { border-color: #2e6b47; background: #0f2219; }
.v-high b { color: var(--pos); }
.v-mid { border-color: #4b5c1b; background: #171d0c; }
.v-mid b { color: var(--accent); }
.v-neg { border-color: #5a2626; background: #1f1010; }
.v-neg b { color: var(--neg); }
.v-low b { color: var(--warn); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.65rem; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 0.9rem; display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.tile span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.tile b { font-size: clamp(1.15rem, 1.5vw, 1.4rem); letter-spacing: -0.02em; white-space: nowrap; }
.tile small { color: var(--muted); font-size: 0.72rem; line-height: 1.3; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* chart */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .zero { stroke: #4a5361; stroke-width: 1.5; }
.chart .tick { stroke: var(--line); }
.chart .axis { fill: var(--muted); font: 500 11px var(--mono); }
.chart .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series.up { stroke: var(--accent); }
.chart .series.down { stroke: var(--neg); }
.chart .end-label { fill: var(--text); font: 700 12px var(--mono); paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
.chart .cross { stroke: var(--muted); stroke-dasharray: 3 3; }
.chart .dot { stroke: var(--panel); stroke-width: 2; }
.chart .dot.up { fill: var(--accent); }
.chart .dot.down { fill: var(--neg); }
.chart-tip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem 0.65rem; font-size: 0.78rem; pointer-events: none; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.5); z-index: 5; }
.chart-empty { padding: 3rem 0; text-align: center; }

/* tables */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.tbl th { text-align: left; font: 600 0.68rem var(--body); text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 0.5rem; border-bottom: 1px solid #1c2129; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.res { font: 700 0.7rem var(--mono); padding: 0.12rem 0.4rem; border-radius: 5px; }
.res-W { background: #123222; color: var(--pos); }
.res-L { background: #3a1616; color: var(--neg); }
.res-P { background: var(--panel-2); color: var(--muted); }
.locked-table { position: relative; display: grid; place-items: center; }
.locked-table .tbl { filter: blur(4px); opacity: 0.5; pointer-events: none; user-select: none; }
.locked-table .btn { position: absolute; }
#log-more { margin-top: 0.7rem; }
#log-more p { margin: 0; }
.up-row { display: grid; grid-template-columns: 80px 1fr auto 56px; gap: 0.7rem; padding: 0.5rem 0; border-top: 1px solid var(--line); align-items: center; font-size: 0.9rem; }
.up-row:first-child { border-top: 0; }
.up-row .mono:last-child { text-align: right; }
.method { margin: 0; line-height: 1.6; }

/* modals */
.modal { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); padding: 1.4rem; width: min(440px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); }
.modal::backdrop { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(3px); }
.modal h2 { margin-bottom: 1rem; font-size: 1.6rem; }
.modal-x { position: absolute; top: 0.6rem; right: 0.6rem; margin: 0; }
.modal-x button { background: none; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 0.3rem 0.5rem; }
#auth-dialog .tabs { margin: 0.6rem 0 1rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.ticks li { padding-left: 1.6rem; position: relative; color: #c3cad4; font-size: 0.92rem; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.save-row { display: flex; gap: 0.5rem; }
.save-row .btn { flex: none; }
.mine-list { display: flex; flex-direction: column; margin-top: 0.4rem; }
.mine-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 0.5rem; align-items: center; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.mine-row div { display: flex; flex-direction: column; }
.plan { margin: 0 0.6rem 0.4rem; font-size: 0.85rem; }
.toast-warn { background: var(--warn); color: #1d1500; }

/* pricing */
.pricing { max-width: 980px; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2rem) 3rem; flex: 1; width: 100%; }
.pricing h1 { font: 800 clamp(2.2rem, 6vw, 3.6rem)/1 var(--display); text-transform: uppercase; text-align: center; }
.pricing > p { text-align: center; color: #b9c1cc; max-width: 38rem; margin: 0.8rem auto 2rem; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.plan-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; }
.plan-card.pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(198, 255, 58, 0.07); }
.plan-card h2 { font-size: 1.5rem; }
.price { font: 800 2.4rem var(--display); }
.price small { font: 500 0.9rem var(--body); color: var(--muted); }
.plan-card ul { margin: 0; }
.waitlist { max-width: 640px; margin: 2.5rem auto 0; scroll-margin-top: 90px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .workspace { grid-template-columns: 1fr; }
  .builder { position: static; max-height: none; overflow: visible; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .nav { margin-left: 0.2rem; }
  .nav a { padding: 0.45rem 0.55rem; }
  .nav a[href="index.html"] { display: none; }
  .logo { font-size: 1.15rem; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile b { font-size: 1.15rem; }
  .card { padding: 0.9rem; }
  .up-row { grid-template-columns: 1fr auto; }
  .up-row > :first-child { grid-column: 1 / -1; }
  .up-row > :last-child { display: none; }
}

/* phone results bar */
.mini-bar { position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 25; display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.85rem 1.1rem; border-radius: 14px; border: 1px solid #34411a; background: rgba(23, 29, 12, 0.96); backdrop-filter: blur(8px); color: var(--text); font: 600 0.95rem var(--body); box-shadow: 0 10px 30px rgba(0,0,0,.55); cursor: pointer; }
.mini-bar b { color: var(--accent); }
@media (min-width: 1001px) { .mini-bar { display: none !important; } }
#account-slot .btn { white-space: nowrap; }

.results { scroll-margin-top: 70px; }

/* ---------- player props ---------- */
.builder > .tabs { margin-bottom: 0.2rem; }
.combo { position: relative; }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px; max-height: 320px; overflow-y: auto; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.combo-list button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: 500 0.9rem var(--body); padding: 0.5rem 0.6rem; border-radius: 7px; cursor: pointer; }
.combo-list button:hover, .combo-list button.hl { background: var(--line); }
.combo-list .pad { padding: 0.6rem; margin: 0; }
.player-head { display: flex; align-items: center; gap: 0.9rem; }
.player-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line); }
.chart .bar-W { fill: var(--pos); }
.chart .bar-L { fill: var(--neg); opacity: 0.85; }
.chart .bar-P { fill: var(--muted); }
.chart .prop-line { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 4; }
.next-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.next-grid > div { display: flex; flex-direction: column; gap: 0.2rem; }
.next-grid b { font-size: 1.15rem; }
.matchup { margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--line); color: #c3cad4; }
.matchup.pos b:first-child, .matchup.neg b:first-child { color: inherit; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--panel-2); }
.tbl tr.blur-row td { filter: blur(4px); opacity: 0.45; user-select: none; }
.finder-lock { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 1rem 0 0.2rem; }
.finder-lock p { margin: 0; }
@media (max-width: 700px) { .next-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- this week ---------- */
.page { width: 100%; max-width: 1320px; margin: 0 auto; padding: 1rem clamp(0.8rem, 3vw, 2rem) 2rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.week-chips { padding: 0.2rem 0 0.4rem; }
.week-chips .chip { cursor: pointer; font-size: 0.82rem; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(560px, 100%), 1fr)); gap: 1rem; }
.games > .card, .page > .card { min-width: 0; }
.game .card-head h3 { font-size: 1.35rem; }
.game-tbl .team { font-family: var(--mono); font-size: 0.95rem; }
.game-tbl .score { margin-left: 0.3rem; }
.game-result { margin: -0.2rem 0 0.4rem; }
.dots { display: flex; gap: 4px; align-items: center; height: 100%; }
.dots i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot-W { background: var(--pos); }
.dot-L { background: var(--neg); }
.dot-P { background: var(--muted); }
.game-foot { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.sys-chips { flex-wrap: wrap; }
.sys-chips .chip { font-size: 0.76rem; padding: 0.3rem 0.65rem; text-decoration: none; }
.game-links { color: var(--muted); }
.sys-more { margin: 0.7rem 0 0; }
@media (max-width: 700px) { .games { grid-template-columns: 1fr; } }

/* ---------- strategy finder ---------- */
.finder-controls { display: grid; grid-template-columns: auto auto 1.4fr 0.8fr auto auto; gap: 1rem; align-items: end; }
.finder-controls .chips.multi button { cursor: pointer; padding: 0.5rem 0.8rem; border-radius: 10px; font: 600 0.82rem var(--body); }
.finder-controls .seg button { padding: 0.55rem 0.8rem; cursor: pointer; }
.finder-controls input, .finder-controls select { padding: 0.55rem 0.7rem; font-size: 15px; }
.progress { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.finder-tbl td { vertical-align: top; }
.finder-tbl td:nth-child(2) { white-space: normal; min-width: 220px; }
@media (max-width: 1000px) { .finder-controls { grid-template-columns: 1fr 1fr; } }

/* nav with five links: scroll sideways on small screens instead of wrapping */
.nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; }
@media (max-width: 560px) { .logo { font-size: 0; gap: 0; } .logo-mark { font-size: 0.85rem; } }

/* ---------- waitlist poll ---------- */
.waitlist .chips.multi { flex-wrap: wrap; overflow: visible; }
.waitlist .chips.multi button { flex: none; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 0.45rem 0.85rem; font: 600 0.85rem var(--body); cursor: pointer; }
.waitlist .chips.multi button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- learn articles, about, contact ---------- */
.doc .lead { font-size: 1.1rem; color: #dfe4ea; line-height: 1.65; }
.doc h1 { line-height: 1; }
.doc.article h2 { font-size: 1.35rem; }
.doc p, .doc li { line-height: 1.7; }
.doc li { margin: 0.3rem 0; }
.doc .crumbs { margin: 0 0 0.6rem; color: var(--muted); }
.doc .formula { font-family: var(--mono); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 0.6rem 0 1rem; font-size: 0.92rem; }
.doc th { text-align: left; font: 600 0.72rem var(--body); text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 0.5rem; }
.doc td { padding: 0.5rem; border-bottom: 1px solid #1c2129; font-family: var(--mono); color: #dfe4ea; }
.doc .callout { margin: 2rem 0 1rem; padding: 1rem 1.1rem; border: 1px solid #34411a; background: #171d0c; border-radius: 12px; color: #dfe4ea; }
.doc .more-articles { margin-top: 2.2rem; border-top: 1px solid var(--line); padding-top: 0.4rem; }
.doc .more-articles h2 { font-size: 1rem; color: var(--muted); }
.article-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 0.7rem; }
.article-list a { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none !important; }
.article-list a:hover { border-color: var(--accent); }
.article-list b { color: var(--text); font-size: 1.05rem; }
.article-list span { color: var(--muted); font-size: 0.9rem; }
.contact-email { font: 700 1.3rem var(--mono); margin: 0.4rem 0 1.4rem; }

/* "How this works" notes under each tool */
.notes { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0.5rem clamp(0.8rem, 3vw, 2rem) 2rem; }
.notes > h2 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.8rem; }
.note { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.note h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.note p { margin: 0; color: #b9c1cc; font-size: 0.88rem; line-height: 1.6; }
