/* 版式：暖灰底上浮一张主纸面；左边导航在底上，顶栏和内容在纸面里。卡片用细圈 + 轻投影，不用粗边框
   数字当标题；页面大标题用衬线（宋体），其余无衬线；平台用方印字标；强调色只有群青一个，红只给异常，琥珀给「等人处理」
   颜色全是变量：浅色在 :root，深色在 prefers-color-scheme 和 [data-theme="dark"] 各一份，改颜色两处一起改
   字号只用 10 / 12 / 14 / 16 / 20 / 24 / 28 / 32 / 40；字重 ≤ 600；圆角 4px 或胶囊
   参照：Attio、Linear、aqryl 的取值（awwwards MCP 抽的 tokens：12–14px 正文、4/8/12 间距、1px 圈 + 多层低透明投影） */
:root {
  --canvas: #ebe8e2; --paper: #f8f6f2; --surface: #fefdfb; --sunk: #f1eee9;
  --ink: #1a1b1e; --ink-2: #4a4c52; --ink-3: #7b7d84; --line: #e6e2da; --line-2: #d4cfc5;
  --accent: #2d3fd3; --accent-ink: #fbfaf7; --accent-soft: rgba(45, 63, 211, .08);
  --amber: #9a600c; --amber-soft: rgba(168, 106, 18, .11);
  --danger: #c8372b; --danger-soft: rgba(200, 55, 43, .08);
  --hover: rgba(26, 27, 30, .045); --scrim: rgba(26, 27, 30, .32);
  --ring: 0 0 0 1px rgba(44, 36, 24, .08);
  --ring-2: 0 0 0 1px rgba(44, 36, 24, .16);
  --elev-1: 0 0 0 1px rgba(44, 36, 24, .07), 0 1px 2px rgba(44, 36, 24, .04), 0 2px 8px -2px rgba(44, 36, 24, .06);
  --elev-2: 0 0 0 1px rgba(44, 36, 24, .07), 0 6px 16px -4px rgba(44, 36, 24, .12), 0 18px 40px -12px rgba(44, 36, 24, .18);
  --shadow: var(--elev-2);
  --pri-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(26, 27, 30, .24);

  --f-text: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  --f-display: "Iowan Old Style", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --f-num: "SF Pro Display", -apple-system, "Segoe UI", "PingFang SC", system-ui, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 4px; --r-pill: 9999px;
  --ease-out: cubic-bezier(.215, .61, .355, 1); --ease-in: cubic-bezier(.55, .055, .675, .19);
  --t-fast: 100ms; --t-mid: 250ms;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --canvas: #0b0c0e; --paper: #121316; --surface: #18191d; --sunk: #0e0f12;
  --ink: #ecebe6; --ink-2: #b3b2ac; --ink-3: #85847f; --line: #25262b; --line-2: #34353b;
  --accent: #8b98ff; --accent-ink: #111215; --accent-soft: rgba(139, 152, 255, .13);
  --amber: #e2ab55; --amber-soft: rgba(226, 171, 85, .13);
  --danger: #ff6e5e; --danger-soft: rgba(255, 110, 94, .12);
  --hover: rgba(236, 234, 228, .055); --scrim: rgba(0, 0, 0, .55);
  --ring: 0 0 0 1px rgba(255, 255, 255, .07);
  --ring-2: 0 0 0 1px rgba(255, 255, 255, .14);
  --elev-1: 0 0 0 1px rgba(255, 255, 255, .065), 0 1px 2px rgba(0, 0, 0, .35);
  --elev-2: 0 0 0 1px rgba(255, 255, 255, .09), 0 12px 32px -8px rgba(0, 0, 0, .6);
  --pri-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --canvas: #0b0c0e; --paper: #121316; --surface: #18191d; --sunk: #0e0f12;
  --ink: #ecebe6; --ink-2: #b3b2ac; --ink-3: #85847f; --line: #25262b; --line-2: #34353b;
  --accent: #8b98ff; --accent-ink: #111215; --accent-soft: rgba(139, 152, 255, .13);
  --amber: #e2ab55; --amber-soft: rgba(226, 171, 85, .13);
  --danger: #ff6e5e; --danger-soft: rgba(255, 110, 94, .12);
  --hover: rgba(236, 234, 228, .055); --scrim: rgba(0, 0, 0, .55);
  --ring: 0 0 0 1px rgba(255, 255, 255, .07);
  --ring-2: 0 0 0 1px rgba(255, 255, 255, .14);
  --elev-1: 0 0 0 1px rgba(255, 255, 255, .065), 0 1px 2px rgba(0, 0, 0, .35);
  --elev-2: 0 0 0 1px rgba(255, 255, 255, .09), 0 12px 32px -8px rgba(0, 0, 0, .6);
  --pri-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 14px/24px var(--f-text); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r); }
