/* Learn Nivesh design system
   Layout: multi-page learning site. Sticky header, deep-green hero bands, bento card grids, large rounded calculator panels. */
:root {
  --bg: #f2f5f3; --surface: #ffffff; --raised: #f7faf8; --ink: #0b1f19; --muted: #5a6d66; --line: #dfe7e3;
  --brand: #00875a; --brand-ink: #ffffff; --brand-soft: #dbf2e7; --brand-mid: #7cc9a6;
  --sun: #ffb020; --sun-ink: #2b1d00; --sun-soft: #fff1d1;
  --coral: #ef5434; --coral-soft: #ffe4dc; --sky: #2f7cf6; --sky-soft: #e1ecff; --grape: #7556f0; --grape-soft: #ebe5ff;
  --hero: #0a241c; --hero-2: #0f3428; --hero-ink: #eafbf3; --hero-muted: #9cc4b4; --hero-line: #1d4a3b;
  --shadow: 0 1px 2px #0b1f190d, 0 12px 32px -18px #0b1f1940;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --hindi: "Mukta", "Nirmala UI", "Mangal", sans-serif;
  --r-lg: 24px; --r-md: 16px; --r-sm: 10px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #07110d; --surface: #0e1a16; --raised: #13221d; --ink: #e5f0eb; --muted: #93a99f; --line: #1f3129;
  --brand: #2fd296; --brand-ink: #03140d; --brand-soft: #12382a; --brand-mid: #1f7a57;
  --sun: #ffbe45; --sun-ink: #2b1d00; --sun-soft: #3a2c0c;
  --coral: #ff7258; --coral-soft: #3b1b14; --sky: #5d9dff; --sky-soft: #142846; --grape: #9b85ff; --grape-soft: #241c47;
  --hero: #04130e; --hero-2: #0a241b; --hero-ink: #eafbf3; --hero-muted: #8db7a6; --hero-line: #17392d;
  --shadow: 0 1px 2px #0006, 0 14px 34px -18px #000c; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #07110d; --surface: #0e1a16; --raised: #13221d; --ink: #e5f0eb; --muted: #93a99f; --line: #1f3129;
  --brand: #2fd296; --brand-ink: #03140d; --brand-soft: #12382a; --brand-mid: #1f7a57;
  --sun: #ffbe45; --sun-ink: #2b1d00; --sun-soft: #3a2c0c;
  --coral: #ff7258; --coral-soft: #3b1b14; --sky: #5d9dff; --sky-soft: #142846; --grape: #9b85ff; --grape-soft: #241c47;
  --hero: #04130e; --hero-2: #0a241b; --hero-ink: #eafbf3; --hero-muted: #8db7a6; --hero-line: #17392d;
  --shadow: 0 1px 2px #0006, 0 14px 34px -18px #000c; color-scheme: dark }

* { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-padding-top: 84px }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; min-height: 100%; display: flex; flex-direction: column }
main { flex: 1 }
img, svg { max-width: 100% }
a { color: var(--brand) }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -.02em; text-wrap: balance }
p { margin: 0 }
.hi { font-family: var(--hindi); font-weight: 500 }
.num { font-variant-numeric: tabular-nums }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)) }
.narrow { max-width: 860px }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand) }
.lead { color: var(--muted); font-size: 17.5px; max-width: 62ch }
.muted { color: var(--muted) }
.section { padding-block: clamp(48px, 7vw, 88px) }
.section-head { display: grid; gap: 10px; margin-bottom: 30px }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800 }
.row-between { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--body); padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .12s, filter .12s, background .12s; white-space: nowrap; color: inherit; background: none }
.btn:hover { transform: translateY(-1px) }
.btn:active { transform: translateY(1px) }
.btn.primary { background: var(--brand); color: var(--brand-ink) }
.btn.primary:hover { filter: brightness(1.07) }
.btn.sun { background: var(--sun); color: var(--sun-ink) }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink) }
.btn.on-dark { background: #ffffff14; border-color: #ffffff2e; color: var(--hero-ink) }
.btn.sm { padding: 9px 16px; font-size: 14px }
.btn.block { width: 100% }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 13.5px/1 var(--body); padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); cursor: pointer; text-decoration: none }
.chip:hover { border-color: var(--brand) }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink) }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand) }
.pill.sun { background: var(--sun-soft); color: var(--ink) }
.pill.grey { background: var(--raised); color: var(--muted); border: 1px solid var(--line) }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface) }
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line) }
.hdr-in { display: flex; align-items: center; gap: 20px; height: 68px }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none }
.logo svg { width: 36px; height: 36px }
.logo b { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -.03em; display: block; line-height: 1 }
.logo small { display: block; font-family: var(--hindi); font-size: 12px; color: var(--muted); line-height: 1.2; margin-top: 2px }
.nav { display: flex; gap: 2px; margin-left: 12px }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px }
.nav a:hover { color: var(--ink); background: var(--raised) }
.nav a.on { color: var(--ink); background: var(--brand-soft) }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 8px }
.iconbtn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center }
.iconbtn svg { width: 18px; height: 18px }
.menu-btn { display: none }
.xp-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 999px; background: var(--sun-soft); color: var(--ink); text-decoration: none }
.xp-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--sun) }
.acct { position: relative }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-ink); font: 700 15px var(--display); cursor: pointer }
.acct-menu { position: absolute; right: 0; top: 50px; width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 8px; display: grid }
.acct-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; min-width: 0 }
.acct-head b { display: block } .acct-head span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: block }
.acct-menu a, .acct-menu button { text-align: left; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 500 14.5px var(--body); background: none; border: 0; cursor: pointer }
.acct-menu a:hover, .acct-menu button:hover { background: var(--raised) }
@media (max-width: 920px) {
  .menu-btn { display: grid }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); margin: 0; box-shadow: var(--shadow) }
  .nav.open { display: flex }
  .nav a { padding: 12px 14px }
  .hide-sm { display: none !important }
}

