/* Маршрут — дизайн-система в духе Apple */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --bg: #f5f5f7;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --card: #ffffff;
  --card-2: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --sep: rgba(0, 0, 0, 0.08);
  --sep-strong: rgba(0, 0, 0, 0.14);
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --green: #34c759;
  --red: #ff3b30;
  --orange: #ff9500;
  --yellow: #ffcc00;
  --purple: #af52de;
  --indigo: #5856d6;
  --teal: #30b0c7;
  --pink: #ff2d55;
  --mint: #00c7be;
  --gray: #8e8e93;
  --heat-0: #ebebf0;
  --heat-1: #b7e4c3;
  --heat-2: #74d08e;
  --heat-3: #34c759;
  --heat-4: #1f8f3d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.03);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 26px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sidebar: 264px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-elev: rgba(28, 28, 30, 0.72);
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --text: #f5f5f7;
  --text-2: #98989d;
  --text-3: #636366;
  --sep: rgba(255, 255, 255, 0.08);
  --sep-strong: rgba(255, 255, 255, 0.16);
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.16);
  --green: #30d158;
  --red: #ff453a;
  --orange: #ff9f0a;
  --yellow: #ffd60a;
  --purple: #bf5af2;
  --indigo: #5e5ce6;
  --teal: #40c8e0;
  --pink: #ff375f;
  --mint: #63e6e2;
  --heat-0: #1f1f22;
  --heat-1: #0e4429;
  --heat-2: #006d32;
  --heat-3: #26a641;
  --heat-4: #39d353;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
svg { display: block; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.sm { width: 16px; height: 16px; }
.ico.xs { width: 13px; height: 13px; }
.ico.lg { width: 28px; height: 28px; }

/* ---------- Boot ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); animation: pulse 1s var(--ease) infinite alternate; }
@keyframes pulse { from { transform: scale(0.7); opacity: 0.5; } to { transform: scale(1.1); opacity: 1; } }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  padding: 22px 14px 18px;
  background: var(--bg-elev);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-right: 1px solid var(--sep);
  display: flex; flex-direction: column; gap: 4px;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #0a84ff, #5e5ce6); display: grid; place-items: center; color: #fff; box-shadow: 0 4px 12px rgba(10, 132, 255, 0.35); }
.brand-mark .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand-sub { font-size: 12px; color: var(--text-2); margin-top: -2px; }
.nav-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); padding: 14px 12px 6px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px; color: var(--text);
  font-size: 15px; font-weight: 500; cursor: pointer; border: 0; background: none; width: 100%; text-align: left;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.nav-item:hover { background: var(--sep); text-decoration: none; }
.nav-item:active { transform: scale(0.98); }
.nav-item.active { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28); }
.nav-item .badge { margin-left: auto; }
.nav-item.active .badge { background: rgba(255, 255, 255, 0.25); color: #fff; }
.sidebar-foot { margin-top: auto; padding: 12px; font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.sync-dot.saving { background: var(--orange); animation: pulse 0.8s infinite alternate; }
.sync-dot.off { background: var(--gray); }

.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.badge.soft { background: var(--sep); color: var(--text-2); }

.main { min-width: 0; padding: 34px clamp(18px, 4vw, 56px) 120px; }
.view { max-width: 1080px; margin: 0 auto; animation: viewIn 0.55s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view.still, .view.still .reveal, .view.still .heat i { animation: none; }

.topbar { display: none; }
.tabbar { display: none; }

/* ---------- Typography ---------- */
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.title { font-size: clamp(32px, 4.6vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.07; margin: 4px 0 6px; }
.subtitle { font-size: 18px; color: var(--text-2); margin: 0 0 28px; letter-spacing: -0.015em; }
.h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; margin: 40px 0 14px; display: flex; align-items: baseline; gap: 10px; }
.h2 .more { margin-left: auto; font-size: 15px; font-weight: 500; }
.h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 4px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--card); border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--sep);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head .h3 { margin: 0; }
.card-head .right { margin-left: auto; }

