:root {
  --paper: #f6f6f1;
  --surface: #fff;
  --ink: #20211e;
  --muted: #73766f;
  --line: #e4e5dd;
  --red: #dc4a3d;
  --red-dark: #bd382e;
  --green: #2f7661;
  --green-soft: #e6f0eb;
  --amber: #c88735;
  --amber-soft: #f7eddd;
  --blue: #5279a2;
  --purple: #7765a6;
  --shadow: 0 16px 45px rgba(36, 38, 32, .07);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(220, 74, 61, .2); outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 244px; padding: 30px 22px 24px;
  background: #20231f; color: #fff; display: flex; flex-direction: column; z-index: 20;
}
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--red); font: 700 22px serif; }
.brand strong, .brand small, .profile-chip strong, .profile-chip small { display: block; }
.brand strong { font-size: 19px; }
.brand small { margin-top: 2px; color: #9fa49c; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.main-nav { display: grid; gap: 7px; margin-top: 52px; }
.nav-item {
  border: 0; background: transparent; color: #afb3ac; min-height: 46px; padding: 0 14px;
  display: flex; align-items: center; gap: 13px; cursor: pointer; border-left: 3px solid transparent;
}
.nav-item svg { width: 19px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav-item.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--red); }
.sidebar-card { margin-top: auto; padding: 16px 12px; border: 1px solid #383c36; display: flex; gap: 12px; align-items: center; }
.sidebar-card strong { font-size: 13px; }
.sidebar-card p { margin: 5px 0 0; color: #969b94; font-size: 11px; line-height: 1.5; }
.mini-ring, .goal-ring {
  --value: 68%; flex: 0 0 auto; border-radius: 50%;
  background: conic-gradient(var(--red) var(--value), #454941 0);
  display: grid; place-items: center; position: relative;
}
.mini-ring { width: 48px; height: 48px; }
.mini-ring::after, .goal-ring::after { content: ""; position: absolute; border-radius: 50%; background: #20231f; }
.mini-ring::after { inset: 5px; }
.mini-ring span { position: relative; z-index: 1; font-size: 10px; }
.profile-chip { margin-top: 14px; padding: 12px 8px; border: 0; background: transparent; color: #fff; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; text-align: left; cursor: pointer; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #e9d7cc; color: #6e443b; display: grid; place-items: center; font-weight: 700; }
.profile-chip strong { font-size: 12px; }.profile-chip small { color: #8f958c; margin-top: 3px; font-size: 10px; }.profile-chip svg { width: 16px; color: #757b73; }
.main-content { margin-left: 244px; min-height: 100vh; padding: 0 42px 60px; }
.topbar { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eyebrow, .kicker { margin: 0; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.topbar h1 { margin: 7px 0 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(24px, 3vw, 34px); letter-spacing: 0; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.install-button {
  min-height: 42px; padding: 0 14px; border: 1px solid #d7ded6; background: #edf3ee; color: var(--green);
  display: inline-flex; align-items: center; gap: 7px; font-weight: 800; cursor: pointer;
}
.install-button[hidden] { display: none; }
.install-button svg { width: 16px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; position: relative; }
.icon-button svg { width: 18px; }.icon-button.subtle { width: 34px; height: 34px; border: 0; background: #f1f2ec; }
.notification-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); position: absolute; top: 9px; right: 9px; border: 1px solid white; }
.primary-button, .secondary-button, .text-button {
  border: 0; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-weight: 700;
}
.primary-button { min-height: 46px; padding: 0 20px; background: var(--red); color: white; box-shadow: 0 8px 20px rgba(220,74,61,.18); }
.primary-button:hover { background: var(--red-dark); }
.primary-button.compact { min-height: 42px; }.primary-button.full { width: 100%; }
.primary-button svg, .secondary-button svg, .text-button svg { width: 16px; }
.secondary-button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); }
.text-button { min-height: 34px; padding: 0; background: transparent; color: var(--red); font-size: 12px; }
.view { display: none; animation: fade .22s ease; }.view.active { display: block; }
@keyframes fade { from { opacity: .2; transform: translateY(5px); } }
.pwa-card {
  margin-bottom: 16px; padding: 16px; border: 1px solid #d5ded5; background: #eef4ef;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center;
}
.pwa-card[hidden] { display: none; }
.pwa-icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--green); color: white; font: 800 25px "Songti SC", serif; }
.pwa-card h2 { margin: 4px 0 4px; font-size: 15px; }
.pwa-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.pwa-actions { display: flex; align-items: center; gap: 8px; }
.widget-board { display: grid; grid-template-columns: 1.35fr 1fr .72fr; grid-auto-rows: minmax(142px, auto); gap: 14px; }
.home-widget {
  min-width: 0; padding: 18px; border: 1px solid rgba(32,33,30,.08); background: rgba(255,255,255,.78);
  box-shadow: 0 12px 34px rgba(36,38,32,.06); backdrop-filter: blur(14px); display: flex; flex-direction: column;
  justify-content: space-between; overflow: hidden;
}
.widget-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 800; }
.widget-topline svg { width: 18px; color: currentColor; }
.countdown-widget { grid-row: span 2; background: #233d35; color: white; border-color: #233d35; }
.countdown-widget .widget-topline, .countdown-widget p, .countdown-widget .countdown-meta { color: rgba(255,255,255,.68); }
.countdown-widget strong { margin: 22px 0 8px; font: 800 clamp(74px, 10vw, 118px)/.9 Georgia, "Songti SC", serif; letter-spacing: 0; }
.countdown-widget strong small { margin-left: 7px; font: 800 20px system-ui, sans-serif; }
.countdown-widget p { margin: 0; font-size: 12px; }
.today-widget { grid-row: span 2; background: #fbfaf6; }
.today-widget ol { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.today-widget li { min-height: 44px; display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; font-size: 12px; }
.today-widget li span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #cfd5cc; border-radius: 50%; color: var(--green); }
.today-widget li.done { color: var(--muted); text-decoration: line-through; }
.today-widget li.done span { background: var(--green); border-color: var(--green); color: white; }
.today-widget li strong, .today-widget li small { display: block; }
.today-widget li small { margin-top: 4px; color: var(--muted); font-size: 9px; text-decoration: none; }
.mini-widget { min-height: 142px; cursor: pointer; }
.mini-widget strong { margin-top: 18px; font-size: 28px; }
.mini-widget p, .start-widget p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.focus-widget { background: #eef4ef; color: var(--green); }
.progress-widget { background: #fbf0df; color: #9d6624; }
.widget-ring { --value: 50%; width: 68px; height: 68px; margin-top: 13px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--amber) var(--value), rgba(157,102,36,.15) 0); position: relative; }
.widget-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fbf0df; }
.widget-ring span { position: relative; z-index: 1; font-weight: 800; font-size: 13px; color: var(--ink); }
.start-widget { grid-column: span 1; background: #2a2d28; color: white; gap: 18px; }
.start-widget h2 { margin: 6px 0 0; font-size: 17px; line-height: 1.35; }
.start-widget p { color: rgba(255,255,255,.63); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, .72fr) minmax(180px, .72fr); gap: 16px; }
.countdown-panel, .metric-panel, .section-block { background: var(--surface); border: 1px solid var(--line); }
.countdown-panel { padding: 24px 26px; background: #e9eee8; border-color: #dbe3dc; }
.panel-label { color: var(--green); font-size: 11px; font-weight: 700; }
.countdown-panel h2 { margin: 10px 0 5px; font-family: Georgia, "Songti SC", serif; font-size: 22px; }
.countdown-panel h2 strong { color: var(--red); font-size: 32px; }
.countdown-panel p { margin: 0; color: var(--muted); font-size: 12px; }
.countdown-track { height: 5px; margin-top: 22px; background: rgba(47,118,97,.13); }.countdown-track span { display: block; height: 100%; background: var(--green); }
.countdown-meta { margin-top: 8px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.metric-panel { padding: 22px 20px; display: flex; gap: 15px; align-items: center; }
.metric-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; }.metric-icon svg { width: 19px; }
.metric-icon.green { background: var(--green-soft); color: var(--green); }.metric-icon.amber { background: var(--amber-soft); color: var(--amber); }
.metric-panel span, .metric-panel small, .metric-panel strong { display: block; }
.metric-panel span { color: var(--muted); font-size: 11px; }.metric-panel strong { margin: 3px 0 2px; font-size: 22px; }.metric-panel small { color: var(--muted); font-size: 10px; }
.content-columns { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.section-block { padding: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-heading h2, .section-block > h2, .insights-header h2 { margin: 5px 0 0; font-size: 18px; letter-spacing: 0; }
.subject-tabs { margin: 22px 0 14px; display: flex; gap: 7px; flex-wrap: wrap; }
.subject-tabs button { border: 1px solid var(--line); background: transparent; padding: 7px 13px; color: var(--muted); font-size: 11px; cursor: pointer; }
.subject-tabs button.active { background: var(--ink); border-color: var(--ink); color: white; }
.task-list { display: grid; }
.task-item { display: grid; grid-template-columns: 28px 38px 1fr auto; gap: 12px; align-items: center; min-height: 76px; border-top: 1px solid var(--line); }
.task-check { width: 20px; height: 20px; border: 1px solid #b9bcb4; border-radius: 50%; background: white; cursor: pointer; display: grid; place-items: center; }
.task-check svg { width: 13px; opacity: 0; }
.task-item.completed { opacity: .57; }.task-item.completed .task-check { background: var(--green); border-color: var(--green); color: white; }.task-item.completed .task-check svg { opacity: 1; }.task-item.completed h3 { text-decoration: line-through; }
.subject-badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.subject-badge.politics { background: #f8e4e1; color: #b64d43; }.subject-badge.english { background: #e7eef5; color: #4f7297; }.subject-badge.math { background: #e5f0eb; color: #35745f; }.subject-badge.major { background: #eee9f4; color: #6f5d98; }
.task-copy h3 { margin: 0 0 5px; font-size: 13px; }.task-copy p { margin: 0; color: var(--muted); font-size: 10px; }
.task-duration { color: var(--muted); font-size: 11px; white-space: nowrap; }.task-duration svg { width: 13px; vertical-align: -2px; margin-right: 3px; }
.empty-state { min-height: 200px; display: grid; place-items: center; text-align: center; color: var(--muted); }.empty-state strong { display: block; color: var(--ink); margin-bottom: 5px; }
.right-column { display: grid; gap: 18px; }
.focus-preview { margin: 20px 0 10px; padding: 14px; background: var(--paper); display: flex; align-items: center; gap: 10px; }
.subject-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }.subject-dot.english, .breakdown-list i.english { background: var(--blue); }.subject-dot.math, .breakdown-list i.math { background: var(--green); }.subject-dot.major, .breakdown-list i.major { background: var(--purple); }.subject-dot.politics, .breakdown-list i.politics { background: var(--red); }
.focus-preview strong, .focus-preview small { display: block; }.focus-preview strong { font-size: 11px; }.focus-preview small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.timer-preview { font: 700 44px "SFMono-Regular", Consolas, monospace; text-align: center; margin: 18px 0 20px; letter-spacing: 0; }
.quote-card { background: #292c27; color: white; }.quote-card svg { width: 20px; color: #d5b785; }.quote-card blockquote { margin: 18px 0; font: 18px/1.65 Georgia, "Songti SC", serif; }.quote-card span { color: #979c94; font-size: 10px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }.wide { min-width: 0; }
.stage-switcher { margin: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; gap: 8px; }
.stage-switcher::before { content: ""; position: absolute; height: 1px; top: 17px; left: 10%; right: 10%; background: var(--line); }
.stage-switcher button { border: 0; background: transparent; position: relative; display: grid; justify-items: center; gap: 5px; color: var(--muted); }
.stage-switcher button span { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; z-index: 1; }
.stage-switcher button strong { font-size: 11px; }.stage-switcher button small { font-size: 9px; }.stage-switcher button.active span { background: var(--red); border-color: var(--red); color: white; }.stage-switcher button.done span { background: var(--green); border-color: var(--green); color: white; }
.plan-table { border-top: 1px solid var(--line); }.plan-row { display: grid; grid-template-columns: 120px minmax(190px,1fr) minmax(150px,.7fr) 74px; gap: 16px; align-items: center; min-height: 70px; border-bottom: 1px solid var(--line); font-size: 11px; }
.plan-row.header { min-height: 40px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.plan-row > span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 700; }.plan-row i { display: inline-block; width: calc(100% - 44px); height: 5px; background: #eceee8; vertical-align: 2px; margin-right: 8px; position: relative; }.plan-row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--green); }.plan-row em { font-style: normal; color: var(--muted); }
.status { width: max-content; padding: 5px 8px; font-size: 9px; }.status.on-track { color: var(--blue); background: #eaf0f6; }.status.good { color: var(--green); background: var(--green-soft); }.status.warning { color: var(--amber); background: var(--amber-soft); }
.weekly-goal h2 { margin-bottom: 20px; }.goal-ring { width: 160px; height: 160px; margin: 26px auto; background: conic-gradient(var(--green) 68%, #e8ebe5 0); }.goal-ring::after { inset: 16px; background: white; }.goal-ring span { position: relative; z-index: 1; display: grid; text-align: center; font-size: 27px; font-weight: 800; }.goal-ring small { font-size: 9px; color: var(--muted); margin-top: 4px; }
.weekly-goal ul { list-style: none; margin: 0; padding: 0; }.weekly-goal li { display: flex; align-items: center; gap: 9px; min-height: 38px; border-top: 1px solid var(--line); font-size: 10px; }.weekly-goal li svg { width: 14px; color: #aaa; }.weekly-goal li.done { color: var(--muted); text-decoration: line-through; }.weekly-goal li.done svg { color: var(--green); }
.focus-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }.focus-stage { min-height: 650px; background: #252823; color: white; padding: 30px; display: flex; flex-direction: column; align-items: center; }
.focus-topline { width: 100%; display: flex; justify-content: space-between; }.live-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--green); background: var(--green-soft); padding: 7px 10px; width: max-content; }.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(47,118,97,.12); }
.focus-stage .live-pill { background: rgba(255,255,255,.08); color: #b8d3c9; }.focus-stage .icon-button { color: white; background: rgba(255,255,255,.06); }
.focus-subject-select { margin-top: 76px; }.focus-subject-select button { border: 1px solid #464a43; background: transparent; color: white; min-height: 42px; padding: 0 14px; display: flex; gap: 9px; align-items: center; cursor: pointer; }.focus-subject-select svg { width: 14px; color: #8e948b; }
.main-timer { margin-top: 34px; font: 500 clamp(76px, 10vw, 140px)/1 "SFMono-Regular", Consolas, monospace; letter-spacing: -.06em; }.timer-caption { color: #9ba098; font: 14px Georgia, "Songti SC", serif; }
.timer-controls { display: flex; align-items: center; gap: 24px; margin-top: 44px; }.focus-stage .secondary-button { color: #b5bab2; border-color: #464a43; background: transparent; min-width: 86px; }.timer-toggle { width: 70px; height: 70px; border: 0; border-radius: 50%; background: var(--red); color: white; display: grid; place-items: center; cursor: pointer; box-shadow: 0 15px 35px rgba(220,74,61,.25); }.timer-toggle svg { width: 26px; }
.focus-modes { margin-top: auto; display: flex; border-top: 1px solid #41443e; }.focus-modes button { border: 0; background: transparent; color: #848a81; padding: 18px; font-size: 10px; cursor: pointer; border-top: 2px solid transparent; }.focus-modes button.active { color: white; border-top-color: var(--red); }
.focus-side { display: grid; gap: 18px; align-content: start; }.session-list { margin-top: 14px; }.session-list > div { min-height: 65px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; }.session-list p { margin: 0; }.session-list strong, .session-list small { display: block; }.session-list strong { font-size: 11px; }.session-list small { margin-top: 4px; color: var(--muted); font-size: 9px; }.session-list em { font-style: normal; font-weight: 700; font-size: 11px; }
.focus-summary { display: grid; grid-template-columns: 1fr 1fr; }.focus-summary div + div { border-left: 1px solid var(--line); padding-left: 24px; }.focus-summary span, .focus-summary strong, .focus-summary small { display: block; }.focus-summary span, .focus-summary small { color: var(--muted); font-size: 9px; }.focus-summary strong { font-size: 28px; margin: 4px 0; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.review-compose { display: grid; gap: 20px; }
.review-import { padding: 16px; background: #eef4ef; border: 1px solid #d5ded5; display: grid; gap: 10px; }
.review-import label, .review-form label { display: grid; gap: 8px; font-size: 11px; font-weight: 800; }
.review-import textarea, .review-form textarea, .review-form input, .review-form select {
  width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 12px; border-radius: 0; color: var(--ink);
}
.review-import textarea, .review-form textarea { resize: vertical; line-height: 1.6; }
.review-import-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-form { display: grid; gap: 14px; }
.review-side { display: grid; gap: 18px; }
.review-card-live { background: #263a32; color: white; }
.review-card-live .kicker { color: #f2c96d; }
.review-card-live h2 { margin: 8px 0 12px; font: 24px/1.35 Georgia, "Songti SC", serif; }
.review-card-live p { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.7; }
.review-card-live dl { display: grid; gap: 11px; margin: 18px 0 0; }
.review-card-live div { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.review-card-live dt { color: rgba(255,255,255,.54); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.review-card-live dd { margin: 4px 0 0; font-size: 12px; line-height: 1.6; }
.review-history-list { margin-top: 12px; display: grid; gap: 10px; }
.review-history-item { padding: 13px; border: 1px solid var(--line); background: var(--paper); }
.review-history-item strong, .review-history-item span { display: block; }
.review-history-item strong { font-size: 12px; }
.review-history-item span { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.insights-header { display: flex; justify-content: space-between; align-items: end; }.insights-header p { color: var(--muted); font-size: 10px; margin: 6px 0 0; }
.stats-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }.stats-grid article { padding: 20px; background: white; border: 1px solid var(--line); }.stats-grid span, .stats-grid strong, .stats-grid em { display: block; }.stats-grid span { color: var(--muted); font-size: 10px; }.stats-grid strong { font-size: 28px; margin: 7px 0; }.stats-grid strong small { font-size: 11px; margin-left: 4px; }.stats-grid em { font-style: normal; color: var(--muted); font-size: 9px; }.stats-grid em.up { color: var(--green); }
.analytics-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.75fr); gap: 18px; margin-top: 18px; }.legend { color: var(--muted); font-size: 9px; }.legend i { width: 7px; height: 7px; background: var(--green); display: inline-block; margin-right: 5px; }
.bar-chart { height: 280px; margin-top: 24px; border-bottom: 1px solid var(--line); display: flex; align-items: end; gap: clamp(10px,3vw,28px); padding: 0 12px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 69px, #f1f2ed 70px); }.bar-chart div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; min-width: 24px; }.bar-chart span { font-size: 8px; color: var(--muted); margin-bottom: 5px; }.bar-chart i { width: min(36px,70%); height: var(--h); background: var(--green); transition: height .5s ease; }.bar-chart small { margin: 8px 0 -22px; font-size: 9px; color: var(--muted); }
.subject-breakdown { text-align: left; }.donut { width: 150px; height: 150px; border-radius: 50%; margin: 20px auto; display: grid; place-items: center; background: conic-gradient(var(--blue) 0 31%, var(--green) 31% 60%, var(--purple) 60% 87%, var(--red) 87% 100%); position: relative; }.donut::after { content:""; position:absolute; inset:24px; border-radius:50%; background:white; }.donut span { position:relative; z-index:1; font-weight:800; font-size:18px; text-align:center; }.donut small { display:block; font-size:8px; color:var(--muted); margin-top:3px; }.breakdown-list div { min-height: 30px; display: grid; grid-template-columns: 8px 1fr auto 32px; gap: 7px; align-items: center; font-size: 9px; }.breakdown-list i { width: 7px; height: 7px; border-radius: 50%; }.breakdown-list em { font-style: normal; color: var(--muted); text-align: right; }
.review-card { margin-top: 18px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 18px; background: #eef2eb; }.review-mark { width: 46px; height: 46px; display: grid; place-items: center; background: var(--green); color: white; }.review-mark svg { width: 20px; }.review-card h2 { margin: 4px 0; }.review-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; max-width: 700px; }
.room-hero { min-height: 220px; padding: 36px; background: #283029; color: white; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden; }.room-hero::after { content: "研"; position: absolute; right: 10%; bottom: -90px; color: rgba(255,255,255,.035); font: 300px Georgia,serif; }.room-hero > * { position: relative; z-index: 1; }.room-hero h2 { font: 30px Georgia,"Songti SC",serif; margin: 20px 0 9px; }.room-hero p { color: #b1b8b0; margin: 0; font-size: 11px; }
.room-grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 18px; margin-top: 18px; }.room-list { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.room-list button { min-height: 86px; border: 1px solid var(--line); background: white; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 12px; text-align: left; cursor: pointer; }.room-list button:hover { border-color: #aeb9af; background: #fafbf8; }.room-icon { width: 42px; height: 42px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-weight: 800; }.room-icon.english-room { background:#e7eef5;color:var(--blue); }.room-icon.major-room { background:#eee9f4;color:var(--purple); }.room-icon.early-room { background:var(--amber-soft);color:var(--amber); }.room-icon svg { width:18px; }.room-list p { margin: 0; }.room-list strong, .room-list small { display: block; }.room-list strong { font-size: 11px; }.room-list small { color: var(--muted); font-size: 9px; margin-top: 5px; }.room-list em { color: var(--red); font-style: normal; font-size: 10px; }
.leaderboard ol { margin: 16px 0 0; padding: 0; list-style: none; }.leaderboard li { min-height: 62px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 24px 32px 1fr auto; gap: 9px; align-items: center; }.leaderboard li > b { font: 700 12px Georgia,serif; color: var(--muted); }.leaderboard .avatar { width: 30px; height: 30px; font-size: 10px; }.leaderboard p { margin: 0; }.leaderboard strong, .leaderboard small { display: block; }.leaderboard strong { font-size: 10px; }.leaderboard small { color: var(--muted); font-size: 8px; margin-top: 3px; }.leaderboard em { font-style: normal; font-size: 10px; font-weight: 700; }.leaderboard li.me { background: var(--green-soft); margin-inline: -12px; padding-inline: 12px; border: 0; }
.mobile-nav { display: none; }
dialog { width: min(440px, calc(100vw - 32px)); border: 0; padding: 0; box-shadow: var(--shadow); background: white; }.dialog-heading { display: flex; justify-content: space-between; align-items: center; }.dialog-heading h2 { margin: 5px 0 0; }dialog form { padding: 26px; display: grid; gap: 18px; }dialog::backdrop { background: rgba(28,30,26,.56); backdrop-filter: blur(3px); }dialog label { display: grid; gap: 8px; font-size: 11px; font-weight: 700; }dialog input, dialog select { min-height: 44px; border: 1px solid var(--line); background: var(--paper); padding: 0 12px; border-radius: 0; }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.install-guide { padding: 26px; display: grid; gap: 18px; }
.install-steps { display: grid; gap: 10px; }
.install-steps article { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px; background: var(--paper); border: 1px solid var(--line); }
.install-steps article span { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green); color: white; font-weight: 800; }
.install-steps strong { display: block; font-size: 13px; }
.install-steps p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; min-height: 48px; padding: 0 18px; background: #20231f; color: white; display: flex; align-items: center; gap: 9px; box-shadow: var(--shadow); transform: translateY(100px); opacity: 0; transition: .25s ease; pointer-events: none; }.toast.show { transform: translateY(0); opacity: 1; }.toast svg { width: 17px; color: #9ac2b2; }.toast span { font-size: 11px; }

@media (max-width: 1100px) {
  .main-content { padding-inline: 26px; }
  .widget-board { grid-template-columns: 1fr 1fr; }
  .countdown-widget, .today-widget { grid-row: span 1; }
  .start-widget { grid-column: span 2; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }.countdown-panel { grid-column: 1/-1; }
  .content-columns, .page-grid, .focus-layout, .analytics-grid, .review-layout { grid-template-columns: 1fr; }
  .right-column { grid-template-columns: 1fr 1fr; }.focus-side { grid-template-columns: 1fr 1fr; }
  .room-grid { grid-template-columns: 1fr; }.stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }.sidebar { display: none; }.main-content { margin-left: 0; padding: 0 16px 32px; }
  .topbar { min-height: 92px; }.topbar h1 { font-size: 22px; }.top-actions .icon-button { display: none; }.primary-button.compact span, .install-button span { display: none; }.primary-button.compact, .install-button { width: 42px; padding: 0; justify-content: center; }
  .pwa-card { grid-template-columns: 44px 1fr; align-items: start; }.pwa-icon { width: 44px; height: 44px; font-size: 22px; }.pwa-actions { grid-column: 2; justify-content: space-between; }.pwa-actions .primary-button { min-height: 40px; flex: 1; }
  .widget-board { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-widget { padding: 15px; border-radius: 0; }
  .countdown-widget, .today-widget, .start-widget { grid-column: 1 / -1; }
  .countdown-widget strong { margin-top: 16px; font-size: 76px; }
  .today-widget ol { margin-top: 14px; }
  .mini-widget { min-height: 128px; }
  .start-widget { min-height: 150px; }
  .dashboard-grid { gap: 10px; }.countdown-panel { padding: 20px; }.countdown-panel h2 { font-size: 18px; }.countdown-panel h2 strong { font-size: 29px; }
  .metric-panel { padding: 16px 14px; gap: 10px; }.metric-icon { width: 36px; height: 36px; }.metric-panel strong { font-size: 18px; }
  .content-columns, .right-column, .focus-side { display: grid; grid-template-columns: 1fr; }.section-block { padding: 19px; }
  .task-item { grid-template-columns: 26px 34px 1fr; min-height: 78px; }.task-duration { grid-column: 3; margin-top: -18px; }.task-copy h3 { line-height: 1.45; }
  .right-column { grid-template-columns: 1fr; }.quote-card { display: none; }
  .page-grid { display: block; }.weekly-goal { margin-top: 14px; }.stage-switcher button strong { font-size: 9px; }.stage-switcher button small { display: none; }
  .plan-table { overflow-x: auto; }.plan-row { min-width: 700px; }
  .focus-stage { min-height: calc(100vh - 170px); margin-inline: -16px; padding: 22px 16px; }.focus-subject-select { margin-top: 56px; }.main-timer { font-size: clamp(66px, 22vw, 96px); }.timer-controls { gap: 14px; }.timer-toggle { width: 64px; height: 64px; }.focus-modes button { padding: 16px 11px; }
  .insights-header { align-items: start; }.insights-header .secondary-button { font-size: 0; width: 40px; padding: 0; }.stats-grid { gap: 10px; }.stats-grid article { padding: 15px; }.stats-grid strong { font-size: 23px; }
  .bar-chart { gap: 8px; padding-inline: 0; }.review-card { grid-template-columns: 40px 1fr; }.review-card .text-button { grid-column: 2; justify-self: start; }
  .room-hero { padding: 26px 20px; display: block; }.room-hero h2 { font-size: 25px; }.room-hero .primary-button { margin-top: 24px; }.room-list { grid-template-columns: 1fr; }
  .review-import-actions { display: grid; }
  .mobile-nav { position: fixed; inset: auto 0 0; height: 70px; background: white; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(6,1fr); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav button { border: 0; background: white; color: var(--muted); display: grid; place-items: center; align-content: center; gap: 3px; font-size: 9px; cursor: pointer; }.mobile-nav svg { width: 18px; }.mobile-nav button.active { color: var(--red); }.mobile-nav .focus-nav svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--red); color: white; }
  .toast { left: 16px; right: 16px; bottom: 86px; justify-content: center; }
}

@media (max-width: 390px) {
  .topbar h1 { font-size: 19px; }.metric-panel small { display: none; }.metric-panel strong { font-size: 16px; }
  .section-heading h2, .section-block > h2 { font-size: 16px; }.subject-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .subject-tabs button { white-space: nowrap; }.timer-caption { text-align: center; }.focus-modes button { padding-inline: 8px; }
}
