/* 记艺线 Memoline · 三周研发工期看板样式
   视觉严格沿用 memoline-pitch / memoline-survey：暖白纸面、编辑部衬线大字、手绘线条与赭石橙/浅蓝/浅红/浅绿四色系统 */

:root {
  --bg: #FAF9F5;
  --paper: #FFFFFF;
  --card-2: #F3F1EA;
  --ink: #141413;
  --ink-2: #3D3D3A;
  --muted: #87867F;
  --faint: #D9D6CC;
  --border: #E6E4DD;

  /* 品牌主色 & 四人泳道色 */
  --orange: #D97757; --orange-deep: #A84A2B; --orange-tint: #F6E4DB;
  --a: #7DAEE0;      --a-deep: #3F78B5;      --a-tint: #EDF4FB;
  --b: #EC968E;      --b-deep: #BF5348;      --b-tint: #FCEEEC;
  --c: #86C796;      --c-deep: #3D8C53;      --c-tint: #EBF6EE;

  --serif: 'Instrument Serif', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', serif;
  --sans: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --mono: 'Cascadia Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.serif { font-family: var(--serif); }
a { color: inherit; text-decoration: none; }

/* ---------- 顶部进度线 ---------- */
.top-progress {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: 10px; pointer-events: none;
}
.tp-svg { width: 100%; height: 10px; display: block; overflow: visible; }
.tp-track { fill: none; stroke: var(--border); stroke-width: 2; }
.tp-fill {
  fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round;
  transition: stroke-dashoffset .7s var(--ease-out);
}

/* ---------- 通用按钮与卡片 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 10px 22px; font-size: 14px; font-weight: 600; letter-spacing: .02em;
  transition: transform .2s var(--ease-out), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--orange); }
.btn-ghost { background: var(--paper); border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-sm { padding: 6px 14px; font-size: 13px; font-weight: 500; }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -32px rgba(20, 20, 19, .22);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em;
  color: var(--muted); text-transform: uppercase;
}

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 28px 24px 34px;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1360px; margin: 0 auto;
}
.hero-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; text-shadow: 0 0 14px var(--bg); }
.brand-name em { font-style: italic; font-weight: 400; color: var(--muted); margin-left: 4px; }
.brand-sep { color: var(--faint); }
.brand-tag {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: var(--orange-deep); background: var(--orange-tint);
  border: 1px solid rgba(217, 119, 87, .35);
  padding: 3px 11px; border-radius: 999px;
}

.sync-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(6px);
  border: 1px solid var(--border); font-size: 12px; color: var(--ink-2);
}
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.sync-pill.cloud .sync-dot { background: var(--c-deep); box-shadow: 0 0 0 3px var(--c-tint); }
.sync-pill.local .sync-dot { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); }
.sync-refresh {
  border: 0; background: var(--card-2); color: var(--ink-2);
  border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 600;
}
.sync-refresh:hover { background: var(--orange); color: #fff; }

.hero-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: end;
}
.hero-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600; line-height: 1.15; letter-spacing: -.01em;
  text-shadow: 0 0 22px var(--bg), 0 0 8px var(--bg);
}
.ul-wrap { position: relative; display: inline-block; color: var(--ink); }
.title-ul {
  position: absolute; left: 0; bottom: -6px; width: 100%; height: 14px; overflow: visible;
}
.title-ul path {
  fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round;
  opacity: .75; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: drawIn 1.1s .25s var(--ease-out) forwards;
}
@keyframes drawIn { to { stroke-dashoffset: 0; } }

.hero-sub {
  margin: 0 0 22px; font-size: 18px; color: var(--ink-2);
  text-shadow: 0 0 12px var(--bg);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tip {
  margin: 22px 0 0; font-size: 12px; color: var(--muted);
  letter-spacing: .04em; text-shadow: 0 0 10px var(--bg);
}

/* 汇总与身份选择卡 */
.hero-summary { padding: 20px 22px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); }
.hs-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hs-big { display: flex; align-items: baseline; gap: 4px; font-family: var(--serif); }
.hs-num { font-size: 46px; line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.hs-slash { font-size: 26px; color: var(--faint); }
.hs-total { font-size: 28px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hs-pct {
  margin-left: 10px; font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--orange-deep); background: var(--orange-tint);
  padding: 2px 10px; border-radius: 999px;
}
.hs-mini { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.hs-mini span { display: flex; align-items: center; gap: 6px; }
.hs-mini b { color: var(--ink); font-variant-numeric: tabular-nums; }
.hs-mini .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.hs-mini .dot.doing { background: var(--a-deep); }
.hs-mini .dot.blocked { background: var(--b-deep); }
.hs-mini .dot.msg { background: var(--orange); }

.identity-box {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border);
}
.id-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.id-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.id-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--bg);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--ink-2);
  transition: all .2s var(--ease-out);
}
.id-pill .swatch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--m); }
.id-pill:hover { border-color: var(--m); }
.id-pill.on {
  background: var(--m-tint); border-color: var(--m-deep); color: var(--m-deep); font-weight: 600;
}