.reveal { animation: rise 0.65s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: none; } }
.io { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.io.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 30px; padding: 30px 30px 28px;
  background: var(--card); border: 1px solid var(--sep); box-shadow: var(--shadow);
  isolation: isolate;
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: 0.55;
  animation: drift 14s ease-in-out infinite alternate;
}
.hero::before { width: 380px; height: 380px; background: #0a84ff; top: -180px; right: -60px; }
.hero::after { width: 320px; height: 320px; background: #bf5af2; bottom: -200px; right: 220px; animation-delay: -6s; opacity: 0.35; }
:root[data-theme="dark"] .hero::before { opacity: 0.45; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.15); } }
.hero-greet { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 22px; }
.stat-big { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-2); margin-top: 6px; }

/* ---------- Chips, buttons ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600; background: var(--card-2); color: var(--text-2); white-space: nowrap; }
.chip .ico { width: 13px; height: 13px; }
.chip.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--gray)); }
.chip.tint { background: color-mix(in srgb, var(--c, var(--gray)) 14%, transparent); color: var(--c, var(--text-2)); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 16px;
  border-radius: 18px; border: 0; cursor: pointer; font-size: 14.5px; font-weight: 600;
  background: var(--accent); color: #fff; transition: transform 0.2s var(--ease), filter 0.2s, background 0.2s;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: scale(0.96); }
.btn.ghost { background: var(--accent-soft); color: var(--accent); }
.btn.plain { background: var(--card-2); color: var(--text); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13.5px; border-radius: 15px; }
.btn.danger { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card-2); display: grid; place-items: center; cursor: pointer; position: relative; transition: transform 0.2s var(--ease), background 0.2s; color: var(--text); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; font-size: 11px; }

.segmented { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--card-2); position: relative; gap: 2px; flex-wrap: wrap; }
.segmented button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: color 0.25s, background 0.25s var(--ease), box-shadow 0.25s; }
.segmented button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 0.5px var(--sep); }
:root[data-theme="dark"] .segmented button.on { background: #636366; }

/* ---------- Tasks (как Reminders) ---------- */
.tasks { display: flex; flex-direction: column; }
.task { display: flex; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--sep); align-items: flex-start; }
.task:last-child { border-bottom: 0; }
.check {
  width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--sep-strong); background: none; cursor: pointer;
  display: grid; place-items: center; padding: 0; margin-top: 1px; transition: border-color 0.25s, background 0.3s var(--ease), transform 0.25s var(--spring);
}
.check svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 0.35s var(--ease) 0.08s; }
.check:hover { border-color: var(--c, var(--accent)); }
.check.on { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); transform: scale(1.06); }
.check.on svg { stroke-dashoffset: 0; }
.check.pop { animation: pop 0.45s var(--spring); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1.06); } }
.task-body { flex: 1; min-width: 0; }
.task-title { font-weight: 600; font-size: 16px; letter-spacing: -0.015em; transition: color 0.3s; }
.task.done .task-title { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--text-3); }
.task-detail { color: var(--text-2); font-size: 14px; margin-top: 3px; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.task-time { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; width: 46px; flex: none; padding-top: 4px; }

/* ---------- Schedule ---------- */
.sched { position: relative; display: flex; flex-direction: column; gap: 8px; }
.sched-row { display: flex; gap: 14px; align-items: stretch; }
.sched-time { width: 92px; flex: none; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; padding-top: 12px; }
.sched-block { flex: 1; border-radius: 14px; padding: 11px 14px; background: color-mix(in srgb, var(--c, var(--gray)) 11%, transparent); border-left: 3px solid var(--c, var(--gray)); }
.sched-block .h3 { font-size: 15px; }
.sched-block.now { box-shadow: 0 0 0 2px var(--c, var(--accent)); }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sep); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.date-pill { width: 50px; flex: none; text-align: center; border-radius: 12px; padding: 6px 0; background: var(--card-2); }
.date-pill .d { font-size: 19px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.date-pill .m { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-2); margin-top: 3px; }
.date-pill.hot { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.date-pill.hot .m { color: var(--red); }
.date-pill.warm { background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--orange); }
.date-pill.warm .m { color: var(--orange); }

