@import url("../v2-layout.css?v=20261013-list-end1");

:root {
  color-scheme: light;
  /* V2 代表页局部候选值：遵循“石墨秩序 + 冷灰表面 + 雾蓝语义”，尚未提升为正式 Token。 */
  --v2-canvas: var(--v2-surface-canvas);
  --v2-surface: oklch(0.988 0.004 245);
  --v2-surface-muted: oklch(0.972 0.006 245);
  --v2-agent-surface: oklch(0.95 0.022 242);
  --v2-line: oklch(0.885 0.009 245);
  --v2-line-strong: oklch(0.75 0.014 245);
  --v2-text: oklch(0.22 0.012 250);
  --v2-text-secondary: oklch(0.47 0.024 250);
  --v2-text-tertiary: oklch(0.61 0.02 250);
  --v2-agent: oklch(0.48 0.085 242);
  --v2-agent-strong: oklch(0.37 0.07 242);
  --v2-warning-surface: oklch(0.965 0.045 85);
  --v2-warning-text: oklch(0.47 0.09 65);
  --v2-danger: oklch(0.5 0.14 28);
  --v2-success: oklch(0.49 0.09 155);
  --page-bg: var(--v2-canvas);
  --surface: var(--v2-surface);
  --surface-muted: var(--v2-surface-muted);
  --object-hover: oklch(0.98 0.005 245);
  --surface-blue: var(--v2-agent-surface);
  --line: var(--v2-line);
  --line-strong: var(--v2-line-strong);
  --text: var(--v2-text);
  --text-secondary: var(--v2-text-secondary);
  --text-tertiary: var(--v2-text-tertiary);
  --blue: var(--v2-agent);
  --blue-strong: var(--v2-agent-strong);
  --danger: var(--v2-danger);
  --success: var(--v2-success);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --shadow-float: 0 16px 40px oklch(0.22 0.018 250 / 0.14);
  font-family: Inter, "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--page-bg); }
body { margin: 0; min-width: 320px; background: var(--page-bg); color: var(--text); font: 14px/1.55 Inter, "Noto Sans SC", "PingFang SC", system-ui, sans-serif; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon, .inline-action__icon { width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 20; height: 64px; background: var(--page-bg); }
.site-header.is-scrolled { box-shadow: inset 0 -1px var(--line); }
.site-header__inner { width: min(var(--v2-layout-shell), calc(100% - var(--v2-layout-gutter))); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 18px; font-weight: 700; text-decoration: none; }
.brand__mark { width: 20px; height: 20px; flex: 0 0 auto; }
.main-nav { display: flex; align-self: stretch; align-items: center; gap: 8px; }
.main-nav__link { min-height: 40px; padding: 0 14px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; color: var(--text-secondary); font-weight: 600; text-decoration: none; }
.main-nav__link:hover { background: var(--surface-muted); color: var(--text); }
.main-nav__link.is-current { background: var(--v2-nav-selected); color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.agent-identity { position: relative; }
.agent-identity__trigger { min-height: 40px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: transparent; display: inline-flex; align-items: center; gap: 7px; font-weight: 400; cursor: pointer; }
.agent-identity__trigger:hover, .agent-identity__trigger[aria-expanded="true"] { background: var(--v2-nav-selected); }
.agent-identity__status { width: 16px; height: 16px; display: grid; place-items: center; }
.agent-identity__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.agent-identity__pause { display: none; color: var(--danger); }
.agent-identity__status.is-paused .agent-identity__dot { display: none; }
.agent-identity__status.is-paused .agent-identity__pause { display: block; }
.agent-identity__status.is-off .agent-identity__dot { background: transparent; border: 1.5px solid var(--text-tertiary); }
.agent-identity__chevron { color: var(--text-tertiary); transition: transform 140ms ease; }
.agent-identity__trigger[aria-expanded="true"] .agent-identity__chevron { transform: rotate(180deg); }
.agent-identity__panel { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: 320px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-float); }
.agent-identity__section-label { margin: 0; padding: 10px 12px 7px; color: var(--text-tertiary); font-size: 11px; font-weight: 650; }
.agent-identity__current, .agent-identity__option { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); display: grid; grid-template-columns: 1fr auto; text-align: left; text-decoration: none; }
.agent-identity__current { position: relative; background: transparent; }
.agent-identity__current:hover, .agent-identity__option:hover { background: var(--surface-muted); }
.agent-identity__current strong, .agent-identity__option strong { font-size: 13px; }
.agent-identity__current .agent-identity__current-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.agent-identity__current-check { position: absolute; top: 50%; right: 12px; width: 16px; height: 16px; color: var(--text); transform: translateY(-50%); }
.agent-identity__current small, .agent-identity__option small { grid-column: 1 / -1; color: var(--text-secondary); font-size: 11px; }
.agent-identity__divider { height: 1px; margin: 8px 12px; background: color-mix(in oklch, var(--line) 54%, transparent); }
.agent-control-row { padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.agent-control-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--text); transition: background 140ms ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 19px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform 140ms ease; }
.agent-control-row input:not(:checked) + .switch { background: var(--line-strong); }
.agent-control-row input:not(:checked) + .switch::after { transform: translateX(-16px); }
.agent-control-row input:focus-visible + .switch { outline: 2px solid var(--blue); outline-offset: 3px; }
.agent-identity__hint { margin: 4px 12px 10px; color: var(--text-tertiary); font-size: 11px; }
.agent-identity__link { width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); background: transparent; display: flex; align-items: center; justify-content: space-between; color: var(--text); cursor: pointer; }
.agent-identity__link:hover { background: var(--surface-muted); }
.account-trigger { width: 40px; height: 40px; border: 0; border-radius: 50%; background: oklch(0.925 0.009 245); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; }
.mobile-nav-toggle { display: none; }