/* Hero band */
.band { background: var(--hero); color: var(--hero-ink); position: relative; overflow: hidden; isolation: isolate }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--hero-line) 1px, transparent 1px), linear-gradient(90deg, var(--hero-line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%); opacity: .55 }
.band::after { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -160px; top: -260px; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 45%, transparent) 0%, transparent 65%); filter: blur(10px) }
.band .eyebrow { color: var(--sun) }
.band .lead { color: var(--hero-muted) }
.band-in { padding-block: clamp(48px, 7vw, 92px) }
.page-hero .band-in { padding-block: clamp(36px, 5vw, 64px) }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin-top: 10px }
.page-hero .lead { margin-top: 12px }
.crumbs { font-size: 13.5px; color: var(--hero-muted); display: flex; gap: 8px; flex-wrap: wrap }
.crumbs a { color: var(--hero-muted); text-decoration: none } .crumbs a:hover { color: var(--hero-ink) }

/* Cards / grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 28px); min-width: 0 }
.card.shadow { box-shadow: var(--shadow) }
.grid { display: grid; gap: 16px }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)) }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)) } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr) } }

/* Icon tiles */
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.c-invest { background: var(--brand-soft); color: var(--brand) }
.c-save { background: var(--sky-soft); color: var(--sky) }
.c-loan { background: var(--coral-soft); color: var(--coral) }
.c-plan { background: var(--grape-soft); color: var(--grape) }
.c-sun { background: var(--sun-soft); color: var(--ink) }

/* Calculator tiles */
.tile { display: grid; gap: 12px; align-content: start; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; transition: transform .15s, border-color .15s, box-shadow .15s; cursor: pointer; text-align: left; font: inherit }
.tile:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow) }
.tile h3 { font-size: 18px }
.tile p { color: var(--muted); font-size: 14.5px }
.tile .go { font-size: 14px; font-weight: 600; color: var(--brand); margin-top: auto }
.tile.feature { grid-column: span 2; background: var(--hero); color: var(--hero-ink); border-color: var(--hero-line); grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 26px }
.tile.feature p { color: var(--hero-muted) }
.tile.feature h3 { font-size: 24px }
.tile.feature .big { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--sun); text-align: right; line-height: 1 }
.tile.feature .big small { display: block; font-family: var(--body); font-size: 12.5px; color: var(--hero-muted); font-weight: 500; margin-top: 6px }
@media (max-width: 620px) { .tile.feature { grid-column: auto; grid-template-columns: minmax(0, 1fr) } .tile.feature .big { text-align: left } }