/* ---------- Progress ---------- */
.bar { height: 8px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--c, var(--accent)); width: 0; transition: width 1.2s var(--ease); }
.ring { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-linecap: round; }
.ring .track { stroke: var(--card-2); }
.ring .val { transition: stroke-dashoffset 1.4s var(--ease); }
.ring-wrap { position: relative; display: grid; place-items: center; }
.ring-wrap .ring-label { position: absolute; text-align: center; }

/* ---------- Heatmap ---------- */
.heat-wrap { overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); gap: 3px; width: max-content; }
.heat i { width: 13px; height: 13px; border-radius: 3.5px; background: var(--heat-0); display: block; animation: cellIn 0.5s var(--spring) both; animation-delay: calc(var(--i, 0) * 3ms); }
.heat i[data-l="1"] { background: var(--heat-1); }
.heat i[data-l="2"] { background: var(--heat-2); }
.heat i[data-l="3"] { background: var(--heat-3); }
.heat i[data-l="4"] { background: var(--heat-4); }
.heat i.future { opacity: 0.45; }
.heat i.today { outline: 2px solid var(--accent); outline-offset: 1px; }
.heat i.empty { background: transparent; animation: none; }
@keyframes cellIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.heat-months { display: grid; grid-auto-flow: column; gap: 3px; width: max-content; font-size: 11px; color: var(--text-2); margin-bottom: 6px; }
.heat-months span { width: 13px; white-space: nowrap; overflow: visible; }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); margin-top: 10px; justify-content: flex-end; }
.heat-legend i { width: 11px; height: 11px; border-radius: 3px; display: block; }

/* ---------- Route timeline ---------- */
.route-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.route-progress .bar { flex: 1; height: 6px; }
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: linear-gradient(var(--sep-strong), var(--sep-strong)); }
.timeline .fill { position: absolute; left: 11px; top: 8px; width: 2px; border-radius: 1px; background: var(--accent); transition: height 1.4s var(--ease); }
.month { position: relative; margin-bottom: 14px; }
.month-node { position: absolute; left: -30px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 2px solid var(--sep-strong); transition: transform 0.3s var(--spring), background 0.3s, border-color 0.3s; }
.month.past .month-node { background: var(--accent); border-color: var(--accent); }
.month.current .month-node { background: var(--card); border: 4px solid var(--accent); transform: scale(1.25); box-shadow: 0 0 0 6px var(--accent-soft); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); } 50% { box-shadow: 0 0 0 10px transparent; } }
.month-card { cursor: pointer; }
.month-card .month-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.month-name { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; text-transform: capitalize; }
.month-focus { color: var(--text-2); font-weight: 500; }
.month.past .month-card { opacity: 0.72; }
.month.current .month-card { border-color: color-mix(in srgb, var(--accent) 45%, var(--sep)); box-shadow: var(--shadow); }
.month-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.month-body > div { overflow: hidden; }
.month.open .month-body { grid-template-rows: 1fr; }
.month .chev { margin-left: auto; transition: transform 0.35s var(--ease); color: var(--text-3); }
.month.open .chev { transform: rotate(90deg); }
.bullets { margin: 14px 0 4px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bullets li { display: flex; gap: 10px; }
.bullets li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; flex: none; }
.markers { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.marker { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 14.5px; }
.marker > span:last-child { flex: 1 1 220px; }
.marker .when { width: 64px; flex: none; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--c); font-size: 13.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.grade-head { margin: 10px 0 18px; }

.week { border-top: 1px solid var(--sep); padding-top: 14px; margin-top: 16px; }
.week-head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.day-block { padding: 10px 0; border-bottom: 1px dashed var(--sep); }
.day-block:last-child { border-bottom: 0; }
.day-label { font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: capitalize; margin-bottom: 4px; }
.day-label.today { color: var(--accent); }

/* ---------- Inbox ---------- */
.mail { display: flex; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--sep); transition: background 0.25s, opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.mail:last-child { border-bottom: 0; }
.mail.leaving { opacity: 0; transform: translateX(40px); }
.mail-icon { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; background: var(--c, var(--accent)); }
.mail-body { flex: 1; min-width: 0; }
.mail-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.mail-title { font-weight: 600; font-size: 16px; letter-spacing: -0.015em; }
.mail-date { margin-left: auto; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.mail-text { color: var(--text-2); font-size: 14.5px; margin: 5px 0 12px; }
.mail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 7px; }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; gap: 10px; }
.news-meaning { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; }
.news-meaning b { color: var(--accent); font-weight: 600; }

