/* ---------- accounts + onboarding (loaded after app.css) ---------- */
.plain { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; background: var(--bg); }
.plain-top { display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 4vw, 40px); }
.plain-main { display: grid; justify-items: center; align-content: start; padding: 12px 16px 64px; }
.onb { width: 100%; max-width: 600px; display: grid; gap: 18px; }
.onb h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); margin: 0; }
.onb .lead { color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.onb .card { padding: clamp(18px, 4vw, 28px); }
.steps-bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.steps-bar span { height: 6px; border-radius: 99px; background: var(--surface-3); }
.steps-bar span.done { background: var(--brand); }
.steps-bar span.now { background: var(--sun); }
.step-label { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; font-weight: 600; }
.onb-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.onb-actions .right { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.link-btn { background: none; border: 0; color: var(--brand-strong); font: 600 .95rem var(--font-ui); cursor: pointer; padding: 8px 4px;
  text-decoration: underline; text-underline-offset: 3px; }
.big-input { font: 700 1.4rem var(--font-kid); padding: 14px 16px; }
.reassure { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-soft); color: var(--brand-strong); border-radius: 12px;
  padding: 10px 14px; font-size: .9rem; }
.reassure .icon { margin-top: 2px; }

.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.choice { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 16px;
  border: 2px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.choice:hover { border-color: var(--line-2); }
.choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }
.choice b { display: block; }
.choice small { color: var(--muted); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice.tall { grid-template-columns: 1fr; gap: 8px; padding-right: 44px; }
.choice.tall .em { font-size: 2rem; line-height: 1; }
.choice.tall input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:focus-visible), .show-pick:has(input:focus-visible), .av-pick:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.tick { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2);
  display: grid; place-items: center; }
.tick .icon { width: 14px; height: 14px; opacity: 0; }
.choice:has(input:checked) .tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.choice:has(input:checked) .tick .icon { opacity: 1; }

.show-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.show-pick { position: relative; display: grid; gap: 6px; padding: 8px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer;
  background: var(--surface); text-align: center; font-weight: 700; }
.show-pick img, .show-pick .ph { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 10px;
  background: var(--surface-3); display: grid; place-items: center; font: 700 2rem var(--font-kid); color: var(--muted); }
.show-pick input { position: absolute; opacity: 0; pointer-events: none; }
.show-pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.show-pick .tick { top: 14px; right: 14px; background: var(--surface); }
.show-pick .tick .icon { width: 14px; height: 14px; opacity: 0; }
.show-pick:has(input:checked) .tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.show-pick:has(input:checked) .tick .icon { opacity: 1; }

.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.av-pick { position: relative; cursor: pointer; display: grid; justify-items: center; gap: 4px; font-size: .75rem; color: var(--muted); text-align: center; }
.av-pick input { position: absolute; opacity: 0; pointer-events: none; }
.av-pick .av { border: 3px solid transparent; }
.av-pick:has(input:checked) .av { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: #fff;
  font: 700 1.6rem var(--font-kid); background: var(--surface-3); flex: none; }
.av img { width: 100%; height: 100%; object-fit: cover; object-position: top; background: #fff; }
.av.sm { width: 34px; height: 34px; font-size: .95rem; }
.av.lg { width: 96px; height: 96px; font-size: 2.4rem; }
.pic-tabs { display: grid; gap: 14px; }
.pic-tabs fieldset { display: grid; gap: 12px; }

.done-hero { text-align: center; display: grid; gap: 12px; justify-items: center; }
.summary { display: grid; margin: 0; }
.summary div { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); font-weight: 600; }
.summary dd { margin: 0; }
@media (max-width: 560px) { .summary div { grid-template-columns: 1fr auto; } .summary dt { grid-column: 1 / -1; } }

/* sidebar child switcher */
.kid-switch { display: grid; gap: 8px; padding: 0 2px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.kid-switch .cur { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.kid-switch .cur:hover { background: var(--surface-2); }
.kid-switch .cur b { font-family: var(--font-kid); font-size: 1.05rem; display: block; line-height: 1.15; }
.kid-switch .cur small { color: var(--muted); }
.kid-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 8px; align-items: center; }
.kid-row form { display: contents; }
.kid-row button { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.kid-row .add { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed var(--line-2); display: grid; place-items: center; color: var(--muted); text-decoration: none; }
.kid-row .add .icon { width: 16px; height: 16px; }
.side .foot form { display: contents; }
.top-kid { display: none; }
@media (max-width: 900px) {
  .top-kid { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin: -4px 0 14px; }
  .top-kid a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-family: var(--font-kid); }
}

.auth-card { width: 100%; max-width: 420px; }
.auth-card .form { gap: 14px; }
.check-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 400; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }

/* staged review (form[data-stepper]) */
.stepper { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; scroll-margin-top: 16px; }
.stepper .st { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 6px 14px 6px 6px; font: 600 .9rem var(--font-ui); cursor: pointer; }
.stepper .st span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: .8rem; }
.stepper .st.done span { background: var(--brand); color: var(--brand-ink); }
.stepper .st.on { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }
.stepper .st.on span { background: var(--sun); color: var(--sun-ink); }
.stepper .st.bad span { background: var(--err); color: #fff; }
.step-nav { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.step-nav .grow { flex: 1; }
.review-step { max-width: 860px; }
.recap { display: grid; gap: 8px; margin: 0; }
.recap div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.recap dt { color: var(--muted); font-weight: 600; } .recap dd { margin: 0; }
.game-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.game-picks label { display: flex; gap: 8px; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; cursor: pointer; font-weight: 600; }
.game-picks input { accent-color: var(--brand); width: 18px; height: 18px; }
.game-picks label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

/* "More options" disclosure: simple face, depth underneath */
details.more { border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 14px; }
details.more > summary { cursor: pointer; font-weight: 700; color: var(--brand-strong); list-style: none; }
details.more > summary::before { content: "＋ "; }
details.more[open] > summary::before { content: "－ "; }
details.more[open] { display: grid; gap: 12px; }
.how { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 1.05rem; }

/* community */
.filters { display: grid; gap: 10px; margin-bottom: 16px; }
.filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.filter-row .f { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags .tag { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-strong); }
.community-grid .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.community-pages img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff; }

/* admin */
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.adm-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 2px; min-width: 0; }
.adm-kpi b { font: 800 1.7rem var(--font-ui); font-variant-numeric: tabular-nums; }
.adm-kpi span { font-weight: 700; color: var(--ink-2); }
.adm-kpi small { color: var(--muted); }
.adm-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; align-items: end; height: 140px;
  border-bottom: 1px solid var(--line); }
.adm-bars span { background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; }
.adm-bars span:hover { background: var(--brand-strong); }
.tbl-wrap { overflow-x: auto; max-width: 100%; }
