:root {
  --bg: #eaf2ff;
  --surface: #ffffff;
  --surface-2: #f4f8ff;
  --primary: #4a90e2;
  --primary-dark: #357abd;
  --primary-soft: #e8f1fd;
  --accent: #ff6b8a;
  --accent-soft: #ffeaf0;
  --text: #21303f;
  --text-2: #64748b;
  --text-3: #94a3b8;
  --border: #e3ecf7;
  --green: #2faa63;
  --amber: #e0a020;
  --red: #e2553f;
  --shadow-sm: 0 1px 3px rgba(60, 100, 160, .06);
  --shadow: 0 6px 20px rgba(60, 100, 160, .10);
  --shadow-md: 0 12px 32px rgba(60, 100, 160, .16);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(160deg, #eaf2ff 0%, #f3f8ff 45%, #eef4ff 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
/* 侧边栏：默认窄栏（只留图标），hover 展开；可点击右上角按钮固定展开 */
.sidebar {
  width: 74px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px);
  border-right: 1px solid var(--border);
  padding: 16px 8px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; align-items: center;
  transition: width .22s ease, padding .22s ease;
}
.sidebar:hover, .sidebar.pinned {
  width: 232px; padding: 20px 14px; align-items: stretch;
}
.sidebar-toggle {
  position: absolute; right: 10px; top: 12px;
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); cursor: pointer; opacity: .55; transition: opacity .15s, background .15s, transform .22s;
}
.sidebar:hover .sidebar-toggle,
.sidebar.pinned .sidebar-toggle { opacity: 1; }
.sidebar-toggle:hover { background: var(--surface-2); color: var(--text-1); }
/* 窄栏时箭头朝右（表示可展开），展开/固定时朝左 */
.sidebar .sidebar-toggle svg { transform: rotate(0deg); }
.sidebar:hover .sidebar-toggle svg,
.sidebar.pinned .sidebar-toggle svg { transform: rotate(180deg); }

.sidebar .brand { padding: 4px 0 18px; justify-content: center; }
.sidebar .brand h1 { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width .22s, opacity .22s; }
.sidebar:hover .brand h1,
.sidebar.pinned .brand h1 { max-width: 140px; opacity: 1; margin-left: 4px; }
.sidebar .nav { width: 100%; }
.sidebar .nav-item { justify-content: center; padding: 12px; gap: 0; }
.sidebar .nav-item span { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width .22s, opacity .22s; }
.sidebar:hover .nav-item,
.sidebar.pinned .nav-item { justify-content: flex-start; padding: 12px 13px; gap: 12px; }
.sidebar:hover .nav-item span,
.sidebar.pinned .nav-item span { max-width: 140px; opacity: 1; }
.sidebar .nav-item.active::before { left: 2px; }
.sidebar:hover .nav-item.active::before,
.sidebar.pinned .nav-item.active::before { left: 0; }
.sidebar .sync { display: none; }
.sidebar:hover .sync,
.sidebar.pinned .sync { display: block; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 12px 18px; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #7fb1ec);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px;
  box-shadow: 0 4px 12px rgba(74, 144, 226, .35);
}
.brand h1 { font-size: 16px; font-weight: 600; letter-spacing: .3px; }
.brand .brand-sub { font-size: 11px; color: var(--text-3); font-weight: 400; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 13px;
  border-radius: var(--radius-sm); color: var(--text-2); cursor: pointer;
  font-size: 14px; user-select: none; transition: background .15s, color .15s, transform .1s;
  position: relative;
}
.nav-item:hover { background: var(--surface-2); }
.nav-item:active { transform: scale(.98); }
.nav-item.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px;
  width: 3.5px; border-radius: 3px; background: var(--primary);
}
.nav-item .ico { width: 20px; height: 20px; flex: none; }
.nav-item span { line-height: 1; }
.spacer { flex: 1; }
.sync {
  font-size: 12px; color: var(--text-2); padding: 11px 12px;
  background: var(--surface-2); border-radius: var(--radius-sm); text-align: center;
  border: 1px solid var(--border);
}
.sync.on { color: #1f8a4c; background: #e7f6ee; border-color: #c7ead8; }
.sync.warn { color: #c47d00; background: #fff4e0; border-color: #f3e0bf; }
.sync.local { color: #2563b3; background: #eff6ff; border-color: #bfdbfe; }
.sync.offline { color: #777; background: #f1f2f4; border-color: #e2e4e8; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 62px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 5;
}
.topbar .title { font-size: 18px; font-weight: 600; }
.topbar .date { color: var(--text-2); font-size: 13px; }
.view { padding: 24px; overflow: auto; flex: 1; max-width: 1100px; width: 100%; margin: 0 auto; }

.bottom-nav { display: none; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, #4a90e2 0%, #6aa9ec 55%, #8fc0f2 100%);
  color: #fff; border-radius: var(--radius); padding: 26px 26px 24px; margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(74, 144, 226, .28); position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%);
}
.hero-greet { font-size: 24px; font-weight: 700; letter-spacing: .5px; }
.hero-date { font-size: 14px; opacity: .92; margin-top: 4px; }
.hero-sub { font-size: 13px; opacity: .9; margin-top: 12px; }

/* ---------- components ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card h2 {
  font-size: 15px; margin-bottom: 15px; display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}
.card h2 .sub { font-size: 12px; color: var(--text-3); font-weight: 400; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 880px) { .grid-2 { grid-template-columns: 1fr; } }

.btn {
  border: none; background: var(--primary); color: #fff; padding: 10px 18px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; transition: filter .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 4px 12px rgba(74, 144, 226, .25);
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--primary-soft); color: var(--primary-dark); box-shadow: none; }
.btn.line { background: transparent; border: 1px solid var(--border); color: var(--text-2); box-shadow: none; }
.btn.danger { background: #fdecec; color: var(--red); box-shadow: none; }
.btn.sm { padding: 7px 13px; font-size: 13px; }

.input, .select, textarea.input {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 13px;
  background: var(--surface); color: var(--text); outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; color: var(--text-2); }

.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px;
  border-radius: 999px; font-size: 12px; background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border); cursor: pointer; user-select: none; transition: .15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.empty { color: var(--text-3); font-size: 13px; text-align: center; padding: 22px 0; }

/* list items */
.item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  margin-bottom: 9px; transition: box-shadow .15s, transform .1s;
}
.item:hover { box-shadow: var(--shadow-sm); }
.item .body { flex: 1; min-width: 0; }
.item .ttl { font-size: 14px; }
.item .meta { font-size: 12px; color: var(--text-3); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.item.done .ttl { text-decoration: line-through; color: var(--text-3); }
.item .del { color: var(--text-3); background: none; border: none; font-size: 18px; line-height: 1; padding: 2px 6px; }
.item .del:hover { color: var(--red); }

.check {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--border);
  flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--surface); cursor: pointer; transition: .15s;
}
.check:hover { border-color: var(--green); }
.check.on { background: var(--green); border-color: var(--green); }
.check.on::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }

.tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 500; }
.tag.xhs { background: var(--accent-soft); color: var(--accent); }

/* calendar */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-modes { display: flex; gap: 6px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.select.sm { width: auto; padding: 6px 8px; font-size: 13px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 600px; }
.cal-dow { text-align: center; font-size: 12px; color: var(--text-3); padding: 4px 0; font-weight: 500; }
.cal-cell {
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-height: 46px; padding: 6px 0; cursor: pointer; position: relative; transition: .15s;
}
.cal-cell:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cal-cell.muted { background: var(--surface-2); color: var(--text-3); }
.cal-cell.weekend { background: #f7faff; }
.cal-cell.today { background: var(--primary-soft); border-color: var(--primary); font-weight: 700; color: var(--primary-dark); }
.cal-cell.sel { background: var(--primary); color: #fff; border-color: var(--primary); }
.cal-cell .d { font-size: 13px; }
.cal-cell .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 5px; }
.cal-cell.sel .dot { background: #fff; }
.cal-cell.today .dot { background: var(--primary); }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cal-month-title { font-size: 13px; color: var(--text-2); margin-bottom: 8px; font-weight: 600; }
.cal-range { font-size: 13px; color: var(--text-2); margin-bottom: 10px; font-weight: 500; }

.day-panel { margin-top: 18px; }
.day-panel .dp-title { font-size: 14px; margin-bottom: 12px; color: var(--text-2); font-weight: 500; }

/* habits */
.habit { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 11px; background: var(--surface); transition: box-shadow .15s; }
.habit:hover { box-shadow: var(--shadow-sm); }
.habit .name { flex: 1; font-size: 14px; font-weight: 500; }
.habit .streak { font-size: 12px; color: var(--amber); font-weight: 700; }
.habit .fire { color: var(--accent); }
.habit .toggle {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  padding: 7px 15px; font-size: 13px; color: var(--text-2); transition: .15s;
}
.habit .toggle:hover { border-color: var(--green); color: var(--green); }
.habit .toggle.on { background: var(--green); color: #fff; border-color: var(--green); }

/* xhs cards */
.xhs-card { border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 11px; background: var(--surface); transition: box-shadow .15s; }
.xhs-card:hover { box-shadow: var(--shadow-sm); }
.xhs-card .k { font-size: 11px; color: var(--accent); font-weight: 700; margin-bottom: 5px; letter-spacing: .3px; }
.xhs-card .t { font-size: 14px; line-height: 1.45; }
.src-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ===== 练习模块 ===== */
.practice-head { background: linear-gradient(120deg, #eaf2ff, #f3eaff); border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.ph-day { font-size: 12px; color: var(--primary-dark); font-weight: 600; }
.ph-title { font-size: 18px; font-weight: 700; color: var(--text-1); margin-top: 4px; line-height: 1.4; }
.ph-source { display: inline-block; font-size: 12px; font-weight: 600; color: var(--primary-dark); background: var(--primary-soft); border: 1px solid var(--primary); border-radius: 999px; padding: 3px 10px; margin-top: 8px; }
.practice-brief { font-size: 14px; color: var(--text-2); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; line-height: 1.7; }
.practice-hint { font-size: 13px; color: var(--text-2); margin-top: 10px; line-height: 1.7; }

/* 给定材料（按分论点维度分组） */
.mat-wrap { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: linear-gradient(180deg,#fffdf7,#fbf7ee); }
.mat-h { font-size: 13px; font-weight: 700; color: var(--text-1); margin-bottom: 10px; }
.mat-group { margin-bottom: 10px; }
.mat-group:last-child { margin-bottom: 0; }
.mat-gtitle { font-size: 12.5px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.mat-item { font-size: 13px; color: var(--text-1); line-height: 1.7; background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--primary-soft); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.mat-item:last-child { margin-bottom: 0; }
.mat-link-row { margin-top: 14px; }

/* 材料详情页：左材料右题目 */
.materials-layout { display: flex; gap: 16px; align-items: stretch; height: calc(100vh - 110px); overflow: hidden; }
.materials-col { flex: 1 1 65%; min-width: 0; height: 100%; overflow-y: auto; padding-right: 6px; }
.topic-col { flex: 0 0 360px; min-width: 0; height: 100%; overflow-y: auto; padding-right: 4px; }
@media (max-width: 860px) {
  .materials-layout { flex-direction: column; height: calc(100vh - 154px); }
  .materials-col, .topic-col { flex: 1 1 auto; width: 100%; height: 50%; }
}
.mt-write-group { margin-bottom: 18px; }
.mt-write-group:last-child { margin-bottom: 0; }
.mt-write-group h3 { font-size: 15px; font-weight: 700; color: var(--text-1); margin: 0 0 10px; }
.mt-hint { font-size: 13px; color: var(--text-2); background: linear-gradient(180deg,#f3f8ff,#eef4ff); border: 1px solid var(--primary-soft); border-left: 4px solid var(--primary); border-radius: 10px; padding: 10px 12px; line-height: 1.75; margin-bottom: 10px; }
.mt-hint b { color: var(--primary-dark); }
.mt-hint pre { white-space: pre-wrap; word-break: break-word; margin: 6px 0 0; font-family: inherit; font-size: 13px; color: var(--text-1); background: #fff; border: 1px dashed var(--border); border-radius: 8px; padding: 8px 10px; }
.mt-vocab { margin-bottom: 10px; }
.mt-vocab-name { font-size: 12px; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.mt-vocab-note { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.full-mat { margin-bottom: 16px; }
.full-mat:last-child { margin-bottom: 0; }
.full-mat-title { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px dashed var(--border); }
.full-mat-body { font-size: 14px; color: var(--text-1); line-height: 1.85; }
.full-title { font-size: 14px; color: var(--text-1); line-height: 1.85; }
.mat-today { font-size: 14px; color: var(--primary-dark); font-weight: 700; }
.mat-tpl { display: flex; flex-direction: column; gap: 10px; }
.mat-tpl-item { font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; line-height: 1.7; }
.mat-tpl-item pre { white-space: pre-wrap; word-break: break-word; margin: 6px 0 0; font-family: inherit; font-size: 13px; color: var(--text-1); background: #fff; border: 1px dashed var(--border); border-radius: 8px; padding: 8px 10px; }
.vk-wrap { display: flex; flex-direction: column; gap: 12px; }
.vk-lib-name { font-size: 12.5px; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.practice-method { font-size: 13.5px; color: var(--text-2); background: #f7faff; border-left: 3px solid var(--primary); border-radius: 8px; padding: 10px 12px; line-height: 1.7; }
.practice-vocab { font-size: 13px; color: var(--text-2); margin-top: 12px; }
.vocab-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.vocab-chip { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); cursor: pointer; border: 1px solid transparent; transition: .15s; }
.vocab-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.fld-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-1); margin: 14px 0 6px; }
.ta { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical; box-sizing: border-box; background: var(--surface); color: var(--text-1); }
.ta:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.practice-guide { font-size: 12.5px; color: var(--text-3); background: #fffaf0; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; line-height: 1.6; }
.practice-card-line { font-size: 13px; color: var(--text-2); margin-top: 8px; }
/* 写作提示卡：紧贴输入框上方（写什么 + 怎么写 + 句式） */
.write-hint { background: linear-gradient(180deg,#f3f8ff,#eef4ff); border: 1px solid var(--primary-soft); border-left: 4px solid var(--primary); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.wh-title { font-size: 14px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.wh-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.wh-tpl { font-size: 13px; color: var(--text-1); background: #fff; border: 1px dashed var(--border); border-radius: 8px; padding: 9px 11px; margin-top: 8px; line-height: 1.85; }
.wh-tpl b { color: var(--accent); }
.practice-card-topic { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.report-actions { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.report { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.rp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px dashed var(--border); padding-bottom: 12px; margin-bottom: 12px; }
.rp-title { font-size: 17px; font-weight: 700; color: var(--text-1); }
.rp-sub2 { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.rp-overall { text-align: center; flex: 0 0 auto; }
.rp-num { font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1; }
.rp-star { color: #f5a623; font-size: 14px; margin-top: 2px; }
.rp-dim { margin: 12px 0; }
.rp-dim-top { display: flex; justify-content: space-between; font-size: 14px; }
.rp-name { font-weight: 600; color: var(--text-1); }
.rp-score { color: var(--primary); font-weight: 600; }
.rp-bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 5px 0; }
.rp-bar-fill { height: 100%; background: linear-gradient(90deg, #5aa0ec, var(--primary)); }
.rp-note { font-size: 13px; color: var(--text-2); }
.rp-sub { margin-top: 14px; }
.rp-sub-h { font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.rp-line { font-size: 14px; margin: 4px 0; color: var(--text-2); }
.rp-para { white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: 10px; margin-top: 4px; font-size: 13px; color: var(--text-1); }
.rp-sug { margin-top: 14px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.rp-sug-item { font-size: 13.5px; margin: 4px 0; color: var(--text-2); line-height: 1.6; }
.rp-foot { font-size: 11.5px; color: var(--text-3); margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 10px; }
.essay { white-space: pre-wrap; background: var(--surface-2); border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.9; color: var(--text-1); }

/* 阅读 / 每日阅读 */
.read-progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.read-progress .bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; transition: .3s; }
.read-progress-txt { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.read-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.read-row:last-child { border-bottom: none; }
.read-name { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.read-act { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.freq-tag { font-size: 11px; color: var(--primary-dark); background: var(--primary-soft); padding: 2px 8px; border-radius: 999px; }
.read-row.read { opacity: .62; background: var(--surface-2); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--radius-sm); }
.read-row.read .read-name { text-decoration: line-through; color: var(--text-3); }
.read-done-badge { font-size: 10px; color: #1f8a4c; background: #e7f6ee; border: 1px solid #c7ead8; padding: 1px 7px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.read-mark.line { background: transparent; color: var(--text-3); border: 1px solid var(--border); }
.rt-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; }
.rt-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rt-enable { font-size: 13px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.rt-title { width: 100%; margin-bottom: 8px; }
.rt-row2 { display: flex; gap: 8px; }
.rt-row2 .rt-freq { width: auto; }
.rt-row2 .rt-url { flex: 1; min-width: 0; }
.rt-note { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.rt-links { margin-top: 8px; }
.rt-link-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.rt-link-row .rt-link-tag { width: auto; flex-shrink: 0; }
.rt-link-row .rt-link-title { width: 110px; flex-shrink: 0; }
.rt-link-row .rt-link-url { flex: 1; min-width: 0; }
.rt-link-row .rt-link-del { flex-shrink: 0; }
.rt-link-add { margin-top: 4px; }
/* 自动推送的阅读链接 */
.rt-auto-badge { display: inline-block; font-size: 10px; line-height: 1; padding: 2px 5px; border-radius: 3px; background: linear-gradient(135deg, #6366f1, #818cf8); color: #fff; vertical-align: middle; margin-right: 4px; flex-shrink: 0; }
.rt-links-auto { margin-bottom: 8px; padding: 6px 8px; background: var(--bg-2, #f5f5f5); border-radius: 8px; border: 1px dashed var(--border, #e0e0e0); }
.rt-link-auto { padding: 4px 0; }
.rt-auto-tag { font-size: 11px; color: var(--text-3); background: var(--bg-1, #fff); padding: 1px 6px; border-radius: 3px; border: 1px solid var(--border, #e0e0e0); flex-shrink: 0; }
.rt-auto-title { font-size: 13px; color: var(--text-1); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-auto-open { color: var(--accent, #3b82f6); text-decoration: none; flex-shrink: 0; font-size: 14px; }
.rt-no-url { opacity: .85; cursor: default; }
.read-chip-view { cursor: pointer; display: inline-block; text-decoration: none; background: linear-gradient(180deg,#e3f2fd,#bbdefb); color:#0d47a1; border:1px solid #90caf9; font-weight:600; }
.read-chip-view:hover { background: linear-gradient(180deg,#bbdefb,#90caf9); }
.rt-tag-site, a.chip.rt-tag-site { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.rt-tag-learn, a.chip.rt-tag-learn { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.rt-tag-test, a.chip.rt-tag-test { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.rt-tag-other, a.chip.rt-tag-other { background: var(--surface-2); color: var(--text-2); }
a.chip.read-chip-site, a.chip.read-chip-learn, a.chip.read-chip-test, a.chip.read-chip-other { text-decoration: none; }
a.chip.read-chip-site:hover { background: #e0e7ff; }
a.chip.read-chip-learn:hover { background: #d1fae5; }
a.chip.read-chip-test:hover { background: #ffedd5; }
.note-box { width: 100%; min-height: 72px; resize: vertical; }
/* 阅读项「查看内容」弹窗（iframe 展示资料站图文） */
.read-modal-box { max-width: 980px; width: 94vw; height: 90vh; display: flex; flex-direction: column; }
.read-modal-body { padding: 0; flex: 1; overflow: hidden; }
.read-modal-frame { width: 100%; height: 100%; border: 0; border-radius: 0 0 12px 12px; background: #fff; }

/* exam countdown */
.cd-card {
  text-align: center; color: #fff; border: none;
  background: linear-gradient(135deg, #4a90e2, #6aa9ec);
  padding: 24px 20px; margin-bottom: 20px; border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(74, 144, 226, .28);
}
.cd-card.today { background: linear-gradient(135deg, #ff6b8a, #ff9bb0); box-shadow: 0 12px 30px rgba(255, 107, 138, .28); }
.cd-card.past { background: linear-gradient(135deg, #8a94a6, #aeb6c4); box-shadow: none; }
.cd-card .cd-label { font-size: 14px; opacity: .95; }
.cd-card .cd-num { font-size: 54px; font-weight: 800; line-height: 1.1; margin: 10px 0 4px; }
.cd-card .cd-unit { font-size: 18px; font-weight: 500; margin-left: 6px; }
.cd-card .cd-date { font-size: 12px; opacity: .9; }

/* quick add */
.quick-add { display: flex; gap: 10px; margin-bottom: 20px; }
.quick-add .input { flex: 1; }
.quick-add select { width: 120px; flex: none; }

/* settings */
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border); }
.set-row:last-child { border-bottom: none; }
.set-row > div:first-child { font-size: 14px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: rgba(33, 48, 63, .95); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 780px) {
  .sidebar { display: none; }
  .main { padding-bottom: 66px; }
  .view { padding: 16px; }
  .topbar { padding: 0 16px; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 60px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--border); z-index: 20;
  }
  .bottom-nav .nav-item {
    flex: 1; flex-direction: column; gap: 3px; justify-content: center; padding: 7px 0;
    border-radius: 0; font-size: 11px;
  }
  .bottom-nav .nav-item::before { display: none; }
  .bottom-nav .nav-item .ico { width: 21px; height: 21px; }
  .bottom-nav .nav-item span { line-height: 1; }
  .hero { padding: 22px 20px; }
  .hero-greet { font-size: 21px; }
}

/* 完整作文草稿区（练习页） */
.essay-draft-toggle { font-size: 13px; color: var(--primary); font-weight: 600; cursor: pointer; margin-top: 12px; padding: 8px 0; user-select: none; }
.essay-draft-toggle:hover { opacity: 0.85; }
.essay-draft-box { margin-top: 6px; }

/* 材料详情页写作区 */
.mt-write-hint { font-size: 12.5px; color: var(--text-3); line-height: 1.6; margin-bottom: 10px; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.mt-divider { font-size: 12.5px; color: var(--text-3); margin: 14px 0 8px; padding-top: 10px; border-top: 1px dashed var(--border); font-weight: 600; }
.vk-lib-note { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* 材料详情页输入框在窄栏里更紧凑 */
.topic-col .input,
.topic-col .ta { font-size: 14px; }

/* ===== 热点仿写 ===== */
.hotwrite-head { background: linear-gradient(120deg, #eaf2ff, #f3eaff); border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.hotwrite-label { font-size: 12px; color: var(--primary-dark); font-weight: 600; }
.hotwrite-thesis { font-size: 17px; font-weight: 700; color: var(--text); margin-top: 6px; line-height: 1.55; }
.hw-thesis-label { display: inline-block; background: var(--primary-dark); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; margin-right: 6px; vertical-align: middle; }
.hotwrite-title { font-size: 14px; color: var(--text-1); margin-top: 10px; line-height: 1.7; }
/* 今日一词 + 今日文段 */
.hw-dailyword { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.hw-dw-tag { font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(120deg,#1565c0,#7b4dff); padding: 3px 10px; border-radius: 12px; }
.hw-dw-kw { font-size: 18px; font-weight: 800; color: var(--primary-dark); }
.hw-dw-state { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.hw-dw-state.new { background: #e3f2e5; color: #2e7d32; }
.hw-dw-state.done { background: #e8f0fe; color: #1565c0; }
.hw-dw-state.old { background: #fdeede; color: #b26a00; }
.hw-passage { margin-top: 10px; background: #fff; border: 1px solid var(--primary-soft); border-left: 4px solid var(--accent, #7b4dff); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: var(--text-2); line-height: 1.85; }
.hw-passage-label { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent, #7b4dff); margin-right: 6px; }
.dw-thesis { font-size: 13px; color: var(--text-2); margin-top: 10px; line-height: 1.7; }
.dw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dw-tags .tag { font-size: 11.5px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); border-radius: 10px; padding: 2px 9px; }
/* 每日一词卡片：可折叠四库素材速览 */
.dw-more { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 10px; }
.dw-more > summary.dw-toggle { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--primary-dark); list-style: none; user-select: none; }
.dw-more > summary.dw-toggle::-webkit-details-marker { display: none; }
.dw-more > summary.dw-toggle:hover { color: var(--primary); }
.dw-more-body { margin-top: 10px; }
.dw-more-body .fld-label { font-size: 12.5px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.hotwrite-actions { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.hotwrite-actions .btn:disabled { opacity: .45; cursor: not-allowed; }
.hotwrite-topic { font-size: 14px; color: var(--text-1); line-height: 1.85; background: var(--surface-2); border-radius: 12px; padding: 14px; }
.hotwrite-hint { background: linear-gradient(180deg,#f3f8ff,#eef4ff); border: 1px solid var(--primary-soft); border-left: 4px solid var(--primary); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.hotwrite-hint pre { white-space: pre-wrap; word-break: break-word; margin: 8px 0 0; font-family: inherit; font-size: 13px; color: var(--text-1); background: #fff; border: 1px dashed var(--border); border-radius: 8px; padding: 8px 10px; }
/* 推荐句式：按四库分组 */
.hw-patterns { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hw-lib { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.hw-lib-name { font-size: 12.5px; font-weight: 700; color: var(--primary-dark); margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.hw-lib-name::before { content: ''; width: 4px; height: 13px; border-radius: 2px; background: var(--primary); display: inline-block; }
.hw-pat { font-size: 13px; color: var(--text-1); line-height: 1.78; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.hw-pat:last-child { border-bottom: none; }
.hw-pat.scaffold code { font-family: inherit; display: block; background: #f8fbff; border: 1px dashed #bad7ff; border-radius: 8px; padding: 8px 10px; color: var(--text-1); }
.wh-note { font-size: 12.5px; color: var(--text-2); margin-bottom: 10px; line-height: 1.65; }
@media (max-width: 560px) { .hw-patterns { grid-template-columns: 1fr; } }
/* 热点仿写：左右分栏，左侧提示，右侧作答，独立滚动 */
.hw-layout { display: flex; gap: 18px; height: calc(100vh - 186px); overflow: hidden; }
.hw-left { width: 46%; min-width: 300px; max-width: 540px; overflow-y: auto; padding-right: 2px; display: flex; flex-direction: column; gap: 16px; }
.hw-right { flex: 1; min-width: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.hw-right .ta { min-height: 240px; flex: 1; resize: none; }
.hw-left .card { margin-bottom: 0; }
.hw-left .hw-patterns { grid-template-columns: 1fr; }
@media (max-width: 820px) {
  .hw-layout { flex-direction: column; height: auto; overflow: visible; }
  .hw-left, .hw-right { width: 100%; max-width: none; height: auto; overflow: visible; }
  .hw-right .ta { min-height: 180px; flex: none; }
}
.hotwrite-report { margin-top: 4px; }
.hotwrite-report .rp-sub-h { font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.hotwrite-report .rp-line { font-size: 13.5px; color: var(--text-2); margin: 4px 0; line-height: 1.65; }
.hotwrite-report .rp-para { white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: 10px; margin-top: 4px; font-size: 13px; color: var(--text-1); line-height: 1.8; }
.hotwrite-report .rp-issue { background: #fff8f0; border: 1px solid #f3e0bf; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.hotwrite-report .rp-issue-word { font-weight: 700; color: var(--amber); }
.hotwrite-report .rp-issue-sug { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.hotwrite-report .rp-vocab { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hot-empty { color: var(--text-3); font-size: 13px; padding: 8px 0; }

/* 优化改写对照 */
.rp-chg { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--surface-2); border-radius: 8px; margin-bottom: 6px; font-size: 13px; }
.rp-chg-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.rp-chg-up { background: #e8f5e9; color: #2e7d32; }
.rp-chg-tail { background: #e3f2fd; color: #1565c0; }
.rp-chg-fix { background: #fff3e0; color: #e65100; }
.rp-chg-from { color: var(--text-3); text-decoration: line-through; }
.rp-chg-arrow { color: var(--text-3); font-size: 12px; }
.rp-chg-to { color: var(--text-1); font-weight: 600; }
.rp-opt-box { margin-top: 10px; border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; background: #f6fbff; }
.rp-opt-label { font-size: 12px; color: var(--blue, #1565c0); font-weight: 700; margin-bottom: 6px; }
.rp-opt-text { background: #fff !important; border: 1px solid #d0e3f5; }

/* AI 精批 */
.rp-ai-section { margin-top: 14px; border: 1px solid #d0e3f5; border-radius: 12px; padding: 14px 16px; background: linear-gradient(135deg, #f6fbff 0%, #f0f7ff 100%); }
.rp-ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rp-ai-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; background: #1565c0; color: #fff; font-size: 11px; font-weight: 700; }
.rp-ai-title { font-weight: 700; color: var(--text-1); font-size: 14px; }
.rp-ai-body { font-size: 13.5px; color: var(--text-2); line-height: 1.8; white-space: pre-wrap; }
.rp-ai-body strong { color: var(--text-1); }
.rp-ai-loading { display: flex; align-items: center; gap: 10px; padding: 20px; color: var(--text-3); font-size: 13px; }
.rp-ai-spinner { width: 18px; height: 18px; border: 2px solid #cfd8dc; border-top-color: #1565c0; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rp-ai-error { color: #c62828; background: #ffebee; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
/* AI 精批结构化卡片 */
.rp-ai-block { margin-top: 12px; }
.rp-ai-block-h { font-weight: 700; color: var(--text-1); font-size: 13.5px; margin-bottom: 6px; padding-left: 8px; border-left: 3px solid var(--accent, #7b4dff); }
.rp-ai-sentence { background: #fff; border: 1px solid #e3eef8; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.rp-ai-row { display: flex; gap: 8px; font-size: 13px; line-height: 1.7; padding: 2px 0; }
.rp-ai-k { flex: 0 0 56px; color: var(--text-3); font-weight: 600; }
.rp-ai-v { flex: 1; color: var(--text-2); }
.rp-ai-up { font-weight: 700; }
.rp-ai-up .hl-block { display: inline-block; width: 100%; background: linear-gradient(180deg, #fff4d6 0%, #ffe8a8 100%); border: 1px solid #e6a100; color: #5a3d00; padding: 8px 10px; border-radius: 8px; box-shadow: 0 2px 5px rgba(230, 161, 0, .18); line-height: 1.8; }
.rp-ai-why { color: var(--text-3); font-size: 12.5px; }
.rp-ai-scores { background: #fff; border: 1px solid #e3eef8; border-radius: 10px; padding: 10px 12px; }
.rp-ai-total { margin-top: 8px; font-weight: 800; color: var(--primary-dark); text-align: right; }
.rp-ai-list { margin: 4px 0; padding-left: 20px; }
.rp-ai-list li { font-size: 13px; line-height: 1.8; color: var(--text-2); }
.rp-ai-advice { background: #eef4ff; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text-2); line-height: 1.8; }

/* 替换/修改处「加深显示」高亮（本地报告 + AI 精批对照共用） */
.hl-replace { background: linear-gradient(180deg, #ffd76e, #ffbf2e); color: #4a2f00; font-weight: 700; padding: 0 4px; border-radius: 4px; box-shadow: inset 0 -1px 0 rgba(138, 90, 0, .28); }

/* 原句中被替换/删除处 */
.hl-del { background: #ffebee; color: #c62828; text-decoration: line-through; padding: 0 3px; border-radius: 3px; font-weight: 600; }

/* AI 精批：单句逻辑 / 整体逻辑 / 对照段 */
.rp-ai-logic { background: #f3f7ff; border-left: 3px solid var(--primary); border-radius: 8px; padding: 8px 10px; font-size: 13px; color: var(--text-2); line-height: 1.8; }
.rp-ai-hl { white-space: pre-wrap; background: #fff; border: 1px solid #e3eef8; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: var(--text-1); line-height: 1.9; }

/* AI 精批 / 本地报告：今日背诵清单 */
.rp-memo { background: #fffaf0; border: 1px solid #ffe3b3; border-radius: 10px; padding: 10px 12px; }
.rp-memo-h { font-size: 12.5px; font-weight: 700; color: var(--accent, #7b4dff); margin: 6px 0 4px; }
.rp-memo-h:first-child { margin-top: 0; }
.rp-memo-vocab { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-memo-vocab .vocab-chip { background: #fff3e0; color: #b26a00; border-color: #ffd9a0; }
.rp-memo-pat { display: flex; flex-direction: column; gap: 6px; }
.rp-memo-pat-item { background: #fff; border: 1px solid #ffe3b3; border-radius: 8px; padding: 7px 10px; font-size: 13px; color: var(--text-1); line-height: 1.7; }
.rp-memo-tip { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.rp-memo-note { font-size: 12.5px; color: #7a4d00; background: #fff7e0; border: 1px solid #ffe3b3; border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; line-height: 1.7; }

/* ===== 大作文 AI 批改：顶部（分类 / 划档 / 总分） ===== */
.eg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: linear-gradient(135deg, #eef4ff 0%, #f3f8ff 100%); border: 1px solid #d0e3f5; border-radius: 12px; padding: 12px 14px; margin-bottom: 4px; }
.eg-category { font-size: 13px; color: var(--text-2); line-height: 1.7; flex: 1 1 100%; }
.eg-category b { color: var(--text-1); }
.eg-tier { display: flex; align-items: center; gap: 8px; }
.eg-tier-badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-weight: 800; font-size: 13px; color: #fff; background: #1565c0; }
.eg-tier-badge[data-tier="一类文"] { background: #2e7d32; }
.eg-tier-badge[data-tier="二类文"] { background: #1565c0; }
.eg-tier-badge[data-tier="三类文"] { background: #ef6c00; }
.eg-tier-badge[data-tier="四类文"] { background: #c62828; }
.eg-tier-reason { font-size: 12.5px; color: var(--text-3); }
.eg-total { margin-left: auto; font-size: 14px; color: var(--text-1); }
.eg-total b { font-size: 22px; color: #1565c0; margin: 0 2px; }
.eg-total { background: #fff; border: 1px solid #e3eef8; border-radius: 10px; padding: 6px 12px; }
.eg-analysis { flex: 1 1 100%; background: #fff; border: 1px solid #e3eef8; border-radius: 10px; padding: 10px 12px; }
.eg-analysis .rp-ai-block-h { margin-top: 0; }
.eg-analysis-row { font-size: 13px; color: var(--text-2); line-height: 1.8; margin-top: 4px; }
.eg-analysis-row b { color: var(--text-1); }
.eg-analysis-basis { font-size: 12.5px; color: var(--text-3); margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e3eef8; line-height: 1.7; }

/* ===== 大作文 AI 批改：逻辑问题诊断 ===== */
.eg-logic { display: flex; flex-direction: column; gap: 10px; }
.eg-logic-item { background: #fff; border: 1px solid #f3d6d6; border-left: 3px solid #c62828; border-radius: 10px; padding: 10px 12px; }
.eg-logic-where { font-size: 13px; color: #c62828; font-weight: 700; margin-bottom: 4px; }
.eg-logic-what { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 4px; }
.eg-logic-fix { font-size: 13px; line-height: 1.7; }
.eg-logic-fix b { color: #1565c0; }

/* ===== 大作文批改历史列表 ===== */
.eg-hist-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.eg-hist-list { display: flex; flex-direction: column; gap: 8px; }
.eg-hist-item { border: 1px solid #e8eef5; border-radius: 10px; overflow: hidden; }
.eg-hist-item-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; transition: background .15s; }
.eg-hist-item-head:hover { background: #f5f8fc; }
.eg-hist-date { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.eg-hist-title { font-size: 13px; color: var(--text-1); font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eg-hist-score { font-size: 14px; font-weight: 800; color: #1565c0; white-space: nowrap; }
.eg-hist-toggle { font-size: 14px; color: var(--text-3); }
.eg-tier-badge.sm { font-size: 11px; padding: 2px 8px; }
.eg-hist-detail { padding: 0 14px 14px; border-top: 1px solid #f0f3f7; }
.eg-hist-excerpt { font-size: 12.5px; color: var(--text-3); line-height: 1.7; margin: 10px 0 8px; padding: 8px 10px; background: #f8fafe; border-radius: 8px; }
.eg-hist-report { margin: 8px 0; }
.eg-hist-actions { display: flex; gap: 8px; margin-top: 8px; }

/* 整段加深显示（让用户一眼看到"改了什么"） */
.hl-block { background: linear-gradient(180deg, #fff8df 0%, #fff0bf 100%); border-left: 3px solid #e6a100; border-radius: 6px; padding: 2px 8px; display: inline; }

/* 句间衔接诊断 */
.rp-flow { display: flex; flex-direction: column; gap: 10px; }
.rp-flow-item { background: #fff; border: 1px solid #e3eef8; border-left: 3px solid #1565c0; border-radius: 10px; padding: 10px 12px; }
.rp-flow-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.rp-flow-from, .rp-flow-to { font-size: 12.5px; color: var(--text-1); background: #f3f7ff; border-radius: 6px; padding: 2px 8px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-flow-to { background: #fffaf0; color: #7a4d00; }
.rp-flow-arrow { color: #1565c0; font-weight: 700; }
.rp-flow-row { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.7; margin-top: 4px; }
.rp-flow-k { flex: 0 0 44px; color: var(--text-3); font-weight: 600; }
.rp-flow-v { color: var(--text-2); flex: 1; }
.rp-flow-fix { color: #1565c0; font-weight: 500; }

/* AI 精批：核心问题 / 升华建议的具体例子 */
.rp-ai-prob-issue { font-weight: 600; color: var(--text-1); }
.rp-ai-prob-example { margin-top: 4px; padding: 6px 10px; background: #f3f7ff; border-left: 3px solid #1565c0; border-radius: 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.rp-ai-prob-example b { color: #1565c0; }
.rp-ai-advice-point { font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.rp-ai-advice-example { margin-bottom: 6px; padding: 6px 10px; background: #fff8e1; border-left: 3px solid #f9a825; border-radius: 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.rp-ai-advice-example b { color: #e65100; }
.rp-ai-advice-next { font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.rp-ai-advice-next b { color: var(--text-1); }

/* 改写处高亮再强化 */
.hl-block .hl-replace { background: linear-gradient(180deg, #ffb74d, #ff9800); color: #4a2600; font-weight: 800; border-bottom: 2px solid #e65100; }

/* 练习历史面板 */
.hoth-count { font-size: 12px; color: var(--text-3); margin-left: auto; align-self: center; }
.hoth-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.hoth-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.hoth-item-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; user-select: none; }
.hoth-item-head:hover { background: var(--surface-2); }
.hoth-date { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.hoth-kw { font-weight: 700; color: var(--primary-dark); font-size: 14px; }
.hoth-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #e8f0fe; color: #1565c0; font-weight: 600; }
.hoth-badge.ai { background: #f1e9ff; color: #7b4dff; }
.hoth-toggle { margin-left: auto; color: var(--text-3); font-size: 12px; }
.hoth-detail { padding: 0 14px 14px; border-top: 1px dashed var(--border); }
.hoth-sub { margin-top: 10px; font-size: 13px; color: var(--text-2); line-height: 1.8; }
.hoth-sub b { color: var(--text-1); }

/* 工作建议 */
.wa-card { background: linear-gradient(135deg, #f8fbff 0%, #f4f7ff 100%); border: 1px solid #d8e4f5; }
.wa-summary { font-size: 13.5px; color: var(--text-2); margin-bottom: 10px; line-height: 1.6; }
.wa-list { display: flex; flex-direction: column; gap: 6px; }
.wa-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.7); border: 1px solid var(--border); font-size: 13.5px; line-height: 1.6; }
.wa-item.wa-high { border-left: 3px solid #e53935; background: rgba(255,235,238,.5); }
.wa-item.wa-done { border-left: 3px solid #43a047; background: rgba(232,245,233,.5); opacity: .75; }
.wa-icon { flex: 0 0 auto; font-size: 16px; line-height: 1; }
.wa-text { flex: 1; color: var(--text-1); }
.wa-high .wa-text { color: #c62828; font-weight: 500; }
.wa-done .wa-text { color: var(--text-2); }
.wa-foot { font-size: 11px; color: var(--text-3); text-align: right; margin-top: 8px; }

/* ===== 首页新布局 v14 ===== */
/* Hero 更醒目的渐变 + 装饰 */
.hero-vibrant {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 45%, #7c3aed 100%);
  color: #fff; border-radius: var(--radius); padding: 28px 26px 24px; margin-bottom: 20px;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .32), 0 4px 12px rgba(79, 70, 229, .18);
  position: relative; overflow: hidden;
}
.hero-vibrant::before {
  content: ""; position: absolute; left: -30px; top: -30px; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,.25), transparent 70%); border-radius: 50%;
}
.hero-vibrant::after {
  content: ""; position: absolute; right: -20px; bottom: -40px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); border-radius: 50%;
}
.hero-vibrant .hero-greet { font-size: 26px; font-weight: 800; letter-spacing: .5px; text-shadow: 0 2px 8px rgba(0,0,0,.12); }
.hero-vibrant .hero-date { font-size: 14px; opacity: .95; margin-top: 5px; font-weight: 500; }
.hero-vibrant .hero-sub { font-size: 13.5px; opacity: .92; margin-top: 12px; }
.hero-deco {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.hero-deco::before { content: "✨"; }

/* 首页主内容两栏：左侧主内容 + 右侧边栏 */
.today-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start;
}
.today-main { min-width: 0; }
.today-side {
  position: sticky; top: 74px;
  display: flex; flex-direction: column; gap: 18px;
}
.today-side .side-card { margin-bottom: 0; }
.today-side .side-card .item { padding: 10px 12px; }
.today-side .side-card .item .ttl { font-size: 13.5px; }

/* 个人能力雷达图 */
.ability-card { background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%); }
.ability-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ability-chart { flex: 0 0 auto; }
.ability-info { flex: 1; min-width: 160px; }
.ability-radar { width: 260px; height: 190px; }
.ability-avg { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.ability-avg-num { font-size: 34px; font-weight: 800; color: var(--primary); line-height: 1; }
.ability-avg-label { font-size: 12px; color: var(--text-3); }
.ability-tag { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ab-tag {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.ab-tag.strong { background: #e8f5e9; color: #2e7d32; }
.ab-tag.weak { background: #ffebee; color: #c62828; }
.ability-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; }
.ab-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); }
.ab-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
.ab-name { flex: 1; }
.ab-score { font-weight: 700; color: var(--primary); }

@media (max-width: 900px) {
  .today-layout { grid-template-columns: 1fr; }
  .today-side {
    position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  }
  .today-side .side-card { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .today-side { grid-template-columns: 1fr; }
  .ability-radar { width: 100%; height: auto; }
  .ability-wrap { flex-direction: column; align-items: stretch; }
  .hero-vibrant .hero-greet { font-size: 22px; }
  .hero-deco { display: none; }
}

/* ===== 首页新布局 v15 ===== */
/* 顶部紧凑问候条 */
.hero-compact {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 45%, #7c3aed 100%);
  color: #fff; border-radius: var(--radius); padding: 12px 18px; margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .22);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.hero-compact .hero-main {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.hero-compact .hero-greet { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.hero-compact .hero-date { font-size: 13px; opacity: .9; }

/* 顶部日程+待办双栏 */
.today-top-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.today-top-row .top-card { margin-bottom: 0; }
.today-top-row .top-card .item { padding: 8px 10px; }
.today-top-row .top-card .item .ttl { font-size: 13px; }

/* 工作建议 - 紧凑模式 */
.wa-card.wa-short .wa-list { gap: 5px; }
.wa-card.wa-short .wa-item { padding: 8px 10px; font-size: 13px; }
.wa-card.wa-short .wa-icon { font-size: 15px; }
.wa-more-btn {
  width: 100%; margin-top: 10px; padding: 9px 12px; border-radius: 10px;
  border: 1px dashed #9fb8e0; background: rgba(59,130,246,.06); color: #3b82f6;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s;
}
.wa-more-btn:hover { background: rgba(59,130,246,.12); }

/* 工作建议弹窗 */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(2px);
}
.modal-box {
  background: #fff; border-radius: 18px; width: 100%; max-width: 640px;
  max-height: calc(100vh - 40px); box-shadow: 0 24px 60px rgba(0,0,0,.22);
  display: flex; flex-direction: column;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--border);
}
.modal-head h2 { font-size: 17px; margin: 0; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%; border: none; background: #f1f5f9;
  color: #64748b; font-size: 22px; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: #e2e8f0; color: #334155; }
.modal-body { padding: 16px 20px 20px; overflow-y: auto; }
.modal-body .wa-summary { margin-bottom: 12px; }
.modal-body .wa-list { gap: 8px; }
.modal-body .wa-item { padding: 10px 12px; }

/* 网站反馈分析占位卡片 */
.wa-site-card { background: linear-gradient(135deg, #f6f9ff 0%, #ffffff 100%); }
.wa-site-card h2 { display: flex; align-items: center; gap: 8px; }
.badge-soon {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: #e0e7ff; color: #4f46e5;
}
.site-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 8px 0 12px; }
.site-features { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.site-ft {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 8px; border-radius: 10px; background: #f8fafc;
  border: 1px solid var(--border); font-size: 12px; color: var(--text-2);
  text-align: center;
}
.site-ft-icon { font-size: 18px; }

@media (max-width: 900px) {
  .today-top-row { grid-template-columns: 1fr; }
  .today-layout { grid-template-columns: 1fr; }
  .today-side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .site-features { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .today-top-row { grid-template-columns: 1fr; }
  .today-side { grid-template-columns: 1fr; }
  .hero-compact { flex-wrap: wrap; padding: 10px 14px; }
  .hero-compact .hero-main { flex-direction: column; gap: 2px; }
  .hero-compact .hero-date { font-size: 12px; }
  .modal-box { max-height: calc(100vh - 24px); }
}

/* ===== 仿写句式/词汇 可点击 + 二级详情弹窗 v17 ===== */
.hw-pat.clickable { cursor: pointer; transition: .15s; }
.hw-pat.clickable:hover { border-color: #3b82f6; background: #f5f9ff; }
.hw-pat .hw-pat-go { display: block; margin-top: 6px; font-size: 11px; color: #3b82f6; font-weight: 600; }
.vocab-chip.clickable { cursor: pointer; transition: .15s; }
.vocab-chip.clickable:hover { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.dw-tip, .mt-vocab-note { font-size: 12px; color: var(--text-2); margin-top: 8px; }
.dw-tip { padding: 8px 10px; background: #f8fafc; border-radius: 8px; border: 1px dashed var(--border); }

.pd-badge { display: inline-block; font-size: 12px; font-weight: 600; color: #4f46e5; background: #eef2ff; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.pd-section { margin-bottom: 14px; }
.pd-label { font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.pd-empty { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.7; color: #334155; white-space: pre-wrap; margin: 0; }
.pd-full { background: linear-gradient(135deg,#eef2ff,#f5f3ff); border: 1px solid #c7d2fe; border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.8; color: #1e293b; }
.pd-text { font-size: 13px; line-height: 1.8; color: #334155; background: #f8fafc; border-radius: 10px; padding: 10px 12px; border: 1px solid var(--border); }
.pd-memo { font-size: 13px; line-height: 1.7; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.pd-tip { font-size: 12px; line-height: 1.7; color: #475569; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; margin-top: 4px; }
.vd-word { font-size: 24px; font-weight: 800; color: #1e293b; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid #eef2ff; }

/* ===== 首页「每日一词」卡片标题栏操作区 + 学习按钮 ===== */
.dw-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.hw-card-actions { display: flex; align-items: center; gap: 8px; }
/* 复用 .chip 外观，但这是 <button>，需重置默认按钮样式 */
button.chip { font-family: inherit; cursor: pointer; }
button.chip.chip-learn {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  color: #4338ca;
  border: 1px solid #c7d2fe;
  font-weight: 600;
}
button.chip.chip-learn:hover { background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%); border-color: #818cf8; color: #3730a3; }

/* ===== 学习今日词汇和句式（独立学习页） ===== */
.learn-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.learn-title { font-size: 19px; font-weight: 800; color: var(--primary-dark); }
.learn-topic {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 18px;
}
.learn-section { margin-bottom: 22px; }
.learn-section > h2 {
  font-size: 16px; font-weight: 700; color: var(--text-1);
  margin: 0 0 12px; padding-left: 12px; border-left: 4px solid var(--primary);
}
.learn-block {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 14px;
}
.learn-lib-name {
  font-size: 14px; font-weight: 700; color: var(--primary-dark);
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--border);
}
/* 句式卡片 */
.learn-pat { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.learn-pat:last-child { border-bottom: none; }
.learn-pat-no {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.learn-pat-body { flex: 1; min-width: 0; }
.learn-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 7px; }
.learn-row code {
  flex: 1; font-family: inherit; font-size: 13.5px; line-height: 1.8;
  color: var(--text-1); background: #f8fbff; border: 1px solid #e3efff;
  border-radius: 8px; padding: 7px 10px;
}
.learn-tag {
  flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 6px; white-space: nowrap; margin-top: 2px;
}
.learn-tag.empty { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.learn-tag.full { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.learn-tag.ex { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.learn-meta { font-size: 12.5px; line-height: 1.7; color: var(--text-2); margin-top: 2px; }
.learn-meta b { color: var(--text-1); }
.learn-memo {
  font-size: 12.5px; font-weight: 600; line-height: 1.7; color: #047857;
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 8px;
  padding: 7px 10px; margin-top: 6px;
}
/* 词汇卡片 */
.learn-vocab { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.learn-vocab:last-child { border-bottom: none; }
.learn-vocab-w { font-size: 15px; font-weight: 800; color: var(--primary-dark); margin-bottom: 4px; }
.learn-vocab-ex { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.learn-vocab-ex code, .learn-vocab-ex { font-size: 13px; line-height: 1.7; color: var(--text-1); }
.learn-vocab-ex > .learn-tag { margin-top: 1px; }

@media (max-width: 640px) {
  .learn-row { flex-direction: column; gap: 4px; }
  .learn-tag { align-self: flex-start; }
}

/* ===== 逻辑与写作 ===== */
.lg-hero { background: linear-gradient(135deg, #eaf2fd, #f6faff); border-left: 4px solid #3b82d9; }
.lg-hero-title { font-size: 18px; font-weight: 700; color: #1f3a5f; margin-bottom: 6px; }
.lg-hero-gang { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 8px; }
.lg-rules { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); }
.lg-rules b { color: #27496b; }
.lg-rules span { display: block; padding-left: 6px; border-left: 2px solid #cfe0f5; }
.lg-sec-head { font-size: 15px; font-weight: 700; color: #1f3a5f; margin: 2px 0 10px; }
.lg-toc { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.lg-toc-item { color: #3b82d9; text-decoration: none; background: #eaf2fd; padding: 4px 10px; border-radius: 20px; }
.lg-toc-item:hover { background: #d7e8fb; }
.lg-daily { margin-bottom: 6px; }
.lg-daily-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lg-daily-topic { font-size: 12px; color: #27496b; background: #eaf2fd; padding: 2px 8px; border-radius: 12px; }
.lg-piece { background: #f6faff; border: 1px solid #e3eefb; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.lg-piece-h { font-size: 12px; font-weight: 600; color: #3b6db5; margin-bottom: 3px; }
.lg-piece-b { font-size: 13px; color: var(--text-1); line-height: 1.7; white-space: pre-wrap; }
.lg-ex { border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 12px; margin-top: 12px; background: #fff; }
.lg-ex-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.lg-ex-title { font-weight: 700; color: #1f3a5f; font-size: 14px; }
.lg-problem { font-size: 13px; color: var(--text-1); line-height: 1.7; background: #f9fbfe; border-radius: 8px; padding: 8px 10px; }
.lg-hint { font-size: 12px; color: var(--text-3); line-height: 1.6; margin: 6px 0; }
.lg-mat { margin: 8px 0; }
.lg-mat-h { font-size: 12px; font-weight: 600; color: #3b6db5; }
.lg-mat-body { font-size: 13px; color: var(--text-1); line-height: 1.7; background: #fffbe9; border-left: 3px solid #f3c14b; padding: 6px 10px; border-radius: 6px; white-space: pre-wrap; }
.lg-mat-src { font-size: 12px; color: var(--text-3); margin-top: 4px; text-align: right; opacity: 0.85; }
.lg-ta { width: 100%; box-sizing: border-box; margin-top: 6px; }
.lg-saved { margin-left: 8px; }
.lg-rep { margin-top: 10px; }
.lg-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.lg-stat { background: #f6faff; border: 1px solid #e3eefb; border-radius: 10px; padding: 10px 14px; text-align: center; min-width: 72px; }
.lg-stat-n { font-size: 22px; font-weight: 800; color: #3b82d9; }
.lg-stat-l { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.lg-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.lg-type-row { font-size: 13px; color: var(--text-2); margin: 6px 0; }
.lg-man details { border: 1px solid #eef2f7; border-radius: 8px; margin-bottom: 8px; padding: 0 10px; background: #fff; }
.lg-man summary { cursor: pointer; font-weight: 700; color: #1f3a5f; padding: 8px 0; }
.lg-man-b { font-size: 13px; color: var(--text-1); line-height: 1.8; padding: 0 2px 10px; }
.lg-man-b p { margin: 6px 0; }
.lg-tb { width: 100%; border-collapse: collapse; font-size: 12px; margin: 6px 0; }
.lg-tb th, .lg-tb td { border: 1px solid #e3eefb; padding: 6px 8px; text-align: left; vertical-align: top; }
.lg-tb th { background: #eaf2fd; color: #27496b; }
.lg-hist-item { border: 1px solid #eef2f7; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; cursor: pointer; }
.lg-hist-item:hover { background: #f6faff; }
.lg-hist-top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lg-hist-ex { font-weight: 600; color: #1f3a5f; }
.lg-hist-score { color: #3b82d9; font-size: 12px; }
.lg-hist-date { margin-left: auto; color: var(--text-3); font-size: 12px; }
.lg-hist-sum { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.lg-hist-detail { margin-top: 8px; }
.lg-check { margin: 4px 0; }
.lg-check-item { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #eef2f7; }
.lg-check-ok { font-weight: 800; flex: 0 0 auto; }
.lg-check-ok.ok { color: #2e9b5b; }
.lg-check-ok.no { color: #d8543c; }
.lg-check-body { font-size: 13px; color: var(--text-1); line-height: 1.6; }