/* ---------- Contests ---------- */
.stars { display: inline-flex; gap: 1px; color: var(--orange); }
.stars .ico { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.stars .off { color: var(--sep-strong); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; font-size: 14.5px; margin: 14px 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }
.stages { position: relative; padding-left: 20px; margin-top: 8px; }
.stages::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--sep); }
.stage { position: relative; display: flex; gap: 10px; padding: 5px 0; font-size: 14.5px; }
.stage::before { content: ""; position: absolute; left: -19px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--sep-strong); }
.stage.past { color: var(--text-3); }
.stage.past::before { background: var(--text-3); border-color: var(--text-3); }
.stage.next::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.stage .sd { width: 66px; flex: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.countdown { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.collapse > div { overflow: hidden; }
.open > .collapse, .collapse.open { grid-template-rows: 1fr; }

/* ---------- Admission ---------- */
.slot { border-radius: 18px; padding: 16px; background: var(--card); border: 1px solid var(--sep); display: flex; flex-direction: column; gap: 6px; min-height: 130px; position: relative; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.slot:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.slot.empty { background: transparent; border: 1.5px dashed var(--sep-strong); }
.slot-n { font-size: 12px; font-weight: 700; color: var(--text-3); }
.slot-title { font-weight: 600; letter-spacing: -0.015em; }
.slot-next { font-size: 13px; color: var(--text-2); margin-top: auto; display: flex; gap: 6px; }
.slot-next .ico { margin-top: 2px; }
.score-tile { text-align: left; }
.score-tile .v { font-size: 34px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; margin: 8px 0 4px; }
textarea, input[type="text"], input[type="password"], input[type="number"] {
  width: 100%; font: inherit; color: var(--text); background: var(--card-2); border: 1px solid transparent; border-radius: 14px; padding: 12px 14px; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
textarea { min-height: 96px; resize: vertical; }
textarea:focus, input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--card); }

/* ---------- Learn ---------- */
.course-card { display: flex; flex-direction: column; gap: 8px; cursor: pointer; text-decoration: none; color: inherit; }
.course-card:hover { text-decoration: none; }
.course-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--c, var(--accent)); margin-bottom: 6px; }
.lesson { max-width: 720px; }
.lesson p { font-size: 17px; line-height: 1.6; margin: 0 0 14px; }
.lesson h3 { font-size: 21px; letter-spacing: -0.02em; margin: 30px 0 10px; }
.lesson ul { padding-left: 20px; font-size: 17px; line-height: 1.6; }
.lesson table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.lesson td, .lesson th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sep); }
.lesson th { color: var(--text-2); font-weight: 600; font-size: 13px; }
.tip { background: color-mix(in srgb, var(--orange) 12%, transparent); border-radius: 16px; padding: 14px 16px; margin: 8px 0 18px; display: flex; gap: 12px; font-size: 15.5px; }
.tip .ico { color: var(--orange); margin-top: 2px; }
.qa { background: var(--card); border: 1px solid var(--sep); border-radius: 18px; padding: 16px 18px; margin: 12px 0; }
.qa-q { font-weight: 600; font-size: 16.5px; }
.qa-a { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--green) 12%, transparent); }
.qa-hint { margin-top: 8px; color: var(--text-2); font-size: 14.5px; }

