/* Task Desk v7 — one surface family + layout push (not overlay)
   Sidebar / workspace share the same cool slate tokens
*/

:root {
  --bg: #eceff4;
  --bg-raised: #f7f8fb;
  --bg-hover: rgba(36, 48, 68, .045);
  --bg-muted: #eef1f6;

  --ink: #1a2333;
  --ink-2: #334155;
  --mute: #6b778c;
  --mute-2: #98a2b5;

  --line: rgba(36, 48, 68, .09);
  --line-strong: rgba(36, 48, 68, .14);

  /* same family as workspace — only one step denser */
  --sidebar-w: 236px;
  --sidebar-bg: #e4e8ef;
  --sidebar-fg: #4b5870;
  --sidebar-fg-strong: #1a2333;
  --sidebar-hover: rgba(26, 35, 51, .055);
  --sidebar-active: rgba(26, 35, 51, .09);
  --sidebar-glow: none;

  --accent: #1a2333;
  --accent-fg: #f7f8fb;
  --focus: #3b6fd9;
  --signal: #5a7fd4;

  --danger: #d11d48;
  --warn: #c98512;
  --ok: #0f8a62;
  --info: #3b6fd9;

  --font: "Outfit", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", "Menlo", ui-monospace, monospace;

  --rail: 300px;
  --row-h: 46px;
  --control-h: 32px;
  --radius: 8px;
  --radius-lg: 14px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.2, .64, 1);
  --shell-ms: .38s;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 13.5px/1.45 var(--font);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.012em;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
button { font-family: inherit; }

/* —— Shell: sidebar slides in AND workspace shifts together —— */
.app {
  position: relative;
  min-height: 100%;
  min-width: 0;
  background: var(--bg);
}
.workspace {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  margin-left: 0;
  border-left: 1px solid transparent;
  transition:
    margin-left var(--shell-ms) var(--ease-out),
    border-color var(--shell-ms) var(--ease-out);
}
.app.nav-open .workspace,
.app.nav-pinned .workspace {
  margin-left: var(--sidebar-w);
  border-left-color: var(--line);
}

/* Collapsed affordance: visible edge tab — never leave users guessing */
.nav-tab {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 72px;
  padding: 8px 0;
  margin: 0;
  border: 1px solid #4e6fb8;
  border-left: none;
  border-radius: 0 9px 9px 0;
  background: #5a7fd4;
  color: #fff;
  box-shadow: 3px 0 14px rgba(58, 92, 180, .35);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    width .22s var(--ease-out),
    background .2s ease,
    box-shadow .2s ease,
    opacity .25s ease,
    transform .25s var(--ease-spring),
    border-color .2s ease;
  animation: nav-tab-breathe 2.4s ease-in-out infinite;
}
.nav-tab::before { display: none; }
.nav-tab-grip {
  width: 2px;
  height: 12px;
  border-radius: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.85) 0 1.5px,
    transparent 1.5px 3px
  );
}
.nav-tab-chevron {
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}
.nav-tab-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,.92);
}
.nav-tab-label i {
  font-style: normal;
  display: block;
}
.nav-tab:hover,
.nav-tab.hot {
  width: 20px;
  border-color: #3f5fa8;
  background: #4a72c9;
  box-shadow: 4px 0 18px rgba(58, 92, 180, .45);
  animation: none;
  transform: translateY(-50%) translateX(1px);
}
.nav-tab:hover .nav-tab-label,
.nav-tab.hot .nav-tab-label { color: #fff; }
.nav-tab:hover .nav-tab-chevron,
.nav-tab.hot .nav-tab-chevron { color: #fff; }
.nav-tab:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.app.nav-open .nav-tab,
.app.nav-pinned .nav-tab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-12px);
  animation: none;
}
@keyframes nav-tab-breathe {
  0%, 100% { box-shadow: 3px 0 12px rgba(58, 92, 180, .28); }
  50% { box-shadow: 4px 0 18px rgba(58, 92, 180, .5); }
}

/* Also keep a thin hit area along the full left edge */
.nav-tab::after {
  content: "";
  position: absolute;
  left: -4px;
  top: -40vh;
  bottom: -40vh;
  width: 16px;
}

/* Auto-dock sidebar — same slate family as content */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 12px 12px;
  color: var(--sidebar-fg);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  transform: translate3d(-100%, 0, 0);
  transition: transform var(--shell-ms) var(--ease-out);
  will-change: transform;
}
.sidebar-glow { display: none; }
.app.nav-open .sidebar,
.app.nav-pinned .sidebar {
  transform: translate3d(0, 0, 0);
}

.brand {
  position: relative;
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 10px 2px;
  color: var(--sidebar-fg-strong);
}
.brand-mark {
  font-size: 15px; font-weight: 650; letter-spacing: -.035em;
}
.brand-sub {
  font-size: 11px; color: var(--mute); font-weight: 500;
  letter-spacing: .02em;
}
.side-nav { position: relative; display: grid; gap: 2px; }
.side-nav .section {
  margin: 14px 10px 6px;
  font-size: 10px; font-weight: 650;
  color: var(--mute-2);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.side-nav a {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 12px;
  border-radius: 8px;
  color: var(--sidebar-fg);
  font-size: 13.5px; font-weight: 520;
  transition: background .16s ease, color .16s ease, transform .16s var(--ease-spring);
}
.side-nav a:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-fg-strong);
  transform: translateX(1px);
}
.side-nav a.active {
  background: var(--sidebar-active);
  color: var(--sidebar-fg-strong);
  font-weight: 600;
}
.side-nav .n {
  width: 6px; height: 6px; border-radius: 50%;
  background: #b7c0d0; flex: none;
  transition: background .2s ease, box-shadow .2s ease;
}
.side-nav a.active .n {
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(90,127,212,.18);
}
.side-foot {
  position: relative;
  margin-top: auto;
  padding: 12px 10px 4px;
  border-top: 1px solid var(--line);
  display: grid; gap: 8px;
}
.side-foot .who {
  color: var(--sidebar-fg-strong);
  font-weight: 600; font-size: 13px;
}
.side-foot-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.side-foot a { color: var(--mute); font-size: 12px; }
.side-foot a:hover { color: var(--ink); }
.pin-btn {
  height: 26px; padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.55);
  color: var(--ink-2);
  font-size: 11px; font-weight: 560;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.pin-btn:hover { background: #fff; }
.pin-btn[aria-pressed="true"] {
  border-color: rgba(90,127,212,.4);
  background: rgba(90,127,212,.12);
  color: #2f4f9a;
}

/* —— Page header —— */
.page-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  min-height: 56px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(247,248,251,.9);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 5;
}
.page-bar h1 {
  margin: 0;
  font-size: 16px; font-weight: 650;
  letter-spacing: -.03em;
}
.page-bar .counts {
  display: flex; gap: 14px; align-items: center;
  color: var(--mute); font-size: 12px;
}
.page-bar .counts b {
  color: var(--ink-2); font-weight: 650;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 12px;
}
.page-bar .counts .warn b { color: var(--warn); }
.page-bar .counts .danger b { color: var(--danger); }
.page-actions { display: flex; gap: 8px; align-items: center; }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-muted);
}
.filter-bar .filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%;
}

/* —— Controls —— */
input, select, textarea, button { font: inherit; color: var(--ink); letter-spacing: inherit; }
input, select, textarea {
  height: var(--control-h);
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255,255,255,.9);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { height: auto; padding: 9px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 3px rgba(59,130,246,.14);
}
.filter-bar input[name="q"] { width: 210px; }
.chk {
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--control-h); padding: 0 8px;
  color: var(--mute); font-size: 12px; user-select: none;
}
button, .btn, a.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--control-h); padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-fg) !important;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s var(--ease-spring), filter .15s ease;
}
button:hover, .btn:hover, a.btn-secondary:hover {
  filter: brightness(1.12); transform: translateY(-1px);
  color: var(--accent-fg) !important;
}
.btn-secondary, button.btn-secondary, a.btn-secondary {
  background: var(--bg-raised);
  color: var(--ink-2) !important;
  border-color: var(--line-strong);
  font-weight: 550;
  box-shadow: none;
}
a.btn-secondary:hover {
  color: var(--ink) !important;
  background: #fff;
  border-color: rgba(36, 48, 68, .22);
}
button.linkish {
  height: auto; padding: 0; border: none; background: none; box-shadow: none;
  color: var(--info) !important; font-weight: 550;
}

