/* 考研政治真题 · 版块样式（基础组件复用 /exam/exam.css） */

/* 首页 */
.po-mast .ex-seal { background: #8c2f2a; }
.po-mast .ex-seal::after { content: none; }
.po-set { margin-bottom: 22px; }

/* 试卷页 */
/* 中文题干比英文长，栏宽要给够，否则一行只剩十几个字 */
.q-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 16px;
  align-items: start;
}
.q-list.essay-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }

.q { scroll-margin-top: calc(var(--sb-h, 48px) + 62px); padding: 18px 20px 16px; }
.q-top { margin-bottom: 10px; }
.q.has-pick { border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); }
.q.ok { border-color: var(--green); }
.q-num { font-size: 13px; padding: 1px 8px; }
.q-tag {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--gold); border: 1px solid var(--line); border-radius: 3px;
  padding: 0 6px;
}

/* 题干 / 选项：改回中文无衬线，字号上调 */
.q-stem {
  margin: 0 0 12px;
  font-family: var(--sans); font-size: 17px; font-weight: 400;
  line-height: 1.85; letter-spacing: .01em; color: var(--ink);
}
.opts { margin-top: 4px; gap: 4px; }
.opt {
  gap: 10px; padding: 6px 9px;
  font-family: var(--sans); font-size: 16.5px; line-height: 1.72;
}
.opt .k { font-size: 13px; width: 1.6em; height: 1.6em; margin-top: .18em; }

/* 卡片右上角的小标签：答案 / 答案值 */
.q-ans { font-size: 12px; padding: 1px 8px; }
.q-ansval { font-size: 12px; padding: 1px 7px; }

/* 单题「复制」：把这一题转成纯文本，贴笔记、问 AI 都省事 */
.q-copy {
  appearance: none; cursor: pointer; flex: none;
  padding: 1px 8px; line-height: 1.75;
  font-family: var(--sans); font-size: 12px;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 3px;
  white-space: nowrap;
  transition: color .14s, border-color .14s, background .14s;
}
.q-copy:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.q-copy:disabled { cursor: default; opacity: .6; }
.q-copy.ok {
  color: var(--green); border-color: var(--green);
  background: var(--green-soft);
}
.opt.miss {
  background: color-mix(in srgb, var(--green-soft) 60%, var(--surface));
  outline: 1px dashed var(--green);
}
.opt.miss .k { color: var(--green); border-color: var(--green); }
.opt.wrong { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--red) 55%, transparent); }
.q-multi .opt .k { border-radius: 3px; }

/* 章节头 / 说明文字 */
.sec-head h2 { font-size: 23px; }
.sec-head .lbl,
.sec-head .pts { font-size: 12.5px; }
.direction {
  font-size: 14px; line-height: 1.8;
  padding: 11px 14px; margin-bottom: 20px;
  border-left-width: 3px;
}

/* 分析题 */
.q-essay { padding: 20px 22px 18px; }
.essay-body p {
  margin: 0 0 13px; font-size: 16.5px; line-height: 1.95;
  text-align: justify; text-indent: 1.5em;
}
.essay-body p:last-child { margin-bottom: 0; }
.essay-body p:first-child { text-indent: 0; }

