:root {
  color-scheme: dark;
  --bg: #dfeeff;
  --surface: rgba(255, 255, 255, 0.42);
  --surface-2: rgba(236, 245, 255, 0.74);
  --surface-3: rgba(223, 237, 255, 0.9);
  --ink: #13233f;
  --muted: #5d7598;
  --line: rgba(101, 148, 230, 0.16);
  --accent: #5f98ff;
  --accent-deep: #3973ef;
  --accent-2: #7cd9ff;
  --accent-3: #91a7ff;
  --good: #7ce3b2;
  --bad: #ff9ca5;
  --warn: #85aef9;
  --shadow: 0 28px 80px rgba(63, 102, 182, 0.16);
  --shadow-soft: 0 18px 42px rgba(63, 102, 182, 0.12);
  --hairline: rgba(255, 255, 255, 0.34);
  --glass: rgba(255, 255, 255, 0.32);
  --glass-strong: rgba(238, 246, 255, 0.82);
  --glass-soft: rgba(255, 255, 255, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(124, 217, 255, 0.46), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(120, 152, 255, 0.28), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(145, 167, 255, 0.22), transparent 32%),
    linear-gradient(180deg, #f3f9ff 0%, #dcedff 44%, #cfe4ff 100%),
    var(--bg);
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 72%);
  opacity: 0.38;
}

button,
select,
input,
.nav-jump,
.route-button {
  font: inherit;
}

button,
select,
input[type="search"],
.nav-jump,
.route-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

button {
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 12px 24px rgba(31, 62, 118, 0.12);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 174, 252, 0.44);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 16px 32px rgba(31, 62, 118, 0.16);
}

button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(121, 225, 255, 0.24);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

select,
input[type="search"] {
  padding: 0 12px;
}

.shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.topbar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 164px;
  padding: 30px 32px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 217, 255, 0.34), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(120, 152, 255, 0.24), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(232, 242, 255, 0.78));
  box-shadow:
    0 24px 72px rgba(63, 102, 182, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(24px);
}

.topbar::after {
  position: absolute;
  right: -120px;
  top: -80px;
  width: 340px;
  height: 340px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 217, 255, 0.34), transparent 68%);
  filter: blur(14px);
}

.install-hint {
  margin: 14px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(25, 30, 41, 0.98), rgba(16, 20, 29, 0.98)),
    var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  animation: liftIn 240ms ease both;
}

.install-hint-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.install-hint-copy {
  min-width: 0;
}

.install-hint h2 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.install-hint p {
  margin: 0;
  color: #b4bdca;
  line-height: 1.65;
}

.install-hint-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.install-step {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(124, 185, 255, 0.18);
  border-radius: 999px;
  background: rgba(124, 185, 255, 0.08);
  color: #cde6ff;
  font-size: 13px;
  font-weight: 800;
}

.install-hint-close {
  flex: 0 0 auto;
}

.topbar::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(90deg, black 0%, black 56%, transparent 78%);
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), transparent 38%),
    linear-gradient(160deg, #8ee0ff, #5d98ff 58%, #6f86ff);
  color: #f7fbff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow:
    0 16px 30px rgba(47, 114, 222, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.topbar h1 {
  color: #17305b;
  letter-spacing: 0.01em;
  text-shadow: none;
}

.brand p,
.section-head p,
.eyebrow {
  color: var(--muted);
}

.topbar .brand p {
  margin-top: 10px;
  color: rgba(33, 62, 109, 0.78);
  max-width: 48ch;
  line-height: 1.6;
}

.topbar-right {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 14px;
}

.creator-badge {
  display: grid;
  min-width: 170px;
  align-content: center;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 16px 30px rgba(63, 102, 182, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(16px);
}

.creator-badge span {
  color: rgba(47, 73, 116, 0.68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.creator-badge strong {
  margin-top: 5px;
  color: #17325a;
  font-size: 16px;
  line-height: 1.2;
}

.top-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(76px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 16px 30px rgba(63, 102, 182, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(16px);
}

.top-stats div {
  min-width: 76px;
  padding: 14px 16px 13px;
  background: rgba(255, 255, 255, 0.24);
}

.top-stats strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  color: #17325a;
}

.top-stats span {
  display: block;
  margin-top: 6px;
  color: #5a759a;
  font-size: 12px;
  font-weight: 700;
}

.view-tabs {
  position: sticky;
  z-index: 5;
  top: 10px;
  display: flex;
  gap: 9px;
  margin: 14px 0 18px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 16px 36px rgba(76, 110, 182, 0.12);
  backdrop-filter: blur(22px);
}

.tab,
.segmented button {
  background: rgba(255, 255, 255, 0.22);
  color: #27405f;
}

.view-tabs .tab,
.view-tabs .nav-jump {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 700;
}

.nav-jump:hover {
  border-color: rgba(124, 185, 255, 0.52);
  transform: translateY(-1px);
}

.tab.is-active,
.segmented button.is-active {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(135deg, rgba(120, 174, 252, 0.92), rgba(62, 121, 230, 0.9));
  color: #f1f7ff;
  box-shadow: 0 14px 28px rgba(62, 121, 230, 0.2);
}

.back-tab {
  border-color: rgba(121, 225, 255, 0.24);
  color: #cfefff;
}

.back-tab::before {
  content: "< ";
}

.view {
  display: none;
  animation: liftIn 220ms ease both;
}

.view.is-active {
  display: block;
}

.home-board {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 22px;
  align-items: stretch;
}

.study-lane {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  min-width: 0;
  min-height: 560px;
  gap: 32px;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 217, 255, 0.34), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(145, 167, 255, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(225, 239, 255, 0.9) 48%, rgba(214, 232, 255, 0.98));
  box-shadow:
    0 24px 72px rgba(63, 102, 182, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(20px);
}

.study-lane::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.practical-lane::before {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
}

.theory-lane {
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 217, 255, 0.4), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(95, 152, 255, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(231, 243, 255, 0.92) 52%, rgba(217, 234, 255, 0.98));
}

.practical-lane {
  background:
    radial-gradient(circle at 100% 0%, rgba(95, 152, 255, 0.26), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(124, 217, 255, 0.26), transparent 24%),
    linear-gradient(145deg, rgba(244, 249, 255, 0.56), rgba(224, 239, 255, 0.9) 52%, rgba(210, 228, 255, 0.98));
}

.lane-head {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.lane-head h2 {
  max-width: 10.5em;
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 0.94;
  color: #163462;
  overflow-wrap: anywhere;
}

.lane-head p:last-child {
  max-width: 36em;
  color: #496688;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

#view-home .eyebrow {
  color: #4f75a8;
  font-weight: 800;
}

.lane-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lane-metrics div {
  padding: 15px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
}

.lane-metrics strong {
  display: block;
  color: #173761;
  font-size: 24px;
}

.lane-metrics span {
  color: #5c7697;
  font-size: 12px;
  font-weight: 800;
}

.lane-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lane-actions button,
.route-button {
  min-width: 120px;
  min-height: 44px;
  font-weight: 800;
  padding-inline: 16px;
}

.route-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.route-button:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 185, 255, 0.48);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 10px 22px rgba(2, 10, 25, 0.24);
}

.home-rhythm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(230, 242, 255, 0.78)),
    rgba(255, 255, 255, 0.28);
  box-shadow:
    0 18px 42px rgba(63, 102, 182, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.home-rhythm strong {
  display: block;
  line-height: 1.5;
  color: #173761;
}

.home-rhythm p {
  min-width: 0;
  max-width: 42em;
  margin: 0;
  color: #4d6788;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 328px;
  gap: 18px;
  align-items: start;
}

.work-panel,
.side-panel,
.pattern-panel,
.list-panel,
.memory-panel,
.plan-item {
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 20px 56px rgba(63, 102, 182, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.work-panel {
  min-height: 640px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(231, 242, 255, 0.82)),
    var(--surface);
}

.toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 2px;
}

.segmented button {
  min-width: 92px;
  font-weight: 700;
}

.filter-row,
.memory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row select,
.memory-actions input,
.memory-actions select {
  min-width: 170px;
}

.ghost {
  background: transparent;
}

.question-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 20px;
  min-height: 500px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 217, 255, 0.22), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(228, 240, 255, 0.92) 140px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 24px 58px rgba(63, 102, 182, 0.16);
}

.question-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 58%, var(--accent-3));
}

.question-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 18px;
}

.eyebrow {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

#questionStem {
  max-width: 920px;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.32;
  font-weight: 850;
}

.star {
  width: 44px;
  height: 44px;
  padding: 0;
  border-color: rgba(111, 152, 227, 0.2);
  background: rgba(255, 255, 255, 0.4);
  color: #5e7496;
  font-size: 25px;
  line-height: 1;
}

.star.is-on {
  border-color: var(--accent-2);
  background: rgba(136, 216, 255, 0.14);
  color: #b8eeff;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
  align-items: flex-start;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(120, 174, 252, 0.16);
  background: rgba(120, 174, 252, 0.09);
  color: #295081;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

button.tag {
  min-height: 28px;
  cursor: pointer;
}

.tag.hot {
  border-color: rgba(124, 185, 255, 0.24);
  background: linear-gradient(135deg, rgba(124, 185, 255, 0.24), rgba(47, 114, 222, 0.22));
  color: #173867;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  min-height: 60px;
  padding: 15px 16px;
  text-align: left;
  border-color: rgba(108, 150, 230, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(233, 243, 255, 0.92)),
    rgba(255, 255, 255, 0.22);
  color: #17315c;
  line-height: 1.56;
}

.option:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(124, 185, 255, 0.34);
}

.option .key {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: rgba(103, 150, 242, 0.14);
  color: #244877;
  font-weight: 800;
  align-self: start;
}

.option.is-selected {
  border-color: var(--accent);
  background: rgba(120, 174, 252, 0.1);
  box-shadow: 0 0 0 3px rgba(120, 174, 252, 0.1);
}

.option.is-correct {
  border-color: rgba(37, 116, 71, 0.75);
  background: rgba(37, 116, 71, 0.11);
}

.option.is-wrong {
  border-color: rgba(182, 63, 63, 0.75);
  background: rgba(182, 63, 63, 0.08);
}

.feedback {
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(63, 102, 182, 0.14);
  animation: fadeIn 160ms ease both;
}

.feedback.good {
  border-color: rgba(37, 116, 71, 0.45);
  background:
    linear-gradient(90deg, rgba(97, 211, 143, 0.16), transparent 5px),
    rgba(15, 20, 25, 0.94);
}

.feedback.bad {
  border-color: rgba(182, 63, 63, 0.45);
  background:
    linear-gradient(90deg, rgba(255, 130, 130, 0.16), transparent 5px),
    rgba(22, 17, 18, 0.94);
}

.feedback strong {
  display: block;
  margin-bottom: 8px;
  color: #17325a;
}

.feedback p {
  color: #35506f;
  line-height: 1.65;
}

.study-explanation {
  color: #274566;
  line-height: 1.78;
}

.feedback details {
  margin-top: 12px;
  color: var(--muted);
}

.feedback summary {
  cursor: pointer;
  font-weight: 800;
}

.origin-notice {
  padding: 10px 12px;
  border: 1px solid rgba(136, 216, 255, 0.18);
  border-radius: 8px;
  background: rgba(136, 216, 255, 0.08);
  color: #23547f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-self: end;
}

.primary {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #eff6ff;
  box-shadow: 0 14px 28px rgba(47, 114, 222, 0.18);
}

.danger {
  border-color: rgba(182, 63, 63, 0.38);
  background: rgba(255, 234, 236, 0.92);
  color: #b34458;
}

.danger:hover {
  border-color: var(--bad);
}

.text-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2e6ab8;
  font-weight: 800;
  box-shadow: none;
}

.side-panel {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.26);
}

.side-block {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(232, 242, 255, 0.86)),
    rgba(255, 255, 255, 0.28);
}

.block-title,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.side-block h3,
.pattern-panel h3 {
  margin-bottom: 14px;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.score-ring {
  display: grid;
  width: 150px;
  height: 150px;
  margin: 8px auto 16px;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #f6fbff 57%, transparent 58%),
    conic-gradient(var(--accent) var(--rate, 0deg), rgba(117, 150, 205, 0.14) 0deg);
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    0 16px 36px rgba(63, 102, 182, 0.16);
}

.score-ring div {
  text-align: center;
}

.score-ring strong {
  display: block;
  font-size: 32px;
}

.score-ring span {
  color: #637c9d;
  font-size: 12px;
}

.stat-list {
  display: grid;
  gap: 6px;
}

.stat-list div,
.estimate-row,
.dist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.stat-list div:last-child,
.estimate-row:last-child,
.dist-row:last-child {
  border-bottom: 0;
}

.stat-list span,
.estimate-row span,
.dist-row span {
  color: #617b9c;
}

.bar {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.bar-fill {
  width: var(--width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transition: width 220ms ease;
}

.section-head {
  margin: 8px 0 20px;
  padding: 4px 0;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.plan-grid,
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.plan-item,
.pattern-panel {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(229, 241, 255, 0.92)),
    var(--surface);
}

button.plan-item {
  display: block;
  width: 100%;
  min-height: 224px;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

button.plan-item:hover,
.pattern-panel:hover,
.memory-row:hover,
.question-row:hover {
  border-color: rgba(124, 185, 255, 0.26);
  box-shadow: 0 24px 56px rgba(63, 102, 182, 0.18);
}

.plan-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.35;
  color: #17325a;
}

.plan-item p {
  color: #496688;
  line-height: 1.62;
}

.plan-item em {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
}

.plan-time {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(120, 174, 252, 0.16);
  background: rgba(120, 174, 252, 0.12);
  color: #5a78a2;
  font-size: 12px;
  font-weight: 800;
}

.mini-table {
  display: grid;
  gap: 8px;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 74px 72px;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

button.mini-row,
button.dist-row {
  width: 100%;
  min-height: auto;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  text-align: left;
  padding: 12px 16px;
}

button.mini-row:hover,
button.dist-row:hover,
.click-card:hover {
  background: rgba(124, 185, 255, 0.08);
}

.mini-row:last-child {
  border-bottom: 0;
}

.mini-row span {
  min-width: 0;
}

.mini-row strong {
  text-align: right;
}

.pill-score {
  justify-self: end;
  min-width: 52px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(124, 185, 255, 0.14);
  color: #31557f;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.list-panel,
.memory-panel {
  min-height: 420px;
  padding: 10px;
  overflow: hidden;
}

.empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.question-row,
.memory-row {
  display: grid;
  gap: 9px;
  margin: 2px 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.question-row:last-child,
.memory-row:last-child {
  border-bottom: 0;
}

.row-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.row-title {
  line-height: 1.6;
  font-weight: 700;
}

.row-answer {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.row-title,
.bar-head,
.stat-list strong,
.estimate-row strong,
.dist-row strong,
.pattern-panel h3,
.side-block h3,
.question-meta,
.memory-row,
.question-row {
  color: #17325a;
}

.mini-row span,
.bar-head,
.memory-actions input::placeholder,
.filter-row select,
.memory-actions select {
  color: #5f7798;
}

.practical-motto {
  margin-top: 14px;
}

.practical-card ul {
  margin: 0;
  padding-left: 20px;
  color: #ccdaef;
  line-height: 1.7;
}

.practical-card code {
  white-space: normal;
  color: #dff0ff;
  font-weight: 700;
  background: rgba(120, 174, 252, 0.14);
  border-radius: 6px;
  padding: 1px 4px;
}

.practical-templates pre {
  overflow: auto;
  margin: 0;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid rgba(120, 174, 252, 0.12);
  background: rgba(7, 15, 28, 0.88);
  color: #d9e7ff;
  line-height: 1.55;
}

.python-primer {
  display: grid;
  gap: 18px;
}

.python-core {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.python-core div {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(120, 174, 252, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(226, 239, 255, 0.92)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.python-core span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #88d8ff, #4c80ea);
  color: #f7fbff;
  font-size: 24px;
  font-weight: 900;
}

.python-core strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.python-core p,
.python-grid p {
  margin: 0;
  color: #35506f;
  line-height: 1.65;
}

.python-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.python-grid .pattern-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.python-grid code {
  padding: 1px 4px;
  border-radius: 5px;
  background: rgba(120, 174, 252, 0.14);
  color: #264d7d;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.python-grid pre code {
  background: transparent;
  color: inherit;
  font-weight: inherit;
}

.muted-line {
  color: var(--muted);
}

.writing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.pivot-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.writing-main {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  gap: 14px;
}

.writing-phrasebook {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(226, 239, 255, 0.92) 140px),
    var(--surface);
  box-shadow: var(--shadow);
}

.phrasebook-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 14px;
}

.phrasebook-head h3 {
  margin: 6px 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.phrasebook-head p {
  margin: 0;
  color: #4e6888;
  line-height: 1.65;
}

.phrasebook-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.phrase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 22px 18px;
}

.phrase-tab {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  font-weight: 800;
}

.phrase-tab.is-active {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 12px 26px rgba(11, 143, 130, 0.18);
}

.phrasebook-stage {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  padding: 0 22px 22px;
}

.phrasebook-rail,
.phrase-example {
  border: 1px solid rgba(120, 174, 252, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-soft);
}

.phrasebook-rail {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

.phrasebook-rail-top {
  display: grid;
  gap: 10px;
}

.phrasebook-rail strong {
  font-size: 20px;
  line-height: 1.5;
}

.phrasebook-rail p,
.phrase-example p {
  margin: 0;
  color: #4c6787;
  line-height: 1.65;
}

.phrase-fill {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phrasebook-jump {
  padding-top: 2px;
}

.phrase-script {
  display: grid;
  gap: 12px;
}

.phrase-block {
  position: relative;
  overflow: hidden;
  padding: 18px 20px 18px 22px;
  border: 1px solid rgba(120, 174, 252, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-soft);
  animation: phraseCardIn 320ms ease both;
}

.phrase-block::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
}

.phrase-block.problem::before {
  background: linear-gradient(180deg, #ff8e95, #ff6f8b);
}

.phrase-block.solution::before {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}

.phrase-block.step::before {
  background: linear-gradient(180deg, #9db2ff, #7588ff);
}

.phrase-block.effect::before {
  background: linear-gradient(180deg, #80e1bf, #4cc2ff);
}

.phrase-block:nth-child(1) {
  animation-delay: 30ms;
}

.phrase-block:nth-child(2) {
  animation-delay: 90ms;
}

.phrase-block:nth-child(3) {
  animation-delay: 150ms;
}

.phrase-block:nth-child(4) {
  animation-delay: 210ms;
}

.phrase-block-head {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.phrase-block-head span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(120, 174, 252, 0.12);
  color: #315b8b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.phrase-block ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: #35506f;
  line-height: 1.72;
}

.phrase-block li {
  animation: phraseLineIn 380ms ease both;
}

.phrase-block li:nth-child(1) {
  animation-delay: 90ms;
}

.phrase-block li:nth-child(2) {
  animation-delay: 150ms;
}

.phrase-block li:nth-child(3) {
  animation-delay: 210ms;
}

.phrase-block li:nth-child(4) {
  animation-delay: 270ms;
}

.phrase-example {
  margin: 0 22px 22px;
  padding: 16px 18px;
}

.phrase-example strong {
  display: block;
  margin-bottom: 6px;
}

.pivot-main {
  display: grid;
  gap: 12px;
}

.writing-cheat,
.writing-template,
.pivot-method {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
}

.writing-cheat {
  position: sticky;
  grid-column: 2;
  grid-row: 1;
  top: 90px;
  overflow-x: auto;
  padding: 20px;
}

.pivot-method {
  position: sticky;
  top: 90px;
  padding: 20px;
}

.pivot-method-block + .pivot-method-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pivot-method h3 {
  margin: 0 0 10px;
}

.writing-cheat .muted-line {
  margin-bottom: 12px;
  line-height: 1.6;
}

.writing-templates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.writing-template {
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.writing-template h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.writing-template p,
.writing-explain,
.answer-template {
  color: #35506f;
  line-height: 1.68;
}

.writing-template ul,
.writing-card ul,
.pivot-method ul,
.pivot-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #35506f;
  line-height: 1.7;
}

.writing-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(226, 239, 255, 0.92) 120px),
    var(--surface);
}

.pivot-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(225, 241, 255, 0.92) 120px),
    var(--surface);
}

.pivot-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pivot-columns section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(120, 174, 252, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.writing-card strong {
  display: block;
  margin-top: 4px;
}

.answer-template,
.cheat-note {
  padding: 14px;
  border: 1px solid rgba(120, 174, 252, 0.16);
  border-radius: 8px;
  background: rgba(120, 174, 252, 0.08);
}

.cheat-note {
  margin-bottom: 12px;
  color: #35506f;
  font-size: 13px;
  line-height: 1.55;
}

.cheat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cheat-table th,
.cheat-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.cheat-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cheat-table td:first-child {
  width: 58px;
  color: var(--accent-deep);
  font-weight: 900;
}

.cheat-table td:nth-child(2) {
  width: 96px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}

.pager button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.page-summary {
  padding: 11px 14px;
  border-radius: 8px;
  background: rgba(120, 174, 252, 0.08);
  color: #35506f;
  line-height: 1.55;
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes phraseCardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes phraseLineIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.practical-page .topbar .brand p {
  color: rgba(33, 62, 109, 0.72);
}

.practical-page .topbar {
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 217, 255, 0.34), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(120, 152, 255, 0.24), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(232, 242, 255, 0.78));
}

.practical-page .section-head h2,
.practical-page .row-title,
.practical-page .phrasebook-head h3,
.practical-page .writing-template h3,
.practical-page .pivot-method h3,
.practical-page .practical-card strong,
.practical-page .writing-card strong,
.practical-page .pivot-columns strong,
.practical-page .phrase-example strong {
  color: #17325a;
}

.practical-page .eyebrow,
.practical-page .muted-line,
.practical-page .cheat-table th,
.practical-page .dist-row span,
.practical-page .page-summary span {
  color: #5f7798;
}

.practical-page .plan-item,
.practical-page .pattern-panel,
.practical-page .memory-row,
.practical-page .writing-template,
.practical-page .writing-phrasebook,
.practical-page .writing-cheat,
.practical-page .pivot-method,
.practical-page .pivot-card,
.practical-page .python-core div,
.practical-page .pivot-columns section,
.practical-page .phrasebook-rail,
.practical-page .phrase-block,
.practical-page .phrase-example {
  border: 1px solid rgba(160, 189, 255, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(120, 174, 252, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(226, 239, 255, 0.92));
  box-shadow:
    0 18px 42px rgba(63, 102, 182, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
}

.practical-page .writing-phrasebook {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(226, 239, 255, 0.92) 150px),
    rgba(255, 255, 255, 0.36);
}

.practical-page .plan-item p,
.practical-page .practical-card ul,
.practical-page .writing-template p,
.practical-page .writing-explain,
.practical-page .answer-template,
.practical-page .writing-card ul,
.practical-page .pivot-method ul,
.practical-page .pivot-card ul,
.practical-page .phrasebook-head p,
.practical-page .phrasebook-rail p,
.practical-page .phrase-example p,
.practical-page .phrase-block ul,
.practical-page .python-core p,
.practical-page .python-grid p,
.practical-page .cheat-note,
.practical-page .cheat-table td {
  color: #35506f;
}

.practical-page .row-answer {
  color: #2c6ab8;
}

.practical-page .plan-time {
  border-color: rgba(124, 185, 255, 0.18);
  background: rgba(124, 185, 255, 0.12);
  color: #2e5887;
}

.practical-page .practical-card code,
.practical-page .python-grid code {
  border: 1px solid rgba(124, 185, 255, 0.16);
  background: rgba(124, 185, 255, 0.12);
  color: #264d7d;
}

.practical-page .practical-templates pre,
.practical-page .python-grid pre {
  border: 1px solid rgba(124, 185, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(230, 242, 255, 0.94)),
    rgba(255, 255, 255, 0.4);
  color: #294968;
}

.practical-page .python-core span {
  background: linear-gradient(135deg, #7cb9ff, #2f72de);
  color: #f4f8ff;
  box-shadow: 0 12px 24px rgba(47, 114, 222, 0.22);
}

.practical-page .phrase-tab {
  border: 1px solid rgba(160, 189, 255, 0.14);
  background: rgba(255, 255, 255, 0.4);
  color: #355885;
}

.practical-page .phrase-tab.is-active {
  border-color: rgba(124, 185, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, rgba(120, 174, 252, 0.94), rgba(62, 121, 230, 0.9));
  color: #f4f8ff;
  box-shadow: 0 16px 36px rgba(47, 114, 222, 0.24);
}

.practical-page .phrase-block::before {
  width: 5px;
}

.practical-page .phrase-block.problem::before {
  background: linear-gradient(180deg, #ff9a97, #ff6c84);
}

.practical-page .phrase-block.solution::before {
  background: linear-gradient(180deg, #79e1ff, #7cb9ff);
}

.practical-page .phrase-block.step::before {
  background: linear-gradient(180deg, #9fa8ff, #7988ff);
}

.practical-page .phrase-block.effect::before {
  background: linear-gradient(180deg, #70d9be, #4db8ff);
}

.practical-page .phrase-block-head span {
  border: 1px solid rgba(124, 185, 255, 0.14);
  background: rgba(124, 185, 255, 0.12);
  color: #2f5887;
}

.practical-page .answer-template,
.practical-page .cheat-note,
.practical-page .page-summary {
  border: 1px solid rgba(124, 185, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(228, 240, 255, 0.9)),
    rgba(255, 255, 255, 0.34);
  color: #35506f;
}

.practical-page .cheat-table td:first-child {
  color: #2f6cbc;
}

.practical-page .cheat-table td:nth-child(2) {
  color: #17325a;
}

@media (max-width: 980px) {
  .topbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    background:
      radial-gradient(circle at 0% 0%, rgba(124, 217, 255, 0.3), transparent 28%),
      radial-gradient(circle at 88% 14%, rgba(120, 152, 255, 0.22), transparent 24%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(232, 242, 255, 0.82));
  }

  .topbar-right {
    flex-direction: column;
  }

  .install-hint-shell {
    flex-direction: column;
  }

  .top-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-grid,
  .home-board,
  .plan-grid,
  .pattern-grid,
  .writing-templates,
  .pivot-layout,
  .pivot-columns,
  .python-grid {
    grid-template-columns: 1fr;
  }

  .writing-layout {
    display: flex;
    flex-direction: column;
  }

  .study-lane {
    min-height: 0;
  }

  .python-core {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel {
    position: static;
    grid-template-columns: 1fr;
  }

  .writing-cheat {
    order: 2;
    position: static;
    grid-column: auto;
    grid-row: auto;
  }

  .pivot-method {
    position: static;
  }

  .writing-main {
    order: 1;
    grid-column: auto;
    grid-row: auto;
  }

  .phrasebook-head,
  .phrasebook-stage {
    grid-template-columns: 1fr;
  }

  .phrasebook-head {
    flex-direction: column;
  }

  .phrasebook-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 18px, 1440px);
    padding-top: 12px;
  }

  .topbar {
    min-height: 0;
    padding: 18px;
  }

  .install-hint {
    padding: 14px;
  }

  .install-hint h2 {
    font-size: 20px;
  }

  .install-step {
    min-width: 0;
    padding: 5px 9px;
    overflow-wrap: anywhere;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .view-tabs {
    overflow-x: auto;
    top: 6px;
  }

  .tab {
    min-width: 72px;
  }

  .segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segmented button {
    min-width: 0;
  }

  .segmented button:first-child,
  .segmented button:last-child {
    grid-column: span 2;
  }

  .lane-head h2 {
    max-width: none;
    font-size: 30px;
  }

  .study-lane {
    gap: 14px;
    padding: 16px;
  }

  .lane-metrics {
    display: none;
  }

  .python-core {
    grid-template-columns: 1fr;
  }

  .lane-actions button,
  .lane-actions .route-button {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }

  .home-rhythm {
    align-items: stretch;
    flex-direction: column;
  }

  .phrasebook-head,
  .phrase-tabs,
  .phrasebook-stage,
  .phrase-example {
    padding-left: 14px;
    padding-right: 14px;
  }

  .phrasebook-head {
    padding-top: 16px;
    padding-bottom: 12px;
  }

  .phrasebook-stage {
    padding-bottom: 14px;
  }

  .phrasebook-rail strong {
    font-size: 18px;
  }

  .phrase-tab {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 0 10px;
  }

  .question-card {
    padding: 16px;
  }

  .question-card::before {
    height: 3px;
  }

  #questionStem {
    font-size: 22px;
  }

  .option {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .filter-row select,
  .filter-row button,
  .memory-actions input,
  .memory-actions select {
    width: 100%;
  }
}