/* ---------- Lock ---------- */
.lock { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.lock::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(10, 132, 255, 0.35), transparent 60%); top: -200px; left: 50%; transform: translateX(-50%); filter: blur(30px); animation: drift 12s ease-in-out infinite alternate; }
.lock-card { position: relative; width: 100%; max-width: 380px; text-align: center; padding: 38px 30px; background: var(--bg-elev); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); border: 1px solid var(--sep); border-radius: 30px; box-shadow: var(--shadow-lg); animation: rise 0.7s var(--ease) both; }
.lock-card .brand-mark { width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 18px; }
.lock-card .brand-mark .ico { width: 30px; height: 30px; }
.lock-card input { text-align: center; font-size: 22px; letter-spacing: 0.3em; margin: 6px 0 12px; }
.lock-card .btn { width: 100%; height: 44px; border-radius: 22px; font-size: 16px; }
.shake { animation: shake 0.5s var(--ease); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 100; background: rgba(30, 30, 32, 0.92); color: #fff; padding: 12px 20px; border-radius: 22px; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg); backdrop-filter: blur(20px); transition: transform 0.45s var(--spring), opacity 0.3s; display: flex; align-items: center; gap: 10px; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }

.banner { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--orange) 12%, transparent); font-size: 14px; margin-bottom: 18px; }
.empty-state { text-align: center; padding: 34px 16px; color: var(--text-2); }
.empty-state .ico { margin: 0 auto 10px; width: 34px; height: 34px; color: var(--text-3); }
.done-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--green) 13%, transparent); color: var(--green); font-weight: 600; margin-top: 10px; animation: rise 0.5s var(--spring) both; }
.sep { height: 1px; background: var(--sep); margin: 18px 0; }
.flex { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 14px; }
.mt-l { margin-top: 26px; }