/* ---------- 主体容器 ---------- */
.main-wrap { max-width: 1360px; margin: 0 auto; padding: 40px 24px 72px; }
.sec + .sec { margin-top: 56px; }
.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; flex-wrap: wrap; margin-bottom: 20px;
}
.sec-title { margin: 0 0 6px; font-size: clamp(26px, 3vw, 34px); font-weight: 600; line-height: 1.2; }
.sec-desc { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 720px; }
.sec-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.pill-switch {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--paper);
}
.pill-switch button {
  border: 0; background: none; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; color: var(--muted); transition: all .2s;
}
.pill-switch button:hover { color: var(--ink); }
.pill-switch button.on { background: var(--ink); color: var(--bg); font-weight: 600; }

.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lg-dot.todo { border: 1.5px solid var(--muted); background: #fff; }
.lg-dot.doing { background: var(--a-deep); }
.lg-dot.done { background: var(--c-deep); }
.lg-dot.blocked { background: var(--b-deep); }
.lg-buf {
  width: 14px; height: 10px; border-radius: 3px; border: 1px dashed var(--faint);
  background: repeating-linear-gradient(-45deg, transparent, transparent 3px, rgba(217, 214, 204, .45) 3px, rgba(217, 214, 204, .45) 5px);
}

/* ---------- 三阶段摘要卡 ---------- */
.stage-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px;
}
.stage-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 18px; position: relative; overflow: hidden;
}
.stage-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--sc, var(--orange));
}
.sc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sc-no { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--orange); }
.sc-dates { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sc-title { margin: 4px 0; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.sc-desc { margin: 0; font-size: 12.5px; color: var(--ink-2); }

/* ---------- 甘特工期主画板 ---------- */
.gantt-shell { overflow: hidden; }
.gantt-scroll { overflow-x: auto; padding-bottom: 2px; }
.gantt-board { min-width: 1120px; position: relative; }

/* 表头：阶段栏 + 日期栏 */
.g-header {
  display: grid;
  grid-template-columns: 206px repeat(21, minmax(42px, 1fr));
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.g-corner {
  grid-row: 1 / span 2;
  padding: 14px 16px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
.g-corner strong { font-family: var(--serif); font-size: 16px; }
.g-corner span { font-size: 11.5px; color: var(--muted); }

.g-week-band {
  padding: 7px 10px; font-size: 12px; font-weight: 600;
  border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card-2); color: var(--ink-2);
}
.g-week-band small { font-weight: 400; color: var(--muted); font-size: 11px; }
.g-week-band:last-of-type { border-right: 0; }

.g-day-cell {
  padding: 6px 2px 7px; text-align: center;
  border-right: 1px dashed rgba(230, 228, 221, .8);
  font-size: 11px; line-height: 1.25; color: var(--muted);
  font-variant-numeric: tabular-nums;
  position: relative;
}
.g-day-cell.week-end { border-right: 1px solid var(--border); }
.g-day-cell.weekend { background: rgba(243, 241, 234, .55); }
.g-day-cell.buffer {
  background: repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(217, 214, 204, .28) 4px, rgba(217, 214, 204, .28) 6px);
}
.g-day-cell.today { background: var(--orange-tint); color: var(--orange-deep); font-weight: 700; }
.g-day-cell.milestone { color: var(--orange-deep); font-weight: 700; }
.g-day-cell b { display: block; font-size: 12px; color: var(--ink); font-weight: 600; }
.g-day-cell.milestone b { color: var(--orange-deep); }
.g-day-star { font-size: 10px; color: var(--orange); display: block; margin-top: 1px; }

/* 成员泳道行 */
.g-lane {
  display: grid;
  grid-template-columns: 206px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.g-lane:last-child { border-bottom: 0; }
.g-lane[data-tone="orange"] { --m: var(--orange); --m-deep: var(--orange-deep); --m-tint: var(--orange-tint); }
.g-lane[data-tone="red"]    { --m: var(--b);      --m-deep: var(--b-deep);      --m-tint: var(--b-tint); }
.g-lane[data-tone="blue"]   { --m: var(--a);      --m-deep: var(--a-deep);      --m-tint: var(--a-tint); }
.g-lane[data-tone="green"]  { --m: var(--c);      --m-deep: var(--c-deep);      --m-tint: var(--c-tint); }

.g-owner {
  padding: 16px; border-right: 1px solid var(--border);
  background: linear-gradient(90deg, var(--m-tint) 0%, rgba(255, 255, 255, .9) 24%);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.go-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.go-name {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  display: flex; align-items: center; gap: 7px;
}
.go-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--m); flex: none; }
.go-prog {
  font-size: 11px; font-weight: 600; color: var(--m-deep);
  background: var(--m-tint); padding: 1px 7px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.go-role { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.go-dir {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  background: var(--bg); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 6px; width: fit-content; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 泳道右侧画布：点阵纸感 + 21 列底格 + 堆叠块 */
.g-track-wrap {
  position: relative;
  padding: 14px 0;
  background-color: #FFFEFC;
  background-image: radial-gradient(circle, rgba(217, 214, 204, .45) 1px, transparent 1.1px);
  background-size: 20px 20px;
}
.g-grid-bg {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(21, 1fr);
  pointer-events: none;
}
.g-grid-col { border-right: 1px dashed rgba(230, 228, 221, .75); }
.g-grid-col.week-end { border-right: 1px solid var(--border); }
.g-grid-col.buffer {
  background: repeating-linear-gradient(-45deg, transparent, transparent 5px, rgba(217, 214, 204, .22) 5px, rgba(217, 214, 204, .22) 7px);
}
.g-grid-col.milestone {
  background: linear-gradient(180deg, rgba(217, 119, 87, .12), rgba(217, 119, 87, .04));
  border-right: 1.5px dashed rgba(217, 119, 87, .55);
}

.g-bars {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  row-gap: 9px;
  align-items: stretch;
}

/* 块状任务卡片 */
.task-block {
  position: relative;
  margin: 0 4px;
  padding: 9px 11px 10px;
  border-radius: 13px;
  border: 1.5px solid color-mix(in srgb, var(--m) 62%, var(--border));
  background: color-mix(in srgb, var(--m-tint) 65%, #FFFFFF);
  display: flex; flex-direction: column; gap: 4px;
  cursor: pointer;
  transition: transform .22s var(--ease-out), box-shadow .22s, border-color .2s, background .2s;
  min-width: 0;
}
.task-block:hover {
  transform: translateY(-2px);
  border-color: var(--m-deep);
  box-shadow: 0 12px 24px -16px rgba(20, 20, 19, .35);
  z-index: 3;
}
.task-block.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--orange-tint), 0 12px 24px -16px rgba(20, 20, 19, .4);
}
.task-block.status-done {
  background: linear-gradient(135deg, #F1F8F3 0%, #FFFFFF 100%);
  border-color: var(--c);
}
.task-block.status-done .tb-title {
  color: var(--ink-2);
  text-decoration: line-through;
  text-decoration-color: rgba(61, 140, 83, .55);
}
.task-block.status-doing {
  border-color: var(--m-deep);
  background: color-mix(in srgb, var(--m-tint) 92%, #FFFFFF);
}
.task-block.status-blocked {
  background: #FFF2F0;
  border-color: var(--b-deep);
  border-style: dashed;
}

.tb-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tb-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tb-check {
  width: 20px; height: 20px; flex: none;
  border-radius: 6px; border: 1.5px solid var(--m-deep);
  background: #fff; color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  padding: 0; transition: all .18s;
}
.tb-check:hover { transform: scale(1.1); }
.task-block.status-done .tb-check { background: var(--c-deep); border-color: var(--c-deep); }
.task-block.status-doing .tb-check { background: var(--a-deep); border-color: var(--a-deep); }
.task-block.status-blocked .tb-check { background: var(--b-deep); border-color: var(--b-deep); }

.tb-title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tb-badges { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.tb-star {
  font-size: 11px; font-weight: 600; color: var(--orange-deep);
  background: var(--orange-tint); padding: 1px 6px; border-radius: 999px;
}
.tb-msg {
  font-size: 11px; font-weight: 600; color: var(--ink-2);
  background: rgba(255, 255, 255, .9); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.tb-msg.has { border-color: var(--orange); color: var(--orange-deep); background: #fff; }
.tb-sub {
  font-size: 11.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tb-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px; color: var(--muted); margin-top: 2px;
}
.tb-tag {
  padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 600;
  background: rgba(255, 255, 255, .75); color: var(--m-deep);
}

.gantt-foot {
  padding: 12px 18px; border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2);
}
.gantt-foot strong { color: var(--orange-deep); }
.gantt-foot-actions { display: flex; gap: 8px; }
.import-label { cursor: pointer; }

/* ---------- 模块二：AI 提示词中心 ---------- */
.prompt-card { padding: 26px 28px; }
.prompt-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.prompt-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2);
}
.pm-chip {
  font-family: var(--mono); font-size: 12px;
  background: var(--card-2); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 999px;
}

.prompt-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px;
}
.p-step {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 14px;
}
.p-step b {
  display: inline-block; font-family: var(--serif); font-style: italic;
  font-size: 16px; color: var(--orange); margin-right: 6px;
}
.p-step span { font-size: 13px; color: var(--ink-2); }

.prompt-box-wrap {
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--bg); overflow: hidden;
}
.prompt-box-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--paper);
}
.prompt-box-head strong { font-size: 14px; margin-left: 8px; }
.pb-badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  color: var(--orange-deep); background: var(--orange-tint);
  padding: 2px 9px; border-radius: 999px;
}
.pb-badge.subtle { color: var(--ink-2); background: var(--card-2); }

.prompt-code {
  margin: 0; padding: 16px 18px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
  color: var(--ink); white-space: pre-wrap; word-break: break-word;
  max-height: 360px; overflow: auto;
}
.prompt-code.small { max-height: 220px; font-size: 12px; }
.prompt-subgrid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px;
}