/* Calculator panel */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow) }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr) } }
.calc-in { padding: clamp(20px, 3vw, 34px); display: grid; gap: 22px; align-content: start; border-right: 1px solid var(--line) }
@media (max-width: 900px) { .calc-in { border-right: 0; border-bottom: 1px solid var(--line) } }
.calc-out { padding: clamp(20px, 3vw, 34px); display: grid; gap: 22px; align-content: start; background: var(--raised); min-width: 0 }
.seg { display: flex; gap: 4px; background: var(--raised); border: 1px solid var(--line); padding: 4px; border-radius: 999px; flex-wrap: wrap }
.seg button { flex: 1; border: 0; background: none; font: 600 14px var(--body); color: var(--muted); padding: 9px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px #0002 }
.fld { display: grid; gap: 10px }
.fld-top { display: flex; justify-content: space-between; align-items: center; gap: 12px }
.fld-top label { font-weight: 600; font-size: 15px }
.fld-top label small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted) }
.vbox { display: inline-flex; align-items: center; gap: 2px; background: var(--brand-soft); color: var(--brand); border-radius: 10px; padding: 0 12px; height: 40px; font-weight: 700; border: 2px solid transparent }
.vbox:focus-within { border-color: var(--brand) }
.vbox input { width: 9ch; border: 0; background: none; font: 700 16px var(--body); color: inherit; text-align: right; outline: none; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield }
.vbox input::-webkit-outer-spin-button, .vbox input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0 }
.vbox span { font-size: 14px }
.fld-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: -4px }
input[type=range].rng { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(to right, var(--brand) var(--p, 50%), var(--line) var(--p, 50%)); outline: none; margin: 6px 0 }
input[type=range].rng::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 6px solid var(--brand); box-shadow: 0 2px 6px #0003; cursor: grab }
input[type=range].rng::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 6px solid var(--brand); box-shadow: 0 2px 6px #0003; cursor: grab }
input[type=range].rng:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--sun) }
.presets { display: flex; gap: 8px; flex-wrap: wrap }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
@media (max-width: 520px) { .stats { grid-template-columns: minmax(0, 1fr) } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; min-width: 0 }
.stat span { display: block; font-size: 13px; color: var(--muted); font-weight: 500 }
.stat b { display: block; font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.stat.hl { background: var(--brand); border-color: var(--brand); color: var(--brand-ink) }
.stat.hl span { color: inherit; opacity: .85 }
.stat.loan.hl { background: var(--coral); border-color: var(--coral); color: #fff }
.viz { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: center }
@media (max-width: 560px) { .viz { grid-template-columns: minmax(0, 1fr); justify-items: center } }
.donut { position: relative; width: 180px; height: 180px }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg) }
.donut .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center }
.donut .mid b { font-family: var(--display); font-size: 26px; line-height: 1 }
.donut .mid span { font-size: 12px; color: var(--muted) }
.legend { display: grid; gap: 10px; width: 100% }
.legend div { display: flex; align-items: center; gap: 10px; font-size: 14.5px; justify-content: space-between }
.legend div span { display: flex; align-items: center; gap: 8px; color: var(--muted) }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block }
.legend b { font-variant-numeric: tabular-nums }
.insight { display: flex; gap: 12px; align-items: flex-start; background: var(--sun-soft); border-radius: var(--r-md); padding: 14px 16px; font-size: 15px }
.insight b { font-weight: 700 }
.insight::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--sun) }
.chartbox { position: relative; height: 260px; width: 100% }
.chartbox canvas { width: 100%; height: 100%; display: block; touch-action: pan-y }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 12.5px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; transform: translate(-50%, -110%); z-index: 2; line-height: 1.45 }
.tip b { font-family: var(--display) }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted) }
.chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px }
.out-actions { display: flex; gap: 10px; flex-wrap: wrap }
details.amort { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface) }
details.amort summary { padding: 14px 16px; cursor: pointer; font-weight: 600 }
.tablewrap { overflow-x: auto }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums }
th, td { padding: 10px 14px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap }
th:first-child, td:first-child { text-align: left }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--raised) }
.note { font-size: 13px; color: var(--muted) }