.page { width: min(var(--v2-layout-index), calc(100% - var(--v2-layout-gutter))); margin: 0 auto; padding: 52px 0 72px; }
.eyebrow { margin: 0 0 6px; color: var(--text-tertiary); font-size: 12px; font-weight: 650; letter-spacing: 0.04em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { width: fit-content; margin: 0; max-width: 720px; font-size: 30px; font-weight: 680; line-height: 1.24; letter-spacing: -0.022em; }
h2 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
h3 { margin: 0; font-size: 16px; line-height: 1.4; }

.agent-overview { position: relative; min-height: 88px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.agent-overview[hidden], .agent-flow[hidden], .group-tabs-row[hidden] { display: none; }
.agent-overview__primary { max-width: 688px; }
.agent-overview__support { width: fit-content; max-width: 100%; margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.agent-overview__support > p { margin: 0; color: var(--text-secondary); font-size: 14px; }
.agent-overview__support strong { color: var(--agent); font-weight: 650; }
.summary-link { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.summary-link:hover { text-decoration-color: currentColor; }
.feedback-undo { min-height: 40px; margin-bottom: 12px; padding: 8px 12px; border-radius: 8px; background: var(--surface-soft); color: var(--text-secondary); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.feedback-undo button { padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--agent); cursor: pointer; }
.request-feedback { margin: 8px 0 0; color: var(--text-secondary); font-size: 12px; }
.request-feedback--error { color: var(--danger); }
.agent-overview__actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.agent-flow {
  --agent-flow-area-width: 400px;
  --agent-flow-area-height: 168px;
  --agent-flow-area-top: -64px;
  --agent-flow-area-right: 32px;
  position: absolute;
  top: var(--agent-flow-area-top);
  right: var(--agent-flow-area-right);
  width: var(--agent-flow-area-width);
  height: var(--agent-flow-area-height);
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  transition: opacity 180ms cubic-bezier(.22,1,.36,1);
}
.agent-flow canvas { display: block; width: 100%; height: 100%; }
.agent-overview.is-paused .agent-flow { opacity: .34; }

.motion-tuner { position: fixed; z-index: 80; right: 16px; bottom: 16px; width: min(368px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 1px solid var(--line); border-radius: 12px; background: color-mix(in oklch, var(--surface) 96%, transparent); box-shadow: var(--shadow-float); color: var(--text); overflow: hidden; backdrop-filter: blur(18px); }
.motion-tuner__heading { min-height: 56px; padding: 10px 12px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: grab; touch-action: none; user-select: none; }
.motion-tuner.is-dragging .motion-tuner__heading { cursor: grabbing; }
.motion-tuner__heading strong, .motion-tuner__heading small { display: block; }
.motion-tuner__heading strong { font-size: 14px; }
.motion-tuner__heading small { margin-top: 1px; color: var(--text-tertiary); font-size: 11px; }
.motion-tuner button { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text-secondary); cursor: pointer; }
.motion-tuner__heading-actions { display: flex; align-items: center; gap: 6px; }
.motion-tuner button:hover { border-color: var(--line-strong); color: var(--text); }
.motion-tuner__body { max-height: calc(100vh - 104px); padding: 0 16px 16px; overflow: auto; }
.motion-tuner.is-collapsed { width: 220px; }
.motion-tuner.is-collapsed .motion-tuner__body { display: none; }
.motion-tuner h3 { margin: 12px 0 4px; color: var(--text-tertiary); font-size: 11px; font-weight: 650; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.motion-tuner h3 span { color: var(--blue-strong); font-weight: 560; }
.motion-tuner__row { min-height: 34px; display: grid; grid-template-columns: 116px minmax(80px, 1fr) 62px; align-items: center; gap: 8px; font-size: 11px; }
.motion-tuner__row input { width: 100%; accent-color: var(--blue-strong); }
.motion-tuner__row output { color: var(--text-secondary); font-variant-numeric: tabular-nums; text-align: right; }
.motion-tuner__actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.motion-tuner__status { min-height: 18px; margin: 8px 0 0; color: var(--text-tertiary); font-size: 11px; text-align: center; }
.button { min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; font-weight: 650; text-decoration: none; cursor: pointer; }
.button--primary { background: var(--text); color: oklch(0.985 0.004 245); }
.button--primary:hover { background: oklch(0.31 0.015 250); }
.button--secondary { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.button--secondary:hover { border-color: oklch(0.61 0.018 245); background: var(--surface-muted); }
.button[disabled] { cursor: not-allowed; opacity: 0.48; }
.inline-action { min-height: 32px; padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--blue-strong); display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 620; cursor: pointer; }
.inline-action__mode { color: var(--text-secondary); font-weight: 400; }
.inline-action__mode::before { margin-right: 4px; color: var(--text-tertiary); content: "·"; }
.inline-action__icon { width: 14px; height: 14px; color: var(--text-tertiary); transition: color 140ms ease; }
.inline-action:hover { background: oklch(0.94 0.009 245); color: var(--text); }
.inline-action:hover .inline-action__icon { color: var(--text); }
.inline-action:hover .inline-action__icon--chevron { transform: translateX(1px); }
.status-badge { display: inline-flex; min-height: 24px; padding: 2px 8px; border-radius: 6px; align-items: center; background: oklch(0.93 0.035 155); color: var(--success); font-size: 12px; font-weight: 650; }
.status-badge--paused { background: var(--surface-muted); color: var(--text-secondary); }
.mode-switch { margin-top: 12px; display: grid; gap: 8px; }
.mode-switch__option { min-height: 70px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-secondary); display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
.mode-switch__option:hover { border-color: oklch(0.72 0.035 250); background: oklch(0.977 0.004 248); }
.mode-switch__option:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.mode-switch__indicator { width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid var(--text-tertiary); border-radius: 50%; display: grid; place-items: center; }
.mode-switch__indicator::after { width: 6px; height: 6px; border-radius: 50%; background: var(--surface); content: ""; opacity: 0; }
.mode-switch__copy { min-width: 0; flex: 1; }
.mode-switch__copy strong, .mode-switch__copy small { display: block; }
.mode-switch__copy strong { color: var(--text); font-size: 13px; font-weight: 620; }
.mode-switch__copy small { margin-top: 3px; color: var(--text-tertiary); font-size: 12px; font-weight: 400; line-height: 1.55; }
.mode-switch__option.is-active { border-color: oklch(0.69 0.07 250); background: var(--surface-blue); }
.mode-switch__option.is-active .mode-switch__indicator { border-color: var(--blue-strong); background: var(--blue-strong); }
.mode-switch__option.is-active .mode-switch__indicator::after { opacity: 1; }
.execution-note { margin: 10px 0 0; color: var(--text-tertiary); font-size: 11px; }

.work-objects { margin-top: 4px; }
.decision-notice { width: 100%; min-height: 46px; padding: 0 15px; border: 1px solid color-mix(in oklch, var(--line) 58%, transparent); border-radius: 9px; background: color-mix(in oklch, var(--surface) 72%, transparent); color: var(--text); display: flex; align-items: center; gap: 9px; text-decoration: none; cursor: pointer; transition: border-color 180ms cubic-bezier(.22,1,.36,1), background-color 180ms cubic-bezier(.22,1,.36,1); }
.decision-notice[hidden] { display: none; }
.decision-notice:hover { border-color: var(--line); background: var(--surface); }
.decision-notice:focus-visible { outline: 2px solid var(--blue-strong); outline-offset: 2px; }
.decision-notice__dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: oklch(0.68 0.12 72); }
.decision-notice__copy { min-width: 0; display: inline-flex; align-items: baseline; }
.decision-notice__copy strong { font-size: 13px; font-weight: 620; }
.decision-notice__action { min-height: 30px; margin-left: auto; padding: 0 1px 0 10px; color: var(--blue-strong); display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.decision-notice:hover .decision-notice__action { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.decision-notice__action .icon { width: 14px; height: 14px; transition: transform 160ms cubic-bezier(.22,1,.36,1); }
.decision-notice:hover .decision-notice__action .icon { transform: translateX(2px); }
.group-tabs-row { margin-top: 20px; display: flex; align-items: center; gap: 16px; }
.group-tabs { min-width: 0; flex: 1 1 auto; display: flex; gap: 8px; overflow-x: auto; }
.group-tabs__tab { min-height: 40px; padding: 0 14px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--text-secondary); white-space: nowrap; cursor: pointer; }
.group-tabs__tab:hover { background: oklch(0.948 0.006 245); color: var(--text); }
.group-tabs__tab .tab-count { margin-left: 5px; font-size: 12px; font-weight: 450; font-variant-numeric: tabular-nums; }
.group-tabs__tab .tab-count[hidden] { display: none; }
.group-tabs__tab .tab-count--total { color: var(--text-tertiary); }
.group-tabs__tab .tab-count--action { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--text); color: var(--surface); font-size: 11px; font-weight: 650; }
.group-tabs__tab.is-active { border-color: var(--line); background: var(--surface); color: var(--text); font-weight: 700; }
.group-tabs__tab.is-active .tab-count--total { color: var(--text-secondary); }
.group-tabs__tab.is-active .tab-count--action { background: var(--text); color: var(--surface); }
.work-guidance { margin: 12px 0 0; padding-left: 20px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.work-panel { padding-top: 18px; container: work-panel / inline-size; }
.batch-action { min-height: 34px; padding: 0 13px; border: 0; border-radius: 6px; background: transparent; color: color-mix(in oklch, var(--text-secondary) 72%, var(--text)); display: inline-flex; align-items: center; gap: 6px; font-weight: 540; white-space: nowrap; cursor: pointer; transition: background-color 160ms cubic-bezier(.22,1,.36,1), color 160ms cubic-bezier(.22,1,.36,1); }
.batch-action:hover { background: var(--surface-muted); color: var(--text); }
.batch-action:active { background: color-mix(in oklch, var(--surface-muted) 72%, var(--line)); }
.batch-action:disabled { cursor: wait; opacity: .62; }
.batch-action[hidden] { display: none; }
.batch-action-row { min-height: 34px; margin-top: 14px; display: flex; justify-content: center; }
.batch-action-row:has(.batch-action[hidden]) { display: none; }
.needs-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.object-item { padding: 22px 4px; border-bottom: 1px solid var(--line); }
.needs-item { position: relative; min-width: 0; min-height: 292px; padding: 20px; border-radius: var(--radius-md); background: var(--surface); display: flex; flex-direction: column; cursor: pointer; transition: background-color 180ms cubic-bezier(.22,1,.36,1), box-shadow 180ms cubic-bezier(.22,1,.36,1); }
.needs-item:hover { background: var(--object-hover); box-shadow: 0 6px 16px oklch(0.22 0.012 250 / 0.05); }
.needs-item:has(.object-item__title-link:focus-visible) { background: var(--object-hover); }
.needs-item--priority { background: var(--surface); }
.needs-item .object-item__top { flex-direction: column; gap: 7px; }
.needs-item .object-item__updated { padding-top: 0; }
.object-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.object-item__identity { min-width: 0; }
.object-item__identity p { margin: 5px 0 0; color: var(--text-tertiary); font-size: 12px; }
.needs-item .object-item__identity { width: 100%; }
.opportunity-context { margin-top: 3px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.opportunity-context p { margin: 0; color: oklch(0.64 0.014 250); }
.opportunity-context .object-item__updated { color: oklch(0.68 0.012 250); }
.object-item__title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.object-item__updated { flex: 0 0 auto; padding-top: 2px; color: var(--text-tertiary); font-size: 11px; white-space: nowrap; }
.object-item__status { flex: 0 0 auto; min-height: 26px; padding: 3px 9px; border-radius: 6px; background: oklch(0.925 0.009 245); color: var(--text-secondary); font-size: 12px; font-weight: 650; }
.object-item__status--attention { background: var(--v2-warning-surface); color: var(--v2-warning-text); }
.object-item__status--progress { background: var(--surface-blue); color: var(--blue-strong); }
.object-item__status--waiting { background: oklch(0.935 0.008 245); color: var(--text-secondary); }
.object-item__status--result { background: var(--surface-muted); color: var(--text-secondary); }
.object-item__status--error { background: oklch(0.95 0.028 24); color: var(--danger); }
.object-item__summary { width: 100%; margin: 14px 0 0; color: var(--text); }
.needs-item .object-item__summary { min-height: 92px; line-height: 1.65; }
.match-reason { display: inline; padding-bottom: 3px; color: var(--text); font-weight: 400; background-image: linear-gradient(to right, color-mix(in oklch, var(--line-strong) 72%, transparent) 0 4px, transparent 4px 9px); background-position: left bottom; background-size: 9px 1px; background-repeat: repeat-x; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.object-item__meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-tertiary); font-size: 12px; }
.object-item__meta span + span { position: relative; padding-left: 16px; }
.object-item__meta span + span::before { content: ""; position: absolute; top: 50%; left: 0; width: 1px; height: 11px; transform: translateY(-50%); background: var(--line); }
.needs-item .object-item__meta { color: var(--text-secondary); font-weight: 560; }
.needs-item .object-item__meta span + span::before { background: color-mix(in oklch, var(--line-strong) 72%, transparent); }
.object-item__terms { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.object-item__terms span { display: block; color: var(--text-tertiary); font-size: 11px; }
.object-item__terms strong { display: block; margin-top: 3px; font-size: 13px; }
.object-item__risk { margin: 12px 0 0; color: var(--danger); font-size: 12px; }
.object-item__actions { position: relative; z-index: 2; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.needs-item .object-item__actions { margin-top: auto; padding-top: 18px; }
.object-item__title-link { color: inherit; text-decoration: none; }
.object-item__title-link::after { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.object-item__title-link:focus-visible { outline: 0; }
.object-item__title-link:focus-visible::after { outline: 2px solid var(--blue-strong); outline-offset: 2px; }
.text-button { min-height: 34px; padding: 0; border: 0; background: transparent; color: var(--blue-strong); font-weight: 650; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-button--muted { color: var(--text-secondary); font-weight: 500; }
.progress-list { padding-block: 4px; border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.progress-item { padding: 20px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; color: inherit; text-decoration: none; }
.progress-item:hover { background: var(--object-hover); }
.counterpart-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 750; }
.counterpart-avatar--blue { background: #174ea6; color: oklch(0.985 0.004 245); }
.counterpart-avatar--red { background: #a50e0e; color: oklch(0.985 0.004 245); }
.counterpart-avatar--yellow { background: #e37400; color: oklch(0.985 0.004 245); }
.counterpart-avatar--green { background: #0d652d; color: oklch(0.985 0.004 245); }
.counterpart-avatar--logo { border: 1px solid oklch(0.91 0.01 245); background: oklch(0.98 0.006 245); }
.counterpart-avatar__image { width: 32px; height: 32px; object-fit: contain; }
.progress-item__body { min-width: 0; }
.progress-item__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.progress-item__title { color: var(--text); font-size: 16px; line-height: 1.4; font-weight: 700; }
.progress-item .object-item__status { min-height: 22px; padding: 1px 8px; line-height: 20px; font-weight: 400; }
.needs-item .object-item__status { min-height: 22px; padding: 1px 8px; line-height: 20px; font-weight: 400; }
.progress-item__summary { margin: 7px 0 0; color: var(--text); font-size: 13px; line-height: 1.55; }
.progress-item__company { color: var(--text-secondary); }
.progress-item__separator { color: var(--text-tertiary); }
.progress-item__match { color: var(--text-secondary); }
.conversation-preview { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-muted); display: grid; gap: 5px; }
.conversation-preview__line { min-width: 0; margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-preview__sender { color: var(--blue-strong); font-weight: 400; }
.empty-state { padding: 52px 20px; text-align: center; }
.empty-state h3 { font-size: 18px; }
.empty-state p { max-width: 440px; margin: 8px auto 0; color: var(--text-secondary); }
.work-objects--setup { min-height: min(620px, calc(100vh - 136px)); margin-top: 0; display: grid; place-items: center; }
.work-panel--setup { width: 100%; padding: 22px 0 70px; }
.setup-guide { width: min(520px, 100%); margin: 0 auto; text-align: center; }
.setup-guide__visual { width: 180px; height: 130px; margin: 0 auto 22px; }
.setup-guide__visual svg { width: 100%; height: 100%; overflow: visible; }
.setup-illustration__surface { fill: oklch(0.955 0.009 245); }
.setup-illustration__track, .setup-illustration__open, .setup-illustration__rail, .setup-illustration__orbit { fill: none; stroke: oklch(0.72 0.02 245); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 7; }
.setup-illustration__open { stroke: oklch(0.66 0.07 242); stroke-dasharray: 2 6; }
.setup-illustration__rail { stroke-dasharray: none; }
.setup-illustration__node, .setup-illustration__knob { fill: oklch(0.91 0.02 245); stroke: oklch(0.62 0.035 245); stroke-width: 2; }
.setup-illustration__node--accent, .setup-illustration__knob--accent { fill: oklch(0.87 0.06 238); stroke: oklch(0.54 0.09 242); }
.setup-illustration__spark { fill: oklch(0.78 0.11 82); }
.setup-illustration__agent path { fill: oklch(0.38 0.065 242); }
.setup-illustration__agent circle, .setup-illustration__agent rect { fill: oklch(0.98 0.005 245); }
.setup-guide__eyebrow { margin: 0 0 8px; color: var(--blue-strong); font-size: 12px; font-weight: 650; letter-spacing: .04em; }
.setup-guide h1 { width: auto; max-width: none; font-size: 28px; }
.setup-guide__copy { max-width: 470px; margin: 12px auto 0; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.setup-guide__actions { margin-top: 26px; display: grid; justify-items: center; gap: 10px; }
.setup-guide__primary { min-width: 190px; min-height: 44px; }
.setup-guide__secondary { min-height: 44px; padding: 0 10px; color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.setup-guide__secondary:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.agent-control-row input:disabled + .switch { cursor: not-allowed; opacity: .5; }

.preference-drawer { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.preference-drawer::backdrop { background: oklch(0.22 0.012 250 / 0.28); }
.preference-drawer[open] { display: flex; justify-content: flex-end; }
.preference-drawer__panel { width: min(440px, 100%); height: 100%; padding: 32px; background: var(--surface); box-shadow: var(--shadow-float); overflow: auto; }
.preference-drawer__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.preference-drawer__heading h2 { margin: 0; }
.drawer-close { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--text-secondary); display: grid; place-items: center; cursor: pointer; }
.drawer-close:hover { color: var(--text); }
.preference-drawer__description { margin: 24px 0 0; color: var(--text-secondary); }
.preference-section { margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-muted); }
.preference-section--mode { margin-top: 26px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.preference-section__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.preference-section__heading h3 { font-size: 14px; }
.preference-section--mode .preference-section__heading h3 { font-size: 13px; line-height: 1.4; font-weight: 580; }
.preference-section__heading span { color: var(--text-tertiary); font-size: 11px; }
.preference-list { margin: 24px 0 0; display: grid; gap: 18px; }
.preference-list div { padding: 0; border: 0; }
.preference-list dt { color: var(--text-tertiary); font-size: 12px; }
.preference-list dd { margin: 5px 0 0; color: var(--text); }
.preference-section--agent-control { margin-top: 20px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.preference-section--agent-control .agent-control-row--drawer { min-height: 42px; padding: 8px 0; }
.preference-drawer__actions { margin-top: 28px; display: grid; gap: 10px; }

.toast { position: fixed; z-index: 50; top: 88px; left: 50%; max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; transform: translateX(-50%); border-radius: var(--radius-sm); background: var(--text); color: oklch(0.985 0.004 245); box-shadow: var(--shadow-float); }

@media (max-width: 960px) {
  .agent-overview { min-height: 0; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; }
  .agent-flow { --agent-flow-area-width: 260px; --agent-flow-area-top: -24px; --agent-flow-area-right: 0px; }
  .needs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 840px) {
  .agent-overview { min-height: 0; grid-template-columns: 1fr; }
  .agent-flow { display: none; }
  .work-objects { margin-top: 12px; }
}

@media (max-width: 720px) {
  .site-header { height: auto; min-height: 60px; }
  .site-header__inner { width: calc(100% - var(--v2-layout-gutter-mobile)); min-height: 60px; flex-wrap: wrap; gap: 10px; }
  .mobile-nav-toggle { margin-left: auto; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); display: inline-flex; align-items: center; }
  .main-nav { order: 3; width: 100%; height: auto; padding: 8px 0 12px; display: none; }
  .main-nav.is-open { display: flex; }
  .header-actions { margin-left: 0; }
  .agent-identity { display: none; }
  .account-trigger { width: 36px; height: 36px; }
  .page { width: calc(100% - var(--v2-layout-gutter-mobile)); padding: 28px 0 56px; }
  .agent-overview { padding: 0; }
  .agent-overview__support { align-items: flex-start; flex-direction: column; gap: 0; }
  .agent-overview__actions { margin-top: -4px; }
  .agent-overview__actions { gap: 16px; }
  .group-tabs { gap: 18px; }
  .object-item { padding: 20px 0; }
  .progress-item { padding: 16px; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .counterpart-avatar { width: 36px; height: 36px; border-radius: 50%; }
  .needs-item { min-height: 0; padding: 18px 16px; }
  .work-guidance { padding-left: 16px; }
  .needs-list { grid-template-columns: 1fr; }
  .object-item__top { flex-direction: column; gap: 8px; }
  .object-item__updated { order: -1; }
  .opportunity-context .object-item__updated { order: 0; }
  .object-item__terms { grid-template-columns: 1fr; }
  .object-item__method { width: 100%; margin-left: 0; }
  .progress-item__heading { gap: 10px; }
  .toast { top: 72px; max-width: calc(100vw - 32px); }
  .preference-drawer__panel { padding: 24px 20px; }
}

@media (max-width: 599px) {
  .page { width: calc(100% - 24px); padding-top: 20px; }
  h1 { font-size: 24px; line-height: 1.32; letter-spacing: -0.016em; }
  h2 { font-size: 18px; line-height: 1.38; }
  .agent-overview__primary { padding-inline: 8px; }
  .agent-overview { padding-bottom: 0; }
  .agent-overview__support { margin-top: 6px; }
  .agent-overview__actions { margin-left: -8px; }
  .inline-action,
  .decision-notice__action,
  .group-tabs__tab,
  .batch-action,
  .button,
  .text-button { min-height: 44px; }
  .decision-notice { min-height: 52px; padding: 4px 11px; }
  .decision-notice__copy strong { line-height: 1.45; }
  .work-objects { margin-top: 8px; }
  .group-tabs-row { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; align-items: start; }
  .group-tabs { width: 100%; margin-inline: -2px; padding: 0 2px 4px; gap: 8px; scrollbar-width: none; }
  .group-tabs::-webkit-scrollbar { display: none; }
  .group-tabs__tab { padding-inline: 12px; }
  .group-tabs { grid-row: 1; }
  .work-guidance { margin-top: 10px; }
  .work-panel { padding-top: 12px; }
  .needs-item { padding: 18px 16px 16px; }
  .needs-item .object-item__actions { gap: 8px 16px; }
  .batch-action-row { margin-top: 10px; }
  .work-objects--setup { min-height: calc(100dvh - 160px); }
  .work-panel--setup { padding: 12px 8px 56px; }
  .setup-guide__visual { width: 164px; height: 118px; margin-bottom: 18px; }
  .setup-guide h1 { font-size: 24px; }
  .setup-guide__copy { font-size: 14px; }
  .progress-item__summary { font-size: 14px; }
  .empty-state h3 { font-size: 16px; }
  .setup-guide__primary { width: min(280px, 100%); }
}

@container work-panel (max-width: 620px) {
  .needs-list { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .needs-item:hover { background: var(--surface); box-shadow: none; }
  .progress-item:hover { background: transparent; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .main-nav__link, .mode-switch__option { transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
}

@media (prefers-reduced-motion: reduce) {
  .agent-flow { opacity: .72; }
  .needs-item { transition: none; }
}