/* ---------- 详情与留言抽屉 ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20, 20, 19, .24); backdrop-filter: blur(2px);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 65;
  width: min(500px, 96vw);
  background: var(--paper);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 50px -28px rgba(20, 20, 19, .35);
  display: flex; flex-direction: column;
  transform: translateX(104%);
  transition: transform .35s var(--ease-out);
}
.drawer.open { transform: none; }
.drawer-head {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.drawer-head-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.drawer-owner {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.drawer-dates { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.drawer-close {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--paper);
  font-size: 20px; line-height: 1; color: var(--muted);
}
.drawer-close:hover { border-color: var(--orange); color: var(--orange); }

.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px 28px; }
.drawer-title { margin: 0 0 6px; font-size: 24px; line-height: 1.3; }
.drawer-subtitle { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-2); }

.drawer-section { margin-top: 20px; }
.ds-label {
  margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase;
}
.ds-updated { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

.status-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.st-btn {
  border: 1px solid var(--border); background: var(--bg); border-radius: 12px;
  padding: 8px 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  transition: all .18s;
}
.st-btn:hover { border-color: var(--orange); }
.st-btn.on[data-st="todo"]    { background: var(--card-2); border-color: var(--ink); color: var(--ink); font-weight: 600; }
.st-btn.on[data-st="doing"]   { background: var(--a-tint); border-color: var(--a-deep); color: var(--a-deep); font-weight: 600; }
.st-btn.on[data-st="done"]    { background: var(--c-tint); border-color: var(--c-deep); color: var(--c-deep); font-weight: 600; }
.st-btn.on[data-st="blocked"] { background: var(--b-tint); border-color: var(--b-deep); color: var(--b-deep); font-weight: 600; }

.drawer-list { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.drawer-callout {
  margin-top: 16px; padding: 12px 14px;
  background: var(--orange-tint); border-left: 3px solid var(--orange);
  border-radius: 4px 12px 12px 4px; font-size: 12.5px; color: var(--ink-2);
}
.drawer-callout strong { color: var(--orange-deep); }

/* 留言区 */
.comments-section { border-top: 1px dashed var(--border); padding-top: 18px; }
.cs-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.cs-as { font-size: 12px; color: var(--muted); }
.cs-as b { color: var(--ink); }