/* —— Issue list —— */
.list { flex: 1; }
.table-filter-summary { display:flex; align-items:center; gap:10px; min-height:38px; padding:0 28px; border-bottom:1px solid var(--line); background:#f7f9fc; color:var(--mute); font-size:11.5px; }
.table-filter-summary strong { margin-left:auto; color:var(--info); }.table-filter-summary a { color:var(--info); font-weight:650; }
.task-table { max-height:calc(100vh - 218px); min-height:320px; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.list-head {
  display: grid;
  gap: 12px; align-items: center;
  padding: 0 28px; min-height: 40px;
  border-bottom: 1px solid var(--line);
  color: var(--mute); font-size: 11px; font-weight: 560;
  background: rgba(247,249,252,.96);
}
.task-table-head { position:sticky; top:0; z-index:20; overflow:visible; backdrop-filter:blur(10px); box-shadow:0 1px 0 rgba(15,23,42,.06); }
.task-table-head, .task-table .list-row { grid-template-columns:126px minmax(240px,1fr) 112px 126px minmax(145px,.75fr) 70px 112px 112px; }
.column-head { min-width:0; position:relative; }
.column-filter { position:relative; }
.column-filter summary { display:flex; align-items:center; gap:6px; width:max-content; max-width:100%; list-style:none; color:var(--mute); cursor:pointer; user-select:none; }
.column-filter summary::-webkit-details-marker { display:none; }
.column-filter summary:hover { color:var(--ink-2); }.column-filter.active summary { color:var(--info); font-weight:700; }
.filter-mark { width:7px; height:7px; border:1.5px solid currentColor; border-radius:2px; opacity:.55; }.column-filter.active .filter-mark { background:var(--info); border-color:var(--info); opacity:1; }
.filter-popover { position:absolute; top:25px; left:-10px; z-index:40; display:grid; gap:10px; width:250px; padding:13px; border:1px solid var(--line-strong); border-radius:11px; background:#fff; box-shadow:0 14px 36px rgba(15,23,42,.16); color:var(--ink-2); }
.filter-popover.align-right { right:-10px; left:auto; }.filter-popover label { display:grid; gap:5px; color:var(--mute); font-size:11.5px; }.filter-popover input, .filter-popover select { width:100%; }
.filter-popover .filter-check { display:flex; align-items:center; gap:7px; }.filter-popover .filter-check input { width:auto; }
.filter-popover button { justify-self:start; }
a.list-row { color: inherit; text-decoration: none; }
.list-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 0 28px;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background .12s ease, transform .18s var(--ease-spring);
}
.list-row:hover {
  background: var(--bg-hover);
}
.list-row.suspect { box-shadow: inset 3px 0 0 var(--danger); }
.list-row .title {
  display:flex; align-items:center; gap:8px; min-width:0;
  font-weight: 550; color: var(--ink); font-size: 13.75px;
}
.list-row .title strong {
  min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font-size:13.75px; font-weight:600;
}
.list-row:hover .title strong { color: #0a4fd6; }
.list-row .code {
  font-family: var(--mono); font-size: 12px; color: var(--mute);
  font-variant-numeric: tabular-nums; font-weight: 500;
}
.list-row .row-meta {
  display: flex; align-items: center; gap: 10px;
  justify-content: flex-end;
  color: var(--mute); font-size: 12px;
  white-space: nowrap;
}
.list-row .meta { color: var(--mute); font-size: 12px; font-family: var(--mono); }
.list-row .overdue { color: var(--danger); font-weight: 650; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.status-cell { display:grid; gap:3px; }.status-cell small { padding-left:20px; color:var(--info); font:10.5px var(--mono); }
.attention-cell { display:flex; gap:5px; align-items:center; flex-wrap:wrap; }
.attention-tag { display:inline-flex; align-items:center; min-height:22px; padding:3px 7px; border-radius:999px; font-size:10.5px; font-weight:650; white-space:nowrap; }
.attention-danger { background:#fff0f2; color:var(--danger); }.attention-warn { background:#fff4df; color:#946100; }.attention-info { background:#eaf1ff; color:#315fa8; }
.owner-cell { display:flex; align-items:center; gap:7px; min-width:0; color:var(--ink-2); font-size:12px; }.owner-cell > span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.line-cell { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--mute); font-size:11.5px; }
.due-cell { color:var(--mute); font:12px var(--mono); font-variant-numeric:tabular-nums; }.quiet { color:var(--mute-2); }
.list-empty {
  padding: 72px 28px; text-align: center; color: var(--mute); font-size: 14px;
}

/* status / priority */
.st {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2); white-space: nowrap; font-size: 12px;
}
.st i {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--mute-2);
  background: transparent; flex: none;
  box-sizing: border-box;
}
.st-DONE i, .st-REVIEWED i {
  border-color: var(--ok);
  background: var(--ok);
  box-shadow: inset 0 0 0 2px #fff;
}
.st-IN_PROGRESS i {
  border-color: var(--info);
  background: conic-gradient(var(--info) 0 68%, transparent 68%);
  box-shadow: inset 0 0 0 2px #fff;
}
.st-BACKLOG i, .st-UNPLANNED i { border-color: var(--mute-2); }
.st-CANCELLED i {
  border-color: var(--mute-2);
  background: var(--mute-2);
  opacity: .4;
}
.prio {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 7px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  background: rgba(15,23,42,.05); color: var(--mute);
  letter-spacing: .02em;
}
.prio-P0 { background: rgba(225,29,72,.1); color: var(--danger); }
.prio-P1 { background: rgba(217,119,6,.12); color: #b45309; }
.prio-P2 { background: rgba(37,99,235,.1); color: var(--info); }
.flag {
  display: inline-flex; height: 22px; align-items: center; padding: 0 7px;
  border-radius: 999px; background: rgba(225,29,72,.1); color: var(--danger);
  font-size: 11px; font-weight: 650;
}
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(145deg, #e8ecf4, #d5dbe8);
  color: var(--ink-2);
  font-size: 11px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
}
.sev { font-family: var(--mono); font-size: 12px; font-weight: 650; }
.sev-A { color: var(--danger); }
.sev-B { color: var(--warn); }
.sev-C { color: var(--info); }
.sev-D { color: var(--ok); }

/* —— Detail —— */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail);
  min-height: calc(100vh - 57px);
}
.detail-main { min-width: 0; padding: 28px 40px 64px; }
.detail-rail {
  border-left: 1px solid var(--line);
  background: var(--bg-muted);
  padding: 22px 18px 48px;
}
.detail-rail h3 {
  margin: 18px 0 10px;
  font-size: 11px; font-weight: 650; color: var(--mute);
  letter-spacing: .06em; text-transform: uppercase;
}
.detail-rail h3:first-child { margin-top: 0; }
.prop {
  display: grid; grid-template-columns: 76px 1fr;
  gap: 8px; padding: 7px 0; font-size: 13px;
}
.prop dt { color: var(--mute); }
.prop dd { margin: 0; color: var(--ink-2); word-break: break-word; }

.crumb { margin: 0 0 12px; color: var(--mute); font-size: 12px; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.flash {
  margin: 0 0 14px; padding: 9px 11px;
  border: 1px solid rgba(5,150,105,.22);
  background: #ecfdf5; color: var(--ok); border-radius: var(--radius); font-size: 13px;
}
.detail-title {
  margin: 0 0 12px;
  font-size: 26px; font-weight: 700; letter-spacing: -.035em; line-height: 1.22;
}
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  align-items: center; color: var(--mute); font-size: 12.5px; margin-bottom: 24px;
}
.detail-actions { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.inline-status select { height: var(--control-h); }

.block { margin-bottom: 30px; }
.block > h2 {
  margin: 0 0 12px;
  font-size: 13.5px; font-weight: 650; letter-spacing: -.015em;
}
.block .hint { color: var(--mute); font-size: 12px; margin: -6px 0 12px; }
.body {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font-family: var(--font);
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.stack { display: grid; gap: 10px; }
.stack label { display: grid; gap: 4px; font-size: 12px; color: var(--mute); }
.issue-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.issue-list li {
  padding: 12px 14px;
  border: 1px solid rgba(225,29,72,.18);
  background: #fff7f8;
  border-radius: var(--radius);
  display: grid; gap: 4px;
}
.issue-list form { display: flex; gap: 8px; margin-top: 6px; }
.issue-workbench { scroll-margin-top: 90px; }
.issue-intro { margin:-5px 0 12px; color:var(--mute); font-size:12px; line-height:1.55; }
.issue-cards { display:grid; gap:10px; }
.issue-card { padding:15px 16px; border:1px solid #e4e9f0; border-left:3px solid #d79a2b; border-radius:11px; background:#fff; }
.issue-card-A { border-left-color:var(--danger); }.issue-card-C { border-left-color:var(--info); }.issue-card-D { border-left-color:var(--ok); }
.issue-card header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.issue-card header > div { display:grid; gap:4px; }.issue-card h3 { margin:0; font-size:15px; }
.issue-kind { color:var(--mute); font-size:10.5px; }.issue-level { padding:4px 8px; border-radius:999px; background:#fff3d9; color:#8a5a00; font-size:10.5px; font-weight:650; white-space:nowrap; }
.issue-card-A .issue-level { background:#fff0f2; color:var(--danger); }.issue-card-C .issue-level { background:#eaf1ff; color:#315fa8; }.issue-card-D .issue-level { background:#e8f5ef; color:#087252; }
.issue-reason { margin:10px 0 12px; color:var(--ink-2); font-size:13px; line-height:1.55; }
.issue-facts { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0; }
.issue-facts > div { padding:9px 10px; border-radius:8px; background:var(--bg-muted); }.issue-facts .wide { grid-column:1 / -1; }
.issue-facts dt { margin-bottom:3px; color:var(--mute); font-size:10.5px; }.issue-facts dd { margin:0; color:var(--ink-2); font-size:12.5px; line-height:1.5; white-space:normal; overflow:visible; text-overflow:clip; }
.issue-close-note { margin:10px 0; color:#766044; font-size:11.5px; }
.issue-actions { display:flex; align-items:flex-start; gap:10px; flex-wrap:wrap; }.issue-actions details { min-width:300px; flex:1; }
.issue-actions summary { color:var(--info); font-size:12px; font-weight:600; cursor:pointer; padding:7px 0; }
.issue-locked { padding:7px 9px; border-radius:7px; background:#f2f4f7; color:var(--mute); font-size:11.5px; }
.issue-actions form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:end; margin-top:7px; }
.issue-actions label { display:grid; gap:4px; color:var(--mute); font-size:11.5px; }.issue-actions textarea { resize:vertical; min-height:66px; }
.issue-work-head { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-bottom:15px; border-bottom:1px solid var(--line); }
.issue-work-head > div { min-width:0; }.issue-work-head h2 { margin:3px 0 5px; font-size:18px; }.issue-work-head p { margin:0; color:var(--mute); font-size:12px; line-height:1.55; }
.issue-eyebrow { color:#a55c12; font-size:10.5px; font-weight:700; letter-spacing:.04em; }.issue-primary-action { flex:none; }
.issue-steps { display:grid; margin:0; padding:0; list-style:none; }
.issue-step { display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:13px; align-items:start; padding:15px 0; border-bottom:1px solid var(--line); }
.issue-step:last-child { padding-bottom:0; border-bottom:0; }.issue-step-no { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:#fff2dd; color:#9a5909; font:700 11px var(--mono); }
.issue-card-A .issue-step-no { background:#fff0f2; color:var(--danger); }.issue-card-C .issue-step-no { background:#eaf1ff; color:#315fa8; }.issue-card-D .issue-step-no { background:#e8f5ef; color:#087252; }
.issue-step-main { min-width:0; }.issue-step-title { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }.issue-step-title h3 { margin:2px 0; font-size:14px; }.issue-step-main > p { margin:6px 0 0; color:var(--ink-2); font-size:12.5px; line-height:1.55; }
.issue-step-action { align-self:center; max-width:220px; }.issue-step-action .btn-secondary { display:inline-flex; white-space:nowrap; }.issue-step-action .issue-locked { display:block; line-height:1.45; text-align:center; }
.issue-more { margin-top:6px; }.issue-more > summary { color:var(--mute); font-size:10.5px; cursor:pointer; }.issue-more[open] > summary { margin-bottom:8px; color:var(--info); }
.issue-more .issue-facts { margin-top:7px; }.issue-manual-close { margin-top:8px; padding-top:8px; border-top:1px dashed var(--line); }.issue-manual-close > summary { color:var(--mute); font-size:10.5px; cursor:pointer; }
.issue-manual-close form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:end; margin-top:8px; }.issue-manual-close label { margin:0; color:var(--mute); font-size:11px; }.issue-manual-close textarea { min-height:58px; }
.historical-retrospect { display:grid; gap:12px; padding:15px; border:1px solid #ead8b3; border-radius:11px; background:#fffaf0; }.historical-retrospect > div { display:grid; gap:3px; }.historical-retrospect > div strong { font-size:13px; }.historical-retrospect > div span { color:#7b6848; font-size:11px; }.historical-retrospect label { margin:0; }
.existing-evidence { margin:0; color:var(--mute); font-size:11px; }
.persistent-tip { display:block; margin-top:6px; color:var(--mute); font-size:10.5px; line-height:1.5; }
.writing-guide { display:block; margin-top:7px; padding:10px 12px; border:1px solid #dfe5ee; border-radius:9px; background:#f8fafc; }
.writing-guide-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:7px; }.writing-guide-head strong { color:var(--ink-2); font-size:10.5px; }.writing-guide-head span { color:var(--warn); font-size:10px; font-weight:650; }
.writing-guide.is-complete { border-color:#b9dfd0; background:#f3fbf7; }.writing-guide.is-complete .writing-guide-head span { color:var(--ok); }
.writing-guide ul { display:flex; flex-wrap:wrap; gap:6px 12px; margin:0; padding:0; list-style:none; }.writing-guide li { display:flex; align-items:center; gap:5px; color:var(--mute); font-size:10.5px; line-height:1.4; }.writing-guide li i { width:7px; height:7px; flex:none; border:1px solid #aeb8c7; border-radius:50%; background:#fff; }.writing-guide li.is-covered { color:#187458; }.writing-guide li.is-covered i { border-color:#1b9a70; background:#1b9a70; box-shadow:inset 0 0 0 2px #fff; }
#worklog, #retrospect { scroll-margin-top:90px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.log { padding: 12px 0; border-top: 1px solid var(--line); }
.log:first-of-type { border-top: none; padding-top: 0; }
.log-meta { color: var(--mute); font-size: 11px; font-family: var(--mono); margin-bottom: 4px; }
.next { margin-top: 4px; color: var(--ink-2); font-size: 12.5px; }
.ok-line { color: var(--ok); font-weight: 600; }
.muted, .sub, .hint { color: var(--mute); }
.sub { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.err {
  color: var(--danger); background: #fff1f2;
  border: 1px solid rgba(225,29,72,.2);
  padding: 8px 10px; border-radius: var(--radius); font-size: 13px;
}
.tiny { font-size: 12px; margin-left: 6px; font-weight: 550; color: var(--info); }

.form-wrap { padding: 28px 40px 64px; max-width: 880px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid label { display: grid; gap: 4px; font-size: 12px; color: var(--mute); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .actions { display: flex; gap: 8px; align-items: center; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; }

/* —— Guided task creation —— */
.create-entry, .guided-create { max-width:1080px; margin:0 auto; padding:36px 40px 72px; }
.create-intro { max-width:780px; margin-bottom:26px; }
.eyebrow { display:block; margin-bottom:8px; color:var(--info); font-size:12px; font-weight:750; letter-spacing:.08em; }
.create-intro h2 { margin:0 0 10px; color:var(--ink); font-size:26px; line-height:1.25; letter-spacing:-.035em; }
.create-intro p { margin:0; color:var(--mute); font-size:15px; line-height:1.7; }
.create-paths { display:grid; grid-template-columns:1.15fr 1fr; gap:16px; }
.create-path { display:flex; flex-direction:column; min-height:310px; padding:24px; border:1px solid var(--line-strong); border-radius:16px; background:#fff; box-shadow:0 8px 28px rgba(15,23,42,.05); }
.create-path.recommended { border-color:rgba(59,130,246,.36); background:linear-gradient(145deg,#fff,#f5f9ff); }
.create-path.child-path { grid-column:1/-1; min-height:0; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px 22px; }
.create-path.child-path .path-top { grid-row:1/3; }.create-path.child-path h3 { align-self:end; }.create-path.child-path p { align-self:start; margin:0; }.create-path.child-path a { grid-column:3; grid-row:1/3; }
.path-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.path-icon { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:11px; background:#eaf2ff; color:#2764ce; font-size:15px; font-weight:800; }
.path-badge { padding:5px 8px; border-radius:999px; background:#e7f0ff; color:#2563c6; font-size:11px; font-weight:750; }.path-badge.neutral { background:#eef1f5; color:var(--mute); }
.create-path h3 { margin:0 0 9px; font-size:18px; letter-spacing:-.02em; }.create-path p { color:var(--mute); font-size:14px; line-height:1.65; }
.create-path ol, .create-path ul { margin:10px 0 22px; padding-left:20px; color:var(--ink-2); font-size:13.5px; line-height:1.8; }.create-path .btn, .create-path .btn-secondary { align-self:flex-start; margin-top:auto; }
.create-rule { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; margin-top:18px; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:var(--bg-muted); color:var(--mute); font-size:13px; }.create-rule strong { color:var(--ink-2); }
.create-mode-pill { padding:6px 10px; border-radius:999px; background:#edf3ff; color:#285fbf; font-size:12px; font-weight:700; }
.form-error { display:grid; gap:4px; margin-bottom:16px; padding:14px 16px; border:1px solid rgba(225,29,72,.25); border-radius:12px; background:#fff1f3; color:var(--danger); }.form-error strong { font-size:14px; }.form-error span { font-size:14px; }.form-error small { color:#9f2441; }
.parent-context { margin-bottom:16px; padding:16px 18px; border:1px solid rgba(59,130,246,.26); border-radius:13px; background:#f4f8ff; }.parent-context > span { display:block; color:var(--mute); font-size:12px; }.parent-context > strong { display:block; margin:5px 0 9px; font-size:16px; }.parent-context > div { display:flex; flex-wrap:wrap; gap:8px 16px; color:#52627d; font-size:12.5px; }
.parent-overdue { margin:11px 0 0; padding-top:10px; border-top:1px solid rgba(225,29,72,.13); color:#a12a45; font-size:12.5px; line-height:1.55; }
.guided-form { display:grid; gap:14px; }
.form-section { display:grid; grid-template-columns:42px 210px minmax(0,1fr); gap:18px; align-items:start; padding:22px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 5px 18px rgba(15,23,42,.035); }
.section-index { display:flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:10px; background:#eef3fb; color:#45658f; font-family:var(--mono); font-size:12px; font-weight:700; }
.section-copy h2 { margin:2px 0 7px; font-size:16px; }.section-copy p { margin:0; color:var(--mute); font-size:13px; line-height:1.6; }
.section-fields { display:grid; grid-template-columns:1fr 1fr; gap:13px 14px; }.section-fields .full { grid-column:1/-1; }
.section-fields > label, .collaborator-field { display:grid; gap:6px; margin:0; color:#506078; font-size:14px; }.section-fields textarea { min-height:92px; }
.collaborator-field { padding:0; border:0; }.collaborator-field legend { margin-bottom:7px; color:#506078; font-size:14px; }
.choice-grid { display:flex; flex-wrap:wrap; gap:8px; }.choice-grid label { display:flex; align-items:center; gap:7px; min-height:36px; padding:0 11px; border:1px solid var(--line-strong); border-radius:9px; background:#fafbfc; color:var(--ink-2); font-size:13px; }.choice-grid input { width:auto; height:auto; }
.outcome-section { border-color:rgba(245,158,11,.28); background:linear-gradient(145deg,#fff,#fffdf7); }
.guided-actions { position:sticky; bottom:0; z-index:8; display:flex; align-items:center; gap:10px; padding:14px 16px; border:1px solid var(--line-strong); border-radius:13px; background:rgba(255,255,255,.94); backdrop-filter:blur(14px); box-shadow:0 -8px 30px rgba(15,23,42,.09); }.guided-actions > div { display:grid; gap:2px; margin-right:auto; }.guided-actions strong { font-size:13px; }.guided-actions span { color:var(--mute); font-size:12px; }
.completion-contract { padding:16px 18px; border:1px solid rgba(245,158,11,.28); border-radius:12px; background:#fffdf7; }.completion-contract .body { background:#fff; }
.acceptance-contract { margin:10px 0 14px; padding:12px 14px; border-left:3px solid var(--warn); border-radius:8px; background:#fff8e8; }.acceptance-contract strong { font-size:12px; color:#82551a; }.acceptance-contract p { margin:5px 0 0; color:var(--ink-2); font-size:13px; line-height:1.6; white-space:pre-wrap; }

.panel {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 10px 30px rgba(15,23,42,.04);
}
.panel h2 { margin: 0 0 10px; font-size: 13.5px; font-weight: 650; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: auto;
  background: rgba(255,255,255,.82);
}
.data { width: 100%; border-collapse: collapse; }
.data th, .data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data th { color: var(--mute); font-size: 11px; font-weight: 600; background: rgba(243,244,247,.8); }
.data tr:last-child td { border-bottom: none; }
.data .empty { text-align: center; color: var(--mute); padding: 32px; }

/* —— Login —— */
body.login-page {
  display: grid; place-items: center; min-height: 100vh;
  background: var(--bg);
  padding: 24px;
}
.login-shell {
  width: min(390px, 100%);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 30px 26px;
  box-shadow: 0 16px 40px rgba(26,35,51,.08);
}
.login-shell .brand-mark {
  font-size: 22px; font-weight: 700; letter-spacing: -.04em; margin-bottom: 6px;
}
.login-shell .lede { margin: 0 0 22px; color: var(--mute); font-size: 13.5px; }
.login-shell input { width: 100%; height: 38px; }
.login-shell button { width: 100%; margin-top: 6px; height: 38px; }
.login-shell .hint { margin: 14px 0 0; font-size: 11px; color: var(--mute); }

/* —— Workbench cockpit —— */
.wb {
  padding: 0 0 40px;
  animation: wb-in .4s var(--ease-out) both;
}
@keyframes wb-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.wb-hero {
  position: relative;
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 220px at 0% 0%, rgba(90,127,212,.09), transparent 55%),
    linear-gradient(180deg, #fbfcfe, #f5f7fb);
}
.wb-hero-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.wb-kicker {
  margin: 0 0 4px;
  font-size: 11px; font-weight: 650; letter-spacing: .06em;
  text-transform: uppercase; color: var(--mute);
}
.wb-hello {
  margin: 0;
  font-size: 22px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2;
  color: var(--ink);
}
.wb-sub {
  margin: 5px 0 0;
  max-width: 560px;
  font-size: 13px; color: var(--ink-2); line-height: 1.45;
}
.wb-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.wb-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.wb-metrics.is-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wb-metric {
  display: block;
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  transition: border-color .15s ease, box-shadow .15s ease;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.wb-metric:hover {
  box-shadow: 0 6px 18px rgba(26,35,51,.05);
  border-color: rgba(90,127,212,.25);
  transform: translateY(-1px);
}
.wb-metric::after { content:"↘"; position:absolute; right:10px; top:9px; color:var(--mute-2); font-size:10px; }
.wb-metric:focus-visible { outline:3px solid rgba(67,116,219,.22); outline-offset:2px; }
.wb-metric .lab {
  display: block;
  font-size: 11px; font-weight: 600; color: var(--mute);
  margin-bottom: 4px;
}
.wb-metric .num {
  font-family: var(--mono);
  font-size: 22px; font-weight: 650; letter-spacing: -.04em;
  color: var(--ink); line-height: 1;
}
.wb-metric.is-danger .num { color: var(--danger); }
.wb-metric.is-warn .num { color: var(--warn); }
.wb-metric.is-ok .num { color: var(--ok); }
.wb-metric .tip {
  margin-top: 4px; font-size: 10.5px; color: var(--mute-2);
}

.wb-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .85fr);
  gap: 14px;
  padding: 16px 28px 0;
  align-items: start;
}
.wb-main, .wb-side { min-width: 0; display: grid; gap: 12px; align-content: start; }

.wb-section {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 24px rgba(26,35,51,.03);
  overflow: hidden;
  min-height: 0;
}
.wb-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  flex: none;
}
.wb-section-head h2 {
  margin: 0;
  font-size: 13px; font-weight: 650; letter-spacing: -.01em;
}
.wb-section-head .desc {
  color: var(--mute); font-size: 11.5px; font-weight: 450;
}

/* 今日行动：定高滚动视口 —— 不抢整屏 */
.wb-section.is-focus {
  max-height: 278px;
  position: relative;
}
.wb-section.is-focus::after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 0; right: 8px; bottom: 0;
  height: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
  z-index: 1;
  transition: opacity .18s ease;
}
.wb-section.is-focus:has(.wb-scroll-hint)::after { bottom: 27px; }
.wb-section.is-focus:has(.wb-scroll:hover)::after,
.wb-section.is-focus:has(.wb-scroll.is-paused)::after {
  opacity: 0;
}
.wb-scroll {
  flex: 1;
  min-height: 0;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 2px 0;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #c5cddb transparent;
  outline: none;
}
.wb-scroll.is-panel { max-height: 200px; }
.wb-scroll.is-side { max-height: 220px; }
.wb-scroll:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(90,127,212,.28);
}
.wb-scroll::-webkit-scrollbar { width: 7px; }
.wb-scroll::-webkit-scrollbar-track { background: transparent; }
.wb-scroll::-webkit-scrollbar-thumb {
  background: #c9d1de;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.wb-scroll::-webkit-scrollbar-thumb:hover { background: #a8b3c6; background-clip: padding-box; }
.wb-scroll.is-paused { scroll-behavior: auto; }
.wb-scroll-hint {
  flex: none;
  padding: 5px 14px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  font-size: 10.5px; color: var(--mute);
  display: flex; justify-content: space-between; gap: 8px;
  letter-spacing: .01em;
  position: relative;
  z-index: 2;
}

.wb-focus-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background .12s ease;
}
.wb-focus-row:last-child { border-bottom: none; }
.wb-focus-row:hover { background: rgba(90,127,212,.05); }
.wb-focus-row:hover .wb-focus-title { color: #1d4ed8; }
.wb-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mute-2); flex: none;
}
.wb-dot.is-overdue { background: var(--danger); box-shadow: 0 0 0 3px rgba(209,29,72,.12); }
.wb-dot.is-review { background: var(--warn); box-shadow: 0 0 0 3px rgba(201,133,18,.14); }
.wb-dot.is-week { background: var(--info); box-shadow: 0 0 0 3px rgba(59,111,217,.12); }
.wb-dot.is-delegate { background: #64748b; }
.wb-dot.is-stale { background: #94a3b8; }
.wb-focus-title {
  font-size: 13px; font-weight: 560; letter-spacing: -.015em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wb-focus-meta {
  display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center;
  margin-top: 2px; font-size: 11.5px; color: var(--mute);
}
.wb-focus-meta .code { font-family: var(--mono); font-size: 11px; }
.wb-focus-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 26px; padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font-size: 11.5px; font-weight: 600;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.wb-focus-row:hover .wb-focus-cta {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.wb-empty {
  padding: 22px 14px; text-align: center; color: var(--mute); font-size: 13px;
}

.wb-mini-list { list-style: none; margin: 0; padding: 2px 0; }
.wb-mini-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.wb-mini-list li:last-child { border-bottom: none; }
.wb-mini-list a.title {
  flex: 1; min-width: 0;
  font-weight: 520; font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wb-mini-list a.title:hover { color: #1d4ed8; }
.wb-feed { padding: 2px 0; }
.wb-feed-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.wb-feed-item:last-child { border-bottom: none; }
.wb-feed-meta {
  font-family: var(--mono); font-size: 10.5px; color: var(--mute); margin-bottom: 3px;
}
.wb-feed-body {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wb-note {
  margin: 0; padding: 8px 12px; font-size: 11px; color: var(--mute);
  border-top: 1px solid var(--line); background: #f8fafc;
}

@media (max-width: 1100px) {
  .wb-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-body { grid-template-columns: 1fr; padding: 14px 16px 0; }
  .wb-hero { padding: 16px 16px 12px; }
  .wb-section.is-focus { max-height: none; }
  .wb-scroll { max-height: 220px; }
  .wb-scroll.is-panel,
  .wb-scroll.is-side { max-height: 200px; }
}

@media (max-width: 980px) {
  .nav-tab { display: none; }
  .sidebar {
    position: sticky;
    top: 0;
    transform: none !important;
    width: 100%;
    height: auto;
    padding: 8px 10px;
    gap: 6px;
    box-shadow: none;
  }
  .brand { padding: 2px 6px; }
  .side-nav { display:flex; gap:4px; overflow-x:auto; padding-bottom:2px; scrollbar-width:none; }
  .side-nav::-webkit-scrollbar { display:none; }
  .side-nav .section, .side-foot { display:none; }
  .side-nav a { flex:0 0 auto; height:30px; padding:0 10px; font-size:12px; }
  .side-nav a .n { display:none; }
  .app.nav-open .workspace,
  .app.nav-pinned .workspace { margin-left: 0; }
  .detail { grid-template-columns: 1fr; }
  .detail-rail { border-left: none; border-top: 1px solid var(--line); }
  .task-table-head { display:none; }
  .task-table .list-row {
    grid-template-columns:minmax(0,1fr) auto;
    gap:6px 12px; padding:12px 16px; min-height:78px;
  }
  .task-table .code { display:block; grid-column:1; grid-row:1; font-size:10.5px; }
  .task-table .title { grid-column:1; grid-row:2; }
  .task-table .status-cell { grid-column:2; grid-row:1; justify-items:end; }
  .task-table .attention-cell { grid-column:1; grid-row:3; }
  .task-table .line-cell, .task-table .priority-cell, .task-table .owner-cell { display:none; }
  .task-table .due-cell { grid-column:2; grid-row:2 / span 2; align-self:center; }
  .form-grid, .grid-2 { grid-template-columns: 1fr; }
  .create-entry, .guided-create { padding:24px 18px 60px; }
  .create-paths { grid-template-columns:1fr; }
  .create-path.child-path { grid-column:auto; display:flex; align-items:flex-start; }
  .form-section { grid-template-columns:38px minmax(0,1fr); }
  .section-fields { grid-column:1/-1; }
  .guided-actions { flex-wrap:wrap; }
  .guided-actions > div { width:100%; }
  .page-bar { padding:14px 16px; align-items:flex-start; }
  .page-bar h1 { font-size:20px; }
  .inline-review { grid-template-columns:1fr; }
  .confirm-row { align-items:flex-start; flex-direction:column; }
  .score-hero { padding:18px; }
}

/* —— Value & performance workspace —— */
.page-bar > div:first-child { min-width: 0; }
.page-sub { margin: 4px 0 0; color: var(--mute); font-size: 12.5px; }
.text-link { color: var(--info); font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.form-wrap.is-wide { max-width: 980px; }
.form-note {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-muted); color: var(--mute); font-size: 12px;
}
.compact-form { margin-top: 14px; }

.value-list { padding: 18px 28px 56px; display: grid; gap: 8px; }
.value-row {
  display: grid; grid-template-columns: minmax(260px, 1.4fr) 90px minmax(180px, .8fr) 20px;
  gap: 18px; align-items: center; min-height: 72px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.72);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.value-row:hover { border-color: rgba(59,111,217,.28); box-shadow: 0 8px 22px rgba(31,41,55,.06); transform: translateY(-1px); }
.value-title { font-size: 14px; font-weight: 650; color: var(--ink); }
.value-meta { display: flex; gap: 10px; margin-top: 4px; color: var(--mute); font-size: 11.5px; }
.value-evidence { display: flex; flex-direction: column; gap: 4px; color: var(--mute); font-size: 12px; }
.row-arrow { color: var(--mute-2); font-size: 22px; }
.state-pill {
  display: inline-flex; align-items: center; justify-content: center; width: fit-content;
  min-height: 24px; padding: 3px 9px; border-radius: 999px;
  background: #edf1f6; color: var(--ink-2); font-size: 11px; font-weight: 650; white-space: nowrap;
}
.state-已立项, .state-已通过, .state-已验证 { background: #e7f5ef; color: #087252; }
.state-已否决, .state-已驳回 { background: #fbe9ee; color: #b61943; }
.state-暂缓, .state-待验收, .state-待审批 { background: #fff4dc; color: #9a6500; }
.evidence-ok, .evidence-missing {
  display: inline-flex; width: fit-content; padding: 2px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 650;
}
.evidence-ok { color: #087252; background: #e7f5ef; }
.evidence-missing { color: #a35f00; background: #fff3d6; }
.empty-state { padding: 80px 24px; text-align: center; color: var(--mute); }
.empty-state h2 { margin: 0 0 6px; color: var(--ink); font-size: 17px; }
.empty-state p { margin: 0 0 18px; }
.empty-state.compact { padding: 34px 20px; }

.value-detail, .project-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: calc(100vh - 80px);
}
.value-detail > main, .project-layout > main { padding: 24px 34px 72px; min-width: 0; }
.process-rail {
  padding: 24px 22px; border-left: 1px solid var(--line); background: #f0f3f7;
}
.process-rail h3 { margin: 0 0 14px; font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.process-rail h3:not(:first-child) { margin-top: 28px; }
.process-rail ol, .evidence-check { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.process-rail ol li, .evidence-check li { position: relative; padding: 9px 10px 9px 28px; color: var(--mute); font-size: 12.5px; }
.process-rail ol li::before, .evidence-check li::before {
  content: ""; position: absolute; left: 8px; top: 14px; width: 8px; height: 8px;
  border: 1.5px solid #a8b2c1; border-radius: 50%; background: transparent;
}
.process-rail ol li.done, .evidence-check li.done { color: var(--ink-2); font-weight: 600; }
.process-rail ol li.done::before, .evidence-check li.done::before { background: var(--ok); border-color: var(--ok); }
.process-rail dl { display: grid; grid-template-columns: 78px 1fr; gap: 9px 8px; margin: 0; font-size: 12.5px; }
.process-rail dt { color: var(--mute); }.process-rail dd { margin: 0; color: var(--ink-2); }
.value-card {
  margin-bottom: 14px; padding: 18px 20px 20px; border: 1px solid var(--line);
  border-radius: 14px; background: rgba(255,255,255,.82); box-shadow: 0 1px 1px rgba(31,41,55,.02);
}
.value-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.value-card-head > div { display: flex; align-items: center; gap: 9px; }
.value-card-head h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.step-no { font: 500 10px/1 var(--mono); color: var(--signal); }
.long-copy { margin: 0 0 18px; white-space: pre-wrap; color: var(--ink-2); line-height: 1.65; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact-grid > div { padding: 10px 12px; border-radius: 8px; background: var(--bg-muted); }
.fact-grid span { display: block; margin-bottom: 3px; color: var(--mute); font-size: 10.5px; }
.fact-grid strong { display: block; color: var(--ink-2); font-size: 12.5px; font-weight: 560; white-space: pre-wrap; }

.portfolio-grid { padding: 20px 28px 60px; display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 12px; }
.project-card {
  display: flex; flex-direction: column; min-height: 220px; padding: 17px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.8);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.project-card:hover { transform: translateY(-2px); border-color: rgba(59,111,217,.26); box-shadow: 0 10px 28px rgba(31,41,55,.07); }
.project-top, .benefit-head, .milestone-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-card h2 { margin: 14px 0 7px; font-size: 16px; line-height: 1.3; }
.project-goal { margin: 0 0 18px; color: var(--mute); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: auto; }
.project-stats > div { padding: 8px; border-radius: 8px; background: var(--bg-muted); }
.project-stats span { display: block; color: var(--mute); font-size: 9.5px; }
.project-stats strong { display: block; margin-top: 2px; font-size: 11.5px; }
.legacy-note { margin-top: 10px; color: var(--warn); font-size: 10.5px; }
.migration-banner { display: flex; gap: 12px; margin-bottom: 14px; padding: 11px 14px; border: 1px solid #ead8b3; border-radius: 9px; background: #fff8e9; color: #76521b; font-size: 12px; }
.milestone-card, .benefit-card { padding: 14px 0; border-top: 1px solid var(--line); }
.milestone-card:first-of-type, .benefit-card:first-of-type { border-top: none; padding-top: 0; }
.milestone-head > div { display: flex; align-items: center; gap: 8px; }.milestone-head h3, .benefit-card h3 { margin: 0; font-size: 13.5px; }
.criteria { margin: 10px 0; color: var(--ink-2); }.criteria span { margin-right: 8px; color: var(--mute); font-size: 10.5px; }
.baseline-row { display: flex; flex-wrap: wrap; gap: 10px; color: var(--mute); font: 11px var(--mono); }
.decision-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--bg-muted); }
.decision-row p { margin: 3px 0 0; color: var(--mute); font-size: 11.5px; }.decision-row form { display: flex; align-items: center; gap: 6px; }.decision-row input { width: 170px; }
.action-drawer { margin-top: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfc; }
.action-drawer summary { padding: 9px 12px; color: var(--info); font-weight: 600; cursor: pointer; }
.drawer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 12px 12px; }
.drawer-grid form { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.drawer-grid h4 { margin: 0 0 8px; font-size: 12px; }
.benefit-head > div { display: flex; align-items: baseline; gap: 8px; }.benefit-head span { color: var(--mute); font-size: 11px; }
.benefit-card > p { color: var(--ink-2); white-space: pre-wrap; }
.inline-action { display: flex; gap: 8px; }.inline-action input { flex: 1; }
.verified-line { padding: 8px 10px; border-radius: 7px; background: #e7f5ef; color: #087252; font-size: 12px; }
.contribution-list { display: grid; gap: 8px; margin-top: 14px; }.contribution-list > div { display: grid; grid-template-columns: auto 100px 1fr; gap: 9px; align-items: center; padding: 8px 10px; background: var(--bg-muted); border-radius: 8px; }.contribution-list p { margin: 0; color: var(--mute); }
.drawer-form { padding: 12px; }.review-panel { margin-top:18px; }.inline-review { display:grid; grid-template-columns:140px 1fr auto; gap:12px; align-items:end; padding:16px 20px; }.inline-review label { margin:0; }.confirm-row { display:flex; align-items:center; gap:12px; padding:0 20px 18px; }.confirm-row span { color:var(--mute); font-size:12px; }button:disabled { opacity:.45; cursor:not-allowed; }

.performance-wrap { padding: 22px 28px 64px; }
.score-hero { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: center; padding: 20px 22px; border-radius: 16px; background: #17283d; color: #fff; }
.score-hero span { display: block; color: #aab8c9; font-size: 11px; }.score-hero strong { font-size: 38px; line-height: 1.1; letter-spacing: -.04em; }.score-hero small { margin-left: 7px; color: #aab8c9; }.score-hero p { margin: 0; color: #d5dde6; max-width: 760px; }
.process-hero-copy { min-width:0; }.process-hero-copy b { color:#fff; }.confidence-meter { height:7px; margin:12px 0 7px; overflow:hidden; border-radius:999px; background:#33465d; }.confidence-meter span { display:block; height:100%; border-radius:inherit; background:#f4a340; }.process-hero-copy > small { margin:0; color:#aab8c9; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.metric-card { min-height: 260px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.metric-card header { display: flex; justify-content: space-between; gap: 10px; color: var(--mute); font-size: 11px; }.metric-card header strong { color: var(--ink); font-size: 19px; }.metric-card header small { color: var(--mute); font-size: 10px; }
.metric-card h2 { margin: 24px 0 0; font-size: 28px; letter-spacing: -.04em; }.metric-card > p { margin: 1px 0 14px; color: var(--mute); font-size: 11.5px; }
.metric-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }.metric-card li { padding-left: 16px; position: relative; color: var(--mute); font-size: 11.5px; }.metric-card li::before { content:""; position:absolute; left:0; top:6px; width:7px; height:7px; border:1px solid #aab3c1; border-radius:50%; }.metric-card li.ok::before { background:var(--ok); border-color:var(--ok); }.metric-card a { display: inline-block; margin-top: 16px; color: var(--info); font-size: 11.5px; font-weight: 600; }.metric-card.is-manual { background: #f4f6f9; }
.gap-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }.section-title { display:flex; align-items:center; justify-content:space-between; padding:15px 17px; border-bottom:1px solid var(--line); }.section-title h2 { margin:0; font-size:14px; }.section-title p { margin:2px 0 0; color:var(--mute); font-size:11px; }.section-title > strong { font-size:20px; }
.gap-row { display:grid; grid-template-columns:80px minmax(0,1fr) auto; gap:14px; align-items:center; padding:12px 17px; border-bottom:1px solid var(--line); }.gap-row:last-child { border-bottom:none; }.gap-row:hover { background:var(--bg-muted); }.gap-kind { color:var(--danger); font-size:11px; font-weight:650; }.gap-row p { margin:2px 0 0; color:var(--mute); font-size:11.5px; }.gap-row > span:last-child { color:var(--info); font-size:11px; }
.page-kicker { margin: 0 0 5px; color: var(--signal); font: 500 11px/1.2 var(--mono); letter-spacing: .04em; }
.team-performance, .approval-page { padding: 22px 28px 60px; }
.team-summary, .approval-summary { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.team-summary article, .approval-summary article { padding:16px 17px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.team-summary span, .approval-summary span { display:block; color:var(--mute); font-size:11px; }
.team-summary strong, .approval-summary strong { display:block; margin:5px 0 3px; font-size:28px; letter-spacing:-.04em; }
.team-summary small, .approval-summary small { color:var(--mute); font-size:10.5px; }
.team-summary .danger strong { color:var(--danger); }.team-summary .warn strong { color:var(--warn); }
.data-audit-alert { display:grid; gap:5px; margin:0 0 14px; padding:13px 16px; border:1px solid #edc877; border-radius:11px; background:#fff8e7; color:#70480a; }
.data-audit-alert strong { font-size:13px; }.data-audit-alert span { font-size:11.5px; line-height:1.55; }
.score-blocked { color:var(--warn); font-size:12px; }
.period-filter { margin:0; }.period-filter label { display:grid; gap:4px; margin:0; color:var(--mute); font-size:10px; }.period-filter select { min-width:210px; height:38px; padding:0 34px 0 11px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); font-size:11.5px; }
.model-audit-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; margin:0 0 14px; overflow:hidden; border:1px solid var(--line); border-radius:11px; background:var(--line); }.model-audit-strip span { display:grid; gap:3px; padding:10px 13px; background:#f8fafc; color:var(--ink-2); font-size:11px; }.model-audit-strip b { color:var(--mute); font-size:9.5px; font-weight:550; }
.team-live-panel, .team-score-panel, .approval-panel { margin-top:14px; border:1px solid var(--line); border-radius:14px; background:#fff; overflow:hidden; }
.team-section-head, .approval-panel-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 18px; border-bottom:1px solid var(--line); }
.team-section-head h2, .approval-panel-head h2 { margin:0; font-size:15px; }.team-section-head p, .approval-panel-head p { margin:3px 0 0; color:var(--mute); font-size:11.5px; }.team-section-head > span { color:var(--mute); font:11px var(--mono); }
.team-live-head, .team-live-row { display:grid; grid-template-columns:minmax(170px,1.5fr) repeat(7,minmax(68px,1fr)); gap:10px; align-items:center; }
.team-live-head { padding:10px 15px; color:var(--mute); font-size:10.5px; background:var(--bg-muted); }
.team-live-row { min-height:66px; padding:10px 15px; border-top:1px solid var(--line); }.team-live-row:hover { background:#f8fafd; }.team-live-row > span, .team-live-row > strong { font-size:12px; }
.team-person { display:flex; align-items:center; gap:9px; }.team-person div { display:grid; gap:2px; }.team-person small { color:var(--mute); font-size:10px; }
.readiness { justify-self:start; padding:4px 8px; border-radius:999px; background:#fff4dd; color:#8c5b00; font-size:10.5px!important; }.readiness-已冻结, .readiness-可确认 { background:#e5f5ee; color:#087252; }
.team-score-panel .team-table-head { padding-top:11px; }.team-table-head, .team-row { display:grid; grid-template-columns:minmax(150px,1.4fr) repeat(5,minmax(90px,1fr)); gap:12px; align-items:center; }.team-table-head { padding:0 14px 9px; color:var(--mute); font-size:10.5px; }.team-row { min-height:58px; padding:10px 14px; border-top:1px solid var(--line); background:#fff; }.team-row:hover { background:var(--bg-muted); }.team-row > div { display:flex; align-items:center; gap:8px; }.team-note { margin:0; padding:13px 16px; border-top:1px solid var(--line); color:var(--mute); font-size:11px; }
.team-row > span small, .team-row > strong small { display:block; margin-top:2px; color:var(--mute); font-size:9.5px; font-weight:500; }.process-score { font-size:20px; }.process-健康 { color:var(--ok); }.process-需关注 { color:var(--warn); }.process-高风险 { color:var(--danger); }
.next-action-panel { margin-top:14px; border:1px solid var(--line); border-radius:14px; background:#fff; overflow:hidden; }.next-action-grid { display:grid; grid-template-columns:repeat(3,1fr); }.next-action-grid a { display:grid; gap:6px; padding:15px 17px; border-right:1px solid var(--line); }.next-action-grid a:last-child { border-right:0; }.next-action-grid strong { font-size:12.5px; }.next-action-grid span { color:var(--mute); font-size:11px; line-height:1.5; }.next-action-grid em { color:var(--info); font-size:11px; font-style:normal; font-weight:650; }
.team-empty { padding:28px; color:var(--mute); text-align:center; }
.approval-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
.approval-list { display:grid; }.approval-row { display:grid; grid-template-columns:90px minmax(0,1fr) 100px 82px; gap:14px; align-items:center; padding:15px 18px; border-top:1px solid var(--line); }.approval-row:first-child { border-top:0; }.approval-row:hover { background:var(--bg-muted); }
.approval-kind { color:var(--signal); font-size:11px; font-weight:650; }.approval-main { display:grid; gap:3px; }.approval-main > span, .approval-main p { margin:0; color:var(--mute); font-size:11px; }.approval-main p { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.approval-row time { color:var(--mute); font:10.5px var(--mono); }.approval-cta { color:var(--info); font-size:11.5px; font-weight:650; }
.approval-empty { padding:44px 24px; text-align:center; }.approval-empty strong { font-size:17px; }.approval-empty > p { max-width:680px; margin:8px auto 22px; color:var(--mute); line-height:1.65; }.approval-flow { display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; }.approval-flow span { padding:7px 10px; border:1px solid var(--line); border-radius:8px; background:var(--bg-muted); font-size:11px; }.approval-flow i { width:22px; height:1px; background:var(--line); }
.criteria-repair { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:end; margin:10px 0; padding:12px; border:1px solid #ead8b3; border-radius:9px; background:#fff8e9; }.criteria-repair label { margin:0; color:#76521b; font-size:11px; }.criteria-repair textarea { margin-top:5px; background:#fff; }
.focus-target { scroll-margin-block:120px; }
.focus-pulse { position:relative; z-index:2; outline:3px solid rgba(233,121,36,.48); outline-offset:3px; animation:focus-pulse .72s ease-in-out 3; }
.focus-hint { position:absolute; top:-15px; right:14px; z-index:3; padding:4px 9px; border-radius:999px; background:#d86b19; color:#fff; font-size:11px; font-weight:650; box-shadow:0 4px 12px rgba(216,107,25,.24); pointer-events:none; }
@keyframes focus-pulse {
  0%, 100% { outline-color:rgba(233,121,36,.16); box-shadow:0 0 0 0 rgba(233,121,36,0); }
  38% { outline-color:rgba(233,121,36,.9); box-shadow:0 0 0 7px rgba(233,121,36,.22), 0 10px 28px rgba(233,121,36,.14); border-color:#e97924; }
}
@media (prefers-reduced-motion: reduce) {
  .focus-pulse { animation:none; box-shadow:0 0 0 5px rgba(233,121,36,.22); border-color:#e97924; }
}
.gap-workbench { padding:22px 28px 60px; }.gap-overview { display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; }.gap-overview article, .gap-overview a { min-width:150px; flex:1; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:#fff; }.gap-overview span { display:block; color:var(--mute); font-size:11px; }.gap-overview strong { display:block; margin:4px 0 2px; font-size:25px; }.gap-overview small { color:var(--mute); font-size:10px; }
.governance-banner { display:grid; gap:12px; margin-bottom:14px; padding:16px; border:1px solid #d9b563; border-radius:13px; background:#fff8e8; }.governance-banner > div:first-child { display:grid; gap:4px; color:#70480a; }.governance-banner > div:first-child strong { font-size:14px; }.governance-banner > div:first-child span { font-size:11.5px; line-height:1.55; }.governance-phases { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }.governance-phases article { display:grid; gap:4px; padding:11px 12px; border:1px solid rgba(112,72,10,.14); border-radius:9px; background:rgba(255,255,255,.68); }.governance-phases b { font-size:11.5px; }.governance-phases span, .governance-phases time { color:#795b28; font-size:10.5px; }.governance-phases time { font-family:var(--mono); }
.gap-filters { display:flex; align-items:end; gap:10px; margin:14px 0; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:#fff; }.gap-filters label { min-width:180px; margin:0; }.gap-filters .btn-secondary { margin-left:auto; }
.gap-work-list { border:1px solid var(--line); border-radius:14px; background:#fff; overflow:hidden; }.gap-work-head { padding:15px 17px; border-bottom:1px solid var(--line); }.gap-work-head h2 { margin:0; font-size:15px; }.gap-work-head p { margin:3px 0 0; color:var(--mute); font-size:11.5px; }
.gap-work-row { display:grid; grid-template-columns:92px minmax(160px,1.1fr) minmax(210px,1.4fr) minmax(220px,1.4fr) 52px; gap:14px; align-items:center; padding:14px 17px; border-top:1px solid var(--line); }.gap-work-row:first-of-type { border-top:0; }.gap-work-row:hover { background:var(--bg-muted); }.gap-kind-badge { justify-self:start; padding:5px 8px; border-radius:999px; background:#fff1e9; color:#a14e1b; font-size:10.5px; font-weight:650; }.kind-待主管终审, .kind-复盘审核 { background:#e8efff; color:#315fa8; }.gap-project, .gap-reason, .gap-action { min-width:0; }.gap-project { display:grid; gap:3px; }.gap-project span, .gap-reason > span, .gap-action > span { color:var(--mute); font-size:10px; }.gap-reason p, .gap-action p { margin:3px 0 0; color:var(--ink-2); font-size:11.5px; line-height:1.45; }.gap-handle { color:var(--info); font-size:11.5px; }
.gap-pagination { display:flex; align-items:center; justify-content:center; gap:14px; padding:14px; border-top:1px solid var(--line); }.gap-pagination span { color:var(--mute); font-size:11px; }
.scope-tabs { display:flex; gap:8px; padding:0 28px 14px; border-bottom:1px solid var(--line); }
.scope-tabs a { padding:8px 12px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--mute); font-size:12px; }
.scope-tabs a.active { border-color:#9db6e8; background:#edf3ff; color:#285aa8; font-weight:650; }
.scope-tabs strong { margin-left:5px; font:600 11px var(--mono); }
.access-badge { padding:4px 7px; border-radius:999px; background:#eef2f7; color:#536174; font-size:10px; font-weight:650; white-space:nowrap; }
.access-协作参与 { background:#fff1e7; color:#a25018; }.access-代理执行 { background:#e9f0ff; color:#315fa8; }

@media (max-width: 1250px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .drawer-grid { grid-template-columns: 1fr; }
  .team-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .team-live-head, .team-live-row { grid-template-columns:minmax(150px,1.4fr) repeat(4,minmax(64px,1fr)); }
  .team-live-head > :nth-child(6), .team-live-row > :nth-child(6), .team-live-head > :nth-child(7), .team-live-row > :nth-child(7), .team-live-head > :nth-child(8), .team-live-row > :nth-child(8) { display:none; }
}
@media (max-width: 980px) {
  .issue-work-head { align-items:flex-start; }.issue-step { grid-template-columns:28px minmax(0,1fr); }.issue-step-action { grid-column:2; justify-self:start; max-width:none; }.issue-manual-close form { grid-template-columns:1fr; }
  .value-detail, .project-layout { grid-template-columns: 1fr; }
  .process-rail { border-left: 0; border-top: 1px solid var(--line); }
  .value-detail > main, .project-layout > main { padding: 18px 16px 44px; }
  .portfolio-grid { grid-template-columns: 1fr; padding: 16px; }
  .value-list { padding: 14px 16px; }
  .value-row { grid-template-columns: 1fr auto; }.value-evidence, .row-arrow { display:none; }
  .fact-grid { grid-template-columns: 1fr; }
  .score-hero { grid-template-columns: 1fr; }.metric-grid { grid-template-columns: 1fr; }
  .next-action-grid { grid-template-columns:1fr; }.next-action-grid a { border-right:0; border-bottom:1px solid var(--line); }
  .performance-wrap, .team-performance { padding: 16px; }
  .team-table-head { display:none; }.team-row { grid-template-columns: 1.4fr repeat(2,1fr); }.team-row > span:nth-of-type(3), .team-row > span:nth-of-type(4) { display:none; }
  .team-summary, .approval-summary { grid-template-columns:1fr 1fr; }
  .wb-metrics.is-five { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .governance-phases { grid-template-columns:1fr; }
  .model-audit-strip { grid-template-columns:1fr 1fr; }
  .period-filter select { min-width:170px; }
  .team-live-head { display:none; }.team-live-row { grid-template-columns:1.5fr repeat(2,1fr); }.team-live-row > :nth-child(n+4) { display:none; }
  .approval-row { grid-template-columns:76px minmax(0,1fr); }.approval-row time, .approval-cta { display:none; }
  .approval-page { padding:16px; }
  .gap-workbench { padding:16px; }.gap-filters { align-items:stretch; flex-direction:column; }.gap-filters label { min-width:0; }.gap-filters .btn-secondary { margin-left:0; }.gap-work-row { grid-template-columns:88px minmax(0,1fr); }.gap-reason, .gap-action, .gap-handle { display:none; }.criteria-repair { grid-template-columns:1fr; }
}
.correction-declaration { display:grid; gap:12px; padding:18px; border:1px solid #f0b35d; border-radius:14px; background:#fff9ef; }
.correction-declaration h2 { margin:0; font-size:15px; color:#8b4b0f; }
.correction-declaration p { margin:0; color:var(--mute); line-height:1.6; }
.governance-note { display:flex; gap:14px; align-items:flex-start; margin:0 0 18px; padding:14px 16px; border-left:4px solid #e58a21; background:#fff8ed; border-radius:8px; }
.governance-note strong { color:#914d0d; white-space:nowrap; }
.governance-note span { color:var(--ink-2); line-height:1.55; }
.historical-correction { max-width:980px; }
.queue-summary { display:flex; justify-content:space-between; gap:18px; align-items:center; padding:12px 28px; color:var(--ink-2); background:#fff8ed; border-top:1px solid #f4d5a8; border-bottom:1px solid #f4d5a8; }
.queue-summary span { color:var(--mute); font-size:12px; }
.pagination { display:flex; justify-content:center; align-items:center; gap:16px; padding:22px; }
.gap-subhead { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 17px; border-top:1px solid var(--line); background:var(--bg-muted); scroll-margin-top:120px; }
.gap-subhead strong { font-size:12px; color:var(--ink-2); }.gap-subhead span { font-size:10.5px; color:var(--mute); }