/* 题目底部：提交 / 重做 / 判分结果 */
.q-foot {
  display: flex; align-items: center; justify-content: center;
  gap: 9px 12px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.q-submit, .q-redo {
  appearance: none; cursor: pointer; flex: none;
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.5;
  min-width: 144px; min-height: 44px; padding: 9px 28px; border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  color: var(--accent); background: var(--accent-soft);
  transition: background .14s, color .14s, border-color .14s, transform .14s;
}
.q-submit:active:not(:disabled) { transform: translateY(1px); }
.q-submit:hover:not(:disabled) { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .q-submit:hover:not(:disabled) { color: #0e1411; } }
.q-submit:disabled { color: var(--muted); border-color: var(--line); cursor: default; }
.q-redo {
  min-width: 112px; min-height: 38px; padding: 7px 20px;
  font-size: 14px; font-weight: 500; background: transparent;
  color: var(--muted); border-color: var(--line);
}
.q-redo:hover { color: var(--accent); border-color: var(--accent); }
.q-verdict { flex: 1 0 100%; text-align: center; font-size: 14px; color: var(--muted); }
.q-verdict.ok { color: var(--green); }
.q-verdict.bad { color: var(--red); }
.q-verdict.bad b { font-family: var(--mono); }

/* 部分级提交按钮（标题右侧） */
.sec-submit {
  appearance: none; cursor: pointer; margin: -4px 0 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em;
  padding: 4px 13px; border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent); background: transparent;
  transition: background .14s, color .14s, border-color .14s;
}
.sec-submit:hover:not(:disabled) { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .sec-submit:hover:not(:disabled) { color: #0e1411; } }
.sec-submit:disabled { color: var(--muted); border-color: var(--line); cursor: default; }
.sec-submit.done { color: var(--green); border-color: var(--green); }

/* 分析题参考答案（折叠，默认收起） */
.essay-ans {
  margin-top: 14px; border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.essay-ans summary {
  cursor: pointer; list-style: none; width: max-content;
  font-size: 13.5px; color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  border-radius: 3px; padding: 3px 12px;
  font-family: var(--mono); letter-spacing: .02em;
}
.essay-ans summary::-webkit-details-marker { display: none; }
.essay-ans summary::before { content: '＋ '; }
.essay-ans[open] summary::before { content: '－ '; }
.essay-ans summary:hover { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.ea-body { margin-top: 12px; }
.ea-body p {
  margin: 0 0 11px; font-size: 15.5px; line-height: 1.9; color: var(--ink);
  text-align: justify; text-indent: 1.5em;
}
.ea-body p:first-child { text-indent: 0; }
.ea-body p:last-child { margin-bottom: 0; }

/* 统计面板补充 */
.stat-wrong {
  margin: 12px 0 0; font-size: 12.5px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.stat-wrong b { color: var(--red); font-weight: 600; }
.stat-wrong a {
  font-family: var(--mono); font-size: 11.5px;
  padding: 1px 7px; border: 1px solid var(--line); border-radius: 3px;
  color: var(--muted);
}
.stat-wrong a:hover { color: var(--accent); border-color: var(--accent); }

/* 年份 chips（首页） */
.po-years .yr { min-width: 62px; }

/* ---------- 右下角客观题卡片（复用 exam.css 的 .scorebar 定位） ---------- */
.scorebar.psfloat,
body.show-score .scorebar.psfloat {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  right: 18px;
  bottom: 18px;
  min-width: 202px;
  max-width: 268px;
  padding: 12px 15px 11px;
  border-radius: 13px;
  font-family: var(--mono);
  transition: border-color .15s;
}
body.show-score .scorebar.psfloat { display: flex; }
.scorebar.psfloat.has-score { border-color: var(--accent); }

/* 卡片抬头：分数 + 收起按钮 */
.psf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.psf-fold {
  display: inline-flex; align-items: center; gap: 3px;
  margin: -2px -3px 0 0; padding: 2px 5px;
  border: 0; border-radius: 5px; background: transparent;
  font-family: var(--sans); font-size: 11px; line-height: 1.5;
  color: var(--muted); cursor: pointer;
  transition: color .15s, background .15s;
}
.psf-fold:hover { color: var(--accent); background: rgba(20, 30, 25, .055); }
.psf-fold:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.psf-chev { font-style: normal; font-size: 10px; line-height: 1; transition: transform .2s ease; }
.psf-body { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }

/* 收起态：缩成一颗只报分数的小胶囊 */
.scorebar.psfloat.min {
  min-width: 0;
  padding: 7px 11px 6px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.scorebar.psfloat.min .psf-body { display: none; }
.scorebar.psfloat.min .psf-head { align-items: center; }
.scorebar.psfloat.min .psf-chev { transform: rotate(180deg); }
.scorebar.psfloat.min .psf-top > b { font-size: 20px; }
.scorebar.psfloat.min:hover { border-color: var(--accent); }
.scorebar.psfloat.min:active { transform: translateY(1px); }

.psf-top { display: flex; align-items: baseline; gap: 5px; }
.psf-top > span { font-family: var(--sans); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.psf-top > b { font-family: var(--mono); font-size: 26px; line-height: 1.15; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.scorebar.psfloat.has-score .psf-top > b { color: var(--accent); }
.psf-top > i { font-style: normal; font-size: 11.5px; color: var(--muted); }

.psf-lines { display: grid; gap: 3px; }
.psf-line { display: flex; align-items: baseline; gap: 5px; font-size: 12px; color: var(--muted); }
.psf-line > span { flex: 0 0 auto; font-family: var(--sans); }
.psf-line > b { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; margin-left: auto; }
.psf-line > i { font-style: normal; }
.psf-line.all > b { color: var(--green); }
.psf-tick { font-style: normal; color: var(--green); font-size: 12.5px; font-weight: 700; }
.psf-left { font-style: normal; color: var(--muted); font-size: 10.5px; opacity: .8; }

.psf-done {
  display: flex; align-items: baseline; gap: 3px;
  margin-top: 2px; padding-top: 5px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--muted);
}
.psf-done > span { font-family: var(--sans); }
.psf-done > b { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.psf-done > i { font-style: normal; }

.psf-miss { display: flex; flex-wrap: wrap; gap: 3px 5px; align-items: baseline; font-size: 11px; color: var(--muted); }
.psf-miss:empty { display: none; }
.psf-mlabel { font-family: var(--sans); margin-right: 1px; }
.psf-miss a {
  font-family: var(--mono); font-size: 11px; line-height: 1.65;
  min-width: 19px; text-align: center; padding: 0 4px;
  border: 1px solid var(--line); border-radius: 3px;
  color: var(--muted); text-decoration: none;
}
.psf-miss a:hover { color: var(--accent); border-color: var(--accent); }
.psf-more { font-style: normal; opacity: .75; }
.psf-allok { color: var(--green); font-family: var(--sans); }

.psf-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.psf-bar > i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--accent); transition: width .3s ease; }

.scorebar.psfloat .sb-pct { font-size: 11px; padding: 0; border: 0; }

@media (max-width: 720px) {
  /* 手机上别铺满整行，缩到右下角一小块 */
  .scorebar.psfloat,
  body.show-score .scorebar.psfloat {
    left: auto;
    right: 8px;
    bottom: 8px;
    min-width: 160px;
    max-width: 198px;
    padding: 8px 11px 7px;
    border-radius: 10px;
  }
  .psf-top > b { font-size: 19px; }
  .psf-top > span { font-size: 10px; }
  .psf-top > i { font-size: 10px; }
  .psf-line, .psf-done { font-size: 10.5px; }
  .psf-line > b, .psf-done > b { font-size: 12.5px; }
  .psf-miss { font-size: 10px; }
  .psf-miss a { font-size: 10px; min-width: 17px; }
  body.show-score .sec:last-child { padding-bottom: 126px; }
  /* 卡片收起后，底部不必再留那么高，避免一整条空白 */
  body.score-min.show-score .sec:last-child { padding-bottom: 58px; }
}

@media (max-width: 720px) {
  .q-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .q { padding: 15px 16px 13px; }
  .q-stem { font-size: 16.5px; line-height: 1.8; }
  .opt { font-size: 16px; line-height: 1.68; padding: 6px 8px; gap: 9px; }
  .opt .k { font-size: 12.5px; }
  .essay-body p { font-size: 16px; line-height: 1.9; text-indent: 0; }
  .ea-body p { font-size: 15px; line-height: 1.85; text-indent: 0; }
  .direction { font-size: 13.5px; padding: 10px 12px; }
  .sec-head h2 { font-size: 21px; }
}

/* ---------- 逐题解析（客观题）：默认收起，显示答案或提交后展开 ---------- */
.q-ana {
  display: none;
  margin: 12px 0 2px;
  padding: 13px 15px 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 6px 6px 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  text-align: justify;
  white-space: pre-line;   /* 解析正文按段落存了 \n\n，保留分段 */
}
.q-ana > b {
  display: block;
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
}
.q.revealed .q-ana,
.q.submitted .q-ana,
body.show-ans .q-ana { display: block; }
@media (max-width: 720px) {
  .q-ana { font-size: 14.5px; line-height: 1.85; padding: 11px 13px 12px; }
}

/* ---------- 顶部套卷条：真题 / 肖八 切换 ---------- */
.eb-lab {
  flex: 0 0 auto; align-self: center;
  margin: 0 2px 0 6px; padding: 0 2px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--muted);
}
.eb-yr.eb-back { min-width: 40px; color: var(--muted); }
.eb-yr.eb-back:hover { color: var(--accent); }

/* ---------- 成绩台账（手动录分，与逐题作答数据分开） ---------- */
.eb-link.on { color: var(--accent); border-bottom-color: currentColor; font-weight: 600; }

.sl-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.sl-kpi-item {
  padding: 14px 16px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.sl-kpi-item > span {
  display: block; margin-bottom: 5px;
  font-size: 13px; letter-spacing: .04em; color: var(--muted);
}
.sl-kpi-item > b {
  font-family: var(--mono); font-size: 26px; font-weight: 600; line-height: 1.15;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.sl-kpi-item > b i { font-style: normal; font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.sl-kpi-empty {
  grid-column: 1 / -1;
  padding: 17px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  font-size: 14.5px; line-height: 1.85; color: var(--muted);
}
.sl-kpi-empty b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 15.5px; }

.sl-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sl-tabs button {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; line-height: 1.4;
  padding: 8px 14px 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  transition: background .14s, color .14s, border-color .14s;
}
.sl-tab-n {
  font-style: normal; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  padding: 1px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--muted);
}
.sl-tabs button.on .sl-tab-n { color: inherit; background: color-mix(in srgb, #fff 24%, transparent); }
.sl-tabs button.on .sl-tab-n.all { background: color-mix(in srgb, #fff 40%, transparent); font-weight: 600; }
.sl-tabs button:hover { color: var(--ink); border-color: var(--accent); }
.sl-tabs button.on {
  background: var(--accent); border-color: var(--accent);
  color: #fff; font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .sl-tabs button.on { color: #0e1411; }
  .sl-done { color: #0e1411; }
}

.sl-lead { margin: 0 0 14px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.sl-empty { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

.sl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(392px, 1fr));
  gap: 12px;
  align-items: start;
}
.sl-card {
  padding: 15px 17px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.sl-card.has {
  border-color: color-mix(in srgb, var(--green) 38%, var(--line));
  background: color-mix(in srgb, var(--green-soft) 90%, var(--surface));
  box-shadow: inset 3px 0 0 var(--green);
}
.sl-done {
  align-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 10px; font-weight: 700; line-height: 1;
  color: #fff; background: var(--green);
}
.sl-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.sl-name {
  display: flex; align-items: baseline; gap: 7px;
  font-size: 16.5px; font-weight: 600; letter-spacing: .01em;
}
.sl-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .04em;
  color: var(--gold); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px;
}
.sl-head-tools { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.sl-go { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.sl-go:hover { color: var(--accent); border-color: currentColor; }
.sl-delpaper {
  appearance: none; cursor: pointer;
  font-size: 12.5px; line-height: 1.4; padding: 2px 9px; border-radius: 3px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
}
.sl-delpaper:hover { color: var(--red); border-color: var(--red); }

.sl-form { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.sl-field { display: inline-flex; align-items: center; gap: 6px; }
.sl-field > span { font-size: 13.5px; color: var(--muted); }
.sl-field input {
  width: 64px; height: 38px; padding: 0 6px;
  font-family: var(--mono); font-size: 17px; text-align: center;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 5px;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.sl-field input::-webkit-outer-spin-button,
.sl-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sl-field input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.sl-field em { font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.sl-save {
  appearance: none; cursor: pointer; margin-left: auto;
  height: 38px; padding: 0 20px; border-radius: 6px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  color: #fff; background: var(--accent); border: 1px solid var(--accent);
  transition: filter .14s;
}
.sl-save:hover { filter: brightness(1.07); }
.sl-save:active { transform: translateY(1px); }
@media (prefers-color-scheme: dark) {
  .sl-save { color: #0e1411; }
}

.sl-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--gold); }
.sl-hint[hidden] { display: none; }
.sl-meta { display: flex; flex-wrap: wrap; gap: 3px 20px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.sl-meta b { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink); }
.sl-meta-empty { opacity: .72; }

.sl-hist { margin-top: 8px; }
.sl-hist summary {
  cursor: pointer; list-style: none; width: max-content;
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 2px 9px;
}
.sl-hist summary::-webkit-details-marker { display: none; }
.sl-hist summary::before { content: '＋ '; }
.sl-hist[open] summary::before { content: '－ '; }
.sl-hist summary:hover { color: var(--accent); border-color: var(--accent); }
.sl-hist ul { list-style: none; margin: 8px 0 0; padding: 0; }
.sl-hist li {
  display: flex; align-items: center; gap: 12px;
  padding: 5px 0; border-top: 1px dashed var(--line-soft);
  font-size: 13px;
}
.slh-date { font-family: var(--mono); color: var(--muted); }
.slh-detail { color: var(--muted); }
.slh-detail b { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.slh-del {
  margin-left: auto; appearance: none; cursor: pointer;
  border: 0; background: transparent; color: var(--muted);
  font-size: 16px; line-height: 1; padding: 2px 7px; border-radius: 3px;
}
.slh-del:hover { color: var(--red); background: var(--red-soft); }

.sl-new { display: flex; gap: 10px; margin-bottom: 14px; }
.sl-new input {
  flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 13px;
  font-family: var(--sans); font-size: 15px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px;
}
.sl-new input:focus { outline: none; border-color: var(--accent); }
.sl-new button {
  appearance: none; cursor: pointer; flex: none;
  height: 40px; padding: 0 20px; border-radius: 6px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  color: #fff; background: var(--accent); border: 1px solid var(--accent);
}
@media (prefers-color-scheme: dark) { .sl-new button { color: #0e1411; } }

/* 分析区 */
.sl-analysis { margin-top: 34px; }
.sl-an-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.sl-an-head h2 { margin: 0; font-family: var(--serif); font-size: 21px; letter-spacing: .05em; }
.sl-an-head span { font-size: 13px; color: var(--muted); }
.sl-an-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.sl-an-card {
  padding: 16px 18px 15px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
.sl-an-card h3 {
  margin: 0 0 10px; font-family: var(--serif);
  font-size: 16px; letter-spacing: .04em;
}
.sl-an-note { margin: 9px 0 0; font-size: 12.5px; color: var(--muted); }
.sl-chart { min-width: 0; }
.sl-chart svg { display: block; }

.sl-bar-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.sl-bar-lab {
  flex: 0 0 112px; font-size: 13.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sl-bar { flex: 1 1 auto; height: 7px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.sl-bar > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.sl-bar-row.ok .sl-bar > i { background: var(--green); }
.sl-bar-row.mid .sl-bar > i { background: var(--gold); }
.sl-bar-row.low .sl-bar > i { background: var(--red); }
.sl-bar-val { flex: 0 0 auto; font-family: var(--mono); font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sl-bar-val i { font-style: normal; font-size: 11.5px; color: var(--muted); margin-left: 2px; }
.sl-an-card .sl-bar-lab { flex-basis: 44px; }
.sl-split {
  display: flex; flex-direction: column; gap: 3px;
  margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted);
}

.sl-an-bars { margin-top: 14px; }
.sl-bars-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.sl-bars-head h3 { margin: 0; }
.sl-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sl-legend i { display: inline-block; width: 10px; height: 6px; border-radius: 2px; }
.sl-legend i + i { margin-left: 6px; }
.sl-legend i.ok { background: var(--green); }
.sl-legend i.mid { background: var(--gold); }
.sl-legend i.low { background: var(--red); }

.sl-bars-group + .sl-bars-group { margin-top: 16px; }
.sl-bars-group h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.sl-an-bars .sl-bar-lab { flex-basis: 124px; }

.sl-insight {
  margin-top: 14px; padding: 16px 20px 15px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0;
}
.sl-insight h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 15.5px; letter-spacing: .05em; color: var(--accent); }
.sl-insight ul { margin: 0; padding-left: 18px; }
.sl-insight li { font-size: 14.5px; line-height: 1.9; color: var(--ink); }
.sl-insight li + li { margin-top: 2px; }
.sl-insight b { font-family: var(--mono); font-weight: 600; color: var(--accent); }

.sl-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 28px 0 0; padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted);
}
.sl-foot > span { margin-right: auto; }
.sl-foot a { color: var(--muted); border-bottom: 1px solid var(--line); }
.sl-foot a:hover { color: var(--accent); border-color: currentColor; }
.sl-tool {
  appearance: none; cursor: pointer;
  font-size: 12.5px; line-height: 1.4; padding: 4px 12px; border-radius: 3px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
}
.sl-tool:hover { color: var(--accent); border-color: var(--accent); }

.sl-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 90;
  transform: translate(-50%, 12px);
  padding: 10px 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; text-align: center; max-width: 82vw;
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.sl-toast.on { opacity: .95; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .sl-an-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sl-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .eb-side .eb-ref { display: none; }
  .sl-grid { grid-template-columns: minmax(0, 1fr); }
  .sl-kpi-item > b { font-size: 22px; }
  .sl-card { padding: 14px 15px 13px; }
  .sl-form { gap: 8px 10px; }
  .sl-save { margin-left: 0; width: 100%; margin-top: 2px; }
  .sl-an-bars .sl-bar-lab { flex-basis: 96px; }
  .sl-bar-lab { flex-basis: 88px; }
  .sl-insight li { font-size: 14px; }
}