.comment-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.comment-empty {
  padding: 16px; text-align: center; font-size: 13px; color: var(--muted);
  background: var(--bg); border: 1px dashed var(--border); border-radius: 12px;
}
.comment-item {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px 13px;
}
.ci-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ci-who { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.ci-dot { width: 8px; height: 8px; border-radius: 50%; }
.ci-right { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.ci-del { border: 0; background: none; color: var(--muted); font-size: 11px; padding: 0; }
.ci-del:hover { color: var(--b-deep); text-decoration: underline; }
.ci-text { margin: 0; font-size: 13.5px; color: var(--ink); white-space: pre-wrap; word-break: break-word; }

.comment-form {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px;
}
.cf-authors { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cf-author-btn {
  border: 1px solid var(--border); background: var(--paper); border-radius: 999px;
  padding: 2px 10px; font-size: 12px; color: var(--muted);
}
.cf-author-btn.on { border-color: var(--ink); background: var(--ink); color: var(--bg); font-weight: 600; }
.comment-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  background: var(--paper); padding: 9px 11px; font-size: 13.5px; resize: vertical;
}
.cf-foot {
  margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.cf-tip { font-size: 11.5px; color: var(--muted); }

/* ---------- 页脚 & Toast ---------- */
.footer {
  text-align: center; color: var(--muted); font-size: 12.5px;
  padding: 24px 16px 40px; border-top: 1px solid var(--border);
}
.footer em { font-family: var(--serif); font-style: italic; }
.footer-sep { margin: 0 8px; color: var(--faint); }
.footer-link { border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline dotted; }
.footer-link:hover { color: var(--orange); }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 80;
  transform: translate(-50%, 18px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); font-size: 13.5px;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
  transition: opacity .25s, transform .28s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid, .stage-cards, .prompt-steps, .prompt-subgrid { grid-template-columns: 1fr; }
  .sec-tools { align-items: flex-start; }
  .prompt-card { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .title-ul path { animation: none; stroke-dashoffset: 0; }
  .task-block, .drawer { transition: none; }
}
