:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --line: #e4e6eb;
  --line-strong: #d3d7de;
  --text: #1c1f26;
  --muted: #7b818c;
  --accent: #ff2442;
  --accent-dark: #d81c37;
  --accent-soft: #fff0f3;
  --ok: #16794a;
  --ok-soft: #e7f6ee;
  --warn: #9a6400;
  --warn-soft: #fff5dc;
  --bad: #b3261e;
  --bad-soft: #fdecea;
  --blue: #2563eb;
  --blue-soft: #eef3ff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Segoe UI", sans-serif;
}

h1, h2, h3 { margin: 0; font-weight: 650; }
h2 { font-size: 15px; }
h3 { font-size: 15px; }
p { margin: 0 0 10px; }
a { color: var(--blue); }
.hidden { display: none !important; }
.muted { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.hint { color: var(--muted); font-size: 12px; }
.tip { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.brand strong { font-size: 16px; letter-spacing: .3px; }
.brand strong::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--accent);
  margin-right: 7px;
}
.brand .sub { color: var(--muted); font-size: 12px; }

.projectbar { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.projectbar label { color: var(--muted); font-size: 12px; }
.projectbar select {
  max-width: 340px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.status { display: flex; align-items: center; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: #fafbfc;
  color: var(--muted);
  white-space: nowrap;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: #b9bec7; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: #c7e9d6; }
.chip.ok i { background: var(--ok); }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: #f3cfcb; }
.chip.bad i { background: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: #f0dcae; }
.chip.warn i { background: var(--warn); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: #f7f8fa; border-color: #c3c8d1; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: #f2f3f5; }
.btn.small { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.iconbtn {
  width: 26px; height: 26px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.iconbtn:hover { background: #f0f1f3; color: var(--text); }

/* ---------- tabs / job ---------- */
.tabs {
  position: sticky;
  top: 53px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.tab {
  position: relative;
  height: 42px;
  padding: 0 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); font-weight: 650; }
.tab.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.tabspacer { flex: 1; }

.jobbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 22px 0;
  padding: 9px 14px;
  background: var(--accent-soft);
  border: 1px solid #ffd3db;
  border-radius: var(--radius);
}
.joblabel { font-size: 13px; font-weight: 600; color: var(--accent-dark); }
.progress {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: #ffd7df;
  overflow: hidden;
  max-width: 420px;
}
.progressfill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 99px;
  transition: width .35s ease;
}

/* ---------- layout ---------- */
main { padding: 16px 22px 60px; max-width: 1440px; margin: 0 auto; }
.pane { display: none; }
.pane.active { display: block; }
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}
.cols.wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.stack { display: grid; gap: 16px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
  min-width: 0;
}
.card:last-child { margin-bottom: 0; }
.card > h2 { margin-bottom: 8px; }
.card > h3 { margin: 18px 0 8px; font-size: 14px; }
.cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cardhead h2 { white-space: nowrap; }
.cardfoot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.cardfoot.wrap { flex-wrap: wrap; }
.cardfoot label { font-size: 13px; color: #444b55; }
select, input[type="text"], input[type="search"], input[type="password"], textarea {
  font: inherit;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  padding: 7px 9px;
  outline: none;
}
select { height: 32px; padding: 0 8px; }
textarea { resize: vertical; width: 100%; }
select:focus, input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 36, 66, .1);
}
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filters input[type="search"] { width: 190px; }

/* ---------- keyword matrix ---------- */
.matrix { display: grid; gap: 10px; max-height: 400px; overflow: auto; padding-right: 2px; }
.group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fcfcfd;
}
.grouphead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.grouphead strong { font-size: 13.5px; }
.grouphead .mini { font-size: 11.5px; color: var(--muted); }
.grouphead .iconbtn { margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 20px; }
.kwchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 8px;
  border-radius: 6px;
  background: #f1f2f4;
  font-size: 12.5px;
  color: #3c424b;
}
.kwchip .x {
  border: none;
  background: transparent;
  color: #9aa0a9;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0 3px;
  border-radius: 4px;
}
.kwchip .x:hover { color: var(--bad); background: #ffe7e5; }
.kwadd { display: flex; gap: 6px; margin-top: 8px; }
.kwadd input { flex: 1; height: 30px; }

/* ---------- stats ---------- */
.statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}
.stat {
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
}
.stat b { display: block; font-size: 19px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--muted); }
.stat.accent b { color: var(--accent); }
.question {
  margin: 2px 0 12px;
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  background: #fffafb;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #4a505a;
}
.question.emptyq { border-left-color: #cfd3d9; background: #fafbfc; color: var(--muted); }

/* ---------- table ---------- */
.tablewrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--muted);
  background: #f8f9fa;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.table td { padding: 9px 10px; border-bottom: 1px solid #eff0f2; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fcfcfd; }
.note-cell { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.note-cover {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 7px;
  object-fit: cover;
  background: #eef0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b3b8c0;
  font-size: 10px;
}
.note-title {
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-title:hover { color: var(--accent); }
.note-author { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.metrics-inline { display: flex; gap: 10px; color: #4d545e; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kwlist { display: flex; flex-wrap: wrap; gap: 4px; max-width: 240px; }
.minitag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f0f2f4;
  color: #5b616b;
  font-size: 11px;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  white-space: nowrap;
}
.badge.high { background: var(--ok-soft); color: var(--ok); }
.badge.mid { background: var(--warn-soft); color: var(--warn); }
.badge.low { background: var(--bad-soft); color: var(--bad); }
.badge.none { background: #f0f1f3; color: var(--muted); }
.badge.cat { background: var(--blue-soft); color: var(--blue); }
.empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- comments ---------- */
.commentlist { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.comment {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  background: #fff;
}
.comment:hover { background: #fdfdfe; }
.comment > input {
  align-self: flex-start;
  margin-top: 5px;
  width: 15px;
  height: 15px;
  flex: none;
}
.comment .cbody { flex: 1; min-width: 0; }
.ctext { font-size: 13.5px; line-height: 1.6; word-break: break-word; white-space: pre-wrap; }
.creply { color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.creply .minitag { margin-right: 4px; }
.cmeta { margin-top: 5px; font-size: 11.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.cmeta .src { color: #5b616b; cursor: pointer; }
.cmeta .src:hover { color: var(--accent); }
.ctags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.tagpill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 4px 1px 7px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2f55b0;
  font-size: 11px;
}
.tagpill.noise { background: #f0f1f3; color: #7b818c; }
.tagpill .x {
  border: none; background: transparent; color: inherit; opacity: .55;
  cursor: pointer; font-size: 12px; line-height: 1; padding: 0 2px;
}
.tagpill .x:hover { opacity: 1; }
.rowtag { height: 24px; font-size: 11px; padding: 0 4px; border-radius: 6px; }
.bulkbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #ffd3db;
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 12.5px;
}
.bulkbar select { height: 28px; min-width: 150px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* ---------- insights ---------- */
.notice {
  margin-top: 12px;
  padding: 9px 12px;
  background: #fffbeb;
  border: 1px solid #f5e3ae;
  border-radius: 8px;
  font-size: 12px;
  color: #6b5313;
}
.notice summary { cursor: pointer; font-weight: 600; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice li { margin: 3px 0; }

.theme {
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fcfcfd;
}
.theme:last-child { margin-bottom: 0; }
.themehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.themetitle { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.themetitle strong { font-size: 14px; }
.conf { font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.conf.high { background: var(--ok-soft); color: var(--ok); }
.conf.mid { background: var(--warn-soft); color: var(--warn); }
.conf.low { background: var(--bad-soft); color: var(--bad); }
.metrics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
}
.metrics b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 650; }
.theme details { margin-top: 8px; }
.theme summary { cursor: pointer; font-size: 12px; color: var(--blue); }
.quotes { display: grid; gap: 6px; margin-top: 8px; }
.quote {
  padding: 7px 10px;
  background: #fff;
  border-left: 3px solid #dfe3e8;
  border-radius: 0 6px 6px 0;
  font-size: 12.5px;
}
.quote .qmeta { color: var(--muted); font-size: 11px; margin-top: 3px; }
.refs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.ref {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f3f6;
  color: #48505b;
  font-size: 11.5px;
  cursor: pointer;
}
.ref:hover { background: #e8ebf0; color: var(--accent); }

.bars { display: grid; gap: 8px; }
.barrow { display: grid; grid-template-columns: 84px 1fr 34px; align-items: center; gap: 8px; font-size: 12px; }
.bar { height: 8px; border-radius: 99px; background: #f0f1f3; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.barval { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.phrasebox { display: flex; flex-wrap: wrap; gap: 6px; }
.phrase {
  padding: 3px 9px;
  border-radius: 6px;
  background: #f4f5f7;
  border: 1px solid #e7e9ed;
  font-size: 12px;
}
.phrase b { color: var(--muted); font-weight: 500; margin-left: 4px; font-size: 11px; }

.gapitem {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eff0f2;
}
.gapitem:last-child { border-bottom: none; }
.gapitem .gbody { flex: 1; min-width: 0; }
.gapitem .gtext { font-size: 12.5px; }
.gapitem .gmeta { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.gapitem .likes { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.author {
  padding: 9px 0;
  border-bottom: 1px solid #eff0f2;
}
.author:last-child { border-bottom: none; }
.authorhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.authorhead strong { font-size: 13px; }
.authorhead .metrics { margin-top: 0; }
.author details { margin-top: 6px; }
.author summary { cursor: pointer; font-size: 11.5px; color: var(--blue); }
.authordetail { font-size: 12px; color: #4d545e; margin-top: 6px; display: grid; gap: 4px; }
.authordetail .row { display: flex; gap: 8px; flex-wrap: wrap; }
.profilebox { font-size: 12.5px; display: grid; gap: 8px; }
.profilebox .pline { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }

.accountform { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.accountform input { flex: 1; min-width: 240px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; background: #fff; }
.accountitem { padding: 10px 0; border-bottom: 1px solid #eff0f2; }
.accountitem:last-child { border-bottom: none; }
.accounthead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.accounthead .metrics-inline { margin-left: auto; }
.accountname { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.accountname strong { font-size: 13px; }
.accountname .muted { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #eef0f3; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); flex: none; }

.hypolist { display: grid; gap: 10px; }
.hypo {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fcfcfd;
}
.hypohead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hypohead strong { font-size: 13.5px; }
.kindtag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #ecfdf3; color: var(--ok); }
.kindtag.content { background: #eef3ff; color: var(--blue); }
.hypohead .right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.hypohead select { height: 27px; font-size: 11.5px; }
.hypobody { margin-top: 8px; font-size: 12.5px; color: #4d545e; display: grid; gap: 4px; }
.hypobody .lbl { color: var(--muted); font-size: 11px; }
.hypo details { margin-top: 7px; }
.hypo summary { cursor: pointer; font-size: 11.5px; color: var(--blue); }

.checklist { margin: 0; padding-left: 20px; font-size: 13px; color: #4d545e; }
.checklist li { margin: 4px 0; }
.limitlist { margin: 0; padding-left: 20px; font-size: 12.5px; color: #6b5313; }
.limitlist li { margin: 5px 0; }

/* ---------- drawer ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(17, 22, 29, .32);
  z-index: 60;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(560px, 94vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 30px rgba(16, 24, 40, .12);
  z-index: 70;
  transform: translateX(102%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawerhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.drawerbody { padding: 14px 16px 40px; overflow-y: auto; }
.dnote { display: flex; gap: 12px; margin-bottom: 12px; }
.dnote img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: #eef0f2; flex: none; }
.dnote h3 { font-size: 15px; line-height: 1.4; margin-bottom: 4px; }
.dnote .meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ddesc { font-size: 12.5px; white-space: pre-wrap; color: #4d545e; margin: 10px 0; }
.dcomments { display: grid; gap: 8px; margin-top: 12px; }
.dcomment { padding: 8px 10px; background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; }
.dcomment .cmeta { margin-top: 3px; }

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 22, 29, .38);
  padding: 18px;
}
.modalbox {
  width: min(460px, 100%);
  background: var(--panel);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .22);
  max-height: 92vh;
  overflow-y: auto;
}
.modalbox.wide { width: min(680px, 100%); }
.modalbox h3 { margin-bottom: 14px; }
.field { display: grid; gap: 5px; font-size: 12.5px; color: #4d545e; margin-bottom: 12px; }
.field input, .field select, .field textarea { width: 100%; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modalactions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.qrbox { min-height: 240px; display: flex; align-items: center; justify-content: center; background: #fafbfc; border: 1px dashed var(--line-strong); border-radius: 10px; font-size: 13px; color: var(--muted); padding: 10px; }
.qrbox img { max-width: 260px; width: 100%; height: auto; }
.evidencepreview { font-size: 12px; color: var(--muted); }
.evidencepreview .quote { margin-top: 6px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 100;
  max-width: min(560px, 92vw);
  padding: 10px 16px;
  border-radius: 9px;
  background: #23272e;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .3);
}
.toast.ok { background: #146c43; }
.toast.warn { background: #8a5a00; }
.toast.bad { background: #a5261f; }

/* ---------- 账号复盘 ---------- */
.scorehead { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; }
.scorebig { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.scorehead strong { font-size: 13px; }
.scorehead .hint { margin: 3px 0 0; }
.dimnotes { display: grid; gap: 5px; margin-top: 10px; }
.dimnote { font-size: 12px; color: #4d545e; line-height: 1.5; }
.dimnote strong { color: var(--text); }
.delta { font-size: 11px; font-weight: 500; margin-left: 2px; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--bad); }
.trendscroll { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trendgroup h3 { font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.trendbars { display: grid; gap: 3px; }
.trendrow { display: grid; grid-template-columns: 38px 1fr 34px; align-items: center; gap: 6px; font-size: 11px; }
.tday { color: var(--muted); font-variant-numeric: tabular-nums; }
.tbar { height: 6px; border-radius: 99px; background: #f0f1f3; overflow: hidden; }
.tbar span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.tbar.likes span { background: var(--ok); }
.tval { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.reviewtitle { font-size: 12.5px; line-height: 1.45; }
.sug { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #eff0f2; font-size: 12.5px; line-height: 1.55; }
.sug:last-child { border-bottom: none; }
.sug .badge { flex: none; margin-top: 1px; }
.markettheme { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12.5px; }
.markettheme .muted { margin-left: auto; font-size: 11px; white-space: nowrap; }
#reviewMarket h3 { font-size: 12.5px; margin: 10px 0 4px; }
#reviewMarket .quote { margin-top: 6px; }

/* ---------- 创作发布 ---------- */
.draftimages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 10px;
}
.draftimages p { grid-column: 1 / -1; margin: 0; }
.draftimg {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fafbfc;
}
.draftimg img { width: 100%; height: 112px; object-fit: cover; display: block; }
.draftimg figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px;
  min-height: 24px;
}
.draftlist { display: grid; gap: 6px; }
.draftrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.draftrow:hover { border-color: var(--line-strong); background: #fdfdfe; }
.draftrow.active { border-color: var(--accent); background: var(--accent-soft); }
.draftrowtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 550;
}
.pubblock { padding: 8px 0; border-bottom: 1px solid #eff0f2; font-size: 13px; }
.pubblock:last-of-type { border-bottom: none; }
.pubblock .hint { display: block; margin-bottom: 3px; }
.pubcontent {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow: auto;
  margin: 0;
  line-height: 1.65;
}
.pubimgs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pubimgs img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.dangercheck { margin-top: 12px; align-items: flex-start; color: #8a1f1a; }
.dangercheck input { margin-top: 3px; }

@media (max-width: 1000px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .projectbar { order: 3; flex-basis: 100%; }
  .projectbar select { flex: 1; max-width: none; }
  .cols, .cols.wide { grid-template-columns: 1fr; }
  .tabs { top: 0; overflow-x: auto; }
  .formgrid { grid-template-columns: 1fr; }
  .trendscroll { grid-template-columns: 1fr; }
}

/* ---------- P0-P2：稳定性、建议、证据与笔记数据 ---------- */
.suggestbox { margin: 10px 0 14px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.suggestbox summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.suggestlist { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 320px; overflow: auto; }
.suggestrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #eff0f2;
  border-radius: 6px;
  font-size: 12px;
}
.suggestquote { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowlist { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 10px; }
.rowlist .row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.draftstats { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.draftstats .cardhead { margin-bottom: 6px; }
.draftstats .statgrid { margin-top: 6px; }
.quotechain { padding: 6px 0; border-bottom: 1px solid #f2f2f4; font-size: 12px; }
.quotechain:last-child { border-bottom: none; }
.gsnip {
  margin-top: 4px;
  padding: 5px 8px;
  background: #f7f8fa;
  border-radius: 5px;
  font-size: 12px;
  color: #3d4451;
  white-space: pre-wrap;
}
.dnoteimages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.dnoteimages img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: #eef0f2; display: block; }
