.chapter-skeleton-list { display: grid; gap: 9px; }
.chapter-skeleton { min-height: 70px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(100deg, var(--surface-muted) 35%, color-mix(in srgb, var(--surface) 82%, var(--orange)) 50%, var(--surface-muted) 65%); background-size: 220% 100%; animation: rankcircuit-shimmer 1.35s ease-in-out infinite; }
@keyframes rankcircuit-shimmer { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .chapter-skeleton { animation: none; } }

:root {
  color-scheme: light;
  --bg: #fffaf2;
  --surface: #ffffff;
  --surface-soft: #fff2e1;
  --surface-muted: #f4ede5;
  --line: #eadfd3;
  --text: #2b2019;
  --muted: #907e70;
  --orange: #ff7a32;
  --orange-dark: #d9521e;
  --orange-soft: #fff0df;
  --violet: #8967e8;
  --blue: #4f9fe5;
  --green: #35a56a;
  --red: #dd625e;
  --correct-bg: #e7f8ed;
  --correct-text: #226c45;
  --wrong-bg: #fff0ef;
  --wrong-text: #a23d3a;
  --gold: #e5a632;
  --shadow: 0 16px 40px rgba(114, 70, 32, .1);
  --radius: 22px;
  --sidebar: 190px;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15120f;
  --surface: #211c18;
  --surface-soft: #332018;
  --surface-muted: #2a2521;
  --line: #40362e;
  --text: #fff8f0;
  --muted: #a89a8e;
  --orange-soft: #3d2518;
  --correct-bg: #173a2a;
  --correct-text: #8de0ad;
  --wrong-bg: #452321;
  --wrong-text: #ffaaa4;
  --shadow: 0 18px 45px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; }
h1 { margin-bottom: 9px; font-size: clamp(32px, 5vw, 49px); line-height: 1.03; }
h2 { margin-bottom: 7px; font-size: 22px; line-height: 1.1; }
h3 { margin-bottom: 4px; font-size: 16px; }
.icon { display: inline-block; flex: none; vertical-align: middle; }
.eyebrow { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; }
.muted { color: var(--muted); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: var(--sidebar); display: flex; flex-direction: column; padding: 28px 13px 15px; border-right: 1px solid var(--line); background: var(--surface); }
.brand-lockup, .topbar-brand { display: flex; align-items: center; gap: 9px; letter-spacing: .16em; }
.brand-lockup { padding: 0 10px; font-size: 13px; }
.sidebar nav { display: grid; gap: 5px; margin-top: 75px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 12px; text-align: left; cursor: pointer; }.nav-item:hover { background: var(--surface-muted); color: var(--text); }.nav-item.active { background: var(--orange-soft); color: var(--orange-dark); }.nav-item.active .icon { color: var(--orange); }
.sidebar-bottom { display: grid; gap: 11px; margin-top: auto; }.mini-rank { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }.mini-rank > span { font-size: 24px; color: var(--gold); }.mini-rank div { display: grid; gap: 1px; }.mini-rank small { color: var(--muted); font-size: 9px; }.mini-rank strong { font-size: 12px; }.sidebar-user { display: flex; align-items: center; gap: 8px; padding: 5px; border: 0; background: transparent; cursor: pointer; text-align: left; }.sidebar-user span:nth-child(2) { flex: 1; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.sidebar-user .icon { color: var(--muted); }
.main-content { grid-column: 2; min-width: 0; padding: 0 clamp(18px, 5vw, 74px) 70px; }.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }.topbar-brand { display: none; font-size: 12px; }.topbar-right { display: flex; align-items: center; gap: 7px; margin-left: auto; }.tiny-stat { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; color: var(--muted); font-size: 10px; }.tiny-stat.flame { color: var(--orange); }.tiny-stat.coin { color: var(--gold); }.icon-button { display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer; }.icon-button:hover { color: var(--text); border-color: var(--orange); }
.mobile-nav { display: none; }