/* Lessons */
.lcard { display: grid; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .15s, box-shadow .15s }
.lcard:hover { transform: translateY(-3px); box-shadow: var(--shadow) }
.lcard .art { height: 120px; position: relative; display: flex; align-items: flex-end; justify-content: space-between; padding: 14px 16px; overflow: hidden }
.lcard .art .n { font-family: var(--display); font-size: 64px; font-weight: 800; line-height: .8; opacity: .9 }
.lcard .art::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -40px; top: -60px; background: #ffffff33 }
.lcard .body { padding: 16px 18px 18px; display: grid; gap: 6px }
.lcard h3 { font-size: 18px; line-height: 1.2 }
.lcard .hi { color: var(--muted); font-size: 14px }
.lcard .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted) }
.lc1 .art { background: #0f8a5f; color: #eafff5 } .lc2 .art { background: #ffb020; color: #2b1d00 } .lc3 .art { background: #2f7cf6; color: #f0f6ff } .lc4 .art { background: #ef5434; color: #fff3ef }
.lc5 .art { background: #7556f0; color: #f3f0ff } .lc6 .art { background: #0a241c; color: #ffcf6b } .lc7 .art { background: #d63f8c; color: #fff0f7 } .lc8 .art { background: #12a1a6; color: #effeff }
.done-badge { position: absolute; top: 12px; right: 12px; z-index: 1; background: #ffffffe6; color: #0a241c; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px }
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--sun)); border-radius: 999px; transition: width .4s }
.band .progress { background: #ffffff1f }

/* Player */
.player { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start }
@media (max-width: 920px) { .player { grid-template-columns: minmax(0, 1fr) } .side { display: none } }
.side { position: sticky; top: 92px; display: grid; gap: 6px }
.side a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500 }
.side a:hover { background: var(--surface) }
.side a.on { background: var(--surface); color: var(--ink); border: 1px solid var(--line) }
.side a .dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink); flex: none }
.side a.done .dot { background: var(--brand); color: var(--brand-ink); border-color: var(--brand) }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow) }
.stage-top { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line) }
.stage-top .progress { flex: 1 }
.stage-top b { font-size: 13.5px; color: var(--muted); font-weight: 600; white-space: nowrap }
.slide { padding: clamp(24px, 4vw, 48px); min-height: 380px; display: grid; gap: 18px; align-content: start; animation: slideIn .35s ease }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px) } }
.slide .kick { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase }
.slide h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800 }
.slide p { font-size: 18px; max-width: 60ch; color: var(--ink) }
.slide ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 64ch }
.slide li { display: flex; gap: 12px; font-size: 17px; background: var(--raised); border: 1px solid var(--line); padding: 12px 16px; border-radius: 14px }
.slide li b { flex: none }
.bigstat { display: inline-grid; gap: 4px; padding: 18px 24px; border-radius: 20px; justify-self: start }
.bigstat b { font-family: var(--display); font-size: clamp(40px, 7vw, 64px); line-height: 1; font-weight: 800 }
.bigstat span { font-size: 15px; font-weight: 500 }
.tipbox { background: var(--sun-soft); border-radius: 16px; padding: 14px 18px; font-size: 16px; max-width: 64ch }
.tipbox::before { content: "Tip  "; font-weight: 800 }
.stage-nav { display: flex; justify-content: space-between; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--raised) }
.quiz-q { font-family: var(--display); font-size: clamp(22px, 3vw, 30px); font-weight: 700 }
.opts { display: grid; gap: 10px }
.opt { text-align: left; font: 500 16.5px var(--body); color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 14px 18px; cursor: pointer; display: flex; gap: 14px; align-items: center; transition: border-color .12s, transform .12s }
.opt:hover:not([disabled]) { border-color: var(--brand); transform: translateX(3px) }
.opt .k { width: 30px; height: 30px; border-radius: 9px; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none }
.opt.right { border-color: var(--brand); background: var(--brand-soft) }
.opt.right .k { background: var(--brand); color: var(--brand-ink); border-color: var(--brand) }
.opt.wrong { border-color: var(--coral); background: var(--coral-soft) }
.opt.wrong .k { background: var(--coral); color: #fff; border-color: var(--coral) }
.opt[disabled] { cursor: default }
.why { border-radius: 14px; padding: 14px 18px; font-size: 15.5px; background: var(--raised); border: 1px solid var(--line) }
.why b { display: block; margin-bottom: 2px }
.why.ok b { color: var(--brand) } .why.no b { color: var(--coral) }
.result { text-align: center; justify-items: center }
.ring { width: 160px; height: 160px; position: relative }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg) }
.ring div { position: absolute; inset: 0; display: grid; place-content: center }
.ring b { font-family: var(--display); font-size: 40px; line-height: 1 }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60 }

/* Auth */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 69px) }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: minmax(0, 1fr) } .auth-side { display: none } }
.auth-side { background: var(--hero); color: var(--hero-ink); padding: clamp(32px, 5vw, 64px); display: grid; align-content: center; gap: 22px; position: relative; overflow: hidden; isolation: isolate }
.auth-side::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -120px; bottom: -240px; background: radial-gradient(circle, color-mix(in srgb, var(--sun) 35%, transparent), transparent 65%) }
.auth-side h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800 }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--hero-muted) }
.auth-side li { display: flex; gap: 10px } .auth-side li::before { content: "✓"; color: var(--sun); font-weight: 800 }
.auth-main { display: grid; place-items: center; padding: 40px max(20px, env(safe-area-inset-right, 0px)) 40px max(20px, env(safe-area-inset-left, 0px)) }
.auth-card { width: min(440px, 100%); display: grid; gap: 18px }
.auth-card h1 { font-size: 32px; font-weight: 800 }
.input { display: grid; gap: 6px }
.input label { font-weight: 600; font-size: 14px }
.input input { font: 16px var(--body); padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink) }
.input input:focus { outline: 2px solid var(--brand); border-color: transparent }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line) }
.gbtn svg { width: 18px; height: 18px }
.err { color: var(--coral); font-size: 14px; font-weight: 500 }
.demo { font-size: 13px; background: var(--sun-soft); border-radius: 12px; padding: 10px 14px }