[hidden] { display: none !important; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); font-size: 12px; }
.muted { color: var(--ink-3); }
.mid { color: var(--ink-2); }
.small { font-size: 12px; line-height: 20px; }
.grow { flex: 1; min-width: 0; }
.ico { flex: none; display: block; }
#app { height: 100%; }

/* 外壳 */
.app { display: grid; grid-template-columns: 224px minmax(0, 1fr); height: 100%; background: var(--canvas); }
.rail { padding: 14px 10px 12px 14px; display: flex; flex-direction: column; gap: 18px; overflow: auto; min-height: 0; }
.sheet { margin: 8px 8px 8px 0; background: var(--paper); border-radius: var(--r); box-shadow: var(--elev-1); display: grid; grid-template-rows: 52px minmax(0, 1fr); min-width: 0; min-height: 0; overflow: hidden; }
.logo { width: 28px; height: 28px; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--paper); border-radius: var(--r); font: 600 20px/1 var(--f-display); box-shadow: var(--pri-shadow); }
.mark { display: flex; align-items: center; gap: 10px; padding: 4px 6px; text-decoration: none; border-radius: var(--r); transition: background var(--t-fast) var(--ease-out); }
.mark:hover { background: var(--hover); }
.mark-t { display: flex; flex-direction: column; min-width: 0; }
.mark-t b { font: 600 16px/20px var(--f-display); letter-spacing: .01em; }
.mark-t span { font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: var(--r); text-decoration: none; color: var(--ink-2); transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.nav a .ico { color: var(--ink-3); transition: color var(--t-fast) var(--ease-out); }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a:hover .ico { color: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: var(--elev-1); font-weight: 500; }
.nav a[aria-current="page"] .ico { color: var(--accent); }
.nav .n { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: var(--r-pill); background: var(--amber-soft); color: var(--amber); font: 600 10px/1 var(--f-num); font-variant-numeric: tabular-nums; }
.nav-sep { height: 1px; background: var(--line-2); opacity: .6; margin: 8px 8px; }
.rail-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 6px; font-size: 14px; color: var(--ink-2); }
.avatar { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--ring); font: 600 12px/1 var(--f-text); color: var(--ink-2); }

