/* ETO Accounts: the member pages (My progress, Saved, Badges, Settings), mockup screen 5. Loaded after auth.css on
   those pages only. Theme tokens only (wp-content/themes/eto/assets/css/base.css).
   Orange = rewards (streak, points, badges); yellow = where you are and the next action; green/red = right/wrong. */

.eto-main > .eto-acc-screen--page { max-width: 1200px; margin: 0 auto; }
.eto-main > .eto-acc-screen--settings { max-width: 760px; }
.eto-acc-screen--page h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; }
.eto-acc-head { margin-bottom: 22px; }
.eto-acc-head .eto-acc-lead { margin: 0; max-width: 68ch; font-size: 17px; }
.eto-acc-ic { flex: none; }

/* ---------- KPI cards ---------- */
.eto-acc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.eto-acc-kpi { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); min-width: 0; }
.eto-acc-screen--page .eto-acc-kpi__k { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.eto-acc-kpi__k .eto-acc-ic, .eto-acc-kpi__k .eto-acc-tic { color: var(--muted); }
.eto-acc-kpi__v { margin: 6px 0 0; font-size: 32px; font-weight: 800; line-height: 1.2; letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: var(--text); }
.eto-acc-kpi__v small { margin-left: 4px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.eto-acc-kpi__s { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.eto-acc-kpi--reward { border-bottom: 4px solid color-mix(in srgb, var(--reward) 45%, var(--line)); }
.eto-acc-kpi--reward .eto-acc-kpi__k .eto-acc-tic { color: var(--reward); }
.eto-acc-kpi--reward .eto-acc-kpi__v { color: var(--reward-ink); }
.eto-acc-kpi.is-risk { border-color: var(--reward); background: var(--reward-soft); }
.eto-acc-kpi.is-risk .eto-acc-kpi__s { color: var(--reward-ink); font-weight: 700; }

/* streak week dots: done (orange tick), freeze (dashed), missed (grey), today (outlined), none (before joining, faint) */
.eto-acc-week { display: flex; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; }
.eto-acc-week li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.eto-acc-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: #fff; }
.eto-acc-dot.is-done { background: var(--reward); }
[data-scheme="dark"] .eto-acc-dot.is-done { color: #1B1A18; }
.eto-acc-dot.is-today { background: transparent; box-shadow: inset 0 0 0 2px var(--reward); }
.eto-acc-dot.is-now:not(.is-today) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--reward); } /* today, done: keeps a ring */
.eto-acc-dot.is-freeze { background: transparent; border: 2px dashed var(--reward); }
.eto-acc-dot.is-future { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.eto-acc-dot.is-none { background: transparent; box-shadow: inset 0 0 0 1px var(--line); } /* before joining: neutral, never "missed" */

/* ---------- panels ---------- */
.eto-acc-two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 20px; }
@media (max-width: 1099px) { .eto-acc-two { grid-template-columns: minmax(0, 1fr); } }
.eto-acc-panel { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); min-width: 0; }
.eto-acc-screen--settings .eto-acc-panel + .eto-acc-panel { margin-top: 20px; }
.eto-acc-sub { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); }
.eto-acc-empty { margin: 0 0 12px; color: var(--text-2); }
.eto-acc-panel--flush { padding: 0; overflow: hidden; }
.eto-acc-panel--flush > h2 { padding: 22px 22px 12px; }
.eto-acc-panel--flush > .eto-acc-empty, .eto-acc-panel--flush > .eto-acc-pager { padding: 0 22px 18px; }

