/* ============================================================
   FINAL30 路 鏈€鍚庝笁鍗佸ぉ
   ============================================================ */
:root {
  --font-sans: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "SF Pro Display", "Segoe UI", var(--font-sans);
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --sidebar-w: 226px;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d11;
  --bg-soft: #0f1217;
  --card: #151920;
  --card-2: #1b202a;
  --card-3: #232a35;
  --line: #262d38;
  --line-soft: #1d232c;
  --text: #ece9e2;
  --text-2: #c6c2b8;
  --muted: #9299a6;
  --dim: #69717e;
  --accent: #e0603f;
  --accent-2: #f08a5d;
  --accent-soft: rgba(224, 96, 63, .13);
  --gold: #e0b25c;
  --gold-soft: rgba(224, 178, 92, .13);
  --green: #4dbf8f;
  --green-soft: rgba(77, 191, 143, .13);
  --red: #e26464;
  --red-soft: rgba(226, 100, 100, .13);
  --blue: #669df6;
  --blue-soft: rgba(102, 157, 246, .13);
  --glow-1: rgba(224, 96, 63, .07);
  --glow-2: rgba(224, 178, 92, .05);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4efe4;
  --bg-soft: #efe9db;
  --card: #fffdf7;
  --card-2: #f8f2e5;
  --card-3: #f0e8d8;
  --line: #e3d9c6;
  --line-soft: #ece4d4;
  --text: #231f19;
  --text-2: #453e34;
  --muted: #786d5d;
  --dim: #9a8f7e;
  --accent: #c74f33;
  --accent-2: #a83f27;
  --accent-soft: rgba(199, 79, 51, .1);
  --gold: #9c701f;
  --gold-soft: rgba(156, 112, 31, .12);
  --green: #2c8a61;
  --green-soft: rgba(44, 138, 97, .1);
  --red: #c0433c;
  --red-soft: rgba(192, 67, 60, .09);
  --blue: #3268bd;
  --blue-soft: rgba(50, 104, 189, .09);
  --glow-1: rgba(199, 79, 51, .06);
  --glow-2: rgba(156, 112, 31, .05);
  --shadow: 0 10px 30px rgba(74, 58, 33, .08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  background:
    radial-gradient(900px 520px at 8% -8%, var(--glow-1), transparent 60%),
    radial-gradient(760px 480px at 102% 104%, var(--glow-2), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--card-3); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- boot ---------- */
.boot-splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.boot-title { font-family: var(--font-num); letter-spacing: .32em; font-size: 18px; font-weight: 600; }
.boot-sub { color: var(--muted); font-size: 12.5px; letter-spacing: .05em; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shell ---------- */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  padding: 22px 15px 18px; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-right: 1px solid var(--line-soft); z-index: 30;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 7px 20px; }
.seal {
  width: 38px; height: 38px; flex: none; border-radius: 10px;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-num); font-weight: 700; font-size: 17px; letter-spacing: -.5px;
  box-shadow: 0 6px 16px rgba(224, 96, 63, .28), inset 0 1px 0 rgba(255, 255, 255, .25);
  transform: rotate(-3deg);
}
.seal.big { width: 58px; height: 58px; font-size: 25px; border-radius: 15px; }
.brand-name { font-family: var(--font-num); font-weight: 700; letter-spacing: .16em; font-size: 15px; }
.brand-sub { font-size: 10.5px; color: var(--muted); letter-spacing: .16em; margin-top: 1px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a {
  height: 40px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; gap: 11px;
  color: var(--muted); font-size: 13.5px; font-weight: 500; transition: background .16s, color .16s;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav a:hover { background: var(--card); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(224, 96, 63, .18); }
.nav a.active svg { color: var(--accent); }
.nav .badge-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.side-foot { margin-top: auto; padding: 12px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--card); }
.side-foot .d { font-family: var(--font-num); font-size: 26px; font-weight: 700; line-height: 1.1; }
.side-foot .d span { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.side-foot .t { font-size: 11px; color: var(--muted); margin-bottom: 5px; letter-spacing: .04em; }
.side-foot .u { font-size: 10.5px; color: var(--dim); margin-top: 7px; word-break: break-all; }

.main { margin-left: var(--sidebar-w); padding: 28px 32px 70px; max-width: 1280px; }
.view { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

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

/* ---------- typography / utils ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { font-size: 23px; font-weight: 650; letter-spacing: -.01em; margin: 0; }
.page-sub { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.green { color: var(--green); }
.red { color: var(--red); }
.gold { color: var(--gold); }
.accent { color: var(--accent); }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.hidden { display: none !important; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.clamp1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; position: relative;
}
.card.flush { padding: 0; overflow: hidden; }
.card.soft { background: linear-gradient(160deg, var(--card), var(--card-2)); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.sec-head:first-child { margin-top: 0; }
.sec-title { font-size: 14.5px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.sec-title svg { color: var(--accent); }
.sec-link { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.sec-link:hover { color: var(--accent); }
.card-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.card-sub { font-size: 12px; color: var(--muted); margin: 0; }
.empty { text-align: center; padding: 34px 14px; color: var(--muted); font-size: 13px; }
.empty .eicon { font-size: 26px; opacity: .6; margin-bottom: 8px; }
.divider { height: 1px; background: var(--line-soft); margin: 16px 0; border: 0; }

/* ---------- buttons ---------- */
.btn {
  height: 40px; padding: 0 15px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--text); font-size: 13.5px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .12s, background .16s, border-color .16s, opacity .16s;
  white-space: nowrap; user-select: none;
}
.btn:hover { background: var(--card-3); border-color: var(--line); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(150deg, var(--accent-2), var(--accent)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(224, 96, 63, .24); }
.btn-primary:hover { background: linear-gradient(150deg, var(--accent-2), var(--accent)); filter: brightness(1.05); }
.btn-green { background: var(--green-soft); border-color: rgba(77, 191, 143, .35); color: var(--green); }
.btn-red { background: var(--red-soft); border-color: rgba(226, 100, 100, .32); color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--card-2); color: var(--text); }
.btn-sm { height: 31px; padding: 0 10px; font-size: 12px; border-radius: 9px; gap: 5px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); display: inline-grid; place-items: center; color: var(--muted);
}
.icon-btn:hover { color: var(--text); background: var(--card-2); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- inputs ---------- */
.field { margin-bottom: 14px; }
.label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.hint { font-size: 11.5px; color: var(--dim); margin-top: 5px; line-height: 1.5; }
.input, .select, .textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px;
  color: var(--text); font-size: 13.5px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input, .select { height: 42px; padding: 0 12px; }
.textarea { padding: 11px 13px; min-height: 110px; resize: vertical; line-height: 1.65; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.select {
  appearance: none; padding-right: 30px; cursor: pointer;
  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='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.input-group { display: flex; gap: 9px; }
.input-group .input { flex: 1; }
.search-big { position: relative; }
.search-big .input { height: 56px; font-size: 17px; padding: 0 104px 0 46px; border-radius: 14px; }
.search-big .sicon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-big .sbtn { position: absolute; right: 7px; top: 7px; height: 42px; }
.switch { position: relative; width: 42px; height: 24px; flex: none; border-radius: 20px; background: var(--card-3); border: 1px solid var(--line); transition: background .18s; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .18s, background .18s; }
.switch.on { background: var(--accent-soft); border-color: var(--accent); }
.switch.on::after { transform: translateX(18px); background: var(--accent); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; }
.switch-row .st { font-size: 13px; }
.switch-row .ss { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 23px; padding: 0 8px;
  border-radius: 7px; background: var(--card-2); border: 1px solid var(--line);
  color: var(--muted); font-size: 11px; white-space: nowrap;
}
.tag.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.tag.green { background: var(--green-soft); border-color: transparent; color: var(--green); }
.tag.red { background: var(--red-soft); border-color: transparent; color: var(--red); }
.tag.gold { background: var(--gold-soft); border-color: transparent; color: var(--gold); }
.tag.blue { background: var(--blue-soft); border-color: transparent; color: var(--blue); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border-radius: 10px; background: var(--card-2); border: 1px solid var(--line);
  font-size: 13px; color: var(--text-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip small { color: var(--dim); font-size: 11px; }

/* ---------- home hero ---------- */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.hero-main {
  padding: 26px 28px; display: flex; flex-direction: column;
  background:
    radial-gradient(420px 220px at 88% -20%, var(--accent-soft), transparent 70%),
    linear-gradient(155deg, var(--card), var(--card-2));
  overflow: hidden;
}
.hero-main::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px;
  border: 1px solid var(--line); border-radius: 50%; opacity: .55;
}
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.count { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.count-num {
  font-family: var(--font-num); font-size: 106px; font-weight: 700; line-height: .82;
  letter-spacing: -.055em;
  background: linear-gradient(180deg, var(--text), var(--text-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.count-unit { font-size: 17px; color: var(--muted); font-weight: 500; }
.hero-meta { display: flex; gap: 16px; align-items: center; margin-top: 14px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.hero-meta b { color: var(--text-2); font-weight: 600; }
.sprint { margin-top: auto; padding-top: 22px; }
.sprint-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.sprint-bar { height: 6px; background: var(--card-3); border-radius: 6px; overflow: hidden; }
.sprint-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width .6s ease; }
.hero-mark { font-family: var(--font-serif); font-size: 52px; line-height: 1; color: var(--accent); opacity: .18; user-select: none; }

.focus-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.ring-wrap { position: relative; width: 186px; height: 186px; margin: 4px 0 10px; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--card-3); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .5s ease, stroke .3s; }
.ring-fg.done { stroke: var(--green); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ring-time { font-family: var(--font-num); font-size: 27px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ring-label { font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }
.focus-btns { display: flex; gap: 8px; width: 100%; margin-top: 6px; }
.focus-btns .btn { flex: 1; }

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.quick {
  display: flex; align-items: center; gap: 11px; padding: 14px 15px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, transform .15s;
}
.quick:hover { border-color: rgba(224, 96, 63, .45); transform: translateY(-1px); }
.quick .qicon { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.quick .qicon.green { background: var(--green-soft); color: var(--green); }
.quick .qicon.gold { background: var(--gold-soft); color: var(--gold); }
.quick .qicon.blue { background: var(--blue-soft); color: var(--blue); }
.quick .qt { display: block; font-size: 13px; font-weight: 600; }
.quick .qs { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.quick > span:last-child { min-width: 0; }

.words-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.word-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.word-chip:hover { border-color: var(--accent); }
.word-chip span { font-size: 10.5px; color: var(--dim); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.quiz-cta { margin-top: 16px; padding: 15px 16px; border-radius: 13px; border: 1px dashed var(--line); background: var(--bg-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.quiz-cta.ready { border-style: solid; border-color: rgba(224, 96, 63, .38); background: var(--accent-soft); }
.quiz-cta .qt { font-size: 13px; font-weight: 600; }
.quiz-cta .qs { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.plan-list { display: flex; flex-direction: column; }
.plan-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.plan-item:last-child { border-bottom: 0; }
.plan-check { width: 19px; height: 19px; flex: none; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line); background: transparent; display: grid; place-items: center; color: transparent; }
.plan-check:hover { border-color: var(--accent); }
.plan-item.done .plan-check { background: var(--green); border-color: var(--green); color: #fff; }
.plan-item.done .plan-text { color: var(--dim); text-decoration: line-through; }
.plan-text { font-size: 13px; line-height: 1.5; }
.plan-text .tag { margin-right: 5px; vertical-align: 1px; }
.plan-subhead { font-size: 10.5px; letter-spacing: .08em; color: var(--dim); margin: 10px 0 2px; }

/* ---------- 31 澶╄鍒?---------- */
.plan-summary { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.plan-big { font-family: var(--font-num); font-size: 40px; font-weight: 700; line-height: 1; }
.plan-big small { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan-total-bar { flex: 1; min-width: 180px; height: 8px; background: var(--card-3); border-radius: 8px; overflow: hidden; }
.plan-total-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.stage-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.stage-chip { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; }
.plan-stage-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 24px 0 9px; }
.plan-stage-title b { font-size: 13.5px; }
.plan-stage-title span { font-size: 10.5px; color: var(--dim); }
.plan-day {
  display: grid; grid-template-columns: 64px 1fr 86px; gap: 14px; align-items: center;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  margin-bottom: 8px; cursor: pointer; transition: border-color .15s, transform .15s;
}
.plan-day:hover { border-color: rgba(224, 96, 63, .45); transform: translateY(-1px); }
.plan-day.today { border-color: rgba(224, 96, 63, .55); background: linear-gradient(120deg, var(--accent-soft), var(--card)); }
.plan-day.past { opacity: .62; }
.pd-date { font-family: var(--font-num); font-size: 17px; font-weight: 700; line-height: 1.1; }
.pd-d { font-size: 10px; color: var(--muted); margin-top: 3px; }
.pd-tasks { display: flex; flex-wrap: wrap; gap: 4px; }
.pd-tasks .tag { height: 20px; font-size: 10px; }
.pd-tip { font-size: 11px; color: var(--dim); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-preview { font-size: 11px; color: var(--text-2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-prog { text-align: right; }
.pd-prog b { font-family: var(--font-num); font-size: 12px; }
.pd-prog .pd-bar { height: 4px; background: var(--card-3); border-radius: 4px; margin-top: 5px; overflow: hidden; }
.pd-prog .pd-bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.plan-day .today-tag { font-size: 9px; color: #fff; background: var(--accent); padding: 1px 5px; border-radius: 4px; margin-left: 3px; }
.plan-task { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.plan-task:last-child { border-bottom: 0; }
.plan-task .pt-main { flex: 1; min-width: 0; }
.plan-task .pt-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.plan-task .pt-text { font-size: 13px; line-height: 1.65; color: var(--text-2); }
.plan-task.done .pt-text { color: var(--dim); text-decoration: line-through; }

.weak-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 8px 0; }
.weak-name { font-size: 12.5px; display: flex; gap: 6px; align-items: center; min-width: 0; }
.weak-name b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weak-count { font-size: 11px; color: var(--muted); }
.weak-bar { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: var(--card-3); overflow: hidden; }
.weak-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 5px; }

.mini-bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; margin-top: 8px; }
.mini-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; height: 100%; }
.mini-bar i { display: block; background: var(--accent-soft); border-radius: 4px 4px 2px 2px; min-height: 3px; transition: height .4s; }
.mini-bar i.hot { background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.mini-labels { display: flex; gap: 7px; margin-top: 5px; }
.mini-labels span { flex: 1; text-align: center; font-size: 9.5px; color: var(--dim); }

.review-box { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.review-box ul { margin: 8px 0 0; padding-left: 18px; }

/* ---------- words page ---------- */
.search-card { padding: 18px; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 13px; overflow: hidden;
  box-shadow: var(--shadow); max-height: 330px; overflow-y: auto;
}
.suggest-item { display: flex; align-items: baseline; gap: 10px; padding: 9px 14px; cursor: pointer; border-bottom: 1px solid var(--line-soft); }
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item.sel { background: var(--accent-soft); }
.suggest-item b { font-size: 13.5px; font-weight: 600; }
.suggest-item span { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.word-result { margin-top: 16px; padding: 26px 28px; animation: rise .3s ease; }
.word-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.word-head h2 { font-family: var(--font-serif); font-size: 40px; margin: 0; letter-spacing: -.01em; font-weight: 600; }
.word-phon { color: var(--muted); font-size: 14px; }
.word-trans { margin-top: 14px; font-size: 15px; line-height: 1.85; white-space: pre-wrap; }
.word-trans .pos { color: var(--accent); font-style: italic; margin-right: 4px; }
.word-example { margin-top: 16px; padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--bg-soft); border-radius: 0 10px 10px 0; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.word-example .cn { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.word-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

.word-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.word-mini { padding: 11px 12px; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line); cursor: pointer; min-width: 0; }
.word-mini:hover { border-color: var(--accent); }
.word-mini b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.word-mini span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-strip { display: flex; gap: 6px; align-items: flex-end; height: 70px; margin-top: 10px; }
.day-strip .ds { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; height: 100%; }
.day-strip .ds i { width: 82%; background: var(--card-3); border-radius: 3px; min-height: 3px; }
.day-strip .ds em { font-style: normal; font-size: 9px; color: var(--muted); line-height: 1.1; }
.day-strip .ds span { font-size: 8.5px; color: var(--dim); line-height: 1.1; }

/* ---------- quiz ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(5, 6, 9, .66);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fade .18s ease;
}
.quiz-card {
  width: min(560px, 100%); max-height: 92vh; overflow-y: auto;
  background: linear-gradient(165deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: 24px; padding: 26px 26px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: pop .26s cubic-bezier(.2, .9, .3, 1.1);
  position: relative;
}
@keyframes pop { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: none; } }
.quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quiz-progress { height: 4px; background: var(--card-3); border-radius: 4px; margin-top: 14px; overflow: hidden; }
.quiz-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 4px; transition: width .3s; }
.quiz-body { text-align: center; padding: 26px 4px 8px; }
.quiz-word { font-family: var(--font-serif); font-size: 56px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; word-break: break-word; }
.quiz-phon { display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 14px; margin-top: 8px; }
.quiz-prompt { font-size: 20px; line-height: 1.65; white-space: pre-wrap; font-weight: 600; }
.quiz-prompt-hint { margin-top: 8px; font-size: 12px; color: var(--muted); }
.quiz-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 26px; }
.quiz-btn { height: 56px; border-radius: 14px; font-size: 15px; font-weight: 600; border: 1px solid var(--line); background: var(--card-2); display: flex; align-items: center; justify-content: center; gap: 7px; transition: transform .12s, background .15s; }
.quiz-btn:active { transform: scale(.98); }
.quiz-btn.know { background: var(--green-soft); border-color: rgba(77, 191, 143, .4); color: var(--green); }
.quiz-btn.unknow { background: var(--red-soft); border-color: rgba(226, 100, 100, .4); color: var(--red); }
.quiz-reveal { margin-top: 20px; padding: 16px 17px; text-align: left; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); animation: rise .22s ease; }
.quiz-reveal .qz-trans { font-size: 14.5px; line-height: 1.75; white-space: pre-wrap; }
.quiz-reveal .qz-ex { margin-top: 9px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.quiz-foot { margin-top: 16px; display: flex; gap: 9px; }
.quiz-foot .btn { flex: 1; }
.quiz-result { text-align: center; padding: 12px 0 4px; }
.quiz-score { font-family: var(--font-num); font-size: 64px; font-weight: 700; line-height: 1; }
.quiz-score small { font-size: 20px; color: var(--muted); font-weight: 500; }
.quiz-unknown { margin-top: 16px; text-align: left; max-height: 210px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.quiz-unknown .qu { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.quiz-unknown .qu:last-child { border-bottom: 0; }
.quiz-unknown .qu span { color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiz-start { text-align: center; padding: 10px 0 4px; }
.quiz-start .qz-total { font-family: var(--font-num); font-size: 56px; font-weight: 700; line-height: 1; }
.quiz-start .qz-last { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.quiz-claim { margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line); background: var(--bg-soft); animation: rise .2s ease; }
.quiz-claim .qz-note { margin-top: 0; }
.quiz-claim-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.quiz-spell { padding: 0 2px; }
.quiz-input { margin-top: 18px; height: 56px; text-align: center; font-size: 26px; font-family: var(--font-serif); letter-spacing: .04em; }
.quiz-spell-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.quiz-verdict { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.quiz-verdict.ok { color: var(--green); }
.quiz-verdict.bad { color: var(--red); }
.qz-note { margin-top: 14px; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.6; }

/* ---------- 娴嬮獙鍘嗗彶 / 閫愯瘝缁撴灉 ---------- */
.qz-hist { margin-top: 16px; text-align: left; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qz-hist-t { padding: 8px 12px; font-size: 11.5px; color: var(--muted); background: var(--bg-soft); border-bottom: 1px solid var(--line-soft); }
.qz-hrow { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; padding: 7px 12px; font-size: 12px; border-bottom: 1px solid var(--line-soft); }
.qz-hrow:last-child { border-bottom: 0; }
.qz-hn { font-weight: 600; }
.qz-ht { color: var(--muted); font-size: 11px; }
.qz-ha { font-family: var(--font-num); font-weight: 650; }
.qz-hd { color: var(--muted); font-size: 11px; text-align: right; }
.qz-words { max-height: 260px; overflow-y: auto; text-align: left; border: 1px solid var(--line); border-radius: 12px; margin-top: 14px; }
.qz-w { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); }
.qz-w:last-child { border-bottom: 0; }
.qz-wmain { min-width: 0; }
.qz-ww { font-size: 12.5px; font-weight: 600; }
.qz-wt { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-wtags { display: flex; gap: 4px; flex: none; }
.qz-spellstat { margin-top: 8px; font-size: 12px; color: var(--muted); }
.qz-more { display: inline-block; margin-top: 12px; font-size: 11.5px; color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--line); }
.qz-more:hover { color: var(--accent); }
.qz-summary { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.qz-days { display: flex; flex-direction: column; gap: 8px; }
.qz-day { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.qz-day > summary { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; cursor: pointer; font-size: 12.5px; list-style: none; }
.qz-day > summary::-webkit-details-marker { display: none; }
.qz-day-t { font-weight: 650; }
.qz-day-m { color: var(--muted); font-size: 11.5px; }
.qz-run { border-top: 1px solid var(--line-soft); background: var(--card); }
.qz-run > summary { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px 8px 22px; cursor: pointer; font-size: 12px; list-style: none; }
.qz-run > summary::-webkit-details-marker { display: none; }
.qz-run-t { font-weight: 600; }
.qz-run-m { color: var(--muted); font-size: 11.5px; }
.qz-run .qz-words { margin: 0 10px 10px; max-height: 240px; }

/* ---------- 澶嶇洏寮圭獥锛氳瘖鏂?/ 閲嶇偣璇?---------- */
.rv-pattern { font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.rv-words { display: flex; flex-direction: column; gap: 7px; }
.rv-word { padding: 8px 11px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line-soft); }
.rv-ww { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 13px; }
.rv-why { font-size: 11.5px; color: var(--muted); }
.rv-how { margin-top: 4px; font-size: 12px; line-height: 1.65; }
.rv-check { margin-top: 14px; padding: 9px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 12.5px; line-height: 1.6; }

/* ---------- drill 路 杩囪瘝搴?---------- */
.drill-card { width: min(600px, 100%); }
.drill-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.drill-meta .tag { font-size: 10.5px; }
.drill-flag { margin-top: 10px; font-size: 11.5px; color: var(--gold); }

/* ---------- chat ---------- */
.chat-card { display: flex; flex-direction: column; height: calc(100dvh - 118px); padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.chat-head .ct { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.chat-head .cs { font-size: 11px; color: var(--muted); }
.chat-scroll { flex: 1; overflow-y: auto; padding: 20px 18px 8px; scroll-behavior: smooth; }
.msg { display: flex; gap: 10px; margin-bottom: 18px; animation: rise .22s ease; }
.msg.user { flex-direction: row-reverse; }
.avatar { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(145deg, var(--accent-2), var(--accent)); }
.avatar.me { background: var(--card-3); color: var(--muted); }
.bubble { max-width: min(78%, 720px); padding: 11px 14px; border-radius: 15px; background: var(--card-2); border: 1px solid var(--line-soft); font-size: 14px; line-height: 1.72; overflow-wrap: anywhere; }
.msg.user .bubble { background: var(--accent); color: #fff; border-color: transparent; border-bottom-right-radius: 5px; }
.msg.ai .bubble { border-bottom-left-radius: 5px; }
.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble h4 { margin: 12px 0 5px; font-size: 14px; }
.bubble ul, .bubble ol { margin: 5px 0 8px; padding-left: 20px; }
.bubble li { margin: 2px 0; }
.bubble pre { background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; overflow-x: auto; font-size: 12.5px; margin: 8px 0; }
.bubble code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--bg-soft); padding: 1px 4px; border-radius: 4px; }
.bubble pre code { background: none; padding: 0; }
.bubble blockquote { margin: 6px 0; padding-left: 10px; border-left: 2px solid var(--line); color: var(--muted); }
.msg-meta { font-size: 10px; color: var(--dim); margin-top: 5px; display: flex; gap: 8px; }
.msg.user .msg-meta { justify-content: flex-end; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 70%, 100% { opacity: .25; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-2px); } }
.chat-empty { text-align: center; padding: 40px 12px; }
.chat-empty .ce-t { font-size: 16px; font-weight: 600; margin-top: 14px; }
.chat-empty .ce-s { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; max-width: 560px; margin-left: auto; margin-right: auto; }
.prompt-chip { padding: 8px 13px; border-radius: 20px; border: 1px solid var(--line); background: var(--card-2); font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.prompt-chip:hover { border-color: var(--accent); color: var(--text); }
.composer { border-top: 1px solid var(--line-soft); padding: 11px 14px 13px; background: var(--card); }
.composer-inner { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); padding: 8px 8px 8px 12px; transition: border-color .15s; }
.composer-inner:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer textarea {
  width: 100%; border: 0; outline: none; resize: none; background: transparent;
  font-size: 14px; line-height: 1.6; min-height: 24px; max-height: 150px; padding: 4px 2px;
}
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.composer-left { display: flex; align-items: center; gap: 4px; }
.mini-btn { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.mini-btn:hover { background: var(--card-2); color: var(--text); }
.mini-btn svg { width: 17px; height: 17px; }
.send-btn { width: 34px; height: 34px; border-radius: 9px; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(224, 96, 63, .3); }
.send-btn:disabled { opacity: .4; box-shadow: none; }
.send-btn svg { width: 17px; height: 17px; }
.attach-preview { display: inline-flex; position: relative; margin: 0 0 6px 0; }
.attach-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.attach-preview button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--card-3); color: var(--text); font-size: 11px; display: grid; place-items: center; }
.chat-hint { font-size: 10.5px; color: var(--dim); margin-top: 5px; text-align: center; }

/* ---------- mistakes ---------- */
.mistake-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mistake-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.m-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.m-head time { margin-left: auto; font-size: 10.5px; color: var(--dim); }
.m-q { font-size: 13.5px; line-height: 1.65; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.m-img { max-height: 180px; width: auto; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; background: var(--bg); cursor: zoom-in; align-self: flex-start; }
.m-analysis { font-size: 12.5px; line-height: 1.7; color: var(--text-2); white-space: pre-wrap; border-top: 1px dashed var(--line); padding-top: 10px; }
.m-analysis.collapsed { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.m-foot { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.m-mastery { display: inline-flex; gap: 3px; align-items: center; }
.m-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--card-3); }
.m-dot.on { background: var(--green); }
.dropzone { border: 1.5px dashed var(--line); border-radius: 13px; padding: 18px; text-align: center; color: var(--muted); font-size: 12.5px; cursor: pointer; transition: border-color .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone img { max-height: 160px; border-radius: 9px; margin-bottom: 8px; }

/* ---------- essay ---------- */
.essay-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 16px; align-items: start; }
.score-ring { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--card); }
.score-ring .sc { position: relative; z-index: 1; text-align: center; }
.score-ring .sc b { font-family: var(--font-num); font-size: 38px; font-weight: 700; line-height: 1; display: block; }
.score-ring .sc small { font-size: 11px; color: var(--muted); }
.dim-row { margin-top: 12px; }
.dim-top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.dim-bar { height: 5px; border-radius: 5px; background: var(--card-3); overflow: hidden; }
.dim-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 5px; }
.dim-comment { font-size: 11.5px; color: var(--dim); margin-top: 4px; line-height: 1.55; }
.fix-row { padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; line-height: 1.6; }
.fix-row:last-child { border-bottom: 0; }
.fix-row .orig { color: var(--red); text-decoration: line-through; text-decoration-color: rgba(226, 100, 100, .5); }
.fix-row .fixed { color: var(--green); margin-top: 2px; }
.fix-row .why { color: var(--dim); font-size: 11px; margin-top: 2px; }
.ul-list { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.7; color: var(--text-2); }
.ul-list li { margin: 3px 0; }
.word-count { font-size: 11px; color: var(--dim); }
.essay-history { display: flex; flex-direction: column; gap: 8px; }
.essay-hist-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.essay-hist-item:hover { border-color: var(--accent); }
.essay-hist-item .eh-score { font-family: var(--font-num); font-size: 20px; font-weight: 700; width: 42px; text-align: center; }
.essay-hist-item .eh-main { flex: 1; min-width: 0; }
.essay-hist-item .eh-title { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.essay-hist-item .eh-sub { font-size: 10.5px; color: var(--dim); }
.tpl-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); cursor: pointer; }
.tpl-card:hover { border-color: var(--accent); }
.tpl-card b { font-size: 13px; }
.tpl-card p { font-size: 11.5px; color: var(--muted); margin: 4px 0 0; line-height: 1.55; }

/* ---------- stats ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 15px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.tile .tv { font-family: var(--font-num); font-size: 27px; font-weight: 700; line-height: 1.1; margin-top: 5px; }
.tile .tv small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.tile .tl { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.tile .tile-sub { margin-top: 5px; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 鎸夊ぉ鏌ョ湅 ---------- */
.daybar { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.day-chip {
  flex: none; min-width: 42px; padding: 6px 0 5px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card-2); color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: 10px; line-height: 1.2; transition: background .15s, border-color .15s, color .15s;
}
.day-chip b { font-family: var(--font-num); font-size: 14px; font-weight: 650; color: var(--text); }
.day-chip span { font-size: 9.5px; }
.day-chip.today { border-style: dashed; }
.day-chip.on { border-color: var(--accent); background: var(--accent-soft); }
.day-chip.on b, .day-chip.on span { color: var(--accent); }
.day-detail { margin-top: 2px; }
.dd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 9px; }
.dd-item { padding: 9px 11px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line-soft); }
.dd-item b { display: block; font-family: var(--font-num); font-size: 17px; font-weight: 650; line-height: 1.2; }
.dd-item b small { font-size: 10.5px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.dd-item span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.chart-box { position: relative; width: 100%; }
.chart-box canvas { width: 100%; height: 210px; display: block; }
.legend { display: flex; gap: 14px; font-size: 10.5px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.heat { display: grid; grid-template-columns: repeat(15, 1fr); gap: 5px; margin-top: 8px; }
.heat .hc { aspect-ratio: 1; border-radius: 4px; background: var(--card-3); position: relative; }
.heat .hc[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%);
  background: var(--card-3); color: var(--text); font-size: 10px; padding: 3px 6px; border-radius: 5px; white-space: nowrap; z-index: 5;
}
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--dim); margin-top: 8px; }
.heat-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.token-row { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.token-row:last-child { border-bottom: 0; }

/* ---------- settings ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.settings-grid .full { grid-column: 1 / -1; }
/* 姣忎釜鍖哄煙鏄竴涓娊灞夛細鐐规爣棰樿灞曞紑 / 鏀跺洖 */
.settings-grid details.acc { padding: 0; overflow: hidden; }
.acc-head {
  display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px;
  cursor: pointer; list-style: none; user-select: none; transition: background .16s;
}
.acc-head::-webkit-details-marker { display: none; }
.acc-head:hover { background: var(--card-2); }
.acc-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }
.acc-caret { flex: none; margin-top: 2px; display: inline-flex; color: var(--dim); transition: transform .18s ease, color .18s ease; }
details.acc[open] > .acc-head .acc-caret { transform: rotate(90deg); color: var(--accent); }
.acc-titles { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.acc-titles .card-title { display: block; margin: 0; }
.acc-titles .card-sub { display: block; }
.acc-head > .tag { flex: none; margin-top: 1px; }
.acc-body { padding: 0 18px 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); margin-right: 5px; }
.status-dot.ok { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.status-dot.bad { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.kv:last-child { border-bottom: 0; }
.kv span:last-child { color: var(--muted); text-align: right; word-break: break-all; }
.danger { border-color: rgba(226, 100, 100, .3); }

/* ---------- modal / toast ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 9, .62); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .16s; }
.modal { width: min(560px, 100%); max-height: 88vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); animation: pop .22s cubic-bezier(.2, .9, .3, 1.05); }
.modal.wide { width: min(760px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.modal-title { font-size: 16px; font-weight: 650; margin: 0; }
.modal-body { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast-wrap { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--card-2); border: 1px solid var(--line); color: var(--text); padding: 9px 15px; border-radius: 11px; font-size: 12.5px; box-shadow: var(--shadow); animation: rise .2s ease; display: flex; align-items: center; gap: 7px; max-width: 86vw; }
.toast.ok { border-color: rgba(77, 191, 143, .4); }
.toast.err { border-color: rgba(226, 100, 100, .45); color: var(--red); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: min(360px, 100%); text-align: center; padding: 32px 26px; }
.login-card .seal { margin: 0 auto 14px; }
.login-card h1 { font-size: 18px; margin: 0 0 4px; }
.login-card p { font-size: 12px; color: var(--muted); margin: 0 0 18px; }
.pin-input { letter-spacing: .4em; text-align: center; font-size: 18px; }
.error-box { background: var(--red-soft); border: 1px solid rgba(226, 100, 100, .3); color: var(--red); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; }

/* ---------- quiz banner ---------- */
.quiz-banner { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: min(330px, calc(100% - 32px)); padding: 14px 15px; border-radius: 15px; background: linear-gradient(150deg, var(--card), var(--card-2)); border: 1px solid rgba(224, 96, 63, .4); box-shadow: var(--shadow); animation: rise .3s; }
.quiz-banner .qb-t { font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.quiz-banner .qb-s { font-size: 11.5px; color: var(--muted); margin: 3px 0 10px; }
.quiz-banner .qb-actions { display: flex; gap: 7px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .essay-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .word-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 12px 15px calc(84px + env(safe-area-inset-bottom)); }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: sticky; top: 0; z-index: 40; margin: -12px -15px 12px; padding: 11px 15px;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft);
  }
  .topbar .tb-title { font-size: 15px; font-weight: 650; }
  .topbar .tb-sub { font-size: 10px; color: var(--muted); }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(5px + env(safe-area-inset-bottom));
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0; color: var(--muted); font-size: 9.5px; border-radius: 9px; }
  .tabbar a svg { width: 20px; height: 20px; }
  .tabbar a.active { color: var(--accent); }
  .tabbar a.active svg { filter: drop-shadow(0 0 6px var(--accent-soft)); }
  .page-title { font-size: 20px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .grid.g2, .grid.g3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .mistake-list { grid-template-columns: 1fr; }
  .hero-main { padding: 22px; }
  .count-num { font-size: 84px; }
  .chat-card { height: calc(100dvh - 148px); border-radius: 16px; }
  .quiz-banner { right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); }
  .word-grid { grid-template-columns: repeat(2, 1fr); }
  .toast-wrap { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .plan-day { grid-template-columns: 58px 1fr 64px; gap: 10px; padding: 11px 12px; }
  .pd-date { font-size: 15px; }
  .pd-preview { display: none; }
  .heat { grid-template-columns: repeat(10, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .chat-head .sec-link { display: none; }
  .bubble { max-width: 84%; }
  .tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .count-num { font-size: 72px; }
  .count-unit { font-size: 14px; }
  .hero-meta { gap: 10px; font-size: 11px; }
  .ring-wrap { width: 164px; height: 164px; }
  .ring-time { font-size: 24px; }
  .quick { padding: 12px; gap: 9px; }
  .quick .qicon { width: 34px; height: 34px; border-radius: 10px; }
  .quick .qt { font-size: 12.5px; }
  .quick .qs { display: none; }
  .word-head h2 { font-size: 32px; }
  .quiz-word { font-size: 44px; }
  .quiz-card { padding: 20px 18px; border-radius: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile .tv { font-size: 23px; }
  .heat { grid-template-columns: repeat(10, 1fr); }
  .card { padding: 16px; border-radius: 15px; }
  .word-result { padding: 20px; }
  .quiz-actions { gap: 9px; }
  .segment { width: 100%; }
  .segment button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- segmented ---------- */
.segment { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line); gap: 2px; }
.segment button { height: 30px; padding: 0 13px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.segment button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.filter-row { display: flex; gap: 7px; flex-wrap: wrap; }

/* ---------- misc ---------- */
.loading-line { height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 200% 100%; animation: slide 1.1s linear infinite; border-radius: 3px; }
@keyframes slide { to { background-position: -200% 0; } }
.page-loading { padding: 60px 0; display: flex; justify-content: center; }
.badge-new { font-size: 9px; padding: 1px 5px; border-radius: 4px; background: var(--accent); color: #fff; margin-left: 4px; vertical-align: middle; }
.copy-btn { margin-left: 6px; }
.kbd { display: inline-block; padding: 1px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; font-size: 10px; color: var(--muted); font-family: var(--font-num); }
/* ---------- 鏇存柊鏃ュ織锛堣缃〉锛?---------- */
.cl-list { list-style: none; margin: 0; padding: 0; }
.cl-item { position: relative; padding: 8px 0 8px 16px; border-left: 2px solid var(--line); }
.cl-item + .cl-item { margin-top: 2px; }
.cl-item::before {
  content: ''; position: absolute; left: -5px; top: 14px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--card-2); border: 2px solid var(--line);
}
.cl-list .cl-item:first-child::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cl-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; }
.cl-ver { font-family: var(--font-num); font-size: 13px; font-weight: 700; color: var(--accent); min-width: 42px; }
.cl-note { flex: 1 1 auto; min-width: 130px; font-size: 13px; color: var(--text); }
.cl-when { font-family: var(--font-num); font-size: 11px; color: var(--muted); white-space: nowrap; }
.cl-item-mark { border-left-color: var(--accent); }
.cl-item-mark .cl-row { font-weight: 700; }
.cl-item-mark .cl-note { color: var(--text); font-weight: 700; }
.cl-mark-note { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--accent); }
@media (max-width: 560px) {
  .cl-row { gap: 2px 8px; }
  .cl-when { width: 100%; padding-left: 52px; }
}

/* ---------- 鍥剧墖璋冩暣锛堣鍓?/ 鏃嬭浆锛?---------- */
.ie-wrap { text-align: center; }
.ie-stage { position: relative; display: block; max-width: 100%; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #000; touch-action: none; user-select: none; -webkit-user-select: none; }
.ie-stage canvas { display: block; width: 100%; height: auto; }
.ie-crop { position: absolute; border: 1.5px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .48); cursor: move; }
.ie-crop i { position: absolute; width: 26px; height: 26px; touch-action: none; }
.ie-crop i[data-h="nw"] { left: 0; top: 0; border-left: 3px solid #fff; border-top: 3px solid #fff; border-top-left-radius: 4px; cursor: nwse-resize; }
.ie-crop i[data-h="ne"] { right: 0; top: 0; border-right: 3px solid #fff; border-top: 3px solid #fff; border-top-right-radius: 4px; cursor: nesw-resize; }
.ie-crop i[data-h="sw"] { left: 0; bottom: 0; border-left: 3px solid #fff; border-bottom: 3px solid #fff; border-bottom-left-radius: 4px; cursor: nesw-resize; }
.ie-crop i[data-h="se"] { right: 0; bottom: 0; border-right: 3px solid #fff; border-bottom: 3px solid #fff; border-bottom-right-radius: 4px; cursor: nwse-resize; }
.ie-tools { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ie-hint { font-size: 11px; color: var(--dim); margin-left: auto; }

/* 妗岄潰绔病鏈?capture 鎽勫儚澶达紝鎷嶇収鍏ュ彛鍙暀缁欒Е灞忚澶?*/
@media (hover: hover) and (pointer: fine) { #cam-btn { display: none; } }

/* ---------- 涓枃鍙嶆煡鑻辨枃锛堟煡璇嶉〉锛?---------- */
.rev-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.rev-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line); cursor: pointer; }
.rev-row:hover { border-color: var(--accent); }
.rev-row .rev-word { flex: 0 0 auto; min-width: 132px; }
.rev-row .rev-word b { font-family: var(--font-serif); font-size: 19px; font-weight: 600; }
.rev-row .word-phon { margin-left: 8px; }
.rev-row .rev-sense { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.rev-row .icon-btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .rev-row { flex-wrap: wrap; gap: 4px 10px; }
  .rev-row .rev-word { min-width: 0; }
  .rev-row .rev-sense { flex-basis: 100%; }
}

/* ---------- 鐪熼绮剧炕 / 閫夐」瀹氫綅 ---------- */
.paper-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .paper-grid { grid-template-columns: 1fr; } }
.paper-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.paper-title { font-size: 19px; margin: 0 0 8px; letter-spacing: -.01em; }
.paper-summary { margin: 0 0 12px; padding: 9px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 9px 9px 0; font-size: 12.8px; line-height: 1.75; color: var(--text-2); }
.paper-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.p-list { margin-top: 4px; }
.p-sent { position: relative; padding: 13px 14px 13px 44px; border: 1px solid var(--line); border-radius: 13px; background: var(--card-2); margin-top: 10px; }
.p-sent.hard { border-color: rgba(224, 96, 63, .38); background: linear-gradient(150deg, var(--card-2), var(--accent-soft)); }
.p-num { position: absolute; left: 12px; top: 13px; width: 23px; height: 23px; border-radius: 7px; background: var(--card); border: 1px solid var(--line); color: var(--dim); font-family: var(--font-num); font-size: 10.5px; display: grid; place-items: center; }
.p-en { margin: 0; font-family: var(--font-serif); font-size: 14.5px; line-height: 1.95; color: var(--text); }
.p-cn { margin: 8px 0 0; font-size: 12.8px; line-height: 1.85; color: var(--text-2); }
.p-hard { display: inline-block; margin-left: 7px; padding: 1px 6px; border-radius: 5px; background: var(--accent); color: #fff; font-family: var(--font-sans); font-size: 9.5px; vertical-align: 2px; letter-spacing: .02em; }
.p-w { background: linear-gradient(transparent 62%, var(--gold-soft) 62%); border-bottom: 1px dashed var(--gold); color: var(--gold); padding: 0 1px; border-radius: 2px; cursor: pointer; }
.p-w:hover { background: var(--gold-soft); }
.p-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.p-tag { font-size: 10.5px; padding: 2px 7px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); }
.p-tag:nth-child(2) { background: var(--gold-soft); color: var(--gold); }
.p-tag:nth-child(3) { background: var(--green-soft); color: var(--green); }
.p-skel { margin-top: 9px; padding: 7px 10px; border: 1px dashed var(--line); border-radius: 8px; font-size: 12px; line-height: 1.7; color: var(--muted); background: var(--card); }
.p-skel b { color: var(--accent); font-weight: 600; margin-right: 6px; }
.p-note { margin-top: 7px; display: flex; gap: 6px; align-items: flex-start; font-size: 11.8px; line-height: 1.65; color: var(--gold); }
.p-note svg { flex: none; margin-top: 2px; }
.p-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.p-word-card { padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--card-2); cursor: pointer; transition: border-color .15s, transform .15s; }
.p-word-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.w-top { display: flex; align-items: center; gap: 6px; }
.w-top b { font-family: var(--font-serif); font-size: 15px; color: var(--text); }
.w-pos { font-size: 10px; color: var(--dim); }
.w-say { margin-left: auto; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 2px; display: grid; place-items: center; }
.w-say:hover { color: var(--accent); }
.w-ph { font-size: 11px; color: var(--muted); margin-top: 2px; }
.w-cn { font-size: 12px; color: var(--text-2); margin-top: 3px; line-height: 1.6; }
.w-exam, .w-col { margin-top: 5px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.w-exam i, .w-col i { display: inline-block; font-style: normal; font-size: 9.5px; margin-right: 4px; padding: 0 4px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.w-col i { background: var(--blue-soft); color: var(--blue); }
.p-links { display: flex; flex-direction: column; gap: 6px; }
.p-link { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding: 7px 10px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
.p-link b { color: var(--text); font-size: 12.5px; }
.p-link i { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); }
.paper-result.cn-only .p-en,
.paper-result.cn-only .p-tags,
.paper-result.cn-only .p-skel,
.paper-result.cn-only .p-note,
.paper-result.cn-only .p-hard { display: none; }
.solve-top { display: flex; gap: 12px; align-items: center; }
.ans-badge { width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: #0a0d10; display: grid; place-items: center; font-size: 19px; font-weight: 700; flex: none; }
.ans-badge.none { background: var(--card-3); color: var(--muted); }
.solve-title { font-size: 15px; font-weight: 650; }
.solve-loc { margin-top: 12px; padding: 11px 12px; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line); }
.solve-loc.lost { border-color: var(--red); background: var(--red-soft); }
.loc-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.loc-head svg { color: var(--accent); }
.solve-quote { margin: 9px 0 0; padding: 9px 12px; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 8px 8px 0; font-family: var(--font-serif); font-size: 13.3px; line-height: 1.85; color: var(--text); }
.chain { margin-top: 12px; display: flex; flex-direction: column; }
.chain-step { display: flex; gap: 10px; padding: 9px 11px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line-soft); }
.chain-k { flex: none; width: 70px; font-size: 11px; color: var(--accent); font-weight: 600; }
.chain-v { font-size: 12.5px; line-height: 1.7; color: var(--text-2); }
.chain-arrow { width: 1px; height: 9px; background: var(--line); margin-left: 22px; }
.solve-why { margin-top: 12px; display: flex; gap: 9px; padding: 11px 12px; border-radius: 11px; background: var(--green-soft); }
.solve-why svg { color: var(--green); flex: none; margin-top: 1px; }
.solve-why b { font-size: 12px; color: var(--green); }
.solve-why p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.75; color: var(--text-2); }
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt-row { display: flex; gap: 10px; padding: 10px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); }
.opt-row.good { border-color: rgba(77, 191, 143, .45); background: var(--green-soft); }
.opt-k { flex: none; width: 23px; height: 23px; border-radius: 7px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-size: 11.5px; font-weight: 650; }
.opt-row.good .opt-k { background: var(--green); color: #0a0d10; border-color: transparent; }
.opt-main { min-width: 0; }
.opt-head { display: flex; gap: 5px; flex-wrap: wrap; }
.opt-why { margin: 6px 0 0; font-size: 12.3px; line-height: 1.72; color: var(--text-2); }
.opt-ev { margin: 5px 0 0; font-size: 11.4px; line-height: 1.65; color: var(--dim); border-left: 2px solid var(--line); padding-left: 8px; }
.solve-trap, .solve-take { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--red-soft); }
.solve-take { background: var(--blue-soft); }
.solve-trap b { color: var(--red); font-size: 12px; }
.solve-take b { color: var(--blue); font-size: 12px; }
.solve-trap p, .solve-take p { margin: 4px 0 0; font-size: 12.3px; line-height: 1.72; color: var(--text-2); }
.paper-history { display: flex; flex-direction: column; gap: 6px; }
.paper-hist-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line-soft); cursor: pointer; }
.paper-hist-item:hover { border-color: var(--accent); }
.ph-main { flex: 1; min-width: 0; }
.ph-title { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-sub { font-size: 11px; color: var(--dim); margin-top: 2px; }
.opt-inputs { display: flex; flex-direction: column; gap: 6px; }
.opt-line { display: flex; align-items: center; gap: 8px; }
.opt-letter { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--card-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.opt-line .input { flex: 1; }
.p-word-detail .w-cn { font-size: 14px; margin-top: 6px; }
.p-tap { cursor: pointer; border-radius: 3px; padding: 0 1px; transition: background .12s, box-shadow .12s; }
.p-tap:hover { background: var(--card-3); box-shadow: 0 0 0 2px var(--card-3); }
.paper-result.no-hl .p-w { background: none; border-bottom: 0; color: inherit; }
.paper-result.no-hl .p-w:hover { background: var(--card-3); }
.p-word-detail { display: flex; flex-direction: column; gap: 2px; }
.p-word-detail .w-top { gap: 8px; }
.p-word-detail .w-cn { font-size: 15px; color: var(--text); margin-top: 6px; }
.w-note { margin-top: 8px; font-size: 11.8px; line-height: 1.7; color: var(--text-2); background: var(--card-2); border-left: 2px solid var(--gold); border-radius: 0 7px 7px 0; padding: 6px 9px; }
.w-note i { font-style: normal; font-size: 9.5px; margin-right: 5px; padding: 0 4px; border-radius: 4px; background: var(--gold-soft); color: var(--gold); }
.w-sent { margin-top: 10px; font-family: var(--font-serif); font-size: 12.5px; line-height: 1.8; color: var(--dim); border-top: 1px dashed var(--line); padding-top: 8px; }
.p-word-loading { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 10px 2px; }
.kind-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -6px 0 16px; }
.kind-bar .chip { height: 28px; padding: 0 11px; font-size: 12px; }
.kind-bar .chip.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.cloze-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.cloze-item { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); }
.cloze-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cloze-n { font-family: var(--font-num); font-size: 12.5px; color: var(--dim); min-width: 18px; }
.ans-badge.sm { width: 26px; height: 26px; font-size: 13px; border-radius: 7px; }
.cloze-why { margin: 5px 0 0; font-size: 12.3px; line-height: 1.65; color: var(--text-2); }
.cloze-trap { margin: 4px 0 0; font-size: 11.2px; line-height: 1.6; color: var(--red); }
.cloze-trap::before { content: "易错 "; font-weight: 600; }
.clue-line { margin-top: 5px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.clue-line b { color: var(--gold); font-weight: 600; margin-right: 5px; }
.blank-list { display: flex; flex-direction: column; gap: 8px; }
.blank-card { padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--card-2); }
.blank-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blank-n { font-family: var(--font-num); font-size: 12.5px; color: var(--dim); }
.blank-quote { font-family: var(--font-serif); font-size: 12px; color: var(--muted); }
.blank-quote b { color: var(--accent); }
.unused-line { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.match-list { display: flex; flex-direction: column; gap: 8px; }
.match-row { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); }
.match-main { min-width: 0; }
.order-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.flow-node { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-num); font-size: 13px; font-weight: 600; }
.flow-arrow { color: var(--dim); font-size: 12px; }
.link-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.link-row { display: flex; gap: 9px; padding: 8px 10px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line-soft); }
.link-pair { flex: none; font-family: var(--font-num); font-size: 12px; color: var(--accent); }
.p-blank { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 5px; margin: 0 2px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-num); font-size: 11px; vertical-align: 1px; }
.blank-line { display: inline-block; width: 52px; border-bottom: 1.5px dashed var(--accent); vertical-align: -3px; margin-right: 5px; }
