/* ============================================================
   我的期末冲刺与寒假实习计划 — Design System
   ============================================================ */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #fafbfe;
  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #98a2b3;
  --line: #eaecf0;
  --line-2: #f2f4f7;

  --blue: #3b6df6;
  --blue-600: #2f5ce0;
  --blue-50: #eef4ff;
  --blue-100: #dce8ff;

  --purple: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-50: #f4f0ff;

  --green: #12b76a;
  --green-50: #e9f9f1;

  --orange: #f79009;
  --orange-50: #fff6e8;

  --red: #ef4444;
  --red-50: #fef3f2;

  --gray-50: #f2f4f7;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 1px 3px rgba(16, 24, 40, .04), 0 12px 28px -16px rgba(16, 24, 40, .16);
  --shadow-lg: 0 30px 70px -24px rgba(16, 24, 40, .35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }
::selection { background: #d7e3ff; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #d8dee9; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- Layout ---------------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 246px; flex: 0 0 246px;
  position: sticky; top: 0; height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 22px 14px 16px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.content { flex: 1; min-width: 0; padding: 0 32px 48px; }
.main { max-width: 1140px; margin: 0 auto; }

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
.brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f7cff, #8b5cf6);
  color: #fff; font-weight: 700; font-size: 17px;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px -6px rgba(79, 124, 255, .6);
}
.brand-mark--sm { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px; font-size: 13px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 15px; letter-spacing: -.2px; }
.brand-text span { font-size: 11.5px; color: var(--ink-3); }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 11px; border-radius: 11px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--gray-50); color: var(--ink); }
.nav-item.is-active { background: var(--blue-50); color: var(--blue-600); font-weight: 600; }
.nav-icon { display: grid; place-items: center; color: var(--ink-3); }
.nav-item.is-active .nav-icon { color: var(--blue); }
.nav-item:hover .nav-icon { color: var(--ink-2); }
.nav-badge {
  margin-left: auto; background: var(--blue); color: #fff;
  font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 99px;
}