/* Glossary */
.az { display: flex; flex-wrap: wrap; gap: 6px }
.az button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: 600 14px var(--body); color: var(--ink); cursor: pointer }
.az button.on { background: var(--ink); color: var(--bg) }
.az button:disabled { opacity: .35; cursor: default }
.search { width: 100%; font: 16px var(--body); padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink) }
.term { display: grid; gap: 6px; align-content: start }
.term h3 { font-size: 19px }
.term h3 small { font-family: var(--hindi); font-weight: 500; font-size: 14px; color: var(--muted); margin-left: 8px; letter-spacing: 0 }
.term p { color: var(--muted); font-size: 15px }

/* Dashboard */
.badge { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 18px 12px; border-radius: var(--r-md); background: var(--raised); border: 1px solid var(--line) }
.badge .medal { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 20px var(--display); background: var(--sun); color: var(--sun-ink); box-shadow: inset 0 -4px 0 #0002 }
.badge.locked { opacity: .45 } .badge.locked .medal { background: var(--line); color: var(--muted) }
.badge b { font-size: 14px } .badge span { font-size: 12.5px; color: var(--muted) }
.saved { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line) }
.saved:first-child { border-top: 0 }
.saved .t { flex: 1; min-width: 0 } .saved .t b { display: block } .saved .t span { font-size: 13.5px; color: var(--muted) }
.empty { text-align: center; color: var(--muted); padding: 24px 12px; font-size: 15px }

/* Footer */
.ftr { background: var(--hero); color: var(--hero-muted); margin-top: auto }
.ftr-in { padding-block: 56px 28px; display: grid; gap: 36px }
.ftr-cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px }
@media (max-width: 820px) { .ftr-cols { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 480px) { .ftr-cols { grid-template-columns: minmax(0, 1fr) } }
.ftr .logo { color: var(--hero-ink) } .ftr .logo small { color: var(--hero-muted) }
.ftr h4 { font-family: var(--body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--hero-ink); margin-bottom: 12px }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px }
.ftr a { color: var(--hero-muted); text-decoration: none } .ftr a:hover { color: var(--hero-ink) }
.ftr .disc { font-size: 13px; border-top: 1px solid var(--hero-line); padding-top: 20px; line-height: 1.6 }
.ftr .disc b { color: var(--hero-ink) }

/* Toast */
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 500; font-size: 14.5px; z-index: 70; box-shadow: var(--shadow); animation: toastIn .25s ease; max-width: calc(100% - 32px) }
.toast a { color: var(--sun) }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px) } }

