:root {
  color-scheme: light;
  --ink: #181a20;
  --ink-soft: #343741;
  --muted: #6e7480;
  --faint: #979ca6;
  --line: rgba(24, 26, 32, 0.09);
  --line-strong: rgba(24, 26, 32, 0.15);
  --surface: #ffffff;
  --surface-subtle: #fafaf9;
  --canvas: #f5f5f2;
  --rail: #f8f8f6;
  --accent: #3f56c5;
  --accent-soft: #eef0ff;
  --green: #147a50;
  --green-soft: #eaf7f0;
  --amber: #946500;
  --amber-soft: #fff6df;
  --red: #b43b35;
  --red-soft: #fff0ee;
  --shadow: 0 8px 30px rgba(31, 34, 41, 0.08);
  --radius: 12px;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-width: 820px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid rgba(63, 86, 197, 0.55);
  outline-offset: 2px;
}
::selection { background: rgba(63, 86, 197, 0.16); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d9dad7; border-radius: 8px; }

.app-shell { height: 100%; display: flex; flex-direction: column; overflow: hidden; }

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #b5b8bd; display: inline-block; flex: none; }
.status-dot.connected, .status-dot.running { background: #24a36a; box-shadow: 0 0 0 3px rgba(36, 163, 106, 0.1); }
.status-dot.connecting { background: #d79a20; animation: pulse 1.25s ease-in-out infinite; }
.status-dot.waiting, .status-dot.attention { background: #d79a20; box-shadow: 0 0 0 3px rgba(215, 154, 32, 0.1); }
.status-dot.stopped { background: #8e939c; }
.status-dot.failed, .status-dot.disconnected { background: var(--red); }

.menu-kicker, .pane-kicker, .rail-label, .section-kicker {
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--faint);
}
.menu-divider { height: 1px; background: var(--line); margin: 13px 0; }
.menu-connections { margin-top: 9px; display: grid; gap: 7px; }
.menu-connection { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.menu-connection span:last-child { margin-left: auto; color: var(--muted); text-transform: capitalize; }
.menu-connection.provider { padding-left: 14px; font-size: 11px; }
.menu-connection.provider span:last-child { font-size: 10px; text-transform: none; }
.advertiser-menu span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 左下角状态区 + 设置入口 */
.rail-footer { position: relative; flex: none; display: flex; align-items: center; gap: 3px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--rail); }
.rail-status { min-width: 0; flex: 1; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.rail-status:hover, .rail-status[aria-expanded="true"] { background: #ecece8; color: var(--ink); }
.rail-status-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.workspace.rail-collapsed .rail-status { flex: none; width: 32px; height: 32px; padding: 0; justify-content: center; }
.workspace.rail-collapsed .rail-status-label { display: none; }
.workspace.rail-collapsed .rail-footer { flex-direction: row; justify-content: center; padding: 8px; }
.rail-status-menu { position: absolute; bottom: calc(100% + 9px); left: 10px; width: 252px; padding: 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow); z-index: 30; }
.rail-status-menu #rail-status-version { margin-top: 0; text-transform: none; letter-spacing: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; }
/* 弹层内容兜底：固定单列轨道 + 裁剪，任何内容都不允许横向撑破 252px 卡片 */
.rail-status-menu .menu-connections { min-width: 0; overflow: hidden; grid-template-columns: minmax(0, 1fr); }
/* 连接行（状态点 + 连接名 + 模式文字）：文本单行省略，状态点与模式文字不参与压缩 */
.rail-status-menu .menu-connection > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-status-menu .menu-connection > .status-dot, .rail-status-menu .menu-connection > span:last-child { flex: none; }
/* 账户行：名字 / ID 两行堆叠，均单行省略号截断，完整内容见各自行上的 title */
.rail-status-menu .rail-status-account { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 1px; }
.rail-status-menu .rail-status-account-name, .rail-status-menu .rail-status-account-id { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-status-menu .rail-status-account-id { color: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; text-transform: none; }

.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: 218px minmax(320px, var(--conversation-width, .86fr)) 7px minmax(410px, 1.14fr); }

.session-rail {
  min-width: 0;
  position: relative;
  z-index: 6;
  background: var(--rail);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: width 180ms ease;
  /* 不设 overflow：左下角状态弹层（rail-status-menu）横向超出 rail 宽度，不能被裁剪；
     纵向滚动由 .session-list 自身承担。 */
}
.workspace.rail-collapsed { grid-template-columns: 52px minmax(320px, var(--conversation-width, .86fr)) 7px minmax(410px, 1.14fr); }
.rail-actions { min-height: 61px; padding: 9px 10px 5px; display: flex; align-items: center; gap: 6px; }
body.desktop .rail-actions { padding-top: 44px; }
.icon-button, .new-session-button, .new-project-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); flex: none; }
.icon-button:hover { color: var(--ink); background: #ecece8; }
.icon-button svg, .new-session-button svg, .new-project-button svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.new-session-button { min-width: 0; flex: 1; min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 4px 9px; color: var(--ink-soft); text-align: left; }
.new-session-button:hover { background: #ecece8; color: var(--ink); }
.new-session-copy { min-width: 0; display: grid; gap: 1px; }
.new-session-copy strong { overflow: hidden; text-overflow: ellipsis; color: inherit; font-size: 12.5px; font-weight: 590; white-space: nowrap; }
.new-session-copy small { overflow: hidden; text-overflow: ellipsis; color: var(--faint); font-size: 10px; white-space: nowrap; }
.new-project-button { width: calc(100% - 20px); min-height: 30px; margin: 0 10px 5px; padding: 4px 9px 4px 40px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; text-align: left; }
.new-project-button:hover { background: #ecece8; color: var(--ink); }
.rail-label-row { padding: 6px 12px 8px 17px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.creative-center-nav { width: calc(100% - 20px); min-height: 32px; margin: 0 10px 7px; padding: 6px 9px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); font-size: 11.5px; font-weight: 600; text-align: left; cursor: pointer; }
.creative-center-nav:hover, .creative-center-nav[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.creative-center-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rail-label { padding: 0; }
.rail-view-button { border: 0; border-radius: 6px; padding: 3px 5px; background: transparent; color: var(--faint); cursor: pointer; font-size: 10.5px; }
.rail-view-button:hover { background: #ecece8; color: var(--ink); }
.session-list { flex: 1; overflow-y: auto; padding: 0 8px 12px; display: flex; flex-direction: column; gap: 7px; }
.project-group { position: relative; border-radius: 9px; }
.project-group.pinned .project-name::before { content: "★ "; color: var(--accent); font-size: 9px; }
.project-group.archived { opacity: .82; }
.project-group.drop-target { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(63,86,197,.24); }
.project-header { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 25px 25px; align-items: center; gap: 1px; }
.project-toggle { min-width: 0; min-height: 31px; padding: 5px 5px; display: grid; grid-template-columns: 11px 7px minmax(0, 1fr) auto; align-items: center; gap: 6px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.project-toggle:hover, .project-add-session:hover, .row-menu > summary:hover { background: #ecece8; color: var(--ink); }
.project-caret { color: var(--faint); font-size: 13px; line-height: 1; }
.project-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #c7c9cd; }
.project-status-dot.running { background: #24a36a; box-shadow: 0 0 0 3px rgba(36,163,106,.09); }
.project-name { overflow: hidden; text-overflow: ellipsis; font-size: 11.8px; font-weight: 640; white-space: nowrap; }
.project-count { color: var(--faint); font-size: 9.8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.project-add-session { width: 25px; height: 25px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--faint); cursor: pointer; font-size: 16px; line-height: 1; }
.project-session-list { display: grid; gap: 2px; }
.session-row { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 25px; align-items: center; border-radius: 8px; }
.session-row.dragging { opacity: .52; }
.session-item {
  position: relative;
  width: 100%;
  padding: 8px 5px 8px 20px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: grab;
}
.session-row.dragging .session-item { cursor: grabbing; }
.session-item:hover { background: #edede9; }
.session-row.active { background: #e7e7e2; }
.session-item.active { background: transparent; }
.session-item .session-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 5px; background: #c1c3c5; }
.session-item .session-dot.running, .session-item .session-dot.connected { background: #24a36a; }
.session-item .session-dot.running { animation: pulse 1.25s ease-in-out infinite; }
.session-item .session-dot.waiting, .session-item .session-dot.attention { background: #d79a20; }
.session-item .session-dot.failed { background: var(--red); }
.session-copy { min-width: 0; }
.session-name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.8px; font-weight: 520; color: var(--ink-soft); }
.session-meta { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 3px; font-size: 10.8px; color: var(--faint); }
.session-empty { padding: 8px 18px; font-size: 12px; color: var(--faint); }
.project-empty-action { margin: 2px 4px 3px 20px; padding: 7px 9px; border: 1px dashed var(--line-strong); border-radius: 7px; background: transparent; color: var(--faint); font-size: 10.8px; cursor: pointer; text-align: left; }
.project-empty-action:hover { border-color: rgba(63,86,197,.3); color: var(--accent); background: var(--accent-soft); }
.row-menu { position: relative; }
.row-menu[open] { z-index: 20; }
.row-menu > summary { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 6px; color: var(--faint); cursor: pointer; font-size: 8px; letter-spacing: -1px; list-style: none; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu-popup { position: absolute; z-index: 15; top: 26px; right: 0; width: 146px; padding: 4px; display: grid; gap: 1px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.row-menu-popup button { border: 0; border-radius: 6px; padding: 7px 8px; background: transparent; color: var(--ink-soft); font-size: 11.5px; text-align: left; cursor: pointer; }
.row-menu-popup button:hover { background: #f0f0ed; }
.row-menu-popup .danger-menu-action { color: var(--red); }
.collapsed-session-list { display: none; }
.workspace.rail-collapsed .rail-label-row, .workspace.rail-collapsed .new-session-copy, .workspace.rail-collapsed .new-project-button span, .workspace.rail-collapsed .session-list, .workspace.rail-collapsed .session-empty { display: none; }
.workspace.rail-collapsed .creative-center-nav { width: 32px; height: 32px; margin: 0 10px 5px; padding: 0; justify-content: center; }
.workspace.rail-collapsed .creative-center-nav span { display: none; }
.workspace.rail-collapsed .rail-actions { flex-direction: column; height: auto; padding: 11px 10px 5px; }
.workspace.rail-collapsed .new-session-button { flex: none; width: 32px; padding: 0 7px; }
.workspace.rail-collapsed .new-project-button { width: 32px; height: 32px; margin: 0 10px 4px; padding: 0 7px; }
.workspace.rail-collapsed .collapsed-session-list { padding: 4px 10px; display: grid; justify-items: center; gap: 3px; }
.collapsed-session-item { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.collapsed-session-item:hover, .collapsed-session-item.active { background: #e7e7e2; }
.collapsed-session-item .session-dot { width: 6px; height: 6px; margin: 0; border-radius: 50%; background: #c1c3c5; }
.collapsed-session-item .session-dot.running { background: #24a36a; animation: pulse 1.25s ease-in-out infinite; }
.collapsed-session-item .session-dot.waiting, .collapsed-session-item .session-dot.attention { background: #d79a20; }
.collapsed-session-item .session-dot.failed { background: var(--red); }

.conversation-pane, .canvas-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.conversation-pane { background: var(--surface); }
.canvas-pane { background: var(--canvas); }
.workspace.creative-center-open { grid-template-columns: 218px minmax(0, 1fr); }
.workspace.creative-center-open.rail-collapsed { grid-template-columns: 52px minmax(0, 1fr); }
.workspace.creative-center-open .conversation-pane, .workspace.creative-center-open .workspace-divider { display: none; }
.workspace.creative-center-open .canvas-pane { grid-column: 2; }
.workspace-divider { position: relative; z-index: 4; width: 7px; min-height: 0; cursor: col-resize; background: linear-gradient(90deg, transparent 3px, var(--line) 3px, var(--line) 4px, transparent 4px); touch-action: none; outline: 0; }
.workspace-divider::after { content: ""; position: absolute; inset: 0 -2px; background: transparent; transition: background 120ms ease; }
.workspace-divider:hover::after, .workspace-divider.dragging::after, .workspace-divider:focus-visible::after { background: rgba(63, 86, 197, .1); }
.workspace-divider:focus-visible { box-shadow: inset 0 0 0 2px rgba(63, 86, 197, .48); }
.pane-header { flex: none; min-height: 63px; padding: 13px 20px 11px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pane-header h1, .pane-header h2 { margin: 4px 0 0; font-size: 14px; line-height: 1.2; font-weight: 610; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.canvas-header-actions { display: flex; align-items: center; gap: 2px; }
.conversation-header > div:first-child, .canvas-header > div:first-child { min-width: 0; }
.run-state { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.text-button { border: 0; padding: 6px 8px; border-radius: 7px; background: transparent; color: var(--accent); font-size: 12.5px; font-weight: 550; cursor: pointer; }
.text-button:hover { background: var(--accent-soft); }

.conversation-banner { flex: none; padding: 9px 16px; border-bottom: 1px solid #f0d7a7; background: var(--amber-soft); color: #775516; font-size: 12px; line-height: 1.45; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.conversation-banner.error { border-color: #efc7c2; background: var(--red-soft); color: #8d2c28; }
.conversation-banner button { flex: none; border: 1px solid currentColor; border-radius: 7px; padding: 4px 9px; background: transparent; color: inherit; font-size: 11px; cursor: pointer; }

.messages { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 21px 26px; display: flex; flex-direction: column; gap: 17px; }
.empty-conversation { margin: auto; max-width: 320px; text-align: center; color: var(--muted); line-height: 1.6; }
.empty-conversation-mark { position: relative; width: 32px; height: 32px; margin: 0 auto 12px; border: 1px solid #d8e1f0; border-radius: 10px; background: linear-gradient(145deg, #f8faff, #e8eef9); }
.empty-conversation-mark::before { content: ""; position: absolute; inset: 8px; border: 4px solid #172033; border-radius: 50%; }
.empty-conversation-mark::after { content: ""; position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: #2d6bff; }
.empty-conversation strong { display: block; color: var(--ink); margin-bottom: 4px; font-weight: 600; }
.empty-conversation > span { display: block; }
.prompt-chips { display: grid; gap: 7px; margin-top: 14px; text-align: left; }
.prompt-chips button { border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; background: #fbfbfa; color: var(--ink-soft); text-align: left; font-size: 11.8px; line-height: 1.35; cursor: pointer; }
.prompt-chips button:hover { border-color: rgba(63, 86, 197, .3); background: var(--accent-soft); }

.message { animation: rise 180ms ease-out; min-width: 0; }
.message.user { display: flex; justify-content: flex-end; }
.message-bubble { max-width: 90%; padding: 9px 12px; border-radius: 15px 15px 4px 15px; background: #f0f0ed; color: var(--ink); font-size: 13.2px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; user-select: text; }
.failed-message { display: grid; gap: 7px; border: 1px solid #efc7c2; background: var(--red-soft); }
.failed-message-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--red); font-size: 10.8px; }
.failed-message-footer button { border: 0; padding: 2px 5px; border-radius: 5px; background: transparent; color: var(--red); font-size: 11px; font-weight: 620; cursor: pointer; }
.failed-message-footer button:hover { background: rgba(180,59,53,.08); }
.assistant-copy { color: var(--ink-soft); font-size: 13.2px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; user-select: text; }
.assistant-copy p { margin: 0 0 9px; }
.assistant-copy p:last-child { margin-bottom: 0; }
.assistant-copy h3, .assistant-copy h4, .assistant-copy h5 { margin: 14px 0 6px; color: var(--ink); line-height: 1.35; }
.assistant-copy h3:first-child, .assistant-copy h4:first-child, .assistant-copy h5:first-child { margin-top: 0; }
.assistant-copy ul, .assistant-copy ol { margin: 6px 0 10px; padding-left: 21px; }
.assistant-copy li + li { margin-top: 3px; }
.assistant-copy code { padding: 1px 4px; border-radius: 4px; background: #f0f0ed; font: 11.8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.assistant-copy pre { margin: 9px 0; padding: 10px 11px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #f7f7f5; white-space: pre-wrap; }
.assistant-copy pre code { padding: 0; background: transparent; }
.assistant-copy blockquote { margin: 10px 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.assistant-copy a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.markdown-table-wrap { max-width: 100%; margin: 10px 0 13px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; white-space: normal; }
.markdown-table-wrap table { width: 100%; min-width: max-content; border-collapse: collapse; background: #fff; font-size: 12px; line-height: 1.45; }
.markdown-table-wrap th, .markdown-table-wrap td { padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.markdown-table-wrap th:last-child, .markdown-table-wrap td:last-child { border-right: 0; }
.markdown-table-wrap tbody tr:last-child td { border-bottom: 0; }
.markdown-table-wrap th { background: #f5f5f2; color: var(--ink); font-weight: 620; }
.markdown-table-wrap .align-center { text-align: center; }
.markdown-table-wrap .align-right { text-align: right; }
.assistant-copy.streaming::after { content: ""; display: inline-block; width: 5px; height: 14px; margin-left: 3px; vertical-align: -2px; border-radius: 2px; background: var(--accent); animation: pulse 0.8s ease-in-out infinite; }
.system-message { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); }
.system-message::before { content: ""; width: 24px; height: 1px; background: var(--line-strong); }

.tool-card { border: 1px solid var(--line); border-radius: 10px; background: #fbfbfa; overflow: hidden; }
.tool-card.error { border-color: #ebc5c0; background: #fffafa; }
.tool-card summary { list-style: none; min-height: 41px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; cursor: pointer; color: var(--ink-soft); }
.tool-card summary::-webkit-details-marker { display: none; }
.tool-card summary:hover { background: rgba(24, 26, 32, 0.025); }
.tool-icon { width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center; background: #ecece8; color: #525660; font-size: 12px; font-weight: 650; }
.tool-card.error .tool-icon { background: var(--red-soft); color: var(--red); }
.tool-title { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.2px; font-weight: 580; }
.tool-state { color: var(--faint); font-size: 11px; }
.tool-chevron { width: 14px; height: 14px; fill: none; stroke: var(--faint); stroke-width: 1.7; transition: transform 140ms ease; }
.tool-card[open] .tool-chevron { transform: rotate(180deg); }
.tool-body { border-top: 1px solid var(--line); padding: 11px 12px; }
.tool-technical-label { margin-bottom: 7px; color: var(--faint); font: 10.5px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }
.tool-body pre { margin: 0; max-height: 310px; overflow: auto; color: #41454e; font: 11.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; word-break: break-word; user-select: text; }
.message.user .instruction-card { width: 90%; }
.instruction-card { background: #f7f7f4; }
.instruction-copy { max-height: 310px; overflow: auto; color: #41454e; font-size: 12.2px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; user-select: text; }
.interruption-card { background: #faf9f5; }
.interruption-card .tool-icon { background: #ece9df; color: #6c6551; }
.notification-card { border-color: #e3c274; background: #fffaf0; }
.notification-card .tool-icon { background: #f7e8bd; color: #765613; }
.notification-card .tool-state { color: #765613; font-weight: 620; }
.notification-card.ready { border-color: #cfe0d5; background: #f8fbf9; }
.notification-card.ready .tool-icon { background: #e2f0e7; color: var(--green); }
.notification-card.ready .tool-state { color: var(--green); }
.result-message { padding: 9px 11px; border-radius: 9px; background: var(--red-soft); color: #8d2c28; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.process-group { border:0; background:transparent; overflow:visible; }
.long-answer { border: 1px solid var(--line); border-radius: 11px; background: #fbfbfa; overflow: hidden; }
.process-group > summary, .long-answer > summary { list-style: none; padding: 7px 2px; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); }
.process-group > summary::-webkit-details-marker, .long-answer > summary::-webkit-details-marker { display:none; }
.process-group > summary strong { flex:1; color:var(--ink); font-size:12.5px; }
.process-group > summary > span:last-of-type { color:var(--faint); font-size:11px; }
.process-group[open] > summary .tool-chevron, .long-answer[open] > summary .tool-chevron { transform:rotate(180deg); }
.process-pulse { color:var(--accent); font-size:11px; }
.process-list { display:grid; gap:2px; padding:1px 0 5px 16px; border-left:1px solid #e8e8e4; margin-left:7px; }
.process-operation { border:0; border-radius:0; background:transparent; overflow:visible; min-width:0; }
.process-operation.failed { color:var(--red); }
.process-operation > summary { list-style:none; min-height:30px; padding:4px 2px; display:flex; align-items:center; gap:7px; cursor:pointer; color:var(--muted); }
.process-operation > summary::-webkit-details-marker { display:none; }
.process-operation > summary .tool-title { min-width:0; flex:1; }
.process-operation > summary .tool-state { flex:none; margin-left:auto; }
.process-operation > summary .tool-chevron { flex:none; }
.process-operation[open] > summary .tool-chevron { transform:rotate(180deg); }
.process-operation .tool-icon { width:18px; height:18px; border-radius:5px; background:transparent; color:var(--faint); }
.process-operation .tool-body { margin:1px 0 4px 19px; padding:7px 9px; border:0; border-left:1px solid var(--line); background:#fafaf8; }
.process-operation .tool-body pre { max-height:220px; }
.process-children { display:grid; gap:1px; margin-left:18px; padding-left:10px; border-left:1px solid #e6e6e2; }
.process-preview { margin:0 0 4px 25px; color:var(--ink-soft); font-size:12px; line-height:1.5; white-space:pre-wrap; }
.process-raw { margin:0 0 4px 19px; color:var(--faint); font-size:11px; }
.process-raw > summary { width:max-content; padding:3px 6px; border-radius:5px; cursor:pointer; list-style:none; }
.process-raw > summary::-webkit-details-marker { display:none; }
.process-raw > summary:hover { background:#f0f0ed; color:var(--ink-soft); }
.process-raw .tool-body { margin:2px 0 0; }
@media (prefers-reduced-motion: reduce) { .process-group .tool-chevron, .process-operation .tool-chevron { transition:none; } }
.long-answer > summary { align-items:flex-start; }
.long-answer > summary strong { flex:none; white-space:nowrap; }
.long-answer > summary span { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:12px; }
.long-answer > .assistant-copy { padding:12px; border-top:1px solid var(--line); }
.answer-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; align-items:flex-start; }
.answer-actions button, .answer-outline summary, .artifact-actions a, .artifact-actions button { border:0; border-radius:7px; padding:5px 8px; background:#f0f0ed; color:var(--ink-soft); font:inherit;font-size:11.5px; cursor:pointer; text-decoration:none; }
.answer-outline ol { margin:6px 0 0; padding:8px 10px 8px 28px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.failed-message.recovered { border-color:var(--line); background:#f7faf8; }
.failed-message.recovered .failed-message-footer { color:var(--green); }
.question-index { flex:none; margin:8px 16px 0; border:1px solid var(--line); border-radius:9px; background:#fbfbfa; }
.question-index > summary { padding:7px 10px; cursor:pointer; color:var(--muted); font-size:11.5px; }
.question-index nav { display:grid; max-height:180px; overflow:auto; padding:0 7px 7px; gap:4px; }
.question-index button { display:flex; gap:8px; border:0; border-radius:6px; padding:6px 7px; background:transparent; color:var(--ink-soft); text-align:left; cursor:pointer; }
.question-index button:hover { background:#f0f0ed; }
.question-index button span { color:var(--faint); }
.jump-to-latest { position:absolute; z-index:4; left:50%; bottom:84px; transform:translateX(-50%); border:1px solid var(--line-strong); border-radius:999px; padding:7px 12px; background:#fff; box-shadow:0 4px 14px rgba(20,24,30,.12); color:var(--ink); cursor:pointer; }
.conversation-pane { position:relative; }
.artifact-group { display:grid; gap:8px; padding:10px; border:1px solid var(--line); border-radius:11px; background:#fbfbfa; }
.artifact-card { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; min-width:0; }
.artifact-card > div:first-child { min-width:0; display:grid; }
.artifact-card > div:first-child strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.artifact-card > div:first-child span { color:var(--faint); font-size:10.8px; }
.artifact-actions { display:flex; gap:5px; flex:none; }

.composer { flex: none; margin: 0 16px 15px; padding: 9px 10px 8px 12px; border: 1px solid var(--line-strong); border-radius: 13px; background: #fbfbfa; box-shadow: 0 2px 8px rgba(31, 34, 41, 0.035); }
.composer:focus-within { border-color: rgba(63, 86, 197, 0.42); background: #fff; box-shadow: 0 0 0 3px rgba(63, 86, 197, 0.07); }
.composer textarea { display: block; width: 100%; max-height: 150px; min-height: 24px; resize: none; border: 0; outline: 0; padding: 2px 0 5px; background: transparent; color: var(--ink); font-size: 13.2px; line-height: 1.5; }
.composer textarea::placeholder { color: #a0a3aa; }
.composer-footer { min-height: 29px; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.composer-footer > span { color: var(--faint); font-size: 10.5px; }
.composer-actions { display: flex; align-items: center; gap: 7px; }
.send-button { width: 29px; height: 29px; border: 0; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: #fff; cursor: pointer; }
.send-button:hover { background: #2e3036; }
.send-button:disabled, .composer textarea:disabled { opacity: .45; cursor: not-allowed; }
.send-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stop-button { height: 29px; padding: 0 9px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink-soft); font-size: 11.5px; cursor: pointer; }
.stop-button:hover { background: #f3f3f0; }
.stop-button .stop-icon { width: 7px; height: 7px; border-radius: 1px; background: var(--red); flex: none; }

.canvas { flex: 1; min-height: 0; overflow-y: auto; padding: 30px clamp(26px, 3vw, 44px) 48px; }
.canvas-content { width: min(100%, 720px); margin: 0 auto; }
.hero-mark { position: relative; width: 42px; height: 42px; border: 1px solid #d8e1f0; border-radius: 13px; background: linear-gradient(145deg, #f8faff, #e8eef9); margin-bottom: 23px; }
.hero-mark::before { content: ""; position: absolute; inset: 10px; border: 5px solid #172033; border-radius: 50%; }
.hero-mark::after { content: ""; position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #2d6bff; }
.canvas h3 { margin: 0; max-width: 620px; font-size: clamp(27px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 620; }
.canvas h4 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 620; }
.canvas-lede { max-width: 600px; margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.start-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 25px; }
.start-option { min-height: 92px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; align-items: start; padding: 15px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255,255,255,.88); text-align: left; cursor: pointer; }
.start-option:hover { border-color: rgba(63, 86, 197, .35); box-shadow: 0 4px 16px rgba(31,34,41,.05); }
.start-option.primary { border-color: rgba(63, 86, 197, .28); background: #f8f9ff; }
.start-option-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.start-option strong, .start-option small { display: block; }
.start-option strong { font-size: 13px; font-weight: 620; }
.start-option small { margin-top: 5px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.simulation-label { display: inline-flex !important; align-items: center; width: fit-content; margin: 13px 0 0; padding: 4px 8px; border-radius: 999px; background: #eaf1ff; color: #2855b9 !important; font-size: 10.5px !important; font-style: normal; font-weight: 620; letter-spacing: .015em; }
.simulation-banner { margin: 0 0 15px; }
.canvas-actions { margin-top: 25px; display: flex; gap: 9px; flex-wrap: wrap; }
.primary-button, .secondary-button, .link-button {
  min-height: 39px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 580;
  cursor: pointer;
  text-decoration: none;
}
.primary-button { border: 1px solid var(--ink); background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.primary-button:hover { background: #2f3138; }
.primary-button:disabled { opacity: 0.42; cursor: not-allowed; }
.secondary-button { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.secondary-button:hover { background: #f8f8f5; }
.link-button { border: 0; background: transparent; color: var(--accent); }
.link-button:hover { background: var(--accent-soft); }
.microcopy { margin-top: 13px; color: var(--faint); font-size: 11.8px; line-height: 1.5; }

.setup-head { margin-bottom: 24px; }
.setup-head .section-kicker { margin-bottom: 8px; }
.setup-head h3 { font-size: 26px; }
.setup-head p { max-width: 580px; margin: 9px 0 0; color: var(--muted); line-height: 1.55; }
.card-stack { display: grid; gap: 10px; }
.connection-card, .choice-card, .goal-card, .confirmation-card, .status-card, .action-card, .decision-card, .empty-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}
.connection-card { display: flex; align-items: center; gap: 14px; padding: 16px 17px; }
.connection-card.selected-connection { border-color: rgba(63, 86, 197, .35); box-shadow: 0 0 0 1px rgba(63, 86, 197, .08); }
.simulated-icon { background: #2d6bff; }
.platform-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #111318; color: #fff; font-size: 16px; font-weight: 700; }
.connection-copy { min-width: 0; flex: 1; }
.connection-copy strong { display: block; font-size: 14px; font-weight: 610; }
.connection-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.connection-state { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 12px; font-weight: 570; }
.connection-error { margin-top: 7px; color: var(--red); font-size: 11.5px; line-height: 1.45; }
.advertiser-picker { margin-top: 15px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.advertiser-picker > strong { display: block; font-size: 13px; }
.advertiser-picker > p, .account-binding-note { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.advertiser-picker .secondary-button { margin-top: 12px; }
.advertiser-account-list { display: grid; gap: 8px; margin-top: 12px; }
.advertiser-account-option { display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.advertiser-account-option span { display: grid; gap: 3px; min-width: 0; }
.account-filter { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; margin-top: 12px; }
.account-filter input[type="search"] { height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; }
.account-filter label, .account-scope-actions { color: var(--muted); font-size: 11.5px; }
.account-scope-actions { display: flex; gap: 12px; margin-top: 6px; }
.advertiser-account-option:hover:not(:disabled) { border-color: var(--line-strong); background: var(--accent-soft); }
.advertiser-account-option small { color: var(--muted); }
.advertiser-chip { display: grid; gap: 3px; margin-top: 15px; padding: 12px 14px; border: 1px solid rgba(63, 86, 197, .3); border-radius: 10px; background: var(--accent-soft); color: #33469f; }
.advertiser-chip span { font-size: 10.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.advertiser-chip strong { font-size: 13px; }
.advertiser-chip small { color: #5261a2; font-size: 11px; }
.trust-note { margin-top: 18px; padding: 15px 17px; border-radius: 11px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); font-size: 12.5px; line-height: 1.65; }
.trust-note strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 11px; letter-spacing: .055em; text-transform: uppercase; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-grid.single-choice { grid-template-columns: minmax(0, 1fr); }
.choice-card { position: relative; min-height: 122px; padding: 17px; text-align: left; cursor: pointer; }
.choice-card:hover:not(:disabled) { border-color: var(--line-strong); box-shadow: 0 4px 16px rgba(31, 34, 41, .05); transform: translateY(-1px); }
.choice-card.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice-card:disabled { cursor: default; opacity: 0.62; }
.choice-symbol { display: block; margin-bottom: 15px; color: var(--accent); font-size: 21px; }
.choice-card strong { display: block; font-size: 14px; font-weight: 610; }
.choice-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.choice-tag { position: absolute; top: 13px; right: 13px; padding: 3px 7px; border-radius: 999px; background: #efefec; color: var(--muted); font-size: 9.5px; font-weight: 620; letter-spacing: .03em; text-transform: uppercase; }
.choice-tag.preview { background: var(--accent-soft); color: var(--accent); }

.goal-card { padding: 17px 18px; cursor: pointer; }
.goal-card:hover { border-color: var(--line-strong); }
.goal-card.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.goal-card .recommendation { margin-bottom: 6px; color: var(--accent); font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.goal-sentence { font-size: 15px; font-weight: 580; line-height: 1.45; letter-spacing: -.01em; }
.goal-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.custom-template-label { display: inline-block; margin-top: 9px; color: var(--accent); font-size: 10.5px; font-weight: 620; }

.goal-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.advanced-fields { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 3px; }
.advanced-fields > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 1px; cursor: pointer; }
.advanced-fields > summary::-webkit-details-marker { display: none; }
.advanced-fields > summary strong, .advanced-fields > summary small { display: block; }
.advanced-fields > summary strong { color: var(--ink-soft); font-size: 12px; font-weight: 610; }
.advanced-fields > summary small { margin-top: 2px; color: var(--faint); font-size: 10.8px; font-weight: 450; }
.advanced-toggle { color: var(--accent); font-size: 11.5px; }
.advanced-fields[open] .advanced-toggle { font-size: 0; }
.advanced-fields[open] .advanced-toggle::after { content: "Hide"; font-size: 11.5px; }
:lang(zh-CN) .advanced-fields[open] .advanced-toggle::after { content: "收起"; }
.advanced-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; padding: 3px 0 2px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: var(--ink-soft); font-size: 11.8px; font-weight: 570; }
.field label span { color: var(--faint); font-weight: 450; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--ink); padding: 9px 11px; outline: 0; font-size: 13px; }
.field textarea { min-height: 76px; resize: vertical; line-height: 1.45; }
.field select { height: 38px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(63, 86, 197, .6); box-shadow: 0 0 0 3px rgba(63, 86, 197, .07); }
.field input[readonly] { background: #f0f0ed; color: var(--muted); cursor: default; }
.field-hint { margin-top: 5px; color: var(--faint); font-size: 10.8px; line-height: 1.4; }
.field-error { margin-top: 5px; color: var(--red); font-size: 10.8px; }

.confirmation-card { padding: 20px; }
.confirmation-goal { padding: 14px 15px; border-radius: 10px; background: var(--accent-soft); color: #33469f; font-size: 15px; font-weight: 570; line-height: 1.5; }
.confirmation-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.confirmation-list li { display: grid; grid-template-columns: 20px 1fr; gap: 9px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.55; }
.confirmation-list .check { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 700; }
.confirmation-list code { font: 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }

.dashboard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.dashboard-status { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--muted); font-size: 11.5px; text-transform: capitalize; }
.dashboard-head h3 { font-size: 24px; }
.updated-at { color: var(--faint); font-size: 10.8px; white-space: nowrap; margin-top: 5px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 20px; }
.metric { min-width: 0; padding: 19px 15px 17px 0; }
.metric + .metric { border-left: 1px solid var(--line); padding-left: 18px; }
.metric-value { display: block; overflow: hidden; text-overflow: ellipsis; font-size: clamp(24px, 3vw, 35px); line-height: 1; letter-spacing: -.035em; font-weight: 630; font-variant-numeric: tabular-nums; }
.metric-label { display: block; margin-top: 7px; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.metric.empty .metric-value { color: #afb1b4; }
.progress-track { height: 4px; border-radius: 4px; background: #dededa; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width 300ms ease; }
.progress-copy { display: flex; justify-content: space-between; gap: 12px; margin: 7px 0 23px; color: var(--muted); font-size: 11.5px; }
.status-card { padding: 15px 17px; margin-bottom: 19px; }
.status-card .section-kicker { margin-bottom: 6px; }
.status-card p { margin: 0; color: var(--ink-soft); line-height: 1.55; }

.decision-card { margin-bottom: 19px; padding: 17px; box-shadow: 0 6px 22px rgba(31, 34, 41, .065); }
.decision-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; }
.decision-tag { padding: 3px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-size: 10.5px; font-weight: 650; }
.decision-card h5 { margin: 0; font-size: 15px; line-height: 1.4; }
.decision-card p { margin: 7px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.decision-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }

.action-section { margin-top: 22px; }
.action-section > .section-kicker { margin-bottom: 7px; }
.action-list { display: grid; }
.action-card { border-width: 1px 0 0; border-radius: 0; background: transparent; padding: 13px 0; }
.action-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.action-time { color: var(--faint); font-size: 10.8px; font-variant-numeric: tabular-nums; }
.action-summary { color: var(--ink-soft); font-size: 12.7px; line-height: 1.55; }
.drill-button { border: 0; border-radius: 7px; padding: 4px 8px; background: transparent; color: var(--accent); font-size: 11.5px; cursor: pointer; }
.drill-button:hover { background: var(--accent-soft); }
.action-details { margin: 10px 0 1px 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: 12px; line-height: 1.55; }
.action-details strong { color: var(--ink); font-weight: 610; }
.execution-block { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.execution-block pre { margin: 6px 0 0; overflow: auto; color: var(--ink-soft); font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }

.goal-details { margin-top: 22px; border-top: 1px solid var(--line); }
.goal-details summary { padding: 13px 0; cursor: pointer; color: var(--muted); font-size: 11.5px; }
.goal-details dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 12px; margin: 0 0 12px; font-size: 11.5px; }
.goal-details dt { color: var(--faint); }
.goal-details dd { margin: 0; color: var(--ink-soft); word-break: break-word; }
.empty-card { padding: 24px; text-align: center; color: var(--muted); line-height: 1.6; }
.empty-card strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; }

/* 全局素材中心：本地文件数据的前端筛选与局部行更新。 */
.creative-center-view { flex: 1; min-height: 0; overflow: auto; padding: 24px; }
.creative-center-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.creative-center-head h3 { margin: 4px 0 5px; font-size: 20px; letter-spacing: -.025em; }
.creative-center-head p { max-width: 620px; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.creative-head-actions, .creative-detail-actions, .creative-bulk { display: flex; align-items: center; gap: 8px; }
.creative-filters { display: grid; grid-template-columns: repeat(7, minmax(105px, 1fr)); gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.7); }
.creative-filters label, .creative-note-field, .creative-feedback label { min-width: 0; display: grid; gap: 4px; color: var(--muted); font-size: 10.5px; font-weight: 600; }
.creative-filters select, .creative-filters input, .creative-note-field textarea, .creative-feedback select, .creative-feedback textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--ink); font-size: 12px; }
.creative-filters select, .creative-filters input, .creative-feedback select { height: 32px; padding: 0 7px; }
.creative-note-field textarea, .creative-feedback textarea { padding: 7px; resize: vertical; font: inherit; line-height: 1.45; }
.creative-bulk { margin: 11px 0; padding: 8px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.creative-layout { display: grid; grid-template-columns: minmax(430px, 1.25fr) minmax(330px, .75fr); align-items: start; gap: 14px; margin-top: 14px; }
.creative-list { display: grid; gap: 7px; }
.creative-row { display: grid; grid-template-columns: 31px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.creative-row.active { border-color: rgba(63,86,197,.48); box-shadow: 0 0 0 2px rgba(63,86,197,.08); }
.creative-check { display: grid; place-items: center; cursor: pointer; }
.creative-row-main { min-width: 0; display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px 8px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.creative-row-main:hover { background: #fcfcfb; }
.creative-preview { width: 100%; max-height: 230px; display: block; object-fit: contain; border-radius: 8px; background: #ecece9; }
.creative-preview.compact { width: 74px; height: 58px; object-fit: cover; }
.creative-preview.missing { display: grid; place-items: center; min-height: 58px; color: var(--faint); font-size: 10px; }
.creative-row-copy { min-width: 0; display: grid; gap: 3px; }
.creative-row-copy strong, .creative-row-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creative-row-copy strong { font-size: 12.5px; color: var(--ink); }
.creative-row-copy span { color: var(--muted); font-size: 10.8px; }
.creative-status, .creative-mode { flex: none; border-radius: 99px; padding: 3px 6px; font-size: 9.8px; font-style: normal; white-space: nowrap; }
.creative-status.unreviewed { background: var(--amber-soft); color: var(--amber); }
.creative-status.reviewed { background: var(--green-soft); color: var(--green); }
.creative-status.issue { background: var(--red-soft); color: var(--red); }
.creative-mode { margin-left: -4px; background: #eff0f2; color: var(--muted); }
.creative-detail { position: sticky; top: 0; display: grid; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.creative-detail-title { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.creative-detail-title h4 { margin: 3px 0 0; font-size: 15px; }
.creative-facts { display: grid; gap: 8px; margin: 0; }
.creative-facts div { display: grid; gap: 2px; }
.creative-facts dt { color: var(--faint); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.creative-facts dd { margin: 0; color: var(--ink-soft); font-size: 11.5px; line-height: 1.45; white-space: pre-wrap; }
.creative-associations { display: grid; gap: 6px; }
.creative-associations h5, .creative-feedback h5 { margin: 0; font-size: 11px; }
.creative-associations p { margin: 0; color: var(--faint); font-size: 11px; }
.creative-association, .creative-source { display: grid; gap: 2px; padding: 7px; border-radius: 7px; background: #f7f7f5; color: var(--ink-soft); font-size: 10.5px; }
.creative-association span, .creative-source small { color: var(--muted); }
.creative-association em { color: var(--amber); font-style: normal; }
.creative-source { width: 100%; border: 0; text-align: left; cursor: pointer; }
.creative-source:hover { background: var(--accent-soft); color: var(--accent); }
.creative-feedback { display: grid; gap: 8px; padding-top: 11px; border-top: 1px solid var(--line); }
.creative-feedback p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.creative-note-hint { margin: -7px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.creative-feedback-error { color: var(--red) !important; }
@media (max-width: 1160px) { .creative-filters { grid-template-columns: repeat(4, minmax(120px, 1fr)); } .creative-layout { grid-template-columns: minmax(360px, 1fr) 330px; } }
.loading-line { height: 3px; overflow: hidden; border-radius: 3px; background: #e2e2de; }
.loading-line::after { content: ""; display: block; width: 35%; height: 100%; background: var(--accent); animation: loading 1.2s ease-in-out infinite; }

.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; gap: 8px; pointer-events: none; }
.toast { max-width: 360px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); color: var(--ink-soft); font-size: 12px; line-height: 1.45; animation: rise 180ms ease-out; }
.toast.error { border-color: #ebc5c0; color: #8d2c28; }

.entity-dialog { width: min(420px, calc(100vw - 40px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; color: var(--ink); box-shadow: 0 20px 70px rgba(31,34,41,.2); }
.entity-dialog::backdrop { background: rgba(24,26,32,.22); backdrop-filter: blur(1px); }
.entity-dialog form { padding: 18px; }
.settings-dialog form { max-height: min(760px, calc(100vh - 40px)); overflow: auto; }
.settings-section { display: grid; gap: 10px; margin: 12px 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.settings-section h3 { margin: 0; font-size: 13px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.secret-input { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.secret-input .secondary-button { height: 39px; }
.check-row { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; }
.settings-status { color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.settings-status.warning { color: #895b00; }
.settings-status.success { color: #28633d; }
.pending-attention { margin: auto 10px 10px; padding: 9px 11px; border: 1px solid #e3bd69; border-radius: 9px; background: #fff8e8; color: #79530a; cursor: pointer; text-align: left; }
.pending-attention span { float: right; font-weight: 700; }
.attention-card { display: grid; gap: 10px; padding: 14px; border: 1px solid #e3bd69; border-radius: 11px; background: #fffaf0; }
.attention-card h4, .attention-card p { margin: 0; }
.attention-card fieldset { display: grid; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.attention-card fieldset label { display: flex; gap: 8px; }
.attention-card fieldset label span { display: grid; gap: 2px; }
.attention-card fieldset small { color: var(--muted); }
.attention-card textarea { padding: 9px; border: 1px solid var(--line-strong); border-radius: 8px; resize: vertical; }
.attention-actions { display: flex; gap: 8px; }
.advanced-settings > summary { cursor: pointer; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.settings-dialog { width: min(780px, calc(100vw - 40px)); }
.settings-shell { padding: 18px; }
.settings-head { margin-bottom: 13px; }
.settings-layout { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; min-height: 340px; }
.settings-nav { display: grid; gap: 3px; align-content: start; padding-right: 13px; border-right: 1px solid var(--line); }
.settings-nav-item { border: 0; border-radius: 8px; padding: 8px 10px; background: transparent; color: var(--muted); text-align: left; font-size: 12.5px; font-weight: 550; cursor: pointer; }
.settings-nav-item:hover { background: #f0f0ed; color: var(--ink); }
.settings-nav-item.active { background: var(--accent-soft); color: var(--accent); }
.settings-content { min-width: 0; display: grid; gap: 13px; align-content: start; }
.settings-field { display: grid; gap: 7px; }
.settings-field-label { color: var(--ink-soft); font-size: 12px; font-weight: 580; }
.settings-inline { display: flex; align-items: center; gap: 9px; }
.settings-path-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafaf8; color: var(--ink-soft); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.segmented-control { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 9px; background: #f2f2ef; width: fit-content; }
.segmented-option { border: 0; border-radius: 7px; padding: 6px 14px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 560; cursor: pointer; transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.segmented-option:hover { color: var(--ink); }
.segmented-option.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(31,34,41,.12); }
.settings-summary { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.settings-summary-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; padding: 9px 12px; background: rgba(255,255,255,.88); font-size: 12px; }
.settings-summary-row + .settings-summary-row { border-top: 1px solid var(--line); }
.settings-summary-row dt { color: var(--faint); }
.settings-summary-row dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.settings-advanced { border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.88); }
.settings-advanced > summary { list-style: none; display: flex; align-items: center; padding: 11px 13px; cursor: pointer; }
.settings-advanced > summary::-webkit-details-marker { display: none; }
.settings-advanced > summary strong { display: block; color: var(--ink-soft); font-size: 12px; font-weight: 610; }
.settings-advanced > summary small { display: block; margin-top: 2px; color: var(--faint); font-size: 10.8px; }
.settings-advanced-body { padding: 0 13px 13px; }
.chat-alias-mapping .settings-advanced-body { display: grid; gap: 10px; padding-top: 11px; }
.settings-advanced-body textarea { width: 100%; min-height: 220px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); outline: none; font: 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.settings-advanced-actions { justify-content: flex-end; }
.plugin-card { display: grid; gap: 10px; padding: 14px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.88); }
.plugin-card.placeholder { color: var(--faint); font-size: 12px; }
.plugin-card.placeholder strong { display: block; margin-bottom: 3px; color: var(--muted); }
.plugin-head { display: flex; align-items: center; gap: 12px; }
.plugin-head .platform-icon { width: 34px; height: 34px; font-size: 14px; }
.plugin-title { min-width: 0; flex: 1; }
.plugin-title strong { display: block; font-size: 13.5px; font-weight: 610; }
.plugin-subtitle { display: block; margin-top: 2px; color: var(--faint); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.plugin-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11.5px; }
.plugin-meta { color: var(--muted); font-size: 11.8px; }
.plugin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.plugin-actions .primary-button, .plugin-actions .secondary-button { min-height: 33px; padding: 0 13px; font-size: 12px; }
.plugin-actions .link-button { min-height: 33px; }
.skill-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.88); }
.skill-copy { min-width: 0; }
.skill-copy strong { font-size: 13.5px; font-weight: 610; }
.skill-source { display: block; margin-top: 3px; color: var(--faint); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }
.skill-copy p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.skill-toggle { flex: none; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11.5px; cursor: pointer; }
.skill-toggle input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.settings-subhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.settings-subhead .secondary-button { min-height: 31px; padding: 0 12px; font-size: 12px; }
.settings-field input, .settings-field select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); outline: none; font-size: 12.5px; }
.settings-field input:focus, .settings-field select:focus { border-color: rgba(63,86,197,.6); box-shadow: 0 0 0 3px rgba(63,86,197,.07); }
.settings-field em { margin-left: 6px; color: var(--faint); font-style: normal; font-weight: 450; font-size: 10.5px; }
/* 桌面通知设置块：行结构对齐 skill-toggle（小复选框 + 紧跟文字，左对齐）。
   刻意不用 settings-field 作容器：其 `.settings-field input` 规则（width:100% 等）
   会把复选框拉伸成全宽输入框。 */
.notification-block { display: grid; gap: 10px; }
.notification-option { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.45; cursor: pointer; }
.notification-option input { flex: none; width: 15px; height: 15px; margin: 0; padding: 0; border: 0; background: none; accent-color: var(--accent); cursor: pointer; }
.notification-option span { min-width: 0; overflow-wrap: anywhere; }
.notification-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 20px; }
.notification-actions { margin-top: 2px; }
.generative-list { display: grid; gap: 9px; }
.generative-card { display: grid; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.88); }
.generative-card.editing { border-color: rgba(63,86,197,.3); background: #fbfcff; }
.generative-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.generative-card-head strong { font-size: 13px; font-weight: 610; }
.generative-endpoint { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--faint); font-size: 10.8px; }
.generative-empty { padding: 18px; font-size: 12px; }
/* 模型卡收起态：单行核心信息 + 小号操作行；provider/模型 ID/endpoint 细节只在编辑表单出现。 */
.generative-card.compact { gap: 8px; padding: 10px 14px; }
/* 卡片操作行内的非主操作（测试连接/编辑）用 link-button；删除用红色 link，替代大红按钮。 */
.plugin-actions .link-button.danger { color: var(--red); }
.plugin-actions .link-button.danger:hover { background: var(--red-soft); }
.settings-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.88); }
.settings-card + .settings-card { margin-top: 12px; }
.settings-card-title { padding: 11px 14px 0; color: var(--faint); font-size: 10.5px; font-weight: 650; letter-spacing: 0.075em; text-transform: uppercase; }
.settings-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 14px; }
.settings-row + .settings-row, .settings-card-title + .settings-row { border-top: 1px solid var(--line); }
.settings-row-main { min-width: 0; }
.settings-row-label { font-size: 12.5px; font-weight: 580; color: var(--ink); }
.settings-row-desc { margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.settings-row-control { flex: none; display: flex; align-items: center; gap: 9px; }
.settings-row > .settings-row-desc { flex-basis: 100%; margin-top: -2px; }
.settings-version-foot { margin-top: 12px; color: var(--faint); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }
.notification-switch { display: inline-flex; align-items: center; cursor: pointer; }
.notification-switch input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.notification-switch-ui { width: 38px; height: 22px; flex: none; border-radius: 999px; background: #d5d6d2; position: relative; transition: background 160ms ease; }
.notification-switch-ui::before { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22); transition: transform 160ms ease; }
.notification-switch input:checked + .notification-switch-ui { background: var(--accent); }
.notification-switch input:checked + .notification-switch-ui::before { transform: translateX(16px); }
.notification-switch input:focus-visible + .notification-switch-ui { outline: 2px solid rgba(63, 86, 197, 0.55); outline-offset: 2px; }
.adspy-form { display: grid; gap: 11px; }
.adspy-mode-fields { display: grid; gap: 10px; }
.adspy-mode .segmented-option { padding: 6px 12px; }
.adspy-form textarea { width: 100%; min-height: 60px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); outline: none; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.adspy-howto { border: 1px dashed var(--line-strong); }
.adspy-steps { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 11.8px; line-height: 1.7; }
/* AdSpy 配置面板：默认整体收起（summary 隐藏，展开/收起由「配置」按钮控制 open）。 */
.adspy-config > summary { display: none; }
.adspy-config[open] { border: 1px dashed var(--line-strong); border-radius: 10px; background: rgba(255,255,255,.6); }
.adspy-config[open] .adspy-form { padding: 12px 13px; }
.chat-preset-picker { display: grid; gap: 7px; padding: 11px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255,255,255,.6); }
.chat-preset-option { display: grid; gap: 2px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.chat-preset-option:hover { border-color: rgba(63,86,197,.4); background: var(--accent-soft); }
.chat-preset-option strong { font-size: 12.5px; }
.chat-preset-option small { color: var(--faint); font-size: 10.8px; line-height: 1.4; }
.chat-active-badge { margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 10px; font-style: normal; font-weight: 640; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.dialog-head h2 { margin: 0; font-size: 17px; font-weight: 630; letter-spacing: -.015em; }
.dialog-close { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; }
.dialog-close:hover { background: #f0f0ed; color: var(--ink); }
.dialog-field { display: grid; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 580; }
.dialog-field input, .dialog-field select, .dialog-field textarea { width: 100%; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); outline: none; font-size: 13px; }
.dialog-field input, .dialog-field select { height: 39px; }
.dialog-field textarea { min-height: 280px; padding: 10px; resize: vertical; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dialog-field input:focus, .dialog-field select:focus, .dialog-field textarea:focus { border-color: rgba(63,86,197,.6); box-shadow: 0 0 0 3px rgba(63,86,197,.07); }
.dialog-copy { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.dialog-path { max-width: 520px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; color: var(--faint); font: 10.5px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.platform-options { display: grid; gap: 8px; }
.platform-options button { display: grid; gap: 3px; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.platform-options button:hover { border-color: rgba(63,86,197,.45); background: #f8f9ff; }
.platform-options strong { font-size: 13px; }
.platform-options span { color: var(--muted); font-size: 11.5px; }
.danger-button { border-color: var(--red); background: var(--red); }
.dialog-error { margin-top: 10px; padding: 8px 9px; border-radius: 7px; background: var(--red-soft); color: #8d2c28; font-size: 11.5px; line-height: 1.4; }
.dialog-actions { margin-top: 19px; display: flex; justify-content: flex-end; gap: 8px; }
.dialog-secondary-leading { margin-right: auto; }

[hidden] { display: none !important; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loading { from { transform: translateX(-110%); } to { transform: translateX(320%); } }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: 218px minmax(320px, var(--conversation-width, .9fr)) 7px minmax(410px, 1.1fr); }
  .workspace.rail-collapsed { grid-template-columns: 52px minmax(320px, var(--conversation-width, .9fr)) 7px minmax(410px, 1.1fr); }
}

@media (max-width: 820px) {
  body { min-width: 0; overflow: auto; }
  .app-shell { min-height: 100%; height: auto; overflow: visible; }
  .workspace, .workspace.rail-collapsed { display: flex; flex-direction: column; }
  .workspace-divider { display: none; }
  .session-rail { display: none; }
  .conversation-pane, .canvas-pane { min-height: 68vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .messages { min-height: 380px; }
  .canvas { min-height: 520px; padding: 26px 20px 40px; }
  .choice-grid, .goal-form, .advanced-fields-grid, .start-options { grid-template-columns: 1fr; }
  .notification-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* OmniAds product shell — OmniAds Engine remains the engine; these tokens retain the
   audited OmniAds indigo/ink palette instead of copying OmniAds Engine's brand. */
.brand-lockup {
  min-height: 62px;
  padding: 12px 12px 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}
body.desktop .brand-lockup { padding-top: 42px; min-height: 91px; }
body.desktop .brand-lockup ~ .rail-actions { padding-top: 9px; }
.brand-mark {
  position: relative;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 3px);
  align-items: end;
  justify-content: center;
  gap: 2px;
  padding-bottom: 7px;
  box-shadow: 0 4px 12px rgba(24, 26, 32, .12);
}
.brand-mark span { width: 3px; border-radius: 2px; background: white; }
.brand-mark span:nth-child(1) { height: 7px; opacity: .68; }
.brand-mark span:nth-child(2) { height: 13px; }
.brand-mark span:nth-child(3) { height: 10px; opacity: .82; }
.brand-copy { min-width: 0; display: grid; gap: 1px; }
.brand-copy strong { font-size: 13px; line-height: 1.1; letter-spacing: -.02em; }
.brand-copy small { font-size: 9.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.engine-beacon {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--faint);
  font: 650 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .02em;
}
.engine-beacon i { width: 6px; height: 6px; border-radius: 50%; background: #b5b8bd; }
.engine-beacon.connected { color: var(--green); }
.engine-beacon.connected i { background: #24a36a; box-shadow: 0 0 0 3px rgba(36,163,106,.1); }
.engine-beacon.attention { color: var(--amber); }
.engine-beacon.attention i { background: #d79a20; }

.product-nav { display: grid; gap: 2px; padding: 8px 9px 10px; border-bottom: 1px solid var(--line); }
.product-nav button {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11.5px;
  text-align: left;
}
.product-nav button:hover { background: #ecece8; color: var(--ink); }
.product-nav button.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.product-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.workspace.rail-collapsed .brand-lockup { justify-content: center; padding-inline: 8px; }
.workspace.rail-collapsed .brand-copy,
.workspace.rail-collapsed .engine-beacon,
.workspace.rail-collapsed .product-nav span { display: none; }
.workspace.rail-collapsed .product-nav { padding-inline: 10px; }
.workspace.rail-collapsed .product-nav button { width: 32px; height: 32px; min-height: 32px; padding: 0; justify-content: center; }
.workspace.rail-collapsed .assistant-rail-only { display: none !important; }

.language-switcher {
  flex: none;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  background: rgba(255,255,255,.72);
}
.language-switcher button {
  min-width: 28px;
  height: 24px;
  padding: 0 5px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font-size: 9px;
}
.language-switcher button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(24,26,32,.08); font-weight: 680; }
.workspace.rail-collapsed .language-switcher { display: none; }

.workspace.product-surface-open { grid-template-columns: 218px minmax(0, 1fr); }
.workspace.product-surface-open.rail-collapsed { grid-template-columns: 52px minmax(0, 1fr); }
.workspace.product-surface-open .conversation-pane,
.workspace.product-surface-open .workspace-divider { display: none; }
.workspace.product-surface-open .assistant-rail-only { display: none !important; }
.workspace.product-surface-open .canvas-pane { grid-column: 2; }
.workspace.product-surface-open .canvas-header { min-height: 57px; background: rgba(245,245,242,.92); backdrop-filter: blur(12px); }
.workspace.product-surface-open .canvas { padding: 0; }

.verso-surface { overflow: auto; background: var(--canvas); }
.v-page { width: min(1460px, 100%); min-height: 100%; margin: 0 auto; padding: 18px 26px 48px; }
.v-scope-bar {
  min-height: 37px;
  margin-bottom: 24px;
  padding: 5px 5px 5px 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  display: flex;
  align-items: center;
  gap: 12px;
}
.v-engine-status { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 650; color: var(--muted); }
.v-engine-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.v-engine-status.connected i { background: #24a36a; box-shadow: 0 0 0 3px rgba(36,163,106,.09); }
.v-brand-picker { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--faint); font-size: 10px; }
.v-brand-picker select { max-width: 210px; padding: 4px 22px 4px 7px; border: 0; background: transparent; color: var(--ink-soft); font-size: 10.5px; font-weight: 620; }
.v-scope-meta { color: var(--faint); font-size: 10px; white-space: nowrap; }
.v-icon-action { width: 27px; height: 27px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.v-icon-action:hover { background: #ecece8; color: var(--ink); }

.v-page-head { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.v-page-head > div { max-width: 760px; }
.v-eyebrow { margin: 0 0 7px; color: var(--accent); font: 690 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .075em; text-transform: uppercase; }
.v-page-head h3 { max-width: 720px; margin: 0; color: var(--ink); font-size: clamp(24px, 3vw, 38px); line-height: 1.05; font-weight: 650; letter-spacing: -.045em; }
.v-page-head > div > p:last-child { max-width: 680px; margin: 11px 0 0; color: var(--muted); line-height: 1.55; }
.v-primary, .v-secondary {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.v-primary { border: 1px solid var(--ink); background: var(--ink); color: white; }
.v-primary:hover { background: #292c34; }
.v-secondary { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); }
.v-secondary:hover { border-color: rgba(63,86,197,.3); color: var(--accent); }
.v-link { padding: 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 10.5px; font-weight: 630; }
.v-link.danger { color: var(--red); }

.v-overview-grid { margin: 0 0 16px; border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.v-overview-stat { min-height: 82px; padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 3px 16px; border-right: 1px solid var(--line); }
.v-overview-stat:last-child { border-right: 0; }
.v-overview-stat span { color: var(--muted); font-size: 10.5px; }
.v-overview-stat strong { grid-row: 1 / span 2; grid-column: 2; color: var(--ink); font-size: 25px; font-weight: 620; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.v-overview-stat small { color: var(--faint); font-size: 9.5px; }

.v-master-detail { min-height: 570px; border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 280px minmax(0,1fr); box-shadow: 0 8px 34px rgba(24,26,32,.035); }
.v-master-list { min-width: 0; border-right: 1px solid var(--line); background: var(--surface-subtle); overflow: auto; }
.v-list-head { height: 45px; padding: 0 13px 0 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 10.5px; }
.v-list-head span { min-width: 21px; padding: 3px 6px; border-radius: 10px; background: #ecece8; color: var(--muted); text-align: center; font-size: 9px; }
.v-list-row { width: 100%; min-height: 63px; padding: 9px 10px 9px 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 9px; cursor: pointer; text-align: left; }
.v-list-row:hover { background: #f2f2ef; }
.v-list-row.active { background: var(--accent-soft); box-shadow: inset 2px 0 var(--accent); }
.v-list-row > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.v-list-row strong { overflow: hidden; color: var(--ink-soft); font-size: 10.5px; font-weight: 630; line-height: 1.3; text-overflow: ellipsis; }
.v-list-row small { color: var(--faint); font-size: 9px; }
.v-list-row > i { color: var(--faint); font-style: normal; }
.v-row-icon, .v-creative-thumb { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: white; display: grid; place-items: center; color: var(--muted); font: 650 10px/1 ui-monospace, monospace; }
.v-row-icon.success { color: var(--green); background: var(--green-soft); }
.v-row-icon.warning { color: var(--amber); background: var(--amber-soft); }
.v-row-icon.danger { color: var(--red); background: var(--red-soft); }
.v-detail-panel { min-width: 0; padding: 16px; overflow: auto; }
.v-tabs { min-height: 34px; margin: 0 0 14px; padding: 2px; border: 1px solid var(--line); background: #f2f2ef; display: inline-flex; align-items: center; gap: 2px; }
.v-tabs button { min-height: 27px; padding: 5px 11px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.v-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(24,26,32,.08); font-weight: 650; }

.v-campaign-layout { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 14px; }
.v-inspector { padding: 16px; border-left: 1px solid var(--line); background: #fbfbfa; }
.v-inspector h4 { margin: 5px 0 13px; font-size: 14px; line-height: 1.35; }
.v-inspector > p { color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.v-inspector dl { margin: 12px 0 18px; display: grid; gap: 10px; }
.v-inspector dl div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.v-inspector dt { color: var(--faint); font-size: 9.5px; }
.v-inspector dd { margin: 0; max-width: 145px; overflow: hidden; color: var(--ink-soft); font-size: 10px; text-align: right; text-overflow: ellipsis; }
.v-inspector code, .v-detail-title code { color: var(--faint); font: 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }

.v-controller-panel { margin-top: 14px; padding: 16px; border: 1px solid var(--line); background: var(--surface); }
.v-controller-panel > .v-section-head { align-items: flex-start; }
.v-controller-panel > .v-section-head h4 { margin-top: 1px; }
.v-controller-alert { margin-top: 14px; padding: 10px 12px; border-left: 3px solid var(--amber); background: var(--amber-soft); }
.v-controller-alert strong { color: var(--amber); }
.v-controller-alert p { margin: 4px 0 0; color: var(--ink-soft); line-height: 1.5; }
.v-controller-alert code { display: inline-block; margin-top: 5px; color: var(--amber); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.v-controller-flow { margin: 16px 0 0; padding: 0; border: 1px solid var(--line); list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.v-controller-flow > li { min-width: 0; padding: 13px; display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: start; gap: 9px; }
.v-controller-flow > li + li { border-left: 1px solid var(--line); }
.v-controller-flow > li > span { width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-subtle); display: grid; place-items: center; color: var(--muted); font: 650 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.v-controller-flow > li:nth-child(2) > span { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); background: var(--accent-soft); color: var(--accent); }
.v-controller-flow > li.warning > span { border-color: color-mix(in srgb, var(--amber) 42%, var(--line)); background: var(--amber-soft); color: var(--amber); }
.v-controller-flow > li.execution > span { border-color: color-mix(in srgb, var(--green) 38%, var(--line)); background: var(--green-soft); color: var(--green); }
.v-controller-flow > li > div { min-width: 0; display: grid; align-content: start; gap: 4px; }
.v-controller-flow small { color: var(--faint); font-size: 10px; font-weight: 660; letter-spacing: .045em; text-transform: uppercase; }
.v-controller-flow strong { color: var(--ink); font-size: 13px; line-height: 1.3; }
.v-controller-flow p { margin: 1px 0 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.v-controller-flow code, .v-controller-flow time { min-width: 0; overflow-wrap: anywhere; color: var(--faint); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.v-controller-history { margin-top: 14px; border-top: 1px solid var(--line); }
.v-controller-history summary { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-soft); cursor: pointer; font-weight: 650; }
.v-controller-history summary small { min-width: 24px; padding: 2px 7px; border-radius: 12px; background: var(--surface-subtle); color: var(--muted); text-align: center; }
.v-controller-history > p { margin: 0 0 10px; color: var(--faint); line-height: 1.45; }
.v-controller-history ol { max-height: 330px; margin: 0; padding: 0; border: 1px solid var(--line); overflow: auto; list-style: none; }
.v-controller-history li { padding: 11px 12px; display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 12px; }
.v-controller-history li + li { border-top: 1px solid var(--line); }
.v-controller-history li > div { min-width: 0; display: grid; gap: 3px; }
.v-controller-history li strong { color: var(--ink-soft); }
.v-controller-history li p { margin: 1px 0; color: var(--muted); line-height: 1.45; }
.v-controller-history li small { color: var(--faint); overflow-wrap: anywhere; }
.v-controller-history li code { overflow-wrap: anywhere; color: var(--faint); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.v-controller-revision { color: var(--accent); font: 650 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.v-controller-handoff { margin-top: 14px; padding: 14px; border: 1px solid var(--line-strong); background: var(--surface-subtle); }
.v-controller-handoff fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.v-controller-handoff legend { margin: 0; padding: 0; color: var(--ink); font-size: 13px; font-weight: 680; }
.v-controller-handoff fieldset > p { margin: 5px 0 12px; color: var(--muted); line-height: 1.5; }
.v-controller-handoff-fields { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(240px,1.2fr); gap: 10px; }
.v-controller-handoff-fields label { min-width: 0; display: grid; align-content: start; gap: 6px; }
.v-controller-handoff-fields label > span { color: var(--muted); font-weight: 620; }
.v-controller-handoff-fields select, .v-controller-handoff-fields textarea { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; }
.v-controller-handoff-fields textarea { min-height: 72px; resize: vertical; }
.v-controller-handoff .v-form-constraint { margin: 9px 0 0; color: var(--faint); }
.v-controller-handoff .v-inline-form-error { margin: 9px 0 0; padding: 9px 10px; background: var(--red-soft); color: var(--red); }
.v-controller-handoff .v-action-row { margin-top: 12px; justify-content: space-between; }
.v-controller-handoff .v-action-row > span { color: var(--faint); }

.v-graph { position: relative; min-height: 470px; border: 1px solid var(--line); background-color: #f9f9f7; background-image: radial-gradient(rgba(24,26,32,.11) .7px, transparent .7px); background-size: 17px 17px; overflow: hidden; }
.v-graph.compact { min-height: 390px; }
.v-graph-key { position: absolute; z-index: 3; top: 9px; left: 10px; display: flex; gap: 10px; color: var(--faint); font-size: 8.5px; }
.v-graph-key span { display: flex; align-items: center; gap: 4px; }
.v-graph-key i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.v-graph-key i.simulated { background: transparent; border: 1px dashed var(--amber); }
.v-graph-stage { position: absolute; inset: 26px 4px 4px; }
.v-graph-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v-graph-stage line { stroke: rgba(83,88,101,.28); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.v-node { position: absolute; z-index: 2; left: var(--x); top: var(--y); width: 108px; min-height: 50px; padding: 6px 7px; border: 1px solid rgba(24,26,32,.13); border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: 0 4px 13px rgba(24,26,32,.06); transform: translate(-50%,-50%); display: grid; grid-template-columns: 22px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 6px; cursor: pointer; text-align: left; }
.v-node:hover, .v-node.selected { border-color: rgba(63,86,197,.6); box-shadow: 0 5px 18px rgba(63,86,197,.12); }
.v-node.selected { outline: 2px solid rgba(63,86,197,.18); }
.v-node.simulated { border-style: dashed; border-color: rgba(148,101,0,.45); }
.v-node > span { grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); font: 680 8px/1 ui-monospace,monospace; }
.v-node strong { overflow: hidden; color: var(--ink-soft); font-size: 8.5px; white-space: nowrap; text-overflow: ellipsis; }
.v-node small { color: var(--faint); font-size: 7.5px; }
.v-graph.compact .v-node { width: 90px; min-height: 44px; }
.v-graph-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; border: 1px solid var(--line); background: var(--surface); }
.v-graph-layout .v-graph { border: 0; border-bottom: 1px solid var(--line); }
.v-node-inspector { border-left: 1px solid var(--line); }
.v-inspector-empty { min-height: 340px; display: grid; place-content: center; justify-items: center; text-align: center; }
.v-inspector-empty > span { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--accent); font-size: 20px; }
.v-inspector-empty p { max-width: 220px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.v-detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.v-detail-title h4 { margin: 8px 0 4px; font-size: 15px; line-height: 1.35; }
.v-confidence, .v-version { color: var(--accent); font: 680 18px/1 ui-monospace,monospace; }
.v-property-list { display: grid; }
.v-property-list div { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 9px; }
.v-property-list span { color: var(--faint); }
.v-property-list strong { overflow-wrap: anywhere; color: var(--ink-soft); font-weight: 570; text-align: right; }
.v-node-inspector section { margin-top: 18px; }
.v-node-inspector h5 { margin: 0 0 8px; font-size: 10px; }
.v-accessible-graph { margin: 8px 12px 12px; font-size: 10px; }
.v-accessible-graph summary { color: var(--accent); cursor: pointer; }
.v-accessible-graph > div { margin-top: 8px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
.v-accessible-graph button { padding: 7px; border: 1px solid var(--line); background: white; display: flex; justify-content: space-between; gap: 8px; cursor: pointer; text-align: left; }
.v-accessible-graph span { color: var(--faint); font-size: 8.5px; }

.v-budget-panel { margin-top: 14px; padding: 16px; border: 1px solid var(--line); background: var(--surface); }
.v-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.v-section-head h4, .v-section-head h5 { margin: 0; }
.v-section-head > span { color: var(--faint); font-size: 9px; }
.v-budget-lanes { margin-top: 15px; display: grid; gap: 15px; }
.v-brand-creative-budget { margin: 14px 0; padding: 14px; border: 1px solid var(--line-strong); background: var(--surface-subtle); }
.v-brand-creative-budget.unavailable, .v-brand-creative-budget.exhausted, .v-brand-creative-budget.overcommitted { border-color: var(--red); }
.v-brand-creative-budget .v-section-head { align-items: flex-start; }
.v-brand-creative-budget .v-section-head p { max-width: 620px; }
.v-brand-creative-values { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; margin-top: 12px; }
.v-brand-creative-values span { display: grid; gap: 4px; min-width: 0; padding: 9px; border: 1px solid var(--line); background: var(--surface); }
.v-brand-creative-values small { color: var(--faint); font-size: 7.5px; text-transform: uppercase; letter-spacing: .04em; }
.v-brand-creative-values strong { font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.v-brand-creative-period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 8px; }
.v-budget-name { margin-bottom: 5px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 10px; }
.v-budget-name span { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.v-budget-track { height: 6px; overflow: hidden; background: #ecece8; }
.v-budget-track span { display: block; height: 100%; background: var(--accent); }
.v-budget-values { margin-top: 5px; display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; color: var(--faint); font-size: 8px; }
.v-budget-values span { display: grid; gap: 2px; }
.v-budget-values b { color: var(--ink-soft); font-size: 9px; font-weight: 610; font-variant-numeric: tabular-nums; }
.v-autonomy-row { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 18px; }
.v-autonomy-row > div { display: grid; gap: 3px; }
.v-autonomy-row span { color: var(--muted); font-size: 9px; }
.v-autonomy-row p, .v-footnote { margin: 0; color: var(--faint); font-size: 8.5px; line-height: 1.45; }
.v-footnote { margin-top: 11px; }
.v-budget-editor { margin-top: 16px; padding: 15px; border: 1px solid var(--line-strong); background: var(--surface-subtle); display: grid; gap: 12px; }
.v-editor-head { display: flex; justify-content: space-between; gap: 12px; }
.v-editor-head strong { font-size: 10px; }
.v-editor-head p { margin: 4px 0 0; color: var(--muted); font-size: 8.5px; }
.v-budget-inputs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.v-budget-inputs.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.v-budget-editor label { min-width: 0; display: grid; gap: 5px; }
.v-budget-editor label > span { color: var(--muted); font-size: 8px; }
.v-budget-editor input, .v-budget-editor select, .v-budget-editor textarea { width: 100%; min-height: 32px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; color: var(--ink); font-size: 9px; }
.v-autonomy-setup { display: grid; gap: 11px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: color-mix(in srgb, var(--surface) 80%, var(--accent-soft)); }
.v-autonomy-setup.compact { padding: 9px 11px; }
.v-autonomy-setup.compact p, .v-autonomy-setup .v-section-head p { margin: 2px 0 0; color: var(--muted); font-size: 8.5px; line-height: 1.45; }
.v-autonomy-setup.ready { border-color: color-mix(in srgb, var(--green) 42%, var(--line)); }
.v-autonomy-setup.blocked { border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); }
.v-mini-label { display: block; margin-bottom: 6px; color: var(--faint); font-size: 7.5px; letter-spacing: .07em; text-transform: uppercase; }
.v-status-dot.ready { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; }
.v-inline-spinner { width: 15px; height: 15px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.v-authority-scope-list { display: grid; gap: 5px; }
.v-authority-scope-list > span { display: grid; grid-template-columns: minmax(80px,.6fr) minmax(80px,.6fr) minmax(150px,1.8fr); align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 8px; }
.v-authority-scope-list code { overflow: hidden; color: var(--muted); text-overflow: ellipsis; }
.v-authority-scope-list small { color: var(--faint); line-height: 1.35; }
.v-trust-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.v-trust-checks > span { display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: center; gap: 2px 6px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 8px; }
.v-trust-checks > span i { grid-row: 1 / 3; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-style: normal; }
.v-trust-checks > span.blocked i { background: var(--amber-soft); color: var(--amber); }
.v-trust-checks small { color: var(--faint); }
.v-budget-editor label.v-authority-ack { grid-template-columns: 18px minmax(0,1fr); align-items: start; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.v-budget-editor label.v-authority-ack input { width: 15px; min-height: 15px; height: 15px; margin-top: 1px; }
.v-budget-editor label.v-authority-ack span { color: var(--ink); line-height: 1.45; }
.v-budget-form-error { margin: 0; padding: 8px; background: var(--red-soft); color: var(--red); font-size: 8.5px; }

.v-creative-autonomy-panel { margin-top: 14px; padding: 16px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 15px; }
.v-creative-autonomy-panel > .v-section-head { align-items: flex-start; }
.v-creative-autonomy-panel > .v-section-head p { max-width: 720px; margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.v-autonomy-mode-summary { border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.v-autonomy-mode-summary > div { min-width: 0; padding: 13px 14px; }
.v-autonomy-mode-summary > div + div { border-left: 1px solid var(--line); }
.v-autonomy-mode-summary span, .v-autonomy-proof-grid > section > span, .v-autonomy-scope-grid > div > span, .v-review-exceptions > span, .v-autonomy-save-proof > span { display: block; margin-bottom: 5px; color: var(--faint); font-size: 10px; font-weight: 660; letter-spacing: .045em; text-transform: uppercase; }
.v-autonomy-mode-summary strong { color: var(--ink); font-size: 14px; }
.v-autonomy-mode-summary p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.v-autonomy-mode-summary code { overflow-wrap: anywhere; }
.v-autonomy-alert { padding: 11px 13px; border-left: 3px solid var(--amber); background: var(--amber-soft); }
.v-autonomy-alert strong { color: var(--amber); }
.v-autonomy-alert p { margin: 4px 0; color: var(--ink-soft); line-height: 1.5; }
.v-autonomy-alert code { color: var(--amber); overflow-wrap: anywhere; }
.v-autonomy-proof-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--line); }
.v-autonomy-proof-grid > section { min-width: 0; padding: 12px; }
.v-autonomy-proof-grid > section:nth-child(even) { border-left: 1px solid var(--line); }
.v-autonomy-proof-grid > section:nth-child(n+3) { border-top: 1px solid var(--line); }
.v-autonomy-proof-grid dl { margin: 0; display: grid; gap: 7px; }
.v-autonomy-proof-grid dl > div { min-width: 0; display: grid; grid-template-columns: minmax(90px,.65fr) minmax(0,1.35fr); gap: 9px; }
.v-autonomy-proof-grid dt { color: var(--faint); }
.v-autonomy-proof-grid dd { min-width: 0; margin: 0; display: grid; gap: 2px; color: var(--ink-soft); }
.v-autonomy-proof-grid code, .v-proof-bound code { overflow-wrap: anywhere; color: var(--muted); font: 11px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace; }
.v-proof-bound { margin: 9px 0 0; padding-top: 8px; border-top: 1px solid var(--line); color: var(--faint); line-height: 1.5; }
.v-autonomy-decisions { border: 1px solid var(--line); }
.v-autonomy-decisions > .v-section-head { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.v-autonomy-decisions > .v-section-head p, .v-autonomy-scope > .v-section-head p { margin: 3px 0 0; color: var(--muted); line-height: 1.45; }
.v-autonomy-decisions ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); list-style: none; }
.v-autonomy-decisions li { min-width: 0; padding: 11px 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 9px; }
.v-autonomy-decisions li:nth-child(odd) { border-right: 1px solid var(--line); }
.v-autonomy-decisions li:nth-last-child(-n+2) { border-bottom: 0; }
.v-autonomy-decisions li > div { min-width: 0; display: grid; gap: 3px; }
.v-autonomy-decisions li strong { color: var(--ink-soft); }
.v-autonomy-decisions li p { margin: 0; color: var(--muted); line-height: 1.45; }
.v-autonomy-decisions li small { color: var(--faint); overflow-wrap: anywhere; }
.v-decision-mark { width: 24px; height: 24px; border-radius: 50%; background: var(--red-soft); display: grid; place-items: center; color: var(--red); font-weight: 700; }
.v-decision-mark.allowed { background: var(--green-soft); color: var(--green); }
.v-decision-mark.approval { background: var(--amber-soft); color: var(--amber); }
.v-autonomy-scope { display: grid; gap: 12px; }
.v-autonomy-scope > .v-section-head { align-items: flex-start; }
.v-autonomy-scope-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 16px; }
.v-autonomy-scope-grid > .wide { grid-column: 1 / -1; }
.v-autonomy-accounts { display: grid; gap: 6px; }
.v-autonomy-accounts article { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); background: var(--surface-subtle); display: grid; grid-template-columns: minmax(160px,.7fr) minmax(0,1.3fr); gap: 12px; }
.v-autonomy-accounts article > div { min-width: 0; display: grid; align-content: start; gap: 3px; }
.v-autonomy-accounts article code { overflow-wrap: anywhere; color: var(--muted); }
.v-autonomy-accounts article span, .v-autonomy-accounts article small { color: var(--faint); }
.v-review-exceptions { padding-top: 11px; border-top: 1px solid var(--line); }
.v-review-exceptions ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; list-style: none; }
.v-review-exceptions li { min-width: 0; padding: 8px 9px; border: 1px solid var(--line); display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 7px; }
.v-review-exceptions li > i { width: 19px; height: 19px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; color: var(--green); font-style: normal; }
.v-review-exceptions li.missing > i { background: var(--red-soft); color: var(--red); }
.v-review-exceptions li > span { min-width: 0; display: grid; gap: 2px; }
.v-review-exceptions code { overflow-wrap: anywhere; color: var(--faint); }
.v-creative-autonomy-editor { padding: 15px; border: 1px solid var(--line-strong); background: var(--surface-subtle); display: grid; gap: 13px; }
.v-creative-autonomy-editor fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.v-creative-autonomy-editor legend { margin-bottom: 8px; padding: 0; color: var(--ink); font-size: 13px; font-weight: 680; }
.v-autonomy-mode-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.v-autonomy-mode-choices legend { grid-column: 1 / -1; }
.v-autonomy-mode-choices > label { min-width: 0; padding: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: start; gap: 8px; cursor: pointer; }
.v-autonomy-mode-choices > label.selected { border-color: color-mix(in srgb,var(--accent) 48%,var(--line)); box-shadow: inset 2px 0 var(--accent); }
.v-autonomy-mode-choices > label.unavailable { opacity: .58; cursor: not-allowed; }
.v-autonomy-mode-choices input, .v-autonomy-check-grid input, .v-autonomy-editor-grid input, .v-fixed-exceptions input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--accent); }
.v-autonomy-mode-choices label > span, .v-autonomy-check-grid label > span, .v-fixed-exceptions label > span { min-width: 0; display: grid; gap: 3px; }
.v-autonomy-mode-choices small { color: var(--muted); line-height: 1.45; }
.v-autonomy-check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.v-autonomy-check-grid legend { grid-column: 1 / -1; }
.v-autonomy-check-grid > label { min-width: 0; padding: 9px; border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: start; gap: 8px; }
.v-autonomy-check-grid code, .v-fixed-exceptions code { overflow-wrap: anywhere; color: var(--faint); }
.v-autonomy-check-grid small { color: var(--muted); }
.v-autonomy-editor-grid { display: grid; grid-template-columns: minmax(160px,.55fr) minmax(0,1.45fr); gap: 14px; }
.v-autonomy-editor-grid fieldset { display: grid; align-content: start; gap: 7px; }
.v-autonomy-editor-grid label { display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: start; gap: 7px; }
.v-fixed-exceptions { padding: 11px !important; border: 1px solid var(--line) !important; background: var(--surface) !important; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 14px; }
.v-fixed-exceptions legend { grid-column: 1 / -1; margin: 0; }
.v-fixed-exceptions > p { grid-column: 1 / -1; margin: 0 0 3px; color: var(--muted); line-height: 1.45; }
.v-fixed-exceptions label { min-width: 0; display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 7px; }
.v-creative-autonomy-editor .v-full-field { display: grid; gap: 6px; }
.v-creative-autonomy-editor textarea { width: 100%; min-height: 78px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.v-creative-autonomy-editor textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.v-autonomy-save-proof { padding: 10px; border-left: 3px solid var(--accent); background: var(--surface); display: grid; gap: 4px; }
.v-autonomy-save-proof code { overflow-wrap: anywhere; color: var(--muted); }
.v-creative-autonomy-editor > .v-primary { justify-self: end; }
.v-business-node.tiktok-identity.selected { border-color: color-mix(in srgb,var(--green) 45%,var(--line)); box-shadow: inset 2px 0 var(--green); }

.v-performance { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.v-metric-card { min-height: 110px; padding: 14px; border: 1px solid var(--line); background: var(--surface-subtle); display: grid; align-content: space-between; }
.v-metric-card span, .v-metric-card small { color: var(--faint); font-size: 9px; }
.v-metric-card strong { margin: 10px 0; font-size: 24px; font-weight: 610; letter-spacing: -.04em; }
.v-wide-note { grid-column: 1 / -1; padding: 16px; border-left: 2px solid var(--accent); background: var(--accent-soft); }
.v-wide-note p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.v-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.v-entity-card { min-height: 140px; padding: 13px; border: 1px solid var(--line); background: var(--surface-subtle); }
.v-entity-card h4 { margin: 12px 0 6px; font-size: 11px; }
.v-entity-card p { color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.v-entity-card small { color: var(--faint); font-size: 8px; }
.v-timeline { padding: 8px 8px 8px 18px; }
.v-timeline article { position: relative; padding: 0 0 22px 24px; border-left: 1px solid var(--line-strong); display: grid; grid-template-columns: 1fr; }
.v-timeline article > i { position: absolute; left: -4px; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.v-timeline article > i.success { background: var(--green); }
.v-timeline article > i.warning { background: var(--amber); }
.v-timeline article > i.danger { background: var(--red); }
.v-timeline p { margin: 4px 0; color: var(--muted); font-size: 10px; }
.v-timeline time { color: var(--faint); font-size: 8px; }

.v-task-controls { margin: 0 0 14px; padding: 15px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); display: grid; gap: 12px; }
.v-task-controls > .v-section-head { align-items: flex-start; }
.v-task-boundary { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.5; }
.v-task-snapshot { margin: 0; border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.v-task-snapshot > div { min-width: 0; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v-task-snapshot > div + div { border-left: 1px solid var(--line); }
.v-task-snapshot dt { color: var(--faint); }
.v-task-snapshot dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.v-task-snapshot code, .v-task-confirm-snapshot code, .v-event-cursor code { color: var(--ink-soft); font: 650 11px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; font-variant-numeric: tabular-nums; }
.v-task-control-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.v-task-control-actions > button { width: 100%; }
.v-task-controls > .v-muted { margin: -3px 0 0; }
.v-danger-control { min-height: 34px; padding: 7px 12px; border: 1px solid color-mix(in srgb,var(--red) 48%,var(--line)); border-radius: 8px; background: var(--surface); color: var(--red); cursor: pointer; font-size: 11px; font-weight: 650; white-space: nowrap; }
.v-danger-control:hover { border-color: var(--red); background: var(--red-soft); }
.v-task-control-actions button:disabled, .v-task-control-confirmation button:disabled { opacity: .38; cursor: not-allowed; }
.v-task-control-actions button:disabled:hover { border-color: var(--line-strong); background: var(--surface); color: var(--ink-soft); }
.v-task-control-actions .v-danger-control:disabled:hover { color: var(--red); }
.v-task-control-notice { margin: 0; padding: 9px 11px; border-left: 2px solid var(--amber); background: var(--amber-soft); color: var(--ink-soft); line-height: 1.45; }
.v-task-control-confirmation { padding: 14px; border: 1px solid var(--line-strong); background: var(--surface-subtle); display: grid; gap: 10px; }
.v-task-control-confirmation > div:first-child p, .v-task-control-confirmation > p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.v-task-confirm-snapshot { border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.v-task-confirm-snapshot span { padding: 9px 10px; display: flex; justify-content: space-between; gap: 10px; color: var(--faint); }
.v-task-confirm-snapshot span + span { border-left: 1px solid var(--line); }
.v-task-control-confirmation label { display: grid; gap: 6px; color: var(--muted); }
.v-task-control-confirmation textarea { width: 100%; min-height: 72px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.v-task-control-confirmation textarea:focus-visible { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.v-task-event-state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted) !important; font-weight: 650; }
.v-task-event-state::before { width: 7px; height: 7px; border-radius: 50%; background: var(--green); content: ''; }
.v-task-event-state.catching_up::before, .v-task-event-state.idle::before { background: var(--amber); }
.v-task-event-state.degraded::before { background: var(--red); }
.v-task-events { display: grid; gap: 12px; }
.v-event-cursor { border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.v-event-cursor > span { padding: 10px 12px; display: flex; justify-content: space-between; gap: 10px; color: var(--faint); }
.v-event-cursor > span + span { border-left: 1px solid var(--line); }
.v-task-events .v-inline-error { margin: 0; }
.v-event-list { max-height: 560px; margin: 0; padding: 0; border: 1px solid var(--line); overflow: auto; list-style: none; }
.v-event-list li { min-width: 0; padding: 11px 12px; display: grid; grid-template-columns: 58px minmax(0,1fr); align-items: start; gap: 12px; }
.v-event-list li + li { border-top: 1px solid var(--line); }
.v-event-list li > div { min-width: 0; }
.v-event-list strong { color: var(--ink-soft); }
.v-event-list p { margin: 3px 0 4px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.v-event-list small { color: var(--faint); }
.v-event-sequence { color: var(--accent); font: 650 11px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace; font-variant-numeric: tabular-nums; }

.v-creative-authority-note { margin: -8px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface-subtle); display: flex; align-items: flex-start; gap: 11px; }
.v-creative-authority-note > span { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); display: grid; place-items: center; flex: none; color: white; font-weight: 720; }
.v-creative-authority-note strong { color: var(--ink); }
.v-creative-authority-note p { max-width: 780px; margin: 3px 0 0; color: var(--muted); line-height: 1.5; }

.v-creative-compose { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 14px; }
.v-form-card { padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.v-step { margin: 0 0 11px; display: flex; align-items: flex-start; gap: 10px; }
.v-step > span { width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); font-size: 9px; font-weight: 700; }
.v-step strong { font-size: 11px; }
.v-step p { margin: 3px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.v-form-card textarea { width: 100%; margin-bottom: 20px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 7px; resize: vertical; color: var(--ink); line-height: 1.5; }
.v-provider-choice { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.v-provider-choice label { min-height: 82px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-subtle); display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.v-provider-choice label:has(input:checked) { border-color: rgba(63,86,197,.5); background: var(--accent-soft); }
.v-provider-choice label:has(input:disabled) { opacity: .58; cursor: not-allowed; }
.v-provider-choice input { accent-color: var(--accent); }
.v-provider-choice span { display: grid; gap: 6px; }
.v-provider-choice strong { font-size: 9.5px; line-height: 1.35; }
.v-provider-choice small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.v-form-footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.v-form-footer > span { max-width: 450px; display: flex; gap: 7px; color: var(--muted); font-size: 8.5px; line-height: 1.4; }
.v-form-footer > span i { width: 7px; height: 7px; margin-top: 2px; border-radius: 50%; background: var(--amber); flex: none; }
.v-flow-preview { padding: 14px; border: 1px solid var(--line); background: #f9f9f7; display: grid; align-content: start; }
.v-flow-preview div { min-height: 50px; display: grid; grid-template-columns: 25px 1fr; grid-template-rows: auto auto; align-items: center; gap: 0 8px; }
.v-flow-preview span { grid-row: 1 / span 2; width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 7px; background: white; display: grid; place-items: center; color: var(--accent); font-size: 8px; }
.v-flow-preview strong { font-size: 9.5px; }
.v-flow-preview i { color: var(--faint); font-style: normal; font-size: 9px; }
.v-creative-filters { margin-bottom: 10px; padding: 11px 12px; border: 1px solid var(--line); background: var(--surface); }
.v-filter-heading { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v-filter-heading > div { display: flex; align-items: baseline; gap: 8px; }
.v-filter-heading strong { color: var(--ink-soft); font-size: 10px; }
.v-filter-heading span { color: var(--faint); font-size: 8.5px; font-variant-numeric: tabular-nums; }
.v-filter-heading .v-link:disabled { color: var(--faint); cursor: default; opacity: .65; }
.v-filter-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; }
.v-filter-field { min-width: 0; display: grid; gap: 5px; }
.v-filter-field > span { color: var(--muted); font-size: 8px; font-weight: 620; }
.v-filter-field select { width: 100%; min-height: 32px; padding: 6px 25px 6px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink-soft); font-size: 8.5px; text-overflow: ellipsis; }
.v-filter-field small { min-height: 12px; overflow: hidden; color: var(--faint); font-size: 7.2px; line-height: 1.35; text-overflow: ellipsis; }
.v-filter-field.unavailable { opacity: .72; }
.v-filter-field.unavailable select { background: var(--surface-subtle); color: var(--faint); }
.v-filter-note { margin: 7px 0 0; color: var(--amber); font-size: 8px; line-height: 1.45; }
.v-filter-empty { min-height: 410px; border: 1px solid var(--line); background: var(--surface); }
.v-master-detail.creative { margin-top: 0; }
.v-creative-detail { display: grid; gap: 20px; }
.v-detail-stats { display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid var(--line); }
.v-detail-stats > div { padding: 12px; border-right: 1px solid var(--line); display: grid; gap: 4px; }
.v-detail-stats > div:last-child { border-right: 0; }
.v-detail-stats span, .v-detail-stats small { color: var(--faint); font-size: 8px; }
.v-detail-stats strong { font-size: 11px; }
.v-version-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.v-version-strip > div { min-height: 70px; padding: 9px; border: 1px solid var(--line); background: var(--surface-subtle); display: grid; grid-template-columns: 24px 1fr; gap: 4px 7px; }
.v-version-strip > div > span { grid-row: 1 / span 2; width: 23px; height: 23px; border-radius: 6px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); font-size: 8px; }
.v-version-strip strong { font-size: 8.5px; }
.v-version-strip small { color: var(--faint); font: 7px/1.3 ui-monospace,monospace; }
.v-version-comparison { padding: 13px; border: 1px solid var(--line); background: var(--surface-subtle); }
.v-version-comparison > .v-section-head { align-items: flex-start; }
.v-version-comparison > .v-section-head > div { max-width: 570px; }
.v-version-comparison > .v-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 8.5px; line-height: 1.5; }
.v-version-comparison > .v-section-head > span { max-width: 260px; padding-left: 12px; border-left: 2px solid var(--accent); color: var(--muted); line-height: 1.45; text-align: right; }
.v-compare-controls { margin: 12px 0 8px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(150px,.8fr); gap: 7px; align-items: end; }
.v-compare-controls > label { min-width: 0; display: grid; gap: 5px; }
.v-compare-controls > label > span { color: var(--muted); font-size: 8px; font-weight: 620; }
.v-compare-controls select { width: 100%; min-height: 34px; padding: 6px 26px 6px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink-soft); font-size: 8.5px; text-overflow: ellipsis; }
.v-compare-controls > p { min-height: 34px; margin: 0; padding: 6px 8px; border-left: 2px solid var(--accent); background: var(--accent-soft); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 5px; color: var(--muted); font-size: 8px; }
.v-compare-controls > p strong { color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; }
.v-compare-controls > p small { grid-column: 1 / -1; overflow: hidden; color: var(--faint); font-size: 7px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.v-compare-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--line); background: var(--surface); }
.v-compare-column { min-width: 0; padding: 11px; display: grid; align-content: start; gap: 12px; }
.v-compare-column + .v-compare-column { border-left: 1px solid var(--line); }
.v-compare-column > header { display: grid; grid-template-columns: 25px minmax(0,1fr); align-items: start; gap: 8px; }
.v-compare-column > header > span { width: 24px; height: 24px; border-radius: 6px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); font-size: 9px; font-weight: 720; }
.v-compare-column > header > div { min-width: 0; display: grid; gap: 3px; }
.v-compare-column > header strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.v-compare-column code { overflow-wrap: anywhere; color: var(--faint); font: 7px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace; }
.v-compare-column figure { margin: 0; border: 1px solid var(--line); background: #111; overflow: hidden; }
.v-compare-column figure img, .v-compare-column figure video { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: contain; }
.v-compare-column figcaption { padding: 6px 8px; background: var(--surface-subtle); color: var(--faint); font: 7px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; }
.v-compare-media-empty { aspect-ratio: 16 / 9; padding: 12px; display: grid; place-content: center; gap: 5px; background: var(--surface-subtle); color: var(--faint); text-align: center; font-size: 8px; }
.v-compare-facts { margin: 0; display: grid; }
.v-compare-facts > div { padding: 7px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 8px; }
.v-compare-facts dt { color: var(--faint); font-size: 7.5px; }
.v-compare-facts dd { min-width: 0; margin: 0; display: grid; gap: 3px; color: var(--ink-soft); font-size: 8px; text-align: right; }
.v-compare-facts dd strong { overflow-wrap: anywhere; font-weight: 610; }
.v-compare-facts dd small { color: var(--faint); font-size: 7px; line-height: 1.4; }
.v-compare-column > section h6 { margin: 0 0 6px; color: var(--ink-soft); font-size: 8px; }
.v-compare-column > section > p { margin: 0; color: var(--faint); font-size: 7.5px; }
.v-compare-variables { margin: 0; display: grid; gap: 4px; }
.v-compare-variables > div { padding: 6px 7px; background: var(--surface-subtle); display: grid; grid-template-columns: minmax(70px,.7fr) minmax(0,1.3fr); gap: 8px; }
.v-compare-variables dt { overflow-wrap: anywhere; color: var(--muted); font: 7px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace; }
.v-compare-variables dd { margin: 0; overflow-wrap: anywhere; color: var(--ink-soft); font-size: 7.5px; line-height: 1.4; text-align: right; }
.v-compare-records { display: grid; gap: 4px; }
.v-compare-records > div { padding: 6px 7px; border-left: 2px solid var(--line-strong); background: var(--surface-subtle); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 8px; }
.v-compare-records strong { overflow: hidden; color: var(--ink-soft); font-size: 7.8px; text-overflow: ellipsis; white-space: nowrap; }
.v-compare-records span { color: var(--muted); font-size: 7px; text-align: right; }
.v-compare-records code { grid-column: 1 / -1; }
.v-compare-unavailable { margin-top: 10px; min-height: 74px; padding: 14px; border: 1px dashed var(--line-strong); display: grid; place-items: center; color: var(--muted); font-size: 8.5px; text-align: center; }
.v-media-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.v-media-grid figure, .v-media-unavailable { min-height: 120px; margin: 0; border: 1px solid var(--line); background: var(--surface-subtle); overflow: hidden; }
.v-media-grid img, .v-media-grid video { width: 100%; aspect-ratio: 1 / 1; display: block; background: #111; object-fit: contain; }
.v-media-grid figcaption { padding: 7px; color: var(--faint); font: 7.5px/1.4 ui-monospace,monospace; }
.v-media-unavailable { padding: 12px; display: grid; place-content: center; gap: 6px; color: var(--faint); text-align: center; font-size: 8px; }
.v-media-unavailable code { font-size: 7px; }
.v-table > div { padding: 7px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 100px 90px; gap: 10px; font-size: 9px; }
.v-table code { color: var(--faint); font-size: 8px; }
.v-jobs-table > div > span:first-child { display: grid; gap: 3px; }
.v-jobs-table small { color: var(--faint); font-size: 7.5px; }
.v-deployment-list { display: grid; gap: 8px; }
.v-deployment-row { padding: 11px; border: 1px solid var(--line); background: var(--surface-subtle); display: grid; gap: 9px; }
.v-deployment-row > div:first-child { display: flex; align-items: center; gap: 8px; }
.v-deployment-row > div:first-child strong { font-size: 9px; }
.v-deployment-row > small { color: var(--faint); font-size: 8px; line-height: 1.5; }
.v-deployment-path { display: grid; grid-template-columns: repeat(7, auto); align-items: center; justify-content: start; gap: 7px; overflow-x: auto; }
.v-deployment-path > span { min-width: 105px; display: grid; gap: 3px; }
.v-deployment-path small { color: var(--faint); font-size: 7.5px; }
.v-deployment-path strong { font-size: 8.5px; }
.v-deployment-path code { color: var(--faint); font-size: 7px; }
.v-deployment-path > i { color: var(--faint); font-style: normal; }
.v-version-command, .v-placement-command { padding: 13px; border: 1px solid var(--line); background: var(--surface-subtle); display: grid; gap: 10px; }
.v-version-command .v-section-head, .v-placement-command .v-section-head { margin: 0; }
.v-version-command .v-section-head p, .v-placement-command .v-section-head p { margin: 3px 0 0; color: var(--muted); font-size: 8.5px; line-height: 1.45; }
.v-version-command label, .v-placement-fields label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; }
.v-version-command textarea, .v-version-command select, .v-placement-fields select { width: 100%; min-height: 34px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; }
.v-version-command textarea { min-height: 74px; resize: vertical; line-height: 1.45; }
.v-placement-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.v-placement-summary { margin: 0; padding: 8px 10px; background: var(--accent-soft); color: var(--ink-soft); font-size: 8.5px; }
.v-placement-summary i { margin: 0 5px; color: var(--accent); font-style: normal; }
.v-chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.v-chip { display: inline-flex; align-items: center; min-height: 19px; padding: 3px 7px; border-radius: 10px; background: #ecece8; color: var(--muted); font-size: 8px; }
.v-chip.success { background: var(--green-soft); color: var(--green); }
.v-chip.warning { background: var(--amber-soft); color: var(--amber); }
.v-relation-chip { border: 0; cursor: pointer; font: inherit; }
.v-relation-chip:hover, .v-relation-chip:focus-visible { outline: 1px solid var(--accent); color: var(--accent); }
.v-competency-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.v-relation-detail { margin-top: 12px; padding: 11px; border-left: 2px solid var(--accent); background: var(--accent-soft); }
.v-relation-detail h5 { margin: 0 0 6px; }
.v-relation-detail p { margin: 5px 0; color: var(--ink-soft); font-size: 8.5px; line-height: 1.5; }
.v-relation-detail small { color: var(--faint); font-size: 7.5px; }
.v-action-row { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }

.v-engine-controls { display: flex; align-items: center; gap: 10px; }
.v-engine-controls .v-tabs { margin-right: auto; }
.v-search { min-width: 190px; height: 32px; padding: 0 8px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; gap: 6px; }
.v-search span { color: var(--faint); }
.v-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 10px; }
.v-count { color: var(--faint); font: 9px/1 ui-monospace,monospace; white-space: nowrap; }
.v-inline-warning { margin-bottom: 12px; padding: 11px 13px; border-left: 2px solid var(--amber); background: var(--amber-soft); }
.v-inline-warning strong { color: var(--amber); font-size: 9.5px; }
.v-inline-warning p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.v-data-model { margin-top: 14px; border: 1px solid var(--line); background: var(--surface); }
.v-data-model > summary { min-height: 42px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 10px; font-weight: 650; }
.v-data-model > summary span { color: var(--faint); font: 8px/1 ui-monospace,monospace; }
.v-data-model > p { margin: 0; padding: 0 13px 13px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.v-data-model > div { padding: 13px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.v-data-model section { display: grid; gap: 9px; }
.v-data-model section > strong { font-size: 9px; }
.v-data-model .v-chip-row code { padding: 4px 6px; border-radius: 9px; background: var(--surface-subtle); color: var(--ink-soft); font-size: 7.5px; }
.v-data-model > small { padding: 0 13px 13px; display: block; color: var(--faint); font: 8px/1.4 ui-monospace,monospace; }

.v-connection-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.v-connection-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.v-connection-card[data-connection-state="connected"] { border-top: 2px solid var(--green); }
.v-connection-card[data-connection-state="attention"] { border-top: 2px solid var(--amber); }
.v-connection-card > header { min-height: 66px; padding: 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 9px; }
.v-connection-card h4 { margin: 0; font-size: 11px; }
.v-connection-card header p { margin: 4px 0 0; display: flex; align-items: center; gap: 5px; color: var(--faint); font-size: 8.5px; }
.v-connection-card header p i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.v-connection-card header p i.ok { background: var(--green); }
.v-connection-card header p i.warn { background: var(--amber); }
.v-provider-account-name { display: block; max-width: 24ch; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.v-method-statuses { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.v-method-status { min-width: 0; padding: 8px 10px; background: var(--surface-subtle); display: grid; grid-template-columns: 7px 1fr; align-items: center; gap: 2px 6px; }
.v-method-status i { grid-row: 1 / 3; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.v-method-status.connected i { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.v-method-status.attention i { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.v-method-status strong { overflow: hidden; color: var(--ink-soft); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.v-method-status small { color: var(--faint); font-size: 7.5px; }
.v-connect-actions { display: flex; align-items: center; gap: 7px; }
.v-connect-actions .v-link { white-space: nowrap; }
.v-provider-mark { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: white; font-weight: 750; }
.v-provider-mark.tiktok_ads { background: #15171d; }
.v-provider-mark.meta { background: #4267b2; }
.v-provider-mark.google_ads { background: #4285f4; }
.v-connection-empty { min-height: 150px; padding: 24px 16px; display: grid; place-items: center; color: var(--faint); font-size: 9.5px; line-height: 1.5; text-align: center; }
.v-account-row { padding: 12px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.v-account-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v-account-title strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
.v-account-title code { color: var(--faint); font-size: 8px; }
.v-connection-card:has(.v-connection-detail) { grid-column: 1 / -1; }
.v-connection-journey { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
.v-connection-journey::before { content: ''; position: absolute; top: 11px; left: 8%; right: 8%; height: 1px; background: var(--line-strong); }
.v-connection-journey > div { min-width: 0; position: relative; display: grid; justify-items: center; gap: 5px; text-align: center; }
.v-connection-journey > div > span { width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--faint); font: 8px/1 ui-monospace,monospace; }
.v-connection-journey > div.ready > span { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.v-connection-journey p { min-width: 0; margin: 0; display: grid; gap: 2px; }
.v-connection-journey strong { overflow: hidden; color: var(--ink-soft); font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.v-connection-journey small { overflow: hidden; color: var(--faint); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.v-readiness { display: flex; gap: 5px; }
.v-readiness span { padding: 3px 6px; border-radius: 9px; font-size: 7.5px; }
.v-readiness .ok { background: var(--green-soft); color: var(--green); }
.v-readiness .warn { background: var(--amber-soft); color: var(--amber); }
.v-account-row dl { margin: 0; display: grid; gap: 5px; }
.v-account-row dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 8px; }
.v-account-row dt { color: var(--faint); }
.v-account-row dd { margin: 0; color: var(--muted); }
.v-account-row .v-manage-account { justify-self: start; }
.v-connection-detail { margin: 2px -12px -12px; padding: 14px; border-top: 1px solid var(--line); background: var(--surface-subtle); display: grid; gap: 13px; }
.v-business-assets-panel { padding: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.v-business-assets-panel.unavailable { background: var(--surface-subtle); }
.v-business-assets-panel > .v-section-head { align-items: flex-start; }
.v-business-assets-panel > .v-section-head p { max-width: 680px; margin: 3px 0 0; color: var(--muted); font-size: 8.5px; line-height: 1.5; }
.v-business-assets-panel.unavailable > .v-secondary { justify-self: start; }
.v-business-assets-empty { min-height: 72px; padding: 12px; border: 1px dashed var(--line-strong); display: grid; place-content: center; gap: 4px; color: var(--muted); text-align: center; }
.v-business-assets-empty strong { font-size: 9px; }
.v-business-assets-empty p { margin: 0; color: var(--faint); font-size: 8px; }
.v-asset-discovery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); }
.v-asset-discovery > div { min-width: 0; padding: 9px; border-right: 1px solid var(--line); display: grid; gap: 4px; }
.v-asset-discovery > div:last-child { border-right: 0; }
.v-asset-discovery span { color: var(--faint); font-size: 7.5px; }
.v-asset-discovery strong { overflow-wrap: anywhere; color: var(--ink-soft); font-size: 8.5px; }
.v-asset-discovery small { color: var(--faint); font-size: 7px; line-height: 1.4; }
.v-business-hierarchy { padding: 8px; border: 1px solid var(--line); background: var(--surface-subtle); overflow-x: auto; }
.v-business-hierarchy ol { min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.v-business-hierarchy li { min-width: 0; }
.v-business-group > ol, .v-business-hierarchy li > ol { margin: 6px 0 0 17px; padding-left: 13px; border-left: 1px solid var(--line-strong); }
.v-business-node { min-width: 430px; padding: 7px 8px; border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 24px minmax(0,1fr) minmax(150px,.65fr); align-items: center; gap: 8px; }
.v-business-node > span { width: 23px; height: 23px; border-radius: 6px; background: var(--surface-subtle); display: grid; place-items: center; color: var(--muted); font: 700 8px/1 ui-monospace,monospace; }
.v-business-node.business > span { background: var(--ink); color: var(--surface); }
.v-business-node.account > span { background: var(--accent-soft); color: var(--accent); }
.v-business-node.asset.inactive { opacity: .62; }
.v-business-node > div { min-width: 0; display: grid; gap: 2px; }
.v-business-node > div small { color: var(--faint); font-size: 7px; }
.v-business-node > div strong { overflow: hidden; color: var(--ink-soft); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.v-business-node code { overflow-wrap: anywhere; color: var(--faint); font: 7px/1.35 ui-monospace,monospace; }
.v-business-node > p { min-width: 0; margin: 0; display: grid; justify-items: end; gap: 2px; text-align: right; }
.v-business-node > p b { color: var(--muted); font-size: 7.5px; font-weight: 650; }
.v-business-node > p small { color: var(--faint); font-size: 7px; }
.v-business-node > p em { color: var(--green); font-size: 7px; font-style: normal; }
.v-business-branch-empty { margin: 6px 0 0 17px; padding: 7px 9px; border-left: 1px solid var(--line-strong); color: var(--faint); font-size: 7.5px; }
.v-current-publish-identity { padding: 10px; border-left: 3px solid var(--green); background: var(--green-soft); display: grid; grid-template-columns: minmax(180px,.65fr) minmax(0,1.35fr); gap: 12px; }
.v-current-publish-identity.empty { border-left-color: var(--line-strong); background: var(--surface-subtle); grid-template-columns: 1fr; }
.v-current-publish-identity > div > strong { color: var(--ink-soft); font-size: 9px; }
.v-current-publish-identity > div > p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.v-current-publish-identity dl { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 12px; }
.v-current-publish-identity dl > div { min-width: 0; display: grid; gap: 2px; }
.v-current-publish-identity dt { color: var(--faint); font-size: 7px; }
.v-current-publish-identity dd { min-width: 0; margin: 0; display: grid; gap: 2px; color: var(--ink-soft); font-size: 8px; }
.v-current-publish-identity code { overflow-wrap: anywhere; color: var(--muted); font: 7px/1.35 ui-monospace,monospace; }
.v-current-publish-identity dd small { color: var(--faint); font-size: 7px; }
.v-meta-identity-form { padding: 10px; border: 1px solid var(--line); background: var(--surface-subtle); display: grid; gap: 9px; }
.v-meta-identity-form > div:first-child > strong { color: var(--ink-soft); font-size: 9px; }
.v-meta-identity-form > div:first-child > p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.v-meta-identity-fields { display: grid; grid-template-columns: minmax(180px,.8fr) repeat(2,minmax(180px,1fr)); gap: 8px; }
.v-meta-identity-fields > label, .v-exact-account { min-width: 0; display: grid; align-content: start; gap: 5px; }
.v-meta-identity-fields > label > span, .v-exact-account > span { color: var(--faint); font-size: 7.5px; font-weight: 620; }
.v-meta-identity-fields select, .v-meta-identity-fields input, .v-exact-account code { width: 100%; min-height: 34px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 8.5px; }
.v-exact-account code { display: flex; align-items: center; overflow-wrap: anywhere; font: 7px/1.35 ui-monospace,monospace; }
.v-meta-identity-fields select:focus, .v-meta-identity-fields input:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.v-meta-identity-fields label > small { color: var(--faint); font-size: 7px; line-height: 1.4; }
.v-meta-identity-reason { grid-column: 1 / -1; }
.v-meta-identity-form > .v-primary { justify-self: end; }
.v-inline-form-error, .v-form-constraint { margin: 0; padding: 7px 9px; color: var(--red); background: var(--red-soft); font-size: 8px; line-height: 1.4; }
.v-form-constraint { color: var(--amber); background: var(--amber-soft); }
.v-readiness-detail { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
.v-readiness-detail > div { min-width: 0; padding: 8px; border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 6px; }
.v-readiness-detail > div > span { color: var(--faint); font-size: 9px; }
.v-readiness-detail > div.ready > span { color: var(--green); }
.v-readiness-detail p { min-width: 0; margin: 0; display: grid; gap: 3px; }
.v-readiness-detail strong { font-size: 8px; }
.v-readiness-detail small { color: var(--faint); font-size: 7.5px; line-height: 1.35; }
.v-connection-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.v-connection-toolbar .v-primary { margin-left: auto; }
.v-inline-confirm { padding: 13px; border: 1px solid rgba(63,86,197,.24); border-left: 3px solid var(--accent); background: var(--surface); display: grid; gap: 8px; }
.v-inline-confirm > strong { font-size: 10px; }
.v-inline-confirm > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.v-inline-confirm label { display: grid; gap: 5px; }
.v-inline-confirm label span, .v-ingestion-form label span { color: var(--faint); font-size: 8px; font-weight: 620; }
.v-inline-confirm input, .v-ingestion-form input, .v-ingestion-form select { width: 100%; height: 34px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink); outline: 0; font-size: 9px; }
.v-inline-confirm input:focus, .v-ingestion-form input:focus, .v-ingestion-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.v-inline-confirm > div { display: flex; justify-content: flex-end; gap: 8px; }
.v-write-gates { border: 1px solid var(--line); background: var(--surface); }
.v-write-gates summary { min-height: 34px; padding: 0 10px; display: flex; align-items: center; cursor: pointer; color: var(--ink-soft); font-size: 9px; font-weight: 650; }
.v-write-gates > div { padding: 0 10px 10px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.v-write-gates p { min-width: 0; margin: 0; padding: 7px; border: 1px solid var(--line); display: grid; grid-template-columns: 14px auto; gap: 2px 5px; }
.v-write-gates p > span { grid-row: 1 / 3; color: var(--red); }
.v-write-gates p.ready > span { color: var(--green); }
.v-write-gates strong { font-size: 8px; }
.v-write-gates small { overflow: hidden; color: var(--faint); font-size: 7.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.v-mcp-selection { padding: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 9px; }
.v-mcp-selection > strong { font-size: 9px; }
.v-mcp-selection > p, .v-mcp-selection > small { margin: 0; color: var(--muted); font-size: 8.5px; line-height: 1.45; }
.v-mcp-selection > div { max-height: 240px; overflow: auto; display: grid; gap: 5px; }
.v-mcp-selection label { padding: 8px; border: 1px solid var(--line); display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 8px; cursor: pointer; }
.v-mcp-selection label:has(input:checked) { border-color: rgba(63,86,197,.4); background: var(--accent-soft); }
.v-mcp-selection label > span { min-width: 0; display: grid; gap: 3px; }
.v-mcp-selection b { font-size: 8.5px; }
.v-mcp-selection small { overflow: hidden; color: var(--faint); font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.v-mcp-selection .v-primary { justify-self: end; }
.v-manifest-approved { padding: 9px 11px; border: 1px solid rgba(36,132,93,.2); background: var(--green-soft); display: flex; align-items: center; gap: 8px; color: var(--green); }
.v-manifest-approved > p { margin: 0; display: grid; gap: 2px; }
.v-manifest-approved strong { font-size: 8.5px; }
.v-manifest-approved small { font-size: 7.5px; }
.v-manifest-review { padding: 12px; border: 1px solid rgba(211,148,38,.3); background: var(--surface); display: grid; gap: 9px; }
.v-manifest-review > summary { cursor: pointer; color: var(--ink); font-size: 9px; font-weight: 700; }
.v-manifest-review > div:first-child { display: flex; justify-content: space-between; gap: 8px; }
.v-manifest-review > div:first-child strong { font-size: 9px; }
.v-manifest-review > div:first-child code { color: var(--faint); font-size: 8px; }
.v-manifest-review > p { margin: 0; color: var(--amber); font-size: 8.5px; line-height: 1.45; }
.v-manifest-tools { max-height: 340px; overflow: auto; display: grid; gap: 5px; }
.v-manifest-tools > label, .v-manifest-tool { padding: 8px; border: 1px solid var(--line); display: grid; grid-template-columns: minmax(160px,1fr) minmax(190px,.8fr); align-items: center; gap: 8px; }
.v-manifest-tools label > span, .v-manifest-tool > span { min-width: 0; display: grid; gap: 3px; }
.v-manifest-tools label > span strong, .v-manifest-tool > span strong { overflow: hidden; font: 8px/1.35 ui-monospace,monospace; text-overflow: ellipsis; white-space: nowrap; }
.v-manifest-tools label > span small, .v-manifest-tool > span small { color: var(--faint); font-size: 7.5px; }
.v-manifest-tools select { width: 100%; height: 32px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 8px; }
.v-manifest-tools details { grid-column: 1 / -1; }
.v-manifest-tools details summary { color: var(--faint); cursor: pointer; font-size: 7.5px; }
.v-manifest-tools details code { max-height: 120px; margin-top: 5px; padding: 7px; overflow: auto; display: block; background: var(--surface-subtle); color: var(--muted); font: 7px/1.4 ui-monospace,monospace; white-space: pre-wrap; word-break: break-word; }
.v-manifest-review > .v-primary { justify-self: end; }
.v-ingestion-panel { display: grid; gap: 10px; }
.v-coverage-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); background: var(--surface); }
.v-coverage-summary > div { min-width: 0; padding: 10px; border-right: 1px solid var(--line); display: grid; gap: 4px; }
.v-coverage-summary > div:last-child { border-right: 0; }
.v-coverage-summary span { color: var(--faint); font-size: 7.5px; }
.v-coverage-summary strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.v-coverage-summary strong.stale { color: var(--amber); }
.v-coverage-intervals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.v-coverage-intervals > div { padding: 8px; border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 7px; }
.v-coverage-intervals strong { font-size: 8px; }
.v-coverage-intervals small { grid-column: 2; color: var(--faint); font-size: 7.5px; }
.v-ingestion-form { padding: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: minmax(160px,1fr) repeat(3,minmax(105px,.48fr)) auto; align-items: end; gap: 8px; }
.v-ingestion-form > div { align-self: center; display: grid; gap: 4px; }
.v-ingestion-form > div strong { font-size: 9px; }
.v-ingestion-form > div small { color: var(--faint); font-size: 7.5px; line-height: 1.35; }
.v-ingestion-form label { display: grid; gap: 5px; }
.v-ingestion-runs { padding: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; }
.v-ingestion-runs > strong { font-size: 9px; }
.v-ingestion-runs > div { padding-top: 6px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 8px; }
.v-ingestion-runs p { margin: 0; display: grid; gap: 3px; }
.v-ingestion-runs b { font-size: 8px; }
.v-ingestion-runs small { color: var(--faint); font-size: 7.5px; }
.v-blocker { margin: 0; padding: 7px; background: var(--amber-soft); color: var(--amber); font-size: 8px; line-height: 1.4; }
.v-safety-note { grid-column: 1 / -1; padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--accent-soft); display: flex; gap: 10px; }
.v-safety-note > span { color: var(--accent); font-size: 19px; }
.v-safety-note strong { font-size: 9.5px; }
.v-safety-note p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }

.v-agent-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); border: 1px solid var(--line); background: var(--surface); }
.v-agent-list { border-right: 1px solid var(--line); background: var(--surface-subtle); }
.v-agent-card { width: 100%; min-height: 64px; padding: 11px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; cursor: pointer; text-align: left; }
.v-agent-card:hover, .v-agent-card.active { background: var(--accent-soft); }
.v-agent-card.builtin { background: var(--surface); cursor: default; }
.v-agent-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; color: white; font-weight: 700; }
.v-agent-card > div, .v-agent-card > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.v-agent-card h4, .v-agent-card strong { margin: 0; font-size: 10px; }
.v-agent-card p, .v-agent-card small { margin: 0; color: var(--faint); font-size: 8.5px; }
.v-agent-card > i { color: var(--faint); font-style: normal; }
.v-agent-setup { max-width: 760px; padding: 22px; }
.v-copy-field { margin-top: 20px; display: grid; gap: 6px; }
.v-copy-field > span, .v-permission-box > span { color: var(--faint); font-size: 8.5px; text-transform: uppercase; letter-spacing: .05em; }
.v-copy-field > div, .v-secret > div { min-height: 38px; padding: 5px 5px 5px 10px; border: 1px solid var(--line); background: var(--surface-subtle); display: flex; align-items: center; gap: 8px; }
.v-copy-field code, .v-secret code { min-width: 0; flex: 1; overflow: hidden; color: var(--ink-soft); font: 9px/1.3 ui-monospace,monospace; text-overflow: ellipsis; white-space: nowrap; }
.v-copy-field button, .v-secret button { height: 26px; padding: 0 8px; border: 0; background: var(--ink); color: white; cursor: pointer; font-size: 8px; }
.v-setup-steps { margin: 20px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.v-setup-steps li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; }
.v-setup-steps span { width: 7px; height: 7px; margin: 4px auto 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.v-setup-steps p { margin: 0; color: var(--ink-soft); font-size: 9.5px; line-height: 1.45; }
.v-permission-box { padding: 11px; background: var(--surface-subtle); }
.v-permission-box p { margin: 6px 0 0; color: var(--muted); font: 8px/1.5 ui-monospace,monospace; }
.v-secret { margin-top: 14px; padding: 12px; border: 1px solid rgba(180,59,53,.25); background: var(--red-soft); }
.v-secret p { margin: 4px 0 9px; color: var(--red); font-size: 8.5px; }
.v-grant-list { margin-top: 14px; border-top: 1px solid var(--line); }
.v-grant-list > div { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.v-grant-list span { display: grid; gap: 3px; }
.v-grant-list strong { font-size: 9px; }
.v-grant-list small { color: var(--faint); font-size: 8px; }

.v-empty-large { min-height: 390px; display: grid; place-content: center; justify-items: center; text-align: center; }
.v-empty-large > span { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--accent); font-size: 21px; }
.v-empty-large h4 { margin: 14px 0 6px; font-size: 14px; }
.v-empty-large p { max-width: 430px; margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.v-empty-compact { padding: 28px 16px; text-align: center; }
.v-empty-compact strong { font-size: 10px; }
.v-empty-compact p { color: var(--faint); font-size: 8.5px; line-height: 1.45; }
.v-inline-error { margin-bottom: 16px; padding: 12px 14px; border: 1px solid rgba(180,59,53,.2); background: var(--red-soft); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.v-inline-error strong { color: var(--red); font-size: 10px; }
.v-inline-error p { margin: 4px 0 0; color: var(--muted); font-size: 8.5px; }
.v-loading { min-height: 330px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); font-size: 10px; }
.v-loading i { width: 13px; height: 13px; border: 1.5px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 750ms linear infinite; }
.v-muted { color: var(--faint); font-size: 9px; }
.v-auth-panel { width: min(430px,100%); margin: 70px auto 0; padding: 28px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.v-auth-mark { width: 38px; height: 38px; margin-bottom: 18px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; color: white; font-weight: 720; }
.v-auth-panel h3 { margin: 5px 0 8px; font-size: 24px; letter-spacing: -.035em; }
.v-auth-panel > p:not(.v-eyebrow) { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.v-auth-panel form { margin-top: 20px; display: grid; gap: 12px; }
.v-auth-panel label { display: grid; gap: 6px; color: var(--muted); font-size: 9px; }
.v-auth-panel input { width: 100%; height: 38px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 7px; font: 10px/1 ui-monospace,monospace; }
.v-auth-panel form > p { margin: 0; padding: 8px; background: var(--red-soft); color: var(--red); font-size: 9px; }
.v-auth-advanced { border-top: 1px solid var(--line); padding-top: 10px; }
.v-auth-advanced summary { cursor: pointer; color: var(--muted); font-size: 8.5px; }
.v-auth-advanced form { margin-top: 10px; }
.verso-context-mark { width: 38px; height: 38px; margin: 0 auto 12px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; color: white; font-weight: 720; }
.v-auth-benefits { margin: 18px auto; max-width: 620px; padding-left: 22px; text-align: left; display: grid; gap: 9px; }
.v-auth-optional { margin: 18px auto; max-width: 620px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle, rgba(0,0,0,.025)); }
.v-auth-link { display: inline-flex; width: auto; margin: 2px auto 8px; text-decoration: none; align-items: center; justify-content: center; }
.v-auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: var(--muted); font-size: 12px; }
.v-auth-divider::before, .v-auth-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.verso-assistant-context { text-align: center; }
.verso-assistant-context .canvas-actions { justify-content: center; }
.verso-hero-mark { background: var(--ink); box-shadow: none; }

/* Workspace readability floor: controls/body 12px, metadata 11px, overlines 10px. */
.verso-surface :is(p, span, strong, b, dd, summary, label, button, input, select, textarea, li) {
  font-size: 12px !important;
}
.verso-surface :is(small, code, time, dt, figcaption),
.verso-surface :is(.v-chip, .v-count, .v-scope-meta, .v-business-node > p em) {
  font-size: 11px !important;
  line-height: 1.45;
}
.verso-surface :is(.v-eyebrow, .v-mini-label, .v-copy-field > span, .v-permission-box > span) {
  font-size: 10px !important;
}
.verso-surface h4 { font-size: 14px !important; }
.verso-surface h5 { font-size: 13px !important; }
.verso-surface h6 { font-size: 12px !important; }
.verso-surface :is(.v-overview-stat strong, .v-metric-card strong) { font-size: 24px !important; }
.verso-surface :is(.v-confidence, .v-version) { font-size: 18px !important; }
.verso-surface .v-inspector-empty > span { font-size: 20px !important; }
.verso-surface .v-safety-note > span { font-size: 19px !important; }
.verso-surface .v-empty-large > span { font-size: 21px !important; }
.verso-surface :is(.v-loading, .v-muted, .v-blocker, .v-connection-empty, .v-business-branch-empty, .v-business-assets-empty, .v-compare-unavailable, .v-media-unavailable, .v-inline-form-error, .v-form-constraint, .v-property-list div, .v-budget-values, .v-table > div) {
  font-size: 12px !important;
  line-height: 1.45;
}
.verso-surface :is(input, select) { min-height: 38px !important; }
.verso-surface textarea { min-height: 78px; line-height: 1.5; }
.verso-surface :is(.v-primary, .v-secondary, .v-tabs button) { min-height: 38px; }
.verso-surface .v-icon-action { width: 32px; height: 32px; min-height: 32px; }
.verso-surface :is(.v-copy-field button, .v-secret button) { height: 34px; min-height: 34px; }
.verso-surface .v-search { min-height: 40px; height: auto; }
.verso-surface .v-list-head { height: auto; min-height: 48px; }
.verso-surface .v-list-row { min-height: 68px; }
.verso-surface :is(.v-connection-journey strong, .v-connection-journey small, .v-compare-controls > p small, .v-compare-column > header strong, .v-compare-records strong, .v-business-node > div strong) {
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

html:lang(zh-CN) .verso-surface {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-break: strict;
  word-break: normal;
}
html:lang(zh-CN) .verso-surface p,
html:lang(zh-CN) .verso-surface small,
html:lang(zh-CN) .verso-surface label { line-height: 1.6; }
html:lang(zh-CN) .verso-surface .v-page-head h3,
html:lang(zh-CN) .verso-surface .v-detail-title h4 { line-height: 1.28; letter-spacing: 0; }
html:lang(zh-CN) .verso-surface .v-eyebrow,
html:lang(zh-CN) .verso-surface .v-mini-label,
html:lang(zh-CN) .verso-surface .v-filter-field > span,
html:lang(zh-CN) .verso-surface .v-controller-flow small,
html:lang(zh-CN) .verso-surface .v-autonomy-mode-summary span,
html:lang(zh-CN) .verso-surface .v-autonomy-proof-grid > section > span,
html:lang(zh-CN) .verso-surface .v-autonomy-scope-grid > div > span,
html:lang(zh-CN) .verso-surface .v-review-exceptions > span,
html:lang(zh-CN) .verso-surface .v-autonomy-save-proof > span {
  font-family: inherit;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .v-page { padding-inline: 18px; }
  .v-filter-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .v-graph-layout { grid-template-columns: minmax(0,1fr) 260px; }
  .v-campaign-layout { grid-template-columns: 1fr; }
  .v-campaign-layout > .v-inspector { border-left: 0; border-top: 1px solid var(--line); }
  .v-connection-grid { grid-template-columns: 1fr 1fr; }
  .v-performance { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  .workspace.product-surface-open, .workspace.product-surface-open.rail-collapsed { display: grid; grid-template-columns: 52px minmax(0,1fr); }
  .workspace.product-surface-open .session-rail { display: flex; width: 52px; }
  .workspace.product-surface-open .brand-copy,
  .workspace.product-surface-open .engine-beacon,
  .workspace.product-surface-open .product-nav span,
  .workspace.product-surface-open .assistant-rail-only { display: none !important; }
  .workspace.product-surface-open .language-switcher { display: grid; width: 34px; grid-template-columns: 1fr; gap: 2px; }
  .workspace.product-surface-open .language-switcher button { width: 34px; min-width: 0; padding: 3px 1px; font-size: 7px; }
  .workspace.product-surface-open .rail-footer { align-items: center; flex-direction: column; gap: 6px; }
  .workspace.product-surface-open .brand-lockup { justify-content: center; padding-inline: 8px; }
  .workspace.product-surface-open .product-nav { padding-inline: 10px; }
  .workspace.product-surface-open .product-nav button { width: 32px; height: 32px; min-height: 32px; padding: 0; justify-content: center; }
  .v-master-detail, .v-agent-layout { grid-template-columns: 230px minmax(0,1fr); }
  .v-graph-layout { grid-template-columns: 1fr; }
  .v-node-inspector { border-left: 0; border-top: 1px solid var(--line); }
  .v-creative-compose { grid-template-columns: 1fr; }
  .v-flow-preview { display: none; }
  .v-provider-choice { grid-template-columns: 1fr; }
  .v-compare-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v-compare-controls > p { grid-column: 1 / -1; }
  .v-controller-handoff-fields { grid-template-columns: 1fr; }
  .v-ingestion-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .v-ingestion-form > div { grid-column: 1 / -1; }
  .v-meta-identity-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v-exact-account { grid-column: 1 / -1; }
  .v-autonomy-proof-grid, .v-autonomy-decisions ul, .v-autonomy-check-grid { grid-template-columns: 1fr; }
  .v-autonomy-proof-grid > section:nth-child(even) { border-left: 0; }
  .v-autonomy-proof-grid > section + section { border-top: 1px solid var(--line); }
  .v-autonomy-decisions li:nth-child(odd) { border-right: 0; }
  .v-autonomy-decisions li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  body { min-width: 360px; }
  .v-page { padding: 12px 10px 36px; }
  .v-scope-meta { display: none; }
  .v-page-head { align-items: flex-start; flex-direction: column; }
  .v-page-head h3 { font-size: 27px; }
  .v-overview-grid { grid-template-columns: 1fr; }
  .v-overview-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .v-master-detail, .v-agent-layout { display: block; }
  .v-master-list, .v-agent-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .v-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v-version-comparison > .v-section-head { display: grid; }
  .v-version-comparison > .v-section-head > span { max-width: none; padding: 7px 0 0; border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  .v-controller-flow { grid-template-columns: 1fr; }
  .v-controller-flow > li + li { border-left: 0; border-top: 1px solid var(--line); }
  .v-controller-history li { grid-template-columns: 1fr; gap: 5px; }
  .v-compare-grid { grid-template-columns: 1fr; }
  .v-compare-column + .v-compare-column { border-left: 0; border-top: 1px solid var(--line); }
  .v-connection-grid { grid-template-columns: 1fr; }
  .v-asset-discovery, .v-current-publish-identity, .v-current-publish-identity dl { grid-template-columns: 1fr; }
  .v-asset-discovery > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .v-asset-discovery > div:last-child { border-bottom: 0; }
  .v-business-node { min-width: 360px; grid-template-columns: 24px minmax(0,1fr); }
  .v-business-node > p { grid-column: 2; justify-items: start; text-align: left; }
  .v-meta-identity-fields { grid-template-columns: 1fr; }
  .v-exact-account, .v-meta-identity-reason { grid-column: auto; }
  .v-connection-card > header { grid-template-columns: 36px minmax(0,1fr); }
  .v-connect-actions { grid-column: 1 / -1; padding-left: 45px; }
  .v-connection-journey { grid-template-columns: 1fr 1fr; gap: 10px 5px; }
  .v-connection-journey::before { display: none; }
  .v-write-gates > div, .v-coverage-intervals { grid-template-columns: 1fr; }
  .v-readiness-detail { grid-template-columns: 1fr 1fr; }
  .v-coverage-summary { grid-template-columns: 1fr; }
  .v-coverage-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .v-coverage-summary > div:last-child { border-bottom: 0; }
  .v-ingestion-form { grid-template-columns: 1fr; }
  .v-ingestion-form > div { grid-column: auto; }
  .v-connection-toolbar .v-primary { margin-left: 0; }
  .v-autonomy-mode-summary, .v-autonomy-scope-grid, .v-autonomy-editor-grid, .v-fixed-exceptions, .v-review-exceptions ul { grid-template-columns: 1fr; }
  .v-autonomy-mode-summary > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .v-autonomy-scope-grid > .wide { grid-column: auto; }
  .v-autonomy-accounts article { grid-template-columns: 1fr; }
  .v-fixed-exceptions legend, .v-fixed-exceptions > p { grid-column: auto; }
  .v-detail-stats, .v-version-strip, .v-budget-values, .v-brand-creative-values, .v-card-grid, .v-media-grid, .v-data-model > div { grid-template-columns: 1fr 1fr; }
  .v-budget-inputs, .v-budget-inputs.two { grid-template-columns: 1fr; }
  .v-task-control-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v-task-snapshot, .v-task-confirm-snapshot, .v-event-cursor { grid-template-columns: 1fr; }
  .v-task-snapshot > div + div, .v-task-confirm-snapshot span + span, .v-event-cursor > span + span { border-left: 0; border-top: 1px solid var(--line); }
  .v-placement-fields { grid-template-columns: 1fr; }
  .v-trust-checks { grid-template-columns: 1fr; }
  .v-authority-scope-list > span { grid-template-columns: 1fr; }
  .v-engine-controls { align-items: stretch; flex-direction: column; }
  .v-engine-controls .v-tabs { overflow-x: auto; }
  .v-search { width: 100%; }
  .v-connect-actions { align-items: flex-end; flex-direction: column; }
  .v-connection-journey { grid-template-columns: 1fr 1fr; gap: 10px 5px; }
  .v-connection-journey::before { display: none; }
  .v-write-gates > div, .v-coverage-intervals { grid-template-columns: 1fr; }
  .v-coverage-summary { grid-template-columns: 1fr; }
  .v-coverage-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .v-coverage-summary > div:last-child { border-bottom: 0; }
  .v-ingestion-form, .v-manifest-tools > label, .v-manifest-tool { grid-template-columns: 1fr; }
  .v-ingestion-form > div, .v-manifest-tools details { grid-column: 1; }
}

@media (max-width: 430px) {
  .v-filter-heading { align-items: flex-start; }
  .v-filter-heading > div { display: grid; gap: 3px; }
  .v-filter-grid, .v-compare-controls { grid-template-columns: 1fr; }
  .v-task-control-actions { grid-template-columns: 1fr; }
}
