.stats-renewed{--sp-green:#3c876b;--sp-muted:#64766e}
.stats-renewed .page-head h1{font-size:30px;line-height:1.1;max-width:260px}
.stats-renewed .page-head small{line-height:1.5;margin-top:8px}
.stats-renewed h2{font-size:24px;line-height:1.15;margin:8px 0 12px}
.stats-renewed .eyebrow{font-size:11px;letter-spacing:1px;line-height:1.5}
.sp-hero{position:relative;background:linear-gradient(125deg,#e7f2df,#f5f8eb);border:1px solid #dae7cd;border-radius:28px;padding:24px 20px;margin:22px 0}
.sp-hero-copy{padding-right:62px}.sp-hero-copy h2{font-size:30px;color:#2c654e}.sp-hero-copy p{font-size:15px;line-height:1.55;color:#4e6e5d;margin:0}
.sp-mascot{position:absolute;right:12px;top:35px;width:64px;height:100px;object-fit:contain}
.sp-goal{margin-top:22px;padding-top:18px;border-top:1px solid #cddfc2}.sp-goal>div:first-child{display:flex;gap:10px;justify-content:space-between;font-size:15px}.sp-goal .progress{height:9px;margin:12px 0}.sp-goal small{display:block;font-size:12px;line-height:1.5;color:#60715b}
.sp-card{padding:20px 16px;background:#fffdf8;border:1px solid #e9e5da;border-radius:25px;margin:22px 0}.sp-card header{display:flex;gap:10px;align-items:center;justify-content:space-between}.sp-card header>div{min-width:0}.sp-card h2{font-size:22px}.sp-tag{flex-shrink:0;border-radius:12px;background:#ecf3e7;padding:8px;color:#3b7357;font-size:12px;font-weight:800}
.sp-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:22px 0 10px}.sp-day{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;font-size:12px;color:#728073}.sp-day strong{font-size:12px}.sp-minutes{font-size:11px}.sp-bar-track{display:flex;align-items:flex-end;height:92px;width:100%;max-width:27px;border-radius:10px;background:#f0eee6;overflow:hidden}.sp-bar-track i{display:block;width:100%;border-radius:10px;background:#9bc5ab}.sp-day.today .sp-bar-track i{background:#ff793f}.sp-day.today strong{color:#c95323}.sp-day-dot{height:18px;line-height:18px;color:#408464}.sp-week-total{text-align:center;font-size:13px;color:#768172;margin:10px 0 0}.sp-week-total strong{color:#315847}
.sp-section-heading{margin:26px 0 16px}.sp-section-heading h2{font-size:25px}.sp-learning-row{display:flex;align-items:center;gap:13px;width:100%;text-align:left;background:#fffdf9;border:1px solid #e6e6db;border-radius:21px;padding:18px 14px;margin:12px 0;color:var(--ink);cursor:pointer}.sp-symbol{display:grid;place-items:center;flex:0 0 46px;height:50px;border-radius:15px;background:#ffecdc;color:#e56b32;font-size:25px}.sp-symbol svg{width:24px;height:24px}.sp-villages .sp-symbol{background:#e8f2df;color:#527d4e}.sp-kural .sp-symbol{background:#f2eaf7;color:#936f9e}.sp-learning-copy{flex:1;min-width:0}.sp-learning-copy strong{display:block;font-size:19px;line-height:1.25}.sp-learning-copy small{display:block;font-size:13px;line-height:1.5;color:var(--sp-muted);margin-top:5px}.sp-learning-copy .progress{height:5px;margin:10px 0 0}.sp-learning-copy .progress>span{background:#80ae90}.sp-learning-row>b{font-size:23px;color:#8c9a8b}.sp-kural-note{display:block;font-size:11px;line-height:1.5;color:#7b7f78;margin-top:5px}
.sp-next{padding:23px 20px;border-radius:26px;background:#fff0de;border:1px solid #efd9bd;margin:24px 0}.sp-next p{font-size:15px;line-height:1.6;color:#7b6854}.sp-next .primary{width:100%;font-size:17px;min-height:51px;margin-bottom:0}
.sp-details{border-top:1px solid #e2e3d8;margin-top:28px;padding-top:18px}.sp-details summary{cursor:pointer;font-size:16px;font-weight:800;min-height:44px;line-height:1.5}.sp-detail-metrics{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sp-detail-metrics p{font-size:13px;color:#6b7a6e;line-height:1.5}.sp-detail-metrics strong{display:block;font-size:25px;color:#315647}.sp-disclaimer,.sp-local-note{font-size:12px;line-height:1.6;color:#778174}.sp-local-note{text-align:center;margin:24px 12px}.sp-session-list{padding:0;list-style:none}.sp-session-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e4e7dd;padding:14px 0;font-size:14px}.sp-session-list strong,.sp-session-list small{display:block}.sp-session-list small{font-size:12px;color:#788476;margin-top:5px}.sp-session-list b{white-space:nowrap;font-size:13px;color:#52745e}
.stats-renewed button:focus-visible,.stats-renewed summary:focus-visible{outline:3px solid #cf652b;outline-offset:4px}
@media(max-width:360px){.sp-hero{padding:19px 15px}.sp-hero-copy{padding-right:48px}.sp-mascot{width:50px;right:8px}.sp-hero-copy h2{font-size:26px}.sp-bars{gap:5px}.sp-tag{padding:6px}.sp-learning-row{gap:9px}.sp-symbol{flex-basis:38px}.stats-renewed .page-head h1{font-size:27px}}

/* ===== Stats v2: modern (iOS-like) layout ===== */
.st2 { --st-shadow: 0 1px 2px rgba(23, 57, 84, 0.04), 0 10px 26px rgba(23, 57, 84, 0.07); --st-border: color-mix(in srgb, var(--line) 80%, transparent); }
.st-card { margin-top: 14px; padding: 18px; border: 1px solid var(--st-border); border-radius: 26px; background: var(--card); box-shadow: var(--st-shadow); }
.st-kicker { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; }
.st-card h2 { margin: 2px 0 6px; color: var(--ink); font-family: var(--font-display); font-size: 21px; line-height: 1.2; }
.st-card p { margin: 0; color: var(--ink-2); font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.st-today { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 16px; }
.st-ring { position: relative; display: grid; width: 100%; aspect-ratio: 1; max-width: 112px; place-items: center; }
.st-ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.st-ring-track { fill: none; stroke: color-mix(in srgb, var(--line) 85%, transparent); stroke-width: 10; }
.st-ring-fill { fill: none; stroke: var(--ring, #ff7a45); stroke-linecap: round; stroke-width: 10; transition: stroke-dasharray 600ms var(--ease); }
.st-ring-label { position: relative; display: grid; justify-items: center; line-height: 1; }
.st-ring-label strong { color: var(--ink); font-family: var(--font-display); font-size: 28px; }
.st-ring-label small { color: var(--muted); font-size: 11px; font-weight: 800; }
.st-week header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.st-chip { padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, #3f8f6b 14%, transparent); color: #2f7d62; font-size: 12px; font-weight: 900; white-space: nowrap; }
html[data-theme="dark"] .st-chip { color: #9fdcbc; }
.st-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.st-day { display: grid; justify-items: center; gap: 6px; }
.st-day-min { min-height: 14px; color: var(--muted); font-size: 10.5px; font-weight: 800; }
.st-day-track { position: relative; display: flex; align-items: flex-end; width: 100%; max-width: 26px; height: 92px; overflow: hidden; border-radius: 10px; background: color-mix(in srgb, var(--line) 70%, transparent); }
.st-day-track i { display: block; width: 100%; border-radius: 10px; background: linear-gradient(180deg, #7fb6e3, #2f6fa3); }
.st-day.today .st-day-track i { background: linear-gradient(180deg, #ffb38a, #ff7a45); }
.st-day strong { color: var(--muted); font-size: 11px; font-weight: 800; }
.st-day.today strong { color: var(--orange); }
.st-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.st-kpi { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--st-border); border-radius: 22px; background: var(--card); box-shadow: var(--st-shadow); }
.st-kpi strong { color: var(--kc); font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.st-kpi small { color: var(--muted); font-size: 12px; font-weight: 800; }
.k-blue { --kc: #2f6fa3; } .k-green { --kc: #2f7d62; } .k-orange { --kc: #e8632e; } .k-gold { --kc: #c98a00; }
html[data-theme="dark"] .st-kpi { --kc: var(--ink); }
.st-section { margin-top: 22px; }
.st-section h3 { margin: 0 4px 10px; color: var(--ink); font-family: var(--font-display); font-size: 19px; }
.st-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.st-path { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border: 1px solid var(--st-border); border-radius: 22px; background: var(--card); color: var(--ink); font: inherit; text-align: center; cursor: pointer; box-shadow: var(--st-shadow); }
.st-path .st-ring { max-width: 64px; }
.st-path .st-ring-track, .st-path .st-ring-fill { stroke-width: 11; }
.st-ring-icon { position: relative; display: grid; place-items: center; color: var(--ring); font-family: var(--font-tamil); font-size: 20px; font-weight: 700; }
.st-ring-icon :is(svg, .nav-svg, .village-mini-svg) { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.p-themes { --ring: #ff7a45; } .p-villages { --ring: #3f8f6b; } .p-kural { --ring: #c98a2e; }
.st-path strong { font-size: 14px; font-weight: 800; }
.st-path small { color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1.3; }
.st-next { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; gap: 14px; background: linear-gradient(135deg, color-mix(in srgb, #ff7a45 10%, var(--card)), var(--card)); }
.st-next-go { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--orange); color: #fff; font-size: 20px; font-weight: 900; cursor: pointer; box-shadow: 0 8px 18px color-mix(in srgb, var(--orange) 32%, transparent); }
.st-sessions { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--st-border); border-radius: 22px; background: var(--card); box-shadow: var(--st-shadow); list-style: none; }
.st-sessions li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 16px; }
.st-sessions li + li { border-top: 1px solid var(--line); }
.st-sessions li.st-empty { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.st-session-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.st-sessions strong { display: block; color: var(--ink); font-size: 14px; }
.st-sessions small { color: var(--muted); font-size: 12px; font-weight: 700; }
.st-sessions b { color: var(--ink); font-size: 13px; }
.st-footer { margin: 16px 4px 0; color: var(--muted); font-size: 11.5px; font-weight: 600; line-height: 1.45; text-align: center; }