.side-card {
  margin-top: auto; margin-top: 24px;
  background: linear-gradient(160deg, #f7f9ff, #fbf8ff);
  border: 1px solid #e9edfb; border-radius: 14px; padding: 13px 14px;
}
.side-card-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.side-card-top b { font-size: 13px; color: var(--ink); }
.side-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.side-card-foot span:first-child { display: inline-flex; align-items: center; gap: 4px; color: var(--orange); font-weight: 500; }
.side-foot { margin-top: 14px; padding: 0 8px; font-size: 11px; color: #b4bcc9; display: flex; align-items: center; gap: 5px; }

.main-top {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: 7px;
  padding: 18px 2px 2px; font-size: 12.5px; color: var(--ink-3);
}
.mt-spacer { flex: 1; }
.mt-save { display: inline-flex; align-items: center; gap: 4px; color: #b0b8c4; }
.mt-dot { color: #d0d5dd; }

.mobile-head, .mobile-nav, .mobile-fab { display: none; }

/* ---------------- 通用组件 ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card + .card, .card + .grid-2, .grid-2 + .card, .card + .cal-layout { margin-top: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.card-head > div { min-width: 0; }
.card-head h2 { font-size: 15.5px; font-weight: 600; letter-spacing: -.2px; }
.card-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.card-head > .ic { color: var(--ink-3); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.grid-2 > .card { margin-top: 0; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 6px 0 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -.6px; }
.page-sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ic { flex: 0 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 15px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .12s, background .15s, box-shadow .15s, border-color .15s;
}
.btn:active { transform: scale(.975); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -8px rgba(59, 109, 246, .9); }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-2); border-color: #d8dee9; color: var(--ink); }
.btn--soft { background: var(--blue-50); color: var(--blue-600); }
.btn--soft:hover { background: var(--blue-100); }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger-ghost { background: #fff; border-color: #fee2e2; color: var(--red); }
.btn--danger-ghost:hover { background: var(--red-50); }
.btn--sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.icon-btn {
  width: 30px; height: 30px; border-radius: 9px;
  display: inline-grid; place-items: center; color: var(--ink-3);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--gray-50); color: var(--ink); }
.icon-btn--sm { width: 22px; height: 22px; border-radius: 6px; }
.icon-btn--danger:hover { background: var(--red-50); color: var(--red); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; line-height: 1.6;
  padding: 1px 7px; border-radius: 6px; white-space: nowrap;
}
.badge--blue { background: var(--blue-50); color: var(--blue-600); }
.badge--purple { background: var(--purple-50); color: var(--purple-600); }
.badge--green { background: var(--green-50); color: #067647; }
.badge--orange { background: var(--orange-50); color: #b54708; }
.badge--red { background: var(--red-50); color: #b42318; }
.badge--gray { background: var(--gray-50); color: #667085; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 99px;
}
.chip--blue { background: rgba(59, 109, 246, .1); color: var(--blue-600); }
.chip--purple { background: rgba(139, 92, 246, .12); color: var(--purple-600); }
.chip--green { background: rgba(18, 183, 106, .12); color: #067647; }
.chip--orange { background: rgba(247, 144, 9, .14); color: #b54708; }

.progress { height: 8px; background: #eef1f6; border-radius: 99px; overflow: hidden; flex: 1; min-width: 40px; }
.progress--thin { height: 5px; }
.progress-bar { display: block; height: 100%; border-radius: 99px; transition: width .7s cubic-bezier(.4, 0, .2, 1); }
.progress-bar--blue { background: linear-gradient(90deg, #6b95ff, #3b6df6); }
.progress-bar--purple { background: linear-gradient(90deg, #a78bfa, #8b5cf6); }
.progress-bar--green { background: linear-gradient(90deg, #4ade80, #12b76a); }
.progress-bar--orange { background: linear-gradient(90deg, #fbbf24, #f79009); }
.progress-bar--gray { background: linear-gradient(90deg, #cbd5e1, #94a3b8); }

.empty { text-align: center; padding: 28px 16px; }
.empty-icon {
  width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 14px;
  background: var(--blue-50); color: var(--blue); display: grid; place-items: center;
}
.empty-title { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.empty-desc { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

.alert {
  display: flex; align-items: center; gap: 8px;
  background: #fff8f1; border: 1px solid #ffe6cc; color: #b54708;
  border-radius: 11px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 14px;
}
.alert .ic { color: #f79009; }
.alert b { font-weight: 600; }
.alert-link { margin-left: auto; color: #b54708; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; font-size: 12.5px; }

.hint-box {
  position: relative;
  display: block;
  background: var(--blue-50); color: #344054;
  border-radius: 11px; padding: 10px 12px 10px 34px;
  font-size: 12.5px; margin-top: 14px; line-height: 1.65;
}
.hint-box .ic { position: absolute; left: 12px; top: 11px; color: var(--blue); }
.hint-box b { font-weight: 600; }
.hint-box--warn { background: #fffaeb; }
.hint-box--warn .ic { color: var(--orange); }

.autosave { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #98a2b3; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: stretch; gap: 26px; justify-content: space-between;
  background: linear-gradient(120deg, #eaf1ff 0%, #f4f0ff 55%, #fdfdff 100%);
  border: 1px solid #e6ecfb; border-radius: 24px;
  padding: 26px 28px;
  margin-bottom: 18px;
}
.hero::after {
  content: ''; position: absolute; right: -70px; top: -100px; width: 280px; height: 280px;
  border-radius: 50%; background: radial-gradient(circle, rgba(150, 175, 255, .35), transparent 68%);
  pointer-events: none;
}
.hero-copy { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-eyebrow { font-size: 12.5px; color: #667085; font-weight: 500; letter-spacing: .2px; }
.hero-title { font-size: 25px; font-weight: 700; letter-spacing: -.7px; margin-top: 7px; line-height: 1.35; }
.hero-sub { font-size: 13px; color: var(--ink-2); margin-top: 7px; }
.hero-sub b { color: var(--blue-600); }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.hero-side { position: relative; z-index: 1; display: flex; }
.countdown {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 12px 30px -18px rgba(16, 24, 40, .35);
  border-radius: 18px; padding: 14px 20px; min-width: 168px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cd-label { font-size: 11.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.cd-num {
  font-size: 42px; font-weight: 800; line-height: 1.1; letter-spacing: -2px;
  background: linear-gradient(135deg, #3b6df6, #8b5cf6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 2px 0;
}
.cd-num small { font-size: 14px; font-weight: 600; letter-spacing: 0; margin-left: 2px; }
.cd-sub { font-size: 10.5px; color: var(--ink-3); text-align: center; }

/* ---------------- Stat cards ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.stat-top { display: flex; justify-content: space-between; align-items: center; }
.stat-label { font-size: 12px; color: var(--ink-3); }
.stat-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; background: var(--gray-50); color: var(--ink-2);
}
.stat-card--blue .stat-icon { background: var(--blue-50); color: var(--blue); }
.stat-card--purple .stat-icon { background: var(--purple-50); color: var(--purple); }
.stat-card--green .stat-icon { background: var(--green-50); color: var(--green); }
.stat-card--orange .stat-icon { background: var(--orange-50); color: var(--orange); }
.stat-value { font-size: 27px; font-weight: 700; letter-spacing: -1px; margin-top: 8px; line-height: 1.2; }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }
.stat-sep { color: #d0d5dd; font-weight: 400; margin: 0 2px; }
.stat-foot { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.stat-foot-text { font-size: 11.5px; color: var(--ink-3); }

/* ---------------- Dashboard ---------------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dash-main > .card, .dash-side > .card { margin-top: 0; }

.today-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.today-num { font-size: 15px; color: var(--ink-3); white-space: nowrap; }
.today-num b { font-size: 22px; color: var(--ink); font-weight: 700; letter-spacing: -.5px; }
.today-pct { font-size: 12.5px; color: var(--ink-3); font-weight: 600; min-width: 34px; text-align: right; }

.task-list { display: flex; flex-direction: column; gap: 2px; }
.task-list--compact .task { padding: 9px 8px; }

.task {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 11px 10px; border-radius: 12px;
  border: 1px solid transparent;
  transition: background .16s, border-color .16s, box-shadow .16s;
  position: relative;
}
.task:hover { background: var(--surface-2); border-color: var(--line-2); }
.task.is-done { opacity: .92; }
.task.is-locked { opacity: .62; }
.task.is-celebrating { background: var(--green-50); border-color: #c8f0da; }
.check {
  width: 21px; height: 21px; flex: 0 0 21px; margin-top: 2px;
  border-radius: 7px; border: 1.6px solid #d0d5dd; background: #fff;
  display: grid; place-items: center; color: #fff;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.check::after { content: ''; position: absolute; inset: -9px; border-radius: 10px; }
.check { position: relative; }
.check:hover { border-color: var(--blue); box-shadow: 0 0 0 3.5px var(--blue-50); }
.check.is-checked { background: var(--blue); border-color: var(--blue); }
.check[disabled] { cursor: not-allowed; background: var(--gray-50); border-color: #e4e7ec; color: #b4bcc9; }
.check[disabled]:hover { box-shadow: none; border-color: #e4e7ec; }
.is-celebrating .check { animation: pop .34s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }
@keyframes taskIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.task--in { animation: taskIn .35s ease; }

.task-main { flex: 1; min-width: 0; }
.task-head { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.task-title {
  font-size: 13.5px; font-weight: 500; color: var(--ink); text-align: left;
  line-height: 1.45; word-break: break-word;
}
.task-title:hover { color: var(--blue-600); }
.is-done .task-title { text-decoration: line-through; color: var(--ink-3); font-weight: 400; }
.task-flags { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.task-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 5px; font-size: 11.5px; color: var(--ink-3);
}
.task-meta > span { display: inline-flex; align-items: center; gap: 3px; }
.task-cat { font-weight: 500; }
.task-cat--blue { color: var(--blue-600); }
.task-cat--purple { color: var(--purple-600); }
.task-cat--green { color: #067647; }
.task-cat--orange { color: #b54708; }
.task-cat--gray { color: #667085; }
.task-actual { color: #067647; }
.task-note {
  margin-top: 6px; font-size: 12px; color: var(--ink-2);
  background: var(--surface-2); border-left: 2px solid var(--line);
  padding: 4px 8px; border-radius: 4px; word-break: break-word;
}
.task-actions { display: flex; gap: 1px; opacity: 0; transition: opacity .15s; }
.task:hover .task-actions { opacity: 1; }
.link-more { display: block; width: 100%; text-align: center; padding: 10px 0 2px; font-size: 12.5px; color: var(--blue-600); }
.link-more:hover { text-decoration: underline; }
.task-empty { padding: 18px; text-align: center; font-size: 12.5px; color: var(--ink-3); }

.study-body { display: flex; align-items: center; gap: 18px; }
.ring { position: relative; flex: 0 0 auto; }
.ring svg { width: 100%; height: 100%; }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; }
.ring-label strong { font-size: 17px; font-weight: 700; letter-spacing: -.4px; }
.study-meta { min-width: 0; }
.study-big { font-size: 19px; font-weight: 700; letter-spacing: -.4px; }
.study-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.study-split { display: flex; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.split-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.split-item b { font-weight: 600; color: var(--ink); }
.split-dot { width: 7px; height: 7px; border-radius: 50%; }
.split-dot--blue { background: var(--blue); }
.split-dot--green { background: var(--green); }

.stage-now-top { display: flex; gap: 11px; align-items: center; margin-bottom: 13px; }
.stage-num {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  background: var(--blue-50); color: var(--blue-600);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.stage-now-top h3 { font-size: 14px; font-weight: 600; }
.stage-now-top p { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.stage-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 7px; }
.stage-next {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-3);
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
}

.timeline { display: flex; flex-direction: column; gap: 2px; }
.timeline-item { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-radius: 8px; }
.timeline-item:hover { background: var(--surface-2); }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; background: var(--blue); }
.timeline-item--orange .tl-dot { background: var(--orange); }
.timeline-item--green .tl-dot { background: var(--green); }
.timeline-item--purple .tl-dot { background: var(--purple); }
.timeline-item--blue .tl-dot { background: var(--blue); }
.tl-main { flex: 1; min-width: 0; }
.tl-title { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.tl-days { font-size: 11.5px; color: var(--ink-2); background: var(--gray-50); padding: 1px 7px; border-radius: 99px; white-space: nowrap; }
.tl-empty { font-size: 12.5px; color: var(--ink-3); padding: 14px 0; text-align: center; }

.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.summary-item { display: flex; flex-direction: column; gap: 6px; }
.summary-label { font-size: 12px; color: var(--ink-2); font-weight: 500; }

/* ---------------- Forms ---------------- */
.input {
  width: 100%; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: 8px 11px; font-size: 13px;
  font-family: inherit; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: #a9c0ff; box-shadow: 0 0 0 3.5px var(--blue-50); }
.input:disabled { background: var(--surface-2); color: var(--ink-3); }
.input--sm { padding: 6px 9px; font-size: 12.5px; }
.textarea { resize: vertical; min-height: 62px; line-height: 1.6; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field-label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.field-hint { font-size: 11px; color: var(--ink-3); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.form-row .field { margin-bottom: 12px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
input[type="date"].input, input[type="time"].input { padding-right: 8px; }
.mini-field { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--ink-3); }
.mini-field input {
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px;
  font-size: 12px; font-family: inherit; color: var(--ink); background: #fff; outline: none; width: 100%;
}
.mini-field input:focus { border-color: #a9c0ff; box-shadow: 0 0 0 3px var(--blue-50); }

/* ---------------- Tasks page ---------------- */
.filter-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 99px; font-size: 12.5px; color: var(--ink-2);
  border: 1px solid var(--line); background: #fff;
}
.filter-chip span { font-size: 11px; color: var(--ink-3); }
.filter-chip:hover { border-color: #d0d5dd; }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-chip.is-active span { color: rgba(255, 255, 255, .7); }
.filter-hint { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); }

.stage-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.stage-block.is-locked { background: #fcfcfd; }
.stage-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 12px; }
.stage-index {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--blue-50); color: var(--blue-600);
}
.stage-index--purple { background: var(--purple-50); color: var(--purple-600); }
.stage-index--gray { background: var(--gray-50); color: #475467; }
.stage-title { flex: 1; min-width: 0; }
.stage-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stage-title-row h2 { font-size: 15.5px; font-weight: 600; letter-spacing: -.2px; }
.stage-title p { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.stage-progress { width: 168px; flex: 0 0 168px; display: flex; align-items: center; gap: 8px; }
.stage-count { font-size: 12px; color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.stage-pct { font-size: 11.5px; color: var(--ink-3); min-width: 30px; text-align: right; }
.stage-lockbar {
  display: flex; align-items: center; gap: 6px;
  background: var(--gray-50); color: #667085;
  border-radius: 9px; padding: 7px 10px; font-size: 12px; margin-bottom: 8px;
}
.stage-block--temp { border-style: dashed; background: #fdfdff; }

/* ---------------- English ---------------- */
.en-hero {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: linear-gradient(120deg, #eafaf2 0%, #eef4ff 60%, #fff 100%);
  border: 1px solid #dcf3e7; border-radius: 22px; padding: 24px 26px; margin-bottom: 18px;
}
.en-hero-title { font-size: 23px; font-weight: 700; letter-spacing: -.6px; margin-top: 6px; }
.en-hero-title b { color: var(--green); font-size: 30px; }
.en-hero-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; }
.en-hero-ring { text-align: center; flex: 0 0 auto; }
.en-hero-ring p { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.en-modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.en-module {
  border: 1px solid var(--line); border-radius: 14px; padding: 13px;
  display: flex; flex-direction: column; gap: 10px; background: #fff;
  transition: border-color .18s, background .18s;
}
.en-module.is-done { border-color: #bff0d8; background: linear-gradient(180deg, #f5fdf9, #fff); }
.en-check {
  width: 23px; height: 23px; border-radius: 50%;
  border: 1.6px solid #d0d5dd; background: #fff; color: #fff;
  display: grid; place-items: center; transition: .16s;
}
.en-check:hover { border-color: var(--green); box-shadow: 0 0 0 3.5px var(--green-50); }
.en-module.is-done .en-check { background: var(--green); border-color: var(--green); }
.en-mod-head { display: flex; gap: 9px; align-items: center; }
.en-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 30px; }
.en-icon--green { background: var(--green-50); color: var(--green); }
.en-icon--blue { background: var(--blue-50); color: var(--blue); }
.en-icon--purple { background: var(--purple-50); color: var(--purple); }
.en-icon--orange { background: var(--orange-50); color: var(--orange); }
.en-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.en-focus { font-size: 9.5px; font-weight: 500; color: var(--green); background: var(--green-50); padding: 0 5px; border-radius: 4px; }
.en-min { font-size: 11px; color: var(--ink-3); }
.en-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.en-input-wrap { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); }
.en-input {
  width: 48px; border: 1px solid var(--line); border-radius: 7px;
  padding: 3px 5px; font-size: 12px; font-family: inherit; text-align: center; outline: none; color: var(--ink);
}
.en-input:focus { border-color: #a9c0ff; box-shadow: 0 0 0 3px var(--blue-50); }
.en-state { font-size: 10.5px; color: var(--ink-3); }
.en-module.is-done .en-state { color: #067647; font-weight: 500; }
.en-total { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.en-total b { font-size: 17px; color: var(--ink); font-weight: 700; margin-right: 2px; }
.en-plan-tip {
  display: flex; gap: 7px; align-items: flex-start;
  background: var(--green-50); color: #067647;
  border-radius: 10px; padding: 9px 11px; font-size: 12px; margin-bottom: 14px;
}
.en-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.en-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--surface-2); border-radius: 11px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.kpi span { font-size: 11.5px; color: var(--ink-3); }
.kpi b { font-size: 15px; font-weight: 700; letter-spacing: -.3px; }
.kpi-note { display: flex; gap: 6px; margin-top: 14px; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.kpi-note .ic { margin-top: 2px; }

.table-wrap { overflow-x: auto; margin: 0 -4px; }
.en-plan { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 660px; }
.en-plan th {
  text-align: left; font-weight: 500; font-size: 11.5px; color: var(--ink-3);
  padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.en-plan td { padding: 9px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.en-plan tr:last-child td { border-bottom: none; }
.en-plan tr.is-today td { background: #f3fdf8; }
.en-plan tr.is-past td { opacity: .62; }
.en-plan tr.is-exam td { background: var(--green-50); font-weight: 500; }
.plan-date { white-space: nowrap; font-weight: 500; }
.plan-date span { color: var(--ink-3); font-size: 11px; margin-left: 4px; }
.plan-idx { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.plan-title { font-weight: 500; }
.plan-title .badge { margin-left: 6px; }
.plan-num { white-space: nowrap; color: var(--ink-2); }
.plan-note { color: var(--ink-3); font-size: 11.5px; max-width: 320px; }

/* ---------------- Exams ---------------- */
.exam-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.exam-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.exam-card.is-done { opacity: .8; }
.exam-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 15px; }
.exam-title h3 { font-size: 16px; font-weight: 600; letter-spacing: -.3px; }
.exam-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.exam-count {
  flex: 0 0 auto; text-align: center; background: var(--blue-50);
  border-radius: 12px; padding: 6px 13px; color: var(--blue-600);
}
.exam-count b { display: block; font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -.6px; }
.exam-count span { font-size: 10.5px; }
.exam-count.is-near { background: var(--orange-50); color: #b54708; }
.exam-count.is-done { background: var(--gray-50); color: var(--ink-3); }
.exam-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; }
.exam-date-row { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 8px; }
.exam-place { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); margin-top: 7px; }
.exam-progress-block { margin-top: 14px; padding: 11px 13px; background: var(--surface-2); border-radius: 12px; }
.exam-progress-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-bottom: 7px; }
.exam-progress-top b { font-size: 14px; color: var(--blue-600); }
.exam-progress-hint { font-size: 10.5px; color: var(--ink-3); margin-top: 6px; }
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 5px; border-radius: 99px; background: #e4e9f2; outline: none; }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--blue); border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(59, 109, 246, .5); cursor: pointer;
}
.range::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; cursor: pointer; }

.sub-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 15px 0 7px; }
.sub-head--mt { margin-top: 15px; }
.sub-count { font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.point-list { display: flex; flex-direction: column; gap: 1px; }
.point { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; font-size: 12.5px; }
.point:hover { background: var(--surface-2); }
.point-check {
  width: 17px; height: 17px; flex: 0 0 17px; border-radius: 5px;
  border: 1.5px solid #d0d5dd; background: #fff; color: #fff;
  display: grid; place-items: center;
}
.point.is-done .point-check { background: var(--green); border-color: var(--green); }
.point.is-done .point-text { color: var(--ink-3); text-decoration: line-through; }
.point-text { flex: 1; min-width: 0; word-break: break-word; }
.point-empty { font-size: 12px; color: var(--ink-3); padding: 8px 6px; }
.inline-add { display: flex; gap: 6px; margin-top: 8px; }
.mistake-list { display: flex; flex-direction: column; gap: 3px; max-height: 190px; overflow-y: auto; }
.mistake { display: flex; gap: 7px; align-items: flex-start; padding: 6px 7px; border-radius: 7px; font-size: 12px; background: var(--surface-2); }
.mistake-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin-top: 6px; flex: 0 0 5px; }
.mistake-text { flex: 1; min-width: 0; word-break: break-word; color: var(--ink-2); }
.mistake-add { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; align-items: flex-end; }
.exam-done-btn { margin-top: 12px; }

/* ---------------- Stats ---------------- */
.chart { width: 100%; height: auto; overflow: visible; }
.chart-empty { padding: 40px; text-align: center; color: var(--ink-3); font-size: 12.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 11px; color: var(--ink-3); }
.legend-item b { color: var(--ink-2); font-weight: 600; }
.hbar-list { display: flex; flex-direction: column; gap: 13px; }
.hbar-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.hbar-label { color: var(--ink-2); font-weight: 500; }
.hbar-val { color: var(--ink-3); font-size: 11.5px; }
.stage-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.mini-prog { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); background: var(--surface-2); padding: 6px 9px; border-radius: 8px; }
.mini-prog b { color: var(--ink-2); }
.cat-list { display: flex; flex-direction: column; gap: 12px; }
.cat-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.cat-name { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--blue { background: var(--blue); }
.dot--purple { background: var(--purple); }
.dot--green { background: var(--green); }
.dot--gray { background: #98a2b3; }
.cat-bar { height: 7px; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.cat-bar-fill { display: block; height: 100%; border-radius: 99px; transition: width .6s ease; }
.cat-bar-fill--blue { background: linear-gradient(90deg, #6b95ff, #3b6df6); }
.cat-bar-fill--purple { background: linear-gradient(90deg, #a78bfa, #8b5cf6); }
.cat-bar-fill--green { background: linear-gradient(90deg, #4ade80, #12b76a); }
.cat-bar-fill--gray { background: linear-gradient(90deg, #cbd5e1, #94a3b8); }
.cat-total { display: flex; justify-content: space-between; margin-top: 15px; padding-top: 13px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-3); }
.cat-total b { color: var(--ink); font-size: 14px; }

/* ---------------- Calendar ---------------- */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 4px; }
.cal-side { display: flex; flex-direction: column; gap: 18px; }
.cal-card { padding: 18px 20px 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h2 { font-size: 16px; font-weight: 600; letter-spacing: -.3px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-week span { text-align: center; font-size: 11px; color: var(--ink-3); padding: 3px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell {
  position: relative; min-height: 62px; border-radius: 11px;
  border: 1px solid transparent; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font-size: 12.5px; color: var(--ink-2); transition: background .15s, box-shadow .15s;
}
.cal-cell:hover { background: var(--surface-2); }
.cal-cell.is-out { color: #d0d5dd; }
.cal-cell.is-today { background: var(--blue-50); color: var(--blue-600); font-weight: 700; }
.cal-cell.is-selected { box-shadow: inset 0 0 0 1.6px var(--blue); background: #fff; color: var(--ink); font-weight: 600; }
.cal-day { line-height: 1; }
.cal-dots { display: flex; gap: 2.5px; height: 5px; }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.cal-dot--blue { background: var(--blue); }
.cal-dot--purple { background: var(--purple); }
.cal-dot--green { background: var(--green); }
.cal-dot--orange { background: var(--orange); }
.cal-dot--gray { background: #98a2b3; }
.cal-count {
  position: absolute; top: 4px; right: 5px;
  font-size: 9px; color: var(--ink-3); background: var(--gray-50);
  min-width: 13px; height: 13px; border-radius: 99px; display: grid; place-items: center; padding: 0 3px;
}
.cal-count--exam { background: var(--orange-50); color: #b54708; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-3); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sel-exams { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.sel-exam { display: flex; align-items: center; gap: 6px; font-size: 12px; background: var(--orange-50); color: #b54708; padding: 7px 10px; border-radius: 9px; }
.sel-exam span { flex: 1; min-width: 0; }
.sel-exam b { font-weight: 500; font-size: 11px; }
.sel-plan { display: flex; gap: 8px; align-items: center; background: var(--green-50); color: #067647; padding: 8px 11px; border-radius: 9px; font-size: 12px; margin-bottom: 10px; }
.sel-plan div { display: flex; flex-direction: column; }
.sel-plan b { font-weight: 600; }
.sel-plan span { font-size: 11px; opacity: .8; }
.sel-summary { margin-top: 12px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: 12px; color: var(--ink-2); }
.sel-summary p + p { margin-top: 5px; }
.sel-summary b { color: var(--ink-3); font-weight: 500; }

/* ---------------- Settings ---------------- */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.settings-grid > .card { margin-top: 0; }
.setting-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.data-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.guide-list { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; color: var(--ink-2); counter-reset: g; }
.guide-list li { position: relative; padding-left: 22px; line-height: 1.65; }
.guide-list li::before {
  counter-increment: g; content: counter(g);
  position: absolute; left: 0; top: 2px; width: 16px; height: 16px;
  border-radius: 5px; background: var(--blue-50); color: var(--blue-600);
  font-size: 10px; font-weight: 700; display: grid; place-items: center;
}
.guide-list b { color: var(--ink); font-weight: 600; }
.danger-box { display: flex; gap: 12px; background: var(--red-50); border: 1px solid #fee2e2; border-radius: 12px; padding: 13px 14px; margin-bottom: 14px; color: #b42318; font-size: 13px; }
.danger-box .ic { flex: 0 0 auto; margin-top: 2px; }
.danger-box p + p { margin-top: 4px; }
.danger-sub { font-size: 12px; opacity: .85; }

/* ---------------- Modal / Toast ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(16, 24, 40, .42);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  animation: fadeIn .18s ease;
}
.modal {
  width: min(540px, 100%); max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  animation: riseIn .24s cubic-bezier(.2, .9, .3, 1);
}
.modal--wide { width: min(760px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 12px; }
.modal-head h3 { font-size: 16px; font-weight: 600; letter-spacing: -.3px; }
.modal-body { padding: 4px 20px 8px; }
.modal-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.modal-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 14px 20px 18px; border-top: 1px solid var(--line-2); margin-top: 6px;
  flex-wrap: wrap;
}
.modal-foot .foot-right { display: flex; gap: 8px; margin-left: auto; }
.modal-note { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.toast-root {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 30px;
  z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  background: #101828; color: #fff; padding: 9px 16px; border-radius: 10px;
  font-size: 13px; box-shadow: 0 12px 30px -12px rgba(16, 24, 40, .6);
  opacity: 0; transform: translateY(10px); transition: opacity .22s, transform .22s;
  max-width: 84vw; text-align: center;
}
.toast.is-in { opacity: 1; transform: none; }
.toast--warn { background: #b54708; }

.page-foot { max-width: 1140px; margin: 26px auto 0; text-align: center; font-size: 11px; color: #b4bcc9; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .content { padding: 0 22px 44px; }
  .dash-grid { grid-template-columns: 1fr; }
  .cal-layout { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .content { padding: 0 14px 96px; }
  .app-shell { display: block; }

  .mobile-head {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 60;
    margin: 0 -14px; padding: 9px 14px calc(9px + env(safe-area-inset-top, 0px));
    background: rgba(245, 247, 251, .97);
    border-bottom: 1px solid rgba(234, 236, 240, .9);
  }
  .mh-title { display: flex; align-items: center; gap: 8px; font-size: 15px; }
  .mh-actions { display: flex; gap: 2px; }
  .main-top { display: none; }

  .mobile-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--line);
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom, 0px));
  }
  .mnav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 9.5px; color: var(--ink-3); padding: 5px 0; border-radius: 9px;
  }
  .mnav-item.is-active { color: var(--blue); font-weight: 600; }
  .mobile-fab { display: block; position: fixed; right: 15px; bottom: 78px; z-index: 71; }
  .fab {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--blue); color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 10px 24px -8px rgba(59, 109, 246, .8);
  }
  .fab:active { transform: scale(.94); }

  .page-head { margin: 14px 0 14px; align-items: flex-start; }
  .page-head h1 { font-size: 21px; }
  .page-sub { font-size: 12px; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }

  .card { padding: 16px; border-radius: 16px; }
  .card-head { margin-bottom: 13px; }
  .card-head h2 { font-size: 14.5px; }

  .hero { flex-direction: column; padding: 20px; border-radius: 20px; gap: 16px; margin-bottom: 14px; }
  .hero-title { font-size: 20px; }
  .hero-sub { font-size: 12.5px; }
  .hero-side { width: 100%; }
  .countdown { flex-direction: row; align-items: center; gap: 8px; width: 100%; padding: 11px 14px; min-width: 0; flex-wrap: wrap; }
  .cd-label { flex: 0 0 auto; }
  .cd-num { font-size: 30px; letter-spacing: -1px; margin: 0 0 0 auto; }
  .cd-sub { flex: 1 0 100%; margin-left: 0; text-align: left; font-size: 10.5px; }

  .stat-grid, .stat-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-grid--3 > .stat-card:last-child { grid-column: 1 / -1; }
  .stat-card { padding: 13px 14px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 11.5px; }
  .stat-icon { width: 26px; height: 26px; }

  .dash-grid { gap: 14px; margin-top: 14px; }
  .dash-main, .dash-side { gap: 14px; }
  .task-actions { opacity: 1; }
  .task { padding: 10px 6px; gap: 9px; }
  .task-title { font-size: 13px; }
  .task-flags .badge { font-size: 10px; padding: 0 5px; }
  .task-meta { gap: 8px; font-size: 11px; }

  .summary-grid { grid-template-columns: 1fr; gap: 10px; }
  .study-body { gap: 16px; }

  .grid-2, .settings-grid { grid-template-columns: 1fr; gap: 14px; }
  .grid-2 > .card + .card, .settings-grid > .card + .card { margin-top: 0; }

  .filter-row { gap: 5px; margin-bottom: 14px; }
  .filter-hint { display: none; }
  .filter-chip { padding: 5px 10px; font-size: 12px; }

  .stage-block { padding: 14px; border-radius: 16px; }
  .stage-head { flex-wrap: wrap; gap: 10px; }
  .stage-progress { width: 100%; flex: 1 1 100%; padding-left: 47px; }
  .stage-title-row h2 { font-size: 14.5px; }

  .en-hero { flex-direction: column; align-items: flex-start; padding: 18px; border-radius: 18px; gap: 14px; }
  .en-hero-title { font-size: 19px; }
  .en-hero-title b { font-size: 26px; }
  .en-hero-ring { align-self: center; display: flex; align-items: center; gap: 10px; }
  .en-hero-ring .ring { width: 84px !important; height: 84px !important; }
  .en-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .en-module { padding: 11px; }
  .en-kpis { gap: 8px; }
  .kpi { padding: 9px 10px; }
  .kpi b { font-size: 13.5px; }

  .exam-card { padding: 16px; }
  .exam-grid { grid-template-columns: 1fr; gap: 16px; }
  .exam-count b { font-size: 18px; }
  .exam-date-row { grid-template-columns: 1.3fr 1fr 1fr; }

  .cal-card { padding: 14px 12px 12px; }
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 48px; border-radius: 9px; font-size: 12px; }
  .cal-count { display: none; }
  .cal-legend { gap: 8px; font-size: 10px; }
  .cal-week { gap: 3px; }

  .data-stats { grid-template-columns: 1fr; }
  .form-grid, .form-row, .form-row--2 { grid-template-columns: 1fr; gap: 0; }
  .setting-actions .btn { flex: 1 1 auto; }

  .toast-root { bottom: 88px; }
  .modal { border-radius: 18px; }
  .modal-foot { padding: 12px 16px 16px; }
  .modal-body { padding: 4px 16px 8px; }
  .modal-head { padding: 16px 16px 10px; }
}

@media (max-width: 420px) {
  .stat-value { font-size: 20px; }
  .hero-chips .chip { font-size: 11px; padding: 3px 8px; }
  .stage-mini { grid-template-columns: 1fr; }
  .mnav-item span { font-size: 9px; }
}

@media (hover: none) {
  .task-actions { opacity: 1; }
}

@media print {
  .sidebar, .mobile-nav, .mobile-head, .mobile-fab, .task-actions, .btn { display: none !important; }
  .content { padding: 0; }
}

@media (max-width: 360px) {
  .en-modules { grid-template-columns: 1fr; }
}