/* level map: level tabs (links), one bar per skill */
.eto-acc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.eto-acc-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 64px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; }
.eto-acc-tab small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.eto-acc-tab:hover { border-color: var(--line-strong); background: var(--surface-2); }
.eto-acc-tab[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.eto-acc-tab[aria-current="true"] small { color: var(--on-accent); }
.eto-acc-skill { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
nav + .eto-acc-skill { border-top: 0; }
.eto-acc-skill b { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.eto-acc-skill b .eto-acc-ic { color: var(--muted); }
.eto-acc-skill > span { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.eto-acc-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.eto-acc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent-edge) 45%, transparent); }
@media (max-width: 600px) {
	.eto-acc-skill { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
	.eto-acc-skill .eto-acc-bar { grid-column: 1 / -1; order: 3; }
	.eto-acc-skill .eto-acc-btn { display: none; } /* the skill row itself stays readable; the landing page is one tap away in the menu */
}

/* buttons (small) */
.eto-acc-btn--sm { min-height: 44px; margin: 0; padding: 0 14px; border-radius: 12px; font-size: 14.5px; box-shadow: 0 2px 0 var(--line-strong); }
.eto-acc-btn--danger { color: var(--wrong); border-color: var(--wrong); box-shadow: 0 3px 0 var(--wrong); }
.eto-acc-btn--danger:hover { background: var(--wrong-soft); }
.eto-acc-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }

/* practise your missed questions */
.eto-acc-big { margin: 6px 0 4px; font-size: 44px; font-weight: 850; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.eto-acc-missed__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.eto-acc-missed__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.eto-acc-missed__list a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0; color: var(--text); font-weight: 600; text-decoration: none; min-width: 0; }
.eto-acc-missed__list a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.eto-acc-missed__list a .eto-acc-ic { color: var(--accent-ink); }
.eto-acc-missed__n { flex: none; min-width: 28px; padding: 2px 8px; border-radius: 999px; background: var(--wrong-soft); color: var(--wrong); font-size: 14px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }

/* recent results */
.eto-acc-tablewrap { overflow-x: auto; }
.eto-acc-results { width: 100%; border-collapse: collapse; font-size: 15px; }
.eto-acc-results th { padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.eto-acc-results td { padding: 10px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.eto-acc-results tr:first-child td { border-top: 0; }
.eto-acc-results__t a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 600; text-decoration: none; }
.eto-acc-results__t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.eto-acc-results__sc { font-size: 17px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eto-acc-results__d { color: var(--text-2); white-space: nowrap; }
.eto-acc-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.eto-acc-pager__at { color: var(--muted); font-size: 14px; }

/* locked leaderboard teaser */
.eto-acc-lb__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.eto-acc-lock { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px dashed var(--line-strong); border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eto-acc-ghost { display: grid; gap: 8px; margin-top: 14px; opacity: .55; filter: blur(1.5px); }
.eto-acc-ghost i { display: block; height: 40px; border-radius: 10px; background: linear-gradient(90deg, var(--surface-3) 0 22px, transparent 22px 34px, var(--surface-3) 34px 70%, transparent 70%) center / calc(100% - 24px) 8px no-repeat, var(--surface-2); }

/* badges */
.eto-acc-sec { margin-top: 40px; }
.eto-acc-sec__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.eto-acc-sec__h a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--text-2); font-size: 14.5px; font-weight: 600; }
.eto-acc-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.eto-acc-bdg { padding: 18px 10px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; font-size: 13.5px; line-height: 1.35; }
.eto-acc-bico { width: 60px; height: 60px; margin: 0 auto 12px; display: grid; place-items: center; border: 2px solid var(--reward); border-bottom-width: 5px; border-radius: 18px; background: var(--reward-soft); color: var(--reward-ink); transform: rotate(-4deg); }
.eto-acc-bdg:nth-child(2n) .eto-acc-bico { transform: rotate(4deg); }
.eto-acc-bdg b { display: block; font-size: 14px; }
.eto-acc-bdg small { display: block; margin-top: 2px; color: var(--muted); }
.eto-acc-when { font-weight: 600; }
.eto-acc-bdg.is-locked { background: var(--surface-2); border-style: dashed; }
.eto-acc-bdg.is-locked .eto-acc-bico { border-color: var(--line-strong); background: var(--surface); color: var(--muted); transform: none; }
.eto-acc-bdg.is-locked b { color: var(--text-2); }

/* saved */
.eto-acc-saved { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.eto-acc-saved li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px 6px 16px; border-top: 1px solid var(--line); }
.eto-acc-saved li:first-child { border-top: 0; }
.eto-acc-saved__t { display: flex; align-items: center; gap: 10px; min-height: 48px; min-width: 0; color: var(--text); font-weight: 600; text-decoration: none; }
.eto-acc-saved__t .eto-acc-ic { color: var(--reward); }
.eto-acc-saved__t:hover span { text-decoration: underline; text-underline-offset: 3px; }
.eto-acc-saved form { margin: 0; flex: none; }

/* settings */
.eto-acc-tool + .eto-acc-tool { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.eto-acc-screen--page .eto-acc-tool h3 { margin: 0; font-size: 16px; }
.eto-acc-tool .eto-acc-btn { align-self: flex-start; }

@media (max-width: 767px) {
	.eto-acc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.eto-acc-kpis > .eto-acc-kpi:first-child, .eto-acc-kpis > .eto-acc-kpi:nth-child(4) { grid-column: 1 / -1; }
	.eto-acc-kpi { padding: 14px; }
	.eto-acc-kpi__v { font-size: 26px; }
	.eto-acc-panel { padding: 18px; }
	.eto-acc-panel--flush > h2 { padding: 18px 18px 10px; }
	.eto-acc-results th, .eto-acc-results td { padding: 8px 12px; }
	.eto-acc-badges { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
}

/* No JavaScript: <html data-scheme="auto"> (printed by the theme, replaced by its head script) follows the device.
   Twins of the [data-scheme="dark"] rules above; keep them in step (tests/js/guards.test.mjs checks). */
@media (prefers-color-scheme: dark) {
  [data-scheme="auto"] .eto-acc-dot.is-done { color: #1B1A18; }
}

/* Retake to reach 100% (20 Nov 2026): the rest of the list behind "Show all". */
.eto-acc-more summary { cursor: pointer; padding: 12px 0; color: var(--accent-ink); font-weight: 600; }