/* Home specific */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr) } }
.hero-h { font-size: clamp(42px, 7vw, 80px); font-weight: 800; letter-spacing: -.04em; line-height: .98; margin-top: 16px }
.hero-h span { color: var(--sun) }
.hero-tag { font-family: var(--hindi); font-size: clamp(19px, 2.4vw, 24px); color: var(--hero-muted); margin-top: 16px }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px }
.hero-stats div b { display: block; font-family: var(--display); font-size: 30px; color: var(--hero-ink); line-height: 1 }
.hero-stats div span { font-size: 13.5px; color: var(--hero-muted) }
.glass { background: color-mix(in srgb, var(--hero-2) 85%, transparent); border: 1px solid var(--hero-line); border-radius: 26px; padding: 24px; backdrop-filter: blur(6px); display: grid; gap: 16px }
.glass .fld-top label { color: var(--hero-ink) }
.glass .vbox { background: #ffffff14; color: var(--hero-ink) }
.glass input[type=range].rng { background: linear-gradient(to right, var(--sun) var(--p, 50%), #ffffff26 var(--p, 50%)) }
.glass input[type=range].rng::-webkit-slider-thumb { border-color: var(--sun) }
.glass input[type=range].rng::-moz-range-thumb { border-color: var(--sun) }
.glass .fld-scale { color: var(--hero-muted) }
.glass-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
.glass-out div { background: #ffffff0d; border-radius: 16px; padding: 12px 14px }
.glass-out span { display: block; font-size: 12.5px; color: var(--hero-muted) }
.glass-out b { font-family: var(--display); font-size: 24px; color: var(--hero-ink) }
.glass-out div.win b { color: var(--sun) }
.steps { counter-reset: s }
.stepc { display: grid; gap: 10px; align-content: start }
.stepc .ico { font: 800 20px var(--display) }
.stepc h3 { font-size: 20px }
.stepc p { color: var(--muted) }
.cta-band { background: var(--brand); color: var(--brand-ink); border-radius: 32px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center }
@media (max-width: 720px) { .cta-band { grid-template-columns: minmax(0, 1fr) } }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800 }
.cta-band p { opacity: .85; margin-top: 8px }
.cta-band .btn { background: var(--brand-ink); color: var(--brand) }
.ticker { display: flex; gap: 12px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent) }
.ticker-track { display: flex; gap: 12px; animation: tick 40s linear infinite; flex: none }
.ticker .chip { flex: none; cursor: default }
@keyframes tick { to { transform: translateX(calc(-100% - 12px)) } }
/* Daily learning */
.daily { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start }
@media (max-width: 900px) { .daily { grid-template-columns: minmax(0, 1fr) } }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); display: grid; gap: 14px; position: relative; overflow: hidden }
.post.feature { box-shadow: var(--shadow) }
.post.feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--brand), var(--sun)) }
.post-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--muted) }
.post h3 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800 }
.post-sum { font-size: 17px; color: var(--muted) }
.post-body { display: grid; gap: 12px; font-size: 16.5px; max-width: 66ch }
.takeaway { background: var(--brand-soft); border-radius: 14px; padding: 12px 16px; font-size: 15.5px }
.takeaway b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 2px }
.post-actions { display: flex; gap: 10px; flex-wrap: wrap }
.term-day { background: var(--hero); color: var(--hero-ink); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); display: grid; gap: 12px; position: relative; overflow: hidden; isolation: isolate }
.term-day::after { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--sun) 40%, transparent), transparent 70%) }
.term-day .eyebrow { color: var(--sun) }
.term-day h3 { font-size: clamp(30px, 4vw, 42px); font-weight: 800 }
.term-day h3 small { display: block; font-family: var(--hindi); font-size: 18px; font-weight: 500; color: var(--hero-muted); letter-spacing: 0; margin-top: 4px }
.term-day p { color: var(--hero-ink); font-size: 16.5px }
.term-ex { background: #ffffff12; border-radius: 14px; padding: 12px 14px; font-size: 15px; color: var(--hero-muted) }
.term-ex b { display: block; color: var(--sun); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px }
.term-link { color: var(--sun); font-weight: 600; text-decoration: none; font-size: 14.5px }
.week { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: grid; gap: 12px }
.week-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px }
.wd { display: grid; justify-items: center; gap: 4px; font-size: 12px; color: var(--muted) }
.wd i { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 14px }
.wd.on i { background: var(--sun); border: 2px solid var(--sun); color: var(--sun-ink) }
.wd.today span { color: var(--ink); font-weight: 700 }
.wd.today i { border-color: var(--brand) }
.streak { font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1 }
.post-list { display: grid; gap: 14px }
.post.compact h3 { font-size: 21px }
/* Courses */
.ccard { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .15s, box-shadow .15s }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow) }
.ccard .top { padding: 20px 22px; color: #fff; position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-height: 120px }
.ccard .top::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; bottom: -90px; background: #ffffff26 }
.ccard .top .n { font: 800 13px var(--body); letter-spacing: .12em; text-transform: uppercase; opacity: .9 }
.ccard .top h3 { font-size: 24px; margin-top: 6px; color: #fff }
.ccard .top .lv { background: #ffffff2b; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; position: relative; z-index: 1 }
.ccard .bd { padding: 18px 22px 20px; display: grid; gap: 12px; align-content: start }
.ccard .bd p { color: var(--muted); font-size: 14.5px }
.ccard .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); gap: 10px }
.chlist { display: grid; gap: 10px }
.chrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); transition: border-color .15s }
.chrow:hover { border-color: var(--brand) }
.chrow .no { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font: 800 18px var(--display); background: var(--raised); border: 1px solid var(--line) }
.chrow.read .no { background: var(--brand); color: var(--brand-ink); border-color: var(--brand) }
.chrow b { display: block; font-family: var(--display); font-size: 17px }
.chrow span.d { font-size: 14px; color: var(--muted) }
.reader { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start }
@media (max-width: 960px) { .reader { grid-template-columns: minmax(0, 1fr) } .reader .side { display: none } }
.article { max-width: 760px; display: grid; gap: 22px }
.article h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800 }
.sec { display: grid; gap: 14px; animation: slideIn .4s ease }
.sec h2 { font-size: clamp(22px, 2.8vw, 28px); display: flex; gap: 12px; align-items: baseline }
.sec h2 .k { font: 700 13px var(--body); color: var(--muted) }
.sec p, .sec li { font-size: 17.5px; line-height: 1.75 }
.sec ul.rlist { margin: 0; padding-left: 22px; display: grid; gap: 6px }
.cont { justify-self: start }
.readbar { position: fixed; left: 0; right: 0; top: calc(68px + env(safe-area-inset-top, 0px)); height: 4px; z-index: 39; background: transparent }
.readbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--sun)) }
.wg { background: var(--raised); border: 1px solid var(--line); border-radius: 20px; padding: clamp(16px, 2.4vw, 24px); display: grid; gap: 14px; margin-top: 4px }
.wg-h { display: grid; gap: 8px }
.wg-h b { font-family: var(--display); font-size: 19px; line-height: 1.3 }
.wg-tag { justify-self: start; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand) }
.wg-tag.sun { background: var(--sun-soft); color: var(--ink) } .wg-tag.grape { background: var(--grape-soft); color: var(--grape) } .wg-tag.sky { background: var(--sky-soft); color: var(--sky) } .wg-tag.coral { background: var(--coral-soft); color: var(--coral) }
.wg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start }
@media (max-width: 640px) { .wg-grid { grid-template-columns: minmax(0, 1fr) } }
.wg-fields { display: grid; gap: 18px }
.wg-out { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px }
.wg-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; padding: 6px 0; border-bottom: 1px dashed var(--line) }
.wg-row:last-of-type { border-bottom: 0 }
.wg-row span { color: var(--muted) }
.wg-row b { font-variant-numeric: tabular-nums; text-align: right }
.wg-row.hl b { font-family: var(--display); font-size: 20px; color: var(--brand) }
.wg-bars { display: grid; gap: 10px; margin-top: 4px }
.wg-bl { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 4px; gap: 8px }
.wg-bl span { color: var(--muted) }
.wg-bars .track { height: 12px; background: var(--line); border-radius: 6px; overflow: hidden }
.wg-bars .track i { display: block; height: 100%; border-radius: 6px; transition: width .35s }
.wg-note { font-size: 13.5px; color: var(--muted) }
.wg.fact { background: var(--sun-soft); border-color: transparent }
.wg.fact p { font-size: 16.5px }
.ord-pick { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px }
.ord-ans { margin: 0; padding-left: 24px; display: grid; gap: 6px; font-size: 15.5px }
.ord-ans li.ok { color: var(--brand); font-weight: 600 } .ord-ans li.no { color: var(--coral); font-weight: 600 }
.wg-acts { display: flex; gap: 8px }
.flips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px }
.flip { position: relative; min-height: 112px; border: 0; padding: 0; background: none; cursor: pointer; perspective: 800px; font: inherit; color: inherit }
.flip span { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; border-radius: 14px; backface-visibility: hidden; transition: transform .45s; font-size: 14.5px; line-height: 1.4 }
.flip .fr { background: var(--surface); border: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 16.5px }
.flip .bk { background: var(--brand); color: var(--brand-ink); transform: rotateY(180deg); font-weight: 500 }
.flip.on .fr { transform: rotateY(180deg) } .flip.on .bk { transform: rotateY(360deg) }
.tfs { display: grid; gap: 10px }
.tf { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px }
.tf p { font-size: 15.5px; font-weight: 500 }
.tf-b { display: flex; gap: 8px }
.tf .chip.good { background: var(--brand); color: var(--brand-ink); border-color: var(--brand) } .tf .chip.bad { background: var(--coral); color: #fff; border-color: var(--coral) }
.tf-why { font-size: 14.5px; color: var(--muted) } .gtxt { color: var(--brand) } .btxt { color: var(--coral) }
.gl { font: inherit; color: inherit; background: none; border: 0; padding: 0; border-bottom: 2px dotted var(--brand); cursor: help; position: relative; font-weight: 600 }
.gl-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: min(300px, 80vw); background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 400; line-height: 1.5; padding: 10px 12px; border-radius: 12px; text-align: left; box-shadow: var(--shadow) }
.takeaways { background: var(--hero); color: var(--hero-ink); border-radius: 24px; padding: clamp(20px, 3vw, 30px); display: grid; gap: 12px }
.takeaways .eyebrow { color: var(--sun) }
.takeaways ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px }
.takeaways li { display: flex; gap: 12px; font-size: 16.5px } .takeaways li::before { content: "✓"; color: var(--sun); font-weight: 800 }
.qbox { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden }
.qbox .stage-nav { justify-content: flex-end }
.nextcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--brand); color: var(--brand-ink); border-radius: 24px; padding: 22px 26px; text-decoration: none }
.nextcard small { opacity: .85; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase }
.nextcard b { display: block; font-family: var(--display); font-size: 22px }
.cert { background: var(--surface); border: 10px double var(--brand); border-radius: 20px; padding: clamp(24px, 5vw, 56px); text-align: center; display: grid; gap: 14px; justify-items: center; position: relative }
.cert .seal { width: 84px; height: 84px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; font: 800 15px var(--display); box-shadow: inset 0 -5px 0 #0002 }
.cert h2 { font-size: clamp(26px, 4vw, 40px) } .cert .who { font-family: var(--display); font-size: clamp(30px, 5vw, 48px); color: var(--brand); font-weight: 800 }
.cert .meta { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--muted) }
@media print { body * { visibility: hidden } .cert, .cert * { visibility: visible } .cert { position: absolute; inset: 20px } }
/* Announcement bar */
.annc { font-size: 14.5px; font-weight: 500 }
.annc.info { background: var(--brand); color: var(--brand-ink) } .annc.warn { background: var(--sun); color: var(--sun-ink) } .annc.alert { background: var(--coral); color: #fff }
.annc-in { display: flex; gap: 14px; align-items: center; justify-content: center; padding-block: 9px; flex-wrap: wrap; text-align: center }
.annc a { color: inherit; font-weight: 700 }
.annc button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 15px; opacity: .8 }

