/* Functional layout — agent-first, no production-line chrome */ :root { /* Default = modern;实际以色主题 data-color-theme 为准 */ --bg: #f8f8f8; --surface: #fff; --border: #e0e0e0; --text: #2c2c2c; --muted: #999999; --accent: #4a9fb0; --accent-soft: rgba(74, 159, 176, 0.12); --ok: #16a34a; --warn: #ca8a04; --danger: #dc2626; --books-w: 216px; --books-w-collapsed: 40px; --coord-w: clamp(280px, 24vw, 340px); --coord-w-collapsed: 40px; --workspace-pad-x: clamp(24px, 4.5vw, 72px); --workspace-pad-y: clamp(20px, 3vh, 40px); --head-h: 48px; --composer-min: 0px; --composer-control-h: 36px; --font-ui: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif; --font-read: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", Georgia, serif; --shadow: 0 8px 24px rgba(0, 0, 0, 0.08); font-family: var(--font-ui); font-size: 14px; color: var(--text); } /* 仿纸暖黄(护眼)*/ html[data-color-theme="paper"] { --bg: #f5ecd7; --surface: #fbf8f2; --border: #d9d0c1; --text: #3e3a35; --muted: #8b8580; --accent: #8b9a6b; --accent-soft: rgba(139, 154, 107, 0.15); --shadow: 0 8px 24px rgba(62, 58, 53, 0.1); } /* 现代清爽 */ html[data-color-theme="modern"] { --bg: #f8f8f8; --surface: #fff; --border: #e0e0e0; --text: #2c2c2c; --muted: #999999; --accent: #4a9fb0; --accent-soft: rgba(74, 159, 176, 0.12); --shadow: 0 8px 24px rgba(0, 0, 0, 0.08); } /* 夜间暗色 */ html[data-color-theme="dark"] { --bg: #1e1e1e; --surface: #2d2d30; --border: #3e3e40; --text: #bdbbb6; --muted: #757575; --accent: #d4a76a; --accent-soft: rgba(212, 167, 106, 0.15); --shadow: 0 8px 24px rgba(0, 0, 0, 0.35); } /* 豆沙绿 */ html[data-color-theme="green"] { --bg: #dce5d9; --surface: #f4f9f2; --border: #c0cfbb; --text: #2b3330; --muted: #7a8580; --accent: #7d9b7a; --accent-soft: rgba(125, 155, 122, 0.15); --shadow: 0 8px 24px rgba(43, 51, 48, 0.1); } html { background: var(--bg); color: var(--text); } /* 开创作后缩进左侧栏 */ body.rail-collapsed { --books-w: var(--books-w-collapsed); } * { box-sizing: border-box; } html, body { height: 100%; margin: 0; overflow: hidden; /* 浏览器层永不出现页面滚动条 */ background: var(--bg); color: var(--text); } button, input, textarea { font: inherit; } a.link { color: var(--accent); text-decoration: none; } a.link:hover { text-decoration: underline; } .layout { display: grid; grid-template-columns: var(--books-w) 1fr; height: 100%; max-height: 100dvh; overflow: hidden; background: var(--bg); } .panel { background: var(--surface); border: 1px solid var(--border); min-height: 0; } .panel-rail, .panel-books { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; transition: width 0.15s ease; } .panel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; flex-shrink: 0; } .rail-head { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 0; min-width: 0; } .rail-head-row { display: flex; align-items: center; gap: 2px; min-width: 0; min-height: 40px; padding: 6px 8px 6px 10px; } .rail-collapse { display: none; flex-shrink: 0; width: 28px; height: 28px; padding: 0; align-items: center; justify-content: center; font-size: 16px; line-height: 1; } body[data-rail-can-collapse="1"]:not(.rail-collapsed) .rail-collapse { display: inline-flex; } .rail-expand { display: none; flex: 1 1 auto; width: 100%; border: none; border-right: 1px solid transparent; background: var(--surface); color: var(--muted); cursor: pointer; padding: 12px 0; flex-direction: column; align-items: center; gap: 8px; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; } .rail-expand:hover { color: var(--accent); background: var(--accent-soft); } .rail-expand:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -2px; } .rail-expand-label { writing-mode: vertical-rl; letter-spacing: 0.12em; user-select: none; } .rail-body { flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; } body.rail-collapsed .rail-expand { display: flex; } body.rail-collapsed .rail-body { display: none; } .rail-path { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0 4px 0 0; background: transparent; border-radius: 0; overflow: hidden; } .rail-path .path-bar-list { width: 100%; } .rail-tabs { display: none; gap: 0; min-width: 0; padding: 0 8px; } body:not([data-nav-level="root"]) .rail-tabs { display: flex; } body:not([data-nav-level="root"]) .rail-head-actions #btn-new-book, body[data-nav-level="root"] .burst-badge { display: none; } .rail-tabs[hidden] { display: none !important; } .rail-tab { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 0; min-width: 0; height: 28px; border: none; border-bottom: 2px solid transparent; background: transparent; border-radius: 0; padding: 0 6px; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.2; white-space: nowrap; overflow: hidden; } .rail-tab:hover { color: var(--text); } .rail-tab.active { background: transparent; color: var(--text); font-weight: 600; border-bottom-color: var(--text); } .rail-tab:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -2px; } .rail-tab-icon { display: none; font-size: 13px; line-height: 1; flex-shrink: 0; } .rail-tab-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .rail-head-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; min-width: 0; } .rail-head-actions #btn-new-book { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; flex-shrink: 0; } .burst-badge { max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-variant-numeric: tabular-nums; padding: 2px 5px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); line-height: 1.2; } .rail-panels { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; } .rail-tab-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; } .rail-tab-panel[hidden] { display: none !important; } body.rail-collapsed .panel-rail { align-items: stretch; } /* composer 按内容自适应;中间区吃掉剩余高度,整页锁在视口内 */ /* panel-main:上=悬停遮盖 chrome;下=工作区(左中右在 main-body / head 内) */ .panel-main { display: grid; grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 0; height: 100%; overflow: hidden; position: relative; } .main-stack { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; height: 100%; overflow: hidden; } /* 顶缘热区 + 遮盖条:不占文档流,悬停/聚焦才展开 */ .main-chrome { position: absolute; top: 0; left: 0; right: 0; z-index: 30; height: 10px; pointer-events: auto; } .main-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px 12px; min-height: 40px; padding: 4px 12px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); box-shadow: 0 4px 16px color-mix(in srgb, var(--text) 8%, transparent); transform: translateY(calc(-100% + 10px)); opacity: 0; pointer-events: none; transition: transform 0.18s ease, opacity 0.14s ease; } .main-chrome:hover, .main-chrome:focus-within, .main-chrome:has(.theme-menu[open]) { height: auto; min-height: 40px; } .main-chrome:hover .main-head, .main-chrome:focus-within .main-head, .main-chrome:has(.theme-menu[open]) .main-head { transform: translateY(0); opacity: 1; pointer-events: auto; } .main-head-left { min-width: 0; } .main-app-nav { display: flex; align-items: center; justify-content: center; gap: 2px; flex-wrap: wrap; } .main-app-nav a { padding: 5px 10px; border-radius: 6px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap; } .main-app-nav a:hover { color: var(--text); background: var(--accent-soft); } .main-app-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } .main-head-right { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; min-width: 0; } .main-head-action[hidden] { display: none !important; } .work-title { margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .work-meta { font-size: 12px; color: var(--muted); } @media (max-width: 720px) { .main-head { grid-template-columns: 1fr; justify-items: stretch; min-height: 0; padding: 6px 10px; gap: 6px; } .main-head-left { display: none; } .main-app-nav { justify-content: flex-start; } .main-head-right { justify-content: flex-start; } } @media (hover: none) { /* 触控无悬停:顶缘仍可点开,聚焦后保持 */ .main-chrome { height: 12px; } } .main-body { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; overflow: hidden; position: relative; } body.design-workspace .main-body { grid-template-columns: minmax(0, 1fr) var(--coord-w, 240px); } body.design-workspace.coord-rail-collapsed .main-body { grid-template-columns: minmax(0, 1fr) var(--coord-w-collapsed, 40px); } .panel-feed { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; position: relative; } /* 验收态:协调流收窄,产物占主工作面 */ .workspace-stage { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 10px 14px 12px; background: var(--bg); border-top: 1px solid var(--border); } .workspace-stage[hidden] { display: none !important; } .workspace-review { max-width: none; width: 100%; margin: 0; padding: 12px var(--workspace-pad-x, 28px) 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); cursor: context-menu; box-sizing: border-box; } .workspace-review-head { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); } .workspace-review-titles { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; } .workspace-review-nav { flex-shrink: 0; } .workspace-review-nav .msg-variant-nav { margin: 0; } .workspace-review-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); text-transform: none; } .workspace-review-title { margin: 0; font-size: 18px; font-weight: 650; font-family: var(--font-read); line-height: 1.3; min-width: 0; } .workspace-review-summary { margin: 0; font-size: 13px; color: var(--text); line-height: 1.45; } .workspace-review-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; } .workspace-review-body { margin-top: 4px; } .workspace-review .review-worker-set { margin: 0 0 10px; } .workspace-raw-details { margin-top: 16px; border-top: 1px dashed var(--border); padding-top: 8px; } .workspace-raw-details > summary { cursor: pointer; font-size: 12px; color: var(--muted); user-select: none; padding: 4px 0; } .workspace-raw-body { margin-top: 8px; } /* 创作伪 0 层:右侧协调栏(横向折叠,不占主柱高度) */ .coord-rail { display: none; min-width: 0; min-height: 0; border-left: 1px solid var(--border); background: var(--bg); overflow: hidden; } .coord-rail[hidden] { display: none !important; } body.design-workspace .coord-rail:not([hidden]) { display: flex; flex-direction: row; align-items: stretch; } .coord-rail-toggle { flex: 0 0 var(--coord-w-collapsed, 40px); width: var(--coord-w-collapsed, 40px); border: none; border-right: 1px solid transparent; background: var(--surface); color: var(--muted); cursor: pointer; padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; } .coord-rail-toggle:hover { color: var(--accent); background: var(--accent-soft); } .coord-rail-toggle-label { writing-mode: vertical-rl; letter-spacing: 0.12em; user-select: none; } .coord-rail .coord-drawer-count { font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 1.4em; padding: 2px 5px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); line-height: 1.2; } .coord-rail .coord-drawer-count:empty { display: none; } .coord-rail-panel { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--surface); overflow: hidden; } body.coord-rail-collapsed .coord-rail-panel { display: none; } body.coord-rail-collapsed .coord-rail-toggle { border-right: none; width: 100%; flex-basis: auto; } .coord-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--border); flex-shrink: 0; } .coord-rail-title { font-size: 12px; font-weight: 700; color: var(--text); } .coord-rail-collapse { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; } body:not(.coord-rail-collapsed) .coord-rail-toggle { display: none; } .coord-drawer-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; } .coord-empty { margin: 16px 8px; font-size: 12px; color: var(--muted); text-align: center; } .coord-pack { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 4px 4px 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); min-width: 0; cursor: context-menu; } .coord-pack:hover { border-color: color-mix(in srgb, var(--accent) 28%, var(--border)); background: color-mix(in srgb, var(--accent-soft) 28%, var(--bg)); } .coord-pack--pending { border-color: color-mix(in srgb, var(--accent) 42%, var(--border)); } .coord-pack-head { display: flex; align-items: center; min-height: 24px; padding: 2px 28px 2px 8px; } .coord-pack-meta { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); } .coord-pack--pending .coord-pack-meta { color: var(--accent); } .coord-pack > .coord-line-menu { top: 4px; right: 4px; } .coord-pack:hover > .coord-line-menu, .coord-pack:focus-within > .coord-line-menu { opacity: 1; } .coord-pack .coord-line { background: transparent; padding: 6px 8px; } .coord-pack .coord-line:hover { background: color-mix(in srgb, var(--accent-soft) 35%, transparent); } .coord-line { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 8px 32px 8px 8px; border-radius: 8px; font-size: 12px; line-height: 1.35; min-width: 0; background: var(--bg); cursor: context-menu; } .coord-line:hover { background: color-mix(in srgb, var(--accent-soft) 45%, var(--bg)); } .coord-line--trace { border-left: 2px solid color-mix(in srgb, var(--accent) 55%, var(--border)); padding-left: 10px; } .coord-line-menu { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 16px; line-height: 20px; cursor: pointer; opacity: 0; } .coord-line:hover .coord-line-menu, .coord-line:focus-within .coord-line-menu { opacity: 1; } .coord-line-menu:hover { background: color-mix(in srgb, var(--border) 65%, transparent); color: var(--text); } .coord-line-menu:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 1px; } @media (hover: none) { .coord-line-menu { opacity: 0.75; } } .coord-who { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); font-size: 11px; flex-wrap: wrap; } .coord-who .msg-variant-nav { margin-left: auto; } .coord-user .coord-who { color: var(--accent); } .coord-kind { min-width: 0; padding: 1px 4px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .coord-text { min-width: 0; color: var(--text); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; word-break: break-word; } .coord-time { margin-left: auto; flex-shrink: 0; font-size: 10px; font-weight: 500; color: var(--muted); } .coord-context-trigger { display: flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; padding: 3px 6px; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); border-radius: 5px; background: color-mix(in srgb, var(--accent-soft) 45%, var(--bg)); color: var(--muted); font: inherit; font-size: 10px; line-height: 1.3; cursor: pointer; } .coord-context-trigger:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); color: var(--text); } .coord-context-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } .coord-context-label { color: var(--accent); font-weight: 700; } .coord-context-request { color: var(--text); font-weight: 600; } .coord-trace-meta { display: flex; flex-wrap: wrap; gap: 3px 8px; min-width: 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; } .coord-trace-meta span { min-width: 0; overflow-wrap: anywhere; } .workspace-pending { margin: 0 0 12px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--border)); border-radius: 10px; background: color-mix(in srgb, var(--accent-soft) 50%, var(--surface)); } body.design-workspace .workspace-pending { margin: var(--workspace-pad-y, 16px) var(--workspace-pad-x, 24px); } .workspace-pending-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; } .workspace-pending-head .msg-action { margin-left: auto; } .msg-live-empty { margin: 0; color: var(--muted); font-size: 13px; } body.is-reviewing .message-feed { flex: 0 1 auto; max-height: min(28vh, 220px); min-height: 0; padding: 8px 12px; gap: 6px; } body.is-reviewing .message-feed:empty { display: none; } body.is-reviewing .workspace-stage { flex: 1 1 auto; } body.is-reviewing .msg-bubble { width: min(100%, 92%); max-width: 92%; } /* 创作伪 0 层:产物铺满主柱,对话退居右侧栏 */ body.design-workspace .message-feed { display: none !important; } body.design-workspace .workspace-stage { flex: 1 1 auto; border-top: none; padding: 0; background: var(--surface); display: flex; flex-direction: column; min-height: 0; } body.design-workspace[data-design-surface="answer"] .workspace-stage { overflow: hidden; /* 滚动只在询问卡内,避免 stage↔card 双滚 */ } body.design-workspace .workspace-review { max-width: none; margin: 0; flex: 1 1 auto; min-height: 0; overflow: auto; border: none; border-radius: 0; box-shadow: none; padding: 16px var(--workspace-pad-x, 24px) 16px; box-sizing: border-box; width: 100%; } body.design-workspace .workspace-review-head { border-bottom-color: color-mix(in srgb, var(--border) 80%, transparent); margin-bottom: 10px; padding-bottom: 8px; max-width: none; } body.design-workspace .workspace-review-head--slim { margin-bottom: 8px; padding-bottom: 6px; } body.design-workspace .workspace-review-title { font-size: 16px; font-weight: 650; font-family: var(--font-ui); } body.design-workspace .workspace-review-body, body.design-workspace .review-worker-set { max-width: none; width: 100%; } .workspace-surface-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 8px; } .workspace-intent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; max-width: 46rem; } .workspace-intent-head:has(.workspace-view-switch) { align-items: center; } .workspace-intent-head .workspace-surface-kicker { margin-bottom: 0; } .workspace-leave-step { appearance: none; border: none; background: transparent; padding: 0; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; font-family: var(--font-ui); flex-shrink: 0; } .workspace-leave-step:hover { color: var(--text); } .workspace-leave-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .workspace-answer-head--slim .workspace-leave-step { margin-left: auto; } .workspace-intent, .workspace-answer { flex: 1 1 auto; min-height: 0; width: 100%; max-width: none; margin: 0; padding: var(--workspace-pad-y, 28px) var(--workspace-pad-x, 28px) 48px; box-sizing: border-box; display: flex; flex-direction: column; } body.design-workspace[data-design-surface="answer"] .workspace-answer { padding: 16px var(--workspace-pad-x, 24px) 20px; } .workspace-intent-title { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); font-weight: 650; font-family: var(--font-read); line-height: 1.25; color: var(--text); max-width: 40rem; text-wrap: balance; } .workspace-intent-hint { margin: 0; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.55; color: var(--muted); max-width: 46rem; } .workspace-intent-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .workspace-intent-meta { margin: 14px 0 0; font-size: 12px; color: var(--muted); } .workspace-opening-guide { margin-top: 22px; max-width: 40rem; padding: 0; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.65; color: var(--text); white-space: pre-wrap; font-family: var(--font-read); } .workspace-intent .intake-panel { margin-top: 20px; max-width: 52rem; } .workspace-answer-head { flex-shrink: 0; margin-bottom: 14px; max-width: 46rem; } .workspace-answer-head--slim { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; max-width: none; } .workspace-answer-head--slim .workspace-surface-kicker { margin-bottom: 0; } .workspace-answer-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; } body.design-workspace[data-design-surface="answer"] .questions-card-host { flex: 0 1 auto; border-top: none; margin-top: 0; padding: 0; } /* 答题/验收工作面已是 surface,询问不再套圆角卡片 */ body.design-workspace[data-design-surface="answer"] .questions-card-host.is-open:not([hidden]), .workspace-review-ask .questions-card-host.is-open:not([hidden]) { margin: 0; border: none; border-radius: 0; background: transparent; box-shadow: none; } body.design-workspace[data-design-surface="answer"] .qcard-body, .workspace-review-ask .qcard-body { padding-left: 0; padding-right: 0; } body.design-workspace[data-design-surface="answer"] .qcard-top, .workspace-review-ask .qcard-top, body.design-workspace[data-design-surface="answer"] .questions-card-host.is-collapsed .qcard-top, .workspace-review-ask .questions-card-host.is-collapsed .qcard-top { padding-left: 0; padding-right: 0; } body.design-workspace[data-design-surface="answer"] .qcard-skip, .workspace-review-ask .qcard-skip, body.design-workspace[data-design-surface="answer"] .qcard-pager, .workspace-review-ask .qcard-pager { right: 0; } body.design-workspace[data-design-surface="speak"] .workspace-surface-kicker { color: var(--accent); } body.design-workspace[data-design-surface="answer"] .workspace-surface-kicker { color: #a16207; } body.design-workspace[data-design-surface="review"] .workspace-review-kicker { color: #15803d; } body.design-workspace[data-design-surface="review"][data-review-kind="flow"] .workspace-review-kicker, body.design-workspace[data-design-surface="review"][data-review-kind="opening"] .workspace-review-kicker { color: var(--accent); } /* 挂载追问嵌在产物验收面下方:与产物同宽,随主柱动态适应 */ .workspace-review-ask { flex: 0 0 auto; margin-top: 0; min-height: 0; width: 100%; max-width: none; align-self: stretch; padding: 8px var(--workspace-pad-x, 24px) var(--workspace-pad-y, 16px); box-sizing: border-box; border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); } .workspace-review-ask .questions-card-host { padding-left: 0; padding-right: 0; border-top: none; } body.design-workspace .ws-creation-flow h4 { display: none; } body.design-workspace .flow-brief { margin: 0 0 12px; font-size: 15px; line-height: 1.55; font-family: var(--font-read); } body.design-workspace .flow-status { margin: 0 0 14px; font-size: 12px; color: var(--muted); } .workspace-view-switch { display: inline-flex; align-items: stretch; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; background: var(--bg); flex-shrink: 0; } .workspace-view-switch a, .workspace-view-switch button, .workspace-view-switch span { appearance: none; display: inline-flex; align-items: center; margin: 0; padding: 4px 11px; border: none; border-radius: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer; } .workspace-view-switch span.is-current { cursor: default; color: var(--text); background: var(--surface); } .workspace-view-switch a:hover, .workspace-view-switch button:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); } .workspace-view-switch a:focus-visible, .workspace-view-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; } .workspace-skills { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; min-height: 0; background: var(--bg); } .workspace-skills[hidden] { display: none !important; } .workspace-skills-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; padding: 12px var(--workspace-pad-x, 24px); border-bottom: 1px solid var(--border); background: var(--surface); } .workspace-skills-frame { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: var(--bg); } body.design-workspace .flow-dag { position: relative; overflow: auto; padding: 4px 2px 8px; } body.design-workspace .flow-dag-edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; } body.design-workspace .flow-dag-edge { stroke: color-mix(in srgb, var(--border) 80%, var(--muted)); stroke-width: 1.5; opacity: 0.85; } body.design-workspace .flow-dag-edge.is-lit { stroke: color-mix(in srgb, var(--accent) 55%, var(--border)); opacity: 1; } body.design-workspace .flow-dag-arrowhead { fill: color-mix(in srgb, var(--accent) 50%, var(--border)); } body.design-workspace .flow-dag-rows { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 28px; min-width: 0; } body.design-workspace .flow-dag-row { display: flex; flex-direction: column; gap: 8px; align-items: stretch; } body.design-workspace .flow-dag-row-label { font-size: 11px; font-weight: 650; letter-spacing: 0.04em; color: var(--muted); text-align: center; } body.design-workspace .flow-dag-row-nodes { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 12px; min-width: 0; } body.design-workspace .flow-node { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; width: min(100%, 280px); margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: inherit; text-align: left; font: inherit; min-width: 0; box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 70%, transparent); transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease; } body.design-workspace .flow-node-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; flex: 1; } body.design-workspace .flow-node.is-done-menu { cursor: context-menu; opacity: 0.92; } body.design-workspace .flow-node.is-done-menu:hover { opacity: 1; border-color: color-mix(in srgb, var(--border) 40%, var(--text) 20%); background: var(--surface); } body.design-workspace .flow-node.is-done-menu:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } body.design-workspace .flow-node-menu-btn { flex: 0 0 auto; align-self: center; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; color: var(--muted); opacity: 0.55; pointer-events: none; } body.design-workspace .flow-node.is-done-menu:hover .flow-node-menu-btn, body.design-workspace .flow-node.is-done-menu:focus-visible .flow-node-menu-btn { opacity: 1; } .step-artifact-body { max-height: min(70vh, 560px); overflow: auto; margin: 8px 0 0; } body.design-workspace .flow-node[data-run="current"] { border-color: var(--accent); background: var(--surface); } body.design-workspace .flow-node.is-locked { opacity: 0.55; } body.design-workspace .flow-node.is-selectable { cursor: pointer; border-color: var(--accent); border-width: 1.5px; background: var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent), 0 4px 12px color-mix(in srgb, var(--accent) 12%, transparent); } body.design-workspace .flow-node.is-selectable:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent), 0 8px 18px color-mix(in srgb, var(--accent) 16%, transparent); } body.design-workspace .flow-node.is-selectable:active { transform: translateY(0) scale(0.98); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 2px 6px color-mix(in srgb, var(--accent) 12%, transparent); } body.design-workspace .flow-node.is-selectable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } body.design-workspace .flow-action { flex-shrink: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); pointer-events: none; } body.design-workspace .flow-node.is-selectable:hover .flow-action { color: color-mix(in srgb, var(--accent) 80%, #000); } body.design-workspace .flow-node--prototype { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); } body.design-workspace .flow-node--prototype.is-selectable { border-style: dashed; border-color: var(--accent); } body.design-workspace .flow-node--prototype.is-selectable:hover { border-color: var(--accent); } body.design-workspace .flow-occ-prototype { color: var(--accent); } body.design-workspace .flow-family { display: flex; flex-direction: column; align-items: stretch; width: min(100%, 280px); min-width: 0; } body.design-workspace .flow-family > .flow-node { width: 100%; } body.design-workspace .flow-family-spawns { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 8px 0 0 22px; list-style: none; } body.design-workspace .flow-family-spawns::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 14px; width: 1px; background: color-mix(in srgb, var(--accent) 32%, var(--border)); } body.design-workspace .flow-family-spawn { position: relative; min-width: 0; } body.design-workspace .flow-family-spawn::before { content: ""; position: absolute; left: -10px; top: 50%; width: 10px; height: 1px; background: color-mix(in srgb, var(--accent) 32%, var(--border)); } body.design-workspace .flow-node--spawn { width: 100%; min-width: 0; padding: 8px 10px; gap: 8px; border-radius: 8px; box-shadow: none; background: var(--surface); } body.design-workspace .flow-node--spawn .flow-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; } body.design-workspace .flow-node--spawn .flow-params, body.design-workspace .flow-node--spawn .flow-params-missing { font-size: 11px; } body.design-workspace .flow-node--spawn.is-selectable { border-width: 1px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent); } body.design-workspace .flow-node--spawn.is-selectable:hover { transform: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent); } body.design-workspace .flow-spawn-meta { flex-shrink: 0; display: inline-flex; align-items: center; } body.design-workspace .flow-spawn-meta .flow-action { min-height: 24px; padding: 0 8px; font-size: 11px; } body.design-workspace .flow-spawn-count { font-size: 11px; color: var(--muted); line-height: 1.3; } body.design-workspace .flow-origin { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--muted); line-height: 1.3; } body.design-workspace .flow-origin-rule { font-weight: 650; color: var(--text); } body.design-workspace .flow-dag-edge--belong { stroke-dasharray: 3 4; stroke-width: 1.25; } body.design-workspace .flow-dag-arrowhead--belong { fill: color-mix(in srgb, var(--accent) 38%, var(--border)); } body.design-workspace .flow-suggestion-inline { font-size: 12px; color: var(--muted); line-height: 1.35; } body.design-workspace .flow-suggestions { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 8px; background: var(--surface); } body.design-workspace .flow-suggestions-title { font-size: 12px; font-weight: 600; margin-bottom: 8px; color: var(--muted); } body.design-workspace .flow-suggestion { display: flex; flex-direction: column; gap: 2px; font-size: 12px; padding: 6px 0; border-top: 1px solid var(--border); } body.design-workspace .flow-suggestion:first-of-type { border-top: none; padding-top: 0; } body.design-workspace .flow-suggestion-name { font-weight: 600; } body.design-workspace .flow-suggestion-text { color: var(--muted); } body.design-workspace .flow-node .flow-run { font-size: 11px; font-weight: 650; letter-spacing: 0.04em; color: var(--muted); } body.design-workspace .flow-node[data-run="done"] .flow-run { color: #15803d; } body.design-workspace .flow-node.is-selectable .flow-run { color: var(--accent); } body.design-workspace .flow-node .flow-name { font-weight: 600; font-size: 14px; line-height: 1.35; } body.design-workspace .flow-title { font-size: 13px; font-weight: 650; line-height: 1.35; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; } body.design-workspace .flow-node .flow-params, body.design-workspace .flow-node .flow-params-missing { font-size: 12px; color: var(--muted); line-height: 1.35; } body.design-workspace .flow-spawns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; } body.design-workspace .flow-spawn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px dashed var(--border); border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; } body.design-workspace .flow-spawn.is-ready { cursor: pointer; border-style: solid; border-color: var(--accent); color: var(--text); } body.design-workspace .flow-spawn.is-ready:hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); } body.design-workspace .flow-spawn.is-ready:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } body.design-workspace .flow-spawn.is-blocked { opacity: 0.65; } @media (max-width: 720px) { body.design-workspace .flow-dag-row-nodes { flex-direction: column; align-items: stretch; } body.design-workspace .flow-node, body.design-workspace .flow-family { width: 100%; } } body.design-workspace .flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; } body.design-workspace .flow-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); align-items: start; min-width: 0; } body.design-workspace .flow-order { grid-row: 1 / -1; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2, rgba(0, 0, 0, 0.04)); color: var(--muted); font-weight: 700; font-size: 13px; } body.design-workspace .flow-run { grid-column: 2; font-size: 11px; font-weight: 650; letter-spacing: 0.04em; color: var(--muted); line-height: 1.2; } body.design-workspace .flow-name { font-weight: 600; font-size: 14px; line-height: 1.35; min-width: 0; } body.design-workspace .flow-deps, body.design-workspace .flow-params, body.design-workspace .flow-params-missing, body.design-workspace .flow-occ { grid-column: 2; font-size: 12px; color: var(--muted); line-height: 1.35; } body.design-workspace .flow-step[data-run="pending"] { background: var(--bg); border-color: var(--border); } body.design-workspace .flow-step[data-run="pending"] .flow-name { color: var(--muted); font-weight: 500; } body.design-workspace .flow-step[data-run="current"] { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); } body.design-workspace .flow-step[data-run="current"] .flow-order { background: var(--accent); color: #fff; } body.design-workspace .flow-step[data-run="current"] .flow-run { color: var(--accent); } body.design-workspace .flow-step[data-run="done"] { background: var(--bg); border-color: color-mix(in srgb, var(--border) 70%, transparent); } body.design-workspace .flow-step[data-run="done"] .flow-order { background: color-mix(in srgb, #15803d 16%, var(--bg)); color: #15803d; } body.design-workspace .flow-step[data-run="done"] .flow-run { color: #15803d; } body.design-workspace .flow-step[data-run="done"] .flow-name { color: var(--text); font-weight: 500; } @media (max-width: 900px) { body.design-workspace .main-body { grid-template-columns: minmax(0, 1fr); } body.design-workspace .coord-rail:not([hidden]) { position: absolute; right: 0; top: 0; bottom: 0; z-index: 30; width: min(280px, 78vw); box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08); } body.design-workspace.coord-rail-collapsed .coord-rail:not([hidden]) { width: var(--coord-w-collapsed, 40px); box-shadow: none; } body.design-workspace .panel-feed { position: relative; } } .btn, .btn-sm { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; cursor: pointer; padding: 6px 10px; } .btn:focus, .btn-sm:focus { outline: none; } .btn:focus-visible, .btn-sm:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .btn-sm { padding: 4px 8px; font-size: 12px; } .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); } .btn-primary:focus-visible { outline-color: color-mix(in srgb, var(--accent) 50%, #fff); } .btn-danger { color: var(--danger); border-color: #fecaca; } .btn:disabled, .btn-sm:disabled { opacity: 0.5; cursor: not-allowed; } .status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); } .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); } .status-dot.running { background: var(--accent); } .status-dot.waiting { background: var(--warn); } .status-dot.done { background: var(--ok); } .panel-head-actions { display: flex; gap: 4px; align-items: center; } .btn-sm.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); } /* Books — breadcrumb + list */ .path-bar { display: flex; align-items: center; flex-wrap: nowrap; gap: 0; overflow-x: auto; font-size: 12px; line-height: 1.35; flex-shrink: 0; min-width: 0; } .path-bar-list { display: flex; align-items: center; flex-wrap: nowrap; gap: 0; margin: 0; padding: 0; list-style: none; min-width: 0; max-width: 100%; } .path-bar-item { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; flex-shrink: 0; } .path-bar-item-current { min-width: 0; flex: 1 1 auto; max-width: 100%; } .path-seg { display: inline-flex; align-items: center; gap: 5px; border: none; background: transparent; padding: 0; border-radius: 4px; color: var(--text); cursor: pointer; white-space: nowrap; font-size: 12px; font-weight: 500; max-width: 9em; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .rail-path .path-seg.current { font-size: 13px; } .path-seg:hover { color: var(--accent); } .path-seg:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; } .path-seg-root { max-width: none; color: var(--text); } .path-home-icon { display: block; flex-shrink: 0; color: var(--muted); } .path-seg-root:hover .path-home-icon { color: var(--accent); } .path-seg.current, .path-seg[aria-current="page"] { font-weight: 600; cursor: default; color: var(--text); max-width: none; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .path-seg.current:hover, .path-seg[aria-current="page"]:hover { color: var(--text); } .path-sep { color: var(--muted); opacity: 0.65; padding: 0 6px; user-select: none; flex-shrink: 0; font-weight: 400; font-size: 13px; line-height: 1; } .book-list { flex: 1; overflow-y: auto; padding: 4px 6px 8px; font-size: 12px; line-height: 1.35; position: relative; min-width: 0; } .book-box-overlay { position: fixed; z-index: 160; pointer-events: none; border: 1px solid #3b82f6; background: rgba(59, 130, 246, 0.12); border-radius: 2px; } .book-box-overlay[hidden] { display: none; } .explorer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 6px; row-gap: 2px; width: 100%; min-height: 32px; padding: 7px 8px; border: none; background: transparent; cursor: pointer; text-align: left; color: var(--text); border-radius: 6px; min-width: 0; } .explorer-row.has-twist { grid-template-columns: 16px minmax(0, 1fr) auto; } .explorer-twist { grid-column: 1; grid-row: 1 / span 2; align-self: center; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; color: var(--muted); user-select: none; } .explorer-row.has-twist .explorer-main { grid-column: 2; } .explorer-row.has-twist .explorer-del { grid-column: 3; } .explorer-row.child { padding-left: 28px; min-height: 28px; padding-top: 5px; padding-bottom: 5px; } .explorer-row.child .explorer-name { font-size: 12px; font-weight: 400; } .explorer-row:hover { background: var(--bg); } .explorer-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; } .explorer-row.active { background: var(--accent-soft); } .explorer-row.active .explorer-name { color: var(--accent); font-weight: 600; } .explorer-row.selected { background: #dbeafe; } .explorer-row.selected .explorer-name { color: #1d4ed8; font-weight: 600; } .explorer-row.selected.active { background: #bfdbfe; } .explorer-main { grid-column: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .explorer-name { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.35; } .explorer-meta { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; line-height: 1.3; color: var(--muted); } .explorer-del { grid-column: 2; grid-row: 1 / span 2; align-self: center; flex-shrink: 0; width: 22px; height: 22px; border: none; background: transparent; color: var(--muted); cursor: pointer; padding: 0; font-size: 14px; line-height: 1; opacity: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; } .explorer-row:hover .explorer-del { opacity: 1; } .explorer-del:hover { color: var(--danger); background: #fef2f2; } .explorer-action .explorer-name { color: var(--accent); font-weight: 500; } .explorer-section-label { padding: 8px 8px 4px; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; } .explorer-hint { margin: 4px 8px; font-size: 11px; color: var(--muted); line-height: 1.4; } .explorer-product { margin: 2px 0 6px; } .explorer-product.is-open { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow: hidden; } .explorer-product.is-open > .explorer-row { border-radius: 0; background: var(--bg); } .explorer-product.is-open > .explorer-row:hover { background: #ececee; } .explorer-drop { border-top: 1px solid var(--border); padding: 4px; background: var(--surface); } .explorer-drop .explorer-row.child { padding-left: 12px; } .explorer-drop-empty { margin: 4px 8px 8px 12px; font-size: 12px; line-height: 1.4; color: var(--muted); } .sidebar-empty { padding: 12px; color: var(--muted); font-size: 13px; text-align: center; } /* Skill picker — primary action when starting */ .skill-picker { padding: 16px; border-bottom: 2px solid var(--accent); background: var(--accent-soft); } .skill-picker h2 { margin: 0 0 4px; font-size: 15px; } .skill-picker p { margin: 0 0 12px; font-size: 13px; color: var(--muted); } .skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; } .skill-card { text-align: left; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; } .skill-card:hover { border-color: var(--accent); } .skill-card-name { font-weight: 600; margin-bottom: 4px; } .skill-card-desc { font-size: 12px; color: var(--muted); line-height: 1.4; } .skill-card-tag { font-size: 11px; color: var(--accent); margin-top: 6px; } /* Feed — SillyTavern 式对话气泡 */ .message-feed { flex: 1; overflow-y: auto; padding: 12px 14px; min-height: 0; display: flex; flex-direction: column; gap: 10px; background: var(--bg); } body.rail-collapsed .message-feed { padding: 6px 10px; gap: 6px; } .empty { color: var(--muted); text-align: center; padding: 40px 16px; align-self: center; max-width: 100%; } .empty-intake { white-space: pre-wrap; text-align: left; max-width: 560px; margin: 40px auto; line-height: 1.6; } .msg { display: flex; flex-direction: column; border: none; border-radius: 0; padding: 0; margin: 0; background: transparent; max-width: 100%; } .msg-user-row { align-items: flex-end; } .msg-assistant-row { align-items: flex-start; } .msg-bubble { position: relative; width: 90%; max-width: 90%; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); box-sizing: border-box; } .msg-user-row .msg-bubble { background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%); border-color: #93c5fd; border-bottom-right-radius: 4px; } .msg-assistant-row.msg.skill .msg-bubble, .msg-assistant-row.msg.agent .msg-bubble { border-bottom-left-radius: 4px; } .msg-assistant-row.msg.error .msg-bubble { border-color: #fecaca; background: #fef2f2; } .msg-head { display: flex; gap: 8px; align-items: center; padding: 8px 12px 0; font-size: 11px; flex-wrap: wrap; } .msg-head [data-act="retry_run"] { margin-left: auto; } .msg-foot { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 4px 10px 8px; font-size: 11px; flex-wrap: wrap; } .msg-head-main { display: flex; gap: 6px; align-items: baseline; min-width: 0; flex: 1; } .msg-subtitle { color: var(--muted); font-weight: normal; } .msg-variant-badge { font-size: 10px; color: var(--muted); padding: 0 4px; border: 1px solid var(--border); border-radius: 4px; } .msg-bubble { cursor: context-menu; } .msg-action { border: none; background: transparent; color: var(--muted); border-radius: 4px; padding: 2px 6px; font-size: 11px; cursor: pointer; line-height: 1.4; } .msg-action:hover:not(:disabled) { color: var(--accent); background: rgba(37, 99, 235, 0.08); } .msg-action-primary { color: var(--accent); font-weight: 600; } .msg-action-primary:hover:not(:disabled) { background: var(--accent-soft); } .msg-action:disabled { opacity: 0.35; cursor: default; } .msg-variant-nav { display: inline-flex; align-items: center; gap: 2px; margin-right: 2px; vertical-align: middle; } .msg-variant-nav .msg-action { min-width: 22px; padding: 2px 5px; font-size: 13px; line-height: 1.2; } .msg-variant-count { min-width: 2.4em; text-align: center; color: var(--warn); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; } .msg-time { color: var(--muted); flex-shrink: 0; font-size: 10px; } .msg-tag { font-weight: 600; color: var(--text); } .msg-menu-trigger { width: 24px; height: 24px; padding: 0; flex: 0 0 auto; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 16px; line-height: 20px; cursor: pointer; opacity: 0; } .msg:hover .msg-menu-trigger, .msg:focus-within .msg-menu-trigger { opacity: 1; } .msg-menu-trigger:hover { background: color-mix(in srgb, var(--border) 65%, transparent); color: var(--text); } .msg-menu-trigger:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 1px; } @media (hover: none) { .msg-menu-trigger { opacity: 0.75; } } .msg-body { white-space: pre-wrap; word-break: break-word; line-height: 1.55; font-size: 14px; padding: 10px 14px; } .msg-user-row .msg-body { padding-bottom: 4px; } .msg-assistant-row .msg-head + .msg-body { padding-top: 4px; } .msg-pending { opacity: 0.85; } .msg-thinking { margin: 6px 10px 0; font-size: 12px; color: var(--muted); border: 1px dashed var(--border); border-radius: 6px; background: #fafafa; } .msg-thinking summary { cursor: pointer; padding: 6px 8px; user-select: none; } .msg-thinking-body { margin: 0; padding: 8px; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, "Cascadia Code", monospace; font-size: 12px; color: var(--text); max-height: 240px; overflow: auto; } .msg-play-process-row { margin: 4px 0; } .msg-play-process { font-size: 12px; color: var(--muted); border: 1px dashed var(--border); border-radius: 6px; background: #fafafa; } .msg-play-process > summary { cursor: pointer; display: flex; align-items: baseline; gap: 8px; padding: 6px 10px; user-select: none; list-style: none; } .msg-play-process > summary::-webkit-details-marker { display: none; } .msg-play-process > summary::before { content: "▸"; font-size: 10px; color: var(--muted); } .msg-play-process[open] > summary::before { content: "▾"; } .msg-play-process .msg-tag { font-weight: 600; color: var(--muted); } .msg-play-process .msg-body { padding: 0 10px 10px; max-height: 320px; overflow: auto; } .msg-live-indicator { margin-left: 8px; font-size: 11px; color: var(--accent); } .msg-live-body { min-height: 1.5em; } .msg-live-section { margin-bottom: 8px; } .msg-live-section:last-child { margin-bottom: 0; } .msg-live-section header { font-size: 11px; color: var(--muted); margin-bottom: 4px; } .msg-live-pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, "Cascadia Code", monospace; font-size: 12px; max-height: 320px; overflow: auto; } .msg-body-editing { padding: 8px 10px 10px; } .msg-edit-input { display: block; width: 100%; min-height: 72px; max-height: 320px; border: 1px solid var(--accent); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; line-height: 1.55; resize: vertical; background: var(--surface); box-sizing: border-box; } .msg-user-row .msg-edit-input { background: #fff; } .msg-edit-bar { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; } .msg-edit-bar .btn { min-width: 4.5rem; } .msg-edit-hint { margin: 6px 0 0; font-size: 11px; color: var(--muted); text-align: right; } .msg-body-editing { display: flex; flex-direction: column; gap: 0; width: 100%; } .msg.is-editing .msg-bubble { box-shadow: 0 0 0 2px var(--accent-soft); width: 90%; max-width: 90%; } .msg-user-row.is-editing .msg-bubble { width: 90%; max-width: 90%; } @media (hover: none) { .msg-actions { opacity: 1; } } /* Skill guide (right panel tab) */ .agent-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); padding: 0 8px; background: var(--surface); } .agent-tab { border: none; background: transparent; padding: 8px 12px; font-size: 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; } .agent-tab:hover { color: var(--text); } .agent-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; } .agent-tab-panel { flex: 1; min-height: 0; display: none; flex-direction: column; } .agent-tab-panel.active { display: flex; } .skill-guide-list { flex: 1; overflow-y: auto; padding: 8px 12px; font-size: 12px; } .skill-guide-item { display: grid; grid-template-columns: 8px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px; } .skill-guide-item:last-child { border-bottom: none; } .skill-guide-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); margin-top: 4px; } .skill-guide-item.active .skill-guide-dot { background: var(--accent); } .skill-guide-item.done .skill-guide-dot { background: var(--ok); } .skill-guide-label { font-weight: 600; } .skill-guide-purpose { color: var(--muted); margin-top: 2px; } .review-artifact-panel { flex: 1; overflow-y: auto; padding: 10px 12px; font-size: 12px; min-height: 0; display: flex; flex-direction: column; gap: 10px; } .review-artifact-head { font-weight: 600; font-size: 13px; } .review-artifact-summary { color: var(--muted); line-height: 1.4; } .review-artifact-body { flex: 1; overflow-y: auto; white-space: pre-wrap; word-break: break-word; line-height: 1.55; font-size: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); min-height: 120px; } .review-artifact-actions { display: flex; gap: 8px; flex-shrink: 0; } .review-artifact-actions .btn { flex: 1; } .review-hint { font-size: 12px; color: var(--muted); line-height: 1.45; margin: 0 0 8px; } /* 主对话验收卡(旧):保留选择器以免历史类名失效 */ .msg-review { align-self: stretch; width: 100%; } .msg-review .msg-review-bubble { width: 100%; max-width: 100%; padding: 8px 10px 10px; border-radius: 10px; } .msg-review .msg-head { padding: 2px 2px 0; } .msg-review .msg-tag { font-family: var(--font-ui); letter-spacing: 0.04em; } .review-feed-summary { margin: 2px 0 4px; font-family: var(--font-read); font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text, inherit); } .review-json-block { margin: 4px 0 0; } .msg-review .review-hint { margin: 0 0 6px; font-size: 11px; line-height: 1.35; } .msg-review .ws-focus-banner { padding: 6px 8px; margin-bottom: 6px; } .msg-review .ws-focus-hint { margin-bottom: 0; font-size: 11px; } .msg-review .review-worker-set { margin: 0 0 6px; } /* 顶栏主题菜单:色主题 + 选壳 */ .more-menu { position: relative; display: inline-block; flex: 0 0 auto; } .more-menu-sum { list-style: none; cursor: pointer; user-select: none; line-height: 1; height: 28px; min-width: 28px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; padding-inline: 6px; } .more-menu-sum::-webkit-details-marker { display: none; } .more-menu-sum::marker { content: ""; } .hamburger-icon { display: block; width: 14px; height: 11px; background: linear-gradient(currentColor, currentColor) 0 0 / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; } .more-menu[open] .more-menu-sum { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); } .more-menu-panel { position: absolute; left: auto; right: 0; top: calc(100% + 4px); bottom: auto; z-index: 80; min-width: 188px; max-height: min(70vh, 480px); overflow: auto; padding: 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1px; } .more-menu-sep { height: 1px; margin: 4px 6px; background: var(--border); } .more-menu-label { padding: 6px 10px 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); } .more-menu-item { display: block; width: 100%; padding: 7px 10px; border: none; border-radius: 6px; background: transparent; color: var(--text); text-decoration: none; text-align: left; font: inherit; font-size: 13px; cursor: pointer; } .more-menu-item[hidden] { display: none !important; } .more-menu-item:disabled { opacity: 0.45; cursor: not-allowed; } .more-menu-item:hover { background: var(--bg); color: var(--accent); } .more-theme-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; } .more-theme-item.is-active { background: var(--accent-soft); color: var(--accent); } .more-theme-icon { flex: 0 0 auto; width: 1.25em; text-align: center; font-size: 15px; line-height: 1; } .more-theme-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .more-theme-name { font-size: 13px; font-weight: 600; line-height: 1.2; } .more-theme-desc { font-size: 11px; color: var(--muted); font-weight: 400; line-height: 1.2; } .more-theme-item.is-active .more-theme-desc { color: color-mix(in srgb, var(--accent) 70%, var(--muted)); } /* 提问索引气泡:决策在下方询问卡 */ .msg-bubble-index { width: auto; max-width: 70%; background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 28%, var(--border)); } .msg-q-index { margin: 0; font-size: 13px; font-weight: 600; color: var(--accent); line-height: 1.4; } .msg-questions-banner { padding: 6px 12px 0; font-size: 11px; font-weight: 600; color: var(--warn); } .msg-q-list { margin: 0; padding-left: 1.25rem; line-height: 1.55; } .msg-q-list li { margin: 0.35rem 0; } .msg-q-lead { margin: 0; line-height: 1.55; font-size: 14px; } /* 游玩:终稿铺满阅读区;字号跟正文阅读走,不跟创作验收的大字稿走 */ body[data-lifecycle="play"] .message-feed { padding: 10px 12px 16px; gap: 10px; } body[data-lifecycle="play"] .msg-assistant-row .msg-bubble { width: min(100%, 44rem); max-width: 100%; border-color: color-mix(in srgb, var(--border) 70%, transparent); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); } body[data-lifecycle="play"] .msg-assistant-row .msg-head { padding-top: 6px; } body[data-lifecycle="play"] .msg-user-row .msg-bubble { width: min(100%, 28rem); max-width: 90%; } body[data-lifecycle="play"] .msg-play-final .msg-bubble { width: 100%; max-width: 100%; } body[data-lifecycle="play"] .msg-play-final .msg-body { padding: 6px 14px 12px; white-space: normal; } body[data-lifecycle="play"] .msg-play-final .present-shell { border: none; box-shadow: none; background: transparent; padding: 0; border-radius: 0; } body[data-lifecycle="play"] .msg-play-final .present-shell-badge { display: none; } body[data-lifecycle="play"] .msg-play-final .present-stack, body[data-lifecycle="play"] .msg-play-final .present-board, body[data-lifecycle="play"] .msg-play-final .present-split, body[data-lifecycle="play"] .msg-play-final .present-reader { gap: 10px; } body[data-lifecycle="play"] .msg-play-final .present-stage .present-region--body .present-region-body, body[data-lifecycle="play"] .msg-play-final .present-stage.present-region--body .present-region-body, body[data-lifecycle="play"] .msg-play-final .present-stage--read .present-region-body { font-size: 15px; line-height: 1.65; max-width: none; max-height: none; overflow: visible; } body[data-lifecycle="play"] .msg-play-final .present-tone--book .present-stage--read .present-region-body, body[data-lifecycle="play"] .msg-play-final .present-tone--book .present-stage .present-region-body { max-width: none; } body[data-lifecycle="play"] .msg-play-final .present-shell--chat_monitor .present-stage { padding: 0; border: none; background: transparent; } /* 产物紧凑卡:横向主轴,预览一行 */ .artifact-compact-list { display: flex; flex-direction: column; gap: 6px; } .artifact-compact { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; } /* 验收扁平:一条 meta,正文直接读,不套 details/预览摘要 */ .artifact-flat-review { display: flex; flex-direction: column; gap: 12px; min-width: 0; } .artifact-flat-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); } .artifact-flat-meta > .artifact-raw--quiet { margin-left: auto; } .artifact-flat-path .artifact-crumb-root { font-size: 13px; font-weight: 700; color: var(--text); } .artifact-flat-title { font-size: 13px; font-weight: 700; color: var(--text); margin-right: 4px; } .artifact-flat-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; } .artifact-flat-chips .ws-badge, .artifact-flat-chips .ws-slot-chip, .artifact-flat-chips .pct-pill { font-size: 11px; padding: 1px 7px; } .artifact-flat-body { min-width: 0; } body.design-workspace .artifact-flat-review { max-width: none; } .artifact-compact-sum { list-style: none; cursor: pointer; padding: 8px 10px; user-select: none; } .artifact-compact-sum::-webkit-details-marker { display: none; } .artifact-compact-sum::marker { content: ""; } .artifact-compact-row { display: flex; align-items: flex-start; gap: 10px; } .artifact-compact-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .artifact-compact-title { font-family: var(--font-ui); font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: 0.01em; } .artifact-compact-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; } .artifact-compact-toggle { flex-shrink: 0; align-self: center; font-family: var(--font-ui); font-size: 11px; font-weight: 600; color: var(--accent); padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); } .artifact-compact-toggle::before { content: "展开"; } .artifact-compact[open] .artifact-compact-toggle::before { content: "收起"; } .artifact-compact-preview { margin: 0; font-family: var(--font-read); font-size: 13px; font-weight: 500; line-height: 1.45; color: #3f3f46; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pct-pill { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 999px; font-family: var(--font-ui); font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; } .pct-pill.tone-low { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); } .pct-pill.tone-mid { color: #a16207; background: #fef9c3; } .pct-pill.tone-high { color: var(--ok); background: #dcfce7; } .artifact-compact-body { border-top: 1px solid var(--border); padding: 8px; max-height: min(72vh, 640px); overflow: auto; background: #fafafa; font-family: var(--font-ui); } .artifact-compact-body .artifact-friendly { gap: 6px; } .artifact-compact-body .artifact-block, .artifact-compact-body .artifact-friendly .ws-section { padding: 6px 8px; } .ws-focus-body { margin-top: 8px; max-height: none; padding: 0; border: none; background: transparent; } .ws-focus-body .artifact-compact-list { margin: 0; } /* 展开区:mosaic / 瓷砖网格 */ .af-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } body.is-reviewing .af-mosaic, body.rail-collapsed .af-mosaic, body.design-workspace .af-mosaic { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); } /* 美学验收:左契约 / 右诊断 */ .af-split { display: flex; flex-direction: column; gap: 12px; width: 100%; min-width: 0; } .af-split-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; font-size: 12px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--border); } .af-split-banner b { color: var(--text); font-weight: 700; margin-right: 2px; } .af-split-banner-note { margin-left: auto; font-size: 11px; opacity: 0.85; } .af-split-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.9fr); gap: 18px 22px; align-items: start; } .af-split-product, .af-split-eval { min-width: 0; display: flex; flex-direction: column; gap: 16px; } .af-split-eval { position: sticky; top: 8px; max-height: calc(100dvh - 7rem); overflow-y: auto; padding: 10px 12px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); } .af-block-head { margin-bottom: 8px; } .af-block-title { margin: 0; font-family: var(--font-ui); font-size: 14px; font-weight: 650; color: var(--text); letter-spacing: 0.01em; display: flex; align-items: center; gap: 8px; } .af-block-miss { font-size: 11px; font-weight: 700; color: var(--danger); padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--danger) 12%, var(--surface)); } .af-block-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; } .af-block-body { min-width: 0; } /* 美学卡:阅读层级 — 内核最大,范式次之,右栏更密更沉 */ .af-split--aesthetics .af-split-product { gap: 22px; } .af-split--aesthetics .af-block--product .af-block-title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0.02em; } .af-split--aesthetics .af-block--product .af-block-head { margin-bottom: 6px; } .af-split--aesthetics .artifact-kernel.qcard-assessment, .af-split--aesthetics .artifact-kernel { margin: 0 0 14px; padding: 12px 14px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--border) 80%, transparent); background: color-mix(in srgb, var(--surface) 88%, var(--bg)); } .af-split--aesthetics .artifact-kernel .artifact-aside-label { margin: 0 0 6px; font-size: 11px; font-weight: 650; letter-spacing: 0.04em; color: var(--muted); } .af-split--aesthetics .artifact-kernel .artifact-prose, .af-split--aesthetics .artifact-kernel .artifact-inline { font-family: var(--font-read); font-size: 16px; line-height: 1.75; max-width: 40rem; } .af-split--aesthetics .af-block--product .af-group-title, .af-split--aesthetics .af-block--product .af-section-title { font-size: 12px; font-weight: 650; color: var(--muted); margin: 0 0 6px; } .af-split--aesthetics .af-block--product .af-stack, .af-split--aesthetics .af-block--product .af-def-list { gap: 12px; } .af-split--aesthetics .af-block--product .af-def-v, .af-split--aesthetics .af-block--product .artifact-prose { font-family: var(--font-read); font-size: 14.5px; line-height: 1.65; max-width: 40rem; } .af-split--aesthetics .af-split-eval { gap: 12px; font-size: 13px; } .af-split--aesthetics .af-block--eval .af-block-title, .af-split--aesthetics .af-block--extra .af-block-title { font-size: 12px; font-weight: 650; color: var(--muted); } .af-split--aesthetics .af-block--eval .af-block-body, .af-split--aesthetics .af-block--extra .af-block-body { font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--text) 92%, var(--muted)); } .af-split--aesthetics .af-dim-title { font-size: 12px; } @media (max-width: 900px) { .af-split-grid { grid-template-columns: 1fr; } .af-split-eval { position: static; max-height: none; } .af-split-banner-note { margin-left: 0; width: 100%; } } /* 旧布局类名保留,避免残留引用崩样式 */ .af-review-stack, .af-review-layout { display: flex; flex-direction: column; gap: 18px; width: 100%; } .af-review-primary { min-width: 0; padding: 0; } .af-review-primary-body { font-size: 15px; line-height: 1.7; } .af-review-primary-body .artifact-kernel.qcard-assessment, .af-review-primary-body .artifact-kernel { margin: 0 0 12px; padding: 0; border: none; background: transparent; } .af-review-primary-body .artifact-aside-label { margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); } .af-review-primary-body .artifact-kernel .artifact-prose, .af-review-primary-body .artifact-kernel .artifact-inline, .af-review-primary-body .artifact-prose { font-family: var(--font-read); font-size: 16px; line-height: 1.75; max-width: 42rem; } .af-review-primary-body .af-tile-grid { margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); } .af-review-rail { min-width: 0; position: sticky; top: 8px; max-height: calc(100dvh - 8rem); overflow-y: auto; padding: 10px 12px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); } .af-review-rail-label { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); } .af-support-block { margin: 0 0 12px; padding: 0; border: none; background: transparent; } .af-support-block:last-child { margin-bottom: 0; } .af-support-block > h4 { margin: 0 0 8px; font-family: var(--font-ui); font-size: 12.5px; font-weight: 700; color: var(--text); letter-spacing: 0.02em; } .af-support-block .af-dim-stack { gap: 10px; } .af-support-block .af-tile-grid { grid-template-columns: 1fr; } .af-support-block .af-tile-text { -webkit-line-clamp: 8; font-size: 12px; } @media (max-width: 900px) { .af-review-layout { grid-template-columns: 1fr; } .af-review-rail { position: static; max-height: none; } } .af-panel { padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); min-width: 0; } .af-panel > h4 { margin: 0 0 6px; font-family: var(--font-ui); font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; } .af-panel-wide { grid-column: 1 / -1; } .af-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 5px; } .af-tile { padding: 6px 7px; border-radius: 7px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); min-width: 0; } .af-tile:hover { border-color: var(--border); background: #fff; } .af-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 3px; } .af-tile-name { font-family: var(--font-ui); font-size: 11px; font-weight: 700; color: #52525b; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0.02em; } .af-tile-text { margin: 0; font-family: var(--font-read); font-size: 12.5px; font-weight: 500; line-height: 1.5; color: #27272a; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; } .af-tile-sub { display: block; margin-top: 2px; font-family: var(--font-ui); font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .af-tile-sub.pending { color: #a16207; } .af-stack { display: flex; flex-direction: column; gap: 6px; width: 100%; } .af-group { min-width: 0; width: 100%; } .af-group-wide { width: 100%; min-width: 0; padding: 4px 0; } .af-group-wide .artifact-kv, .af-group-wide .artifact-prose, .af-group-wide .artifact-inline { max-width: none; } .af-group-title { font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 6px; letter-spacing: 0.02em; } .af-section { margin: 0 0 14px; padding: 0; min-width: 0; } .af-section:last-child { margin-bottom: 0; } .af-section-title { margin: 0 0 8px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: 0.01em; padding-bottom: 4px; border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent); } .af-dim-stack { display: flex; flex-direction: column; gap: 14px; } .af-dim { min-width: 0; padding: 0 0 12px; border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent); } .af-dim:last-child { border-bottom: none; padding-bottom: 0; } .af-dim-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 8px; } .af-dim-title { margin: 0; font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: 0.01em; line-height: 1.3; } .af-dim-head .pct-inline-value { font-size: 13px; } .af-dim-body { display: flex; flex-direction: column; gap: 5px; padding-left: 2px; } .af-dim-row { display: grid; grid-template-columns: minmax(2.75rem, 3.25rem) minmax(0, 1fr); gap: 2px 10px; align-items: start; font-size: 12.5px; line-height: 1.5; } .af-dim-row--block { grid-template-columns: 1fr; } .af-dim-k { font-size: 11px; font-weight: 500; color: var(--muted); padding-top: 2px; } .af-dim-v { min-width: 0; font-size: 13px; color: var(--text); white-space: pre-wrap; word-break: break-word; } /* 行内完备度 / 评分 */ .pct-inline { display: inline-flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; line-height: 1.2; } .pct-inline-label { font-size: 11px; font-weight: 600; color: var(--muted); } .pct-inline-value { font-size: 13px; font-weight: 700; } .pct-inline.tone-low .pct-inline-value { color: var(--danger); } .pct-inline.tone-mid .pct-inline-value { color: var(--warn); } .pct-inline.tone-high .pct-inline-value { color: var(--ok); } .af-panel-wide .af-stack, .af-panel-wide .artifact-kv { width: 100%; } .af-score-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 5px; } /* 技能专用正文卡 */ .skill-view { display: flex; flex-direction: column; gap: 14px; } /* 美学纲领:主栏契约 / 辅栏诊断(无第二层盒子) */ .skill-view.skill-view-aesthetics { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(15.5rem, 0.88fr); gap: 8px 36px; align-items: start; } .skill-view-aesthetics.af-aes--solo { grid-template-columns: 1fr; } .af-aes-main, .af-aes-diag { min-width: 0; display: flex; flex-direction: column; gap: 16px; } .af-aes-diag { padding-left: 22px; border-left: 1px solid var(--border); } .af-aes-kernel .artifact-aside-label { display: block; margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); } .af-aes-kernel .artifact-prose, .af-aes-kernel .artifact-inline { font-family: var(--font-read); font-size: 15.5px; line-height: 1.78; max-width: 42rem; margin: 0; color: var(--text); } .af-aes-paradigm { display: flex; flex-direction: column; gap: 14px; } .af-aes-main > .skill-card-section > h4, .af-aes-paradigm > .skill-card-section > h4 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); } .af-aes-diag > .skill-card-section > h4 { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); } .af-aes-diag .af-dim-stack { gap: 10px; } .af-aes-diag .af-dim { padding-bottom: 10px; } .af-aes-diag .af-dim-title { font-size: 13px; } .af-aes-twist { display: flex; flex-direction: column; gap: 8px; } .af-aes-twist-row { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 8px 10px; align-items: start; } .af-aes-twist-k { font-size: 11px; font-weight: 600; color: var(--muted); padding-top: 2px; } .af-aes-twist-v { font-size: 13px; line-height: 1.5; word-break: break-word; } .af-aes-twist-infer { margin: 2px 0 0; font-family: var(--font-read); font-size: 13.5px; line-height: 1.55; color: var(--text); } .af-dim-row.is-pending .af-dim-k { color: #a16207; font-weight: 650; } .af-dim-row.is-pending .af-dim-v { color: #854d0e; } @media (max-width: 860px) { .skill-view.skill-view-aesthetics { grid-template-columns: 1fr; gap: 20px; } .af-aes-diag { padding-left: 0; border-left: none; padding-top: 16px; border-top: 1px solid var(--border); } } .artifact-compact-body .skill-view.skill-view-aesthetics { grid-template-columns: 1fr; gap: 16px; } .artifact-compact-body .af-aes-diag { padding-left: 0; border-left: none; padding-top: 12px; border-top: 1px solid var(--border); } .ws-focus-body .skill-view.skill-view-aesthetics { grid-template-columns: minmax(0, 1.55fr) minmax(15.5rem, 0.88fr); } .ws-focus-body .af-aes-diag { padding-left: 22px; border-left: 1px solid var(--border); padding-top: 0; border-top: none; } @media (max-width: 860px) { .ws-focus-body .skill-view.skill-view-aesthetics { grid-template-columns: 1fr; } .ws-focus-body .af-aes-diag { padding-left: 0; border-left: none; padding-top: 16px; border-top: 1px solid var(--border); } } .skill-card-section > h4 { margin: 0 0 8px; font-size: 13px; font-weight: 700; } .skill-kv { display: flex; flex-direction: column; gap: 8px; } .skill-kv-row { display: grid; grid-template-columns: minmax(72px, 120px) 1fr; gap: 8px 12px; align-items: start; } .skill-kv-key { font-size: 11px; font-weight: 700; color: var(--muted); padding-top: 2px; } .skill-kv-val { min-width: 0; font-size: 13px; line-height: 1.45; } .af-aes-main .skill-kv-row, .af-aes-paradigm .skill-kv-row { grid-template-columns: minmax(4.75rem, 7.25rem) 1fr; } .af-aes-main .skill-kv-val, .af-aes-paradigm .skill-kv-val { line-height: 1.55; } @media (max-width: 640px) { .skill-kv-row { grid-template-columns: 1fr; gap: 2px; } } .skill-verdict { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; font-weight: 700; font-size: 13px; } .skill-verdict.tone-ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); } .skill-verdict.tone-warn { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: color-mix(in srgb, var(--warn) 80%, #000); } .skill-rule-stack, .skill-entity-grid, .skill-pool-grid { display: flex; flex-direction: column; gap: 10px; } .skill-entity-grid, .skill-pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; } .skill-rule-card, .skill-entity-card, .skill-pool-card { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 92%, var(--bg)); } .skill-rule-head, .skill-entity-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; } .skill-rule-title, .skill-entity-name, .skill-pool-name { font-size: 14px; font-weight: 700; line-height: 1.3; } .skill-sub { margin-top: 10px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent); } .skill-sub-title { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 6px; } .skill-method { margin-bottom: 8px; } .skill-method-label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 4px; } .skill-table-wrap { overflow-x: auto; margin-top: 6px; border-radius: 8px; border: 1px solid var(--border); } .skill-field-table { width: 100%; border-collapse: collapse; font-size: 12px; } .skill-field-table th, .skill-field-table td { padding: 7px 9px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; } .skill-field-table th { background: var(--bg); font-size: 11px; color: var(--muted); font-weight: 700; } .skill-field-table tr:last-child td { border-bottom: 0; } .skill-field-table code { font-size: 11.5px; font-weight: 600; } .skill-example { margin-top: 8px; font-size: 12px; } .skill-example summary { cursor: pointer; color: var(--muted); font-weight: 600; } .skill-pool-desc { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; } .artifact-parse-hint { margin: 0 0 8px; font-size: 12px; } .skill-entity-card > p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; } .pct-mini { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-variant-numeric: tabular-nums; } .pct-mini > b { font-size: 11px; font-weight: 800; min-width: 1.6em; text-align: right; } .pct-mini > i { display: block; width: 28px; height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--border) 80%, transparent); position: relative; overflow: hidden; font-style: normal; } .pct-mini > i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: currentColor; } .pct-mini.tone-low { color: var(--danger); } .pct-mini.tone-mid { color: var(--warn); } .pct-mini.tone-high { color: var(--ok); } @media (max-width: 720px) { .af-mosaic { grid-template-columns: 1fr; } .af-panel-wide { grid-column: auto; } } .json-pretty, .review-feed-plain { margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2, rgba(0, 0, 0, 0.03)); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; max-height: min(70vh, 640px); overflow: auto; } .json-pretty code { font-family: inherit; font-size: inherit; } .json-key { color: #0b6e4f; } .json-str { color: #1d4ed8; } .json-num { color: #b45309; } .json-lit { color: #7c3aed; } .review-feed-actions { margin-top: 4px; max-width: 200px; } .review-feed-actions .btn { flex: 1; } .msg-review .ws-section h4, .workspace-review .ws-section h4 { font-size: 12px; } .msg-review .ws-user-view, .workspace-review .ws-user-view { gap: 8px; } .ws-creation-flow .flow-brief { margin: 0 0 8px; color: var(--muted, #666); font-size: 13px; } .ws-creation-flow .flow-status { margin: 0 0 8px; color: var(--muted, #666); font-size: 12px; } .propose-step { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 4px 0 0; } .propose-step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; } .propose-kicker { font-size: 11px; font-weight: 650; letter-spacing: 0.04em; color: var(--accent); text-transform: none; } .propose-name { font-size: 15px; font-weight: 650; } .propose-output { margin: 0; font-size: 13px; color: var(--text); line-height: 1.45; } .propose-sync-hint, .propose-plan-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; } .propose-field.propose-field-id input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.01em; } .propose-field.is-stale-id input { border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); } .propose-fields { display: grid; gap: 8px; } .propose-field { display: grid; gap: 4px; font-size: 12px; } .propose-field-label { color: var(--muted); display: flex; gap: 6px; align-items: center; } .propose-req { font-size: 10px; color: var(--danger); } .propose-field.is-missing input { border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); } .propose-field input { height: var(--composer-control-h, 40px); padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); } .flow-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .flow-step { display: grid; grid-template-columns: 1.5rem 1fr; grid-template-rows: auto auto; column-gap: 8px; row-gap: 2px; padding: 8px 10px; background: var(--surface-2, rgba(0, 0, 0, 0.04)); border-radius: 6px; font-size: 13px; border: 1px solid transparent; } .flow-step[data-run="current"] { background: var(--surface); border-color: var(--accent); } .flow-step[data-run="done"] { opacity: 0.78; } .flow-run { grid-column: 2; font-size: 11px; font-weight: 650; color: var(--muted, #666); } .flow-step[data-run="current"] .flow-run { color: var(--accent); } .flow-step[data-run="done"] .flow-run { color: #15803d; } .flow-occ, .flow-id { margin-left: 6px; color: var(--muted, #666); font-size: 12px; font-weight: 400; } .flow-occ-revise { color: var(--text, #222); } .flow-order { grid-row: 1 / -1; align-self: center; font-weight: 600; color: var(--muted, #666); } .flow-name { font-weight: 600; } .flow-params, .flow-params-missing, .flow-deps { grid-column: 2; font-size: 12px; color: var(--muted, #666); } .flow-params-missing { color: var(--danger, #b42318); } .board-panel { flex: 1; overflow-y: auto; padding: 10px 12px; font-size: 12px; display: flex; flex-direction: column; gap: 14px; } .board-section h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; } .board-brief { margin: 0; padding: 8px; background: var(--surface-2, rgba(0,0,0,0.04)); border-radius: 6px; white-space: pre-wrap; word-break: break-word; max-height: 180px; overflow-y: auto; font-size: 11px; line-height: 1.45; } .board-tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .board-tag-item { border: 1px solid var(--border, #ddd); border-radius: 6px; padding: 8px; } .board-tag-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; } .board-edit-btn { margin-left: auto; opacity: 0.7; } .board-edit-btn:hover { opacity: 1; } .board-badge { font-size: 10px; color: var(--accent); flex-shrink: 0; } .board-tag-meta { color: var(--muted); font-size: 10px; margin-top: 2px; } .board-tag-preview { margin-top: 6px; line-height: 1.4; color: var(--text); word-break: break-word; } .board-archived { color: var(--muted); margin: 0; font-size: 11px; } .empty-sm { color: var(--muted); margin: 0; font-size: 12px; } .review-worker-set { display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; min-height: 0; } .worker-set-section h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); font-weight: 600; } .worker-set-section p { margin: 0; line-height: 1.5; } .worker-set-cards { display: flex; flex-direction: column; gap: 8px; } .worker-set-card { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: var(--surface); } .worker-set-card-head { font-weight: 600; margin-bottom: 4px; } .worker-set-duty { line-height: 1.45; } .worker-set-when { color: var(--muted); font-size: 11px; margin-top: 4px; } .worker-set-gap { color: var(--warn); font-size: 11px; margin-top: 4px; } .worker-set-pres { margin-top: 6px; font-size: 11px; } .worker-set-pres-label, .worker-set-hint-label { color: var(--muted); margin-right: 4px; } .worker-set-kv { margin: 4px 0 0; padding-left: 16px; } .worker-set-list { margin: 0; padding-left: 18px; line-height: 1.5; } .worker-set-open { color: var(--warn); } .worker-set-hint-reason { color: var(--muted); font-size: 11px; margin-top: 4px; } .worker-gap { color: var(--warn); font-size: 12px; } .review-parse-error { color: var(--danger); font-size: 13px; border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-radius: 10px; padding: 12px 14px; line-height: 1.5; } .review-parse-error-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; } .review-parse-error-hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; } .review-raw-yaml summary { cursor: pointer; color: var(--muted); font-size: 11px; user-select: none; } .review-raw-yaml pre { max-height: 160px; margin-top: 6px; } .msg-assistant-row.msg.questions .msg-bubble:not(.msg-bubble-index) { border: 2px solid color-mix(in srgb, var(--accent, #2a6) 55%, var(--border)); background: color-mix(in srgb, var(--accent, #2a6) 8%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent, #2a6) 20%, transparent); } /* 询问卡:对话流里 host 即卡片;创作工作面上剥壳,见上方 flatten 规则 */ .questions-card-host { --qcard-max: 48vh; flex: 0 1 auto; width: 100%; box-sizing: border-box; padding: 0 16px 8px; border-top: 1px solid var(--border); background: var(--surface, #fff); min-height: 0; height: fit-content; } .questions-card-host[hidden] { display: none !important; } .questions-card-host.is-open:not([hidden]) { position: relative; display: flex; flex-direction: column; max-height: var(--qcard-max); overflow: hidden; margin: 6px 0 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface, #fff); transition: max-height 0.18s ease; } .questions-card-host.is-open.is-collapsed:not([hidden]) { max-height: none; } .qcard-top { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 18px; margin: 0; padding: 4px 12px 0; border: none; background: transparent; cursor: pointer; color: var(--muted); user-select: none; width: 100%; box-sizing: border-box; } .qcard-top-grip { width: 28px; height: 3px; flex-shrink: 0; border-radius: 999px; background: color-mix(in srgb, var(--muted, #888) 35%, transparent); } .qcard-top:hover .qcard-top-grip { background: color-mix(in srgb, var(--muted, #888) 55%, transparent); } .qcard-collapsed-meta { display: none; min-width: 0; flex: 1; font-size: 12px; font-weight: 550; line-height: 1.35; color: var(--text); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .questions-card-host.is-collapsed .qcard-top { min-height: 44px; padding: 0 12px; justify-content: flex-start; } .questions-card-host.is-collapsed .qcard-top:hover .qcard-top-grip { background: color-mix(in srgb, var(--muted, #888) 55%, transparent); } .questions-card-host.is-collapsed .qcard-collapsed-meta { display: block; } .questions-card-host.is-collapsed .qcard-body, .questions-card-host.is-collapsed .qcard-float { display: none; } /* 悬浮控件层:不占文档流高度 */ .qcard-float { position: absolute; inset: 0; z-index: 2; pointer-events: none; } .qcard-pager { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 2px; padding: 2px 4px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); background: color-mix(in srgb, var(--surface, #fff) 82%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 3px color-mix(in srgb, #000 8%, transparent); font-size: 11px; color: var(--muted); pointer-events: auto; } .qcard-page { min-width: 2.4em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); } .qcard-nav { border: none; background: transparent; border-radius: 999px; width: 22px; height: 22px; cursor: pointer; line-height: 1; font-size: 14px; padding: 0; color: var(--muted); } .qcard-nav:hover:not(:disabled) { background: color-mix(in srgb, var(--muted, #888) 12%, transparent); color: var(--text); } .qcard-nav:disabled { opacity: 0.35; cursor: default; } .qcard-skip { position: absolute; bottom: 8px; right: 8px; border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); background: color-mix(in srgb, var(--surface, #fff) 82%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 3px color-mix(in srgb, #000 8%, transparent); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--muted); cursor: pointer; pointer-events: auto; } .qcard-skip:hover { color: var(--text); border-color: var(--border-strong, #999); } .qcard-body { flex: 1 1 auto; min-height: 0; padding: 10px 12px; overflow: auto; } .questions-card-host.has-pager .qcard-body { padding-top: 12px; } .questions-card-host.has-pager .qcard-pager { top: 4px; } .questions-card-host.has-skip .qcard-body { padding-bottom: 40px; } .qcard-q { margin-bottom: 0; } .qcard-q + .qcard-q { margin-top: 14px; } .qcard-assessment { margin-bottom: 10px; padding: 8px 10px; border-left: 3px solid var(--border-strong, #c4b5a0); background: color-mix(in srgb, var(--panel, #fff) 88%, var(--muted, #888) 12%); font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; color: var(--text); } .qcard-optional-note { margin: 0 0 8px; font-size: 12px; color: var(--muted); line-height: 1.4; } .qcard-prompt { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.45; white-space: pre-wrap; } .qcard-options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .qcard-opt { display: grid; grid-template-columns: 36px 1fr; gap: 8px; align-items: start; padding: 6px 8px; border-radius: 8px; border: 1px solid transparent; } .qcard-opt.is-selected { border-color: color-mix(in srgb, var(--accent, #2a6) 45%, var(--border)); background: color-mix(in srgb, var(--accent, #2a6) 8%, var(--surface)); } .qcard-letter { width: 32px; height: 28px; border-radius: 6px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface, #fff) 80%, #ddd); font-weight: 700; font-size: 12px; cursor: pointer; } .qcard-opt.is-selected .qcard-letter { background: var(--accent, #2a6); border-color: var(--accent, #2a6); color: #fff; } .qcard-label { min-height: 28px; padding: 4px 6px; border-radius: 6px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; flex: 1; line-height: 1.45; outline: none; } .qcard-label:focus { background: color-mix(in srgb, var(--surface, #fff) 70%, #e8e4dc); box-shadow: inset 0 0 0 1px var(--border); } .qcard-label.is-readonly { color: var(--muted); } .qcard-other-input { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 13px; background: var(--surface, #fff); } .composer-ask-banner { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent, #2a6) 40%, var(--border)); background: color-mix(in srgb, var(--accent, #2a6) 10%, var(--surface)); font-size: 13px; line-height: 1.45; } .composer-ask-banner strong { display: block; margin-bottom: 4px; } .skill-guide-runs { color: var(--muted); font-size: 11px; font-weight: normal; } .worker-set-user-panel { flex-shrink: 0; max-height: 45%; overflow-y: auto; border-bottom: 1px solid var(--border); padding: 8px 10px; font-size: 12px; } .worker-set-user-panel[hidden] { display: none; } .ws-user-view { display: flex; flex-direction: column; gap: 10px; } .ws-section h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); font-weight: 600; } .ws-section p { margin: 0; line-height: 1.5; } .ws-slot-row { display: flex; flex-wrap: wrap; gap: 6px; } .ws-slot-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 12px; border: 1px solid var(--border); } .ws-slot-chip.ws-slot-on { background: var(--accent-soft); border-color: transparent; } .ws-slot-chip.ws-slot-off { opacity: 0.55; text-decoration: line-through; } /* 产物结构化展示 — 对齐 qcard / flow-step / ws-badge */ .artifact-friendly { display: flex; flex-direction: column; gap: 10px; } .artifact-list { margin: 0; padding-left: 18px; line-height: 1.5; } .artifact-hero { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); } .artifact-block, .artifact-friendly .ws-section { padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); } .artifact-block h4, .artifact-friendly .ws-section h4 { margin: 0 0 6px; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.05em; } .artifact-chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .artifact-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 12px; border: 1px solid var(--border); background: var(--surface-2, rgba(0, 0, 0, 0.03)); } .artifact-chip.mount { background: var(--accent-soft); border-color: transparent; color: var(--accent); } .artifact-chip.muted { opacity: 0.8; color: var(--muted); } .artifact-prose, .artifact-inline, .artifact-conclusion { margin: 0; font-family: var(--font-read); font-size: 13.5px; font-weight: 500; line-height: 1.6; color: #27272a; white-space: pre-wrap; word-break: break-word; } .artifact-prose, .artifact-conclusion { padding: 8px 10px; border-radius: 8px; background: var(--bg); } .artifact-brief { margin: 0; font-family: var(--font-read); font-size: 15px; font-weight: 600; line-height: 1.5; } .artifact-kernel.qcard-assessment, .artifact-kernel { font-family: var(--font-read); } .artifact-kernel .artifact-prose, .artifact-kernel .artifact-inline { font-size: 14px; line-height: 1.65; } .artifact-aside-label, .af-panel > h4, .artifact-block h4, .artifact-friendly .ws-section h4 { font-family: var(--font-ui); } .artifact-scalar { font-variant-numeric: tabular-nums; } .artifact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; } .artifact-card { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: var(--bg); } .artifact-card-title { font-weight: 600; font-size: 13px; margin-bottom: 6px; } .artifact-card-body { font-size: 13px; line-height: 1.45; } .artifact-kv { display: flex; flex-direction: column; gap: 8px; } .artifact-kv-row { display: grid; grid-template-columns: minmax(4.5rem, 26%) 1fr; gap: 6px 10px; align-items: start; } .artifact-kv-row.complex { grid-template-columns: 1fr; gap: 4px; } .artifact-kv-key { font-size: 11px; font-weight: 600; color: var(--muted); padding-top: 2px; } .artifact-kv-row.complex .artifact-kv-key { margin-bottom: 2px; } .artifact-kv-val { min-width: 0; font-size: 13px; line-height: 1.45; } /* 自适应定义行:够宽并排,不够整组折行——同行规则,不按字数抽签 */ .af-def-list { display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: 0; } .af-def { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 3px; min-width: 0; padding-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent); } .af-def:last-child { border-bottom: none; padding-bottom: 0; } .af-def-k { flex: 0 1 auto; max-width: 100%; font-size: 11px; font-weight: 650; color: var(--muted); line-height: 1.35; } .af-def-v { flex: 1 1 12rem; min-width: min(100%, 12rem); font-size: 13px; line-height: 1.55; color: var(--text); word-break: break-word; } .af-def-v .artifact-prose, .af-def-v .artifact-inline { margin: 0; font-size: inherit; line-height: inherit; max-width: none; } .af-def-list > .af-section { margin: 4px 0 10px; padding-top: 4px; border-bottom: none; } .af-def-list > .af-section .af-section-title { margin-bottom: 8px; } .af-split-product .af-def-v { flex-basis: 14rem; } /* 百分比进度条 */ .pct-meter { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); } .pct-meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; } .pct-meter-label { font-weight: 600; color: var(--muted); } .pct-meter-value { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; } .pct-meter-track { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--border) 70%, transparent); overflow: hidden; } .pct-meter-track > i { display: block; height: 100%; border-radius: inherit; transition: width 0.2s ease; } .pct-meter.tone-low .pct-meter-value { color: var(--danger); } .pct-meter.tone-low .pct-meter-track > i { background: var(--danger); } .pct-meter.tone-mid .pct-meter-value { color: var(--warn); } .pct-meter.tone-mid .pct-meter-track > i { background: var(--warn); } .pct-meter.tone-high .pct-meter-value { color: var(--ok); } .pct-meter.tone-high .pct-meter-track > i { background: var(--ok); } .artifact-scores { display: flex; flex-direction: column; gap: 8px; } .artifact-score-note, .artifact-weak { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; } .artifact-weak { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .artifact-diag { display: flex; flex-direction: column; gap: 8px; } .artifact-basis, .artifact-fact { margin: 0; font-size: 12.5px; line-height: 1.5; padding: 6px 8px; border-radius: 6px; background: color-mix(in srgb, var(--surface) 88%, var(--muted) 12%); } .artifact-fact.pending { border-left: 3px solid var(--warn); background: color-mix(in srgb, #fef9c3 55%, var(--surface)); } .artifact-aside-label { display: inline-block; margin-right: 6px; font-size: 11px; font-weight: 700; color: var(--muted); } .artifact-kernel.qcard-assessment { margin: 0; } .artifact-subgroups { display: flex; flex-direction: column; gap: 8px; } .artifact-subgroup { padding: 8px 10px; border-radius: 8px; background: var(--bg); border: 1px solid transparent; } .artifact-subgroup:hover { border-color: var(--border); } .artifact-subgroup-title { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; } .artifact-body-specialty { display: contents; } .artifact-probe-lead { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--muted); } .artifact-probe-q + .artifact-probe-q { margin-top: 14px; } .artifact-probe-opts { margin-top: 6px; } .artifact-probe-opts .qcard-opt { pointer-events: none; } .artifact-q-idx { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; vertical-align: -2px; } .artifact-order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .artifact-order-list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--bg); } .artifact-order-list > li.is-history { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); } .artifact-order-idx { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.4rem; padding: 0 4px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--accent-soft); color: var(--accent); } .artifact-order-ref { font-weight: 600; } .artifact-raw { margin-top: 10px; font-size: 12px; color: var(--muted); } .artifact-raw > summary { cursor: pointer; user-select: none; padding: 4px 0; } .artifact-raw > summary:hover { color: var(--text); } .artifact-raw .json-pretty { margin-top: 6px; max-height: min(40vh, 360px); } /* 指针 tag / 扁平面包屑:一行路径 + 不起眼原文 */ .artifact-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 4px 0 8px; border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); margin-bottom: 4px; } .artifact-crumb-path { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; min-width: 0; font-size: 12px; line-height: 1.35; } .artifact-crumb-root { color: var(--muted); font-weight: 500; } .artifact-crumb-sep { color: var(--muted); opacity: 0.55; font-weight: 400; } .artifact-crumb-leaf { color: var(--text); font-weight: 650; } .artifact-raw--quiet { margin: 0 0 0 auto; font-size: 11px; } .artifact-raw--quiet > summary { padding: 0; opacity: 0.65; } .artifact-raw--quiet > summary:hover { opacity: 1; } .artifact-raw--quiet .json-pretty { margin-top: 6px; max-height: min(28vh, 240px); font-size: 11px; } .artifact-body-root > .artifact-kv, .artifact-body-root > .artifact-cards { margin-top: 2px; } .ws-context-order .ws-order-hint { margin: 0.25rem 0 0.5rem; font-size: 0.85em; } .ctx-order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .ctx-order-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid var(--border, #ddd); border-radius: 6px; background: var(--surface-2, transparent); } .ctx-order-line { flex: 1 1 12rem; font-size: 0.9em; line-height: 1.4; } .ctx-order-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; } .btn-mini { font: inherit; font-size: 0.8em; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--border, #ccc); background: var(--surface, #fff); cursor: pointer; } .btn-mini:hover { border-color: var(--accent, #666); } .ctx-order-proj { font: inherit; font-size: 0.8em; padding: 2px 4px; border-radius: 4px; border: 1px solid var(--border, #ccc); max-width: 6.5rem; } .ctx-order-row.ctx-order-history { border-color: var(--accent, #888); background: var(--accent-soft, rgba(0, 0, 0, 0.04)); } .ws-muted { color: var(--muted); font-size: 11px; } .ws-headline p { font-weight: 500; } .ws-list, .ws-kv { margin: 0; padding-left: 18px; line-height: 1.5; } .ws-worker-cards { display: flex; flex-direction: column; gap: 8px; } .ws-worker-card { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: var(--surface); } .ws-worker-card.gap { border-color: var(--warn); } .ws-worker-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; } .ws-worker-order { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; } .ws-worker-name { font-weight: 600; flex: 1; } .ws-worker-id { font-size: 11px; color: var(--muted); display: block; margin-bottom: 4px; } .ws-badge { font-size: 10px; padding: 1px 6px; border-radius: 4px; } .ws-badge-ok { background: #dcfce7; color: var(--ok); } .ws-badge-warn { background: #fef9c3; color: var(--warn); } .ws-badge-review { background: #e0f2fe; color: #0369a1; } .ws-badge-continue { background: #f3f4f6; color: #4b5563; } .ws-row { display: grid; grid-template-columns: 72px 1fr; gap: 6px; margin: 4px 0; line-height: 1.45; } .ws-label { color: var(--muted); font-size: 11px; } .ws-gap { color: var(--warn); font-size: 11px; margin: 4px 0; } .ws-pres { margin: 6px 0; } .ws-context-block { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; } .ws-context-tier { background: var(--bg); border-radius: 6px; padding: 6px 8px; } .ws-tag-order { margin: 4px 0 0; padding-left: 20px; line-height: 1.55; } .ws-tag-order li { margin: 2px 0; } .ws-tag-order code { font-size: 11px; } .ws-tag-note { display: block; color: var(--muted); font-size: 10px; margin-left: 2px; } .ws-tag-filled { color: var(--ok); margin-left: 4px; font-size: 10px; } .ws-tag-pending { color: var(--muted); margin-left: 4px; font-size: 10px; } .ws-tag-empty { color: var(--muted); font-size: 11px; margin-top: 2px; } .ws-context-hint { margin: 0 0 0.5rem; font-size: 12px; } .ws-context-cards { display: flex; flex-direction: column; gap: 8px; } .ws-context-card { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: var(--panel, #fff); } .ws-context-card.kind-fixed { border-left: 3px solid var(--accent); } .ws-context-card.kind-resident { border-left: 3px solid #0d9488; } .ws-context-card.kind-board { border-left: 3px solid #94a3b8; } .ws-context-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; } .ws-context-card-title { font-weight: 600; flex: 1; } .ws-context-preview { margin: 0 0 6px; font-size: 12px; color: var(--text); line-height: 1.45; white-space: pre-wrap; max-height: 4.5em; overflow: hidden; } .ws-mount-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-bottom: 4px; } .ws-mount-summary { font-size: 13px; font-weight: 500; } .ws-mount-chips { display: flex; flex-wrap: wrap; gap: 4px; } .ws-mount-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 7px; border-radius: 4px; background: var(--bg); border: 1px solid var(--border); } .ws-mount-how { color: var(--muted); font-size: 10px; } .ws-badge-fixed { background: #e0e7ff; color: #3730a3; } .ws-badge-resident { background: #ccfbf1; color: #0f766e; } .ws-badge-board { background: #f1f5f9; color: #475569; } .ws-badge-focus { background: #fef3c7; color: #92400e; font-weight: 700; } .ws-focus-banner { border: 1px solid #f59e0b; border-radius: 10px; padding: 10px 12px; background: linear-gradient(180deg, #fffbeb 0%, var(--panel, #fff) 100%); box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12); } .ws-focus-banner-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; } .ws-focus-mode { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 2px 8px; border-radius: 999px; background: #f59e0b; color: #111827; } .ws-focus-label { font-weight: 700; font-size: 15px; } .ws-focus-id { font-size: 11px; color: var(--muted); } .ws-focus-hint { margin: 0 0 8px; font-size: 12px; color: #92400e; line-height: 1.45; } .ws-focus-body-text, .ws-focus-body-json { margin: 0; font-size: 12px; line-height: 1.5; white-space: pre-wrap; } .ws-context-card.ws-context-focus, .ws-worker-card.ws-worker-focus { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25); background: #fffbeb; } .ws-context-card.ws-dimmed, .ws-worker-card.ws-dimmed { opacity: 0.45; } .ws-unit-current { background: #fffbeb; border-radius: 6px; padding: 4px 6px !important; border: 1px solid #fcd34d; } .ws-section-focus-context h4 { color: #92400e; } .ws-writes { margin-top: 6px; line-height: 1.6; } .ws-writes code { font-size: 11px; margin-right: 4px; } .ws-inferred { color: var(--muted); font-size: 10px; margin-top: 4px; font-style: italic; } .ws-flow { display: flex; flex-direction: column; gap: 4px; } .ws-flow-edge { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; line-height: 1.5; } .ws-flow-arrow { color: var(--muted); } .ws-task-list { list-style: none; margin: 0; padding: 0; } .ws-task { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--border); } .ws-task:last-child { border-bottom: none; } .ws-task-status { font-size: 10px; padding: 1px 5px; border-radius: 4px; background: var(--bg); } .ws-task-filled .ws-task-status { color: var(--ok); } .ws-task-skipped .ws-task-status { color: var(--muted); } .ws-task-planned .ws-task-status { color: var(--accent); } .ws-open { color: var(--warn); } /* Context menu */ .context-menu { position: fixed; z-index: 1000; min-width: 120px; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); } .context-menu-item { display: block; width: 100%; text-align: left; border: none; background: transparent; padding: 8px 12px; font-size: 13px; cursor: pointer; border-radius: 4px; } .context-menu-item[hidden] { display: none; } .context-menu-item:hover { background: var(--bg); } .context-menu-item:disabled { opacity: 0.45; cursor: not-allowed; } .context-menu-item:disabled:hover { background: transparent; } .context-menu-separator-before { border-top: 1px solid var(--border); } .context-menu-danger { color: var(--danger); } .context-menu-danger:hover { background: #fef2f2; } /* Agent panel */ .agent-focus { padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 12px; flex-shrink: 0; min-width: 0; } .agent-focus-who { font-weight: 600; font-family: var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .agent-focus-action { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; } .agent-focus-detail { margin-top: 2px; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.35; } #rail-panel-log .tool-trace { max-height: 30%; overflow: auto; } .tool-trace { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 12px; } .tool-trace-item { padding: 4px 0; border-bottom: 1px dashed var(--border); } .tool-trace-item:last-child { border-bottom: none; } .tool-trace-name { font-family: ui-monospace, monospace; font-weight: 600; color: var(--accent); } .agent-timeline { flex: 1; overflow-y: auto; padding: 8px 12px; font-size: 12px; min-height: 0; } .timeline-item { padding: 6px 0; border-bottom: 1px solid var(--border); } .timeline-empty { color: var(--muted); } /* Composer — emoji 更多在左 / 输入 / 发送;菜单向上弹出不被裁切 */ .composer { border-top: 1px solid var(--border); padding: 6px var(--workspace-pad-x, 16px) 8px; min-height: var(--composer-min); overflow: visible; background: var(--bg); flex-shrink: 0; position: relative; z-index: 20; display: flex; flex-direction: row; align-items: flex-end; gap: 8px; } .composer > .status { flex: 0 0 auto; align-self: center; min-width: 0; } .composer:has(.composer-mode-chip) > .status, .composer:has(.composer-input-shell) > .status { display: none; } #composer-main { flex: 1 1 auto; min-width: 0; min-height: 0; max-height: min(50vh, 420px); overflow: auto; } /* 唯一描边:输入 + 操作同框 */ .composer-input-shell { flex: 1 1 auto; min-width: 0; min-height: var(--composer-control-h); display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 4px 6px 4px 10px; background: var(--surface); transition: border-color 0.12s ease, box-shadow 0.12s ease; } .composer-input-shell:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); } .composer-input-shell[data-task="review"]:focus-within { border-color: #86efac; box-shadow: 0 0 0 2px #dcfce7; } .composer-input-shell[data-task="review"][data-tone="plan"]:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); } .composer-shell-actions { flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding-bottom: 2px; } .composer-mode-chip { flex-shrink: 0; align-self: center; margin: 0; font-size: 11px; font-weight: 650; line-height: 1; padding: 4px 0; border: none; border-radius: 0; background: transparent; color: var(--muted); user-select: none; white-space: nowrap; } .composer-mode-chip[data-task="speak"], .composer-input-shell[data-task="speak"] .composer-mode-chip { color: var(--accent); border: none; background: transparent; } .composer-mode-chip[data-task="answer"], .composer-input-shell[data-task="answer"] .composer-mode-chip { color: #a16207; border: none; background: transparent; } .composer-mode-chip[data-task="review"], .composer-input-shell[data-task="review"] .composer-mode-chip { color: #15803d; border: none; background: transparent; } .composer-mode-chip[data-task="review"][data-tone="plan"], .composer-input-shell[data-task="review"][data-tone="plan"] .composer-mode-chip { color: var(--accent); } .composer-input-shell textarea { flex: 1; min-width: 0; min-height: 1.5em; max-height: min(42vh, 360px); height: auto; resize: none; overflow-y: hidden; border: none; border-radius: 0; padding: 6px 4px; line-height: 1.5; background: transparent; box-shadow: none; field-sizing: content; } .composer-input-shell textarea:focus { outline: none; border: none; box-shadow: none; } .composer-actions-with-chip { align-items: center; } .composer-actions-with-chip .composer-mode-chip { margin-top: 0; margin-right: 2px; } .composer-waiting, .composer-idle { padding: 6px 0; text-align: left; color: var(--muted); font-size: 13px; } .composer-waiting { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .composer-waiting .btn { flex-shrink: 0; } .composer-hint { margin: 0 0 8px; font-size: 12px; color: var(--muted); } .composer-form { display: flex; gap: 0; align-items: flex-end; min-height: 0; max-height: 100%; width: 100%; } .composer-form .composer-input-shell { width: 100%; } .composer-shell-actions > .btn, .composer-shell-actions > .btn-primary, .composer-shell-actions > .composer-btn, .composer-shell-actions > .composer-btn-accept, .composer-form > .btn, .composer-form > .btn-primary, .composer-form > .composer-btn, .composer-form > .composer-btn-accept { flex-shrink: 0; box-sizing: border-box; min-height: calc(var(--composer-control-h) - 8px); height: calc(var(--composer-control-h) - 8px); padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-size: 13px; } /* 验收态:主按钮承接原「批阅」语义 */ .composer-btn-review { background: #15803d; border-color: #15803d; color: #fff; } .composer-btn-review:hover:not(:disabled) { background: #166534; border-color: #166534; } .composer-form textarea { flex: 1; min-height: var(--composer-control-h); max-height: min(42vh, 360px); height: auto; resize: none; overflow-y: hidden; border: none; border-radius: 0; padding: 6px 4px; line-height: 1.5; background: transparent; field-sizing: content; } .composer-form textarea:focus { outline: none; border: none; box-shadow: none; } .composer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; } .composer-actions .btn-primary { flex: 1; } /* Intake (from intake-ui.js) */ .intake-panel { border: 1px solid var(--border); border-radius: 8px; padding: 10px; margin-bottom: 10px; background: #fffbeb; } .intake-section-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 6px; } .intake-list { list-style: none; margin: 0; padding: 0; } .intake-item { display: grid; grid-template-columns: 16px 1fr auto; gap: 6px; font-size: 12px; padding: 3px 0; } .intake-item.filled .intake-mark { color: var(--ok); } .intake-value.empty { color: var(--muted); } /* Dialog */ .dialog { border: 1px solid var(--border); border-radius: 10px; padding: 16px; max-width: 400px; background: var(--panel, #fff); color: inherit; } .dialog-wide { width: min(920px, 94vw); max-width: min(920px, 94vw); max-height: min(88vh, 900px); } .context-trace-form { display: flex; flex-direction: column; gap: 10px; max-height: min(84vh, 860px); } .context-trace-body { margin: 0; padding: 12px; overflow: auto; flex: 1; min-height: 240px; max-height: min(60vh, 640px); font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; background: color-mix(in srgb, var(--panel, #fff) 92%, #000 8%); border: 1px solid var(--border); border-radius: 8px; } .dialog::backdrop { background: rgba(0,0,0,0.3); } .dialog h2 { margin: 0 0 8px; font-size: 16px; } .dialog-desc { margin: 0 0 12px; font-size: 13px; color: var(--muted); } .field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; } .field input { padding: 8px; border: 1px solid var(--border); border-radius: 6px; } .dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; } .dialog-head-row { display: flex; justify-content: space-between; align-items: center; } /* —— 游玩呈现壳 present.v1 —— * 主工作面 = body(随 1000~2000 字撑高)。 * 视觉:少盒子、少渐变;层级靠字号/间距/对比,不靠装饰抢注意力。 */ .present-shell { white-space: normal; --present-ink: #1c1917; --present-muted: #78716c; --present-line: #e7e5e4; --present-soft: #f5f5f4; --present-accent: #0f766e; --present-body: 15px; --present-body-lh: 1.62; --present-body-hero: 16.5px; --present-body-read: 15.5px; display: flex; flex-direction: column; gap: 0; position: relative; padding: 16px 18px 18px; border: 1px solid var(--present-line); border-radius: 8px; background: var(--surface, #fff); color: var(--present-ink); } .present-shell-badge { align-self: flex-start; margin-bottom: 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--present-muted); opacity: 0.55; padding: 0; border: none; background: transparent; } .present-stack, .present-board, .present-split, .present-reader { display: flex; flex-direction: column; gap: 14px; min-width: 0; } .present-region { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .present-region-title { margin: 0; font-size: 11px; font-weight: 700; color: var(--present-muted); letter-spacing: 0.05em; } .present-region-body { margin: 0; line-height: 1.65; white-space: normal; font-size: 14px; } .present-region-body > p { margin: 0 0 0.7em; } .present-region-body > p:last-child { margin-bottom: 0; } /* P0:正文舞台 —— 随字数伸展(1000~2000 靠外层滚动,不塞进小框) */ .present-stage { flex: 1 1 auto; min-height: 0; min-width: 0; } .present-region--body { min-width: 0; } .present-region--body .present-region-body, .present-stage .present-region--body .present-region-body, .present-stage.present-region--body .present-region-body { font-size: var(--present-body); line-height: var(--present-body-lh); letter-spacing: 0.01em; max-height: none; overflow: visible; } .present-stage--hero .present-region-body { font-size: var(--present-body-hero); line-height: 1.82; padding: 4px 2px 8px; } .present-stage--read .present-region-body { font-family: var(--font-read); font-size: var(--present-body-read); line-height: 1.7; max-width: none; } /* 双栏:侧栏钉住,正文再长也能对照 */ .present-board-side, .present-split-side, .present-reader-aside { position: sticky; top: 0.75rem; align-self: start; max-height: calc(100dvh - 3rem); overflow-y: auto; } /* P2:监控芯片 */ .present-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; } .present-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--present-line); background: var(--present-soft); font-size: 12px; line-height: 1.35; } .present-chip-k { color: var(--present-muted); font-weight: 600; } .present-chip-v { color: var(--present-ink); font-weight: 500; } .present-region--monitor .present-region-body, .present-region--aside .present-region-body, .present-region--footer .present-region-body { font-size: 12.5px; line-height: 1.45; color: var(--present-ink); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--present-line); background: var(--present-soft); } .present-region--header .present-region-body { font-size: 14px; font-weight: 650; letter-spacing: 0.01em; line-height: 1.4; } /* P1:行动 */ .present-action-row { display: flex; flex-wrap: wrap; gap: 8px; } .present-action { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--present-accent) 35%, var(--present-line)); background: color-mix(in srgb, var(--present-accent) 8%, #fff); color: var(--present-ink); font-size: 13px; font-weight: 550; line-height: 1.3; } .present-actions { margin: 0; padding-left: 18px; line-height: 1.45; font-size: 13px; } /* —— 各壳布局(结构差在同时可见关系;不靠渐变区分) —— */ .present-shell--chat_monitor { --present-accent: #0369a1; } .present-shell--chat_monitor .present-stage { padding: 4px 0 0; border: none; background: transparent; } .present-shell--spotlight { --present-accent: #b45309; padding-top: 14px; } .present-shell--spotlight .present-stack--spotlight { gap: 12px; } .present-shell--spotlight .present-stage--hero { padding: 2px 0 4px; } .present-shell--spotlight .present-region--monitor .present-region-title { display: none; } .present-shell--turn_panel { --present-accent: #047857; } .present-board-top { display: flex; flex-direction: column; gap: 8px; } .present-board-mid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(140px, 0.8fr); gap: 16px; align-items: start; } .present-board-mid.is-solo, .present-board-mid:not(:has(.present-board-side)) { grid-template-columns: minmax(0, 1fr); } .present-board-side:empty { display: none; } .present-board-side { display: flex; flex-direction: column; gap: 8px; } .present-shell--turn_panel .present-stage { padding: 0; border: none; background: transparent; } .present-shell--split_board { --present-accent: #4338ca; } .present-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(150px, 0.85fr); gap: 16px 20px; align-items: start; } .present-split.is-solo, .present-split:not(:has(.present-split-side)) { grid-template-columns: minmax(0, 1fr); } .present-split-side:empty { display: none; } .present-split-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; } .present-split-side { min-width: 0; padding: 0 0 0 14px; border-radius: 0; border: none; border-left: 1px solid var(--present-line); background: transparent; } .present-split .present-region--actions { grid-column: 1 / -1; } .present-shell--choice_dock { --present-accent: #be123c; } .present-stack--dock { gap: 12px; } .present-dock { margin-top: 8px; padding: 12px 0 0; border-radius: 0; border: none; border-top: 1px solid var(--present-line); background: color-mix(in srgb, var(--surface, #fff) 92%, var(--present-soft)); position: sticky; bottom: 0; z-index: 2; } .present-dock .present-region-title { margin-bottom: 2px; } .present-dock .present-action { padding: 9px 14px; font-size: 13.5px; border-width: 1px; } .present-shell--chapter_reader { --present-accent: #44403c; } .present-reader { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 0.38fr); gap: 20px; align-items: start; } .present-reader.is-solo, .present-reader:not(:has(.present-reader-aside)) { grid-template-columns: minmax(0, 1fr); } .present-reader-aside:empty { display: none; } .present-reader-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; } .present-reader-aside { font-size: 12px; padding-top: 4px; border-left: 1px solid var(--present-line); padding-left: 14px; } .present-shell--chapter_reader .present-region--header .present-region-body { font-family: var(--font-read); font-size: 20px; font-weight: 600; } .present-shell--prose .present-stage--read { padding: 2px 0; } .present-shell--prose .present-region--footer .present-region-body { opacity: 0.75; border: none; background: transparent; padding: 0; } @media (max-width: 640px) { .present-board-mid, .present-split, .present-reader { grid-template-columns: 1fr; } .present-board-side, .present-split-side, .present-reader-aside { position: static; max-height: none; } .present-reader-aside { border-left: none; border-top: 1px solid var(--present-line); padding-left: 0; padding-top: 12px; } } .present-tone--messenger .present-stage { border-left: 3px solid #7dd3fc; padding-left: 12px; } .present-tone--book .present-stage--read .present-region-body, .present-tone--book .present-stage .present-region-body { font-family: var(--font-read); max-width: none; } .present-tone--terminal { --present-ink: #d6d3d1; --present-muted: #a8a29e; --present-line: #3f3f46; --present-soft: #27272a; background: #18181b; color: #e7e5e4; } .present-tone--terminal .present-chip, .present-tone--terminal .present-stage, .present-tone--terminal .present-dock, .present-tone--terminal .present-split-side { background: #27272a; border-color: #3f3f46; } .present-tone--terminal .present-region-body, .present-tone--terminal .present-action { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; } .present-tone--terminal .present-region--body .present-region-body { font-size: calc(var(--present-body) - 0.5px); } .present-tone--terminal .present-action { font-size: 13px; color: #e7e5e4; background: #3f3f46; } .opening-setup-body { display: grid; gap: 12px; } .opening-picker { display: grid; gap: 8px; } .opening-picker-nav { display: flex; align-items: center; justify-content: center; gap: 10px; } .opening-picker-btn { font: inherit; font-size: 12px; padding: 4px 10px; border: 1px solid var(--border); background: var(--bg-elev, transparent); color: inherit; border-radius: 6px; cursor: pointer; } .opening-picker-btn:hover { border-color: var(--accent); } .opening-picker-pos { font-size: 12px; color: var(--muted, #888); min-width: 4.5em; text-align: center; }