/* ---------- Сегодня: фокус и компактный план ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.chip.big { height: 32px; padding: 0 13px; border-radius: 16px; font-size: 14px; gap: 7px; color: var(--text); background: var(--card); border: 1px solid var(--sep); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform 0.2s var(--ease); }
.chip.big:hover { text-decoration: none; transform: translateY(-1px); }
.chip.big.tint { background: color-mix(in srgb, var(--c) 12%, var(--card)); color: var(--c); border-color: transparent; }
.focus { margin-top: 22px; border-radius: 28px; padding: 24px; background: var(--card); border: 1px solid var(--sep); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.focus::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c); }
.focus.leaving { opacity: 0; transform: scale(0.97); }
.focus-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.focus-title { font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-top: 10px; }
.preview { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.preview-row { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.preview-row .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ctasks { display: flex; flex-direction: column; }
.ctask { display: flex; gap: 12px; align-items: flex-start; padding: 12px 2px; border-bottom: 1px solid var(--sep); }
.ctask:last-child { border-bottom: 0; }
.ctask-time { width: 40px; flex: none; font-size: 13px; color: var(--text-2); padding-top: 4px; font-variant-numeric: tabular-nums; }
.ctask-body { flex: 1; min-width: 0; cursor: pointer; }
.ctask-title { font-weight: 600; letter-spacing: -0.015em; transition: color 0.3s; }
.ctask-sub { font-size: 13px; color: var(--text-2); margin-top: 1px; }
.ctask.done .ctask-title { color: var(--text-3); text-decoration: line-through; }
.ctask-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.ctask-more > div { overflow: hidden; }
.ctask.open .ctask-more { grid-template-rows: 1fr; }
.ctask.school { opacity: 0.75; }
.ctask.school .ctask-body { cursor: default; }
.school-line { width: 26px; flex: none; display: grid; place-items: center; align-self: stretch; }
.school-line::before { content: ""; width: 4px; height: 100%; min-height: 34px; border-radius: 2px; background: var(--sep-strong); }
.day-note { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; font-size: 14.5px; font-weight: 500; background: color-mix(in srgb, var(--c) 11%, transparent); color: var(--text); }
.day-note .ico { color: var(--c); }

/* ---------- Календарь ---------- */
.cal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cal-card { padding: 16px; }
@media (min-width: 901px) { #cal-day { position: sticky; top: 24px; } }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { margin-bottom: 6px; }
.cal-wd span { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; }
.cal-cell { position: relative; min-height: 82px; border: 0; background: none; border-radius: 14px; padding: 7px 6px; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; transition: background 0.2s, transform 0.2s var(--ease); color: var(--text); }
.cal-cell:hover { background: var(--card-2); }
.cal-cell:active { transform: scale(0.95); }
.cal-cell.blank { cursor: default; }
.cal-cell.out { opacity: 0.4; }
.cal-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background 0.25s, color 0.25s; }
.cal-cell.rest .cal-n { color: var(--text-2); font-weight: 500; }
.cal-cell.today .cal-n { background: var(--red); color: #fff; }
.cal-cell.sel { background: var(--accent-soft); }
.cal-cell.sel:not(.today) .cal-n { background: var(--text); color: var(--bg); }
.cal-cell.full::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.cal-dots { display: flex; gap: 3px; height: 6px; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.cal-label { font-size: 10.5px; line-height: 1.2; color: var(--text-2); text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 12.5px; color: var(--text-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.plain-row { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--sep); cursor: pointer; color: inherit; font: inherit; }
.plain-row:last-child { border-bottom: 0; }

/* ---------- Карта ---------- */
.map-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; position: sticky; top: 12px; z-index: 5; }
.map { position: relative; margin: 10px -8px 20px; }
.map-svg { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.road, .road-mid, .road-done { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.road { stroke: var(--card-2); stroke-width: 22; }
:root[data-theme="light"] .road { stroke: #e4e4ea; }
.road-mid { stroke: var(--card); stroke-width: 2; stroke-dasharray: 2 12; opacity: 0.9; }
.road-done { stroke: var(--accent); stroke-width: 8; transition: stroke-dashoffset 2.2s var(--ease); filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--accent) 40%, transparent)); }
.map-grade { position: absolute; left: 50%; transform: translateX(-50%); width: min(92%, 520px); text-align: center; padding: 14px 18px; border-radius: 20px; background: var(--bg-elev); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--sep); box-shadow: var(--shadow-sm); z-index: 2; }
.map-grade-t { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; }
.map-grade-t span { font-size: 13px; font-weight: 600; color: var(--text-2); margin-left: 6px; }
.map-grade-s { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.station { position: absolute; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; cursor: pointer; z-index: 3; color: var(--text); animation: stIn 0.6s var(--spring) both; animation-delay: var(--d, 0ms); }
@keyframes stIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.4); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.st-dot { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 3px solid var(--sep-strong); box-shadow: var(--shadow); font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; transition: transform 0.3s var(--spring), box-shadow 0.3s; }
.st-dot b { font-weight: 700; color: var(--text-2); }
.station:hover .st-dot { transform: scale(1.1); box-shadow: var(--shadow-lg); }
.station:active .st-dot { transform: scale(0.94); }
.station.past .st-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.station.current .st-dot { width: 72px; height: 72px; background: var(--accent); border: 5px solid var(--card); color: #fff; box-shadow: 0 0 0 4px var(--accent), var(--shadow-lg); animation: ping2 2.2s var(--ease) infinite; }
.station.current .st-dot b { color: #fff; font-size: 15px; }
@keyframes ping2 { 0%, 100% { box-shadow: 0 0 0 4px var(--accent), 0 0 0 4px var(--accent-soft); } 50% { box-shadow: 0 0 0 4px var(--accent), 0 0 0 16px transparent; } }
.station.start .st-dot, .station.finish .st-dot { background: var(--green); border-color: var(--green); color: #fff; width: 50px; height: 50px; }
.station.finish .st-dot { background: linear-gradient(135deg, #ff9f0a, #ff375f); border: 0; width: 64px; height: 64px; }
.st-badge { position: absolute; top: -4px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.st-badge .ico { width: 12px; height: 12px; stroke-width: 2.4; }
.st-cap { position: absolute; top: 50%; transform: translateY(-50%); width: max-content; max-width: min(40vw, 230px); text-align: left; display: flex; flex-direction: column; gap: 1px; }
.st-cap b { font-size: 15px; letter-spacing: -0.015em; }
.st-cap span { font-size: 13px; color: var(--text-2); line-height: 1.25; }
.st-cap.right { left: calc(100% + 14px); }
.st-cap.left { right: calc(100% + 14px); text-align: right; align-items: flex-end; }
.st-cap.center { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); text-align: center; font-weight: 600; font-size: 14px; }
.station.future .st-cap { opacity: 0.85; }
.you { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 10px; animation: bob 2s ease-in-out infinite; }
.you::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--text); }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -4px); } }

/* ---------- Шторка ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 90; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); opacity: 0; transition: opacity 0.35s var(--ease); backdrop-filter: blur(2px); }
.sheet { position: absolute; left: 50%; bottom: 0; width: min(640px, 100%); max-height: 86vh; overflow-y: auto; transform: translate(-50%, 100%); background: var(--card); border-radius: 28px 28px 0 0; padding: 12px 24px calc(28px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); transition: transform 0.45s var(--ease); }
.sheet-wrap.open .sheet-bg { opacity: 1; }
.sheet-wrap.open .sheet { transform: translate(-50%, 0); }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--sep-strong); margin: 0 auto 14px; }
.sheet-x { position: absolute; top: 14px; right: 16px; }
.tile { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.tile:hover { text-decoration: none; }
.tile .course-icon { margin: 0; }
.tab { position: relative; text-decoration: none; }
.tab:hover { text-decoration: none; }
.tab-dot { position: absolute; top: 4px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ---------- Новости ---------- */
.nfeature { position: relative; border-radius: 30px; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); isolation: isolate; }
.nfeature .ncover { position: absolute; inset: 0; z-index: -2; }
.nfeature-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.85) 100%); }
.nfeature-sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nfeature-body { padding: 26px; color: #fff; width: 100%; }
.nfeature-title { font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; margin-top: 12px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nfeature-sum { margin-top: 10px; font-size: 16px; opacity: 0.9; max-width: 720px; }
.nglass { background: rgba(0,0,0,0.38); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ncover { position: relative; height: 190px; overflow: hidden; display: grid; place-items: center; }
.ncover.big { height: 100%; }
.ncover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ncard:hover .ncover img, .nfeature:hover .ncover img { transform: scale(1.05); }
.ncover-art { color: rgba(255,255,255,0.9); transform: scale(3); opacity: 0.85; }
.ncover.big .ncover-art { transform: scale(5); opacity: 0.35; }
.ngrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ncard { display: flex; flex-direction: column; gap: 10px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.ncard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ncard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.nmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ntitle { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.nfact { font-size: 14px; font-weight: 600; color: var(--text-2); display: flex; gap: 6px; align-items: center; }
.nfact::before { content: ""; width: 14px; height: 2px; border-radius: 1px; background: var(--accent); }
.nstat { position: relative; overflow: hidden; }
.nstat-v { font-size: clamp(54px, 8vw, 76px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin-top: 8px; }
.nstat-l { font-size: 16px; font-weight: 600; color: var(--text-2); margin-top: -4px; }
.nbrief-dot { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; align-self: flex-start; }

/* ---------- Тест английского ---------- */
.test-steps { display: flex; gap: 4px; margin-bottom: 24px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.test-steps a { flex: 1 0 auto; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: var(--card-2); color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.25s, color 0.25s; }
.test-steps a.past { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.test-steps a.on { background: var(--accent); color: #fff; }
.test-body { max-width: 760px; }
.test-foot { display: flex; gap: 8px; max-width: 760px; margin-top: 26px; position: sticky; bottom: 16px; padding: 10px; border-radius: 20px; background: var(--bg-elev); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--sep); z-index: 6; }
.qcard { display: flex; gap: 14px; padding: 18px; margin-bottom: 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--sep); transition: border-color 0.3s; }
.qcard.answered, .qcard:has(.opt.on) { border-color: color-mix(in srgb, var(--accent) 35%, var(--sep)); }
.qnum { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--text-2); }
.qbody { flex: 1; min-width: 0; }
.qq { font-weight: 600; font-size: 17px; letter-spacing: -0.015em; line-height: 1.4; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.opt { border: 1.5px solid var(--sep-strong); background: var(--card); border-radius: 14px; padding: 9px 14px; font-size: 15px; cursor: pointer; text-align: left; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--spring); }
.opt:hover { border-color: var(--accent); }
.opt:active { transform: scale(0.96); }
.opt.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt.idk { border-style: dashed; color: var(--text-2); }
.opt.idk.on { background: var(--text-2); border-color: var(--text-2); color: #fff; }
.read-card { margin-bottom: 14px; }
.read-text { font-size: 17.5px; line-height: 1.7; margin: 12px 0 0; }
.listen-card { margin-bottom: 14px; }
.play { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform 0.25s var(--spring), opacity 0.25s; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent); }
.play:active { transform: scale(0.92); }
.play.off { opacity: 0.35; cursor: not-allowed; }
.play.playing { animation: ping2 1.6s var(--ease) infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .test-foot { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .ngrid { grid-template-columns: 1fr; }
  .nfeature { min-height: 420px; border-radius: 24px; }
  .cal-layout { grid-template-columns: 1fr; }
  .cal-card { padding: 10px 6px; }
  .cal-cell { min-height: 58px; padding: 5px 2px; border-radius: 12px; }
  .cal-label { display: none; }
  .cal-n { width: 30px; height: 30px; font-size: 15px; }
  .st-dot { width: 52px; height: 52px; }
  .station.current .st-dot { width: 64px; height: 64px; }
  .st-cap b { font-size: 14px; }
  .st-cap span { font-size: 12px; }
  .map-tools { top: 64px; }
  .main { overflow-x: hidden; }
}
@media (max-width: 1100px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 8px 16px calc(100px + env(safe-area-inset-bottom)); }
  .topbar {
    display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 8px;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px; margin: 0 -16px 8px;
    background: var(--bg-elev); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid var(--sep);
  }
  .topbar .brand-name { font-size: 17px; }
  .topbar .spacer { flex: 1; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--bg-elev); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-top: 1px solid var(--sep);
  }
  .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--text-3); padding: 6px 0; border: 0; background: none; cursor: pointer; transition: color 0.25s; }
  .tab .ico { width: 24px; height: 24px; transition: transform 0.3s var(--spring); }
  .tab.active { color: var(--accent); }
  .tab.active .ico { transform: translateY(-1px) scale(1.08); }
  .grid.c2, .grid.c3 { grid-template-columns: 1fr; }
  .title { margin-top: 10px; }
  .hero { padding: 24px 20px; border-radius: 24px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .sched-time { width: 74px; }
}
@media (max-width: 520px) {
  .grid.c4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 18px; border-radius: 22px; }
  .stat-big { font-size: 28px; }
  .hero-meta { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .io { opacity: 1; transform: none; }
}
