:root {
  color-scheme: light dark;
  --bg: #fbfbfa;
  --panel: #ffffff;
  --border: #e3e2df;
  --text: #1b1b19;
  --muted: #6b6a66;
  --accent: #2f6f4f;
  --warn: #9a5b12;
  --error: #a02c2c;
  --ok: #2f6f4f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --panel: #1e2024;
    --border: #303338;
    --text: #e8e8e6;
    --muted: #9b9a96;
    --accent: #6fbf8f;
    --warn: #d99a4e;
    --error: #e07a7a;
    --ok: #6fbf8f;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1.5rem clamp(1rem, 4vw, 3rem) 4rem;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.subtitle {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
  max-width: 46rem;
}

.token-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

.token-panel label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 0.6rem;
}

.token-panel .hint {
  margin: 0.5rem 0 0;
}

h1 {
  font-size: 1.4rem;
  margin: 0;
}

h2 {
  font-size: 1.05rem;
  margin: 2rem 0 0.5rem;
}

.meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

button {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.25rem 0 0.75rem;
}

code {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  font-size: 0.85em;
}

.alerts {
  border: 1px solid var(--error);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  background: color-mix(in srgb, var(--error) 8%, transparent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 0.75rem 0.9rem;
}

.card .label {
  color: var(--muted);
  font-size: 0.78rem;
}

.card .value {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  margin-top: 0.15rem;
}

/* 探针指标的小字说明:比 .value 次要,但比 .label 更靠下 */
.card .card-note {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 0.3rem;
  line-height: 1.35;
}

.token-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.token-row label {
  font-size: 0.85rem;
  color: var(--muted);
}

input[type='password'] {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  min-width: 16rem;
}

.cookie-state {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.cookie-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

textarea {
  font: inherit;
  font-size: 0.85rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  width: 100%;
  resize: vertical;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-result {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
}

.cookie-result.ok {
  border-color: var(--ok);
  background: color-mix(in srgb, var(--ok) 8%, transparent);
}

/* 干跑要逐筐换行列出来,单行会挤成一团看不出筐界 */
#semantic-result {
  white-space: pre-wrap;
  line-height: 1.6;
}

.cookie-result.bad {
  border-color: var(--error);
  background: color-mix(in srgb, var(--error) 8%, transparent);
}

/* 右上角的用户端周报入口:是链接不是按钮,但视觉上与按钮同排 */
.weekly-link {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
}
.weekly-link:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

tbody tr:last-child td {
  border-bottom: none;
}

td.detail {
  white-space: normal;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.status-ok {
  color: var(--ok);
}
.status-partial,
.status-skipped {
  color: var(--warn);
}
.status-error {
  color: var(--error);
}
.status-running {
  color: var(--muted);
}

.empty {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* 微博账号分组的标题行。稍微加重底色,和普通任务行区分开。 */
.job-group-row > td {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* 任务行展开的 24 小时统计 */
.job-stats-row > td {
  background: var(--bg);
  padding: 0.75rem 1rem;
}

.job-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.job-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.job-stat-label {
  font-size: 0.72rem;
  color: var(--muted);
}

.job-stat-value {
  font-size: 1.05rem;
  font-weight: 600;
}

.job-stats-note {
  flex-basis: 100%;
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* 访问审计:结论条。数字要人自己判断,结论直接给出来。 */
.sub-head {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.security-verdict {
  margin: 0.75rem 0;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.86rem;
  line-height: 1.6;
  border: 1px solid var(--border);
}

.verdict-ok {
  border-left: 3px solid var(--ok, #3d8a4f);
}

.verdict-warn {
  border-left: 3px solid #b8860b;
}

.verdict-bad {
  border-left: 3px solid var(--error);
  color: var(--error);
}

/* 小时分布。纯 CSS 柱状 —— 只需看出有没有异常尖峰,不值得引图表库。 */
.hourly {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 5rem;
  overflow-x: auto;
}

.hourly .hour {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 1.5rem;
  flex: 1;
}

.hourly .bars {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 3.6rem;
  width: 100%;
  justify-content: center;
}

.hourly .bar {
  width: 40%;
  min-height: 1px;
  border-radius: 1px 1px 0 0;
}

.hourly .bar-ok {
  background: var(--accent);
}

.hourly .bar-bad {
  background: var(--error);
}

.hourly .hour-label {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* 故障卡片。用红色左边框而非整块红底 —— 要醒目,但不至于让人一进页面就慌。 */
.incident {
  border: 1px solid var(--border);
  border-left: 3px solid var(--error);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.75rem;
}

.incident-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.incident-kind {
  color: var(--error);
  font-weight: 600;
}

.incident-source {
  font-weight: 600;
}

.incident-count,
.incident-time {
  color: var(--muted);
  font-size: 0.8rem;
}

.incident-summary {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.incident-hint {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.incident-foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
}

.incident-foot code {
  font-size: 0.78rem;
}

/* 日志按事件号一次捞全,可能很长 —— 限高并允许滚动 */
.incident-logs {
  margin: 0.6rem 0 0;
  max-height: 18rem;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.6rem;
  font-size: 0.76rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

/* 媒体原始内容:按站点切换的 tab。每个站在库里是独立的表,切 tab = 换表查。 */
.raw-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.raw-tab.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/*
 * 媒体原始内容表。
 *
 * 必须 table-layout: fixed。auto 布局下浏览器按内容宽度分配,
 * 正文预览那一列(200 字无空格中文)会把整行撑爆,后面的"正文长度"
 * 被挤得和正文叠在一起 —— 实测就是这么糊的。fixed 让百分比宽度说了算,
 * 内容再长也只能在自己的格子里换行。
 */
#raw-items {
  table-layout: fixed;
  width: 100%;
}

#raw-items th:nth-child(1),
#raw-items td:nth-child(1) { width: 13%; }   /* 发布时间 */
#raw-items th:nth-child(2),
#raw-items td:nth-child(2) { width: 24%; }   /* 标题 */
#raw-items th:nth-child(3),
#raw-items td:nth-child(3) { width: 9%; }    /* 转载出处 */
#raw-items th:nth-child(4),
#raw-items td:nth-child(4) { width: 8%; }    /* 作者 */
#raw-items th:nth-child(5),
#raw-items td:nth-child(5) { width: 38%; }   /* 正文开头 */
#raw-items th:nth-child(6),
#raw-items td:nth-child(6) { width: 8%; }    /* 正文长度 */

/*
 * 必须解除全局的 white-space: nowrap。
 * 那条规则适合短字段(时间、状态),但正文预览有 200 字 —— 不换行就会
 * 横着顶出去,把"正文长度"那列压在正文上面,正是截图里重叠的成因。
 * 中文没有空格可断,还要 overflow-wrap 才能在任意字符处折行。
 */
#raw-items td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}

/* 时间与长度是短字段,留在一行更好读 */
#raw-items td:nth-child(1),
#raw-items td:nth-child(6) {
  white-space: nowrap;
}

/* 正文预览只是用来看有没有乱码,限高避免一行撑得过高 */
.raw-preview {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  max-height: 4.5rem;
  overflow: hidden;
}

/* 任务操作列:三个按钮排一行,启停按钮用颜色示意方向 */
.actions {
  white-space: nowrap;
}
.actions button {
  margin-right: 0.35rem;
}
.btn-start {
  color: var(--ok, #2e7d32);
  border-color: currentColor;
}
.btn-stop {
  color: var(--error, #c62828);
  border-color: currentColor;
}

/* ── 可折叠板块 ──────────────────────────────────────────────
   页面板块多,一次全铺开没法看。用原生 <details> 而不是自己写
   展开动画:键盘可达、浏览器内置搜索能自动展开命中的板块。 */
.section-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0.75rem;
}
.section-controls .hint {
  margin: 0;
  flex: 1 1 20rem;
}

details.panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  margin-bottom: 0.75rem;
}

details.panel > summary {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
}
details.panel > summary::-webkit-details-marker {
  display: none;
}
/* 自绘三角,展开时旋转 */
details.panel > summary::before {
  content: '▸';
  color: var(--muted);
  transition: transform 0.15s ease;
}
details.panel[open] > summary::before {
  transform: rotate(90deg);
}
details.panel > summary:hover {
  color: var(--accent);
}
details.panel > summary h2 {
  margin: 0;
  font-size: 1rem;
  display: inline;
}
.summary-hint {
  color: var(--muted);
  font-size: 0.82rem;
}
details.panel[open] > summary {
  border-bottom: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
}

.panel-body {
  padding: 0.75rem 1rem 1rem;
}

/* 任务表:中文名做主标题,下面一行小字说明抓什么 */
.job-name {
  font-weight: 600;
}
.job-what {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
  max-width: 28rem;
}
.source-add-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 1rem;
  background: color-mix(in srgb, var(--accent) 4%, var(--panel));
}
.source-add-heading h3 {
  margin: 0;
  font-size: 0.95rem;
}
.source-add-heading .hint {
  margin: 0.2rem 0 0.7rem;
}
.source-add-grid {
  display: grid;
  grid-template-columns: minmax(9rem, 0.75fr) minmax(10rem, 1fr) minmax(10rem, 0.8fr) auto;
  gap: 0.65rem;
  align-items: end;
}
.source-add-grid label {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.source-add-grid input,
.source-add-grid select {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  width: 100%;
}
.source-url-field {
  grid-column: span 2;
}
.source-add-result {
  margin-top: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
}
.source-add-result.ok {
  border-color: var(--ok);
  color: var(--ok);
}
.source-add-result.bad {
  border-color: var(--error);
  color: var(--error);
}
@media (max-width: 900px) {
  .source-add-grid {
    grid-template-columns: 1fr 1fr;
  }
  .source-url-field {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .source-add-grid {
    grid-template-columns: 1fr;
  }
  .source-url-field {
    grid-column: auto;
  }
}

/* 舆情淘汰原因分布 */
.reasons-block h3 {
  font-size: 0.9rem;
  margin: 1rem 0 0.4rem;
}
.reasons {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.3rem 1rem;
  font-size: 0.85rem;
}
.reasons li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px dotted var(--border);
  padding: 0.15rem 0;
}
.reason-count {
  color: var(--muted);
  white-space: nowrap;
}

/* 刚点过重跑的那一行。页面上同时躺着好几份周报,不标出来分不清哪份是刚点的。 */
.row-focus > td {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-weight: 600;
}

/* ── 周报双轨时间线 ──
   一周一列:上绿=正式(同事看到的),下蓝=试看。灰=还没有。
   方块要一眼能分清「有/没有/正在做」,别的信息都放 tooltip。 */
/* 视窗固定 12 周,更早的靠左右滑。格子宽度按**容器**算而不是写死像素 ——
   写死的话宽屏上露出 20 周、窄屏上露出 7 周,「一屏一页」的直觉就没了。 */
/* 只占左半屏:最新一周(最右那格)落在屏幕中线上,眼睛不用横扫整屏。
   窄屏放开这个限制 —— 半个窄屏塞 12 格会挤成一条线,那时铺满才读得出来。 */
.timeline { display: flex; align-items: center; gap: 4px; margin: 10px 0 14px; max-width: 50%; }
@media (max-width: 1100px) { .timeline { max-width: 100%; } }
.timeline-labels { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.timeline-scroll {
  flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden;
  display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px;
  scroll-behavior: smooth;
}
.timeline-row { display: flex; gap: 6px; align-items: center; }
.track-name { height: 40px; display: flex; align-items: center; font-size: 12px; color: var(--muted, #888); padding-right: 2px; }
.track-name.official { color: #2f6b41; }
.track-name.preview { color: #3a5f9e; }
.timeline-arrow {
  flex: 0 0 auto; width: 22px; height: 86px; padding: 0; line-height: 1;
  font-size: 18px; cursor: pointer; border-radius: 6px;
  border: 1px solid var(--border, #d4d4d4); background: transparent; color: inherit;
}
.timeline-arrow:hover { background: rgba(127, 127, 127, 0.12); }
.week-cell {
  /* 12 格 + 11 个 6px 间隙正好铺满容器 */
  flex: 0 0 calc((100% - 66px) / 12);
  height: 40px; border-radius: 6px; position: relative;
  background: #e8e8e8; border: 1px solid #d4d4d4; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.08s, box-shadow 0.08s;
}
.week-cell:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.week-cell { flex-direction: column; gap: 1px; }
.week-cell .week-label { font-size: 11px; color: #777; line-height: 1.1; }
.week-cell .week-count { font-size: 13px; font-weight: 700; color: #666; line-height: 1.1; }
.week-cell.filled .week-count { color: #fff; }
.week-cell.official.filled { background: #2f9e5f; border-color: #27824f; }
.week-cell.preview.filled { background: #4a7fd4; border-color: #3a6ab8; cursor: grab; }
.week-cell.filled .week-label { color: #fff; font-weight: 600; }
/* 正在生成:条纹动画 —— 「做着呢」和「没有」必须一眼能分开 */
.week-cell.generating {
  background: repeating-linear-gradient(45deg, #dce6f5, #dce6f5 6px, #c3d4ee 6px, #c3d4ee 12px);
  border-color: #a9c0e4;
}
.week-cell.drop-ok { outline: 3px solid #2f9e5f; outline-offset: 2px; }
/* 中途停下的:填色但描虚线边 —— 「做完了」和「停在半路」得看得出区别 */
.week-cell.halted { border-style: dashed; border-color: #b8860b; }
.inline-stop {
  margin-left: 8px; padding: 2px 10px; font-size: 12px; cursor: pointer;
  border-radius: 4px; border: 1px solid #c0504d; background: transparent; color: #c0504d;
}
.inline-stop:hover { background: rgba(192, 80, 77, 0.12); }
@media (prefers-color-scheme: dark) {
  .week-cell { background: #2c2c2e; border-color: #3a3a3c; }
  .week-cell .week-label { color: #999; }
  .week-cell.official.filled { background: #2f7a4d; border-color: #256340; }
  .week-cell.preview.filled { background: #3d68ad; border-color: #325689; }
  .week-cell.generating {
    background: repeating-linear-gradient(45deg, #2a3140, #2a3140 6px, #333d52 6px, #333d52 12px);
    border-color: #40506e;
  }
}

/* 时间线格子的右键菜单。fixed 定位跟着鼠标走 —— 时间线本身是横向滚动的,
   absolute 会跟着内容漂走。 */
.week-menu {
  position: fixed;
  z-index: 1000;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  padding: 4px;
  min-width: 200px;
}
.week-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  border-radius: 4px;
  font-size: 13px;
  color: #222;
  cursor: pointer;
}
.week-menu button:hover { background: #eef4ff; }

/* 试跑结果里的分组预览:一组一个可展开项,给人眼判断这一组是不是同一件事 */
.bucket-list { margin-top: 8px; max-height: 320px; overflow-y: auto; }
.bucket-list details {
  border: 1px solid #e2e2e2; border-radius: 5px;
  padding: 5px 8px; margin-bottom: 5px; background: #fafafa;
}
.bucket-list summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #333; }
.bucket-line {
  font-size: 12px; color: #555; padding: 3px 0 3px 12px;
  border-left: 2px solid #e2e2e2; margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── 自定义板块的「空卡」──
   照着 /weekly/ 真卡的样子长:圆角卡片、标签在左上、分节小标题。
   负责人要的是「卡片的形状,里面自己填」,不是一张表格式表单 ——
   人看着它就知道填完之后周报里会出现什么。 */
.blank-card {
  display: block;
  border: 1px dashed var(--border, #3a3a3c);  /* 虚线:它还是个空壳,不是已生成的卡 */
  border-radius: 12px;
  padding: 16px 18px;
  margin: 12px 0;
  background: rgba(127, 127, 127, 0.04);
}
.blank-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
/* 输入框长成标签的样子 —— 颜色由 .tag.topic-custom 给,这里只管尺寸与可编辑感 */
.blank-card-name {
  width: 7em; font: inherit; font-size: 13px; font-weight: 600;
  border: 1px dashed currentColor; border-radius: 999px;
  padding: 3px 10px; text-align: center;
}
.blank-card-name::placeholder { opacity: 0.6; font-weight: 400; }
.blank-card-name:focus { outline: none; border-style: solid; }
.blank-card-title { font-size: 13px; color: var(--muted, #888); }
.blank-card section { margin-top: 14px; }
.blank-card section h3 {
  font-size: 12px; margin: 0 0 2px; color: var(--muted, #999);
  text-transform: none; letter-spacing: 0.04em;
}
.blank-card-note { font-size: 12px; color: var(--muted, #888); margin: 0 0 6px; line-height: 1.5; }
.blank-card textarea {
  width: 100%; box-sizing: border-box; resize: vertical;
  background: var(--panel, #1c1c1e); color: inherit;
  border: 1px solid var(--border, #3a3a3c); border-radius: 6px; padding: 6px 8px;
  font: inherit; font-size: 13px;
}
.blank-card-foot {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border, #3a3a3c);
  font-size: 12px; color: var(--muted, #888);
}
.blank-card-foot input { width: 5em; margin-left: 4px; }
.blank-card .cookie-actions { margin-top: 12px; }
/* 已有板块:小卡片列表,点一下把内容装回空卡里改 */
.card-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.card-chip {
  border: 1px solid var(--border, #3a3a3c); border-radius: 999px;
  padding: 4px 12px; font-size: 13px; cursor: pointer;
  background: transparent; color: inherit;
}
.card-chip:hover { background: rgba(127, 127, 127, 0.12); }
.card-chip.off { opacity: 0.45; text-decoration: line-through; }
