:root {
  --paper: #fffdfa;
  --paper-deep: #f6f0e8;
  --canvas: #ede8e0;
  --ink: #272321;
  --muted: #746d68;
  --line: #d8cfc7;
  --line-strong: #b9ada5;
  --red: #b31535;
  --red-dark: #7d0d25;
  --red-soft: #f8e8eb;
  --rose: #c95f77;
  --rose-soft: #fbf2f3;
  --gold: #a78454;
  --success: #4f725e;
  --warning: #a06d24;
  --serif: "Songti SC", STSong, SimSun, "宋体", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 14px 38px rgba(71, 46, 43, 0.08);
  --shadow-soft: 0 5px 18px rgba(71, 46, 43, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(179, 21, 53, .035), transparent 25%),
    linear-gradient(180deg, #f4f0eb 0, var(--canvas) 100%);
  font-family: var(--sans);
  line-height: 1.65;
}
button, textarea, input, select { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
::selection { color: white; background: var(--red); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
[hidden] { display: none !important; }

.brand-line {
  height: 6px;
  background: linear-gradient(90deg, var(--red-dark) 0 28%, var(--red) 28% 78%, var(--rose) 78% 100%);
}
.app-header {
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(32px, calc((100vw - 1320px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand-block { display: flex; align-items: center; gap: 18px; }
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--red);
  font-family: STKaiti, KaiTi, var(--serif);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1;
  cursor: pointer;
}
.brand-logo {
  display: block;
  width: auto;
  height: 68px;
  flex: 0 0 auto;
  mix-blend-mode: multiply;
  object-fit: contain;
}
.logo small {
  padding: 8px 0 7px 15px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  white-space: nowrap;
}
.brand-en {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: #958983;
  font-size: 9px;
  letter-spacing: 2.4px;
  line-height: 1.5;
  text-transform: uppercase;
}
.header-status { display: flex; align-items: center; gap: 12px; }
.project-name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.model-settings-trigger { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 6px; min-width: 124px; height: 36px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; color: var(--muted); cursor: pointer; }
.model-settings-trigger span { font-size: 9px; letter-spacing: 1px; }
.model-settings-trigger strong { max-width: 86px; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.model-settings-trigger i { color: var(--red); font-style: normal; }
.model-settings-trigger:hover { border-color: var(--red); }
.model-settings-panel { width: min(760px, calc(100vw - 32px)); max-height: min(780px, calc(100vh - 40px)); overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(32,24,18,.22); }
.model-settings-panel > header { display: flex; justify-content: space-between; padding: 24px 27px 18px; border-bottom: 1px solid var(--line); }
.model-settings-panel h2 { margin: 3px 0; font: 25px SimSun, "宋体", serif; }
.model-settings-panel header p { margin: 0; color: var(--muted); font-size: 11px; }
.model-plan-note { display: flex; gap: 12px; margin: 15px 27px 0; padding: 10px 12px; border-left: 3px solid var(--gold); background: #f6f0e5; font-size: 10px; }
.model-plan-note strong { flex: 0 0 auto; color: #7d6033; }
.model-plan-note span { color: var(--muted); }
.model-option-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 480px; overflow: auto; padding: 15px 27px; }
.model-option { display: grid; grid-template-columns: 42px 1fr 28px; align-items: center; gap: 10px; min-height: 62px; padding: 9px 11px; border: 1px solid var(--line); background: white; text-align: left; cursor: pointer; }
.model-option:hover, .model-option.selected { border-color: var(--red); background: #fff8f5; }
.model-option span:nth-child(2) { min-width: 0; }
.model-option strong, .model-option small { display: block; }
.model-option strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.model-option small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.model-option > i { color: var(--red); font-size: 8px; font-style: normal; text-align: right; }
.model-tier { padding: 3px 4px; color: #fff; background: #766e65; font-size: 8px; text-align: center; }
.tier-旗舰 { background: var(--red); }
.tier-均衡 { background: #9a7135; }
.tier-经济 { background: var(--success); }
.model-settings-panel > footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 27px; border-top: 1px solid var(--line); }
.model-settings-panel footer span { flex: 1; color: var(--success); font-size: 10px; }

.primary-nav {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 max(32px, calc((100vw - 1320px) / 2));
  background: rgba(255, 253, 250, .96);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 3px 12px rgba(71, 46, 43, .035);
}
.primary-nav a { position: relative; color: #3e3936; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .04em; padding: 13px 2px 11px; border-bottom: 3px solid transparent; }
.primary-nav a:hover { color: var(--red); }
.primary-nav a.active { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }
.nav-note { margin-left: auto; color: #938b82; font-size: 12px; }

.workspace {
  width: min(1320px, calc(100% - 40px));
  margin: 26px auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.edition-panel, .content-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.edition-panel { position: sticky; top: 20px; padding: 24px; border-top: 3px solid var(--red); }
.edition-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.edition-heading h2, .knowledge-strip h2 { margin: 2px 0 0; font-family: SimSun, "宋体", serif; font-size: 24px; }
.kicker { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; }
.plan-badge, .status-pill, .badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 2px; font-size: 11px; }
.plan-badge { color: #775a34; background: #f0e3cf; }
.badge-mock { color: var(--red-dark); background: var(--red-soft); }

.paper-sheet { padding: 15px; aspect-ratio: 0.72; background: #fffefb; border: 1px solid var(--line-strong); box-shadow: 0 7px 20px rgba(54, 36, 33, .13); }
.paper-masthead { padding: 3px 0 9px; border-bottom: 4px double var(--ink); color: var(--red); font-family: STKaiti, KaiTi, var(--serif); font-size: 26px; font-weight: 900; letter-spacing: 2px; text-align: center; }
.paper-meta { margin: 7px 0; padding-bottom: 6px; border-bottom: 1px solid #777; color: #555; font: 9px SimSun, serif; text-align: center; }
.paper-grid { height: calc(100% - 70px); display: grid; grid-template: 30% 24% 1fr / 64% 1fr; gap: 5px; }
.paper-slot { position: relative; border: 1px solid #9d978f; background: repeating-linear-gradient(0deg, #fff, #fff 3px, #ddd 4px); }
.paper-slot span { position: absolute; top: 5px; left: 5px; padding: 1px 5px; color: #fff; background: rgba(179,21,53,.9); font-size: 9px; }
.paper-slot.lead { grid-column: 1 / 3; }
.paper-slot.side { grid-row: 2 / 4; grid-column: 2; }
.paper-slot.image { background: #d8d1c5; }
.edition-copy { margin: 17px 0 14px; color: var(--muted); font-size: 12px; }

.content-panel { min-height: 690px; }
.step-nav { display: grid; grid-template-columns: repeat(4, 1fr); background: #f8f2f1; border-bottom: 1px solid var(--line); }
.step-btn { display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 12px 16px; border: 0; border-right: 1px solid var(--line); background: transparent; color: #787169; text-align: left; cursor: pointer; }
.step-btn:last-child { border-right: 0; }
.step-btn:disabled { opacity: .45; cursor: not-allowed; }
.step-btn.active { color: var(--red); background: #fff; box-shadow: inset 0 -3px var(--red); }
.step-btn.completed .step-icon { color: white; background: var(--success); border-color: var(--success); }
.step-icon { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 29px; border: 1px solid currentColor; border-radius: 50%; font: 14px STKaiti, KaiTi, var(--serif); }
.step-copy { display: flex; flex-direction: column; }
.step-copy small { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; opacity: .7; }
.step-name { font-family: SimSun, "宋体", serif; font-size: 15px; font-weight: 700; }

.screen { animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.input-hero { position: relative; overflow: hidden; padding: 58px 62px 62px; }
.input-hero::before { content: ""; position: absolute; top: 54px; left: 36px; width: 5px; height: 88px; background: linear-gradient(180deg, var(--red), var(--rose)); }
.input-hero::after { content: "HER STORY · OUR TIMES"; position: absolute; right: -10px; bottom: 18px; color: rgba(179, 21, 53, .038); font: 700 42px/1 Georgia, serif; letter-spacing: .08em; white-space: nowrap; pointer-events: none; }
.input-hero > * { position: relative; z-index: 1; }
.input-hero h1 { margin: 9px 0 12px; font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); font-weight: 700; line-height: 1.18; letter-spacing: .02em; }
.lead-copy { max-width: 710px; margin: 0 0 24px; color: var(--muted); font-size: 16px; }
.ability-strip { display: flex; gap: 0; margin-bottom: 27px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ability-strip span { flex: 1; padding: 10px 4px; color: #625d56; font: 13px var(--serif); text-align: center; border-right: 1px solid var(--line); }
.ability-strip span:last-child { border-right: 0; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 700; }
textarea { width: 100%; resize: vertical; padding: 17px 19px; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; color: var(--ink); font: 16px/1.8 var(--serif); outline: none; }
textarea:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(180,33,27,.08); }
.input-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 15px; }
.input-actions p { margin: 0; color: var(--muted); font-size: 12px; }

.btn { padding: 9px 17px; border: 1px solid transparent; border-radius: 3px; background: transparent; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { color: white; background: var(--red); border-color: var(--red); }
.btn-primary:hover:not(:disabled) { background: var(--red-dark); box-shadow: 0 6px 16px rgba(125, 13, 37, .15); transform: translateY(-1px); }
.btn-ghost { color: #605a53; border-color: var(--line-strong); background: #fff; }
.btn-ghost:hover:not(:disabled) { color: var(--red); border-color: var(--red); background: var(--rose-soft); }
.btn-outline { width: 100%; color: var(--red); border-color: var(--red); }
.btn-large { padding: 12px 26px; font-weight: 700; }
.btn-small { padding: 5px 10px; font-size: 12px; }

.stage-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.stage-counter { color: var(--muted); font-size: 12px; }
.stage-container { min-height: 545px; padding: 36px 42px 44px; }
.stage-intro { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.stage-intro h2, .result-heading h2 { margin: 5px 0 8px; font-family: SimSun, "宋体", serif; font-size: 30px; }
.stage-intro p { max-width: 650px; margin: 0 0 16px; color: var(--muted); }
.source-card { margin-top: 24px; padding: 21px; border-left: 3px solid var(--red); background: linear-gradient(90deg, var(--rose-soft), #faf7f1); }
.source-card span { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.source-card p { margin: 8px 0 0; font-family: SimSun, "宋体", serif; }
.context-note { margin: 20px 0 0; padding: 13px 16px; background: #f7f2e9; color: var(--muted); font-size: 13px; }

.running-indicator { min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.spinner { width: 35px; height: 35px; border: 2px solid #d8d0c6; border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { padding: 30px; border-left: 3px solid var(--red); background: var(--red-soft); }
.error-title { color: var(--red); font-weight: 700; }

.result-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 17px; border-bottom: 2px solid var(--ink); }
.result-heading h2 { margin-bottom: 0; }
.status-pill { color: var(--success); background: #e6eee7; }
.status-pill.warning { color: var(--red-dark); background: var(--red-soft); }
.result-summary { margin: 20px 0; color: #55514c; font: 17px/1.8 SimSun, "宋体", serif; }
.meta-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.meta-row span { padding: 3px 9px; border: 1px solid #cfc7bc; color: #676058; font-size: 11px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-column section { padding: 18px; background: #f8f4ed; }
.two-column h3, .draft-layout h3, .suggested-paper h3 { margin: 0 0 12px; font-family: SimSun, "宋体", serif; }
.outline-list { margin: 0; padding-left: 21px; }
.outline-list li { padding: 5px 0; border-bottom: 1px dotted #cfc7bc; }
.fact-list { margin: 0; }
.fact-list dt { color: var(--red); font-size: 11px; font-weight: 700; }
.fact-list dd { margin: 2px 0 14px; }
.notice { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 12px 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; }
.notice strong { color: var(--red); }
.notice em { margin-left: auto; color: #8c8379; font-style: normal; }

.reference-list { display: grid; gap: 13px; }
.reference-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; padding: 17px; border: 1px solid var(--line); background: #fff; }
.reference-index { color: var(--red); font: 23px Georgia, serif; }
.reference-card h3 { margin: 0 0 4px; font-family: SimSun, "宋体", serif; }
.reference-card p { margin: 0 0 9px; color: #615c55; font-size: 13px; }
.reference-card dl { display: grid; grid-template-columns: 55px 1fr; gap: 3px 8px; margin: 0; font-size: 11px; }
.reference-card dt { color: var(--red); font-weight: 700; }
.reference-card dd { margin: 0; color: var(--muted); }
.select-reference { color: var(--success); font-size: 11px; white-space: nowrap; }

.draft-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin-top: 22px; }
.draft-layout aside { padding: 17px; background: #f6f1e8; }
.structure-note { margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); }
.structure-note span { display: block; color: var(--muted); font-size: 10px; }
.structure-note strong { font: 13px SimSun, "宋体", serif; }
.draft-paper, .suggested-paper { padding: 24px 28px; border: 1px solid var(--line); background: white; font: 16px/2 SimSun, "宋体", serif; }
.draft-paper p, .suggested-paper p { margin: 0 0 14px; text-indent: 2em; }
.verification { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.verification strong { color: var(--red); margin-right: 8px; }
.verification span { padding: 2px 7px; background: #f0ebe3; font-size: 11px; }

.review-layout { display: grid; grid-template-columns: 1fr 340px; gap: 19px; margin-top: 22px; }
.issue-list { display: grid; gap: 11px; }
.issue-card { padding: 13px; border-left: 3px solid #999; background: #f7f3ec; }
.issue-card.severity-high { border-color: var(--red); }
.issue-card.severity-medium { border-color: var(--gold); }
.issue-card > div:first-child { display: flex; justify-content: space-between; }
.issue-card em { color: var(--muted); font-size: 10px; font-style: normal; text-transform: uppercase; }
.issue-card blockquote { margin: 8px 0; padding-left: 9px; border-left: 1px solid #bcb4aa; color: #5e5952; font: 12px SimSun, "宋体", serif; }
.issue-card p, .issue-card strong, .issue-card small { display: block; margin: 5px 0; font-size: 11px; }
.issue-card small { color: var(--red); }
.issue-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 8px; }
.disclaimer { margin: 18px 0 0; color: var(--muted); font-size: 11px; text-align: right; }

.knowledge-strip { position: relative; overflow: hidden; width: min(1320px, calc(100% - 40px)); margin: 0 auto 38px; display: grid; grid-template-columns: 280px 1fr; gap: 30px; padding: 30px 36px; background: linear-gradient(125deg, var(--red-dark), #4c1822 72%, #352526); color: white; box-shadow: var(--shadow); }
.knowledge-strip::after { content: ""; position: absolute; width: 240px; height: 240px; right: -86px; top: -108px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 58px rgba(255,255,255,.02); pointer-events: none; }
.knowledge-strip > * { position: relative; z-index: 1; }
.knowledge-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.knowledge-items span { color: #c6c1ba; font-size: 11px; }
.knowledge-items strong { display: block; margin-bottom: 5px; color: white; font: 16px SimSun, "宋体", serif; }

/* ─── Shared multi-page shell ─────────────────────────── */
.logo-link { text-decoration: none; }
.save-state, .sync-state { color: var(--muted); font-size: 12px; }
.page-shell { width: min(1320px, calc(100% - 40px)); margin: 28px auto 48px; }
.page-title-row { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 23px; padding: 7px 2px 20px 20px; border-bottom: 2px solid var(--ink); }
.page-title-row::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 22px; width: 4px; background: var(--red); }
.page-title-row > div:first-child { min-width: 0; flex: 1; }
.page-title-row h1 { margin: 5px 0 3px; font: 700 38px/1.2 var(--serif); letter-spacing: .02em; }
.page-title-row p { margin: 0; color: var(--muted); }
.page-count { color: var(--muted); font-size: 12px; }
.knowledge-title-meta { display: grid; justify-items: end; gap: 6px; }
.knowledge-role-access { display: inline-flex; min-height: 27px; padding: 0 10px; align-items: center; border: 1px solid #eadbe0; border-radius: 8px; color: #9f1b40; background: #fff7f9; font-size: 9px; font-weight: 750; }
body.knowledge-read-only .knowledge-stats { grid-template-columns: 1fr; }
body.knowledge-read-only .knowledge-stats > div:not(:first-child) { display: none; }
.search-band { display: flex; align-items: end; gap: 14px; padding: 21px 24px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--red); box-shadow: var(--shadow); }
.search-input { flex: 1; }
.search-input label, .writing-config label, .layout-studio > label { display: block; margin-bottom: 6px; color: #5e5851; font-size: 12px; font-weight: 700; }
.search-input input, .table-search input, .writing-config select, .layout-studio select, .result-toolbar select, .issue-rail select, .list-toolbar select { width: 100%; height: 42px; padding: 0 13px; border: 1px solid #aaa39a; border-radius: 0; background: white; color: var(--ink); outline: none; }
.search-input input:focus, .table-search input:focus { border-color: var(--red); }

/* ─── Reference page ─────────────────────────────────── */
.catalog-layout { display: grid; grid-template-columns: 210px minmax(440px, 1fr) 320px; gap: 17px; margin-top: 18px; align-items: start; }
.filter-panel, .catalog-results, .article-preview, .knowledge-table-card, .approval-list, .approval-detail { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.filter-panel { padding: 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font: 20px SimSun, "宋体", serif; }
.panel-heading button, .table-toolbar button, .data-table button, .table-footer button, .section-heading button, .history-files button { border: 0; background: transparent; color: var(--red); cursor: pointer; }
.filter-panel fieldset { margin: 18px 0 0; padding: 0; border: 0; }
.filter-panel legend { margin-bottom: 8px; color: #46413c; font-size: 12px; font-weight: 700; }
.filter-panel label { display: flex; align-items: center; gap: 7px; padding: 5px 0; color: #625c55; font-size: 12px; }
.filter-panel label em { margin-left: auto; color: #999087; font-style: normal; }
.catalog-results { padding: 18px; }
.result-toolbar { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.result-toolbar strong { display: block; font: 18px SimSun, "宋体", serif; }
.result-toolbar span { color: var(--muted); font-size: 11px; }
.result-toolbar select { width: 150px; height: 34px; font-size: 11px; }
.article-result { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; padding: 20px 5px; border-bottom: 1px solid var(--line); cursor: pointer; }
.article-result:hover { background: var(--rose-soft); }
.article-result.selected { margin: 0 -18px; padding: 20px 18px; background: var(--red-soft); box-shadow: inset 3px 0 var(--red); }
.result-number { color: var(--red); font: 22px Georgia, serif; }
.result-body h2 { margin: 5px 0; font: 20px SimSun, "宋体", serif; }
.result-body > p { margin: 0 0 9px; color: #625c55; font: 13px/1.7 SimSun, "宋体", serif; }
.result-body dl { display: grid; grid-template-columns: 62px 1fr; gap: 3px 8px; margin: 0; font-size: 11px; }
.result-body dt { color: var(--red); font-weight: 700; }
.result-body dd { margin: 0; color: var(--muted); }
.result-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.result-tags span, .table-tag { padding: 1px 6px; border: 1px solid #c9c1b7; color: #70685f; font-size: 9px; }
.table-tag { display: inline-block; margin: 2px 3px 2px 0; white-space: nowrap; }
.result-tags span:first-child, .table-tag.red { color: var(--red); border-color: #d6a29d; }
.result-check { align-self: start; color: var(--success); font-size: 10px; white-space: nowrap; }
.result-check.verification-match { padding: 5px 8px; border-radius: 7px; color: #8d1739; background: #f9e9ee; font-weight: 700; }
.reference-review-context { display: flex; min-height: 80px; margin: -4px 0 16px; padding: 15px 18px; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #e4d8dc; border-left: 3px solid var(--red); border-radius: 13px; background: linear-gradient(120deg, #fff, #fbf4f6); }
.reference-review-context[hidden] { display: none; }
.reference-review-context div { min-width: 0; }
.reference-review-context span { display: block; margin-bottom: 4px; color: var(--red); font-size: 8px; font-weight: 750; letter-spacing: .1em; }
.reference-review-context strong { display: block; overflow: hidden; color: #33292d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.reference-review-context p { margin: 4px 0 0; color: #8f8488; font-size: 9px; }
.article-preview { position: sticky; top: 18px; padding: 22px; }
.article-preview h2 { margin: 7px 0 3px; font: 25px/1.35 SimSun, "宋体", serif; }
.article-byline { padding-bottom: 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.preview-outline { margin: 17px 0; padding: 13px; background: #f5f0e7; }
.preview-outline strong { color: var(--red); font-size: 11px; }
.preview-outline ol { margin: 7px 0 0; padding-left: 18px; font: 12px/1.8 SimSun, "宋体", serif; }
.preview-copy { max-height: 210px; overflow: hidden; position: relative; font: 13px/1.85 SimSun, "宋体", serif; }
.preview-copy::after { content: ""; position: absolute; inset: auto 0 0; height: 55px; background: linear-gradient(transparent, var(--paper)); }
.next-action { display: block; margin-top: 9px; text-align: center; text-decoration: none; }

/* ─── Writing page ───────────────────────────────────── */
.writing-shell { width: min(1500px, calc(100% - 32px)); margin: 18px auto 40px; display: grid; grid-template-columns: 255px minmax(520px, 1fr) 300px; gap: 15px; align-items: start; }
.writing-config, .editor-panel, .layout-studio { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.editor-panel { border-top: 3px solid var(--red); }
.writing-config, .layout-studio { position: sticky; top: 15px; padding: 18px; }
.writing-config section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.writing-config select { height: 38px; font-size: 11px; }
.writing-config a { display: inline-block; margin-top: 7px; color: var(--red); font-size: 10px; }
.compact-reference { padding: 8px 0; border-bottom: 1px dotted #c9c1b7; }
.compact-reference strong, .compact-reference span { display: block; font-size: 11px; }
.compact-reference span { color: var(--muted); }
.check-list { margin: 0; padding: 0; list-style: none; font-size: 11px; }
.check-list li { padding: 4px 0; }
.editor-toolbar { min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: #f8f2f1; }
.editor-toolbar div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.editor-toolbar button { padding: 5px 8px; border: 0; background: transparent; color: #5f5952; cursor: pointer; }
.editor-toolbar div > span { color: var(--muted); font-size: 10px; }
.editor-toolbar .ai-button { color: white; background: var(--red); }
.editor-toolbar .toolbar-divider { width: 1px; height: 20px; margin: 0 3px; background: #ded7d9; }
.editor-toolbar .editor-format-status { max-width: 190px; overflow: hidden; color: #9a8e92; text-overflow: ellipsis; white-space: nowrap; }
.editor-toolbar button.is-active { color: var(--red); background: white; box-shadow: inset 0 0 0 1px #d86b8a, 0 2px 7px rgba(132, 17, 49, .08); }
.editor-toolbar button:disabled { opacity: .34; cursor: not-allowed; }
.editor-toolbar button:focus-visible { outline: 2px solid #d86b8a; outline-offset: 2px; }
.document-editor { min-height: 760px; padding: 68px 9%; background: #fffefa; outline: none; }
.document-editor h1 { margin: 0 0 8px; font: 34px/1.4 SimSun, "宋体", serif; text-align: center; }
.editor-meta { margin-bottom: 38px !important; color: var(--muted); font-size: 11px !important; text-align: center; text-indent: 0 !important; }
.document-editor h2 { margin: 28px 0 8px; font: 21px SimSun, "宋体", serif; }
.document-editor h3 { margin: 22px 0 7px; font: 18px SimSun, "宋体", serif; }
.document-editor blockquote { margin: 18px 2em; padding: 8px 16px; border-left: 3px solid #b8a17f; color: #625b54; font: 15px/1.9 SimSun, "宋体", serif; }
.document-editor p { margin: 0 0 17px; font: 17px/2 SimSun, "宋体", serif; text-indent: 2em; }
.version-bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line); background: #fffdf9; }
.version-bar strong, .version-bar span { display: block; font-size: 10px; }
.version-bar strong { color: var(--red); }
.version-bar span { color: var(--muted); }
.reporter-return-brief { margin: 14px 16px 0; overflow: hidden; border: 1px solid #ecd9df; border-left: 3px solid var(--red); border-radius: 11px; background: linear-gradient(145deg,#fffafb,#fff6f8); box-shadow: 0 9px 24px rgba(111,24,49,.07); }
.reporter-return-brief > header { display: flex; padding: 15px 17px 12px; align-items: flex-start; justify-content: space-between; gap: 14px; border-bottom: 1px solid #f0e3e7; }
.reporter-return-brief h2 { margin: 4px 0 0; color: #34272c; font-size: 17px; }
.return-brief-badge { padding: 5px 9px; border-radius: 7px; color: #a84d2c; background: #ffede6; font-size: 9px; font-weight: 750; white-space: nowrap; }
.reporter-return-note { max-height: 230px; overflow: auto; padding: 15px 17px; color: #514448; font-size: 11px; line-height: 1.9; white-space: pre-wrap; }
.reporter-return-brief > footer { display: flex; min-height: 46px; padding: 9px 17px; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #f0e3e7; background: rgba(255,255,255,.66); }
.reporter-return-brief > footer p { margin: 0; color: #8b7c81; font-size: 9px; }
.return-brief-actions { display: flex; align-items: center; gap: 9px; }
.reporter-return-brief > footer button { border: 0; font: 700 9px var(--sans); cursor: pointer; white-space: nowrap; }
#btn-copy-return-note { padding: 0; background: transparent; color: var(--red); }
#btn-copy-return-note:hover { color: #7f0d2c; }
.reporter-return-brief > footer .return-ai-revise { display: inline-flex; min-height: 32px; padding: 0 12px; align-items: center; gap: 7px; border-radius: 8px; color: white; background: linear-gradient(135deg,#8d1233,#b3153e); box-shadow: 0 7px 16px rgba(141,18,51,.16); }
.reporter-return-brief > footer .return-ai-revise span { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 6px; color: #9e1237; background: white; font-size: 7px; }
.reporter-return-brief > footer .return-ai-revise:hover { background: linear-gradient(135deg,#750d2a,#9e1237); transform: translateY(-1px); }
.reporter-return-brief > footer .return-ai-revise:disabled { opacity: .55; box-shadow: none; cursor: wait; transform: none; }
.ai-result-group { margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(123,102,57,.16); }
.ai-result-group > strong { display: block; margin-bottom: 5px; }
.ai-result-group.applied > strong { color: #3c725e; }
.ai-result-group.pending > strong { color: #a25d25; }
.ai-result-group.applied li::before { content: '已处理·'; color: #4f806b; }
.ai-result-group.pending li::before { content: '待核实·'; color: #9a6f32; }
.writing-chat { border-top: 1px solid var(--line); background: #f7f3ec; }
.writing-chat-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 18px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.writing-chat-toggle strong, .writing-chat-toggle small { display: block; }
.writing-chat-toggle strong { color: var(--red); font-size: 12px; }
.writing-chat-toggle small { margin-top: 2px; color: var(--muted); }
.writing-chat-toggle em { color: var(--red); font-size: 10px; font-style: normal; }
.writing-chat-body { padding: 0 18px 16px; }
.writing-chat:not(.collapsed) .writing-chat-body { padding-top: 14px; border-bottom: 1px solid var(--line); }
.writing-chat.collapsed .writing-chat-body { display: none; }
.writing-chat-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--red); }
.writing-chat-heading button { border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.writing-chat textarea { width: 100%; padding: 12px; border: 1px solid #aaa39a; background: white; resize: vertical; }
.ai-live-output { max-height: 260px; overflow: auto; margin-bottom: 9px; padding: 14px 16px; border-left: 3px solid var(--red); background: white; color: #3f3934; font: 14px/1.8 SimSun, "宋体", serif; white-space: pre-wrap; }
.writing-chat-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.writing-chat-actions > span { flex: 1; }
.layout-options { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 14px 0; }
.layout-option { padding: 8px 10px; border: 1px solid var(--line); background: white; color: #5f5952; text-align: left; cursor: pointer; }
.layout-option.selected { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.plan-badge.live { background: #e5f0e7; color: #3f7350; }
.large-preview { margin: 12px 0; }
.active-slot { overflow: hidden; border: 2px solid var(--red); background: #fffdfa; }
.paper-slot > span { z-index: 2; }
.story-preview-content { position: absolute; inset: 24px 5px 5px; overflow: hidden; }
.story-preview-content > strong { display: -webkit-box; margin: 0 2px 5px; overflow: hidden; color: #28231f; font: 7px/1.25 SimSun, "宋体", serif; text-align: center; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.paper-slot.lead .story-preview-content > strong { font-size: 9px; }
.mini-copy { height: calc(100% - 20px); column-gap: 4px; column-rule: 1px solid #ddd6cc; }
.mini-copy.columns-1 { column-count: 1; }
.mini-copy.columns-2 { column-count: 2; }
.mini-copy.columns-3 { column-count: 3; }
.mini-copy i { display: block; width: var(--line-width); height: 2px; margin-bottom: 3px; background: #8b857e; opacity: .72; break-inside: avoid; }
.story-preview-content.is-overflow::after { content: ""; position: absolute; inset: auto 0 0; height: 24%; border-top: 1px dashed #bd211b; background: repeating-linear-gradient(135deg, rgba(189,33,27,.18), rgba(189,33,27,.18) 3px, transparent 3px, transparent 6px); }
.story-preview-content > em { position: absolute; right: 2px; bottom: 2px; z-index: 2; padding: 1px 3px; background: var(--red); color: white; font-size: 6px; font-style: normal; }
.template-visual .paper-grid { grid-template-columns: 1.25fr .75fr; grid-template-rows: 74px 92px 62px; }
.template-visual .paper-slot.image { grid-column: 1; grid-row: 1 / 3; }
.template-visual .paper-slot.lead { grid-column: 2; grid-row: 1 / 3; }
.template-visual .paper-slot.side { grid-column: 1; grid-row: 3; }
.template-visual .paper-slot.story { grid-column: 2; grid-row: 3; }
.template-column .paper-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: 54px 174px; }
.template-column .paper-slot.lead { grid-column: 1 / 4; grid-row: 1; }
.template-column .paper-slot.side { grid-column: 1; grid-row: 2; }
.template-column .paper-slot.image { grid-column: 2; grid-row: 2; }
.template-column .paper-slot.story { grid-column: 3; grid-row: 2; }
.template-column .story-preview-content { top: 20px; }
.template-column .story-preview-content > strong { margin-top: 0; font-size: 6px; }
.paper-legend { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--muted); font-size: 7px; }
.paper-legend i, .paper-legend b { display: inline-block; width: 9px; height: 6px; border: 1px solid var(--red); background: #fffdfa; }
.paper-legend b { margin-left: 5px; border-style: dashed; background: rgba(189,33,27,.18); }
.layout-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 10px; border: 1px solid var(--line); background: white; }
.layout-metrics span { padding: 7px 5px; color: var(--muted); font-size: 8px; text-align: center; border-right: 1px solid var(--line); }
.layout-metrics span:last-child { border-right: 0; }
.layout-metrics strong { display: block; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.table-tag.importance-high { border-color: #b51f1a; color: #b51f1a; background: #fff1ef; }
.table-tag.importance-medium { border-color: #aa7a32; color: #866020; background: #fff8e8; }
.table-tag.importance-low { border-color: #719079; color: #52705a; background: #f0f7f1; }
.layout-hint { padding: 10px; background: #f4efe7; color: var(--muted); font-size: 10px; }
.layout-hint strong { display: block; color: var(--red); }
.layout-studio select { height: 36px; font-size: 10px; }

/* ─── Review page ────────────────────────────────────── */
.review-score { display: flex; align-items: baseline; gap: 8px; }
.review-score strong { color: var(--red); font: 42px Georgia, serif; }
.review-score span { color: var(--muted); font-size: 11px; }
.review-title-actions { display: flex; min-width: 390px; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 18px; }
.review-action-buttons { display: flex; max-width: 360px; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.review-action-buttons .btn { min-width: 150px; white-space: nowrap; }
.page-title-row.review-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 146px;
  margin-bottom: 20px;
  padding: 14px 18px 23px 2px;
  align-items: end;
  gap: 38px;
  border-bottom: 1px solid #e6dfe1;
}
.review-heading-copy { min-width: 0; }
.review-page-header .review-heading-copy h1 {
  max-width: 980px;
  margin: 9px 0 7px;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.16;
  letter-spacing: -.04em;
}
.review-page-header .review-heading-copy p { max-width: 820px; color: #887d81; font-size: 13px; line-height: 1.65; }
.review-page-header .review-title-actions {
  display: grid;
  min-width: 0;
  grid-template-columns: 82px auto;
  align-items: stretch;
  gap: 12px;
}
.review-page-header .review-score {
  display: flex;
  width: 82px;
  min-height: 58px;
  padding: 8px 6px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #eadde1;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #fbf3f6);
}
.review-page-header .review-score strong { order: 1; color: var(--red); font: 750 26px/1 var(--sans); }
.review-page-header .review-score span { order: 2; color: #91868a; font-size: 8px; white-space: nowrap; }
.review-page-header .review-action-buttons {
  display: grid;
  max-width: none;
  grid-template-columns: repeat(3, auto);
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 8px;
}
.review-page-header .review-action-buttons .btn {
  min-width: 0;
  height: 58px;
  padding: 0 17px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: none;
}
.review-page-header .review-action-buttons #btn-run-review { min-width: 146px; box-shadow: 0 9px 22px rgba(137, 17, 52, .16); }
.review-page-header .review-action-buttons #btn-run-review span { margin-right: 5px; font-size: 10px; }
.review-page-header .review-action-buttons #btn-return-revision { min-width: 132px; color: #665b5f; background: #fff; }
.review-page-header .review-action-buttons #btn-finalize-review { min-width: 138px; background: #34735f; border-color: #34735f; }
.review-page-header .review-action-buttons #btn-finalize-review:hover:not(:disabled) { background: #285e4d; border-color: #285e4d; transform: translateY(-1px); }

@media (max-width: 1220px) {
  .page-title-row.review-page-header { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .review-page-header .review-title-actions { width: 100%; grid-template-columns: 82px minmax(0, 1fr); }
  .review-page-header .review-action-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .page-title-row.review-page-header { display: grid; min-height: 0; padding-right: 0; }
  .review-page-header .review-title-actions { grid-template-columns: 68px minmax(0, 1fr); }
  .review-page-header .review-score { width: 68px; }
  .review-page-header .review-action-buttons { grid-template-columns: 1fr 1fr; }
  .review-page-header .review-action-buttons #btn-run-review { grid-column: 1 / -1; }
  .review-page-header .review-action-buttons .btn { min-width: 0 !important; height: 48px; padding-inline: 10px; font-size: 10px; }
}
.review-return-panel { display: grid; grid-template-columns: 220px minmax(300px, 1fr) 112px; gap: 20px; margin: -4px 0 18px; padding: 20px 22px; align-items: center; border: 1px solid #e3cfd5; border-left: 3px solid var(--red); border-radius: 14px; background: linear-gradient(140deg,#fff 0,#fff8fa 70%,#f8eaee 100%); box-shadow: 0 14px 36px rgba(79,18,35,.07); }
.review-return-panel[hidden] { display: none; }
.review-return-panel strong { color: var(--ink); font-size: 14px; }
.review-return-panel p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.return-panel-intro { position: relative; padding-left: 47px; }
.return-agent-mark { position: absolute; top: 0; left: 0; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg,#72132f,#b51643); box-shadow: 0 8px 18px rgba(145,19,55,.2); font-size: 9px; font-weight: 800; letter-spacing: .5px; }
.return-compose { min-width: 0; }
.return-compose > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.return-compose > header > span { color: #766a6e; font-size: 9px; }
.return-compose > header b { color: var(--red); font-size: 11px; }
.return-compose > header button { display: inline-flex; height: 31px; padding: 0 11px; align-items: center; gap: 6px; border: 1px solid #d9b8c2; border-radius: 8px; background: #fff; color: #9e1940; font: 700 9px var(--sans); cursor: pointer; }
.return-compose > header button:hover { border-color: #b94a68; background: #fff5f8; }
.return-compose > header button:disabled { cursor: not-allowed; opacity: .45; }
.return-compose > header i { font-style: normal; }
.review-return-panel textarea { width: 100%; min-height: 92px; padding: 12px 14px; resize: vertical; border: 1px solid #d9ccd0; border-radius: 10px; background: white; color: var(--ink); font: 11px/1.75 var(--sans); }
.review-return-panel textarea:focus { outline: 0; border-color: #b94a68; box-shadow: 0 0 0 3px rgba(179,21,53,.07); }
.return-compose > small { display: block; margin-top: 6px; color: #978a8f; font-size: 8px; line-height: 1.5; }
.return-panel-actions { display: flex; flex-direction: column; gap: 7px; }
.btn-success { border-color: var(--success); background: var(--success); color: white; }
.btn-success:hover { filter: brightness(.93); }
.btn-danger { border-color: #b34a43; background: white; color: #9d3c36; }
.review-summary-grid, .knowledge-stats, .approval-overview { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.review-summary-grid > div, .knowledge-stats > div, .approval-overview > div { padding: 18px 21px; border-right: 1px solid var(--line); }
.review-summary-grid > div:last-child, .knowledge-stats > div:last-child, .approval-overview > div:last-child { border-right: 0; }
.review-summary-grid span, .knowledge-stats span, .approval-overview span { display: block; color: var(--muted); font-size: 10px; }
.review-summary-grid strong, .knowledge-stats strong, .approval-overview strong { display: inline-block; margin: 4px 0; font: 28px Georgia, serif; }
.review-summary-grid small, .knowledge-stats small, .approval-overview small { display: block; color: #8b837a; font-size: 10px; }
.risk-high { color: var(--red); }
.risk-ok { color: var(--success); }
.review-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: start; }
.comparison-panel, .issue-rail { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.comparison-panel { border-top: 3px solid var(--red); }
.comparison-tabs { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--line); background: #f7f3ec; }
.comparison-tabs button, .tab-bar button { padding: 12px 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.comparison-tabs button.active, .tab-bar button.active { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }
.comparison-tabs span { margin-left: auto; margin-right: 14px; color: var(--muted); font-size: 10px; }
.comparison-copy { min-height: 700px; padding: 54px 9%; font: 16px/2 SimSun, "宋体", serif; }
.comparison-copy h1 { font: 31px SimSun, "宋体", serif; text-align: center; }
.comparison-copy p { text-indent: 2em; }
.comparison-copy del { color: #9d3c36; background: #f8dedb; text-decoration-thickness: 1px; }
.comparison-copy ins { color: #356740; background: #dfeee2; text-decoration: none; }
.issue-rail { position: sticky; top: 17px; max-height: calc(100vh - 35px); overflow: auto; padding: 15px; }
.rail-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.rail-header h2 { margin: 0; font: 21px SimSun, "宋体", serif; }
.rail-header select { width: 110px; height: 32px; font-size: 10px; }
.issue-card.resolved { opacity: .55; box-shadow: inset 0 0 0 1px var(--success); }
.issue-card { position: relative; border-radius: 11px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.issue-card.is-processing { cursor: wait; box-shadow: inset 0 0 0 1px rgba(169,24,67,.2), 0 8px 20px rgba(77,24,41,.06); }
.issue-card.return-linked { border-color: #d9a3b3; background: #fff8fa; box-shadow: inset 0 0 0 1px rgba(177,20,61,.12), 0 8px 20px rgba(77,24,41,.055); }
.issue-card.return-linked::after { position: absolute; top: 0; right: 0; padding: 4px 7px; border-radius: 0 10px 0 8px; background: #a91843; color: #fff; content: '已关联'; font-size: 7px; font-weight: 700; }
.issue-card-heading { padding-right: 34px; }
.issue-return-toggle { display: flex; margin-top: 10px; padding: 8px 9px; align-items: center; border: 1px solid #e7dce0; border-radius: 8px; background: rgba(255,255,255,.75); color: #756a6e; cursor: pointer; }
.issue-return-toggle:hover { border-color: #d3aab6; color: #9d1c41; }
.issue-return-toggle input { width: 14px; height: 14px; margin: 0 7px 0 0; accent-color: #a91843; }
.issue-return-toggle span { font-size: 9px; font-weight: 650; }
.issue-return-toggle i { color: #ad2349; font-style: normal; }
.issue-return-toggle:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.issue-verify-link { display: inline-flex; height: 27px; padding: 0 9px; align-items: center; gap: 4px; border: 1px solid #e2d7da; border-radius: 7px; color: #8f2443; background: #fff; font: 700 8px/25px var(--sans); text-decoration: none; white-space: nowrap; }
.issue-verify-link:hover { border-color: #c86a82; background: #fff6f8; }
.issue-verify-link span { font-size: 12px; font-weight: 400; }
.issue-actions .issue-verify-link { margin-right: auto; }
.issue-archive-state { display: flex; margin-top: 11px; padding-top: 10px; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #eee8ea; }
.issue-archive-state > span { display: inline-flex; height: 24px; padding: 0 8px; align-items: center; border-radius: 6px; color: #27735d; background: #e9f4ef; font-size: 8px; font-weight: 700; }
.issue-archive-state.pending > span { color: #965a16; background: #fff1dc; }
.review-result-mode .issue-card.archive-pending { border-color: #d7a45e; background: #fffcf7; box-shadow: inset 0 0 0 1px rgba(199,139,57,.12); }
.archive-decision-actions { padding-top: 9px; border-top: 1px solid #eee8ea; }
.review-result-mode #btn-run-review, .review-result-mode #btn-return-revision, .review-result-mode #btn-finalize-review { display: none; }
.review-result-mode .review-action-buttons { display: flex; }
.review-result-mode .issue-card.resolved { opacity: 1; box-shadow: none; }
.review-result-mode .issue-card { background: #fff; }
.review-archive-badge { display: flex; min-width: 176px; height: 58px; padding: 0 15px; align-items: center; gap: 10px; border: 1px solid #cfe0d9; border-radius: 11px; background: linear-gradient(145deg, #f8fcfa, #edf6f2); }
.review-archive-badge > span { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #fff; background: #34735f; font-size: 12px; }
.review-archive-badge strong, .review-archive-badge small { display: block; white-space: nowrap; }
.review-archive-badge strong { color: #31584c; font-size: 10px; }
.review-archive-badge small { margin-top: 2px; color: #799087; font-size: 7px; }

/* ─── Knowledge page ─────────────────────────────────── */
.knowledge-table-card { overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.tab-bar { display: flex; align-items: center; }
.tab-bar em { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 4px; border-radius: 9px; background: var(--red); color: white; font-size: 9px; font-style: normal; }
.table-search { display: flex; gap: 8px; }
.table-search input { width: 230px; height: 34px; font-size: 11px; }
.table-search select { height: 34px; border: 1px solid #aaa39a; background: white; font-size: 11px; }
.data-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.data-table th { padding: 12px 15px; background: #f6eeee; color: #6d6060; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-align: left; }
.data-table td { padding: 15px; border-bottom: 1px solid var(--line); color: #5e5851; font-size: 11px; vertical-align: middle; }
.data-table td strong { display: block; margin-bottom: 3px; color: var(--ink); font: 15px SimSun, "宋体", serif; }
.data-table td small { color: var(--muted); }
.data-table th:nth-child(1), .data-table td:nth-child(1) { width: 44%; }
.data-table th:nth-child(2), .data-table td:nth-child(2) { width: 15%; }
.data-table th:nth-child(3), .data-table td:nth-child(3) { width: 14%; }
.data-table th:nth-child(4), .data-table td:nth-child(4) { width: 8%; }
.data-table th:nth-child(5), .data-table td:nth-child(5) { width: 9%; }
.data-table th:nth-child(6), .data-table td:nth-child(6) { width: 10%; text-align: center; white-space: nowrap; }
.data-table td:nth-child(6) button { display: inline-flex; min-height: 30px; padding: 0 9px; align-items: center; justify-content: center; border-radius: 7px; }
.data-table td { overflow-wrap: anywhere; }
.data-table td:nth-child(3), .data-table td:nth-child(4), .data-table td:nth-child(6) { overflow-wrap: normal; word-break: keep-all; }
.state-dot { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.state-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #999; }
.state-dot.active::before { background: var(--success); }
.state-dot.pending::before { background: var(--gold); }
.state-dot.danger::before { background: var(--red); }
.state-dot.off::before { background: #aaa; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; color: var(--muted); font-size: 10px; }
.table-footer button { min-width: 28px; padding: 4px 7px; color: #665f58; border: 1px solid var(--line); }
.table-footer button.current { color: white; background: var(--red); border-color: var(--red); }
.review-modal .knowledge-defer-action { border-color: #d9c39e; color: #8b621e; background: #fffaf0; }
.review-modal .knowledge-defer-action:hover { border-color: #c9a664; background: #fff5df; }

/* ─── Approval progress ──────────────────────────────── */
.approval-overview > div { cursor: pointer; }
.approval-overview > div.selected { background: #f8f0e7; box-shadow: inset 0 -3px var(--red); }
.approval-layout { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 18px; align-items: start; }
.approval-list { overflow: hidden; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.list-toolbar strong { font: 18px SimSun, "宋体", serif; }
.list-toolbar select { width: 100px; height: 30px; font-size: 10px; }
.approval-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 13px; padding: 17px; border-bottom: 1px solid var(--line); cursor: pointer; }
.approval-item.selected { background: #f8f2e8; box-shadow: inset 3px 0 var(--red); }
.approval-item.returned { background: #fff8f7; }
.approval-date { text-align: center; }
.approval-date strong, .approval-date span { display: block; }
.approval-date strong { color: var(--red); font: 25px Georgia, serif; }
.approval-date span { color: var(--muted); font-size: 9px; }
.approval-item h2 { margin: 4px 0; font: 17px SimSun, "宋体", serif; }
.approval-item p, .approval-item small { display: block; margin: 0; color: #655e57; font-size: 10px; }
.approval-item small { color: var(--muted); }
.approval-item > .state-dot { align-self: start; }
.approval-detail { padding: 23px; }
.detail-heading { display: flex; align-items: start; justify-content: space-between; padding-bottom: 15px; border-bottom: 2px solid var(--ink); }
.detail-heading h2 { margin: 5px 0 0; font: 25px SimSun, "宋体", serif; }
.approval-progress { position: relative; margin: 30px 12px 24px; }
.progress-line { position: absolute; top: 15px; left: 8%; width: 84%; height: 2px; background: #d6cfc5; }
.progress-line span { display: block; height: 100%; background: var(--red); }
.progress-nodes { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.progress-nodes > div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.progress-nodes i { width: 31px; height: 31px; display: grid; place-items: center; border: 2px solid #c8c0b6; border-radius: 50%; background: var(--paper); color: #8f877e; font: normal 12px Georgia, serif; }
.progress-nodes .done i { color: white; border-color: var(--success); background: var(--success); }
.progress-nodes .active i { color: white; border-color: var(--red); background: var(--red); box-shadow: 0 0 0 5px var(--red-soft); }
.progress-nodes strong { margin-top: 7px; font: 12px SimSun, "宋体", serif; }
.progress-nodes span, .progress-nodes small { color: var(--muted); font-size: 9px; }
.current-step-card { display: grid; grid-template-columns: 1fr 220px; gap: 20px; padding: 18px; background: #f6f1e8; border-left: 3px solid var(--red); }
.current-step-card h3 { margin: 8px 0 4px; font: 20px SimSun, "宋体", serif; }
.current-step-card p { margin: 0; color: var(--muted); font-size: 11px; }
.current-step-card dl { display: grid; grid-template-columns: 65px 1fr; gap: 4px 8px; margin: 0; font-size: 10px; }
.current-step-card dt { color: var(--muted); }
.current-step-card dd { margin: 0; }
.approval-history { margin-top: 25px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.section-heading h3 { margin: 0 0 9px; font: 18px SimSun, "宋体", serif; }
.history-item { display: grid; grid-template-columns: 13px 1fr; gap: 11px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.history-item > i { width: 8px; height: 8px; margin-top: 6px; border: 2px solid white; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.history-item strong { display: inline-block; margin-right: 10px; font-size: 12px; }
.history-item span { color: var(--muted); font-size: 9px; }
.history-item p { margin: 6px 0; color: #625c55; font-size: 11px; }
.history-files button { padding: 3px 7px; border: 1px solid #d0c8bd; color: #655e57; font-size: 9px; }

/* ─── Live knowledge ingestion ───────────────────────── */
.empty-cell { padding: 46px !important; color: var(--muted) !important; text-align: center !important; }
.error-detail { display: block; max-width: 190px; margin-top: 5px; color: var(--red) !important; }
.error-text { color: var(--red) !important; }
.success-text { color: var(--success) !important; }
.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(22, 19, 16, .62); }
.article-modal { width: min(820px, 100%); max-height: calc(100vh - 44px); overflow: auto; padding: 27px; background: var(--paper); border-top: 4px solid var(--red); box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.article-modal > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.article-modal h2 { margin: 4px 0 3px; font: 27px SimSun, "宋体", serif; }
.article-modal header p { margin: 0; color: var(--muted); font-size: 11px; }
.modal-close { border: 0; background: transparent; color: #746c64; font: 30px/1 Georgia, serif; cursor: pointer; }
.file-drop { display: grid; grid-template-columns: 1fr auto; gap: 2px 15px; padding: 18px; border: 1px dashed #b6aca1; background: #f8f4ed; cursor: pointer; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop strong { color: var(--red); font-size: 13px; }
.file-drop span { color: var(--muted); font-size: 10px; }
.file-drop em { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #665f58; font-size: 10px; font-style: normal; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 17px; }
.form-grid label, .content-field { color: #5e5851; font-size: 11px; font-weight: 700; }
.form-grid input, .form-grid select { width: 100%; height: 38px; margin-top: 5px; padding: 0 11px; border: 1px solid #aaa39a; border-radius: 0; background: white; }
.content-field { display: block; position: relative; margin-top: 15px; }
.content-field textarea { margin-top: 5px; font-size: 14px; line-height: 1.75; }
.content-field small { position: absolute; right: 10px; bottom: 7px; padding: 1px 4px; background: white; color: var(--muted); font-weight: 400; }
.analysis-explain { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; padding: 10px 12px; background: #f3eee5; }
.analysis-explain strong { margin-right: 6px; color: var(--red); font-size: 10px; }
.analysis-explain span { padding: 1px 6px; border: 1px solid #cbc2b6; color: #685f57; font-size: 9px; }
.form-message { min-height: 20px; margin: 8px 0; color: var(--muted); font-size: 11px; }
.form-message.active::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border: 1px solid #c6beb4; border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
.article-modal > footer { display: flex; justify-content: flex-end; gap: 9px; padding-top: 13px; border-top: 1px solid var(--line); }
.reference-original-modal { width: min(1050px, 100%); }
.reference-original-modal .original-copy { max-height: 65vh; overflow: auto; padding: 32px 8%; }
.version-modal { width: min(1120px, 100%); }
.version-picker { display: flex; align-items: end; gap: 12px; margin-bottom: 14px; padding: 13px; background: #f5f0e7; }
.version-picker label { flex: 1; color: var(--muted); font-size: 10px; }
.version-picker select { display: block; width: 100%; height: 36px; margin-top: 4px; }
.version-timeline { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 7px; }
.version-chip { min-width: 120px; padding: 8px 10px; border: 1px solid var(--line); background: white; }
.version-chip strong, .version-chip span { display: block; font-size: 10px; }
.version-chip span { margin-top: 3px; color: var(--muted); }
.version-chip button { margin-top: 7px; padding: 3px 6px; border: 1px solid var(--line); background: white; color: var(--red); font-size: 9px; cursor: pointer; }
.version-chip button:disabled { color: var(--muted); cursor: default; }
.version-diff { min-height: 280px; max-height: 48vh; overflow: auto; padding: 22px 28px; border: 1px solid var(--line); font: 14px/1.9 SimSun, "宋体", serif; white-space: pre-wrap; }
.version-diff del { color: #9d3c36; background: #f8dedb; }
.version-diff ins { color: #356740; background: #dfeee2; text-decoration: none; }
.version-reflection { margin-top: 13px; padding: 18px; border: 1px solid #cfbda4; background: #faf5ec; }
.version-reflection h3 { margin: 0 0 7px; color: var(--red); font: 18px SimSun, "宋体", serif; }
.reflection-item { margin-top: 10px; padding: 12px; border-left: 3px solid #a9926e; background: white; }
.reflection-item p { margin: 5px 0 9px; font-size: 11px; line-height: 1.7; }
.reflection-permission-note { display: inline-flex; align-items: center; gap: 7px; color: #756d67; font-size: 10px; }
.reflection-permission-note i { padding: 3px 7px; border-radius: 999px; background: #f1ece7; color: #8b7f77; font-style: normal; }
.draft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.draft-grid > .search-empty,
.draft-control-table > .search-empty { display: grid; min-height: clamp(260px, 45vh, 480px); grid-column: 1 / -1; place-content: center; justify-items: center; width: 100%; padding: 32px 24px; }
.draft-card { display: flex; min-height: 230px; flex-direction: column; padding: 20px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); cursor: pointer; }
.draft-card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.draft-card:hover { transform: translateY(-2px); border-color: #cfaab2; box-shadow: 0 18px 42px rgba(71, 46, 43, .11); }
.draft-card > div, .draft-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.draft-card span, .draft-card time { color: var(--muted); font-size: 9px; }
.draft-card h2 { margin: 16px 0 8px; overflow-wrap: anywhere; font: 21px/1.45 SimSun, "宋体", serif; }
.draft-card > p { flex: 1; overflow-wrap: anywhere; color: #625b54; font-size: 11px; line-height: 1.8; }
.draft-card footer { padding-top: 12px; border-top: 1px solid var(--line); }
.draft-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.draft-actions .draft-knowledge-state:disabled { opacity: 1; border: 1px solid #ded9d5; color: #8f8883; background: #f2f0ed; cursor: default; }
.draft-actions .draft-knowledge-state.is-active:disabled::before { content: '✓'; margin-right: 5px; color: #77716d; font-weight: 800; }
.draft-card-meta > div { display: flex; align-items: center; gap: 10px; }
.draft-open-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 0; border-radius: 7px; color: var(--red); background: var(--red-soft); font-size: 9px; cursor: pointer; }
.draft-open-toggle i { font-style: normal; transition: transform .18s ease; }
.draft-open-toggle:hover i { transform: translate(1px, -1px); }
.draft-reader-modal { width: min(980px, calc(100% - 36px)); max-height: min(88vh, 900px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border: 1px solid #e5dadd; border-radius: 18px; background: #fff; box-shadow: 0 32px 100px rgba(45, 19, 28, .28); }
.draft-reader-modal > header { position: relative; padding: 27px 34px 21px; border-bottom: 1px solid #ece6e7; background: linear-gradient(120deg, #fff, #fcf6f8); }
.draft-reader-modal > header h2 { max-width: 820px; margin: 7px 48px 10px 0; font: 720 28px/1.35 var(--sans); letter-spacing: -.035em; }
.draft-reader-modal > header .modal-close { position: absolute; top: 22px; right: 24px; }
.draft-reader-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.draft-reader-meta > span:not(.story-status) { padding: 3px 8px; border-radius: 6px; color: #776d70; background: #f4f0f1; font-size: 9px; }
.draft-reader-body { overflow: auto; padding: 34px clamp(30px, 7vw, 86px) 42px; scrollbar-color: #d7c3c8 transparent; }
.draft-reader-body p { max-width: 780px; margin: 0 auto 1.05em; color: #342f31; font: 16px/2.05 var(--serif); text-align: justify; }
.draft-reader-body .draft-full-empty { color: var(--muted); text-align: center; }
.draft-reader-modal > footer { display: flex; align-items: center; gap: 9px; padding: 13px 22px; border-top: 1px solid #ece6e7; background: #faf8f8; }
.draft-reader-modal > footer > span { margin-right: auto; color: var(--muted); font-size: 9px; }
.draft-reader-modal > footer > div { display: flex; gap: 8px; }
.draft-return-note { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: start !important; justify-content: initial !important; gap: 9px !important; margin: 10px 0 13px; padding: 10px 12px; border-left: 3px solid #d46a43; border-radius: 8px; background: #fff4ef; }
.draft-return-note strong { color: #a64729; font-size: 9px; white-space: nowrap; }
.draft-return-note span { display: -webkit-box; overflow: hidden; color: #765d53; font-size: 9px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.review-modal { width: min(980px, 100%); }
.review-tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.review-tabs button { padding: 9px 18px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); }
.review-tabs button.active { border-bottom-color: var(--red); color: var(--red); font-weight: 700; }
.review-pane { max-height: 55vh; overflow: auto; padding: 2px 4px 16px; }
.review-summary { margin-bottom: 14px; padding: 14px 16px; background: #f6f1e9; }
.review-summary label, .review-facts label { display: block; margin-bottom: 7px; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.review-summary p, .review-summary ol { margin: 0; color: #49433d; font-size: 12px; line-height: 1.8; }
.review-facts { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-bottom: 14px; }
.review-facts > div { padding: 14px 16px; border: 1px solid var(--line); }
.review-facts p { margin: 0; font-size: 11px; line-height: 1.8; }
.candidate-rule { margin-top: 8px; padding: 10px 12px; border-left: 3px solid #b9aa95; background: white; }
.candidate-rule p { margin-top: 3px; }
.original-copy { min-height: 320px; padding: 20px 24px; background: white; border: 1px solid var(--line); color: #2f2b27; font: 15px/2 SimSun, "宋体", serif; white-space: pre-wrap; }
.review-hint { align-self: center; margin-right: auto; color: var(--muted); font-size: 10px; }
.writing-start textarea { width: 100%; margin-top: 6px; padding: 9px; border: 1px solid var(--line); resize: vertical; }
.writing-start-actions { display: flex; gap: 7px; margin-top: 8px; }
.import-draft { position: relative; cursor: pointer; }
.import-draft input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ai-writing-result { padding: 12px 18px; border-bottom: 1px solid var(--line); background: #f7f2e9; color: #4d4740; font-size: 11px; line-height: 1.7; }
.ai-writing-result summary { color: var(--red); font-weight: 700; cursor: pointer; }
.ai-writing-result p { margin: 8px 0 0; }
.ai-writing-result strong { color: var(--red); }
.ai-writing-result ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.ai-writing-result li::before { content: '待核实·'; color: #9a6f32; }
.ai-editor-status { padding: 25px !important; color: var(--red); text-align: center; text-indent: 0 !important; animation: pulse 1.2s ease-in-out infinite; }
.editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; border-top: 1px solid var(--line); background: #f7f3ec; }
.editor-primary-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.btn-delete-draft { padding-inline: 9px; border-color: transparent; color: #9a686d; background: transparent; font-size: 11px; }
.btn-delete-draft::before { content: '×'; display: inline-grid; width: 17px; height: 17px; margin-right: 5px; place-items: center; border: 1px solid currentColor; border-radius: 50%; line-height: 1; }
.btn-delete-draft:hover { border-color: #ead1d5; color: #a51c37; background: #fff5f6; }
.delete-draft-modal { position: relative; width: min(440px, calc(100% - 32px)); padding: 34px; border: 1px solid #eadde0; border-radius: 18px; background: #fff; box-shadow: 0 28px 90px rgba(55, 20, 30, .24); text-align: center; }
.delete-draft-modal .modal-close { position: absolute; top: 14px; right: 15px; }
.delete-draft-icon { width: 52px; height: 52px; display: grid; margin: 0 auto 14px; place-items: center; border-radius: 16px; color: #a51c37; background: #fbeaec; font-size: 16px; font-weight: 800; }
.delete-draft-modal h2 { margin: 7px 0 8px; font: 680 25px/1.3 var(--sans); letter-spacing: -.03em; }
.delete-draft-modal > p { margin: 0 auto; max-width: 340px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.delete-draft-target { margin: 20px 0; padding: 13px 15px; border: 1px solid #eee6e7; border-radius: 10px; background: #faf8f8; text-align: left; }
.delete-draft-target span, .delete-draft-target strong { display: block; }
.delete-draft-target span { margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.delete-draft-target strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.delete-draft-modal footer { display: flex; justify-content: flex-end; gap: 9px; }
.btn-danger-solid { color: #fff; border-color: #a51c37; background: #a51c37; }
.btn-danger-solid:hover:not(:disabled) { border-color: #7d0d25; background: #7d0d25; }
.live-result-list { min-height: 260px; }
.search-empty { padding: 62px 24px; color: var(--muted); text-align: center; }
.search-empty strong { display: block; color: var(--ink); font: 18px SimSun, "宋体", serif; }
.search-empty p { margin: 6px 0; font-size: 11px; }
.search-empty a { color: var(--red); font-size: 11px; }
.preview-copy.expanded { max-height: 560px; overflow: auto; }
.preview-copy.expanded::after { display: none; }
.agent-connection-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 14px; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--red); background: linear-gradient(90deg, var(--rose-soft), var(--paper) 42%); box-shadow: var(--shadow-soft); }
.agent-connection-card h2 { margin: 3px 0 4px; font: 19px SimSun, "宋体", serif; }
.agent-connection-card p { margin: 0; color: var(--muted); font-size: 11px; }
.agent-connection-actions { display: flex; align-items: center; gap: 11px; }
.agent-connection-actions code { max-width: 180px; overflow: hidden; color: #675f57; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 980px) {
  .workspace { grid-template-columns: 1fr; }
  .edition-panel { position: static; display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
  .edition-heading { grid-column: 1 / 3; }
  .paper-sheet { grid-row: 2 / 4; }
  .step-nav { overflow-x: auto; grid-template-columns: repeat(4, minmax(160px, 1fr)); }
  .nav-note { display: none; }
  .knowledge-strip { grid-template-columns: 1fr; }
  .knowledge-items { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 190px 1fr; }
  .article-preview { position: static; grid-column: 1 / 3; }
  .writing-shell { grid-template-columns: 220px 1fr; }
  .layout-studio { position: static; grid-column: 1 / 3; }
  .review-workbench { grid-template-columns: 1fr; }
  .issue-rail { position: static; max-height: none; }
  .approval-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .app-header { height: auto; padding: 18px 20px; align-items: flex-start; flex-direction: column; gap: 14px; }
  .header-status { width: 100%; flex-wrap: wrap; }
  .brand-en, .project-name { display: none; }
  .logo { font-size: 30px; }
  .brand-logo { height: 54px; }
  .logo small { padding-left: 11px; font-size: 12px; letter-spacing: 1px; }
  .primary-nav { padding: 0 20px; gap: 18px; overflow-x: auto; }
  .primary-nav a { white-space: nowrap; }
  .workspace { width: calc(100% - 20px); margin: 10px auto; }
  .edition-panel { display: none; }
  .input-hero, .stage-container { padding: 30px 21px; }
  .input-hero::before { top: 30px; left: 10px; height: 72px; width: 3px; }
  .input-hero::after { bottom: 14px; font-size: 24px; }
  .input-actions, .result-heading { align-items: stretch; flex-direction: column; }
  .two-column, .draft-layout, .review-layout { grid-template-columns: 1fr; }
  .reference-card { grid-template-columns: 36px 1fr; }
  .select-reference { grid-column: 2; }
  .knowledge-strip { width: calc(100% - 20px); }
  .knowledge-items { grid-template-columns: 1fr; }
  .page-shell { width: calc(100% - 20px); margin-top: 14px; }
  .page-title-row { align-items: stretch; flex-direction: column; }
  .agent-connection-card, .agent-connection-actions { align-items: flex-start; flex-direction: column; }
  .search-band { align-items: stretch; flex-direction: column; }
  .catalog-layout, .writing-shell { width: 100%; grid-template-columns: 1fr; }
  .filter-panel, .writing-config, .layout-studio, .article-preview { position: static; }
  .article-preview, .layout-studio { grid-column: auto; }
  .article-result { grid-template-columns: 35px 1fr; }
  .result-check { grid-column: 2; }
  .review-summary-grid, .knowledge-stats, .approval-overview { grid-template-columns: repeat(2, 1fr); }
  .review-summary-grid > div:nth-child(2), .knowledge-stats > div:nth-child(2), .approval-overview > div:nth-child(2) { border-right: 0; }
  .table-toolbar { align-items: stretch; flex-direction: column; padding: 0 10px 12px; }
  .tab-bar { overflow-x: auto; }
  .tab-bar button { white-space: nowrap; }
  .table-search input { width: 100%; }
  .knowledge-table-card { overflow-x: auto; }
  .data-table { min-width: 820px; }
  .current-step-card { grid-template-columns: 1fr; }
  .approval-progress { overflow-x: auto; padding-bottom: 7px; }
  .progress-nodes { min-width: 560px; }
  .form-grid { grid-template-columns: 1fr; }
  .file-drop { grid-template-columns: 1fr; }
  .file-drop em { grid-column: auto; grid-row: auto; }
  .model-settings-trigger { min-width: auto; }
  .model-settings-trigger span { display: none; }
  .model-option-list { grid-template-columns: 1fr; padding: 12px 16px; }
  .model-settings-panel > header, .model-settings-panel > footer { padding-left: 16px; padding-right: 16px; }
  .model-plan-note { margin-left: 16px; margin-right: 16px; }
}

/* ─── Modern editorial workspace ────────────────────── */
:root {
  --paper: #ffffff;
  --paper-deep: #f7f3f4;
  --canvas: #f5f3f4;
  --ink: #1f1b1d;
  --muted: #756d71;
  --line: #e8e1e3;
  --line-strong: #d4c8cc;
  --red: #a70f3b;
  --red-dark: #6f0828;
  --red-soft: #f9eaf0;
  --rose: #d66b89;
  --rose-soft: #fdf5f7;
  --gold: #a98052;
  --success: #397259;
  --warning: #a06d24;
  --shadow: 0 16px 45px rgba(44, 25, 33, .07);
  --shadow-soft: 0 8px 24px rgba(44, 25, 33, .055);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 11px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 0, rgba(167, 15, 59, .035), transparent 28rem),
    linear-gradient(180deg, #faf9f9 0, var(--canvas) 38rem);
  color: var(--ink);
  letter-spacing: .005em;
}

.brand-line {
  height: 3px;
  background: linear-gradient(90deg, #56051f, var(--red) 58%, #df8ba3);
}

.app-header {
  height: 86px;
  padding-inline: max(28px, calc((100vw - 1400px) / 2));
  background: rgba(255,255,255,.98);
  border-bottom-color: #eee9ea;
}

.brand-block { gap: 20px; }
.logo { gap: 14px; font-size: 31px; letter-spacing: 2px; }
.brand-logo { height: 62px; }
.logo small {
  padding-block: 5px;
  padding-left: 14px;
  color: #3b3437;
  border-left-color: #d9cfd2;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 1.4px;
}
.brand-en { color: #a09699; font-size: 8px; letter-spacing: 2px; }
.header-status { gap: 9px; }
.save-state, .sync-state, .project-name { color: #8d8387; }

.primary-nav {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 54px;
  gap: 8px;
  padding-inline: max(28px, calc((100vw - 1400px) / 2));
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(223, 214, 217, .82);
  box-shadow: 0 8px 24px rgba(37, 21, 28, .035);
  backdrop-filter: blur(18px) saturate(1.3);
}
.primary-nav a {
  margin: 7px 1px;
  padding: 8px 15px;
  border: 0;
  border-radius: 9px;
  color: #5a5255;
  font-size: 13px;
  letter-spacing: 0;
}
.primary-nav a:hover { color: var(--red); background: var(--rose-soft); }
.primary-nav a.active { color: white; background: var(--red); box-shadow: 0 7px 18px rgba(137, 8, 47, .16); }
.nav-note { color: #968d90; font-size: 11px; }

.model-settings-trigger {
  min-width: 128px;
  height: 38px;
  padding-inline: 12px;
  border-color: var(--line);
  border-radius: 10px;
  background: #f9f7f8;
}
.model-settings-trigger:hover { background: var(--rose-soft); }

.workspace {
  width: min(1400px, calc(100% - 48px));
  grid-template-columns: 304px minmax(0, 1fr);
  gap: 20px;
  margin: 24px auto 32px;
}
.edition-panel, .content-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.content-panel { overflow: hidden; background: rgba(255,255,255,.96); }
.edition-panel {
  overflow: hidden;
  padding: 24px;
  border: 0;
  background:
    radial-gradient(circle at 105% -5%, rgba(229, 126, 157, .28), transparent 42%),
    linear-gradient(155deg, #42101f 0%, #21141a 76%);
  color: white;
  box-shadow: 0 22px 50px rgba(52, 14, 29, .18);
}
.edition-panel .kicker { color: #f1b6c7; background: rgba(255,255,255,.08); }
.edition-panel .edition-copy { color: rgba(255,255,255,.62); }
.edition-panel .plan-badge { color: #f5d8aa; background: rgba(234, 192, 128, .13); }
.edition-panel .btn-outline { color: white; border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.05); }

.paper-sheet {
  padding: 14px;
  border: 0;
  border-radius: 5px;
  box-shadow: 0 16px 35px rgba(12, 4, 8, .28);
}
.paper-masthead { font-size: 24px; }

.step-nav {
  gap: 8px;
  padding: 10px;
  background: #f8f6f7;
  border-bottom-color: var(--line);
}
.step-btn {
  min-height: 64px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
}
.step-btn:hover:not(:disabled) { color: var(--red); background: white; }
.step-btn.active { color: var(--red); border-color: #efd8df; background: white; box-shadow: var(--shadow-soft); }
.step-icon { width: 30px; height: 30px; flex-basis: 30px; border: 0; background: #ece7e9; font-family: var(--sans); font-size: 12px; font-weight: 700; }
.step-btn.active .step-icon { color: white; background: var(--red); }
.step-name { font-family: var(--sans); font-size: 13px; }

.input-hero { min-height: 600px; padding: 66px 68px; background: linear-gradient(145deg, #fff 30%, #fdf8fa 100%); }
.input-hero::before {
  top: -170px;
  left: auto;
  right: -140px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 107, 137, .16), rgba(167, 15, 59, .025) 58%, transparent 70%);
}
.input-hero::after { right: 34px; bottom: 26px; color: rgba(91, 17, 42, .045); font-size: 34px; content: "EDITORIAL INTELLIGENCE"; }
.input-hero h1 { margin-top: 13px; font-family: var(--sans); font-size: clamp(38px, 4vw, 52px); font-weight: 720; letter-spacing: -.04em; }
.lead-copy { max-width: 760px; color: #696064; font-size: 15px; }
.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--red-soft);
  font-size: 9px;
  letter-spacing: 1.5px;
}
.ability-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border: 0; }
.ability-strip span { padding: 11px 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.82); font-family: var(--sans); font-size: 12px; }

textarea,
.search-input input,
.table-search input,
.writing-config select,
.layout-studio select,
.result-toolbar select,
.issue-rail select,
.list-toolbar select,
.form-grid input,
.form-grid select {
  border-color: var(--line-strong);
  border-radius: 10px;
  background: #fff;
}
textarea:focus,
.search-input input:focus,
.table-search input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(167, 15, 59, .07); }

.btn { border-radius: 9px; font-weight: 550; }
.btn-primary { background: linear-gradient(135deg, #b21745, #8e0c34); box-shadow: 0 7px 16px rgba(137, 8, 47, .12); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #970f39, #680723); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.9); }
.btn-outline { border-radius: 9px; }
.plan-badge, .status-pill, .badge, .table-tag { border-radius: 999px; }

.source-card, .context-note, .two-column section, .draft-layout aside, .preview-outline, .issue-card, .review-summary, .ai-writing-result, .layout-hint {
  border-radius: var(--radius-md);
}
.source-card { border-left: 0; background: linear-gradient(110deg, var(--red-soft), #faf8f8); }
.context-note, .two-column section, .draft-layout aside, .preview-outline { background: #f8f6f7; }

.knowledge-strip {
  width: min(1400px, calc(100% - 48px));
  margin-bottom: 48px;
  padding: 32px 38px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 15%, rgba(226, 121, 151, .24), transparent 28%),
    linear-gradient(125deg, #32101d, #1e171a 72%);
  box-shadow: 0 24px 55px rgba(47, 16, 28, .14);
}

.page-shell { width: min(1400px, calc(100% - 48px)); margin-top: 34px; }
.page-title-row { margin-bottom: 22px; padding: 8px 2px 17px; border: 0; }
.page-title-row::before { display: none; }
.page-title-row h1 { margin-top: 8px; font-family: var(--sans); font-size: 38px; font-weight: 720; letter-spacing: -.035em; }
.page-title-row p { max-width: 760px; font-size: 14px; }
.search-band {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-soft);
}

.filter-panel, .catalog-results, .article-preview, .knowledge-table-card, .approval-list, .approval-detail,
.writing-config, .editor-panel, .layout-studio,
.comparison-panel, .issue-rail,
.review-summary-grid, .knowledge-stats, .approval-overview,
.draft-card, .agent-connection-card {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.filter-panel, .catalog-results, .article-preview, .writing-config, .layout-studio, .issue-rail { padding: 20px; }
.panel-heading h2, .article-preview h2, .agent-connection-card h2, .rail-header h2 { font-family: var(--sans); font-weight: 680; letter-spacing: -.02em; }
.edition-heading h2,
.knowledge-strip h2,
.stage-intro h2,
.result-heading h2,
.two-column h3,
.draft-layout h3,
.suggested-paper h3,
.reference-card h3,
.result-toolbar strong,
.result-body h2,
.draft-card h2,
.model-settings-panel h2,
.article-modal h2,
.detail-heading h2,
.current-step-card h3,
.list-toolbar strong,
.section-heading h3,
.search-empty strong,
.knowledge-items strong {
  font-family: var(--sans);
  font-weight: 680;
  letter-spacing: -.02em;
}
.article-result { margin: 3px 0; border-bottom-color: #eee9eb; border-radius: 12px; }
.article-result:hover { background: #fbf7f8; }
.article-result.selected { margin: 3px 0; padding: 20px 12px; background: var(--red-soft); box-shadow: inset 3px 0 var(--red); }
.article-preview { top: 72px; }
.next-action { border-radius: 9px; }

.writing-shell { width: min(1540px, calc(100% - 32px)); gap: 18px; grid-template-columns: 270px minmax(540px, 1fr) 310px; }
.writing-config, .layout-studio { top: 72px; }
.editor-panel { overflow: hidden; border-top: 0; }
.editor-toolbar, .version-bar, .writing-chat, .editor-actions { background: #f8f6f7; }
.editor-toolbar button { border-radius: 7px; }
.editor-toolbar button:hover { color: var(--red); background: white; }
.editor-toolbar .ai-button { border-radius: 7px; background: var(--red); }
.document-editor { background: #fff; }
.active-slot { border-color: var(--red); border-radius: 3px; }

.comparison-panel { overflow: hidden; border-top: 0; }
.comparison-tabs { background: #f8f6f7; }
.issue-card { border-left-width: 4px; background: #faf8f8; }
.review-summary-grid, .knowledge-stats, .approval-overview { overflow: hidden; background: white; }
.review-summary-grid > div, .knowledge-stats > div, .approval-overview > div { padding: 21px 23px; }

.knowledge-table-card { overflow: hidden; }
.data-table th { background: #f6f3f4; color: #766c70; }
.data-table tbody tr { transition: background .16s ease; }
.data-table tbody tr:hover { background: #fcf8fa; }
.agent-connection-card { border-left: 0; background: linear-gradient(110deg, #fff, #fcf4f7); }

.model-settings-panel, .article-modal {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 90px rgba(34, 15, 23, .24);
}
.article-modal { border-top: 0; }
.model-option, .version-chip, .review-facts > div, .original-copy { border-radius: 10px; }
.model-option:hover, .model-option.selected { background: var(--red-soft); }
.modal-backdrop { background: rgba(26, 17, 21, .58); backdrop-filter: blur(8px); }

@media (max-width: 980px) {
  .workspace, .knowledge-strip, .page-shell { width: calc(100% - 32px); }
  .writing-shell { width: calc(100% - 24px); }
  .primary-nav { overflow-x: auto; }
  .primary-nav a { white-space: nowrap; }
}

@media (max-width: 680px) {
  .app-header { gap: 12px; padding: 16px; }
  .logo { font-size: 27px; }
  .brand-logo { height: 50px; }
  .logo small { font-size: 10px; }
  .primary-nav { top: 0; padding-inline: 10px; }
  .primary-nav a { margin-block: 6px; padding: 8px 12px; }
  .workspace, .knowledge-strip, .page-shell { width: calc(100% - 20px); }
  .input-hero { min-height: 0; padding: 38px 25px 42px; }
  .input-hero h1 { font-size: 36px; }
  .input-hero::before { right: -240px; }
  .ability-strip { grid-template-columns: repeat(2, 1fr); }
  .page-title-row h1 { font-size: 32px; }
  .knowledge-strip { padding: 27px 24px; }
  .draft-grid { grid-template-columns: 1fr; }
  .draft-card-meta > div { gap: 6px; }
  .draft-open-toggle span { display: none; }
  .draft-reader-modal { width: calc(100% - 18px); max-height: 92vh; border-radius: 14px; }
  .draft-reader-modal > header { padding: 22px 20px 17px; }
  .draft-reader-modal > header h2 { margin-right: 34px; font-size: 22px; }
  .draft-reader-body { padding: 25px 21px 30px; }
  .draft-reader-modal > footer { flex-wrap: wrap; }
  .draft-reader-modal > footer > span { width: 100%; }
}

/* ─── 编辑总控台 ─────────────────────────────────────── */
.dashboard-sync {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.control-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.control-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 8px 2px 26px;
}
.control-hero h1 {
  margin: 7px 0 7px;
  font: 700 38px/1.12 var(--sans);
  letter-spacing: -.03em;
}
.control-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.control-hero-actions { display: flex; gap: 10px; flex: 0 0 auto; }

.workflow-launcher {
  display: grid;
  grid-template-columns: 1.05fr repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid #e9e3e5;
  border-radius: 17px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 26px rgba(47,22,31,.035);
}
.workflow-launcher-copy { display: flex; min-width: 0; justify-content: center; flex-direction: column; padding: 7px 12px; }
.workflow-launcher[data-view="editor"] { grid-template-columns: minmax(240px, .72fr) minmax(340px, 1.28fr); }
.workflow-launcher[data-view="chief"] { grid-template-columns: minmax(240px, .8fr) repeat(2, minmax(260px, 1fr)); }
.workflow-launcher-copy strong { margin-top: 3px; color: #342b2f; font-size: 12px; }
.workflow-launcher-copy small { margin-top: 3px; color: #92878b; font-size: 9px; }
.workflow-entry { display: grid; width: 100%; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 70px; padding: 10px 12px; border: 1px solid #eee9ea; border-radius: 12px; color: inherit; background: #fff; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: .18s ease; }
.workflow-entry:hover { transform: translateY(-1px); border-color: #d9c8ce; box-shadow: 0 8px 18px rgba(55,24,35,.06); }
.workflow-entry > i { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: #8c727b; background: #f3eef0; font: normal 700 9px var(--sans); }
.workflow-entry.primary > i { color: #fff; background: linear-gradient(145deg, #75112f, var(--red)); }
.workflow-entry span { min-width: 0; }
.workflow-entry strong { display: block; overflow: hidden; color: #40363a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-entry small { display: block; margin-top: 3px; overflow: hidden; color: #958a8e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-entry > b { color: #b2a6aa; font-size: 11px; }

.control-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.control-metrics > article {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 112px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #ece6e8;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 26px rgba(47, 22, 31, .045);
}
.metric-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  font: 700 15px var(--sans);
}
.metric-icon.all { color: #fff; background: linear-gradient(145deg, #571328, #9f1742); box-shadow: 0 8px 20px rgba(129, 17, 52, .22); }
.metric-icon.writing { color: #8c4b12; background: #fff0da; }
.metric-icon.revising { color: #a64a2c; background: #fff0ea; }
.metric-icon.review { color: #9e1740; background: #fbe8ee; }
.metric-icon.done { color: #166f57; background: #e4f4ed; }
.control-metrics div { min-width: 0; }
.control-metrics small { display: block; color: var(--muted); font-size: 11px; }
.control-metrics strong { display: block; margin: 1px 0; color: #251c20; font: 750 28px/1.2 var(--sans); }
.control-metrics p { margin: 0; overflow: hidden; color: #958b8e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.control-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  align-items: start;
  gap: 18px;
}
.control-board-panel,
.chief-inbox-panel,
.knowledge-approval-panel,
.control-side-card {
  border: 1px solid #eae4e6;
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 32px rgba(44, 20, 29, .045);
}
.control-board-panel { min-width: 0; padding: 22px; }
.chief-inbox-panel { min-width: 0; padding: 22px; border-color: #e5d8dd; background: linear-gradient(135deg, #fff 0%, #fff 60%, #fbf5f7 100%); }
.chief-inbox-panel[hidden] { display: none; }
.chief-inbox-heading { align-items: flex-end; }
.chief-inbox-summary { display: flex; flex: 0 0 auto; gap: 8px; }
.chief-inbox-summary > span { display: grid; min-width: 106px; padding: 10px 13px; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; border: 1px solid #eadfe2; border-radius: 11px; background: rgba(255,255,255,.78); }
.chief-inbox-summary b { color: var(--red); font: 750 22px/1 var(--sans); }
.chief-inbox-summary small { color: #817579; font-size: 9px; white-space: nowrap; }
.chief-inbox-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.chief-inbox-card { display: grid; min-width: 0; min-height: 158px; padding: 15px 16px; border: 1px solid #e9e1e3; border-radius: 13px; color: inherit; background: rgba(255,255,255,.94); text-decoration: none; box-shadow: 0 5px 18px rgba(65,25,40,.035); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.chief-inbox-card:hover { transform: translateY(-2px); border-color: #d9bec7; box-shadow: 0 10px 24px rgba(83,26,47,.075); }
.chief-inbox-card.assignment { border-top: 3px solid #8e1740; }
.chief-inbox-card.knowledge { border-top: 3px solid #2c876d; }
.chief-inbox-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chief-inbox-card-top > span { display: inline-flex; height: 23px; padding: 0 8px; align-items: center; border-radius: 7px; color: #8d1640; background: #fae9ef; font-size: 8px; font-weight: 750; }
.chief-inbox-card.knowledge .chief-inbox-card-top > span { color: #166f57; background: #e6f4ef; }
.chief-inbox-card-top time { color: #9d9296; font-size: 8px; }
.chief-inbox-card h3 { display: -webkit-box; margin: 10px 0 5px; overflow: hidden; color: #302529; font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.chief-inbox-card > p { display: -webkit-box; margin: 0; overflow: hidden; color: #817579; font-size: 9px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.chief-inbox-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #f0e9eb; }
.chief-inbox-card footer > span { overflow: hidden; color: #9a8f93; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.chief-inbox-card footer button,
.chief-inbox-card footer strong { padding: 0; border: 0; color: var(--red); background: transparent; font: 700 9px var(--sans); white-space: nowrap; cursor: pointer; }
.chief-inbox-card.knowledge footer strong { color: #18735b; }
.chief-inbox-empty { display: flex; grid-column: 1 / -1; min-height: 92px; align-items: center; justify-content: center; gap: 13px; border: 1px dashed #dfd4d8; border-radius: 13px; background: rgba(255,255,255,.6); }
.chief-inbox-empty > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: #2b866c; }
.chief-inbox-empty strong { color: #4e4146; font-size: 11px; }
.chief-inbox-empty p { margin: 3px 0 0; color: #998e92; font-size: 8px; }
.chief-inbox-more { display: flex; min-height: 38px; grid-column: 1 / -1; align-items: center; justify-content: center; border: 1px dashed #dccfd3; border-radius: 10px; color: var(--red); background: #fffafb; font-size: 9px; font-weight: 700; text-decoration: none; }
.knowledge-approval-panel { min-width: 0; padding: 22px; }
.knowledge-approval-heading { display: flex; align-items: center; gap: 18px; }
.knowledge-approval-heading > span { color: #7f7075; font-size: 10px; white-space: nowrap; }
.knowledge-approval-heading b { color: var(--red); font-size: 18px; }
.knowledge-approval-heading a { color: var(--red); font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.knowledge-approval-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.knowledge-approval-card { display: grid; min-width: 0; min-height: 210px; padding: 17px; border: 1px solid #e8dfe2; border-radius: 14px; color: inherit; background: linear-gradient(155deg,#fff 0%,#fff 68%,#fbf4f6 100%); text-decoration: none; box-shadow: 0 5px 17px rgba(56,25,37,.035); transition: .18s ease; }
.knowledge-approval-card:hover { transform: translateY(-2px); border-color: #d6b9c3; box-shadow: 0 11px 25px rgba(83,26,47,.08); }
.knowledge-approval-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.knowledge-approval-card-top > span { display: inline-flex; height: 23px; padding: 0 8px; align-items: center; border-radius: 7px; color: #8d1640; background: #fae9ef; font-size: 8px; font-weight: 750; }
.knowledge-approval-card-top time { color: #9d9296; font-size: 8px; }
.knowledge-approval-card h3 { display: -webkit-box; margin: 12px 0 7px; overflow: hidden; color: #302529; font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.knowledge-approval-card > p { display: -webkit-box; margin: 0; overflow: hidden; color: #7d7276; font-size: 9px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.knowledge-approval-tags { display: flex; flex-wrap: wrap; align-items: end; gap: 5px; margin-top: 12px; }
.knowledge-approval-tags span { padding: 3px 6px; border-radius: 5px; color: #806f75; background: #f5f1f2; font-size: 7px; }
.knowledge-approval-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #f0e9eb; }
.knowledge-approval-card footer span { overflow: hidden; color: #9a8f93; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-approval-card footer strong { color: var(--red); font-size: 9px; white-space: nowrap; }
.knowledge-approval-empty { display: flex; grid-column: 1 / -1; min-height: 106px; align-items: center; justify-content: center; gap: 13px; border: 1px dashed #dfd4d8; border-radius: 13px; background: #fbf9fa; }
.knowledge-approval-empty > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: #2b866c; }
.knowledge-approval-empty strong { color: #4e4146; font-size: 11px; }
.knowledge-approval-empty p { margin: 3px 0 0; color: #998e92; font-size: 8px; }
.knowledge-approval-more { display: flex; min-height: 42px; grid-column: 1 / -1; align-items: center; justify-content: center; border: 1px dashed #dccfd3; border-radius: 10px; color: var(--red); background: #fffafb; font-size: 9px; font-weight: 700; text-decoration: none; }
.control-section-heading,
.control-side-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.control-section-heading { margin-bottom: 18px; }
.control-section-heading > div:first-child { min-width: 160px; }
.control-section-heading > div:first-child p { margin: 5px 0 0; color: #958a8e; font-size: 9px; }
.control-section-heading h2,
.control-side-card h2 { margin: 4px 0 0; font: 700 21px/1.2 var(--sans); }
.board-heading-actions { display: flex; min-width: 0; align-items: center; gap: 10px; }
.desk-view-switch { display: flex; flex: 0 0 auto; padding: 3px; border: 1px solid #e8e1e3; border-radius: 10px; background: #f7f4f5; }
.desk-view-switch button { height: 29px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: #867b7f; font: 10px var(--sans); cursor: pointer; }
.desk-view-switch button.active { color: #fff; background: #77112f; box-shadow: 0 4px 10px rgba(119,17,47,.18); }
.desk-role-badge { display: inline-flex; height: 34px; padding: 0 11px; align-items: center; border: 1px solid #e7dce0; border-radius: 10px; background: #faf6f7; color: #7f1635; font-size: 9px; font-weight: 700; white-space: nowrap; }
.board-tools { display: flex; min-width: 0; align-items: center; gap: 11px; }
.board-tools > a,
.knowledge-pulse header > a { color: var(--red); font-size: 11px; text-decoration: none; white-space: nowrap; }
.board-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 220px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #e6dfe1;
  border-radius: 10px;
  background: #fbfafb;
}
.board-search span { color: #9b8e92; font-size: 18px; }
.board-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 11px var(--sans); }

.story-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  min-height: 0;
}
.story-board[data-view="reporter"] .story-column[data-stage="done"],
.story-board[data-view="editor"] .story-column[data-stage="assignment"],
.story-board[data-view="editor"] .story-column[data-stage="writing"] { display: none; }
.story-board[data-view="chief"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-board[data-view="editor"] { min-height: 0; grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(300px, 1.2fr); }
.story-column {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 12px;
  overflow: hidden;
  border: 1px solid #ece6e8;
  border-radius: 16px;
  background: #faf8f9;
}
.story-column::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #d59b54;
}
.story-column[data-stage="writing"] { background: linear-gradient(180deg, #fdf9f3 0, #faf8f8 150px); }
.story-column[data-stage="assignment"] { background: linear-gradient(180deg, #f7f5fb 0, #faf8f8 150px); }
.story-column[data-stage="assignment"]::before { background: linear-gradient(90deg, #6e547f, #aa769e); }
.story-column[data-stage="revising"] { background: linear-gradient(180deg, #fff7f3 0, #faf8f8 150px); }
.story-column[data-stage="revising"]::before { background: linear-gradient(90deg, #c65e35, #e59b65); }
.story-column[data-stage="review"] { background: linear-gradient(180deg, #fdf6f8 0, #faf8f8 150px); }
.story-column[data-stage="review"]::before { background: linear-gradient(90deg, #ad153f, #d65a7d); }
.story-column[data-stage="done"] { background: linear-gradient(180deg, #f4faf7 0, #faf8f8 150px); }
.story-column[data-stage="done"]::before { background: linear-gradient(90deg, #218269, #57aa91); }
.story-column > header {
  min-width: 0;
  height: 46px;
  padding: 3px 3px 10px;
}
.story-column > header { display: flex; align-items: center; justify-content: space-between; }
.story-column > header span { display: flex; align-items: center; gap: 8px; color: #4a4044; font-size: 12px; font-weight: 700; }
.story-column > header i { width: 7px; height: 7px; border-radius: 50%; background: #d59b54; box-shadow: 0 0 0 4px rgba(213,155,84,.12); }
.story-column[data-stage="review"] > header i { background: var(--red); box-shadow: 0 0 0 4px rgba(181,16,61,.1); }
.story-column[data-stage="assignment"] > header i { background: #785987; box-shadow: 0 0 0 4px rgba(120,89,135,.1); }
.story-column[data-stage="revising"] > header i { background: #cf683d; box-shadow: 0 0 0 4px rgba(207,104,61,.1); }
.story-column[data-stage="done"] > header i { background: #238367; box-shadow: 0 0 0 4px rgba(35,131,103,.1); }
.story-column > header b { display: grid; min-width: 26px; height: 26px; padding: 0 7px; place-items: center; border-radius: 9px; background: rgba(78,56,64,.07); color: #746a6d; font-size: 10px; }
.story-column-body { display: grid; min-width: 0; max-width: 100%; align-content: start; gap: 11px; }
.story-archive-row { display: grid; min-width: 0; min-height: 92px; padding: 13px 14px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid rgba(52,115,95,.11); border-radius: 12px; background: rgba(255,255,255,.92); transition: border-color .16s ease, background .16s ease; }
.story-archive-row:hover { border-color: rgba(52,115,95,.25); background: #fff; }
.story-archive-main { display: grid; min-width: 0; gap: 4px; }
.story-archive-main > span { color: #9a9093; font-size: 8px; }
.story-archive-main > strong { overflow: hidden; color: #342a2e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.story-archive-main > small { overflow: hidden; color: #94898d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.story-archive-side { display: grid; flex: 0 0 auto; justify-items: end; gap: 12px; }
.story-archive-side time { color: #a09699; font-size: 8px; white-space: nowrap; }
.story-archive-side a { color: #24715a; font-size: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.board-column-more { display: flex; min-height: 42px; padding: 0 11px; align-items: center; justify-content: space-between; gap: 12px; border: 1px dashed #dccfd3; border-radius: 10px; color: #8c7f84; background: rgba(255,255,255,.55); font-size: 8px; text-decoration: none; }
.board-column-more strong { color: var(--red); font-size: 8px; white-space: nowrap; }
.board-column-more.archive { border-color: #cfe0d9; color: #71877f; background: rgba(247,252,249,.9); }
.board-column-more.archive strong { color: #24715a; }
.story-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 248px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(79,56,64,.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(45, 25, 32, .045);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.story-card:hover { transform: translateY(-2px); border-color: rgba(179,21,53,.2); box-shadow: 0 12px 28px rgba(52, 23, 34, .085); }
.story-card-top { display: flex; min-width: 0; align-items: center; gap: 6px; }
.story-card-top time { min-width: 0; margin-left: auto; overflow: hidden; color: #a1989b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.story-card-menu { width: 24px; height: 22px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #a4979c; font: 10px/1 var(--sans); cursor: pointer; }
.story-card-menu:hover { color: var(--red); background: #f8ecef; }
.story-status,
.story-followup {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.story-status.writing { color: #855019; background: #fff1df; }
.story-status.assignment { color: #684b76; background: #f2eaf5; }
.story-status.revising { color: #a84d2c; background: #ffede6; }
.story-status.review { color: #a31540; background: #fbe8ee; }
.story-status.done { color: #176c56; background: #e7f5ef; }
.story-followup { color: #a13c30; background: #fff0ed; }
.story-priority { display: inline-flex; height: 21px; padding: 0 7px; align-items: center; flex: 0 0 auto; border-radius: 6px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.story-priority.urgent { color: #fff; background: #b61532; }
.story-priority.high { color: #a24d24; background: #fff0de; }
.story-priority.low { color: #6e7277; background: #eff1f2; }
.story-card h3 { display: -webkit-box; min-width: 0; min-height: 44px; margin: 13px 0 8px; overflow: hidden; color: #282024; font: 700 15px/1.48 var(--sans); overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.story-card > p { display: -webkit-box; min-width: 0; min-height: 50px; margin: 0; overflow: hidden; color: #756c70; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.editor-note { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; margin-top: 10px; padding: 9px 10px; align-items: start; border-left: 2px solid #ce6137; border-radius: 7px; background: #fff5f0; }
.editor-note strong { flex: 0 0 auto; color: #a74d2d; font-size: 8px; line-height: 1.5; }
.editor-note span { display: -webkit-box; min-width: 0; overflow: hidden; color: #805f54; font-size: 8px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.editor-note button { padding: 0; border: 0; background: transparent; color: #ad173f; font: 700 8px/1.5 var(--sans); cursor: pointer; white-space: nowrap; }
.editor-note button:hover { color: #7e0f2d; }
.story-meta { display: flex; min-width: 0; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.story-meta span { padding: 4px 6px; border-radius: 5px; background: #f5f2f3; color: #81777a; font-size: 8px; }
.story-meta .deadline.today { color: #9b4e10; background: #fff0d9; }
.story-meta .deadline.overdue { color: #a91537; background: #fbe5eb; }
.story-card footer { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f0ecee; }
.story-card footer > span { min-width: 0; max-width: 34%; overflow: hidden; color: #9b9194; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.story-card footer a { color: var(--red); font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.story-actions { display: flex; min-width: 0; flex: 0 0 auto; align-items: center; gap: 7px; }
.story-actions button { height: 26px; padding: 0 8px; border: 1px solid #e6dfe1; border-radius: 7px; background: #faf8f9; color: #796e72; font: 9px var(--sans); cursor: pointer; white-space: nowrap; }
.story-actions button:hover { color: var(--red); }
.story-actions button.primary-action { border-color: #a81641; color: #fff; background: #ad153f; }
.story-actions button.primary-action:hover { color: #fff; background: #8d102f; }
.story-actions button:disabled { color: #b8afb2; cursor: wait; }
.board-loading { padding: 36px 12px; color: #9c9295; font-size: 10px; text-align: center; }
.board-empty { display: grid; min-height: 190px; padding: 24px 12px; place-content: center; text-align: center; }
.board-empty > span { display: grid; width: 38px; height: 38px; margin: 0 auto 12px; place-items: center; border: 1px dashed #d8cdd1; border-radius: 12px; color: #a18f95; font-size: 17px; }
.board-empty strong { color: #6d6266; font-size: 11px; }
.board-empty p { margin: 5px 0 0; color: #a09599; font-size: 9px; line-height: 1.6; }
.story-column.is-empty .board-empty { min-height: 124px; padding: 14px 12px 18px; }
.story-column.is-empty .board-empty > span { width: 34px; height: 34px; margin-bottom: 9px; border-radius: 10px; font-size: 15px; }
.board-empty-action { width: 100%; border: 0; border-radius: 12px; color: inherit; background: transparent; font: inherit; text-decoration: none; cursor: pointer; transition: background .18s ease, box-shadow .18s ease; }
.board-empty-action:hover { background: rgba(255,255,255,.78); box-shadow: inset 0 0 0 1px rgba(181,16,61,.12); }
.board-empty-action:hover > span { border-color: rgba(181,16,61,.35); color: var(--red); background: #fff; }
.board-empty-action-hover { display: none; }
.board-empty-action:hover .board-empty-action-default,
.board-empty-action:focus-visible .board-empty-action-default { display: none; }
.board-empty-action:hover .board-empty-action-hover,
.board-empty-action:focus-visible .board-empty-action-hover { display: inline; }
.board-empty-action:hover strong,
.board-empty-action:focus-visible strong { color: var(--red); }
.board-empty-action:focus-visible { outline: 2px solid rgba(181,16,61,.38); outline-offset: 2px; }

.control-side { display: grid; gap: 12px; }
.control-side-card { padding: 18px; }
.control-side-card > header { margin-bottom: 15px; }
.attention-count { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: #a31540; background: #fbe8ee; font-size: 12px; font-weight: 750; }
.attention-item,
.activity-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.attention-item { padding: 10px 0; border-top: 1px solid #f0ecee; }
.attention-item:first-child { border-top: 0; padding-top: 0; }
.attention-item > i,
.activity-list i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #d99b54; }
.attention-item > i.review,
.activity-list i.review { background: var(--red); }
.attention-item > i.revising,
.activity-list i.revising { background: #cf683d; }
.attention-item > i.knowledge { background: #76518a; box-shadow: 0 0 0 4px rgba(118,81,138,.1); }
.attention-item.knowledge-review strong { color: #5e3d6e; }
.activity-list i.done { background: #238367; }
.attention-item span,
.activity-list span { min-width: 0; flex: 1; }
.attention-item strong,
.activity-list strong { display: block; overflow: hidden; color: #3b3135; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.attention-item small,
.activity-list small { display: block; margin-top: 3px; overflow: hidden; color: #958a8e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.attention-item b { color: #a99da1; font-size: 12px; }
.side-success { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 10px; background: #eef8f4; }
.side-success > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: #2a866c; }
.side-success strong { color: #286954; font-size: 10px; }
.side-success p { margin: 3px 0 0; color: #6e9186; font-size: 8px; }
.side-empty { margin: 0; color: #94898d; font-size: 10px; }

.role-ai-card {
  position: relative;
  overflow: hidden;
  border-color: #e5d5db;
  background: linear-gradient(155deg, #fff 0%, #fffafb 58%, #f8eef1 100%);
}
.role-ai-card::before { position: absolute; top: -74px; right: -66px; width: 170px; height: 170px; border: 28px solid rgba(152,22,58,.045); border-radius: 50%; content: ''; pointer-events: none; }
.role-ai-card[hidden] { display: none; }
.role-ai-badge { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg,#671229,#b51643); box-shadow: 0 8px 18px rgba(139,20,55,.2); font-size: 9px; font-weight: 800; letter-spacing: .6px; }
.role-ai-description { position: relative; margin: -2px 0 13px; color: #7e7276; font-size: 9px; line-height: 1.7; }
.role-ai-actions { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.role-ai-actions button { display: grid; grid-template-columns: minmax(0,1fr) auto; min-height: 57px; padding: 10px; border: 1px solid #e6dce0; border-radius: 11px; background: rgba(255,255,255,.82); color: #4b3f43; cursor: pointer; text-align: left; transition: .18s ease; }
.role-ai-actions button:hover { transform: translateY(-1px); border-color: #c995a5; box-shadow: 0 7px 16px rgba(79,28,45,.07); }
.role-ai-actions button.primary { border-color: #dcc2ca; background: #fff7f9; }
.role-ai-actions button:disabled { cursor: wait; opacity: .55; }
.role-ai-actions span { overflow: hidden; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.role-ai-actions small { grid-column: 1; margin-top: 4px; color: #9c8d92; font-size: 7px; }
.role-ai-actions b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--red); font-size: 11px; }
.role-ai-result { position: relative; margin-top: 11px; overflow: hidden; border: 1px solid #e9e0e3; border-radius: 12px; background: rgba(255,255,255,.78); }
.role-ai-empty { display: flex; min-height: 74px; padding: 13px; align-items: center; gap: 10px; }
.role-ai-empty.compact { min-height: 58px; }
.role-ai-empty > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #9b1b40; background: #f8e8ed; }
.role-ai-empty p { margin: 0; color: #8e8186; font-size: 8px; line-height: 1.6; }
.role-ai-summary { padding: 12px 13px; border-bottom: 1px solid #eee7e9; background: linear-gradient(135deg,#761630,#a51a41); }
.role-ai-summary span { color: rgba(255,255,255,.68); font-size: 7px; font-weight: 700; letter-spacing: .8px; }
.role-ai-summary p { margin: 5px 0 0; color: #fff; font-size: 9px; line-height: 1.65; }
.role-ai-item { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; gap: 8px; padding: 11px 12px; border-top: 1px solid #eee8ea; }
.role-ai-summary + .role-ai-item { border-top: 0; }
.role-ai-item > span { padding-top: 1px; color: #b25a74; font-size: 7px; font-weight: 750; }
.role-ai-item > div { min-width: 0; }
.role-ai-item strong { display: block; color: #3f3438; font-size: 9px; line-height: 1.5; }
.role-ai-item p { margin: 4px 0 0; color: #887b80; font-size: 8px; line-height: 1.55; }
.role-ai-item small { display: block; margin-top: 5px; color: #6f6065; font-size: 8px; line-height: 1.55; }
.role-ai-item small b { margin-right: 5px; color: #a21941; }
.role-ai-item > a { align-self: center; color: var(--red); font-size: 11px; text-decoration: none; }
.role-ai-notice { margin: 0; padding: 9px 12px; border-top: 1px solid #eee8ea; color: #9a8c91; background: #faf7f8; font-size: 7px; line-height: 1.55; }
.role-ai-disclaimer { position: relative; display: block; margin-top: 9px; color: #a09599; font-size: 7px; line-height: 1.55; }
.role-ai-loading { display: flex; min-height: 88px; padding: 18px; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; }
.role-ai-loading span { width: 6px; height: 6px; border-radius: 50%; background: #ad234a; animation: role-ai-pulse .9s ease-in-out infinite alternate; }
.role-ai-loading span:nth-child(2) { animation-delay: .18s; }.role-ai-loading span:nth-child(3) { animation-delay: .36s; }
.role-ai-loading p { width: 100%; margin: 5px 0 0; color: #8d7d83; font-size: 8px; text-align: center; }
@keyframes role-ai-pulse { to { transform: translateY(-4px); opacity: .35; } }
.role-ai-error { padding: 14px; }
.role-ai-error strong { color: #a11d40; font-size: 9px; }.role-ai-error p { margin: 5px 0 9px; color: #8a7d81; font-size: 8px; line-height: 1.55; }
.role-ai-error button { padding: 6px 9px; border: 1px solid #e0cbd1; border-radius: 7px; background: #fff7f9; color: #9e1d42; font: 8px var(--sans); cursor: pointer; }

.quick-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.quick-action-grid a,
.quick-action-grid button { display: flex; width: 100%; align-items: center; gap: 8px; min-height: 60px; padding: 9px; border: 1px solid #eee9eb; border-radius: 10px; color: inherit; background: #fff; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: .18s ease; }
.quick-action-grid a:hover,
.quick-action-grid button:hover { border-color: #d8c4cb; background: #fff8fa; }
.quick-action-grid i { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--red); background: #f9e8ed; font: normal 700 11px var(--sans); }

/* 界面文字统一使用现代无衬线；长文阅读区域保留报刊宋体。 */
.model-settings-panel h2,
.edition-heading h2,
.knowledge-strip h2,
.step-name,
.stage-intro h2,
.result-heading h2,
.two-column h3,
.reference-card h3,
.structure-note strong,
.knowledge-items strong,
.panel-heading h2,
.result-toolbar strong,
.result-body h2,
.article-preview h2,
.rail-header h2,
.data-table td strong,
.list-toolbar strong,
.approval-item h2,
.detail-heading h2,
.progress-nodes strong,
.current-step-card h3,
.section-heading h3,
.article-modal h2,
.version-reflection h3,
.draft-card h2,
.search-empty strong,
.agent-connection-card h2 {
  font-family: var(--sans);
}
.quick-action-grid strong { display: block; color: #44393d; font-size: 9px; }
.quick-action-grid small { display: block; margin-top: 3px; color: #9b9094; font-size: 7px; white-space: nowrap; }

.knowledge-pulse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.knowledge-pulse-grid div { padding: 11px 5px; border-radius: 9px; background: #f8f5f6; text-align: center; }
.knowledge-pulse-grid strong { display: block; color: #3d3035; font: 750 19px var(--sans); }
.knowledge-pulse-grid span { display: block; margin-top: 3px; color: #94898d; font-size: 7px; }
.activity-list { display: grid; }
.activity-list a { min-height: 45px; border-top: 1px solid #f0ecee; }
.activity-list a:first-child { border-top: 0; }
.activity-list time { color: #a1979a; font-size: 8px; white-space: nowrap; }

/* ─── 值班总编全局稿件总控 ───────────────────────────── */
.chief-drafts-page { background: #f6f4f4; }
.chief-drafts-page .drafts-shell { width: min(1480px, calc(100% - 48px)); margin-top: 28px; padding-bottom: 64px; }
.drafts-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.chief-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #e7e0e2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(47, 31, 37, .055);
}
.chief-overview[hidden], .draft-command[hidden], .draft-results-head[hidden] { display: none; }
.chief-metric { position: relative; min-width: 0; padding: 20px 22px 18px; border: 0; border-left: 1px solid #eee8ea; background: transparent; color: #33292d; text-align: left; cursor: pointer; transition: background .16s ease, box-shadow .16s ease; }
.chief-metric:first-child { border-left: 0; }
.chief-metric::after { content: ''; position: absolute; right: 18px; bottom: 0; left: 18px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.chief-metric:hover { background: #fcf8f9; }
.chief-metric.active { z-index: 1; background: linear-gradient(145deg, #fff, #fbf2f5); box-shadow: inset 0 0 0 1px rgba(181, 18, 57, .08); }
.chief-metric.active::after { background: var(--red); }
.chief-metric span, .chief-metric small { display: block; }
.chief-metric span { color: #74696d; font-size: 10px; font-weight: 650; }
.chief-metric strong { display: block; margin: 7px 0 3px; color: #241b1f; font: 750 30px/1 var(--sans); }
.chief-metric small { overflow: hidden; color: #a1989b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.chief-metric.risk strong { color: #b61532; }

.draft-command {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) repeat(6, minmax(104px, .72fr)) auto;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  align-items: end;
  border: 1px solid #e7e0e2;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 30px rgba(47, 31, 37, .04);
}
.draft-search { display: flex; min-width: 0; height: 42px; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #ded6d9; border-radius: 10px; background: #faf8f9; }
.draft-search:focus-within { border-color: #c7617b; background: #fff; box-shadow: 0 0 0 3px rgba(182, 21, 50, .07); }
.draft-search > span { color: #aa9da2; font-size: 18px; transform: rotate(-15deg); }
.draft-search input { width: 100%; min-width: 0; border: 0; background: transparent; color: #332a2d; font: 10px var(--sans); outline: 0; }
.draft-command label { display: grid; min-width: 0; gap: 5px; color: #918589; font-size: 8px; }
.draft-command select { width: 100%; height: 42px; padding: 0 9px; border: 1px solid #ded6d9; border-radius: 10px; background: #faf8f9; color: #4e4347; font: 9px var(--sans); outline: 0; }
.draft-command select:focus { border-color: #c7617b; background: #fff; }
.draft-filter-reset { height: 42px; padding: 0 14px; border: 1px solid #ded6d9; border-radius: 10px; background: #fff; color: #71666a; font: 9px var(--sans); cursor: pointer; }
.draft-filter-reset:hover { border-color: #c7617b; color: var(--red); }

.draft-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 7px 4px 12px; }
.draft-results-head div { display: flex; align-items: baseline; gap: 10px; }
.draft-results-head strong { color: #2d2327; font-size: 14px; }
.draft-results-head span { color: #94898d; font-size: 9px; }

.draft-control-table { overflow: hidden; border: 1px solid #e6dfe1; border-radius: 18px; background: #fff; box-shadow: 0 16px 42px rgba(47, 31, 37, .055); }
.draft-control-table-head, .draft-control-row { display: grid; grid-template-columns: minmax(310px, 2.3fr) .72fr 1fr .66fr 1fr .78fr minmax(126px, .85fr); gap: 14px; align-items: center; }
.draft-control-table-head { min-height: 43px; padding: 0 20px; border-bottom: 1px solid #e9e3e5; background: #f8f6f7; color: #8a7f83; font-size: 8px; font-weight: 650; }
.draft-control-row { position: relative; min-height: 102px; padding: 17px 20px; border-bottom: 1px solid #eee9ea; transition: background .14s ease; }
.draft-control-row:last-child { border-bottom: 0; }
.draft-control-row:hover { background: #fdfafb; }
.draft-control-row.has-risk::before { content: ''; position: absolute; top: 17px; bottom: 17px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: #c84562; }
.draft-row-story, .draft-row-owner, .draft-row-updated { display: grid; min-width: 0; gap: 4px; }
.draft-row-story > span { color: #a09699; font-size: 8px; }
.draft-row-story > strong { overflow: hidden; color: #30262a; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.draft-row-story > small { overflow: hidden; color: #8f8588; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.draft-row-owner strong, .draft-row-updated strong { overflow: hidden; color: #51464a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.draft-row-owner span, .draft-row-updated span { color: #9b9194; font-size: 8px; }
.draft-priority, .draft-deadline { display: inline-flex; max-width: 100%; align-items: center; font-size: 8px; white-space: nowrap; }
.draft-priority { height: 22px; padding: 0 8px; border-radius: 6px; color: #766c70; background: #f2eff0; font-weight: 700; }
.draft-priority.urgent { color: #fff; background: #b61532; }
.draft-priority.high { color: #a24d24; background: #fff0de; }
.draft-priority.low { color: #6f7477; background: #edf0f1; }
.draft-deadline { color: #6f6468; }
.draft-deadline.none { color: #aaa0a4; }
.draft-deadline.today { color: #9e590f; font-weight: 700; }
.draft-deadline.overdue { color: #b11639; font-weight: 700; }
.draft-row-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 7px; }
.draft-row-actions a, .draft-row-actions button { height: 30px; padding: 0 10px; border: 1px solid #e1d9dc; border-radius: 8px; background: #fff; color: #6d6266; font: 700 8px/28px var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; }
.draft-row-actions a.chief-row-primary { border-color: var(--red); background: var(--red); color: #fff; }
.draft-row-actions button:hover { border-color: #c85a73; color: var(--red); }

.draft-control-modal { width: min(760px, calc(100vw - 28px)); overflow: hidden; border: 1px solid #e5dde0; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(35, 17, 23, .25); }
.draft-control-modal > header { display: flex; justify-content: space-between; gap: 20px; padding: 25px 28px 20px; border-bottom: 1px solid #eee8ea; }
.draft-control-modal h2 { margin: 7px 0 5px; font: 720 23px/1.35 var(--sans); }
.draft-control-modal header p { display: -webkit-box; max-width: 610px; margin: 0; overflow: hidden; color: #8d8286; font-size: 9px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.draft-control-modal form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 22px 28px; }
.draft-control-context { display: flex; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: 7px; padding: 12px 14px; border-radius: 10px; background: #f8f5f6; }
.draft-control-context > span:not(.story-status) { padding: 4px 7px; border-radius: 6px; background: #fff; color: #766b6f; font-size: 8px; }
.draft-control-modal label { display: grid; gap: 6px; color: #574c50; font-size: 9px; font-weight: 650; }
.draft-control-modal label.full { grid-column: 1 / -1; }
.draft-control-modal input, .draft-control-modal select, .draft-control-modal textarea { width: 100%; border: 1px solid #ded6d9; border-radius: 9px; background: #fbfafb; color: #332a2d; font: 10px var(--sans); outline: 0; }
.draft-control-modal input, .draft-control-modal select { height: 41px; padding: 0 11px; }
.draft-control-modal textarea { padding: 11px; line-height: 1.7; resize: vertical; }
.draft-control-modal input:focus, .draft-control-modal select:focus, .draft-control-modal textarea:focus { border-color: #c86179; background: #fff; box-shadow: 0 0 0 3px rgba(182, 21, 50, .06); }
.draft-control-modal > footer { display: flex; min-height: 70px; padding: 14px 28px; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid #eee8ea; background: #faf8f9; }
.draft-control-modal > footer > span { min-width: 0; margin-right: auto; color: #8b7f83; font-size: 9px; }

@media (max-width: 1180px) {
  .chief-overview { grid-template-columns: repeat(5, minmax(130px, 1fr)); overflow-x: auto; }
  .draft-command { grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(120px, 1fr)) auto; }
  .draft-command label:nth-of-type(n+4) { grid-row: 2; }
  .draft-filter-reset { grid-row: 2; }
  .draft-control-table { overflow-x: auto; }
  .draft-control-table-head, .draft-control-row { min-width: 1080px; }
}
@media (max-width: 680px) {
  .chief-drafts-page .drafts-shell { width: calc(100% - 20px); }
  .drafts-title-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .chief-overview { grid-template-columns: repeat(5, 142px); }
  .chief-metric { padding: 17px; }
  .draft-command { grid-template-columns: 1fr 1fr; }
  .draft-search { grid-column: 1 / -1; }
  .draft-command label:nth-of-type(n), .draft-filter-reset { grid-row: auto; }
  .draft-filter-reset { align-self: end; }
  .draft-control-modal form { grid-template-columns: 1fr; }
  .draft-control-modal label.full, .draft-control-context { grid-column: 1; }
  .reference-review-context { align-items: flex-start; flex-direction: column; }
}

.story-meta-modal { width: min(640px, calc(100vw - 28px)); overflow: hidden; border: 1px solid #e6dde0; border-radius: 18px; background: #fff; box-shadow: 0 28px 90px rgba(39,17,25,.24); }
.story-meta-modal > header { display: flex; justify-content: space-between; gap: 20px; padding: 24px 26px 18px; border-bottom: 1px solid #eee9ea; }
.story-meta-modal h2 { margin: 5px 0 3px; font-size: 23px; }
.story-meta-modal header p { max-width: 470px; margin: 0; overflow: hidden; color: #8d8185; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.story-meta-modal form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 22px 26px; }
.story-meta-modal label { display: grid; gap: 6px; color: #54494d; font-size: 10px; font-weight: 650; }
.story-meta-modal label.full { grid-column: 1 / -1; }
.story-meta-modal input,
.story-meta-modal select,
.story-meta-modal textarea { width: 100%; border: 1px solid #dfd7da; border-radius: 9px; background: #fbfafb; color: #393034; outline: 0; }
.story-meta-modal input,
.story-meta-modal select { height: 40px; padding: 0 11px; }
.story-meta-modal textarea { padding: 10px 11px; resize: vertical; font: 11px/1.7 var(--sans); }
.story-meta-modal input:focus,
.story-meta-modal select:focus,
.story-meta-modal textarea:focus { border-color: #b94a68; box-shadow: 0 0 0 3px rgba(179,21,53,.07); }
.story-meta-modal > footer { display: flex; min-height: 70px; padding: 14px 26px; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid #eee9ea; background: #faf8f9; }
.story-meta-modal > footer > span { min-width: 0; margin-right: auto; color: #9d3452; font-size: 9px; }
.assignment-modal { width: min(720px, calc(100vw - 28px)); }
.assignment-modal form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.assignment-modal textarea { min-height: 118px; }

.return-note-modal { width: min(720px, calc(100vw - 28px)); overflow: hidden; border: 1px solid #eadde1; border-radius: 20px; background: #fff; box-shadow: 0 28px 90px rgba(39,17,25,.25); }
.return-note-modal > header { display: flex; justify-content: space-between; gap: 20px; padding: 25px 28px 20px; border-bottom: 1px solid #eee8ea; }
.return-note-modal h2 { margin: 5px 0 4px; color: #2c2226; font-size: 25px; }
.return-note-modal header p { max-width: 560px; margin: 0; overflow: hidden; color: #8d8185; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.return-note-body { display: grid; gap: 15px; padding: 23px 28px 28px; }
.return-note-status { display: flex; align-items: center; gap: 10px; }
.return-note-status span { padding: 5px 9px; border-radius: 7px; color: #a84d2c; background: #ffede6; font-size: 9px; font-weight: 750; }
.return-note-status p { margin: 0; color: #8a7e82; font-size: 10px; }
.return-note-content { max-height: min(46vh, 390px); overflow: auto; padding: 20px 22px; border: 1px solid #f0dfe4; border-left: 3px solid var(--red); border-radius: 10px; background: linear-gradient(145deg,#fffafb,#fff6f8); color: #493d41; font-size: 12px; line-height: 1.9; white-space: pre-wrap; }
.return-note-modal > footer { display: flex; min-height: 74px; padding: 14px 28px; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid #eee8ea; background: #faf8f9; }

/* ─── Account identity ───────────────────────────────── */
.account-menu { position: relative; flex: 0 0 auto; }
.account-trigger { display: grid; grid-template-columns: 30px auto 14px; grid-template-rows: 17px 13px; min-width: 148px; height: 44px; padding: 5px 9px 5px 6px; align-items: center; column-gap: 8px; border: 1px solid #e8e1e3; border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.account-trigger > span { grid-row: 1 / 3; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: linear-gradient(145deg,#8d1738,#b31b45); color: white; font-size: 12px; font-weight: 750; }
.account-trigger strong { align-self: end; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-trigger small { align-self: start; color: #9a8e92; font-size: 7px; white-space: nowrap; }
.account-trigger i { grid-column: 3; grid-row: 1 / 3; color: #a0133d; font-style: normal; }
.account-popover { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; width: 200px; padding: 10px; border: 1px solid #e7dfe2; border-radius: 13px; background: white; box-shadow: 0 20px 50px rgba(50,24,33,.16); }
.account-popover[hidden] { display: none; }
.account-popover > div { display: grid; gap: 3px; padding: 7px 8px 11px; border-bottom: 1px solid #eee9ea; }
.account-popover strong { font-size: 11px; }
.account-popover span { color: #94888d; font-size: 8px; }
.account-popover button { width: 100%; margin-top: 7px; padding: 9px; border: 0; border-radius: 8px; background: #faf6f7; color: #9b2343; font: 10px var(--sans); cursor: pointer; text-align: left; }
.account-popover button:hover { background: #f6eaee; }

/* ─── Login ──────────────────────────────────────────── */
.login-page { min-height: 100vh; overflow-x: hidden; background: #f5f2f3; }
.login-brand-line { position: fixed; z-index: 3; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg,#5d0d25,#af153e 65%,#d4647f); }
.login-shell { display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(430px, .95fr); width: min(1180px, calc(100% - 48px)); min-height: 100vh; margin: auto; align-items: center; gap: 80px; padding: 56px 0; }
.login-brand-panel { position: relative; padding: 34px 0 38px; }
.login-brand-panel::before { position: absolute; z-index: -1; top: -110px; left: -150px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle,rgba(155,22,60,.09),rgba(155,22,60,0) 68%); content: ''; }
.login-brand-panel img { width: 220px; height: auto; margin-bottom: 58px; mix-blend-mode: multiply; }
.login-brand-panel h1 { margin: 14px 0 18px; color: #251d20; font: 760 54px/1.12 var(--sans); letter-spacing: -2px; }
.login-brand-panel > p { max-width: 560px; margin: 0; color: #766b6f; font-size: 14px; line-height: 1.95; }
.login-workflow { display: flex; margin-top: 36px; align-items: center; gap: 13px; color: #7f7377; font-size: 10px; }
.login-workflow span { display: flex; align-items: center; gap: 7px; }
.login-workflow i { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #e5d6da; border-radius: 9px; background: rgba(255,255,255,.72); color: #a0133d; font-style: normal; font-weight: 750; }
.login-workflow b { color: #c4b8bc; font-weight: 400; }
.login-card { padding: 38px; border: 1px solid #e5dde0; border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 28px 90px rgba(54,24,34,.12); }
.login-card h2 { margin: 8px 0 7px; font: 750 29px var(--sans); }
.login-card > div > p { margin: 0 0 25px; color: #8d8185; font-size: 11px; }
.login-mode-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; margin: 0 0 18px; padding: 4px; border-radius: 11px; background: #f6f1f3; }
.login-mode-tabs button { padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: #8c7d82; font: 650 10px var(--sans); cursor: pointer; }
.login-mode-tabs button.active { background: #fff; color: #9d2144; box-shadow: 0 3px 12px rgba(76,24,39,.08); }
.login-page[data-auth-mode="register"] .login-card { padding: 28px 34px; }
.login-page[data-auth-mode="register"] .login-card h2 { margin-top: 6px; font-size: 26px; }
.login-page[data-auth-mode="register"] .login-card > .login-heading > p { margin-bottom: 15px; }
.login-page[data-auth-mode="register"] #register-form { gap: 10px; }
.login-page[data-auth-mode="register"] #register-form label { gap: 5px; }
.login-page[data-auth-mode="register"] #register-form input { height: 42px; }
.login-page[data-auth-mode="register"] .login-security-note { margin-top: 11px; }
.login-card form { display: grid; gap: 15px; }
.login-card form label { display: grid; gap: 7px; color: #50464a; font-size: 10px; font-weight: 650; }
.login-card form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #ded5d8; border-radius: 11px; background: #fbfafb; outline: 0; color: #30272a; font: 12px var(--sans); }
.login-card form input:focus { border-color: #ae3658; box-shadow: 0 0 0 4px rgba(174,54,88,.08); }
.login-card form > p { min-height: 17px; margin: -3px 0 0; color: #a52145; font-size: 10px; }
.login-card form > button { width: 100%; height: 48px; }
.demo-account-box { margin-top: 25px; padding-top: 19px; border-top: 1px solid #eee8ea; }
.demo-account-box header { display: flex; align-items: center; justify-content: space-between; }
.demo-account-box header strong { font-size: 10px; }
.demo-account-box header span { color: #9a8f93; font-size: 8px; }
.demo-account-box > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 11px; }
.demo-account-box button { display: flex; min-width: 0; padding: 9px; align-items: center; gap: 7px; border: 1px solid #e8e1e3; border-radius: 10px; background: #fbf9fa; cursor: pointer; text-align: left; }
.demo-account-box button:hover { border-color: #bd6680; background: #fff7f9; }
.demo-account-box i { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #f3e4e8; color: #9d2144; font-style: normal; font-size: 10px; }
.demo-account-box button span,.demo-account-box button strong,.demo-account-box button small { display: block; min-width: 0; }
.demo-account-box button strong { font-size: 9px; }
.demo-account-box button small { margin-top: 2px; color: #7e7075; font: 650 7px ui-monospace,SFMono-Regular,Menlo,monospace; white-space: nowrap; }
.demo-account-box button small code { display: block; margin-top: 2px; color: #9d2144; font: inherit; }
.login-security-note { display: block; margin-top: 17px; color: #a09699; font-size: 8px; line-height: 1.7; }

@media (max-width: 1180px) {
  .control-layout { grid-template-columns: 1fr; }
  .control-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-card, .knowledge-pulse { min-height: 0; }
  .workflow-launcher { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workflow-launcher-copy { grid-column: 1 / -1; }
  .control-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; width: min(560px, calc(100% - 30px)); gap: 12px; padding: 36px 0; }
  .login-brand-panel { padding-bottom: 20px; }
  .login-brand-panel img { width: 170px; margin-bottom: 28px; }
  .login-brand-panel h1 { font-size: 40px; }
  .control-shell { width: calc(100% - 28px); }
  .control-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-board-panel { overflow: hidden; }
  .story-board { overflow-x: auto; grid-template-columns: repeat(2, minmax(280px, 1fr)); padding-bottom: 9px; scroll-snap-type: x proximity; }
  .story-board[data-view="editor"] { grid-template-columns: repeat(3, minmax(280px, 1fr)); }
  .story-board[data-view="chief"] { grid-template-columns: repeat(3, minmax(280px, 1fr)); }
  .knowledge-approval-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-column { scroll-snap-align: start; }
  .review-return-panel { grid-template-columns: 1fr; align-items: stretch; }
  .review-return-panel > div:last-child { flex-direction: row; justify-content: flex-end; }
}

@media (max-width: 680px) {
  .login-card { padding: 25px 20px; border-radius: 18px; }
  .login-brand-panel h1 { font-size: 34px; }
  .login-workflow { flex-wrap: wrap; }
  .demo-account-box > div { grid-template-columns: 1fr; }
  .account-trigger { min-width: 132px; }
  .dashboard-sync { display: none; }
  .control-shell { width: calc(100% - 20px); padding-top: 22px; }
  .control-hero { align-items: flex-start; flex-direction: column; }
  .control-hero h1 { font-size: 32px; }
  .control-hero-actions { width: 100%; }
  .control-hero-actions > * { flex: 1; text-align: center; }
  .control-metrics { gap: 8px; }
  .control-metrics > article { min-height: 94px; padding: 14px; }
  .metric-icon { width: 36px; height: 36px; }
  .control-metrics p { display: none; }
  .control-board-panel { padding: 15px; }
  .control-section-heading { align-items: flex-start; flex-direction: column; }
  .board-heading-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .board-tools { width: 100%; }
  .board-search { width: auto; flex: 1; }
  .control-side { grid-template-columns: 1fr; }
  .workflow-launcher { grid-template-columns: 1fr; }
  .workflow-launcher-copy { grid-column: auto; }
  .story-board { grid-template-columns: 1fr; overflow: visible; }
  .story-board[data-view="editor"] { grid-template-columns: 1fr; }
  .story-board[data-view="chief"] { grid-template-columns: 1fr; }
  .knowledge-approval-list { grid-template-columns: 1fr; }
  .knowledge-approval-heading { width: 100%; justify-content: space-between; }
  .story-meta-modal form { grid-template-columns: 1fr; }
  .story-meta-modal label.full { grid-column: auto; }
  .return-note-modal > header, .return-note-body, .return-note-modal > footer { padding-right: 18px; padding-left: 18px; }
  .return-note-modal > footer { align-items: stretch; flex-direction: column-reverse; }
  .return-note-modal > footer > * { justify-content: center; text-align: center; }
  .editor-note { grid-template-columns: auto minmax(0, 1fr); }
  .editor-note button { grid-column: 2; justify-self: start; }
  .reporter-return-brief > footer { align-items: stretch; flex-direction: column; }
  .return-brief-actions { justify-content: space-between; }
}

/* ─── 编辑 / 值班总编稿件版本档案 ───────────────────── */
.story-archive-side > span { display: flex; align-items: center; gap: 9px; }
.story-archive-side > span a:first-child { padding-right: 9px; border-right: 1px solid #d9e5e0; color: #806f75; }
.story-actions .story-version-link { color: #75676c; font-weight: 650; }
.story-actions .story-version-link:hover { color: var(--red); }
.versions-page { background: #f7f5f5; }
.version-history-shell { width: min(1500px, calc(100% - 56px)); margin-top: 30px; padding-bottom: 70px; }
.version-history-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 22px; }
.version-history-heading h1 { max-width: 970px; margin: 8px 0 6px; color: #251e21; font: 750 34px/1.25 var(--sans); letter-spacing: -.5px; }
.version-history-heading p { margin: 0; color: #82777b; font-size: 11px; line-height: 1.7; }
.version-heading-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.version-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 18px; overflow: hidden; border: 1px solid #e5dee0; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(50,30,37,.035); }
.version-overview article { min-width: 0; padding: 17px 20px; border-left: 1px solid #eee9ea; }
.version-overview article:first-child { border-left: 0; }
.version-overview span,.version-overview small { display: block; color: #958b8e; font-size: 8px; }
.version-overview strong { display: block; margin: 6px 0 4px; overflow: hidden; color: #30272a; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.version-history-layout { display: grid; grid-template-columns: 325px minmax(0,1fr); align-items: start; gap: 16px; }
.version-chain-card,.version-record-card { overflow: hidden; border: 1px solid #e5dee0; border-radius: 18px; background: #fff; box-shadow: 0 14px 38px rgba(49,27,34,.045); }
.version-chain-card { position: sticky; top: 18px; max-height: calc(100vh - 36px); }
.version-chain-card > header { display: flex; padding: 20px 21px 13px; align-items: flex-end; justify-content: space-between; gap: 14px; }
.version-chain-card h2,.version-audit-heading h2 { margin: 5px 0 0; color: #33292d; font-size: 18px; }
.version-chain-card > header > span { color: #9e2145; font-size: 10px; font-weight: 750; }
.version-chain-note { margin: 0; padding: 0 21px 15px; border-bottom: 1px solid #eee9ea; color: #94898d; font-size: 9px; line-height: 1.65; }
.version-chain { max-height: calc(100vh - 180px); overflow-y: auto; padding: 8px 14px 18px; }
.version-chain-item { display: grid; grid-template-columns: 42px minmax(0,1fr); padding: 10px 6px; }
.version-chain-marker { position: relative; display: flex; justify-content: center; }
.version-chain-marker span { position: relative; z-index: 1; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #ded4d7; border-radius: 10px; color: #7f7075; background: #fff; font-size: 9px; font-weight: 800; }
.version-chain-marker i { position: absolute; top: 34px; bottom: -20px; width: 1px; background: #e8e1e3; }
.version-chain-item:last-child .version-chain-marker i { display: none; }
.version-chain-item.current .version-chain-marker span { border-color: #a81b42; color: #fff; background: linear-gradient(145deg,#7c142f,#b71847); box-shadow: 0 7px 17px rgba(159,25,62,.2); }
.version-chain-body { min-width: 0; padding: 2px 0 12px 8px; border-bottom: 1px solid #f0ecee; }
.version-chain-item:last-child .version-chain-body { border-bottom: 0; }
.version-chain-body > header { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.version-chain-body > header strong { overflow: hidden; color: #403438; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.version-chain-body > header em { padding: 3px 5px; border-radius: 4px; color: #146950; background: #e5f4ee; font-size: 7px; font-style: normal; white-space: nowrap; }
.version-chain-body > p { margin: 5px 0 2px; color: #74686c; font-size: 9px; }
.version-chain-body > time { color: #a0979a; font-size: 8px; }
.version-chain-stats { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.version-chain-stats span { padding: 3px 5px; border-radius: 5px; color: #857b7e; background: #f6f3f4; font-size: 7px; }
.version-chain-stats span.added { color: #1e7259; background: #e9f5f0; }
.version-chain-stats span.removed { color: #a04440; background: #faecea; }
.version-chain-body > small { display: -webkit-box; margin-top: 7px; overflow: hidden; color: #85787d; font-size: 8px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.version-chain-body > footer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.version-chain-body > footer button { padding: 0; border: 0; background: transparent; color: #9d2145; font: 750 8px var(--sans); cursor: pointer; }
.version-chain-body > footer button:last-child { color: #75696d; }
.version-record-card { min-width: 0; }
.version-record-tabs { display: flex; min-height: 60px; padding: 0 22px; align-items: center; justify-content: space-between; border-bottom: 1px solid #ebe5e7; }
.version-record-tabs > div { display: flex; height: 60px; align-items: stretch; gap: 24px; }
.version-record-tabs button { position: relative; padding: 0 2px; border: 0; background: transparent; color: #817579; font: 700 11px var(--sans); cursor: pointer; }
.version-record-tabs button.active { color: #a9153e; }
.version-record-tabs button.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #b51643; content: ''; }
.version-record-tabs > span { color: #9b9194; font-size: 8px; }
.version-panel { padding: 19px 22px 24px; }
.version-compare-toolbar { display: grid; grid-template-columns: minmax(150px,1fr) auto minmax(150px,1fr) auto; align-items: end; gap: 11px; padding: 13px 14px; border: 1px solid #e8e1e3; border-radius: 12px; background: #faf8f8; }
.version-compare-toolbar label { color: #897e82; font-size: 8px; }
.version-compare-toolbar label span { display: block; margin-bottom: 5px; }
.version-compare-toolbar select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #ddd5d7; border-radius: 8px; background: #fff; color: #4c4145; font: 9px var(--sans); }
.version-compare-toolbar > i { align-self: center; color: #a3979b; font-style: normal; }
.version-compare-toolbar .btn { display: inline-flex; height: 36px; padding-block: 0; align-self: center; align-items: center; justify-content: center; white-space: nowrap; }
.version-compare-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 14px 0; overflow: hidden; border: 1px solid #e8e1e3; border-radius: 12px; }
.version-compare-summary > div { min-width: 0; padding: 11px 14px; border-left: 1px solid #eee9ea; background: #fff; }
.version-compare-summary > div:first-child { border-left: 0; }
.version-compare-summary span,.version-compare-summary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-compare-summary span { color: #9a9093; font-size: 7px; }
.version-compare-summary strong { margin-top: 4px; color: #44383d; font-size: 11px; }
.version-compare-summary strong.added { color: #197057; }
.version-compare-summary strong.removed { color: #a6433e; }
.version-document-compare { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: hidden; border: 1px solid #e5dee0; border-radius: 14px; background: #fff; }
.version-document-compare > article { min-width: 0; }
.version-document-compare > article + article { border-left: 1px solid #e5dee0; }
.version-document-compare > article.version-snapshot { grid-column: 1 / -1; }
.version-document-compare > article > header { display: flex; min-height: 62px; padding: 12px 15px; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #eee9ea; background: #fbf9fa; }
.version-document-compare > article > header span,.version-document-compare > article > header strong { display: block; }
.version-document-compare > article > header span { color: #a31a40; font-size: 8px; font-weight: 750; }
.version-document-compare > article > header strong { margin-top: 3px; color: #43373b; font-size: 10px; }
.version-document-compare > article > header small { color: #958b8e; font-size: 7px; text-align: right; }
.version-copy-body { min-height: 430px; max-height: 62vh; padding: 23px 25px 34px; overflow-y: auto; background: #fffdfa; }
.version-diff-sentence { margin: 0 0 10px; padding: 3px 5px; color: #3d3531; font: 13px/1.9 SimSun,"宋体",serif; }
.version-diff-sentence.added { border-radius: 4px; color: #245d4c; background: #dff0e9; box-shadow: inset 3px 0 #3b9175; }
.version-diff-sentence.removed { border-radius: 4px; color: #8d3b37; background: #f8e1df; box-shadow: inset 3px 0 #c76058; text-decoration: line-through; text-decoration-color: rgba(141,59,55,.45); }
.version-ai-reflection { margin-top: 16px; overflow: hidden; border: 1px solid #e3d3c0; border-radius: 14px; background: #fbf7ef; }
.version-ai-reflection > header { display: flex; padding: 16px 18px; align-items: center; gap: 12px; border-bottom: 1px solid #eadfce; background: linear-gradient(110deg,#fffaf3,#f8efe2); }
.version-ai-reflection > header > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg,#76152f,#b51746); box-shadow: 0 7px 16px rgba(143,22,55,.18); font-size: 10px; font-weight: 800; }
.version-ai-reflection > header strong { display: block; color: #3e3033; font-size: 13px; }
.version-ai-reflection > header p { margin: 4px 0 0; color: #8d7d79; font-size: 8px; }
.version-reflection-summary { padding: 16px 18px; border-bottom: 1px solid #eadfce; }
.version-reflection-summary span { color: #a01b40; font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.version-reflection-summary p { margin: 7px 0 0; color: #564947; font-size: 10px; line-height: 1.75; }
.version-reflection-list { display: grid; gap: 8px; padding: 12px; }
.version-reflection-list article { display: grid; min-width: 0; padding: 12px 13px; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; border: 1px solid #eee2d2; border-radius: 10px; background: rgba(255,255,255,.9); }
.version-reflection-list article > div { display: grid; min-width: 0; grid-template-columns: 24px minmax(0,1fr); align-items: start; gap: 5px 8px; }
.version-reflection-list article > div > span { grid-row: 1 / 3; padding-top: 1px; color: #b0536e; font-size: 8px; font-weight: 800; }
.version-reflection-list article strong { color: #403436; font-size: 10px; }
.version-reflection-list article p { grid-column: 2; margin: 0; color: #7e706e; font-size: 8px; line-height: 1.65; }
.version-reflection-list article button { height: 30px; padding: 0 11px; border: 1px solid #b51a46; border-radius: 8px; color: #fff; background: #b31543; font: 750 8px var(--sans); cursor: pointer; white-space: nowrap; }
.version-reflection-list article button:hover { background: #941035; }
.version-reflection-list article button:disabled { cursor: wait; opacity: .72; }
.version-reflection-list article button.confirmed { border-color: #2e8068; background: #2e8068; cursor: default; }
.version-reflection-state { padding: 26px 18px; text-align: center; }
.version-reflection-state strong { color: #5b4d4c; font-size: 11px; }
.version-reflection-state p { margin: 5px 0 0; color: #91827e; font-size: 8px; }
.version-reflection-state.error strong { color: #a31a40; }
.version-reflection-loading { display: flex; min-height: 94px; padding: 18px; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; }
.version-reflection-loading i { width: 6px; height: 6px; border-radius: 50%; background: #a91a41; animation: role-ai-pulse .9s ease-in-out infinite alternate; }
.version-reflection-loading i:nth-child(2) { animation-delay: .16s; }
.version-reflection-loading i:nth-child(3) { animation-delay: .32s; }
.version-reflection-loading p { width: 100%; margin: 5px 0 0; color: #8e7e7a; font-size: 8px; text-align: center; }
.version-empty-copy,.version-loading { margin: 0; padding: 30px; color: #9a9093; font-size: 10px; text-align: center; }
.version-audit-heading { display: flex; align-items: flex-end; justify-content: space-between; padding: 2px 2px 17px; border-bottom: 1px solid #eee9ea; }
.version-audit-heading > span { color: #968b8f; font-size: 9px; }
.version-audit-list { padding: 2px 4px 8px; }
.version-audit-item { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 11px; padding: 15px 4px; border-bottom: 1px solid #f0ecee; }
.version-audit-item > i { width: 10px; height: 10px; margin: 4px 0 0 4px; border: 3px solid #fff; border-radius: 50%; background: #92868a; box-shadow: 0 0 0 1px #cfc5c8; }
.version-audit-item > i.version,.version-audit-item > i.ai { background: #a71941; box-shadow: 0 0 0 1px #a71941; }
.version-audit-item > i.status,.version-audit-item > i.return { background: #cf6a3d; box-shadow: 0 0 0 1px #cf6a3d; }
.version-audit-item > i.final { background: #24765d; box-shadow: 0 0 0 1px #24765d; }
.version-audit-item header { display: flex; align-items: center; gap: 10px; }
.version-audit-item header strong { color: #41363a; font-size: 10px; }
.version-audit-item header span { color: #8f8488; font-size: 8px; }
.version-audit-item p { margin: 5px 0 3px; color: #75696d; font-size: 9px; }
.version-audit-item time { color: #a1989b; font-size: 8px; }
.version-audit-empty { display: grid; min-height: 280px; place-content: center; text-align: center; }
.version-audit-empty > span { display: grid; width: 38px; height: 38px; margin: 0 auto 10px; place-items: center; border: 1px dashed #d5cace; border-radius: 11px; color: #9c8e93; }
.version-audit-empty strong { color: #675b60; font-size: 11px; }
.version-audit-empty p { margin: 5px 0 0; color: #9a8f93; font-size: 9px; }

@media (max-width: 1050px) {
  .version-history-shell { width: calc(100% - 28px); }
  .version-history-layout { grid-template-columns: 270px minmax(0,1fr); }
  .version-compare-toolbar { grid-template-columns: 1fr auto 1fr; }
  .version-compare-toolbar .btn { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .version-history-heading { align-items: flex-start; flex-direction: column; }
  .version-heading-actions { width: 100%; }
  .version-heading-actions > * { flex: 1; justify-content: center; text-align: center; }
  .version-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .version-overview article:nth-child(3) { border-top: 1px solid #eee9ea; border-left: 0; }
  .version-overview article:nth-child(4) { border-top: 1px solid #eee9ea; }
  .version-history-layout { grid-template-columns: 1fr; }
  .version-chain-card { position: static; max-height: none; }
  .version-chain { max-height: 460px; }
  .version-document-compare { grid-template-columns: 1fr; }
  .version-document-compare > article + article { border-top: 1px solid #e5dee0; border-left: 0; }
  .version-reflection-list article { grid-template-columns: 1fr; }
  .version-reflection-list article button { width: 100%; }
  .version-copy-body { min-height: 260px; max-height: 48vh; }
}

/* 总编账号、安全审计与备份管理。 */
.account-popover > a { display: block; padding: 10px 14px; color: #5f5357; border-top: 1px solid #eee7e9; font-size: 12px; text-decoration: none; }
.account-popover > a:hover { color: var(--red); background: #fff7f9; }
.admin-shell { width: min(1360px, calc(100% - 48px)); margin: 30px auto 80px; }
.admin-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding: 30px 34px; color: #fff; border-radius: 20px; background: linear-gradient(120deg,#5d0d25,#a7133f 72%,#c65375); box-shadow: var(--shadow); }
.admin-hero h1 { margin: 7px 0 6px; font: 720 34px/1.2 var(--sans); }
.admin-hero p { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; }
.admin-hero .kicker { color: rgba(255,255,255,.68); }
.admin-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(320px,.75fr); gap: 18px; margin-bottom: 18px; }
.admin-card { padding: 25px 28px; border: 1px solid #ebe4e6; border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.admin-card header h2 { margin: 6px 0; font: 680 22px/1.3 var(--sans); }
.admin-card header p { margin: 0; color: #82777b; font-size: 12px; line-height: 1.7; }
.admin-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 20px; }
.admin-form label { display: grid; gap: 7px; color: #5c5255; font-size: 11px; font-weight: 700; }
.admin-form .full { grid-column: 1/-1; }
.admin-form input,.admin-form select,.admin-user-row input,.admin-user-row select { width: 100%; padding: 10px 11px; color: #362f32; border: 1px solid #ded5d8; border-radius: 9px; background: #fff; font: 12px var(--sans); }
.admin-form footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#user-form-message { color: var(--red); font-size: 11px; }
.backup-list { display: grid; gap: 9px; margin-top: 18px; max-height: 260px; overflow: auto; }
.backup-list > div { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; background: #f8f5f6; }
.backup-list strong { color: #6d1430; font-size: 11px; text-transform: uppercase; }
.backup-list span { color: #766b6f; font-size: 10px; }
.backup-list code { overflow: hidden; color: #5a5154; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.admin-list-heading > span { color: #7b6f73; font-size: 11px; }
.admin-user-list { display: grid; gap: 8px; }
.admin-user-row { display: grid; grid-template-columns: 42px minmax(150px,1fr) 140px 160px auto; align-items: center; gap: 13px; padding: 13px 14px; border: 1px solid #eee7e9; border-radius: 13px; background: #fcfbfb; }
.admin-user-row.disabled { opacity: .56; background: #f4f2f3; }
.admin-user-row.busy { pointer-events: none; opacity: .55; }
.admin-user-avatar { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; border-radius: 12px; background: #9e1740; font-weight: 750; }
.admin-user-row > div:nth-child(2) { min-width: 0; }
.admin-user-row > div:nth-child(2) strong,.admin-user-row > div:nth-child(2) span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-row > div:nth-child(2) strong { font-size: 13px; }
.admin-user-row > div:nth-child(2) span { margin-top: 3px; color: #8a7e82; font-size: 10px; }
.admin-user-row label { display: grid; gap: 4px; color: #8a7e82; font-size: 9px; }
.admin-user-actions { display: flex; justify-content: flex-end; gap: 6px; }
.audit-list { max-height: 420px; overflow: auto; border-top: 1px solid #eee7e9; }
.audit-row { display: grid; grid-template-columns: 54px minmax(190px,1fr) 150px 170px; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid #f0eaec; font-size: 11px; }
.audit-row > span:not(.audit-kind),.audit-row time { color: #817579; }
.audit-kind { width: fit-content; padding: 3px 7px; border-radius: 6px; font-size: 9px; font-weight: 750; }
.audit-kind.ok { color: #25705c; background: #e7f5f0; }
.audit-kind.fail { color: #a4143e; background: #fae8ee; }
@media (max-width: 1000px) { .admin-grid { grid-template-columns: 1fr; } .admin-user-row { grid-template-columns: 42px 1fr 120px 130px; } .admin-user-actions { grid-column: 2/-1; } }
@media (max-width: 680px) { .admin-shell { width: calc(100% - 20px); margin-top: 14px; } .admin-hero { align-items: stretch; flex-direction: column; } .admin-form { grid-template-columns: 1fr; } .admin-form .full { grid-column: auto; } .admin-user-row { grid-template-columns: 42px 1fr; } .admin-user-row > label,.admin-user-actions { grid-column: 1/-1; } .audit-row { grid-template-columns: 48px 1fr; } .audit-row time { grid-column: 2; } }

/* ─── 工作台纵向信息架构：主任务在前，辅助模块在后 ───── */
.control-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.control-board-panel { width: 100%; }
.control-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(260px, .85fr);
  align-items: stretch;
  gap: 14px;
}
.control-side-card { min-width: 0; }
.control-side .role-ai-card {
  display: grid;
  grid-column: 1 / -1;
  order: -1;
  grid-template-columns: minmax(260px, .42fr) minmax(420px, .58fr);
  grid-template-areas:
    "role-header role-header"
    "role-description role-actions"
    "role-result role-result"
    "role-disclaimer role-disclaimer";
  column-gap: 24px;
  padding: 22px 24px;
}
.control-side .role-ai-card[hidden] { display: none; }
.control-side .role-ai-card > header { grid-area: role-header; margin-bottom: 4px; }
.control-side .role-ai-description { grid-area: role-description; max-width: 520px; margin: 0; align-self: center; font-size: 10px; line-height: 1.75; }
.control-side .role-ai-actions { grid-area: role-actions; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: center; }
.control-side .role-ai-actions button { min-height: 62px; padding: 12px 14px; }
.control-side .role-ai-result {
  display: grid;
  grid-area: role-result;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}
.control-side .role-ai-summary,
.control-side .role-ai-empty,
.control-side .role-ai-notice,
.control-side .role-ai-loading,
.control-side .role-ai-error { grid-column: 1 / -1; }
.control-side .role-ai-summary { padding: 15px 17px; }
.control-side .role-ai-summary p { max-width: 1080px; font-size: 10px; }
.control-side .role-ai-item { min-height: 106px; padding: 14px 16px; }
.control-side .role-ai-item:nth-of-type(even) { border-left: 1px solid #eee8ea; }
.control-side .role-ai-item strong { font-size: 10px; }
.control-side .role-ai-item p,
.control-side .role-ai-item small { font-size: 9px; }
.control-side .role-ai-disclaimer { grid-area: role-disclaimer; margin-top: 10px; }
.control-side .attention-card { grid-column: 1; }
.control-side .quick-card { grid-column: 2; }
.control-side .knowledge-pulse { grid-column: 3; }
.control-side .activity-card { grid-column: 1 / -1; }
.control-side .activity-card > header { margin-bottom: 8px; }
.control-side .activity-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.control-side .activity-list a {
  min-width: 0;
  min-height: 66px;
  padding: 9px 10px;
  border: 1px solid #eee8ea;
  border-radius: 10px;
  background: #fbf9fa;
}
.control-side .activity-list a:first-child { border-top: 1px solid #eee8ea; }
.control-side .activity-list time { font-size: 7px; }

@media (max-width: 1180px) {
  .chief-inbox-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-side .role-ai-card { grid-template-columns: minmax(220px, .38fr) minmax(360px, .62fr); }
  .control-side .attention-card { grid-column: 1; }
  .control-side .quick-card { grid-column: 2; }
  .control-side .knowledge-pulse { grid-column: 1 / -1; }
  .control-side .activity-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .chief-inbox-heading { align-items: stretch; }
  .chief-inbox-heading,
  .chief-inbox-summary { width: 100%; }
  .chief-inbox-summary > span { min-width: 0; flex: 1; }
  .chief-inbox-list { grid-template-columns: minmax(0, 1fr); }
  .control-side { grid-template-columns: minmax(0, 1fr); }
  .control-side .role-ai-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "role-header"
      "role-description"
      "role-actions"
      "role-result"
      "role-disclaimer";
    padding: 18px;
  }
  .control-side .role-ai-actions { margin-top: 10px; }
  .control-side .role-ai-result { grid-template-columns: minmax(0, 1fr); }
  .control-side .role-ai-item { min-height: 0; }
  .control-side .role-ai-item:nth-of-type(even) { border-left: 0; }
  .control-side .attention-card,
  .control-side .quick-card,
  .control-side .knowledge-pulse,
  .control-side .activity-card { grid-column: 1; }
  .control-side .activity-list { grid-template-columns: minmax(0, 1fr); }
}
.writing-entry-state {
  min-height: calc(100vh - 172px);
  padding: clamp(34px, 7vh, 72px) 5vw;
  display: grid;
  place-items: start center;
  background:
    radial-gradient(circle at 74% 10%, rgba(178, 13, 62, .055), transparent 27%),
    linear-gradient(180deg, #fbf9f9 0%, #f7f4f4 100%);
}
.writing-entry-state[hidden] { display: none; }
.writing-entry-state > section {
  width: min(920px, 100%);
  padding: clamp(28px, 3.4vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr);
  gap: 24px 42px;
  text-align: left;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #e8dfe1;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(54, 31, 37, .075);
}
.writing-entry-copy { align-self: center; }
.writing-entry-heading { display: flex; align-items: center; gap: 13px; }
.writing-entry-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(145deg, #b20d3e, #7c092d);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(178, 13, 62, .16);
}
.writing-entry-state .kicker { font-size: 8px; letter-spacing: 1.7px; }
.writing-entry-status { margin: 4px 0 0; color: #a90d3a; font-size: 12px; font-weight: 760; }
.writing-entry-state h1 { max-width: 490px; margin: 23px 0 0; color: #251f21; font-size: clamp(25px, 2.7vw, 34px); letter-spacing: -.035em; line-height: 1.24; }
.writing-entry-state #writing-entry-description { max-width: 500px; margin: 12px 0 0; color: #746b6e; font-size: 13px; line-height: 1.75; }
.writing-entry-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 21px; color: #8a2948; font-size: 12px; font-weight: 750; text-decoration: none; }
.writing-entry-link span { transition: transform .18s ease; }
.writing-entry-link:hover { color: #a40f3b; }
.writing-entry-link:hover span { transform: translateX(3px); }
.writing-entry-actions { display: grid; align-content: center; gap: 10px; }
.writing-entry-option {
  min-height: 78px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #30272a;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e7dde0;
  border-radius: 13px;
  box-shadow: 0 6px 18px rgba(49, 30, 36, .035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.writing-entry-option:hover { transform: translateY(-2px); border-color: #d9bdc6; box-shadow: 0 10px 24px rgba(65, 37, 46, .075); }
.writing-entry-option[hidden] { display: none; }
.writing-entry-option-icon { display: grid; place-items: center; width: 36px; height: 36px; color: #9f113b; font-size: 15px; font-weight: 800; background: #f9e9ee; border-radius: 10px; }
.writing-entry-option-copy { min-width: 0; display: grid; gap: 4px; }
.writing-entry-option-copy strong { font-size: 14px; line-height: 1.25; }
.writing-entry-option-copy small { color: #8a7e82; font-size: 11px; line-height: 1.5; }
.writing-entry-option-arrow { color: #a30c39; font-size: 16px; transition: transform .18s ease; }
.writing-entry-option:hover .writing-entry-option-arrow { transform: translateX(3px); }
.writing-entry-option-primary { color: #fff; background: linear-gradient(135deg, #b20d3e 0%, #870a31 100%); border-color: transparent; box-shadow: 0 10px 24px rgba(178, 13, 62, .16); }
.writing-entry-option-primary:hover { border-color: transparent; box-shadow: 0 14px 30px rgba(178, 13, 62, .22); }
.writing-entry-option-primary .writing-entry-option-icon { color: #fff; background: rgba(255, 255, 255, .16); }
.writing-entry-option-primary .writing-entry-option-copy small { color: rgba(255, 255, 255, .72); }
.writing-entry-option-primary .writing-entry-option-arrow { color: #fff; }
.writing-entry-flow { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-top: 2px; padding-top: 20px; border-top: 1px solid #eee6e8; color: #81777a; font-size: 11px; }
.writing-entry-flow span { display: flex; align-items: center; gap: 8px; }
.writing-entry-flow i { color: #a20c39; font-size: 9px; font-style: normal; font-weight: 820; letter-spacing: .04em; }
.writing-entry-flow b { color: #c8bcc0; font-weight: 400; }
@media (max-width: 760px) {
  .writing-entry-state { padding: 24px 18px 34px; }
  .writing-entry-state > section { grid-template-columns: minmax(0, 1fr); gap: 25px; padding: 26px 22px 22px; }
  .writing-entry-state h1 { margin-top: 20px; font-size: clamp(24px, 7vw, 30px); }
  .writing-entry-actions { gap: 9px; }
  .writing-entry-flow { gap: 9px; overflow-x: auto; white-space: nowrap; }
}

/* 审稿闭环：区分上一轮问题是否解决，以及本轮新发现问题。 */
.review-closure-panel {
  margin: 0 0 18px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #fff 0%, #fbf7f8 100%);
  border: 1px solid #eadfe2;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(64, 38, 45, .06);
}
.review-closure-panel[hidden] { display: none; }
.review-closure-panel > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.review-closure-panel h2 { margin: 5px 0 0; font-size: 21px; }
#review-closure-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; color: #766d70; }
#review-closure-summary b { padding: 7px 10px; font-size: 12px; border-radius: 999px; }
#review-closure-summary .resolved { color: #18765e; background: #e7f5f0; }
#review-closure-summary .persistent { color: #b20d3e; background: #fae8ee; }
#review-closure-summary .verify { color: #9a6421; background: #fff2df; }
#review-closure-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.closure-item { display: flex; gap: 10px; min-width: 0; padding: 13px 14px; background: #fff; border: 1px solid #ece5e7; border-radius: 13px; }
.closure-item > span { align-self: flex-start; flex: 0 0 auto; padding: 4px 7px; font-size: 11px; font-weight: 750; border-radius: 7px; }
.closure-item.resolved > span { color: #18765e; background: #e7f5f0; }
.closure-item.persistent > span { color: #b20d3e; background: #fae8ee; }
.closure-item.needs_verification > span { color: #9a6421; background: #fff2df; }
.closure-item strong { color: #30292b; font-size: 13px; }
.closure-item p { margin: 5px 0 0; color: #796f72; font-size: 12px; line-height: 1.55; }
.issue-cycle-badge { display: inline-flex; margin-left: 6px; padding: 3px 6px; border: 0; border-radius: 6px; font-size: 10px; font-weight: 750; vertical-align: 1px; }
.issue-cycle-badge.persistent { color: #b20d3e; background: #fae8ee; }
.issue-cycle-badge.new { color: #5f4b76; background: #f0eafa; }
.ai-result-group.resolution > strong { margin-bottom: 7px; }
.ai-writing-result .ai-result-group.resolution ul { display: flex; flex-direction: column; gap: 6px; margin-top: 0; }
.ai-writing-result .ai-result-group.resolution li { min-height: 0; padding: 8px 10px; border: 1px solid rgba(123,102,57,.13); border-radius: 8px; background: rgba(255,255,255,.58); }
.ai-writing-result .ai-result-group.resolution li::before { content: none; }
.resolution-item-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.resolution-item-head b { display: inline-flex; flex: 0 0 auto; align-items: center; width: auto; padding: 2px 6px; border-radius: 5px; font-size: 10px; line-height: 1.45; white-space: nowrap; writing-mode: horizontal-tb; }
.resolution-item-head span { min-width: 0; color: #4d4542; font-size: 11px; font-weight: 700; }
.ai-writing-result .resolution-item p { margin: 4px 0 0; color: #6b625d; line-height: 1.58; overflow-wrap: anywhere; }
.ai-result-group.resolution li.resolved b { color: #18765e; background: #e7f5f0; }
.ai-result-group.resolution li.unresolved b { color: #b20d3e; background: #fae8ee; }
.ai-result-group.resolution li.needs_verification b { color: #9a6421; background: #fff2df; }
@media (max-width: 900px) {
  .review-closure-panel > header { align-items: flex-start; flex-direction: column; }
  #review-closure-items { grid-template-columns: minmax(0, 1fr); }
}

/* 知识资产维护与写稿设置联动。 */
.writing-asset-hint {
  display: block;
  margin-top: 7px;
  color: #8a7f82;
  font-size: 10px;
  line-height: 1.55;
}
.knowledge-asset-form > label {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  color: #51484b;
  font-size: 12px;
  font-weight: 700;
}
.knowledge-asset-form input,
.knowledge-asset-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d8cdd0;
  border-radius: 10px;
  color: #2f292b;
  background: #fff;
  font: 13px/1.65 var(--sans);
  outline: none;
  resize: vertical;
}
.knowledge-asset-form input:focus,
.knowledge-asset-form textarea:focus {
  border-color: #b20d3e;
  box-shadow: 0 0 0 4px rgba(178, 13, 62, .07);
}
.knowledge-asset-detail { display: grid; gap: 12px; margin: 4px 0 18px; }
.knowledge-asset-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.knowledge-asset-meta span { padding: 5px 8px; color: #756a6d; background: #f5f1f2; border-radius: 7px; font-size: 10px; }
.knowledge-asset-detail section { padding: 15px 17px; border: 1px solid #ece3e5; border-radius: 12px; background: #fcfafb; }
.knowledge-asset-detail label { display: block; margin-bottom: 7px; color: #a20c39; font-size: 11px; font-weight: 750; }
.knowledge-asset-detail p { margin: 0; color: #51494b; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.knowledge-asset-detail ol { display: grid; gap: 7px; margin: 0; padding-left: 22px; color: #51494b; font-size: 13px; line-height: 1.65; }
.knowledge-row-actions { white-space: normal !important; }
.knowledge-row-actions button { margin: 2px; }
.knowledge-row-actions [data-delete-asset] { color: #9f2748; background: #fff7f9; }
.knowledge-row-actions [data-approve-asset] { color: #fff; border-color: #a91843; background: #a91843; }
#asset-action-hint { margin-right: auto; color: #7b7073; font-size: 10px; line-height: 1.5; }
@media (max-width: 760px) {
  .table-toolbar { align-items: stretch; flex-direction: column; padding-block: 10px; }
  .table-search { flex-wrap: wrap; }
  .table-search input { flex: 1 1 170px; }
  #asset-action-hint { width: 100%; }
  #asset-modal .article-modal > footer { flex-wrap: wrap; }
}