/* Admin */
.adm { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start }
@media (max-width: 900px) { .adm { grid-template-columns: minmax(0, 1fr) } .adm-nav { flex-direction: row !important; overflow-x: auto } }
.adm-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 92px }
.adm-nav button { text-align: left; font: 600 14.5px var(--body); padding: 11px 14px; border-radius: 12px; border: 0; background: none; color: var(--muted); cursor: pointer; white-space: nowrap }
.adm-nav button:hover { background: var(--surface) } .adm-nav button.on { background: var(--surface); color: var(--ink); box-shadow: inset 3px 0 0 var(--brand) }
.adm-panel { display: grid; gap: 18px; min-width: 0 }
.adm-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap }
.adm-h h2 { font-size: 26px }
.f { display: grid; gap: 6px } .f label { font-weight: 600; font-size: 13.5px }
.f small { color: var(--muted); font-size: 12.5px }
.f input, .f select, .f textarea, .ed input, .ed select, .ed textarea { font: 15px var(--body); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100% }
.f textarea, .ed textarea { min-height: 90px; resize: vertical; line-height: 1.5 }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 120px }
.f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px } .f3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px }
@media (max-width: 640px) { .f2, .f3 { grid-template-columns: minmax(0, 1fr) } }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px }
.tbl td, .tbl th { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; white-space: normal }
.tbl th { background: var(--raised); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted) }
.ed { display: grid; grid-template-columns: 1fr 1fr 2fr 2fr auto; gap: 8px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line) }
.ed.g3c { grid-template-columns: 1fr 1fr 3fr auto }
@media (max-width: 760px) { .ed, .ed.g3c { grid-template-columns: minmax(0, 1fr) } }
.blk { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; background: var(--raised) }
.blk-h { display: flex; justify-content: space-between; align-items: center; gap: 8px }
.mode { border-radius: 16px; padding: 14px 18px; font-size: 14.5px }
.mode.live { background: var(--brand-soft) } .mode.demo { background: var(--sun-soft) }
.danger { color: var(--coral) !important }
/* Login wall */
.lock { display: grid; gap: 12px; justify-items: center; text-align: center; padding: clamp(28px, 5vw, 48px) 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow) }
.lock-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-soft); color: var(--ink) }
.lock-ico svg { width: 28px; height: 28px }
.lock h2 { font-size: clamp(22px, 3vw, 30px) } .lock p { max-width: 46ch }
.lock-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px }
.pill.lockp { background: var(--sun-soft); color: var(--ink) }

/* Simple home */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center }
@media (max-width: 900px) { .home-hero { grid-template-columns: minmax(0, 1fr) } }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
@media (max-width: 460px) { .doors { grid-template-columns: minmax(0, 1fr) } }
.door { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: 22px; text-decoration: none; color: var(--hero-ink); background: #ffffff0f; border: 1px solid var(--hero-line); transition: transform .15s, background .15s }
.door:hover { transform: translateY(-3px); background: #ffffff1a }
.door .ico { width: 44px; height: 44px }
.door b { font-family: var(--display); font-size: 20px }
.door span { font-size: 14px; color: var(--hero-muted) }
.today { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
@media (max-width: 720px) { .today { grid-template-columns: minmax(0, 1fr) } }
.today a { display: grid; gap: 6px; padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s }
.today a:hover { border-color: var(--brand) }
.today small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand) }
.today b { font-family: var(--display); font-size: 20px; line-height: 1.25 }
.today span { color: var(--muted); font-size: 14.5px }
.prose { display: grid; gap: 16px; max-width: 70ch }
.prose h2 { font-size: 28px; margin-top: 18px }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } }
