/* Bilent motion identity. Design process: unslop by Damir Sokolovsky,
   https://heydamir.design/unslop — CC BY 4.0. */
:root {
  --bg: #f4f7fb;
  --panel: #fff;
  --ink: #222223;
  --muted: #7d7e80;
  --line: #e7eaed;
  --green: var(--brand);
  --soft: #eff2f6;
  --nav: #fff;
  --shadow: 0 8px 24px #22222308;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
body {
  color: var(--ink);
  font-size: 16px;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.18;
}
h2 {
  font-size: 1.25rem;
}
.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.primary:hover {
  background: #494a4b;
  color: white;
  border-color: #494a4b;
}
.btn {
  border-radius: 10px;
  min-height: 44px;
  font-size: 0.94rem;
  padding: 10px 18px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition:
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.btn:hover {
  box-shadow: 0 3px 10px #2626270a;
}
.btn:active,
.option:active,
.subject-tab:active {
  transform: scale(0.98);
}
.btn:disabled:active {
  transform: none;
}
.large-btn {
  min-height: 50px;
  padding-inline: 24px;
}
.badge {
  border-radius: 6px;
  font-weight: 500;
  background: var(--soft);
  color: var(--green);
  font-size: 0.8rem;
  padding: 5px 9px;
}
.amber {
  background: #fff3dd;
  color: #92611b;
}
.card {
  border-radius: 16px;
  box-shadow: 0 2px 3px #22222302;
  padding: 24px;
  border-color: var(--line);
}
.icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
}
.iconbox {
  background: var(--soft);
  color: var(--green);
  border-radius: 10px;
  width: 40px;
  height: 40px;
}
.brand-symbol {
  width: 38px;
  height: 38px;
  flex: none;
}
.brand {
  font-size: 1.6rem;
  letter-spacing: -0.045em;
  gap: 10px;
  font-weight: 650;
}
.brand .badge {
  font-size: 0.7rem;
}
.shell {
  grid-template-columns: 248px minmax(0, 1fr);
}
.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--line);
  color: #747577;
  padding: 28px 16px 20px;
  gap: 22px;
  scrollbar-width: thin;
  scrollbar-color: #e6e8ec transparent;
}
.sidebar .brand {
  color: var(--ink);
  padding: 0 12px;
}
.navlabel {
  font-size: 0.75rem;
  color: #868789;
  margin: 8px 0;
  padding: 0 14px;
}
.navgroup {
  gap: 4px;
}
.navgroup a {
  padding: 10px 13px;
  min-height: 42px;
  border-radius: 9px;
  font-size: 0.9rem;
  gap: 12px;
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease);
}
.navgroup a:hover {
  color: var(--green);
  background: var(--soft);
}
.navgroup .active {
  background: var(--soft);
  color: var(--green);
  box-shadow: none;
  font-weight: 600;
}
.navgroup a .icon {
  color: inherit;
  width: 19px;
  height: 19px;
}
.sidepromo {
  background: #f2f5f9;
  border: 1px solid #e6e8ec;
  color: #48494a;
  padding: 18px;
  border-radius: 12px;
}
.sidepromo p {
  color: #7c7d7f;
}
.sidepromo .btn {
  background: var(--brand);
  color: white;
  border-radius: 8px;
}
.sidebar > .small {
  padding-inline: 14px;
  font-size: 0.8rem;
}
.sidebar > .small[href="admin.html"] {
  font-weight: 600;
  color: var(--green);
  background: var(--soft);
  padding: 10px 14px;
  border-radius: 9px;
}
.sidebar > .small[href^="legacy"] {
  display: none;
}
.topbar {
  height: 76px;
  padding: 0 32px;
  background: var(--panel);
}
.topbar .btn {
  border-color: transparent;
  background: var(--bg);
  min-height: 38px;
  padding: 8px 12px;
}
.avatar {
  background: #edf0f3;
  color: #5b5c5d;
  border: 2px solid var(--panel);
}
.streakpill {
  background: #fff4e0;
  color: #8b601e;
  font-size: 0.8rem;
}
.pill .icon {
  width: 16px;
  height: 16px;
}
.page {
  padding: 28px 32px 60px;
  max-width: 1600px;
}
.demo {
  font-size: 0.76rem;
  margin-bottom: 20px;
  color: #888a8c;
}
.demo .icon {
  width: 15px;
  height: 15px;
}
.breadcrumb {
  font-size: 0.8rem;
}
.pagehead {
  margin-bottom: 28px;
}
.pagehead h1 {
  font-size: 2rem;
}
.pagehead p {
  font-size: 0.94rem;
}
.tip {
  border-left-color: #e8b557;
  background: #fff8eb;
  color: #7b6033;
}
.progress {
  background: #ebeef1;
  height: 6px;
}
.progress span {
  background: var(--green);
}
input,
textarea,
select {
  border-color: var(--line);
  border-radius: 9px;
  transition:
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
  background: var(--panel);
}
input:focus,
textarea:focus,
select:focus {
  border-color: #a5a7a9;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 6.27%, transparent);
}
label {
  color: var(--ink);
  font-size: 0.9rem;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23718096' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.eyebrow {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 7px;
}
.dashboard-heading {
  margin-bottom: 28px;
}
.dashboard-heading p {
  margin-top: 8px;
  font-size: 0.94rem;
}
.dashboard-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(270px, 1fr);
  gap: 20px;
}
.goal-overview {
  background: #f0f0ee;
  border-color: #e8ebee;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  padding: 26px 28px;
  position: relative;
  min-height: 260px;
}
.goal-overview h2 {
  font-size: 3.5rem;
  letter-spacing: -0.06em;
  line-height: 1.2;
  margin: 14px 0 8px;
  color: #39393a;
}
.goal-overview h2 span {
  font-size: 1rem;
  color: #818385;
  letter-spacing: 0;
  font-weight: 400;
}
.goal-overview p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #717274;
}
.goal-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 23px;
  flex-wrap: wrap;
}
.goal-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #7d7f81;
}
.goal-date .icon {
  width: 16px;
  height: 16px;
}
.goal-visual {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  margin: -10px -40px -20px -18px;
}
.journey-visual {
  width: 100%;
  height: auto;
  display: block;
}
.goal-visual .journey-visual {
  min-width: 260px;
}
.goal-visual .visual-score {
  display: none;
}
.goal-visual .journey-visual > rect {
  fill: transparent;
}
.goal-visual .journey-visual > g {
  transform-origin: center;
}
.forecast-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
}
.forecast-panel > .row {
  font-size: 0.875rem;
  color: var(--muted);
}
.forecast-panel > strong {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.3;
  display: block;
  margin: 20px 0;
  color: var(--ink);
}
.forecast-panel > strong small {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.score-scale {
  height: 8px;
  background: var(--soft);
  border-radius: 10px;
  position: relative;
  margin: 5px 0 12px;
}
.score-scale span {
  height: 8px;
  border-radius: 8px;
  position: absolute;
  background: var(--green);
}
.score-scale i {
  position: absolute;
  width: 2px;
  height: 16px;
  background: #dcaa54;
  top: -4px;
}
.forecast-panel p {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: 18px;
}
.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 23px 0;
  margin: 20px 0;
}
.dashboard-kpis > div {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.dashboard-kpis > div:last-child {
  border: 0;
}
.dashboard-kpis span {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.dashboard-kpis .icon {
  width: 17px;
  height: 17px;
}
.dashboard-kpis strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: -0.03em;
}
.dashboard-kpis small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 20px;
}
.progress-panel {
  min-height: 340px;
  display: flex;
  flex-direction: column;
}
.progress-panel .chart {
  height: 235px;
  margin-top: 10px;
}
.progress-panel > div > div > p {
  margin-top: 5px;
}
.chart polyline {
  stroke: var(--brand);
  stroke-width: 3;
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
}
.chart circle {
  fill: var(--brand);
}
.chart text {
  font-family: inherit;
  font-size: 12px;
}
.chart-key {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: auto;
}
.chart-key span {
  width: 16px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}
.today-panel .task {
  padding: 16px 0;
  gap: 10px;
}
.task h3 {
  font-size: 0.9rem;
  letter-spacing: 0;
}
.task p {
  font-size: 0.78rem;
}
.task .btn {
  font-size: 0.8rem;
  padding: 7px 10px;
  min-height: 34px;
}
.task input {
  width: 17px;
  height: 17px;
}
.today-panel > .row > .badge {
  font-size: 0.75rem;
}
.plan-empty-visual {
  padding: 32px 6px 12px;
  text-align: center;
}
.plan-empty-visual > .icon {
  width: 38px;
  height: 38px;
  color: #b4b6b8;
  margin-bottom: 12px;
}
.plan-empty-visual h3 {
  font-size: 1rem;
}
.plan-empty-visual p {
  font-size: 0.85rem;
  margin: 9px 0 18px;
}
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.85fr;
  gap: 20px;
  margin-top: 20px;
}
.focus-panel .topics-list > div {
  padding: 17px 0;
}
.focus-panel .topics-list strong {
  font-size: 0.875rem;
}
.focus-panel .topics-list p {
  font-size: 0.75rem;
}
.focus-panel .btn {
  font-size: 0.8rem;
  min-height: 34px;
  padding: 7px 11px;
}
.tutor-promo {
  background: #f0f3f6;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.tutor-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 12px;
  color: var(--green);
  margin-bottom: 15px;
}
.tutor-promo h2 {
  font-size: 1.2rem;
  max-width: 220px;
  line-height: 1.35;
}
.tutor-promo p,
.daily-panel p {
  font-size: 0.85rem;
  line-height: 1.65;
  margin: 10px 0 22px;
}
.tutor-promo .btn {
  margin-top: auto;
}
.daily-panel h2 {
  font-size: 1.1rem;
  margin-top: 18px;
}
.daily-panel {
  display: flex;
  align-items: start;
  flex-direction: column;
}
.daily-panel .btn {
  margin-top: auto;
}
.landnav {
  max-width: 1280px;
  height: 88px;
}
.landnav .brand {
  font-size: 1.7rem;
}
.landlinks {
  color: #6e6f71;
  gap: 32px;
}
.landnav > .row > .btn:not(:last-child) {
  border: 0;
  padding: 8px 10px;
  background: var(--bg);
}
.landing {
  background: var(--panel);
}
.landsection {
  max-width: 1250px;
  padding: 76px 32px;
}
.motion-hero {
  min-height: 620px;
  padding-top: 48px;
  padding-bottom: 50px;
  grid-template-columns: 1.02fr 1fr;
  gap: 24px;
}
.hero-context {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #636466;
}
.context-line {
  width: 25px;
  height: 2px;
  background: var(--green);
}
.motion-hero h1 {
  font-size: clamp(2.8rem, 4.6vw, 4rem);
  letter-spacing: -0.045em;
  font-weight: 600;
  line-height: 1.08;
  margin: 25px 0;
}
.motion-hero h1 em {
  color: var(--brand);
  font-weight: 600;
}
.motion-hero p {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 490px;
  color: #7e7f81;
  margin-bottom: 26px;
}
.hero-actions {
  gap: 12px;
}
.hero-footnote {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8d8e91;
  font-size: 0.8rem;
  margin-top: 18px;
}
.hero-footnote .icon {
  width: 16px;
  height: 16px;
  color: #508369;
}
.hero-scene {
  min-width: 0;
  align-self: center;
}
.hero-scene .journey-visual {
  width: 110%;
  max-width: none;
  margin: 0 -5%;
  transform: none;
}
.scene-caption {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 380px;
  margin: -10px auto 0;
  background: var(--panel);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
.caption-symbol {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 9px;
  color: var(--green);
  flex: none;
}
.scene-caption strong {
  font-size: 0.85rem;
}
.scene-caption p {
  font-size: 0.75rem;
  margin: 3px 0 0;
  line-height: 1.4;
}
.landing-ribbon {
  max-width: 1186px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.landing-ribbon > div {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  border-right: 1px solid var(--line);
}
.landing-ribbon > div:last-child {
  border: 0;
}
.landing-ribbon strong {
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: #363738;
}
.landing-ribbon span {
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 120px;
  color: #858789;
}
.landsection h2 {
  font-size: 2.2rem;
  font-weight: 600;
}
.feature .iconbox {
  width: 46px;
  height: 46px;
}
.feature h3 {
  font-weight: 600;
  font-size: 1.1rem;
}
.hero-preview {
  background: var(--soft);
}
.scorelarge {
  color: var(--green);
}
.metric .iconbox {
  display: none;
}
.metric strong {
  font-size: 2rem;
}
.metric .row {
  margin-bottom: 10px;
}
.metric {
  padding: 24px;
}
.composition-icon {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--green);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  flex: none;
}
.subject-art {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.exam-topline {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
}
.exam-topline > div:first-child {
  margin-right: auto;
}
.exam-topline h1 {
  font-size: 1.9rem;
}
.exam-timer {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px 20px;
  border-radius: 12px;
}
.exam-timer > .icon {
  color: var(--green);
  width: 24px;
  height: 24px;
}
.exam-timer span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}
.exam-timer strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.exam-overall {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  color: var(--muted);
}
.exam-overall > .progress {
  flex: 1;
  margin: 0;
}
.exam-overall strong {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 500;
}
.subject-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}
.subject-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 155px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  text-align: left;
  transition:
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.subject-tab.active {
  background: #f0f0ee;
  border-color: #aaacae;
  color: var(--brand);
  box-shadow: inset 0 -2px var(--brand);
}
.subject-tab-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg);
  flex: none;
  color: #929396;
}
.subject-tab.active .subject-tab-icon {
  background: #e6e8ec;
  color: var(--brand);
}
.subject-tab-text {
  min-width: 0;
}
.subject-tab strong {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.35;
}
.subject-tab small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 4px;
}
.tab-complete {
  margin-left: auto;
  flex: none;
  color: #1b8a5b;
}
.tab-complete .icon {
  width: 15px;
  height: 15px;
}
.exam-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.exam-question {
  padding: 28px 32px;
  min-height: 590px;
  display: flex;
  flex-direction: column;
}
.question-position {
  font-size: 0.85rem;
}
.question-position strong {
  font-size: 1.15rem;
  font-weight: 600;
  margin-left: 5px;
}
.question-topic {
  font-size: 0.8rem;
  color: #8d8e91;
  margin-top: 16px;
}
.level-dots {
  display: flex;
  gap: 3px;
  align-items: end;
  height: 14px;
}
.level-dots i {
  width: 4px;
  height: 6px;
  background: #e6e8ec;
  border-radius: 2px;
}
.level-dots i:nth-child(2) {
  height: 10px;
}
.level-dots i:nth-child(3) {
  height: 14px;
}
.level-dots i.filled {
  background: #949698;
}
.exam-question > .row .btn {
  padding: 8px;
  border-color: transparent;
  background: var(--bg);
  min-height: 36px;
}
.exam-question .question {
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 18px 0 28px;
  line-height: 1.55;
}
.options {
  gap: 10px;
}
.option {
  padding: 14px 16px;
  border-radius: 10px;
  gap: 14px;
  transition:
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    transform 0.18s var(--ease);
  font-size: 1rem;
}
.option:hover:not(:disabled) {
  background: var(--bg);
  border-color: #c4c6c9;
}
.option b {
  border-radius: 7px;
  background: var(--bg);
  border: 0;
  color: #87898b;
  font-weight: 500;
  width: 32px;
  height: 32px;
}
.option.selected {
  background: #f0f0ee;
  border-color: #9fa0a3;
  color: #4a4b4c;
  animation: selected-option 0.24s var(--ease);
}
.option.selected b {
  background: var(--brand);
  color: white;
}
.option-check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--brand);
}
.option-check .icon {
  width: 19px;
  height: 19px;
}
.question-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 30px;
}
.exam-aside {
  display: grid;
  gap: 18px;
}
.question-map {
  padding: 22px;
}
.question-map h2 {
  font-size: 1rem;
}
.question-map > .row > .small {
  font-size: 0.7rem;
}
.question-map .qnav {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 20px;
}
.qnav button {
  height: 36px;
  font-size: 0.85rem;
  border-radius: 8px;
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    transform 0.15s var(--ease);
}
.qnav button:hover {
  border-color: var(--green);
}
.qnav .answered {
  background: #edf0f3;
  color: #4f5051;
  border-color: #e6e8ec;
}
.qnav .current {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.qnav .flagged {
  box-shadow: inset 0 -3px #e8ae45;
}
.map-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-square {
  width: 11px;
  height: 11px;
  border: 1px solid #e6e8ec;
  border-radius: 3px;
}
.legend-square.filled {
  background: #e6e8ec;
  border-color: #e6e8ec;
}
.legend-square.flagged {
  border-bottom: 3px solid #e8ae45;
}
.exam-subject-summary {
  padding: 22px;
}
.exam-subject-summary h3 {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 14px 0 9px;
}
.exam-subject-summary p {
  font-size: 0.8rem;
  line-height: 1.7;
}
.exam-subject-summary .btn {
  width: 100%;
  font-size: 0.85rem;
}
.answer-explanation {
  display: flex;
  gap: 14px;
  background: #f3f5f9;
  padding: 18px;
  border-radius: 10px;
  margin-top: 20px;
}
.answer-explanation p {
  font-size: 0.9rem;
  margin-top: 8px;
}
.exam-setup-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: start;
}
.exam-config h2 {
  margin-bottom: 25px;
}
.exam-config .formgrid {
  gap: 20px;
}
.exam-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--bg);
  border-radius: 10px;
  padding: 18px;
  margin: 24px 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.exam-rules span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.exam-rules .icon {
  width: 18px;
  height: 18px;
}
.exam-config .large-btn {
  width: 100%;
  justify-content: space-between;
}
.exam-composition h2 {
  margin-bottom: 12px;
}
.composition-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.composition-row strong {
  font-size: 0.9rem;
}
.composition-row p {
  font-size: 0.8rem;
  margin-top: 3px;
}
.composition-row > span:last-child {
  margin-left: auto;
  font-size: 0.65rem;
}
.spec-reference {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.72rem;
  color: var(--muted);
}
.spec-reference a {
  color: var(--green);
  margin-left: auto;
}
.spec-reference .icon {
  width: 15px;
  height: 15px;
}
.continue-card {
  border-color: #e6e8ec;
  background: #f5f8fc;
}
.continue-card h3 {
  margin-top: 8px;
}
.question-context {
  padding: 18px;
  background: var(--bg);
  border-radius: 10px;
  margin-top: 20px;
  white-space: pre-line;
  color: var(--muted);
  font-size: 0.9rem;
}
.specification-status h2 {
  margin: 18px 0 12px;
}
.specification-status p {
  max-width: 900px;
  line-height: 1.8;
}
.specification-card h3 {
  margin: 18px 0 8px;
}
.specification-card p {
  margin-top: 6px;
  font-size: 0.85rem;
}
.chart {
  color: var(--muted);
}
.chatbox {
  background: var(--bg);
  border: 1px solid var(--line);
}
.bubble {
  box-shadow: none;
  border-radius: 12px;
}
.bubble.user {
  background: #edf0f3;
  color: #404142;
}
.tutor-promo .primary {
  background: var(--brand);
  color: #fff;
}
.bottomnav a.active {
  color: var(--green);
}
.toast {
  background: #353536;
  animation: toast-in 0.25s var(--ease);
}
.toast.error {
  background: #983b43;
}
.confirm-dialog {
  animation: dialog-in 0.22s var(--ease);
}
.press-wave {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.12;
  width: 30px;
  height: 30px;
  pointer-events: none;
  animation: press-wave 0.55s var(--ease) forwards;
}
.view-enter .pagehead,
.view-enter .dashboard-heading,
.view-enter .exam-topline {
  animation: enter-up 0.4s var(--ease) both;
}
.view-enter .card,
.view-enter .hero-copy,
.view-enter .hero-scene {
  animation: enter-up 0.45s var(--ease) both;
}
.view-enter .card:nth-child(2) {
  animation-delay: 40ms;
}
.view-enter .card:nth-child(3) {
  animation-delay: 80ms;
}
.view-enter .draw-route {
  stroke-dasharray: 700;
  animation: draw-route 1.15s var(--ease) both;
}
.view-enter .chart polyline {
  animation: draw-chart 0.9s var(--ease) both;
}
.option.selected .option-check {
  animation: check-in 0.18s var(--ease);
}
@keyframes enter-up {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes selected-option {
  from {
    background: var(--panel);
  }
  to {
    background: #f0f0ee;
  }
}
@keyframes check-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes draw-route {
  from {
    stroke-dashoffset: 700;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes draw-chart {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes press-wave {
  to {
    transform: scale(12);
    opacity: 0;
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
[data-theme="dark"] {
  --bg: #151515;
  --panel: #1e1f1f;
  --ink: #eaedf0;
  --muted: #a2a4a6;
  --line: #333334;
  --green: #a4a6a9;
  --soft: #303031;
  --nav: #1b1b1c;
  color: var(--ink);
  background: var(--bg);
}
[data-theme="dark"] .sidebar {
  background: var(--panel);
}
[data-theme="dark"] .primary {
  background: #afb0b3;
  border-color: #afb0b3;
  color: #1d1d1e;
}
[data-theme="dark"] .sidepromo,
[data-theme="dark"] .goal-overview,
[data-theme="dark"] .tutor-promo,
[data-theme="dark"] .hero-preview {
  background: #2a2a2b;
  border-color: #3c3c3d;
}
[data-theme="dark"] .sidepromo p,
[data-theme="dark"] .goal-overview p {
  color: #b1b3b6;
}
[data-theme="dark"] .goal-overview h2,
[data-theme="dark"] .landing-ribbon strong {
  color: #e6e8ec;
}
[data-theme="dark"] .goal-visual .journey-visual {
  opacity: 0.8;
}
[data-theme="dark"] .hero-scene .journey-visual > rect {
  fill: #2a2a2b;
}
[data-theme="dark"] .subject-tab.active,
[data-theme="dark"] .option.selected,
[data-theme="dark"] .answer-explanation {
  background: #353536;
  border-color: #828385;
  color: #e6e8ec;
}
[data-theme="dark"] .option.selected b {
  background: #afb0b3;
  color: #202021;
}
[data-theme="dark"] .option-check {
  color: #e6e8ec;
}
[data-theme="dark"] .bubble.user {
  background: #363738;
  color: #e6e8ec;
}
[data-theme="dark"] .streakpill {
  background: #3a3020;
  color: #d6b87e;
}
[data-theme="dark"] .tinted {
  background: var(--bg);
}
[data-theme="dark"] .tip {
  background: #3b3325;
  color: #decaa4;
}
[data-theme="dark"] .continue-card {
  background: #2a2a2b;
}
@media (min-width: 1600px) {
  .page {
    padding: 36px 44px;
  }
  .dashboard-summary {
    grid-template-columns: 2fr 1fr;
  }
  .goal-overview {
    min-height: 280px;
  }
  .goal-visual .journey-visual {
    max-width: 360px;
  }
  .dashboard-main-grid {
    grid-template-columns: 1.8fr 1fr;
  }
  .progress-panel .chart {
    height: 260px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .sidebar .brand {
    font-size: 1.4rem;
  }
  .brand-symbol {
    width: 34px;
    height: 34px;
  }
  .page {
    padding: 26px 24px 60px;
  }
  .dashboard-bottom-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .daily-panel {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    column-gap: 18px;
    align-items: center;
  }
  .daily-panel h2 {
    margin: 0;
  }
  .daily-panel p {
    grid-column: 2;
    margin: 0;
  }
  .daily-panel > .iconbox {
    grid-row: 1/3;
  }
  .daily-panel > .btn {
    grid-column: 3;
    grid-row: 1/3;
  }
  .goal-overview {
    grid-template-columns: 1fr 0.7fr;
    padding: 24px;
  }
  .goal-visual {
    margin-inline: -36px;
  }
  .goal-overview h2 {
    font-size: 3rem;
  }
  .dashboard-main-grid {
    grid-template-columns: 1.1fr 1fr;
  }
  .exam-workspace {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
  }
  .exam-question {
    padding: 24px;
  }
  .subject-tab {
    min-width: 150px;
  }
  .motion-hero {
    gap: 12px;
  }
  .scene-caption {
    max-width: 340px;
    padding: 14px;
  }
  .hero-copy .large-btn {
    padding-inline: 18px;
  }
  .hero-scene .journey-visual {
    width: 108%;
  }
  .exam-setup-grid {
    grid-template-columns: 1fr;
  }
  .exam-composition {
    display: block;
  }
  .dashboard-summary {
    grid-template-columns: 1.6fr 1fr;
  }
  .dashboard-kpis > div {
    padding: 0 18px;
  }
  .goal-bottom {
    gap: 10px;
  }
  .goal-date {
    display: none;
  }
}
@media (max-width: 1000px) {
  .dashboard-summary {
    grid-template-columns: 1fr;
  }
  .goal-overview {
    grid-template-columns: 1fr 0.8fr;
    min-height: 240px;
  }
  .goal-visual {
    margin: -24px -16px;
  }
  .goal-visual .journey-visual {
    max-width: 300px;
  }
  .forecast-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  .forecast-panel > .row:first-child {
    grid-column: 1;
  }
  .forecast-panel > strong {
    grid-column: 1;
    margin: 10px 0;
    grid-row: 2/4;
  }
  .forecast-panel > .score-scale {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }
  .forecast-panel > .row.small {
    grid-column: 2;
    grid-row: 3;
  }
  .forecast-panel > p {
    grid-column: 1/-1;
    margin-top: 12px;
  }
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-kpis {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }
  .dashboard-kpis > div:nth-child(2) {
    border: 0;
  }
  .exam-workspace {
    grid-template-columns: 1fr;
  }
  .exam-aside {
    grid-template-columns: 1.3fr 1fr;
  }
  .question-map .qnav {
    grid-template-columns: repeat(8, 1fr);
  }
  .exam-question {
    min-height: 540px;
  }
  .exam-topline {
    gap: 16px;
  }
  .exam-topline > .btn {
    font-size: 0.8rem;
    padding-inline: 12px;
  }
  .exam-timer {
    padding: 10px 14px;
  }
  .exam-topline h1 {
    font-size: 1.7rem;
  }
  .landhero h1 {
    font-size: 3.3rem;
  }
  .motion-hero {
    grid-template-columns: 1fr 1fr;
  }
  .hero-context {
    font-size: 0.75rem;
  }
  .motion-hero p {
    font-size: 0.9rem;
  }
  .hero-footnote {
    font-size: 0.7rem;
  }
  .scene-caption {
    display: none;
  }
  .motion-hero .hero-actions .large-btn {
    min-height: 44px;
    font-size: 0.85rem;
    padding-inline: 14px;
  }
  .landing-ribbon {
    margin-inline: 28px;
  }
  .landing-ribbon > div {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .landing-ribbon span {
    max-width: 130px;
  }
  .goal-date {
    display: flex;
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .sidebar {
    width: 264px;
    padding: 24px 16px;
    box-shadow: 0 0 0 100vmax #1b1b1b70;
  }
  .page {
    padding: 24px 20px 100px;
  }
  .topbar {
    height: 68px;
    padding: 0 20px;
  }
  .dashboard-heading {
    gap: 18px;
  }
  .dashboard-heading h1 {
    font-size: 1.8rem;
  }
  .dashboard-heading > .row {
    width: 100%;
  }
  .dashboard-heading > .row .btn {
    flex: 1;
    font-size: 0.85rem;
  }
  .goal-overview {
    padding: 24px;
    min-height: 240px;
  }
  .goal-overview h2 {
    font-size: 3.2rem;
  }
  .dashboard-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .focus-panel {
    grid-column: 1/-1;
  }
  .tutor-promo {
    min-height: 230px;
  }
  .daily-panel {
    grid-column: auto;
    display: flex;
    min-height: 230px;
  }
  .daily-panel h2 {
    margin-top: 18px;
  }
  .daily-panel p {
    margin: 10px 0 20px;
  }
  .topbar .streakpill {
    display: none;
  }
  .bottomnav {
    box-shadow: 0 -4px 18px #28292904;
  }
  .bottomnav a {
    font-size: 0.65rem;
  }
  .bottomnav .icon {
    width: 20px;
    height: 20px;
  }
  .motion-hero {
    grid-template-columns: 1fr;
    max-width: 650px;
    min-height: 0;
    padding: 40px 24px 25px;
    gap: 16px;
  }
  .motion-hero h1 {
    font-size: 3.6rem;
    margin: 22px 0;
  }
  .motion-hero p {
    font-size: 1rem;
    max-width: 520px;
  }
  .hero-scene {
    width: 100%;
    max-width: 500px;
    margin: auto;
  }
  .hero-scene .journey-visual {
    width: 100%;
    margin: 0;
  }
  .scene-caption {
    display: flex;
    margin-top: -20px;
  }
  .hero-context {
    font-size: 0.8rem;
  }
  .hero-footnote {
    font-size: 0.8rem;
  }
  .motion-hero .hero-actions .large-btn {
    font-size: 0.9rem;
    min-height: 48px;
    padding-inline: 20px;
  }
  .landnav {
    height: 76px;
    padding: 0 24px;
  }
  .landnav .brand {
    font-size: 1.5rem;
  }
  .landnav > .row {
    gap: 8px;
  }
  .landnav > .row .btn {
    font-size: 0.8rem;
    min-height: 38px;
    padding: 8px 11px;
  }
  .landsection {
    padding: 48px 24px;
  }
  .landing-ribbon {
    margin: 20px 24px 30px;
    padding: 24px 0;
  }
  .landing-ribbon strong {
    font-size: 1.7rem;
  }
  .landing-ribbon span {
    font-size: 0.7rem;
  }
  .exam-topline {
    flex-wrap: wrap;
    gap: 16px;
  }
  .exam-topline > div:first-child {
    width: 100%;
    margin: 0;
  }
  .exam-topline > .btn {
    margin-left: auto;
  }
  .exam-overall {
    gap: 12px;
    font-size: 0.7rem;
  }
  .exam-timer strong {
    font-size: 1.25rem;
  }
  .subject-tabs {
    margin: 0 -20px 18px;
    padding: 2px 20px 12px;
    gap: 8px;
  }
  .subject-tab {
    min-width: 175px;
    flex: none;
  }
  .exam-question {
    min-height: 560px;
    padding: 24px;
  }
  .exam-aside {
    grid-template-columns: 1fr;
  }
  .exam-subject-summary {
    display: none;
  }
  .question-map .qnav {
    grid-template-columns: repeat(10, 1fr);
  }
  .question-map {
    padding: 20px;
  }
  .question-footer .btn {
    font-size: 0.8rem;
    padding-inline: 12px;
  }
  .question-footer {
    gap: 8px;
  }
  .exam-composition .composition-row > span:last-child {
    font-size: 0.6rem;
  }
  .card {
    padding: 22px;
  }
  .note-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 500px) {
  .goal-overview {
    display: block;
    min-height: 0;
    padding: 24px;
  }
  .goal-visual {
    display: none;
  }
  .goal-overview h2 {
    font-size: 3.2rem;
  }
  .goal-overview p {
    font-size: 0.88rem;
  }
  .goal-overview .badge {
    font-size: 0.7rem;
  }
  .goal-overview > .row .small {
    font-size: 0.65rem;
  }
  .goal-date {
    display: none;
  }
  .forecast-panel {
    display: flex;
    align-items: stretch;
  }
  .forecast-panel > strong {
    font-size: 2.8rem;
    margin: 15px 0;
  }
  .forecast-panel p {
    margin-top: 14px;
  }
  .dashboard-kpis {
    margin: 16px 0;
    padding: 20px 0;
    row-gap: 20px;
  }
  .dashboard-kpis > div {
    padding: 0 18px;
  }
  .dashboard-kpis span {
    font-size: 0.7rem;
    gap: 5px;
  }
  .dashboard-kpis .icon {
    width: 15px;
    height: 15px;
  }
  .dashboard-kpis strong {
    font-size: 1.7rem;
  }
  .dashboard-kpis small {
    font-size: 0.7rem;
  }
  .dashboard-kpis > div:nth-child(3),
  .dashboard-kpis > div:nth-child(4) {
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
  .focus-panel {
    grid-column: auto;
  }
  .tutor-promo {
    min-height: 0;
  }
  .daily-panel {
    min-height: 0;
  }
  .daily-panel .btn {
    margin-top: 0;
  }
  .dashboard-main-grid,
  .dashboard-bottom-grid,
  .dashboard-summary {
    gap: 16px;
  }
  .dashboard-heading > .row .btn {
    padding-inline: 10px;
  }
  .progress-panel .chart {
    height: 200px;
  }
  .progress-panel {
    min-height: 300px;
  }
  .goal-bottom .btn {
    width: 100%;
  }
  .motion-hero h1 {
    font-size: 2.8rem;
  }
  .motion-hero {
    padding-top: 28px;
  }
  .hero-actions {
    gap: 9px;
  }
  .motion-hero .hero-actions .large-btn {
    padding-inline: 15px;
    font-size: 0.85rem;
  }
  .hero-scene {
    margin-top: 12px;
  }
  .scene-caption {
    max-width: 300px;
    padding: 12px 14px;
  }
  .scene-caption p {
    font-size: 0.65rem;
  }
  .scene-caption strong {
    font-size: 0.75rem;
  }
  .landing-ribbon {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
    margin-top: 32px;
  }
  .landing-ribbon > div:nth-child(2) {
    border: 0;
  }
  .landing-ribbon > div {
    flex-direction: row;
    text-align: left;
  }
  .landing-ribbon span {
    max-width: 95px;
  }
  .landing-ribbon strong {
    font-size: 1.8rem;
  }
  .landnav {
    padding: 0 20px;
  }
  .landnav > .row > .btn:last-child {
    display: none;
  }
  .landsection h2 {
    font-size: 1.8rem;
  }
  .question-map .qnav {
    grid-template-columns: repeat(6, 1fr);
  }
  .exam-question .question {
    font-size: 1.15rem;
    line-height: 1.65;
  }
  .option {
    font-size: 0.95rem;
    padding: 13px;
  }
  .question-footer > div:first-child:empty {
    display: none;
  }
  .question-footer > div:last-child {
    margin-left: auto;
  }
  .question-footer .btn {
    font-size: 0.75rem;
    padding-inline: 10px;
  }
  .exam-topline h1 {
    font-size: 1.65rem;
  }
  .exam-timer {
    padding: 10px 14px;
  }
  .exam-rules {
    gap: 14px;
    font-size: 0.75rem;
  }
  .composition-row {
    gap: 10px;
  }
  .composition-row strong {
    font-size: 0.85rem;
  }
  .composition-row > span:last-child {
    display: none;
  }
  .question-position {
    font-size: 0.8rem;
  }
  .pagehead h1 {
    font-size: 1.8rem;
  }
  .topbar .btn {
    padding: 8px 12px;
  }
  .exam-question {
    min-height: 520px;
  }
  .specification-status h2 {
    font-size: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.library-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: #f0f0ee;
  border: 1px solid #e7eaed;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
}
.library-intro h2 {
  font-size: 2rem;
  color: #3d3d3e;
}
.library-intro h2 > span {
  font-size: 1rem;
  font-weight: 400;
  color: #828385;
}
.library-intro p {
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 600px;
}
.library-illustration {
  display: flex;
  gap: 12px;
  padding: 10px;
  color: #989a9c;
}
.library-illustration .subject-art {
  width: 54px;
  height: 54px;
  stroke-width: 1.5;
}
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.segmented-control {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: #eef1f4;
  border-radius: 10px;
}
.segmented-control button {
  border: 0;
  background: transparent;
  padding: 9px 15px;
  color: #86888a;
  font-size: 0.85rem;
  border-radius: 7px;
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.segmented-control button.active {
  background: var(--panel);
  box-shadow: 0 2px 5px #3737380c;
  color: #4b4c4d;
}
.segmented-control button span {
  font-size: 0.7rem;
  background: var(--bg);
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 6px;
}
.library-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.library-subjects {
  padding: 18px 12px;
  position: sticky;
  top: 20px;
}
.library-subjects h3 {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0 10px;
  margin: 2px 0 15px;
}
.library-subject {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: left;
  color: var(--muted);
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease);
}
.library-subject > span {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.library-subject .icon {
  width: 17px;
  height: 17px;
}
.library-subject.active,
.library-subject:hover {
  background: var(--soft);
  color: var(--green);
}
.library-subject small {
  font-size: 0.65rem;
  background: var(--bg);
  padding: 2px 5px;
  border-radius: 4px;
}
.library-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 15px;
}
.library-search input {
  border: 0;
  box-shadow: none;
  padding: 13px 0;
}
.library-search .icon {
  color: #9d9fa1;
  width: 19px;
  height: 19px;
}
.library-count {
  padding: 18px 0;
  font-size: 0.8rem;
}
.library-count .small {
  font-size: 0.7rem;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.lesson-card,
.curriculum-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  transition:
    box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.lesson-card:hover,
.curriculum-card:hover {
  border-color: #e6e8ec;
  box-shadow: 0 5px 18px #32333308;
}
.note-subject {
  font-size: 0.7rem;
  color: #808183;
}
.lesson-card > .row .btn,
.curriculum-card .note-footer .btn:last-child {
  border: 0;
  min-height: 28px;
  padding: 2px 7px;
  color: #999a9d;
  background: none;
  font-size: 1.2rem;
}
.lesson-card h3,
.curriculum-card h3 {
  font-size: 1.1rem;
  line-height: 1.45;
  margin: 12px 0 9px;
}
.lesson-card > p,
.curriculum-card > p {
  font-size: 0.8rem;
  line-height: 1.75;
  margin-bottom: 23px;
}
.note-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  gap: 6px;
}
.note-footer > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #949698;
  font-size: 0.65rem;
}
.note-footer .icon {
  width: 14px;
  height: 14px;
}
.note-footer > .btn {
  font-size: 0.8rem;
  padding: 7px 12px;
  min-height: 34px;
}
.load-more {
  text-align: center;
  margin: 24px 0;
}
.curriculum-detail h2 {
  margin: 18px 0 15px;
  line-height: 1.5;
}
.curriculum-detail > p {
  max-width: 900px;
  line-height: 1.8;
}
.curriculum-steps {
  display: grid;
  gap: 14px;
  padding: 24px 0;
}
.curriculum-steps > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}
.curriculum-steps .icon {
  color: #929496;
}
.term-list {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}
.term-list p {
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  font-size: 0.95rem;
}
.matching-inputs {
  display: grid;
  gap: 16px;
}
.matching-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.matching-row > span {
  display: flex;
  gap: 12px;
  align-items: start;
  line-height: 1.7;
  margin-bottom: 12px;
}
.matching-row b {
  background: var(--soft);
  padding: 2px 8px;
  border-radius: 5px;
  color: var(--green);
  font-weight: 500;
}
.cms-heading h1 {
  font-size: 2rem;
}
.cms-heading p {
  font-size: 0.9rem;
  margin-top: 8px;
}
.cms-mode {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 10px;
  margin: 24px 0;
}
.cms-mode p {
  font-size: 0.78rem;
  line-height: 1.6;
}
.cms-mode .badge {
  white-space: nowrap;
}
.cms-layout {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.cms-nav {
  padding: 10px;
  display: grid;
  gap: 3px;
  position: sticky;
  top: 20px;
}
.cms-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 11px;
  border-radius: 8px;
  text-align: left;
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease);
}
.cms-nav button.active,
.cms-nav button:hover {
  background: var(--soft);
  color: var(--green);
}
.cms-nav .icon {
  width: 17px;
  height: 17px;
}
.cms-nav button > span {
  margin-left: auto;
  font-size: 0.7rem;
}
.cms-content {
  min-width: 0;
  display: grid;
  gap: 20px;
}
.cms-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cms-stats p {
  font-size: 0.75rem;
}
.cms-stats strong {
  font-size: 1.8rem;
  font-weight: 600;
  display: block;
  margin-top: 8px;
}
.cms-stats .card {
  padding: 19px;
}
.cms-coverage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
  row-gap: 22px;
  margin-top: 24px;
}
.cms-coverage strong {
  font-size: 0.8rem;
  font-weight: 500;
}
.cms-coverage span {
  font-size: 0.7rem;
  color: var(--muted);
}
.quality-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.85rem;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.quality-row strong {
  font-weight: 600;
}
.cms-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.cms-filters > input {
  flex: 1;
  min-width: 180px;
  font-size: 0.85rem;
}
.cms-filters > select {
  width: auto;
  max-width: 210px;
  font-size: 0.8rem;
}
.file-import {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--soft);
  border: 1px solid #e6e8ec;
  color: var(--green);
  padding: 9px 14px;
  border-radius: 9px;
  position: relative;
  cursor: pointer;
  font-size: 0.8rem;
  overflow: hidden;
}
.file-import input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-import .icon {
  width: 17px;
  height: 17px;
}
.cms-table td {
  padding: 18px 10px;
  font-size: 0.8rem;
}
.cms-table th {
  font-size: 0.75rem;
  padding: 12px 10px;
  background: var(--bg);
}
.cms-table td:first-child {
  width: 65%;
  min-width: 220px;
}
.cms-table td:first-child > strong {
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: 500;
  display: block;
  max-width: 540px;
}
.cms-table td:first-child > p {
  font-size: 0.7rem;
  margin: 6px 0 4px;
}
.cms-table td small {
  font-size: 0.65rem;
  color: #a2a4a6;
}
.cms-table td .btn {
  padding: 6px;
  min-height: 32px;
  border-color: transparent;
  background: var(--bg);
}
.cms-table td .btn .icon {
  width: 17px;
  height: 17px;
}
.cms-status {
  white-space: nowrap;
  font-size: 0.65rem;
  padding: 5px 8px;
  border-radius: 6px;
  background: #eaf5ee;
  color: #267549;
}
.cms-status.draft {
  background: #fff3dd;
  color: #916529;
}
.cms-status.archived {
  background: var(--bg);
  color: var(--muted);
}
.answer-editor {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin: 0;
}
.answer-editor legend {
  font-size: 0.9rem;
  padding: 0 7px;
}
.answer-editor-row {
  display: grid;
  grid-template-columns: 55px 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}
.answer-correct {
  display: flex;
  align-items: center;
  gap: 9px;
}
.answer-correct input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
}
.answer-correct b {
  font-weight: 500;
  color: var(--muted);
}
.answer-editor-row input {
  font-size: 0.85rem;
}
.answer-editor > p {
  font-size: 0.75rem;
  line-height: 1.7;
  margin-top: 14px;
}
.cms-editor-actions {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.cms-editor h2 {
  font-size: 1.4rem;
}
.cms-editor textarea {
  font-size: 0.9rem;
}
.cms-person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.cms-person p {
  font-size: 0.8rem;
}
.cms-person > .badge {
  margin-left: auto;
}
.cms-record {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.cms-record h3 {
  font-size: 1rem;
}
.cms-record > p {
  margin-top: 12px;
  white-space: pre-line;
  font-size: 0.9rem;
}
.structure-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.structure-row > div {
  flex: 1;
  min-width: 0;
}
.structure-row strong {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
}
.structure-row p {
  font-size: 0.75rem;
  margin-top: 3px;
}
.structure-row .btn {
  font-size: 0.75rem;
  padding: 7px 10px;
  min-height: 34px;
}
.structure-row .iconbox {
  width: 34px;
  height: 34px;
}
.structure-row .icon {
  width: 18px;
  height: 18px;
}
.cms-content .sectiongap {
  margin-top: 0;
}
.cms-content form .sectiongap {
  margin-top: 22px;
}
.cms-content .grid.two {
  gap: 20px;
}
.cms-content .empty .iconbox {
  display: grid;
}
.cms-person .avatar {
  flex: none;
}
[data-theme="dark"] .library-intro {
  background: #2a2a2b;
  border-color: #3c3c3d;
}
[data-theme="dark"] .library-intro h2 {
  color: #e6e8ec;
}
[data-theme="dark"] .segmented-control {
  background: #1c1c1d;
}
[data-theme="dark"] .segmented-control button.active {
  color: #c1c3c6;
}
[data-theme="dark"] .cms-status {
  background: #203e31;
  color: #a2d9ba;
}
[data-theme="dark"] .cms-status.draft {
  background: #3b3221;
  color: #e0c17d;
}
@media (min-width: 1600px) {
  .notes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cms-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
@media (max-width: 1200px) {
  .library-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
  }
  .library-intro {
    padding: 24px;
  }
  .library-illustration .subject-art {
    width: 40px;
    height: 40px;
  }
  .library-intro h2 {
    font-size: 1.7rem;
  }
  .library-intro h2 > span {
    display: block;
    margin-top: 7px;
    font-size: 0.85rem;
  }
  .cms-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
  }
  .cms-stats {
    grid-template-columns: 1fr 1fr;
  }
  .cms-coverage {
    grid-template-columns: 1fr;
  }
  .cms-table td:first-child {
    min-width: 180px;
  }
  .cms-mode {
    align-items: start;
  }
  .cms-heading > .row {
    margin-top: 16px;
  }
}
@media (max-width: 1000px) {
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .library-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .library-count > .small {
    display: none;
  }
  .library-illustration {
    display: none;
  }
  .cms-layout {
    grid-template-columns: 1fr;
  }
  .cms-nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    position: static;
    padding: 8px;
  }
  .cms-nav button {
    white-space: nowrap;
  }
  .cms-coverage {
    grid-template-columns: 1fr 1fr;
  }
  .cms-editor-actions {
    flex-wrap: wrap;
  }
  .cms-content .grid.two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .library-layout {
    grid-template-columns: 1fr;
  }
  .library-subjects {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 10px;
    position: static;
  }
  .library-subjects > h3 {
    display: none;
  }
  .library-subject {
    white-space: nowrap;
    width: auto;
    flex: none;
    padding: 8px 11px;
  }
  .library-subject small {
    display: none;
  }
  .notes-grid {
    grid-template-columns: 1fr 1fr;
  }
  .library-toolbar {
    gap: 12px;
    margin-bottom: 18px;
  }
  .library-toolbar > .row > .link {
    display: none;
  }
  .library-intro h2 {
    font-size: 1.8rem;
  }
  .library-intro {
    padding: 24px;
  }
  .library-content {
    min-width: 0;
  }
  .cms-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .cms-heading h1 {
    font-size: 1.8rem;
  }
  .cms-mode {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cms-coverage {
    grid-template-columns: 1fr 1fr;
  }
  .cms-table th {
    font-size: 0.7rem;
  }
  .answer-editor-row {
    gap: 8px;
    grid-template-columns: 45px 1fr 1fr;
  }
  .cms-heading > .row {
    width: 100%;
  }
  .cms-heading > .row > .btn {
    flex: 1;
    font-size: 0.8rem;
  }
}
@media (max-width: 500px) {
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .library-intro h2 {
    font-size: 1.7rem;
  }
  .library-intro h2 > span {
    font-size: 0.85rem;
  }
  .library-intro p {
    font-size: 0.8rem;
  }
  .library-toolbar > .row > .btn {
    padding: 7px 9px;
    min-height: 37px;
    font-size: 0.7rem;
  }
  .segmented-control button {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
  .segmented-control button span {
    font-size: 0.6rem;
    padding: 1px 4px;
  }
  .library-toolbar {
    gap: 10px;
  }
  .library-toolbar > .row {
    display: none;
  }
  .library-intro {
    margin-bottom: 18px;
  }
  .cms-stats {
    grid-template-columns: 1fr 1fr;
  }
  .cms-coverage {
    grid-template-columns: 1fr;
  }
  .cms-mode p {
    font-size: 0.7rem;
  }
  .answer-editor-row {
    grid-template-columns: 35px 1fr;
  }
  .answer-editor-row > input:last-child {
    grid-column: 2;
  }
  .cms-filters > select {
    max-width: none;
    width: 100%;
  }
  .cms-filters > label {
    width: 100%;
    justify-content: center;
  }
  .cms-heading h1 {
    font-size: 1.6rem;
  }
  .cms-heading > .row > .btn {
    font-size: 0.75rem;
    padding-inline: 10px;
  }
  .cms-heading > .row > .btn .icon {
    width: 16px;
    height: 16px;
  }
  .cms-table td:first-child {
    min-width: 200px;
  }
  .cms-layout .card {
    padding: 20px;
  }
  .matching-row {
    padding: 15px;
  }
  .matching-row > span {
    font-size: 0.85rem;
  }
  .matching-row select {
    font-size: 0.8rem;
  }
}
