/* Functional layout — agent-first, no production-line chrome */ :root { --bg: #f4f4f5; --surface: #fff; --border: #d4d4d8; --text: #18181b; --muted: #71717a; --accent: #2563eb; --accent-soft: #dbeafe; --ok: #16a34a; --warn: #ca8a04; --danger: #dc2626; --books-w: 216px; --books-w-collapsed: 52px; --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: 56px; --composer-control-h: 40px; --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; font-family: var(--font-ui); font-size: 14px; color: var(--text); } /* 开创作后缩进左侧栏 */ body.rail-collapsed { --books-w: var(--books-w-collapsed); } * { box-sizing: border-box; } html, body { height: 100%; margin: 0; overflow: hidden; /* 浏览器层永不出现页面滚动条 */ } 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 { gap: 4px; padding: 6px; flex-wrap: nowrap; align-items: center; min-width: 0; } .rail-toggle { flex-shrink: 0; width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; } body.rail-collapsed .rail-toggle { transform: rotate(180deg); } .rail-tabs { display: flex; flex: 1 1 auto; gap: 2px; min-width: 0; } .rail-tab { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 0; min-width: 0; height: 28px; border: none; background: transparent; border-radius: 6px; padding: 0 6px; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; } .rail-tab:hover { background: var(--bg); color: var(--text); } .rail-tab.active { background: var(--accent-soft); color: var(--accent); } .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 .rail-tab-label, body.rail-collapsed .path-bar, body.rail-collapsed .rail-head-actions #btn-new-book, body.rail-collapsed .burst-badge { display: none !important; } body.rail-collapsed .rail-tab-icon { display: block; } body.rail-collapsed .rail-head { flex-direction: column; align-items: stretch; padding: 6px 4px; gap: 4px; } body.rail-collapsed .rail-tabs { flex-direction: column; } body.rail-collapsed .rail-tab { flex: 0 0 auto; width: 100%; height: 32px; padding: 0; } body.rail-collapsed .rail-panels { display: none; } body.rail-collapsed .panel-rail { align-items: stretch; } /* composer 按内容自适应;中间区吃掉剩余高度,整页锁在视口内 */ .panel-main { display: grid; grid-template-rows: var(--head-h) minmax(0, 1fr) auto; min-width: 0; min-height: 0; height: 100%; overflow: hidden; } .main-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 12px; border-bottom: 1px solid var(--border); } .main-head-left { min-width: 0; } .main-head-right { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; } .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); } .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; } /* 验收态:协调流收窄,产物占主工作面 */ .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: 4px; } .coord-empty { margin: 16px 8px; font-size: 12px; color: var(--muted); text-align: center; } .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-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; } 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, .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-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; } 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; max-width: var(--workspace-max, 920px); width: 100%; align-self: center; padding: 0 var(--workspace-pad-x, 24px) var(--workspace-pad-y, 16px); box-sizing: border-box; } .workspace-review-ask .questions-card-host { padding-left: 0; padding-right: 0; border-top: none; } .workspace-review-ask .questions-card-host.is-open:not([hidden]) { margin-top: 0; } 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); } 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-sm { padding: 4px 8px; font-size: 12px; } .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); } .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 — pill breadcrumb + list */ .path-bar { display: flex; align-items: center; flex-wrap: nowrap; gap: 0; margin: 8px 8px 0; padding: 7px 10px; border: none; background: var(--bg); border-radius: 10px; overflow-x: auto; font-size: 12px; line-height: 1.35; flex-shrink: 0; min-width: 0; } .path-bar[hidden] { display: none; } .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; } .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:hover { background: var(--bg); } .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; } .sidebar-empty { padding: 12px; color: var(--muted); font-size: 13px; text-align: center; } /* Lifecycle */ .lifecycle-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; padding: 2px; } .lifecycle-btn { border: none; background: transparent; padding: 4px 14px; border-radius: 6px; font-size: 13px; cursor: pointer; color: var(--muted); } .lifecycle-btn.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; } body[data-lifecycle="play"] { --accent: #16a34a; --accent-soft: #dcfce7; --bg: #f0fdf4; } body[data-lifecycle="play"] .panel-rail { background: #f7fef9; } /* 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-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-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; } .more-menu-sum { list-style: none; cursor: pointer; user-select: none; } .more-menu-sum::-webkit-details-marker { display: none; } .more-menu-sum::marker { content: ""; } .more-menu[open] .more-menu-sum { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); } .more-menu-panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 40; min-width: 132px; padding: 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; gap: 1px; } .more-menu-item { display: block; padding: 7px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 13px; } .more-menu-item:hover { background: var(--bg); color: var(--accent); } /* 提问索引气泡:决策在下方询问卡 */ .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: 14px 18px 18px; gap: 14px; } 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: none; } body[data-lifecycle="play"] .msg-assistant-row .msg-head { padding-top: 6px; } body[data-lifecycle="play"] .present-shell { border-radius: 10px; } body[data-lifecycle="play"] .msg-user-row .msg-bubble { width: min(100%, 28rem); max-width: 90%; } /* 产物紧凑卡:横向主轴,预览一行 */ .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: 10px; } .af-block-title { margin: 0 0 4px; font-family: var(--font-ui); font-size: 15px; font-weight: 700; 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-block--product .af-block-body .artifact-kernel .artifact-prose, .af-block--product .af-block-body .artifact-prose { font-family: var(--font-read); font-size: 15.5px; line-height: 1.75; max-width: 42rem; } .af-block--eval .af-block-title { font-size: 13px; } .af-block--extra .af-block-title { font-size: 12px; color: var(--muted); } @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-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; } @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 { 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-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 本身即卡片(不再套内层 .qcard) */ .questions-card-host { --qcard-max: 48vh; --qcard-max-expanded: 82vh; 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.22s ease; } .questions-card-host.is-open.is-expanded:not([hidden]) { max-height: var(--qcard-max-expanded); } .qcard-top { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; 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; border-radius: 999px; background: color-mix(in srgb, var(--muted, #888) 35%, transparent); } .questions-card-host.is-expanded .qcard-top { min-height: 22px; padding-top: 6px; } .questions-card-host.is-expanded .qcard-top:hover .qcard-top-grip { background: color-mix(in srgb, var(--muted, #888) 55%, transparent); } .questions-card-host:not(.is-expanded) .qcard-body { cursor: pointer; } /* 悬浮控件层:不占文档流高度 */ .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:hover { background: var(--bg); } .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 — 单层输入壳;底栏本身不再套第二层卡片 */ .composer { border-top: 1px solid var(--border); padding: 10px var(--workspace-pad-x, 16px) 12px; min-height: var(--composer-min); max-height: min(50vh, 420px); overflow: hidden; background: var(--bg); flex-shrink: 0; display: flex; flex-direction: column; justify-content: flex-end; } /* 唯一描边:输入 + 操作同框 */ .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: 8px 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: 12px; text-align: center; color: var(--muted); font-size: 13px; } .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: 8px 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-bottom: 8px; } .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; } @media (max-width: 720px) { .layout { grid-template-columns: var(--books-w-collapsed) 1fr; } body:not(.rail-collapsed) { --books-w: var(--books-w-collapsed); } body:not(.rail-collapsed) .rail-tab-label, body:not(.rail-collapsed) .path-bar { display: none !important; } body:not(.rail-collapsed) .rail-panels { display: none; } } /* —— 游玩呈现壳 present.v1 —— * 主工作面 = body(随 600~3000 字撑高)。 * 视觉:少盒子、少渐变;层级靠字号/间距/对比,不靠装饰抢注意力。 */ .present-shell { --present-ink: #1c1917; --present-muted: #78716c; --present-line: #e7e5e4; --present-soft: #f5f5f4; --present-accent: #0f766e; --present-body: 17.5px; --present-body-lh: 1.78; --present-body-hero: 19px; --present-body-read: 18.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: pre-wrap; font-size: 14px; } /* P0:正文舞台 —— 随字数伸展(600~3000 靠外层滚动,不塞进小框) */ .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.9; max-width: 42rem; } /* 双栏:侧栏钉住,正文再长也能对照 */ .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-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-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-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: 38rem; } .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; }