.top { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.proj-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 6px; border-radius: var(--r); font-weight: 500; max-width: min(360px, 50vw); transition: background var(--t-fast) var(--ease-out); }
.proj-btn:hover, .proj-btn[aria-expanded="true"] { background: var(--hover); }
.proj-btn .proj-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-btn .ico { color: var(--ink-3); }
.mono-sq { width: 20px; height: 20px; flex: none; display: inline-grid; place-items: center; border-radius: var(--r); background: var(--ink); color: var(--paper); font: 600 12px/1 var(--f-text); }
.mono-sq.ghost { background: none; box-shadow: var(--ring-2); color: var(--ink-3); }
.pop { padding: 4px; min-width: 240px; max-width: min(360px, calc(100vw - 32px)); max-height: 60vh; overflow: auto; background: var(--surface); color: var(--ink); border: 0; border-radius: var(--r); box-shadow: var(--elev-2); }
@supports (position-area: block-end) {
  .pop { inset: auto; margin: 6px 0 0; position-area: block-end span-inline-end; position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline; }
}
@media (prefers-reduced-motion: no-preference) {
  .pop { opacity: 0; translate: 0 -4px; transition-property: opacity, translate, display, overlay; transition-duration: 150ms; transition-timing-function: var(--ease-in); transition-behavior: allow-discrete; }
  .pop:popover-open { opacity: 1; translate: 0 0; transition-duration: 100ms; transition-timing-function: var(--ease-out); }
  @starting-style { .pop:popover-open { opacity: 0; translate: 0 -4px; } }
}
.pop-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: var(--r); text-align: left; text-decoration: none; color: var(--ink); transition: background var(--t-fast) var(--ease-out); }
.pop-item:hover, .pop-item:focus-visible { background: var(--hover); outline: none; }
.pop-item[aria-current="true"] { font-weight: 500; }
.pop-item .ico { color: var(--accent); }
.pop hr { border: 0; height: 1px; background: var(--line); margin: 4px 0; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; width: 240px; padding: 0 5px 0 10px; border-radius: var(--r); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); text-align: left; transition: box-shadow var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.search-btn:hover { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
kbd { font: 500 12px/16px var(--f-num); padding: 2px 5px; border-radius: var(--r); background: var(--surface); box-shadow: var(--ring); color: var(--ink-3); }
.icon-btn { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: var(--r-pill); color: var(--ink-3); transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.icon-btn:hover { background: var(--hover); color: var(--ink); }

main { overflow: auto; padding: 32px 40px 72px; min-width: 0; min-height: 0; }
.view { max-width: 1360px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.enter > * { animation: rise var(--t-mid) var(--ease-out) both; }
.enter > *:nth-child(2) { animation-delay: 40ms; } .enter > *:nth-child(3) { animation-delay: 80ms; }
.enter > *:nth-child(4) { animation-delay: 120ms; } .enter > *:nth-child(5) { animation-delay: 160ms; }
@keyframes rise { from { opacity: .001; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }

/* 区块 */
.hd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.hd h1 { margin: 0; font: 600 32px/40px var(--f-display); letter-spacing: .01em; text-wrap: balance; }
.hd .sub { margin-top: 6px; color: var(--ink-3); font-size: 14px; }
.hd .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sec-h h2 { margin: 0; font: 600 16px/24px var(--f-text); }
.sec-h .acts { display: flex; gap: 8px; align-items: center; }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--elev-1); min-width: 0; }
.pad { padding: 16px 20px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.grid2e { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; gap: 12px; align-items: center; }

.seal { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border: 1px solid var(--ink-2); border-radius: var(--r); font: 600 12px/1 var(--f-num); color: var(--ink); background: var(--surface); flex: none; box-shadow: 1px 1px 0 var(--line-2); }
.seal.sm { min-width: 18px; height: 18px; font-size: 10px; padding: 0 3px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: var(--r-pill); background: var(--hover); color: var(--ink-2); white-space: nowrap; }
.pill.acc { background: var(--accent-soft); color: var(--accent); }
.pill.amb { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--danger-soft); color: var(--danger); }
.pill.out { background: none; border: 1px solid var(--line); }

/* 按钮三档：实心（主）、浮起（次）、文字（查看类） */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 14px; border-radius: var(--r-pill); border: 0; background: var(--surface); box-shadow: var(--elev-1); color: var(--ink); font-size: 14px; line-height: 22px; white-space: nowrap; transition: background var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.btn:hover { box-shadow: var(--ring-2), 0 2px 6px -2px rgba(44, 36, 24, .12); }
.btn:active { translate: 0 1px; }
.btn.pri { background: var(--ink); color: var(--paper); box-shadow: var(--pri-shadow); }
.btn.pri:hover { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: none; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); background: var(--hover); }
.btn.sm { padding: 1px 10px; font-size: 12px; line-height: 22px; }   /* 表格行里的小按钮 */
.btn.danger:hover { color: var(--danger); background: var(--danger-soft); box-shadow: 0 0 0 1px var(--danger); }
.btn:disabled { opacity: .5; cursor: default; }
.tlink { color: var(--accent); text-decoration: none; cursor: pointer; }
.tlink:hover { text-decoration: underline; text-underline-offset: 3px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { font-weight: 500; color: var(--ink-3); font-size: 12px; line-height: 20px; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.card > table th:first-child, .card > .tw > table th:first-child, .card > table td:first-child, .card > .tw > table td:first-child { padding-left: 20px; }
.card > table th:last-child, .card > .tw > table th:last-child, .card > table td:last-child, .card > .tw > table td:last-child { padding-right: 20px; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr.click { cursor: pointer; transition: background var(--t-fast) var(--ease-out); }
tbody tr.click:hover { background: var(--hover); }
.tw { overflow-x: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
a.chip, a.btn, a.citem { text-decoration: none; }
.chip { padding: 2px 10px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: 12px; line-height: 20px; color: var(--ink-2); transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
/* 一组里只能选一个的（时间段、筛选）：凹槽里一个浮起的滑块；能多选的标 .multi，还是一颗颗实心标签 */
.chips:not(.multi):has(> .chip[aria-pressed]) { display: inline-flex; align-self: flex-start; flex-wrap: nowrap; gap: 2px; padding: 2px; border-radius: var(--r-pill); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chips:not(.multi):has(> .chip[aria-pressed]) > .chip { border: 0; padding: 3px 12px; font-size: 14px; line-height: 22px; color: var(--ink-3); white-space: nowrap; }
.chips:not(.multi):has(> .chip[aria-pressed]) > .chip:hover { color: var(--ink); background: var(--hover); }
.chips:not(.multi):has(> .chip[aria-pressed]) > .chip[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: var(--elev-1); }

.empty { padding: 40px 24px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; color: var(--ink-3); }
.empty b { font-weight: 600; color: var(--ink); font-size: 16px; line-height: 24px; }
.empty > span { max-width: 56ch; text-wrap: pretty; }
.empty > :last-child:not(b):not(span) { margin-top: 8px; }

/* 列表行 */
.list { display: flex; flex-direction: column; }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); align-items: start; transition: background var(--t-fast) var(--ease-out); }
.item:first-child { border-top: 0; }
.item:hover { background: var(--hover); }
.item .what { font-size: 15px; line-height: 24px; overflow-wrap: anywhere; }
.item .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-3); margin-top: 2px; align-items: center; }
.item .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.item.click { cursor: pointer; }
.tm { font: 500 16px/24px var(--f-num); font-variant-numeric: tabular-nums; min-width: 48px; }

/* 今天 */
.masthead { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.eyebrow { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 8px; }
.masthead h1 { margin: 0; font: 600 32px/48px var(--f-display); letter-spacing: .01em; max-width: 820px; text-wrap: pretty; }
.next { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--elev-1); }
.next .t { font: 600 32px/40px var(--f-num); font-variant-numeric: tabular-nums; }
/* 一排指标：一张卡里等分；每格只画左、上两条细线，靠卡片裁掉最外一圈，几个都对得齐 */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--surface); border-radius: var(--r); box-shadow: var(--elev-1); overflow: hidden; }
.strip > * { padding: 16px 20px 14px; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* 只有一两个数时不拉满整行 */
.strip:not(:has(> :nth-child(3))) { grid-auto-columns: minmax(200px, 280px); align-self: flex-start; max-width: 100%; }
.strip .lab { font-size: 12px; color: var(--ink-3); }
.strip .big { font: 500 28px/36px var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip .d { font-size: 12px; color: var(--ink-2); }
.strip .d .up { color: var(--accent); }
.strip .cell { text-align: left; color: inherit; transition: background var(--t-fast) var(--ease-out); }
.strip .cell:hover { background: var(--hover); }
.strip .cell[aria-pressed="true"] { background: var(--accent-soft); box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line), inset 0 -2px 0 var(--accent); }

/* 内容看板 */
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.col { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 8px; border-radius: var(--r); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); min-height: 160px; }
.col-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; line-height: 20px; color: var(--ink-2); font-weight: 500; padding: 2px 4px 4px; }
.col-h b { font: 500 12px/20px var(--f-num); color: var(--ink-3); }
.citem { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--r); background: var(--surface); box-shadow: var(--elev-1); text-decoration: none; transition: box-shadow var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.citem:hover { box-shadow: var(--elev-2); transform: translate3d(0, -1px, 0); }
.citem .tt { font-size: 14px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.citem .ft { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }

.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.var { display: flex; flex-direction: column; border-radius: var(--r); background: var(--surface); box-shadow: var(--elev-1); min-width: 0; }
.var-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.var-h .grow { flex: 1; }
.var-b { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.checks { list-style: none; margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 20px; }
.checks li { display: flex; gap: 8px; color: var(--ink-2); }
.checks .ok { color: var(--accent); }
.checks .warn { color: var(--amber); }
.checks .block { color: var(--danger); }
.var-f { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); justify-content: flex-end; flex-wrap: wrap; }

/* 日历 */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--elev-1); }
.cal .day { min-height: 240px; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.cal .day:first-child { border-left: 0; }
.cal .dh { padding: 10px 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.cal .dh b { font: 500 20px/24px var(--f-num); }
.cal .dh span { font-size: 12px; color: var(--ink-3); }
.cal .day.today .dh { box-shadow: inset 0 -2px 0 var(--accent); }
.cal .day.today .dh b { color: var(--accent); }
.cal .slots { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ev-blk { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: var(--r); border: 1px solid var(--line); font-size: 12px; line-height: 18px; text-align: left; transition: border-color var(--t-fast) var(--ease-out); }
.ev-blk:hover { border-color: var(--ink-3); }
.ev-blk .l1 { display: flex; gap: 6px; align-items: center; color: var(--ink-3); }
.ev-blk .l2 { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-blk.published { background: var(--hover); border-color: transparent; }
.ev-blk.published .l2, .ev-blk.canceled .l2 { color: var(--ink-3); }
.ev-blk.canceled .l2 { text-decoration: line-through; }
.ev-blk.awaiting, .ev-blk.due { border-color: var(--amber); background: var(--amber-soft); }
.ev-blk.failed { border-color: var(--danger); background: var(--danger-soft); }

/* 柱、图 */
.bars { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; }
.bar { display: grid; grid-template-columns: 112px minmax(0, 1fr) 96px; gap: 12px; align-items: center; font-size: 14px; }
.bar .tr { height: 8px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r-pill); overflow: hidden; }
.bar .fl { height: 100%; background: var(--ink); border-radius: var(--r-pill); transition: background var(--t-fast) var(--ease-out); }
.bar .v { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.bar:hover .fl { background: var(--accent); }
.chart { width: 100%; height: 220px; display: block; overflow: visible; }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ar { stroke: none; }
.chart .ar-top { stop-color: var(--accent); stop-opacity: .16; }
.chart .ar-bot { stop-color: var(--accent); stop-opacity: 0; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .gl.dash { stroke-dasharray: 2 4; }
.chart-wrap { position: relative; }
.chart-ax { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; font: 400 12px/16px var(--f-num); color: var(--ink-3); pointer-events: none; font-variant-numeric: tabular-nums; }
.chart-ax.x { bottom: 0; }
.chart-y { position: absolute; left: 0; font: 400 12px/16px var(--f-num); color: var(--ink-3); background: var(--surface); padding-right: 6px; transform: translateY(-50%); pointer-events: none; font-variant-numeric: tabular-nums; }
.chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .xh { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }

/* 表单 */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > label { font-size: 12px; color: var(--ink-2); }
.field .help { font-size: 12px; color: var(--ink-3); }
.field .err { font-size: 12px; color: var(--danger); }
.field.bad input, .field.bad textarea, .field.bad select { border-color: var(--danger); }
.in, .field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 5px 10px; line-height: 22px;
  box-shadow: inset 0 1px 2px rgba(44, 36, 24, .04);
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.in:hover, .field input:not([type="checkbox"]):hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.in:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 96px; resize: vertical; line-height: 24px; }
/* 下拉框统一成输入框的样子，右边一个小箭头（灰色两种主题都看得清） */
select.in, .field select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b7d84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5l5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 14px; cursor: pointer; }
.field textarea.tall { min-height: 220px; }
.field .checks-in { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.field .checks-in label { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink); }
.form-acts { display: flex; gap: 8px; justify-content: flex-end; padding-top: 4px; }
.form-err { color: var(--danger); font-size: 14px; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }

/* 弹窗、提示 */
dialog.modal { border: 0; border-radius: var(--r); background: var(--surface); color: var(--ink); padding: 0; width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 64px); box-shadow: var(--elev-2); }
dialog.modal.wide { width: min(960px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: pop var(--t-mid) var(--ease-out); }
@keyframes pop { from { opacity: .001; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
.modal-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-h b { font: 600 20px/28px var(--f-display); flex: 1; }
.modal-b { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate3d(-50%, 12px, 0); opacity: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-pill); font-size: 14px; display: flex; gap: 16px; align-items: center; transition: opacity 200ms var(--ease-in), transform 200ms var(--ease-in); pointer-events: none; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate3d(-50%, 0, 0); pointer-events: auto; transition-timing-function: var(--ease-out); }
.toast.bad { background: var(--danger); }
.toast button { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tip { position: fixed; z-index: 70; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 12px; line-height: 18px; padding: 6px 10px; border-radius: var(--r); opacity: 0; transition: opacity var(--t-fast) var(--ease-out); }
.tip.on { opacity: 1; }
.copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.copy pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/24px var(--f-text); background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; max-height: 280px; overflow: auto; }
.copy pre.code { font: 12px/20px var(--f-mono); }

/* 登录：底上一层很淡的方格纸 */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; background: var(--canvas);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; }
.login .card { width: min(400px, 100%); padding: 32px; display: flex; flex-direction: column; gap: 24px; box-shadow: var(--elev-2); }
.login-mark { display: flex; align-items: center; gap: 12px; }
.login-mark .logo { width: 40px; height: 40px; font-size: 28px; }
.login h1 { margin: 0; font: 600 32px/40px var(--f-display); letter-spacing: .01em; }

@media (max-width: 1100px) {
  .grid2, .grid2e { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
  .search-btn { width: auto; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .rail { flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; }
  .mark-t, .rail-foot, .nav-sep { display: none; }
  .nav { flex-direction: row; }
  .nav a { white-space: nowrap; gap: 6px; }
  .sheet { margin: 0; border-radius: 0; box-shadow: 0 -1px 0 var(--line); }
  .top { padding: 0 8px 0 10px; }
  .search-btn > .grow, .search-btn kbd { display: none; }
  .search-btn { width: 32px; padding: 0; justify-content: center; }
  main { padding: 24px 16px 48px; }
  .hd h1 { font-size: 28px; line-height: 36px; }
  .masthead h1 { font-size: 24px; line-height: 36px; }
  .hd { grid-template-columns: minmax(0, 1fr); }
  .hd .acts { justify-content: flex-start; }
  .board, .cal, .cols2 { grid-template-columns: minmax(0, 1fr); }
  .cal .day { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .cal .day:first-child { border-top: 0; }
  .item { grid-template-columns: minmax(0, 1fr); }
  .item > .seal, .item > .tm { display: none; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > * { padding: 12px 16px; }
  .strip .big { font-size: 24px; line-height: 32px; }
  .bar { grid-template-columns: 80px minmax(0, 1fr) 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 短链、线下：二维码一律白底黑码（深色主题也不反色，不然扫不出来） */
.qr { display: block; width: 100%; max-width: 240px; height: auto; border: 1px solid var(--line); border-radius: var(--r); }
.qr.sm { width: 56px; height: 56px; flex: none; }
.meter { height: 6px; background: var(--hover); border-radius: var(--r-pill); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--ink); border-radius: var(--r-pill); transition: width var(--t-mid) var(--ease-out); }
.meter.over > span { background: var(--danger); }
.evgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.citem.ev { gap: 8px; padding: 14px 16px; }
.citem.ev .tt { font-size: 16px; line-height: 24px; }

/* 热点：话题表 + 右侧详情；阶段用圆点（实心 = 上升，灰实心 = 顶峰，空心 = 回落，强调色描边 = 新上榜） */
.tr-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tr-side { position: sticky; top: 0; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.tr-side:empty { display: none; }
.tr-side h2 { margin: 0; font: 600 20px/32px var(--f-text); overflow-wrap: anywhere; }
.tr-side .lab { font-size: 12px; line-height: 20px; color: var(--ink-3); margin-bottom: 4px; }
tbody tr[aria-selected="true"] { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
tbody tr.click[aria-selected="true"]:hover { background: var(--accent-soft); }
tbody tr.blocked td { color: var(--ink-3); }
.stage { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.stage i { width: 8px; height: 8px; border-radius: var(--r-pill); border: 1px solid var(--ink-2); flex: none; }
.stage.new i { border-color: var(--accent); }
.stage.rising i { background: var(--accent); border-color: var(--accent); }
.stage.peak i { background: var(--ink-2); }
.stage.falling i { border-color: var(--ink-3); }
.raw { display: flex; flex-direction: column; }
.raw .it { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 22px; }
.raw .it:first-child { border-top: 0; }
.raw .it.blocked, .raw .it.blocked .pick { color: var(--ink-3); }
.raw a { text-decoration: none; overflow-wrap: anywhere; transition: color var(--t-fast) var(--ease-out); }
.raw a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.raw .pick { text-align: left; overflow-wrap: anywhere; transition: color var(--t-fast) var(--ease-out); }
.raw .pick:hover { color: var(--accent); }
.rk { font: 400 12px/22px var(--f-num); color: var(--ink-3); min-width: 20px; font-variant-numeric: tabular-nums; }
.angles { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tboard { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.board-h { display: flex; gap: 8px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.board-h b { font-weight: 600; flex: 1; min-width: 0; }
.tr-src input[type="checkbox"] { accent-color: var(--accent); }
.tr-src .bad { color: var(--danger); }
td.tr-on { min-width: 168px; }
td.tr-risk { white-space: nowrap; }
@media (max-width: 1100px) {
  .tr-layout { grid-template-columns: minmax(0, 1fr); }
  .tr-side { position: static; }
}
.chart-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: var(--r-pill); background: var(--accent); box-shadow: 0 0 0 2px var(--surface), 0 1px 4px rgba(26, 27, 30, .3); pointer-events: none; }

/* 待办：等级小标（卡住 = 琥珀实心，到期 = 琥珀浅底，该做 = 描边），第一件放大 */
.lv { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 12px; line-height: 20px; white-space: nowrap; flex: none; cursor: default; }
.lv-block { background: var(--amber); color: var(--surface); font-weight: 500; }
.lv-due { background: var(--amber-soft); color: var(--amber); }
.lv-do { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.amb-t { color: var(--amber); }
.ok-t { color: var(--accent); }
.focus { padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.focus-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.focus-top .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-3); }
.focus h2 { margin: 0; font: 600 28px/40px var(--f-display); letter-spacing: .01em; text-wrap: balance; }
.focus .why { margin: 0; color: var(--ink-2); max-width: 72ch; }
.focus-acts { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); max-width: 80ch; }
.steps li::marker { color: var(--ink-3); font-family: var(--f-num); }
.steps.sm { font-size: 12px; line-height: 20px; color: var(--ink-2); gap: 0; margin-top: 4px; }
.todo-row .what { font-size: 14px; line-height: 22px; }
.todo-row[aria-expanded="true"] { background: var(--hover); }
.todo-more { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; font-size: 14px; }
.todo-more .why { margin: 0; color: var(--ink-2); }
.snoozed summary { cursor: pointer; color: var(--ink-3); font-size: 14px; padding: 4px 0; list-style-position: inside; transition: color var(--t-fast) var(--ease-out); }
.snoozed summary:hover { color: var(--ink); }
.snoozed[open] summary { margin-bottom: 8px; }

/* 计划 */
.plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.plan-card { gap: 8px; padding: 16px; }
.plan-card .tt { font-size: 16px; line-height: 24px; font-weight: 500; }
.plan-head { display: flex; flex-direction: column; gap: 12px; }
.plan-prog { display: flex; align-items: center; gap: 10px; }
.plan-prog .meter { flex: 1; max-width: 480px; }
.plan-prog .num { font-weight: 500; }
.plan-card .meter > span, .plan-prog .meter > span { background: var(--accent); }
.plan-task { grid-template-columns: auto minmax(0, 1fr) auto; }
.plan-task .what { font-size: 14px; line-height: 22px; }
.plan-task.closed .what { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.tick { width: 20px; height: 20px; margin-top: 1px; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; transition: box-shadow var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out); }
.tick:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.tick.on { background: var(--accent); box-shadow: none; }
.tick.on::after { content: ""; width: 10px; height: 5px; border: solid var(--accent-ink); border-width: 0 0 2px 2px; transform: translate(0, -1px) rotate(-45deg); }
.tick.skip::after { content: ""; width: 10px; height: 2px; background: var(--ink-3); }
.cal .kd { padding: 4px 12px; font-size: 12px; line-height: 16px; color: var(--amber); background: var(--amber-soft); border-bottom: 1px solid var(--line); }
@media (max-width: 820px) {
  .focus { padding: 20px; }
  .focus h2 { font-size: 24px; line-height: 32px; }
  .plan-task { grid-template-columns: auto minmax(0, 1fr); }
  .plan-task > .acts { grid-column: 2; justify-content: flex-start; }
  .item > .lv { justify-self: start; }
  .item > .acts { justify-content: flex-start; }
}

/* 注册和资质：状态小标；点开看要准备什么、怎么办，状态一点就改；从待办跳过来的那一项描一圈，到下次重画为止 */
.rs { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 12px; line-height: 20px; white-space: nowrap; flex: none; }
.rs-out { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.rs-acc { background: var(--accent-soft); color: var(--accent); }
.rs-amb { background: var(--amber-soft); color: var(--amber); }
.rs-ok { color: var(--accent); }
.rs-ok::before { content: "✓ "; white-space: pre; }
.rs-na { color: var(--ink-3); }
.reg-row .what { font-size: 14px; line-height: 22px; }
.reg-row.closed .what { color: var(--ink-3); }
.reg-row.focused { box-shadow: inset 0 0 0 2px var(--accent); }
.reg-row[aria-expanded="true"] { background: var(--hover); }
.reg-more { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; font-size: 14px; cursor: default; }
.reg-more .why { margin: 0; color: var(--ink-2); max-width: 80ch; }
.reg-more .lab { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.reg-more ul.steps { list-style: disc; }
.reg-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 820px) { .item > .rs { justify-self: start; } }