.page { width: min(100%, 760px); margin: 0 auto; padding-top: 44px; }.page-list { max-width: 720px; }.page-intro { margin-bottom: 26px; }.page-intro h1 { margin-top: 8px; }.page-intro p { margin: 0; color: var(--muted); font-size: 13px; }.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 23px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }.back-link:hover { color: var(--orange); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; font-size: 12px; font-weight: 800; cursor: pointer; transition: .2s ease; }.button:hover:not(:disabled) { transform: translateY(-2px); }.button-primary { background: var(--orange); color: #241109; box-shadow: 0 9px 22px rgba(255, 122, 50, .2); }.button-secondary { border-color: var(--line); background: var(--surface); color: var(--text); }.button-ghost { border: 0; background: transparent; color: var(--muted); }.button-text { min-height: 24px; padding: 0; border: 0; background: transparent; color: var(--orange-dark); }.button-text:hover:not(:disabled) { color: var(--orange); }.wide-button { width: 100%; min-height: 50px; }.button:disabled { opacity: .4; cursor: not-allowed; }

.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 2px solid var(--surface); border-radius: 12px; background: linear-gradient(145deg, #ffb56f, #e05e39 55%, #7a54d1); color: white; font-size: 12px; font-weight: 900; box-shadow: 0 3px 12px rgba(126, 66, 32, .16); }.avatar.small { width: 28px; height: 28px; border-radius: 9px; font-size: 10px; }.avatar.large { width: 74px; height: 74px; border-radius: 24px; font-size: 21px; }
.progress-track { width: 100%; height: 6px; overflow: hidden; border-radius: 99px; background: var(--surface-muted); }.progress-fill { display: block; height: 100%; border-radius: inherit; }.fill-orange { background: var(--orange); }.fill-violet { background: var(--violet); }.fill-blue { background: var(--blue); }.fill-green { background: var(--green); }.fill-red { background: var(--red); }.fill-gold { background: var(--gold); }

.learn-hero { position: relative; min-height: 365px; padding: 28px 28px 31px; overflow: hidden; border-radius: 28px; background: radial-gradient(circle at 80% 28%, rgba(255, 174, 91, .32), transparent 28%), linear-gradient(135deg, #fff1dd, #ffe4c1); box-shadow: var(--shadow); }.learn-hero .hero-topline { position: relative; z-index: 2; display: flex; justify-content: space-between; }.streak-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid rgba(229, 166, 50, .25); border-radius: 99px; color: #a26a12; font-size: 9px; font-weight: 800; }.hero-circuit { position: absolute; top: 41px; right: 55px; width: 165px; height: 165px; border: 1px solid rgba(214, 116, 48, .26); border-radius: 50%; transform: rotate(28deg); }.hero-circuit::before, .hero-circuit::after { position: absolute; inset: 16px -26px; border: 1px solid rgba(214, 116, 48, .2); border-radius: 50%; content: ""; }.hero-circuit::after { inset: -27px 16px; transform: rotate(58deg); border-color: rgba(137, 103, 232, .2); }.circuit-dot { position: absolute; z-index: 3; width: 8px; height: 8px; border: 2px solid #ffe4c1; border-radius: 50%; background: var(--orange); }.circuit-dot.one { top: 6px; right: 19px; }.circuit-dot.two { bottom: 17px; left: 19px; background: var(--violet); }.learn-hero h1 { position: relative; z-index: 1; max-width: 370px; margin-top: 74px; color: #2c1d13; font-size: clamp(38px, 6vw, 57px); }.learn-hero h1 em { color: var(--orange-dark); font-family: Georgia, serif; font-weight: 400; }.learn-hero p { position: relative; z-index: 1; max-width: 310px; margin-bottom: 21px; color: #8b6750; font-size: 13px; }.learn-hero .button { position: relative; z-index: 2; min-width: 139px; }
.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 12px 0 31px; }.quick-stats > div { display: grid; gap: 1px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }.quick-stats strong { font-size: 20px; letter-spacing: -.04em; }.quick-stats span { color: var(--muted); font-size: 9px; }
.section-line { display: flex; align-items: center; justify-content: space-between; margin: 0 0 11px; }.section-line h2 { margin: 0; font-size: 20px; }.lesson-path { display: grid; gap: 9px; }.lesson-node { position: relative; display: grid; grid-template-columns: 25px 44px minmax(0,1fr) 93px 16px; align-items: center; gap: 11px; width: 100%; padding: 10px 13px 10px 9px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; cursor: pointer; }.lesson-node:hover { border-color: var(--orange); transform: translateX(3px); }.node-number { color: var(--muted); font-size: 10px; font-weight: 800; }.node-icon, .chapter-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--orange-soft); color: var(--orange-dark); font-family: Georgia, serif; font-size: 24px; }.node-violet .node-icon, .chapter-violet { background: #eee8ff; color: var(--violet); }.node-blue .node-icon, .chapter-blue { background: #e8f3ff; color: var(--blue); }.node-copy { display: grid; gap: 2px; min-width: 0; }.node-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.node-copy small { color: var(--muted); font-size: 10px; }.node-progress { display: grid; gap: 5px; }.lesson-node > .icon { color: var(--muted); }.small-callout { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }.callout-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--orange-soft); color: var(--orange); }.callout-icon.violet { background: #eee8ff; color: var(--violet); }.small-callout div { display: grid; flex: 1; gap: 1px; }.small-callout strong { font-size: 11px; }.small-callout small { color: var(--muted); font-size: 9px; }.small-callout > button { display: grid; place-items: center; padding: 3px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }

.filter-pills { display: flex; gap: 5px; margin-bottom: 12px; overflow-x: auto; }.filter-pill, .size-pill { flex: none; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 10px; cursor: pointer; }.filter-pill.active, .size-pill.active { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-dark); }.chapter-list { display: grid; gap: 8px; }.chapter-row { display: grid; grid-template-columns: 45px minmax(0, 1fr) 87px 16px; align-items: center; gap: 11px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; cursor: pointer; }.chapter-row:hover { border-color: var(--orange); }.chapter-row-copy { display: grid; gap: 3px; min-width: 0; }.chapter-row-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.chapter-row-copy small, .chapter-row-progress small { color: var(--muted); font-size: 9px; }.chapter-row-progress { display: grid; gap: 4px; }.chapter-row > .icon { color: var(--muted); }

.focus-card { position: relative; padding: 25px; overflow: hidden; border-radius: 25px; background: linear-gradient(135deg, #fff0dc, #ffe4bd); }.focus-symbol { display: grid; place-items: center; width: 55px; height: 55px; margin-bottom: 20px; border-radius: 17px; background: rgba(255, 255, 255, .55); color: var(--orange-dark); font-family: Georgia, serif; font-size: 30px; }.focus-card h1 { margin: 7px 0 4px; color: #2c1d13; }.focus-card p { margin-bottom: 21px; color: #8b6750; font-size: 12px; }.focus-metrics { display: flex; gap: 19px; }.focus-metrics span { display: grid; gap: 1px; color: #8b6750; font-size: 9px; }.focus-metrics strong { color: #2c1d13; font-size: 16px; }.concept-strip, .session-picker { margin-top: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }.concept-strip > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }.concept-pill { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 999px; background: var(--surface-muted); color: var(--muted); font-size: 9px; }.concept-pill.strong { background: #e7f8ed; color: var(--green); }.concept-pill.weak { background: #fff0ef; color: var(--red); }.concept-pill.improving { background: #fff5df; color: #ac7a18; }.session-picker { display: grid; gap: 12px; }.size-pills { display: flex; gap: 6px; overflow-x: auto; }.mode-line { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }.mode-line > span { display: grid; gap: 2px; }.mode-line strong { font-size: 11px; }.mode-line small { color: var(--muted); font-size: 9px; }.mode-toggle { width: 42px; height: 24px; padding: 3px; border: 0; border-radius: 99px; background: var(--surface-muted); cursor: pointer; text-align: left; }.mode-toggle i { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .2s ease; }.mode-toggle.on { background: var(--orange); }.mode-toggle.on i { margin-left: 18px; background: white; }

.page-intro + .signal-grid, .signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }.signal-big { display: grid; gap: 3px; min-height: 110px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }.signal-big strong { margin-top: 9px; font-size: 23px; }.signal-big small { color: var(--muted); font-size: 9px; }.queue-list, .review-list { display: grid; gap: 8px; }.queue-row, .review-row { display: grid; grid-template-columns: 30px minmax(0,1fr) 32px; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }.queue-row > span { color: var(--muted); font-size: 10px; }.queue-row div, .review-row div { display: grid; gap: 2px; }.queue-row strong, .review-row strong { font-size: 12px; }.queue-row small, .review-row small { color: var(--muted); font-size: 9px; }.queue-row button { display: grid; place-items: center; width: 29px; height: 29px; border: 0; border-radius: 50%; background: var(--orange-soft); color: var(--orange); cursor: pointer; }

.page-rank .page-intro { margin-bottom: 19px; }.rank-card { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }.rank-current { display: grid; grid-template-columns: 60px minmax(0,1fr) auto; align-items: center; gap: 12px; margin-bottom: 16px; }.rank-medal, .rank-detail-medal { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(145deg, #f0c17d, #a85b2d); color: white; font-size: 27px; }.rank-medal.silver, .rank-detail-medal.silver { background: linear-gradient(145deg, #dbe4e4, #72888b); }.rank-medal.gold, .rank-detail-medal.gold { background: linear-gradient(145deg, #ffe89a, #d99825); }.rank-medal.violet, .rank-detail-medal.violet { background: linear-gradient(145deg, #c9b9ff, #7755d8); }.rank-current h2 { margin: 5px 0 1px; font-size: 21px; }.rank-current p { margin: 0; color: var(--muted); font-size: 10px; }.rank-current > strong { font-size: 26px; }.rank-ladder { display: flex; gap: 9px; padding: 19px 0 15px; overflow-x: auto; scrollbar-width: thin; }.rank-step { display: grid; justify-items: center; gap: 5px; flex: 0 0 57px; padding: 7px 3px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--muted); cursor: pointer; }.rank-step:hover, .rank-step.selected { border-color: var(--line); background: var(--surface-muted); }.rank-step.current { color: var(--orange-dark); }.rank-step span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 10px; background: var(--surface-muted); color: var(--gold); font-size: 16px; }.rank-step.current span { background: var(--orange-soft); }.rank-step small { font-size: 8px; }.rank-detail { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }.rank-detail-medal { width: 35px; height: 35px; border-radius: 10px; font-size: 17px; }.rank-detail div { display: grid; gap: 2px; }.rank-detail strong { font-size: 11px; }.rank-detail small { color: var(--muted); font-size: 9px; }.rank-note { display: flex; align-items: center; gap: 8px; margin-top: 11px; color: var(--muted); }.rank-note .icon { color: var(--green); }.rank-note p { margin: 0; font-size: 9px; }

.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }.profile-head h1 { margin: 5px 0 2px; font-size: 33px; }.profile-head p { margin: 0; color: var(--muted); font-size: 11px; }.profile-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }.profile-stats > div { display: grid; gap: 1px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.profile-stats strong { font-size: 21px; }.profile-stats small { color: var(--muted); font-size: 9px; }.profile-rank { display: grid; grid-template-columns: 58px minmax(0,1fr); align-items: center; gap: 11px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }.profile-rank .progress-track { grid-column: 1 / -1; }.profile-rank h2 { margin: 5px 0 1px; font-size: 20px; }.profile-rank small { color: var(--muted); font-size: 9px; }.profile-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }

.admin-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; }.admin-head .page-intro { flex: 1; }.admin-status { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 99px; background: #e7f8ed; color: var(--green); font-size: 9px; font-weight: 800; white-space: nowrap; }.admin-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 15px; }.admin-stats > div { display: grid; gap: 2px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.admin-stats strong { font-size: 21px; }.admin-stats small { color: var(--muted); font-size: 9px; }.admin-tabs { display: flex; gap: 5px; margin-bottom: 11px; padding-bottom: 7px; border-bottom: 1px solid var(--line); overflow-x: auto; }.admin-tabs button { padding: 6px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; text-transform: capitalize; cursor: pointer; }.admin-tabs button.active { background: var(--surface-muted); color: var(--text); }.admin-panel { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }.panel-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 14px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); }.admin-panel h2 { margin-bottom: 6px; }.admin-panel > p { margin-bottom: 18px; color: var(--muted); font-size: 11px; }.admin-actions { display: flex; flex-wrap: wrap; gap: 7px; }.security-note { display: flex; align-items: start; gap: 6px; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }.security-note .icon { color: var(--green); }.panel-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.panel-title h2 { margin-top: 5px; }.import-badge { padding: 5px 7px; border-radius: 6px; background: var(--surface-muted); color: var(--muted); font-size: 8px; font-weight: 800; }.admin-chapter-list { display: grid; gap: 6px; }.admin-chapter-row { display: grid; grid-template-columns: 37px minmax(0,1fr) auto 25px; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; }.admin-chapter-row .chapter-icon { width: 37px; height: 37px; border-radius: 10px; font-size: 19px; }.admin-chapter-row div { display: grid; gap: 1px; }.admin-chapter-row strong { font-size: 11px; }.admin-chapter-row small { color: var(--muted); font-size: 9px; }.published-dot { color: var(--green); font-size: 8px; }.admin-chapter-row button { display: grid; place-items: center; padding: 5px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }.chapter-form { display: grid; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.form-grid input, .import-box { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-muted); color: var(--text); font-size: 11px; }.form-grid input { min-height: 37px; padding: 0 10px; }.import-box { min-height: 170px; margin-bottom: 9px; padding: 11px; resize: vertical; }.import-status { margin-top: 9px; padding: 9px; border-radius: 8px; background: #e7f8ed; color: var(--green); font-size: 9px; }.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }.setting-row span { display: grid; gap: 1px; }.setting-row strong { font-size: 11px; }.setting-row small { color: var(--muted); font-size: 9px; }.setting-row b { color: var(--orange-dark); font-size: 17px; }

.practice-page { min-height: 100vh; background: var(--bg); }.practice-top { position: sticky; top: 0; z-index: 4; display: grid; grid-template-columns: 37px 130px minmax(0,1fr) auto; align-items: center; gap: 13px; min-height: 70px; padding: 10px max(18px, 5vw); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(13px); }.practice-top > div:nth-child(2) { display: grid; gap: 2px; }.practice-top > div:nth-child(2) strong { font-size: 18px; }.practice-top > div:nth-child(2) small { color: var(--muted); font-size: 10px; }.practice-mode { color: var(--muted); font-size: 9px; }.practice-main { width: min(100%, 700px); margin: 0 auto; padding: 55px 18px 45px; }.practice-meta { display: flex; gap: 7px; margin-bottom: 12px; color: var(--muted); font-size: 10px; }.question-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }.question-card h1 { margin: 0 0 22px; font-size: clamp(25px,4vw,35px); line-height: 1.13; }.option-list { display: grid; gap: 8px; }.option-card { display: grid; grid-template-columns: 29px minmax(0,1fr) 17px; align-items: center; gap: 9px; width: 100%; min-height: 55px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 11px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }.option-card:hover:not(:disabled), .option-card.selected { border-color: var(--orange); background: var(--orange-soft); }.option-card.correct { border-color: var(--green); background: var(--correct-bg); color: var(--correct-text); }.option-card.wrong { border-color: var(--red); background: var(--wrong-bg); color: var(--wrong-text); }.option-key { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 10px; font-weight: 800; }.answer-note { display: flex; align-items: start; gap: 8px; margin-top: 13px; padding: 12px; border-radius: 10px; font-size: 11px; }.answer-note.good { background: var(--correct-bg); color: var(--green); }.answer-note.bad { background: var(--wrong-bg); color: var(--red); }.answer-note span { display: grid; gap: 3px; }.answer-note small { color: var(--muted); font-size: 10px; line-height: 1.45; }.practice-main > .button { margin-top: 15px; }.keyboard-hint { margin: 14px 0 0; color: var(--muted); font-size: 9px; text-align: center; }.practice-live { position: fixed; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.results-page { text-align: center; }.results-hero { padding: 42px 20px 35px; border-radius: 27px; background: radial-gradient(circle at 50% 0%, rgba(255, 188, 83, .35), transparent 33%), var(--orange-soft); }.results-hero h1 { margin: 10px 0 0; color: var(--orange-dark); font-size: clamp(64px, 12vw, 104px); line-height: .88; }.results-hero p { margin: 12px 0 13px; color: var(--muted); font-size: 12px; }.result-tier { color: var(--orange-dark); font-size: 10px; font-weight: 800; }.result-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 12px 0; }.result-stats > div { display: grid; gap: 2px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.result-stats strong { font-size: 21px; }.result-stats small { color: var(--muted); font-size: 9px; }.result-actions { display: flex; justify-content: center; gap: 8px; margin-top: 13px; }.review-row { grid-template-columns: 25px minmax(0,1fr); }.review-row > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #fff0ef; color: var(--red); }.review-row.correct > span { background: #e7f8ed; color: var(--green); }.review-row div { gap: 3px; }.review-row strong { margin-top: 3px; }.review-row small { line-height: 1.45; }

@media (max-width: 780px) {
  .app-shell { display: block; }.sidebar { display: none; }.main-content { padding: 0 16px 78px; }.topbar-brand { display: flex; }.topbar { min-height: 66px; }.mobile-nav { position: fixed; right: 12px; bottom: 12px; left: 12px; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 5px; border: 1px solid var(--line); border-radius: 17px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 10px 30px rgba(0,0,0,.15); backdrop-filter: blur(14px); }.mobile-nav .nav-item { display: grid; justify-items: center; gap: 2px; padding: 7px 3px; font-size: 9px; text-align: center; }.mobile-nav .nav-item.active::before { display: none; }.page { padding-top: 29px; }.learn-hero { min-height: 420px; padding: 23px 21px; }.hero-circuit { top: 50px; right: -25px; opacity: .55; }.learn-hero h1 { margin-top: 94px; font-size: clamp(39px, 13vw, 55px); }.quick-stats { margin-bottom: 26px; }.lesson-node { grid-template-columns: 19px 39px minmax(0,1fr) 60px 15px; gap: 8px; padding-right: 10px; }.node-icon { width: 39px; height: 39px; font-size: 20px; }.node-progress { display: none; }.chapter-row { grid-template-columns: 42px minmax(0,1fr) 55px 14px; }.chapter-row-progress .progress-track { display: none; }.chapter-row-progress { display: flex; align-items: center; justify-content: end; }.chapter-row-progress small { font-size: 8px; }.focus-card { padding: 20px; }.focus-metrics { gap: 12px; }.session-picker { position: sticky; bottom: 84px; z-index: 3; box-shadow: 0 8px 25px rgba(0,0,0,.11); }.page-intro h1 { font-size: 38px; }.signal-grid { grid-template-columns: 1fr 1fr; }.signal-big:last-child { grid-column: 1 / -1; }.admin-head { display: block; }.admin-status { margin-top: -15px; }.practice-top { grid-template-columns: 35px minmax(100px,1fr) auto; gap: 9px; padding: 9px 15px; }.practice-progress { grid-column: 1 / -1; grid-row: 2; }.practice-top { padding-bottom: 11px; }.practice-main { padding-top: 33px; }.result-actions { display: grid; }.result-actions .button { width: 100%; }.form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topbar-right { gap: 2px; }.tiny-stat { padding: 4px; }.learn-hero { min-height: 430px; }.learn-hero .button { width: 100%; }.quick-stats strong { font-size: 18px; }.quick-stats > div { padding: 12px 9px; }.profile-links { grid-template-columns: 1fr; }.rank-current { grid-template-columns: 51px minmax(0,1fr) auto; }.rank-medal { width: 51px; height: 51px; }.rank-current > strong { font-size: 21px; }.rank-ladder { margin-right: -7px; margin-left: -7px; }.rank-step { flex-basis: 52px; }.focus-metrics { justify-content: space-between; }.focus-metrics strong { font-size: 14px; }.question-card { padding: 19px; }.question-card h1 { font-size: 25px; }.option-card { min-height: 53px; }.results-hero { padding-top: 34px; }.results-hero h1 { font-size: 78px; }.result-stats > div { padding: 12px 7px; }.result-stats strong { font-size: 17px; }.admin-panel { padding: 16px; }.admin-chapter-row { grid-template-columns: 35px minmax(0,1fr) auto 21px; }.admin-chapter-row .published-dot { display: none; }.admin-actions { display: grid; }.admin-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.rank-up-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 22px; background: rgba(5, 5, 8, .84); backdrop-filter: blur(9px); perspective: 1200px; animation: rank-up-fade .28s ease-out both; }
.rank-up-card { position: relative; width: min(100%, 420px); display: grid; justify-items: center; gap: 10px; overflow: hidden; padding: 37px 26px 25px; border: 1px solid rgba(255, 201, 117, .48); border-radius: 30px; background: radial-gradient(circle at 50% 0%, rgba(255, 174, 70, .28), transparent 47%), linear-gradient(145deg, #2c1b16, #130f12 72%); color: #fff8ed; box-shadow: 0 30px 100px rgba(0, 0, 0, .6), 0 0 80px rgba(255, 125, 49, .2); text-align: center; transform-origin: 50% 100%; animation: rank-up-card-in .72s cubic-bezier(.18, .9, .22, 1.18) both; }
.rank-up-card::before { position: absolute; inset: 9px; border: 1px solid rgba(255, 216, 145, .14); border-radius: 23px; content: ''; pointer-events: none; }
.rank-up-kicker { position: relative; z-index: 1; color: #ffc46b; font-size: 11px; font-weight: 900; letter-spacing: .24em; animation: rank-up-copy-in .5s .2s both; }
.rank-up-medal { position: relative; z-index: 1; display: grid; place-items: center; width: 100px; height: 100px; margin: 5px 0 2px; border: 3px solid rgba(255, 244, 207, .82); border-radius: 31px; background: linear-gradient(145deg, #f8ca75, #a95728); color: white; font-family: Georgia, serif; font-size: 49px; box-shadow: 0 0 0 11px rgba(255, 176, 73, .1), 0 15px 38px rgba(0, 0, 0, .45); animation: rank-up-medal-pop .82s .08s cubic-bezier(.2, 1.35, .3, 1) both; }
.rank-up-medal.silver { background: linear-gradient(145deg, #dbe5e4, #75878b); }.rank-up-medal.gold { background: linear-gradient(145deg, #ffe99d, #d99825); }.rank-up-medal.violet { background: linear-gradient(145deg, #c9b9ff, #7653d9); }
.rank-up-card h2 { position: relative; z-index: 1; margin: 2px 0 0; color: #fff8ed; font-size: clamp(32px, 9vw, 46px); line-height: 1; animation: rank-up-copy-in .55s .28s both; }
.rank-up-change { position: relative; z-index: 1; margin: 0; color: #d7c6b4; font-size: 12px; animation: rank-up-copy-in .55s .36s both; }.rank-up-change span { margin: 0 7px; color: #ffad50; font-size: 17px; font-weight: 900; }
.rank-up-points { position: relative; z-index: 1; display: grid; gap: 1px; margin-top: 7px; animation: rank-up-copy-in .55s .44s both; }.rank-up-points strong { color: #ffc46b; font-size: 25px; }.rank-up-points span { color: #aa9687; font-size: 10px; }
.rank-up-continue { position: relative; z-index: 1; width: min(100%, 250px); margin-top: 9px; animation: rank-up-copy-in .55s .52s both; }
.rank-up-circuit { position: absolute; border: 1px solid rgba(255, 190, 99, .24); border-radius: 50%; pointer-events: none; }.rank-up-circuit-one { top: -110px; right: -95px; width: 290px; height: 290px; animation: rank-up-circuit-spin 12s linear infinite; }.rank-up-circuit-two { bottom: -140px; left: -115px; width: 310px; height: 310px; border-color: rgba(142, 113, 255, .2); animation: rank-up-circuit-spin 16s linear infinite reverse; }
@keyframes rank-up-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rank-up-card-in { from { opacity: 0; transform: translateY(80px) scale(.72) rotateX(18deg); } 68% { opacity: 1; transform: translateY(-7px) scale(1.025) rotateX(-2deg); } to { opacity: 1; transform: translateY(0) scale(1) rotateX(0); } }
@keyframes rank-up-medal-pop { from { opacity: 0; transform: translateY(24px) scale(.35) rotate(-18deg); } 68% { opacity: 1; transform: translateY(-8px) scale(1.08) rotate(3deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes rank-up-copy-in { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rank-up-circuit-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) { .rank-up-card { padding: 31px 19px 22px; border-radius: 25px; }.rank-up-medal { width: 86px; height: 86px; border-radius: 26px; font-size: 42px; } }

.auth-chip { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.auth-panel { display: grid; gap: 7px; margin: 0 0 13px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(135deg, rgba(255, 242, 222, .86), var(--surface)); }
.auth-panel strong { font-size: 17px; }.auth-panel small { color: var(--muted); line-height: 1.45; }.auth-panel .button { width: max-content; margin-top: 5px; }.auth-panel.signed-in { background: linear-gradient(135deg, rgba(228, 246, 237, .9), var(--surface)); }
.auth-panel .auth-error { color: var(--red); font-weight: 700; }
.google-button::before { content: 'G'; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 3px; border-radius: 50%; color: #4285f4; background: #fff; font-weight: 800; }
.leaderboard-card { display: grid; gap: 12px; margin-top: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }.leaderboard-card h2 { margin: 0; font-size: 21px; }.leaderboard-card p { margin: -5px 0 0; color: var(--muted); line-height: 1.45; }.leaderboard-list { display: grid; gap: 6px; }
.leaderboard-row { display: grid; grid-template-columns: 25px 31px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 8px; border-radius: 12px; }.leaderboard-row.me { background: var(--orange-soft); }.leaderboard-row > strong { color: var(--muted); font-size: 11px; }.leaderboard-row > span { min-width: 0; display: grid; gap: 2px; }.leaderboard-row b, .leaderboard-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.leaderboard-row b { font-size: 12px; }.leaderboard-row small { color: var(--muted); font-size: 10px; }.leaderboard-row em { color: var(--text); font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }

@media (max-width: 480px) { .auth-panel .button { width: 100%; }.leaderboard-card { padding: 15px; }.leaderboard-row { grid-template-columns: 22px 29px minmax(0, 1fr) auto; gap: 6px; }.leaderboard-row em { font-size: 10px; } }

/* Safe rendering for imported question Markdown and LaTeX-style notation. */
.math-inline { display: inline-block; max-width: 100%; vertical-align: middle; white-space: normal; overflow-wrap: anywhere; }
.math-display { display: block; margin: .4em 0; text-align: center; }
.math-frac { display: inline-flex; flex-direction: column; align-items: stretch; justify-content: center; margin: 0 .12em; vertical-align: middle; font-size: .82em; line-height: 1.05; text-align: center; }
.math-num { padding: 0 .2em .12em; border-bottom: 1px solid currentColor; }
.math-den { padding: .12em .2em 0; }
.math-root { display: inline-flex; align-items: flex-start; vertical-align: middle; }
.math-root > span { border-top: 1px solid currentColor; padding: 0 .12em; }
.math-text { font-style: normal; }
.math-decoration { position: relative; display: inline-block; }
.math-script { font-size: .68em; line-height: 0; }
.question-card h1, .option-card > span:nth-child(2), .answer-note small, .review-row strong, .review-row small { overflow-wrap: anywhere; }
.math-frac, .math-root, .math-decoration { white-space: nowrap; }

/* Final launch pass: simple analytics, honest conversion cues, and tight mobile layouts. */
.analytics-basic-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.analytics-basic-grid .signal-big { min-height: 118px; }
.analytics-basic-grid .signal-big strong { overflow: hidden; font-size: clamp(20px, 3vw, 29px); text-overflow: ellipsis; white-space: nowrap; }
.analytics-panel { margin-top: 12px; }
.analytics-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.analytics-two-column > .progress-panel { min-width: 0; }
.analytics-bar-list { display: grid; gap: 16px; }
.analytics-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: end; }
.analytics-bar-row > div { display: grid; gap: 2px; min-width: 0; }
.analytics-bar-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-bar-row small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-bar-row > b { font-size: 12px; }
.analytics-bar-row .progress-track { grid-column: 1 / -1; height: 7px; }
.trend-chip { padding: 5px 7px; border-radius: 7px; font-size: 8px; font-weight: 850; }
.trend-green { background: #e7f8ed; color: var(--green); }.trend-red { background: #fff0ef; color: var(--red); }.trend-amber, .trend-muted { background: #fff5df; color: #a97817; }
.trend-bars { display: flex; align-items: end; justify-content: space-between; gap: 7px; height: 124px; padding-top: 12px; }
.trend-bar-wrap { display: grid; align-items: end; justify-items: center; gap: 7px; height: 100%; min-width: 20px; }
.trend-bar { width: 100%; min-height: 8px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--orange), #ffc069); transition: height .28s ease; }
.trend-bar-wrap small { color: var(--muted); font-size: 8px; }
.analytics-pro-banner { position: relative; overflow: hidden; margin-top: 12px; padding: 21px; border-radius: 19px; background: linear-gradient(120deg, #25214b, #463679); color: #fff; }
.analytics-pro-banner::after { position: absolute; right: -35px; bottom: -90px; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; content: ''; }
.analytics-pro-banner .eyebrow { color: #c8c0ff; }.analytics-pro-banner h2 { position: relative; z-index: 1; margin: 6px 0 3px; color: #fff; font-size: 28px; }.analytics-pro-banner p { position: relative; z-index: 1; margin: 0; color: #d8d1f6; font-size: 11px; }
.weak-topic-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }.weak-topic-row:last-child { border-bottom: 0; }.weak-topic-row div { display: grid; gap: 2px; min-width: 0; }.weak-topic-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.weak-topic-row small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.weak-topic-row b { flex: none; color: var(--red); font-size: 17px; }
.time-signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }.time-signal-grid > div { display: grid; gap: 3px; padding: 10px; border-radius: 11px; background: var(--surface-muted); }.time-signal-grid strong { font-size: 18px; }.time-signal-grid small { color: var(--muted); font-size: 8px; line-height: 1.25; }.analytics-note { margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.mistake-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }.mistake-grid > div { display: grid; gap: 2px; padding: 10px; border-radius: 11px; background: var(--surface-muted); }.mistake-grid strong { font-size: 18px; }.mistake-grid small { color: var(--muted); font-size: 8px; line-height: 1.25; }
.recommendation-row, .recent-activity-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); }.recommendation-row:last-child, .recent-activity-row:last-child { border-bottom: 0; }.recommendation-row > div, .recent-activity-row > span:nth-child(2) { display: grid; flex: 1; gap: 2px; min-width: 0; }.recommendation-row strong, .recent-activity-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.recommendation-row small, .recent-activity-row small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.recommendation-row > button { display: grid; place-items: center; width: 29px; height: 29px; border: 0; border-radius: 50%; background: var(--orange-soft); color: var(--orange); cursor: pointer; }.recent-activity-row > b { color: var(--muted); font-size: 9px; }
.locked-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }.locked-preview-card { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }.locked-preview-card > div { display: grid; flex: 1; gap: 3px; min-width: 0; }.locked-preview-card strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.locked-preview-card small { color: var(--muted); font-size: 9px; line-height: 1.35; }.locked-preview-card > button { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 0; border-radius: 50%; background: var(--orange-soft); color: var(--orange); cursor: pointer; }.locked-preview-icon { display: grid; place-items: center; width: 29px; height: 29px; flex: none; border-radius: 9px; background: var(--surface-muted); color: var(--muted); }
.pricing-card-head p { min-height: 29px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.35; }.is-premium .pricing-card-head p { color: #d7d1ee; }.pricing-missing { display: block; min-height: 28px; margin-top: 13px; color: var(--muted); font-size: 9px; line-height: 1.4; }.pricing-missing.included { color: var(--green); }.pricing-compare { overflow-x: auto; }.pricing-compare > div { grid-template-columns: minmax(150px, 1fr) repeat(3, minmax(55px, 90px)); min-width: 500px; }.pricing-compare > div strong:nth-of-type(2) { color: var(--orange-dark); }.pricing-compare > div strong:nth-of-type(3) { color: var(--violet); }.pricing-compare-head { border-top: 0 !important; color: var(--muted); font-size: 9px !important; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }.pricing-compare-head strong { color: var(--muted) !important; }
.question-card h1 { max-width: 100%; overflow-wrap: anywhere; white-space: pre-wrap; }.option-card > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }.question-card { overflow: hidden; }.practice-main { padding-bottom: max(45px, env(safe-area-inset-bottom)); }.history-replay { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--orange-soft); color: var(--orange); cursor: pointer; }

@media (max-width: 1080px) { .analytics-basic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .analytics-basic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.analytics-basic-grid .signal-big:last-child { grid-column: 1 / -1; }.analytics-two-column { grid-template-columns: 1fr; gap: 0; }.locked-preview-grid { grid-template-columns: 1fr; }.pricing-card-head p { min-height: 0; }.practice-main { padding-right: 12px; padding-left: 12px; } }
@media (max-width: 480px) { .analytics-basic-grid { gap: 7px; }.analytics-basic-grid .signal-big { min-height: 103px; padding: 13px 11px; }.analytics-basic-grid .signal-big strong { font-size: 21px; }.time-signal-grid { gap: 5px; }.time-signal-grid > div { padding: 8px 6px; }.time-signal-grid strong { font-size: 16px; }.trend-bars { gap: 4px; }.pricing-compare > div { min-width: 475px; } }
.result-summary-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }.result-summary-stats > div:last-child strong { font-size: 14px; }.result-primary-action { margin-top: 16px; }.result-primary-action .button { width: min(100%, 350px); min-height: 52px; }.result-secondary-actions { margin-top: 8px; }.result-secondary-actions .button { min-width: 142px; }
@media (max-width: 780px) { .result-summary-stats { grid-template-columns: repeat(3, 1fr); }.result-summary-stats > div:last-child { grid-column: 1 / -1; }.result-secondary-actions { display: flex; flex-wrap: wrap; }.result-secondary-actions .button { flex: 1; } }
@media (max-width: 480px) { .result-summary-stats > div { min-width: 0; padding: 11px 6px; }.result-summary-stats > div:last-child strong { font-size: 12px; }.result-secondary-actions { display: grid; }.result-secondary-actions .button { width: 100%; } }

/* RankCircuit membership and simplified learner shell */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #eef1ff;
  --surface-muted: #f0f2f7;
  --line: #e2e6ef;
  --text: #171a24;
  --muted: #6e7587;
  --orange: #ff7545;
  --orange-dark: #d94c20;
  --orange-soft: #fff0e9;
  --violet: #7665ef;
  --blue: #4c8fe8;
  --green: #2e9d70;
  --gold: #d99825;
  --shadow: 0 20px 50px rgba(35, 43, 68, .08);
  --sidebar: 224px;
}

body[data-theme="dark"] {
  --bg: #101218;
  --surface: #181b24;
  --surface-soft: #20243a;
  --surface-muted: #20232d;
  --line: #2d3241;
  --text: #f5f6fb;
  --muted: #a4aabb;
  --orange-soft: #36231e;
  --shadow: 0 20px 55px rgba(0, 0, 0, .28);
}

body { font-size: 15px; }
h1, h2, h3 { letter-spacing: -.055em; }
.app-shell { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { width: var(--sidebar); padding: 28px 17px 17px; }
.brand-lockup { padding: 0 9px; font-size: 14px; letter-spacing: .12em; }
.brand-line { display: block; margin: 7px 9px 0; color: var(--muted); font-size: 9px; letter-spacing: .02em; }
.sidebar nav { margin-top: 48px; gap: 7px; }
.nav-item { min-height: 46px; padding: 11px 13px; border-radius: 14px; font-size: 12px; }
.nav-item.active { box-shadow: inset 3px 0 var(--orange); }
.main-content { padding-right: clamp(20px, 5vw, 82px); padding-left: clamp(20px, 5vw, 82px); }
.topbar { min-height: 74px; }
.topbar-right { gap: 8px; }
.topbar-membership { display: inline-flex; }
.membership-badge { display: inline-flex; align-items: center; width: fit-content; padding: 6px 9px; border-radius: 999px; background: var(--surface-muted); color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .04em; }
.membership-badge.membership-racer { background: #e8f7ef; color: #258658; }
.membership-badge.membership-pro { background: #eeeaff; color: #604fd3; }
body[data-theme="dark"] .membership-badge.membership-racer { background: #173529; color: #8fe1b4; }
body[data-theme="dark"] .membership-badge.membership-pro { background: #2b2752; color: #c7bfff; }
.button { min-height: 46px; border-radius: 13px; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.page { width: min(100%, 900px); padding-top: 45px; }
.page-intro { margin-bottom: 25px; }
.page-intro h1 { font-size: clamp(39px, 5vw, 60px); }
.page-intro p { max-width: 530px; font-size: 14px; }

.home-greeting { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.home-greeting h1 { margin: 8px 0 4px; font-size: clamp(37px, 5vw, 57px); }
.home-greeting p { margin: 0; color: var(--muted); font-size: 14px; }
.home-hero { position: relative; min-height: 270px; display: flex; align-items: end; overflow: hidden; padding: 28px; border-radius: 28px; background: radial-gradient(circle at 84% 15%, rgba(117, 101, 239, .35), transparent 22%), linear-gradient(135deg, #1c2132, #34385d); color: #fff; box-shadow: 0 24px 55px rgba(38, 40, 80, .2); }
.home-hero::after { position: absolute; right: -70px; bottom: -120px; width: 340px; height: 340px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; content: ''; }
.hero-copy { position: relative; z-index: 2; max-width: 410px; }
.home-hero .streak-chip { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #ffcfb3; }
.home-hero h2 { margin: 16px 0 7px; color: #fff; font-size: clamp(31px, 5vw, 47px); }
.home-hero p { margin: 0 0 20px; color: #c9ccde; font-size: 13px; }
.home-hero .button { background: #fff; color: #252a44; box-shadow: none; }
.hero-circuit { position: absolute; top: 22px; right: 16%; width: 190px; height: 190px; border-color: rgba(255,255,255,.23); }
.hero-circuit::before, .hero-circuit::after { border-color: rgba(255,255,255,.14); }
.home-overview { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 10px; margin: 12px 0 24px; }
.overview-card { display: grid; gap: 5px; min-height: 123px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 6px 20px rgba(33, 43, 66, .03); }
.overview-card strong { font-size: 23px; line-height: 1.05; }
.overview-card strong small { color: var(--muted); font-size: 12px; font-weight: 700; }
.overview-card > small { color: var(--muted); font-size: 10px; }
.overview-card .progress-track { align-self: end; margin-top: 6px; }
.overview-card-top { display: flex; align-items: start; justify-content: space-between; }
.rank-medal.mini { width: 31px; height: 31px; border-radius: 10px; font-size: 15px; }
.quick-start-card, .recommendation-card, .leaderboard-preview { display: flex; align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.quick-start-card { justify-content: space-between; margin-bottom: 25px; background: linear-gradient(120deg, var(--surface), var(--surface-soft)); }
.quick-start-card h2 { margin: 6px 0 3px; font-size: 21px; }
.quick-start-card p { margin: 0; color: var(--muted); font-size: 11px; }
.recommendation-card { margin: 0 0 25px; }
.recommendation-card div { display: grid; flex: 1; gap: 3px; }
.recommendation-card strong { font-size: 14px; }
.recommendation-card small { color: var(--muted); font-size: 10px; }
.recommendation-card > button, .leaderboard-preview > button { display: grid; place-items: center; padding: 5px; border: 0; background: transparent; color: var(--orange); cursor: pointer; }
.leaderboard-preview { justify-content: space-between; margin-top: 12px; }
.leaderboard-preview div { display: grid; gap: 4px; }
.leaderboard-preview strong { font-size: 13px; }
.lesson-node { min-height: 66px; border-radius: 17px; }
.lesson-node:hover { transform: translateX(2px); }

.practice-limit-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -4px 0 17px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(125deg, var(--surface-soft), var(--surface)); }
.practice-limit-banner > div { display: grid; gap: 4px; min-width: 0; }
.practice-limit-banner strong { font-size: 15px; }
.practice-limit-banner small { color: var(--muted); font-size: 10px; }
.subject-tabs { margin-bottom: 15px; }
.filter-pill { min-height: 38px; padding: 8px 15px; font-size: 11px; }
.chapter-row { min-height: 72px; border-radius: 17px; }
.chapter-row-copy strong { font-size: 14px; }
.chapter-row-copy small, .chapter-row-progress small { font-size: 10px; }
.chapter-entry-page .focus-card { margin-bottom: 13px; }
.chapter-start-card { padding: 19px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.chapter-start-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.chapter-start-head h2 { margin: 7px 0 0; font-size: 21px; }
.concept-strip.compact { margin: 16px 0 0; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.session-picker { margin-top: 16px; padding: 0; border: 0; }
.size-pill { min-height: 38px; padding: 8px 16px; font-size: 11px; }
.session-picker .button { margin-top: 3px; }

.progress-page .page-intro { margin-bottom: 22px; }
.progress-signals { grid-template-columns: repeat(3, 1fr); }
.signal-big { min-height: 126px; border-radius: 18px; }
.signal-big strong { font-size: 29px; }
.signal-big small { font-size: 10px; }
.progress-panel, .advanced-insights, .locked-insight, .history-panel, .locked-page { margin-top: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: 0 7px 22px rgba(33, 43, 66, .03); }
.progress-panel .panel-title, .history-panel .panel-title { margin-bottom: 16px; }
.progress-list { display: grid; gap: 13px; }
.progress-row { display: grid; grid-template-columns: minmax(80px, 1fr) 45px; align-items: center; gap: 9px; }
.progress-row span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.progress-row strong { font-size: 12px; text-align: right; }
.progress-row .progress-track { grid-column: 1 / -1; height: 7px; }
.advanced-insights { background: linear-gradient(125deg, #25214b, #3b316d); color: #fff; }
.advanced-insights .eyebrow { color: #c6bcff; }
.advanced-insights p { max-width: 480px; margin: 5px 0 16px; color: #d6d0f5; font-size: 12px; }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.insight-grid span { display: grid; gap: 7px; padding: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; color: #dedafa; font-size: 10px; }
.insight-grid b { color: #fff; font-size: 11px; }
.locked-insight { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: linear-gradient(120deg, var(--surface), #fff4eb); }
body[data-theme="dark"] .locked-insight { background: linear-gradient(120deg, var(--surface), #30221d); }
.locked-insight h2 { margin: 6px 0 4px; font-size: 20px; }
.locked-insight p { max-width: 500px; margin: 0; color: var(--muted); font-size: 11px; }
.history-panel p { margin: 0; color: var(--muted); font-size: 12px; }
.history-list { display: grid; gap: 6px; margin-top: 15px; }
.history-row { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.history-result { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; }
.history-result.correct { background: var(--correct-bg); color: var(--green); }
.history-result.wrong { background: var(--wrong-bg); color: var(--red); }
.history-row div { display: grid; gap: 2px; min-width: 0; }
.history-row strong, .history-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-row strong { font-size: 11px; }
.history-row small { color: var(--muted); font-size: 9px; }
.history-row > b { color: var(--muted); font-size: 10px; }
.locked-page { display: grid; justify-items: start; gap: 8px; padding: 28px; }
.locked-page h2 { margin: 0; font-size: 27px; }
.locked-page p { max-width: 420px; color: var(--muted); font-size: 13px; }
.locked-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 5px; border-radius: 15px; background: var(--orange-soft); color: var(--orange); }
.empty-state { padding: 20px 4px; color: var(--muted); }
.empty-state strong { display: block; color: var(--text); font-size: 13px; }
.empty-state p { margin: 4px 0 0; font-size: 11px; }

.membership-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding: 19px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(120deg, var(--surface), var(--surface-soft)); }
.membership-card.membership-racer { background: linear-gradient(120deg, #f2fbf6, #e7f5ff); }
.membership-card.membership-pro { background: linear-gradient(120deg, #f3f0ff, #fff0e9); }
body[data-theme="dark"] .membership-card.membership-racer { background: linear-gradient(120deg, #182b24, #1b2732); }
body[data-theme="dark"] .membership-card.membership-pro { background: linear-gradient(120deg, #272342, #34211e); }
.membership-card h2 { margin: 6px 0 3px; font-size: 23px; }
.membership-card p { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.membership-card small { font-size: 10px; }
.active-status { color: var(--green); font-weight: 800; }
.test-status { color: var(--violet); font-weight: 800; }
.profile-links { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }

.pricing-page { max-width: 1120px; }
.pricing-intro { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; overflow: hidden; margin: -4px 0 20px; padding: 21px 23px; border-radius: 20px; background: linear-gradient(120deg, #21253b, #4b427b); color: #fff; }
.pricing-intro h2 { position: relative; z-index: 1; margin: 7px 0 4px; font-size: 27px; }
.pricing-intro p { position: relative; z-index: 1; max-width: 560px; margin: 0; color: #d6d6ee; font-size: 12px; }
.pricing-intro .eyebrow { position: relative; z-index: 1; color: #c9c1ff; }
.pricing-intro > .membership-badge { position: relative; z-index: 1; flex: none; background: rgba(255,255,255,.12); color: #fff; }
.pricing-circuit { position: absolute; right: 8%; width: 150px; height: 150px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: rgba(255,255,255,.85); font-size: 30px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.pricing-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px 19px 19px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: 0 8px 25px rgba(33, 43, 66, .04); }
.pricing-card.is-popular { border: 2px solid var(--orange); transform: translateY(-5px); box-shadow: 0 18px 45px rgba(255, 117, 69, .16); }
.pricing-card.is-premium { background: linear-gradient(155deg, #242044, #3f326c); color: #fff; border-color: #7362d6; }
.popular-label { position: absolute; top: -13px; left: 18px; padding: 5px 9px; border-radius: 99px; background: var(--orange); color: #27140c; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.pricing-card-head { display: grid; gap: 7px; min-height: 72px; }
.pricing-card-head h2 { margin: 0; font-size: 19px; }
.is-premium .eyebrow { color: #c7bfff; }
.price-block { display: flex; align-items: end; gap: 8px; min-height: 72px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.is-premium .price-block { border-color: rgba(255,255,255,.16); }
.price-stack { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price-stack del { color: var(--muted); font-size: 13px; }
.is-premium .price-stack del { color: #c0bbdc; }
.price-main { font-size: 34px; letter-spacing: -.06em; }
.price-period { color: var(--muted); font-size: 11px; }
.is-premium .price-period { color: #c0bbdc; }
.launch-label { align-self: flex-end; margin-left: auto; padding: 4px 7px; border-radius: 6px; background: #fff1dc; color: #a46612; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.is-premium .launch-label { background: rgba(255,255,255,.12); color: #ffe2ae; }
.pricing-action { display: flex; min-height: 70px; align-items: center; }
.pricing-action .button { width: 100%; }
.current-plan-label { display: block; width: 100%; padding: 11px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); font-size: 10px; text-align: center; }
.is-premium .current-plan-label { border-color: rgba(255,255,255,.22); color: #d6d0f5; }
.feature-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: start; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.feature-list .icon { flex: none; margin-top: 1px; color: var(--green); }
.is-premium .feature-list li { color: #d9d5f1; }
.is-premium .feature-list .icon { color: #a79aff; }
.pricing-note { margin: 15px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.pricing-compare { display: grid; gap: 1px; margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.pricing-compare > .eyebrow { margin-bottom: 6px; }
.pricing-compare > div { display: grid; grid-template-columns: minmax(0, 1fr) 135px 135px; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 11px; }
.pricing-compare strong { text-align: right; }
.pricing-compare strong:last-child { color: var(--violet); }

.upgrade-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(17, 19, 28, .66); backdrop-filter: blur(8px); }
.upgrade-sheet { position: relative; width: min(100%, 440px); display: grid; justify-items: start; gap: 9px; padding: 29px; border: 1px solid rgba(255,255,255,.18); border-radius: 25px; background: var(--surface); box-shadow: 0 28px 85px rgba(0,0,0,.35); }
.upgrade-close { position: absolute; top: 14px; right: 14px; }
.upgrade-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 16px; background: var(--orange-soft); color: var(--orange); }
.upgrade-sheet h2 { max-width: 360px; margin: 5px 0 0; font-size: 29px; }
.upgrade-sheet > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.upgrade-detail { display: grid; gap: 3px; width: 100%; margin: 7px 0 5px; padding: 13px; border-radius: 13px; background: var(--surface-muted); }
.upgrade-detail strong { font-size: 13px; }
.upgrade-detail small { color: var(--muted); font-size: 10px; }
.upgrade-actions { display: grid; gap: 7px; width: 100%; }
.upgrade-actions .button { width: 100%; }

.membership-lab { margin-top: 0; }
.test-account-card { display: flex; align-items: center; gap: 9px; margin: 15px 0; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-muted); }
.test-account-card > div { display: grid; flex: 1; gap: 2px; min-width: 0; }
.test-account-card strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.test-account-card small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.membership-switcher { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.membership-switch { display: grid; gap: 5px; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.membership-switch:hover, .membership-switch.active { border-color: var(--orange); background: var(--orange-soft); }
.membership-switch span { font-size: 12px; font-weight: 850; }
.membership-switch small { color: var(--muted); font-size: 9px; line-height: 1.3; }

@media (max-width: 1080px) {
  .main-content { padding-right: 38px; padding-left: 38px; }
  .pricing-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; padding: 6px 2px 12px; }
  .pricing-card { min-width: 220px; }
}

@media (max-width: 780px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-content { padding: 0 16px 94px; }
  .topbar { min-height: 64px; }
  .topbar-brand { display: flex; font-size: 11px; }
  .topbar-membership { display: none; }
  .topbar-right { gap: 3px; }
  .mobile-nav { right: 10px; bottom: 10px; left: 10px; grid-template-columns: repeat(5, 1fr); padding: 5px; border-radius: 18px; }
  .mobile-nav .nav-item { min-height: 54px; padding: 8px 2px; font-size: 9px; }
  .mobile-nav .nav-item .icon { width: 18px; height: 18px; }
  .page { padding-top: 29px; }
  .home-greeting { align-items: end; }
  .home-greeting h1 { font-size: clamp(35px, 10vw, 50px); }
  .home-greeting p { max-width: 255px; font-size: 12px; }
  .home-hero { min-height: 300px; padding: 22px; }
  .hero-circuit { right: -8%; opacity: .75; }
  .home-overview { grid-template-columns: repeat(2, 1fr); }
  .overview-rank { grid-column: 1 / -1; }
  .quick-start-card, .recommendation-card, .leaderboard-preview, .membership-card, .locked-insight { align-items: start; }
  .quick-start-card { display: grid; }
  .quick-start-card .button { width: 100%; }
  .practice-limit-banner { align-items: start; flex-direction: column; }
  .practice-limit-banner .button { width: 100%; }
  .chapter-row { grid-template-columns: 45px minmax(0, 1fr) 68px 14px; gap: 9px; }
  .chapter-row-progress .progress-track { display: none; }
  .chapter-row-progress { display: flex; justify-content: end; }
  .chapter-row-progress small { white-space: nowrap; }
  .chapter-start-head { display: grid; }
  .chapter-start-head .membership-badge { justify-self: start; }
  .progress-signals { grid-template-columns: 1fr 1fr; }
  .progress-signals .signal-big:last-child { grid-column: 1 / -1; }
  .insight-grid { grid-template-columns: 1fr; }
  .locked-insight { display: grid; }
  .locked-insight .button { width: 100%; }
  .pricing-intro { align-items: start; display: grid; }
  .pricing-intro > .membership-badge { justify-self: start; }
  .pricing-circuit { right: -42px; top: 8px; }
  .pricing-grid { grid-template-columns: 1fr; overflow: visible; padding: 13px 0 0; }
  .pricing-card { min-width: 0; }
  .pricing-card.is-popular { transform: none; }
  .pricing-compare > div { grid-template-columns: minmax(0, 1fr) 90px 90px; }
  .membership-switcher { grid-template-columns: 1fr; }
  .membership-switch { min-height: 62px; }
}

@media (max-width: 480px) {
  .main-content { padding-right: 13px; padding-left: 13px; }
  .topbar-right .tiny-stat.coin { display: none; }
  .page-intro h1 { font-size: 38px; }
  .home-greeting { gap: 7px; }
  .home-greeting .membership-badge { margin-bottom: 8px; }
  .home-hero { min-height: 285px; border-radius: 22px; }
  .hero-circuit { right: -20%; top: 38px; transform: scale(.8); }
  .home-overview { gap: 7px; }
  .overview-card { min-height: 105px; padding: 13px; }
  .overview-card strong { font-size: 18px; }
  .chapter-row { grid-template-columns: 39px minmax(0, 1fr) 58px 13px; padding: 9px 7px; }
  .chapter-icon { width: 39px; height: 39px; }
  .chapter-row-copy strong { font-size: 12px; }
  .chapter-row-copy small { font-size: 9px; }
  .progress-signals { gap: 7px; }
  .signal-big { min-height: 105px; padding: 13px; }
  .signal-big strong { font-size: 22px; }
  .pricing-card { padding: 20px 16px 17px; }
  .pricing-compare { padding: 13px; }
  .pricing-compare > div { grid-template-columns: minmax(0, 1fr) 70px 70px; font-size: 10px; }
  .upgrade-sheet { padding: 25px 18px 19px; border-radius: 21px; }
  .upgrade-sheet h2 { font-size: 26px; }
  .membership-card { display: grid; }
  .membership-card .button { width: 100%; }
}

.form-grid select, .file-input, .chapter-name-input { width: 100%; min-height: 37px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-muted); color: var(--text); font-size: 11px; }
.file-input { display: block; padding: 8px 10px; cursor: pointer; }.chapter-name-input { margin: 0 0 8px; }.import-status.error { background: color-mix(in srgb, var(--red) 15%, var(--surface)); color: var(--red); }.admin-activity { margin-top: 16px; }.admin-activity .admin-chapter-row { grid-template-columns: 37px minmax(0, 1fr) auto; }
.import-preview { display: grid; gap: 4px; margin: 0 0 9px; padding: 10px 11px; border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line)); border-radius: 9px; background: color-mix(in srgb, var(--green) 8%, var(--surface)); color: var(--green); font-size: 10px; }.import-preview small { color: var(--muted); line-height: 1.5; }.import-preview code { color: var(--text); font-size: 9px; }.import-preview.error { border-color: color-mix(in srgb, var(--red) 35%, var(--line)); background: color-mix(in srgb, var(--red) 10%, var(--surface)); color: var(--red); }

.landing-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 80% 15%, var(--orange-soft), transparent 32%), var(--bg); }.landing-card { position: relative; width: min(100%, 420px); display: grid; gap: 12px; padding: 42px 30px 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }.landing-card h1 { position: relative; z-index: 1; margin: 8px 0 0; font-size: clamp(42px, 11vw, 62px); }.landing-card h1 em { color: var(--orange-dark); font-family: Georgia, serif; font-weight: 400; }.landing-card > p { position: relative; z-index: 1; margin-bottom: 10px; color: var(--muted); }.landing-primary { position: relative; z-index: 1; width: 100%; min-height: 50px; }.guest-link { position: relative; z-index: 1; justify-self: center; padding: 4px; border: 0; background: transparent; color: var(--orange-dark); font-size: 11px; font-weight: 800; cursor: pointer; }.guest-link:disabled { opacity: .5; cursor: wait; }.landing-note { position: relative; z-index: 1; max-width: 300px; justify-self: center; color: var(--muted); font-size: 10px; line-height: 1.45; text-align: center; }.landing-circuit { position: absolute; top: -55px; right: -36px; width: 180px; height: 180px; border: 1px solid color-mix(in srgb, var(--orange) 28%, transparent); border-radius: 50%; color: var(--orange-soft); font-size: 40px; }.landing-circuit::before, .landing-circuit::after { position: absolute; inset: 12px -22px; border: inherit; border-radius: inherit; content: ''; }.landing-circuit::after { inset: -20px 12px; transform: rotate(55deg); }.landing-circuit span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--orange); }.guest-panel { background: linear-gradient(135deg, rgba(255, 242, 222, .9), var(--surface)); }.guest-modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(34, 23, 17, .48); backdrop-filter: blur(6px); }.guest-modal { width: min(100%, 400px); display: grid; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: 0 25px 70px rgba(0,0,0,.25); }.guest-modal h2 { margin: 2px 0 0; }.guest-modal p { margin: 0 0 5px; color: var(--muted); font-size: 12px; }.guest-modal label { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }.guest-modal input { min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); color: var(--text); }.guest-modal .auth-error { color: var(--red); font-size: 11px; }
/* RankCircuit logo system */
.brand-image { display: block; flex: none; height: auto; object-fit: contain; }
.brand-lockup { padding: 0 0 0 1px; }
.sidebar-logo { width: 174px; }
.topbar-logo { width: 144px; }
.landing-circuit .landing-logo { position: absolute; inset: 50% auto auto 50%; z-index: 1; width: 96px; height: 96px; transform: translate(-50%, -50%) rotate(-9deg); }
.hero-circuit .hero-logo { position: absolute; inset: 50% auto auto 50%; z-index: 2; width: 94px; height: 94px; transform: translate(-50%, -50%); border-radius: 24px; box-shadow: 0 12px 28px rgba(12, 14, 24, .24); }
.pricing-circuit .pricing-logo { width: 88px; height: 88px; transform: rotate(-9deg); }

@media (max-width: 780px) {
  .sidebar-logo { width: 160px; }
  .topbar-logo { width: 132px; }
}

@media (max-width: 480px) {
  .topbar-logo { width: 116px; }
  .landing-circuit .landing-logo { width: 88px; height: 88px; }
  .hero-circuit .hero-logo { width: 82px; height: 82px; border-radius: 21px; }
  .pricing-circuit .pricing-logo { width: 78px; height: 78px; }
}
