/* Studio theme. Legacy business forms and tables inherit the workspace tokens. */
:root {
  --bg:#f8f7fa; --bg-subtle:#f4f2f6; --paper:#fff; --paper-subtle:#f8f7fa;
  --ink:#201923; --ink-secondary:#453c49; --muted:#706876; --line:#e3dfe6;
  --line-strong:#c9c2ce; --brand:#703bc2; --brand-hover:#57269f; --brand-active:#4d2094;
  --brand-soft:#f3ecfc; --brand-border:#d6c2ee; --brand-glow:rgb(109 54 183 / 16%);
  --shadow:0 1px 3px rgb(43 22 51 / 4%);
  --workspace-cover:url("/assets/campaign-cover.jpg");
}
body { background:var(--bg); }
:where(button,a,summary,select,input,textarea):focus-visible { outline-color:#8750d4; }
.sidebar {
  width:204px; flex-basis:204px; color:#f7f1fb; border:0;
  background:linear-gradient(170deg,#241429 0%,#1e1524 53%,#26182e 100%);
}
.brand-row { min-height:85px; padding:0 23px; }
.logo { gap:12px; }
.brand-symbol { width:34px; height:29px; border-radius:0; display:flex; align-items:center; gap:3px; transform:skewX(-22deg); background:none; }
.brand-symbol i { width:12px; height:23px; display:block; border-radius:3px; background:linear-gradient(140deg,#ddbdff,#9355e0); }
.brand-symbol i:last-child { background:linear-gradient(140deg,#af82ed,#7940bf); }
.brand-type strong { font:770 1.64rem/.98 Inter,Arial,sans-serif; color:#fff; letter-spacing:-.035em; }
.brand-type small { font-size:.75rem; color:#c7baca; }
#nav { padding-inline:12px; scrollbar-color:#54425a transparent; }
.nav-caption { color:#baa8c3; font-size:.75rem; letter-spacing:.04em; padding:10px 11px 5px; }
.nav-item { min-height:33px; border-radius:7px; color:#e3d8e8; }
.nav-item:hover { color:white; background:#39273f; }
.nav-item.active, .nav-item.active:hover { color:white; background:#7141b4; }
.nav-item.active .ico { color:#fff; }
.nav-item .count { color:#f0e5f6; background:#49384d; }
.nav-item.active .count { color:#fff; background:#8b58c4; }
.side-foot { background:#271a2c; border-top:1px solid #443249; }
.side-foot .env-dot { color:#eadfee; }
#side-env { color:#bfaec7; }
.drawer-close { background:transparent; color:white; border:0; }
.topbar { background:#fff; height:56px; padding-inline:clamp(20px,2.4vw,40px); }
.crumb-brand { color:#615767; }
.crumb-divider { color:#aaa1af; }
.project-caption { font-size:.8rem; color:var(--muted); white-space:nowrap; }
.topbar .quick-search-trigger { border-color:transparent; }
body:has(#view[data-page="overview"]) .quick-search-trigger { display:none; }
.content { padding:24px clamp(20px,2.4vw,40px) 38px; }
.overview-head { min-height:45px; margin-bottom:18px; }
.overview-head h1 { font-size:clamp(1.9rem,2.8vw,2.65rem); font-weight:760; letter-spacing:-.065em; }
.overview-actions { gap:19px; }
.overview-actions .btn { min-height:40px; border-radius:8px; padding-inline:17px; }
.overview-actions time { color:var(--ink-secondary); }
.campaign-grid { display:grid; grid-template-columns:minmax(0,1.95fr) minmax(285px,1fr); gap:16px; }
.project-banner {
  display:flex; flex-direction:column; align-items:stretch; justify-content:space-between; gap:20px;
  padding:25px 27px 23px; min-height:228px; border-radius:14px; background:#281322;
}
.project-banner::before {
  inset:0; content:""; position:absolute; z-index:-1;
  background:linear-gradient(90deg,rgb(31 11 29 / 84%) 0%,rgb(32 12 31 / 59%) 48%,rgb(27 9 23 / 8%) 86%),
    var(--workspace-cover) 62% center / cover no-repeat;
}
.project-summary { max-width:90%; }
.project-context { gap:7px; color:#f2e3ee; font-size:.82rem; }
.project-context svg { color:#e3cae2; }
.project-summary h2 { color:white; font-size:clamp(1.52rem,2.3vw,2.32rem); letter-spacing:-.045em; line-height:1.22; margin:9px 0 10px; }
.project-facts { display:flex; align-items:center; gap:5px 0; color:#f3e8ef; font-size:.82rem; }
.project-facts span, .project-facts span:first-child { white-space:normal; border:0; padding:0; }
.project-facts span+span { padding-left:11px; margin-left:11px; border-left:1px solid #a28a9c; }
.project-facts b { color:white; }
.campaign-rules { display:inline-block; margin-top:8px; font-size:.77rem; line-height:1.45; color:#f5ebf8; }
.campaign-rules summary { cursor:pointer; width:fit-content; }
.campaign-rules[open] { background:#301b30ed; border-radius:6px; padding:6px 9px; }
.campaign-rules div { margin-top:4px; }
.reserve { display:block; min-width:0; width:min(100%,430px); flex:none; padding:0; border:0; background:none; }
.reserve-title { font-size:.8rem; color:white; font-weight:540; gap:10px; }
.reserve-title b { font:600 .82rem/1.4 Inter,system-ui,sans-serif; color:#fff; }
.reserve-track { margin:6px 0 0; height:6px; background:#ffffff52; }
.reserve-track i { background:#c99aff; }
.card, .metric { border-color:var(--line); }
.priority-card { margin:0; display:flex; flex-direction:column; }
.priority-card .card-head { border:0; padding:17px 18px 5px; }
.priority-card .card-head h2, .board-card .card-head h2 { font-size:1.13rem; font-weight:690; letter-spacing:-.035em; }
.priority-list { padding:0 16px 7px; display:grid; flex:1; }
.priority-row {
  display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:11px; align-items:center;
  border:0; background:white; border-bottom:1px solid var(--line); color:var(--ink); padding:8px 1px; text-align:left;
}
.priority-row:last-child { border:0; }
.priority-row:hover { background:#faf8fd; }
.priority-row strong,.priority-row small { display:block; }
.priority-row strong { font-size:.906rem; font-weight:620; }
.priority-row small { font-size:.76rem; color:var(--muted); font-weight:450; }
.priority-row > b { font:650 1.26rem/1.15 Inter,Arial,sans-serif; display:flex; align-items:baseline; gap:4px; }
.priority-icon { width:34px; height:34px; display:grid; place-items:center; border-radius:8px; }
.priority-icon.coral { background:#fae8e9; color:#b74051; }
.priority-icon.amber { background:#fcf0dc; color:#975e15; }
.priority-icon.iris { background:#f0e7fb; color:#713bad; }
.overview-metrics {
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:0;
  overflow:hidden; background:white; border:1px solid var(--line); border-radius:13px; margin:16px 0;
}
.overview-metrics .metric {
  align-items:center; justify-content:center; position:relative; padding:14px 8px 12px;
  border:0; border-radius:0; color:var(--ink); background:white; text-align:center; gap:2px;
}
.metric+.metric::before { content:""; position:absolute; height:58%; width:1px; left:0; top:21%; background:var(--line); }
.overview-metrics .metric:hover { background:#f7f2fd; box-shadow:none; }
.metric:focus-visible { outline-offset:-4px; }
.metric-value { font:670 clamp(1.8rem,2.6vw,2.4rem)/1 Inter,Arial,sans-serif; letter-spacing:-.06em; margin:0 0 3px; }
.metric-value small { font-size:.73rem; font-weight:480; margin-left:4px; }
.metric-label { color:var(--ink-secondary); font-size:.865rem; font-weight:600; }
.metric-note { font-size:.75rem; }
.board-pair { grid-template-columns:minmax(0,1.58fr) minmax(275px,1fr); gap:16px; }
.board-card { display:flex; min-width:0; flex-direction:column; }
.board-card .card-head { padding:16px 18px 10px; border:0; align-items:center; }
.agenda-controls { display:flex; gap:5px; flex-wrap:wrap; padding:0 17px 11px; }
.agenda-controls button {
  border:1px solid var(--line); color:var(--ink-secondary); background:white; border-radius:6px; font-size:.78rem;
  padding:4px 8px; min-height:28px; white-space:nowrap;
}
.agenda-controls button[aria-pressed=true] { color:white; border-color:var(--brand); background:var(--brand); }
.agenda-controls b { font-weight:580; }
.agenda-panel { margin:0 17px 10px; }
.agenda-columns,.timeline-row { display:grid; grid-template-columns:minmax(115px,1.4fr) minmax(75px,1fr) minmax(50px,.55fr) minmax(72px,.75fr); gap:6px; align-items:center; }
.agenda-columns { background:#f5f3f6; border-radius:5px; font-size:.75rem; color:var(--muted); padding:5px 7px; }
.timeline-row { background:white; color:var(--ink-secondary); border:0; border-bottom:1px solid #edeaf0; width:100%; padding:8px 7px; text-align:left; font-size:.83rem; }
.timeline-row:last-child { border:0; }
.timeline-row:hover, .audit-legend button:hover { background:#faf7fd; }
.timeline-row time { font-size:.79rem; font-variant-numeric:tabular-nums; }
.timeline-row .badge { width:fit-content; }
.timeline-person { min-width:0; display:flex; align-items:center; gap:8px; }
.timeline-person > span { min-width:0; }
.timeline-person strong,.timeline-person small { display:block; overflow-wrap:anywhere; }
.timeline-person strong { font-size:.875rem; color:var(--ink); font-weight:610; }
.timeline-person small { color:var(--muted); font-size:.75rem; }
.person-mark { flex-shrink:0; border-radius:50%; width:31px; height:31px; display:grid; place-items:center; font-size:.82rem; font-style:normal; font-weight:600; }
.shade-0 { background:#e4eafa; color:#485b88; }
.shade-1 { background:#f5e2ed; color:#8a496b; }
.shade-2 { background:#eee4fb; color:#74539b; }
.shade-3 { background:#e5efea; color:#4b715c; }
.shade-4 { background:#f7e8d9; color:#8b6443; }
.agenda-more { color:var(--muted); font-size:.8rem; padding:7px; }
#follow-up { scroll-margin-top:68px; }
.decision-body { padding:5px 18px 13px; }
.decision-track { height:15px; display:flex; gap:2px; overflow:hidden; border-radius:5px; background:#f1edf2; margin:0 0 9px; }
.audit-legend { max-width:none; min-width:0; }
.audit-legend li { display:block; margin:0; }
.audit-legend button { width:100%; display:grid; align-items:center; grid-template-columns:9px 1fr auto 40px; gap:9px; background:white; border:0; border-bottom:1px solid #eeebf0; text-align:left; color:var(--ink-secondary); padding:5px 1px; }
.audit-legend li:last-child button { border:0; }
.audit-legend i { border-radius:50%; }
.decision-total { display:flex; justify-content:space-between; align-items:center; margin-top:7px; padding:7px 11px; color:var(--ink-secondary); font-size:.82rem; font-weight:580; background:#f3f0f6; border-radius:6px; }
.decision-total strong { font:650 1rem/1.2 Inter,Arial,sans-serif; }
.decision-total small { font-size:.75rem; }
.access-cover { background:linear-gradient(90deg,#231225ee,#29112c42),var(--workspace-cover) 65% 54%/cover no-repeat,#2b1c30; }
.access-wordmark { color:#eedfff; }
.access-error { color:#a32744; }
.spend-box.highlight { background:#f5f0fb; border-color:#dccde9; }
.risk-item { background:#fbfafd; }
.batch-bar,.batch-item.active { background:var(--brand-soft); }
.review-tools .active { border-color:var(--brand); }
.review-layout .table-wrap thead th, .table-wrap th { background:#f5f3f7; }
.page-head .actions { align-self:center; }
.stat.accent { border-top-color:#9e76cf; }
.stat.good { border-top-color:#72ad94; }
.stat.warn { border-top-color:#dfb56f; }
.stat.bad { border-top-color:#d992a1; }
@media(min-width:901px) and (max-width:1199px) {
  .sidebar { width:185px; flex-basis:185px; }
  .content { padding-inline:20px; }
  .campaign-grid { grid-template-columns:minmax(0,1.6fr) minmax(245px,1fr); gap:12px; }
  .board-pair { grid-template-columns:minmax(0,1fr); }
  .priority-row { gap:8px; }
}
@media(max-width:900px) {
  .content { padding:18px 18px 30px; }
  .campaign-grid { grid-template-columns:minmax(0,1.55fr) minmax(232px,1fr); gap:12px; }
  .board-pair { grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr); gap:12px; }
  .project-caption { display:none; }
  .agenda-columns,.timeline-row { grid-template-columns:minmax(98px,1.25fr) minmax(62px,.85fr) minmax(42px,.45fr) minmax(64px,.65fr); }
}
@media(max-width:775px) {
  .board-pair { grid-template-columns:minmax(0,1fr) !important; }
}
@media(max-width:700px) {
  .topbar { height:53px; padding-inline:9px; }
  .content { padding:16px 12px 28px; }
  .overview-head:has(.overview-actions) { display:flex; flex-wrap:nowrap; gap:8px; align-items:center; min-height:36px; margin-bottom:12px; }
  .overview-head h1 { font-size:1.65rem; }
  .overview-actions .btn { font-size:.84rem; padding:0 10px; }
  .campaign-grid { grid-template-columns:minmax(0,1fr); gap:10px; }
  .project-banner { padding:16px 17px; min-height:168px; flex-wrap:nowrap; gap:14px; border-radius:12px; }
  .project-banner::before { background-position:center,60% center; }
  .project-summary { flex:none; max-width:100%; }
  .project-summary h2 { font-size:1.46rem; margin:5px 0 7px; }
  .project-context { font-size:.76rem; }
  .project-facts { font-size:.77rem; }
  .campaign-rules { margin-top:5px; }
  .reserve { display:block; padding:0; width:min(82%,340px); flex:none; }
  .reserve-title { display:flex; justify-content:space-between; }
  .reserve-track { margin:4px 0 0; }
  .priority-card .card-head { padding:12px 12px 8px; }
  .priority-card .card-head h2 { font-size:1rem; }
  .priority-list { padding:0 5px 8px; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .priority-row { display:grid; grid-template-columns:auto 1fr; gap:5px; border:0; border-right:1px solid var(--line); padding:0 6px; }
  .priority-row:last-child { border:0; }
  .priority-row > span:nth-child(2) { grid-column:1/-1; grid-row:2; }
  .priority-icon { width:24px; height:24px; border-radius:5px; }
  .priority-icon .ico { width:14px; height:14px; }
  .priority-row strong { font-size:.77rem; }
  .priority-row >span > small { display:none; }
  .priority-row > b { grid-row:1; grid-column:2; font-size:1.03rem; }
  .overview-metrics { grid-template-columns:repeat(3,minmax(0,1fr)) !important; margin:10px 0; }
  .overview-metrics .metric, .overview-metrics .metric:last-child { display:flex; grid-column:auto; min-height:65px; padding:7px 4px; justify-content:center; }
  .overview-metrics .metric:nth-child(n+4) { border-top:1px solid var(--line); }
  .overview-metrics .metric:nth-child(4) { grid-column:1 / 2; }
  .overview-metrics .metric:last-child { grid-column:2 / 4; }
  .overview-metrics .metric-note { display:none; }
  .metric-value { font-size:1.48rem; margin:0; }
  .metric-label { font-size:.75rem; }
  .board-card .card-head { padding:12px 12px 8px; }
  .agenda-controls { padding:0 12px 8px; gap:4px; }
  .agenda-controls button { padding:3px 7px; min-height:32px; }
  .agenda-panel { margin:0 10px 8px; }
  .agenda-columns,.timeline-row { grid-template-columns:minmax(84px,1.2fr) minmax(44px,.7fr) minmax(37px,.45fr) minmax(58px,.6fr); gap:4px; }
  .agenda-columns { font-size:.69rem; padding:4px; }
  .timeline-row { padding:8px 3px; font-size:.75rem; }
  .timeline-row .badge { font-size:.7rem; padding-inline:5px; }
  .timeline-row time { font-size:.75rem; }
  .timeline-person { gap:4px; }
  .person-mark { width:23px; height:23px; font-size:.7rem; }
  .timeline-person strong, .timeline-person small { font-size:.75rem; }
  .decision-body { padding-inline:12px; }
  .audit-legend button { min-height:33px; }
}
@media(max-width:365px) {
  .person-mark { display:none; }
  .agenda-controls button { padding-inline:4px; }
  .reserve { width:94%; }
}
/* Keep the selected creator and its current verdict in view during review. */
.review-metrics { grid-template-columns:repeat(5,minmax(0,1fr)); }
.review-metrics button { text-align:left; width:100%; font:inherit; }
.review-metrics button:hover { background:#fbf8ff; }
.review-metrics button[aria-pressed="true"] { border-color:#9364c7; background:#faf6ff; box-shadow:inset 0 0 0 1px #9364c7; }
.review-layout .card-head input[type=search], #verdict-filter { height:36px !important; padding-block:5px; }
#verdict-filter { width:145px; }
.review-layout .batch-bar:not(.has-selection) [data-act="batch-decide"],
.review-layout .batch-bar:not(.has-selection) [data-act="pick-clear"] { display:none; }
.review-layout .batch-bar:not(.has-selection) { background:#f7f5f8; }
.record-actions { display:grid; gap:6px; }
.record-action { display:flex; gap:11px; align-items:center; padding:10px 12px; min-height:42px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink-secondary); text-align:left; font-size:.9rem; }
.record-action:hover { background:var(--brand-soft); border-color:var(--brand-border); }
.record-action[data-act="del-creator"] { color:var(--red-dark); }
#dlg:has(.record-actions) { max-width:min(360px,calc(100vw - 24px)); }
@media(max-width:700px) {
  .review-metrics { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:5px; }
  .review-metrics button.stat { padding:8px; }
  .review-metrics .stat .f { display:none; }
  .review-metrics .stat .k { font-size:.75rem; }
  .review-metrics .stat .v { font-size:1.15rem; }
  .review-metrics .stat .k .ico { display:none; }
  .review-table { padding:0 9px 5px; overflow:visible; }
  .review-layout .review-table table, .review-table tbody { display:block; width:100%; min-width:0; }
  .review-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .review-table [data-row] {
    margin:9px 0; padding:10px; border:1px solid var(--line); border-radius:9px; display:grid;
    grid-template-columns:20px 1fr 1fr; grid-template-areas:"pick name name" "agency agency audience" "verify verify score" "verdict verdict verdict" "actions actions actions";
    gap:7px 5px; align-items:start; background:white;
  }
  .review-table td { min-width:0 !important; border:0; padding:0; font-size:.8rem; }
  .review-table td:nth-child(1) { grid-area:pick; position:static; margin-top:4px; }
  .review-table td:nth-child(2) { grid-area:name; }
  .review-table td:nth-child(3) { grid-area:agency; }
  .review-table td:nth-child(4) { grid-area:audience; }
  .review-table td:nth-child(5) { grid-area:verify; }
  .review-table td:nth-child(6) { grid-area:score; }
  .review-table td:nth-child(7) { grid-area:verdict; }
  .review-table td:nth-child(8) { grid-area:actions; border-top:1px solid var(--line); padding-top:6px; }
  .review-table td:nth-child(n+3):nth-child(-n+7)::before { display:block; color:var(--muted); font-size:.75rem; margin-bottom:2px; }
  .review-table td:nth-child(3)::before { content:"代理机构"; }
  .review-table td:nth-child(4)::before { content:"粉丝与受众"; }
  .review-table td:nth-child(5)::before { content:"联网核验"; }
  .review-table td:nth-child(6)::before { content:"综合评分"; }
  .review-table td:nth-child(7)::before { content:"审核结论"; display:inline-block !important; margin-right:8px; }
  .review-table td:nth-child(8) .row-acts { justify-content:flex-end; }
  .overview-metrics { grid-template-columns:repeat(6,minmax(0,1fr)) !important; }
  .overview-metrics .metric { grid-column:span 2; }
  .overview-metrics .metric:nth-child(4),.overview-metrics .metric:last-child { grid-column:span 3; }
}

/* AI 生成区块：档案审核意见 / 合作文案，内嵌在弹窗里，不打断未保存的表单 */
.ai-box {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-subtle);
}
.ai-box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ai-box-head b { font-size: 13px; color: var(--ink); }
.ai-box-head .mini { display: block; margin-top: 3px; line-height: 1.6; }
.ai-box-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ai-output {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  white-space: pre-wrap;
  font-size: 12.8px;
  line-height: 1.9;
  color: var(--ink-secondary);
}
@media(max-width:560px) {
  .ai-box-head { flex-direction: column; }
  .ai-box-actions { width: 100%; }
  .ai-box-actions .btn { flex: 1; }
}
