超限只展示源码,测试钉住沙箱和文档拼装。 Co-authored-by: Cursor <cursoragent@cursor.com>
7548 lines
180 KiB
CSS
7548 lines
180 KiB
CSS
/* Functional layout â agent-first, no production-line chrome */
|
||
|
||
:root {
|
||
/* Default = modern;实际以色主题 data-color-theme 为准 */
|
||
--bg: #f8f8f8;
|
||
--surface: #fff;
|
||
--border: #e0e0e0;
|
||
--text: #2c2c2c;
|
||
--muted: #999999;
|
||
--accent: #4a9fb0;
|
||
--accent-soft: rgba(74, 159, 176, 0.12);
|
||
--ok: #16a34a;
|
||
--warn: #ca8a04;
|
||
--danger: #dc2626;
|
||
--books-w: clamp(160px, 17vw, 196px);
|
||
--books-w-collapsed: 40px;
|
||
--coord-w: clamp(280px, 24vw, 340px);
|
||
--coord-w-collapsed: 40px;
|
||
--workspace-pad-x: clamp(24px, 4.5vw, 72px);
|
||
--workspace-pad-y: clamp(20px, 3vh, 40px);
|
||
--head-h: 48px;
|
||
--composer-min: 0px;
|
||
--composer-control-h: 36px;
|
||
--font-ui: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
|
||
--font-read: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", Georgia, serif;
|
||
--shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
|
||
--ui-font-scale: 1;
|
||
font-family: var(--font-ui);
|
||
font-size: 14px;
|
||
color: var(--text);
|
||
}
|
||
|
||
/* 全局字号:zoom 覆盖固定 px;不支持 zoom 时退回根字号 */
|
||
html {
|
||
zoom: var(--ui-font-scale);
|
||
}
|
||
@supports not (zoom: 1) {
|
||
html {
|
||
zoom: normal;
|
||
font-size: calc(14px * var(--ui-font-scale, 1));
|
||
}
|
||
}
|
||
|
||
/* 仿纸æé»ï¼æ¤ç¼ï¼*/
|
||
html[data-color-theme="paper"] {
|
||
--bg: #f5ecd7;
|
||
--surface: #fbf8f2;
|
||
--border: #d9d0c1;
|
||
--text: #3e3a35;
|
||
--muted: #8b8580;
|
||
--accent: #8b9a6b;
|
||
--accent-soft: rgba(139, 154, 107, 0.15);
|
||
--shadow: 0 8px 24px rgba(62, 58, 53, 0.1);
|
||
}
|
||
|
||
/* ç°ä»£æ¸
ç½ */
|
||
html[data-color-theme="modern"] {
|
||
--bg: #f8f8f8;
|
||
--surface: #fff;
|
||
--border: #e0e0e0;
|
||
--text: #2c2c2c;
|
||
--muted: #999999;
|
||
--accent: #4a9fb0;
|
||
--accent-soft: rgba(74, 159, 176, 0.12);
|
||
--shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
|
||
}
|
||
|
||
/* å¤é´æè² */
|
||
html[data-color-theme="dark"] {
|
||
--bg: #1e1e1e;
|
||
--surface: #2d2d30;
|
||
--border: #3e3e40;
|
||
--text: #bdbbb6;
|
||
--muted: #757575;
|
||
--accent: #d4a76a;
|
||
--accent-soft: rgba(212, 167, 106, 0.15);
|
||
--shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
|
||
}
|
||
|
||
/* è±æ²ç»¿ */
|
||
html[data-color-theme="green"] {
|
||
--bg: #dce5d9;
|
||
--surface: #f4f9f2;
|
||
--border: #c0cfbb;
|
||
--text: #2b3330;
|
||
--muted: #7a8580;
|
||
--accent: #7d9b7a;
|
||
--accent-soft: rgba(125, 155, 122, 0.15);
|
||
--shadow: 0 8px 24px rgba(43, 51, 48, 0.1);
|
||
}
|
||
|
||
html {
|
||
background: var(--bg);
|
||
color: var(--text);
|
||
}
|
||
|
||
/* å¼ÂÃ¥ÂÂä½ÂÃ¥ÂÂ缩è¿Â左侧栠*/
|
||
body.rail-collapsed {
|
||
--books-w: var(--books-w-collapsed);
|
||
}
|
||
|
||
* { box-sizing: border-box; }
|
||
html, body {
|
||
height: 100%;
|
||
margin: 0;
|
||
overflow: hidden; /* æµÂè§Âå¨å±Âæ°¸ä¸Âåºç°页颿»Âå¨æÂ¡ */
|
||
background: var(--bg);
|
||
color: var(--text);
|
||
}
|
||
button, input, textarea { font: inherit; }
|
||
a.link { color: var(--accent); text-decoration: none; }
|
||
a.link:hover { text-decoration: underline; }
|
||
|
||
.layout {
|
||
display: grid;
|
||
grid-template-rows: auto minmax(0, 1fr);
|
||
height: 100%;
|
||
max-height: 100dvh;
|
||
overflow: hidden;
|
||
background: var(--bg);
|
||
}
|
||
|
||
.workspace-shell {
|
||
display: grid;
|
||
grid-template-columns: var(--books-w) minmax(0, 1fr);
|
||
min-width: 0;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.panel { background: var(--surface); border: 1px solid var(--border); min-height: 0; }
|
||
.panel-rail,
|
||
.panel-books {
|
||
border-right: 1px solid var(--border);
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
transition: width 0.15s ease;
|
||
}
|
||
.panel-head {
|
||
display: flex; align-items: center; justify-content: space-between;
|
||
padding: 10px 12px; border-bottom: 1px solid var(--border);
|
||
font-size: 13px;
|
||
flex-shrink: 0;
|
||
}
|
||
.rail-head {
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
justify-content: flex-start;
|
||
gap: 0;
|
||
padding: 0;
|
||
min-width: 0;
|
||
}
|
||
.rail-head-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 2px;
|
||
min-width: 0;
|
||
min-height: 40px;
|
||
padding: 6px 8px 6px 10px;
|
||
}
|
||
.rail-collapse {
|
||
display: none;
|
||
flex-shrink: 0;
|
||
width: 28px;
|
||
height: 28px;
|
||
padding: 0;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 16px;
|
||
line-height: 1;
|
||
}
|
||
body[data-rail-can-collapse="1"]:not(.rail-collapsed) .rail-collapse {
|
||
display: inline-flex;
|
||
}
|
||
.rail-expand {
|
||
display: none;
|
||
flex: 1 1 auto;
|
||
width: 100%;
|
||
border: none;
|
||
border-right: 1px solid transparent;
|
||
background: var(--surface);
|
||
color: var(--muted);
|
||
cursor: pointer;
|
||
padding: 12px 0;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 8px;
|
||
font: inherit;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
line-height: 1.2;
|
||
}
|
||
.rail-expand:hover {
|
||
color: var(--accent);
|
||
background: var(--accent-soft);
|
||
}
|
||
.rail-expand:focus-visible {
|
||
outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
|
||
outline-offset: -2px;
|
||
}
|
||
.rail-expand-label {
|
||
writing-mode: vertical-rl;
|
||
letter-spacing: 0.12em;
|
||
user-select: none;
|
||
}
|
||
.rail-body {
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
}
|
||
body.rail-collapsed .rail-expand { display: flex; }
|
||
body.rail-collapsed .rail-body { display: none; }
|
||
.rail-path {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
margin: 0;
|
||
padding: 0 4px 0 0;
|
||
background: transparent;
|
||
border-radius: 0;
|
||
overflow: hidden;
|
||
}
|
||
.rail-path .path-bar-list {
|
||
width: 100%;
|
||
}
|
||
.rail-tabs {
|
||
display: none;
|
||
gap: 0;
|
||
min-width: 0;
|
||
padding: 0 8px;
|
||
}
|
||
body:not([data-nav-level="root"]) .rail-tabs {
|
||
display: flex;
|
||
}
|
||
body:not([data-nav-level="root"]) .rail-head-actions #btn-new-book,
|
||
body[data-nav-level="root"] .burst-badge { display: none; }
|
||
.rail-tabs[hidden] { display: none !important; }
|
||
.rail-tab {
|
||
flex: 1 1 0;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 0;
|
||
min-width: 0;
|
||
height: 28px;
|
||
border: none;
|
||
border-bottom: 2px solid transparent;
|
||
background: transparent;
|
||
border-radius: 0;
|
||
padding: 0 6px;
|
||
cursor: pointer;
|
||
color: var(--muted);
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
line-height: 1.2;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
}
|
||
.rail-tab:hover { color: var(--text); }
|
||
.rail-tab.active {
|
||
background: transparent;
|
||
color: var(--text);
|
||
font-weight: 600;
|
||
border-bottom-color: var(--text);
|
||
}
|
||
.rail-tab:focus-visible {
|
||
outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
|
||
outline-offset: -2px;
|
||
}
|
||
.rail-tab-icon {
|
||
display: none;
|
||
font-size: 13px;
|
||
line-height: 1;
|
||
flex-shrink: 0;
|
||
}
|
||
.rail-tab-label {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.rail-head-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 2px;
|
||
flex-shrink: 0;
|
||
min-width: 0;
|
||
}
|
||
.rail-head-actions #btn-new-book {
|
||
width: 28px;
|
||
height: 28px;
|
||
padding: 0;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 16px;
|
||
line-height: 1;
|
||
flex-shrink: 0;
|
||
}
|
||
.burst-badge {
|
||
max-width: 52px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
font-size: 10px;
|
||
font-variant-numeric: tabular-nums;
|
||
padding: 2px 5px;
|
||
border-radius: 4px;
|
||
background: var(--accent-soft);
|
||
color: var(--accent);
|
||
line-height: 1.2;
|
||
}
|
||
.rail-panels {
|
||
flex: 1;
|
||
min-height: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
}
|
||
.rail-tab-panel {
|
||
flex: 1;
|
||
min-height: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
}
|
||
.rail-tab-panel[hidden] { display: none !important; }
|
||
|
||
body.rail-collapsed .panel-rail { align-items: stretch; }
|
||
/* composer æÂÂÃ¥ÂÂ
容èªéÂÂåºÂï¼Âä¸Âé´åºåÂÂæÂÂå©ä½Âé«Â度ï¼ÂæÂ´é¡µéÂÂå¨è§Âå£åÂÂ
*/
|
||
/* panel-main 只承载工作区;全局顶栏位于 workspace-shell 上方 */
|
||
.panel-main {
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-width: 0;
|
||
min-height: 0;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
position: relative;
|
||
}
|
||
|
||
.main-stack {
|
||
flex: 1 1 auto;
|
||
display: grid;
|
||
grid-template-rows: minmax(0, 1fr) auto;
|
||
min-width: 0;
|
||
min-height: 0;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* 主界面顶栏:持久显示 */
|
||
.main-chrome {
|
||
position: relative;
|
||
z-index: 30;
|
||
flex-shrink: 0;
|
||
}
|
||
.main-head {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
||
align-items: center;
|
||
gap: 8px 12px;
|
||
min-height: 40px;
|
||
padding: 4px 12px;
|
||
border-bottom: 1px solid var(--border);
|
||
background: color-mix(in srgb, var(--bg) 92%, transparent);
|
||
backdrop-filter: blur(8px);
|
||
}
|
||
.main-head-left { min-width: 0; }
|
||
.main-app-nav {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 2px;
|
||
flex-wrap: wrap;
|
||
}
|
||
.main-app-nav a {
|
||
padding: 5px 10px;
|
||
border-radius: 6px;
|
||
text-decoration: none;
|
||
color: var(--muted);
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
line-height: 1.2;
|
||
white-space: nowrap;
|
||
}
|
||
.main-app-nav a:hover {
|
||
color: var(--text);
|
||
background: var(--accent-soft);
|
||
}
|
||
.main-app-nav a:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 1px;
|
||
}
|
||
.main-head-right {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
justify-content: flex-end;
|
||
flex-wrap: wrap;
|
||
min-width: 0;
|
||
}
|
||
.main-head-action[hidden] { display: none !important; }
|
||
.work-title { margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.work-meta { font-size: 12px; color: var(--muted); }
|
||
|
||
@media (max-width: 720px) {
|
||
.main-head {
|
||
grid-template-columns: 1fr;
|
||
justify-items: stretch;
|
||
min-height: 0;
|
||
padding: 6px 10px;
|
||
gap: 6px;
|
||
}
|
||
.main-head-left { display: none; }
|
||
.main-app-nav { justify-content: flex-start; }
|
||
.main-head-right { justify-content: flex-start; }
|
||
}
|
||
|
||
.main-body {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1fr);
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
position: relative;
|
||
}
|
||
body.design-workspace .main-body,
|
||
body.play-workspace .main-body {
|
||
grid-template-columns: minmax(0, 1fr) var(--coord-w, 240px);
|
||
}
|
||
body.design-workspace.coord-rail-collapsed .main-body,
|
||
body.play-workspace.coord-rail-collapsed .main-body {
|
||
grid-template-columns: minmax(0, 1fr) var(--coord-w-collapsed, 40px);
|
||
}
|
||
.panel-feed {
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
position: relative;
|
||
}
|
||
|
||
/* éªæ¶æï¼åè°æµæ¶çªï¼äº§ç©å 主工ä½é¢ */
|
||
.workspace-stage {
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
overflow: auto;
|
||
padding: 10px 14px 12px;
|
||
background: var(--bg);
|
||
border-top: 1px solid var(--border);
|
||
}
|
||
.workspace-stage[hidden] { display: none !important; }
|
||
.workspace-review {
|
||
max-width: none;
|
||
width: 100%;
|
||
margin: 0;
|
||
padding: 12px var(--workspace-pad-x, 28px) 16px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 12px;
|
||
background: var(--surface);
|
||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
||
cursor: context-menu;
|
||
box-sizing: border-box;
|
||
}
|
||
.workspace-review-head {
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
gap: 12px;
|
||
margin-bottom: 10px;
|
||
padding-bottom: 10px;
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
.workspace-review-head .workspace-leave-step {
|
||
flex-shrink: 0;
|
||
margin-right: 2px;
|
||
}
|
||
.workspace-review-titles {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 10px;
|
||
flex-wrap: wrap;
|
||
min-width: 0;
|
||
flex: 1 1 auto;
|
||
}
|
||
.workspace-review-nav {
|
||
flex-shrink: 0;
|
||
margin-left: auto;
|
||
}
|
||
.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]),
|
||
body.play-workspace .coord-rail:not([hidden]) {
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: stretch;
|
||
min-width: 0;
|
||
max-width: 100%;
|
||
overflow-x: hidden;
|
||
}
|
||
.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-width: 0;
|
||
min-height: 0;
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
padding: 8px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
.coord-empty {
|
||
margin: 16px 8px;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
text-align: center;
|
||
}
|
||
|
||
body.play-workspace .coord-rail-title { display: none; }
|
||
.play-aux-tabs {
|
||
display: flex;
|
||
gap: 0;
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
.play-aux-tab {
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--muted);
|
||
font: inherit;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
padding: 8px 10px;
|
||
cursor: pointer;
|
||
border-bottom: 2px solid transparent;
|
||
}
|
||
.play-aux-tab:hover { color: var(--text); }
|
||
.play-aux-tab.is-current {
|
||
color: var(--text);
|
||
border-bottom-color: var(--text);
|
||
}
|
||
.play-aux-tab:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: -2px;
|
||
}
|
||
.play-aux-empty {
|
||
margin: 12px 4px;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
line-height: 1.45;
|
||
text-align: left;
|
||
}
|
||
.play-table-list {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
}
|
||
.play-table-row {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1fr) auto;
|
||
gap: 4px;
|
||
align-items: start;
|
||
padding: 4px 0;
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
.play-table-hit {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
align-items: flex-start;
|
||
border: 0;
|
||
background: transparent;
|
||
color: inherit;
|
||
font: inherit;
|
||
text-align: left;
|
||
padding: 0;
|
||
cursor: default;
|
||
min-width: 0;
|
||
width: 100%;
|
||
}
|
||
.play-table-row.is-secret .play-table-hit { cursor: pointer; }
|
||
.play-table-hit:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
.play-table-key {
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
font-weight: 600;
|
||
}
|
||
.play-table-val {
|
||
font-size: 13px;
|
||
color: var(--text);
|
||
word-break: break-word;
|
||
}
|
||
.play-table-row.is-secret:not(.is-open) .play-table-val {
|
||
letter-spacing: 0.12em;
|
||
color: var(--muted);
|
||
}
|
||
.play-table-fix {
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--muted);
|
||
font: inherit;
|
||
font-size: 11px;
|
||
padding: 2px 4px;
|
||
cursor: pointer;
|
||
}
|
||
.play-table-fix:hover { color: var(--text); }
|
||
.play-table-edit {
|
||
grid-column: 1 / -1;
|
||
display: flex;
|
||
gap: 4px;
|
||
align-items: center;
|
||
}
|
||
.play-table-edit input {
|
||
flex: 1;
|
||
min-width: 0;
|
||
font: inherit;
|
||
font-size: 13px;
|
||
padding: 4px 6px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 4px;
|
||
background: var(--bg);
|
||
color: var(--text);
|
||
}
|
||
.play-table-secrets { margin-top: 10px; }
|
||
.play-table-secrets > summary {
|
||
cursor: pointer;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
font-weight: 600;
|
||
user-select: none;
|
||
padding: 4px 0;
|
||
}
|
||
.play-open {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
.play-open-card {
|
||
border: 1px solid var(--border);
|
||
border-radius: 6px;
|
||
padding: 8px;
|
||
cursor: pointer;
|
||
background: var(--bg);
|
||
}
|
||
.play-open-card:hover {
|
||
border-color: color-mix(in srgb, var(--text) 24%, var(--border));
|
||
}
|
||
.play-open-card.is-selected { border-color: var(--text); }
|
||
.play-open-card:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 1px;
|
||
}
|
||
.play-open-text {
|
||
margin: 0;
|
||
font-size: 12px;
|
||
line-height: 1.45;
|
||
}
|
||
.play-open-persona {
|
||
margin: 6px 0 0;
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
line-height: 1.4;
|
||
}
|
||
.play-open-refuse { align-self: stretch; }
|
||
.coord-pack {
|
||
position: relative;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
padding: 4px 4px 6px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 10px;
|
||
background: var(--bg);
|
||
min-width: 0;
|
||
cursor: context-menu;
|
||
}
|
||
.coord-pack:hover {
|
||
border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
|
||
background: color-mix(in srgb, var(--accent-soft) 28%, var(--bg));
|
||
}
|
||
.coord-pack--pending {
|
||
border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
|
||
}
|
||
.coord-pack-head {
|
||
display: flex;
|
||
align-items: center;
|
||
min-height: 24px;
|
||
padding: 2px 28px 2px 8px;
|
||
}
|
||
.coord-pack-meta {
|
||
font-size: 10px;
|
||
font-weight: 600;
|
||
letter-spacing: 0.04em;
|
||
color: var(--muted);
|
||
}
|
||
.coord-pack--pending .coord-pack-meta {
|
||
color: var(--accent);
|
||
}
|
||
.coord-pack > .coord-line-menu {
|
||
top: 4px;
|
||
right: 4px;
|
||
}
|
||
.coord-pack:hover > .coord-line-menu,
|
||
.coord-pack:focus-within > .coord-line-menu {
|
||
opacity: 1;
|
||
}
|
||
.coord-pack .coord-line {
|
||
background: transparent;
|
||
padding: 6px 8px;
|
||
}
|
||
.coord-pack .coord-line:hover {
|
||
background: color-mix(in srgb, var(--accent-soft) 35%, transparent);
|
||
}
|
||
.coord-line {
|
||
position: relative;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 5px;
|
||
padding: 8px 32px 8px 8px;
|
||
border-radius: 8px;
|
||
font-size: 12px;
|
||
line-height: 1.35;
|
||
min-width: 0;
|
||
background: var(--bg);
|
||
cursor: context-menu;
|
||
}
|
||
.coord-line:hover { background: color-mix(in srgb, var(--accent-soft) 45%, var(--bg)); }
|
||
.coord-line--trace {
|
||
border-left: 2px solid color-mix(in srgb, var(--accent) 55%, var(--border));
|
||
padding-left: 10px;
|
||
}
|
||
.coord-line-menu {
|
||
position: absolute;
|
||
top: 5px;
|
||
right: 5px;
|
||
width: 24px;
|
||
height: 24px;
|
||
padding: 0;
|
||
border: 0;
|
||
border-radius: 6px;
|
||
background: transparent;
|
||
color: var(--muted);
|
||
font: inherit;
|
||
font-size: 16px;
|
||
line-height: 20px;
|
||
cursor: pointer;
|
||
opacity: 0;
|
||
}
|
||
.coord-line:hover .coord-line-menu,
|
||
.coord-line:focus-within .coord-line-menu {
|
||
opacity: 1;
|
||
}
|
||
.coord-line-menu:hover {
|
||
background: color-mix(in srgb, var(--border) 65%, transparent);
|
||
color: var(--text);
|
||
}
|
||
.coord-line-menu:focus-visible {
|
||
opacity: 1;
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 1px;
|
||
}
|
||
@media (hover: none) {
|
||
.coord-line-menu { opacity: 0.75; }
|
||
}
|
||
.coord-who {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
font-weight: 600;
|
||
color: var(--muted);
|
||
font-size: 11px;
|
||
flex-wrap: wrap;
|
||
}
|
||
.coord-who .msg-variant-nav {
|
||
margin-left: auto;
|
||
}
|
||
.coord-user .coord-who { color: var(--accent); }
|
||
.coord-kind {
|
||
min-width: 0;
|
||
padding: 1px 4px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 4px;
|
||
color: var(--muted);
|
||
font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
|
||
font-size: 9px;
|
||
font-weight: 500;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.coord-text {
|
||
min-width: 0;
|
||
color: var(--text);
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 7;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
white-space: normal;
|
||
word-break: break-word;
|
||
}
|
||
.coord-time {
|
||
margin-left: auto;
|
||
flex-shrink: 0;
|
||
font-size: 10px;
|
||
font-weight: 500;
|
||
color: var(--muted);
|
||
}
|
||
.coord-context-trigger {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
width: fit-content;
|
||
max-width: 100%;
|
||
padding: 3px 6px;
|
||
border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
|
||
border-radius: 5px;
|
||
background: color-mix(in srgb, var(--accent-soft) 45%, var(--bg));
|
||
color: var(--muted);
|
||
font: inherit;
|
||
font-size: 10px;
|
||
line-height: 1.3;
|
||
cursor: pointer;
|
||
}
|
||
.coord-context-trigger:hover {
|
||
border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
|
||
color: var(--text);
|
||
}
|
||
.coord-context-trigger:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 1px;
|
||
}
|
||
.coord-context-label {
|
||
color: var(--accent);
|
||
font-weight: 700;
|
||
}
|
||
.coord-context-request {
|
||
color: var(--text);
|
||
font-weight: 600;
|
||
}
|
||
.coord-trace-meta {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 3px 8px;
|
||
min-width: 0;
|
||
color: var(--muted);
|
||
font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
|
||
font-size: 9px;
|
||
}
|
||
.coord-trace-meta span {
|
||
min-width: 0;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.workspace-pending {
|
||
margin: 0 0 12px;
|
||
padding: 10px 12px;
|
||
border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--border));
|
||
border-radius: 10px;
|
||
background: color-mix(in srgb, var(--accent-soft) 50%, var(--surface));
|
||
}
|
||
body.design-workspace .workspace-pending {
|
||
margin: var(--workspace-pad-y, 16px) var(--workspace-pad-x, 24px);
|
||
}
|
||
.workspace-pending-head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin-bottom: 6px;
|
||
font-size: 12px;
|
||
}
|
||
.workspace-pending-head .workspace-leave-step {
|
||
margin-right: 4px;
|
||
}
|
||
.workspace-pending-head .msg-action {
|
||
margin-left: auto;
|
||
}
|
||
.msg-live-empty {
|
||
margin: 0;
|
||
color: var(--muted);
|
||
font-size: 13px;
|
||
}
|
||
|
||
body.is-reviewing .message-feed {
|
||
flex: 0 1 auto;
|
||
max-height: min(28vh, 220px);
|
||
min-height: 0;
|
||
padding: 8px 12px;
|
||
gap: 6px;
|
||
}
|
||
body.is-reviewing .message-feed:empty {
|
||
display: none;
|
||
}
|
||
body.is-reviewing .workspace-stage {
|
||
flex: 1 1 auto;
|
||
}
|
||
body.is-reviewing .msg-bubble {
|
||
width: min(100%, 92%);
|
||
max-width: 92%;
|
||
}
|
||
|
||
/* åä½ä¼ª 0 å±ï¼äº§ç©éºæ»¡ä¸»æ±ï¼å¯¹è¯éå±
å³ä¾§æ */
|
||
body.design-workspace .message-feed {
|
||
display: none !important;
|
||
}
|
||
body.design-workspace .workspace-stage {
|
||
flex: 1 1 auto;
|
||
border-top: none;
|
||
padding: 0;
|
||
background: var(--surface);
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
}
|
||
body.design-workspace[data-design-surface="answer"] .workspace-stage {
|
||
overflow: hidden; /* æ»å¨åªå¨è¯¢é®å¡å
ï¼é¿å
stageâcard åæ» */
|
||
}
|
||
body.design-workspace .workspace-review {
|
||
max-width: none;
|
||
margin: 0;
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
overflow: auto;
|
||
border: none;
|
||
border-radius: 0;
|
||
box-shadow: none;
|
||
padding: 16px var(--workspace-pad-x, 24px) 16px;
|
||
box-sizing: border-box;
|
||
width: 100%;
|
||
}
|
||
body.design-workspace .workspace-review-head {
|
||
border-bottom-color: color-mix(in srgb, var(--border) 80%, transparent);
|
||
margin-bottom: 10px;
|
||
padding-bottom: 8px;
|
||
max-width: none;
|
||
}
|
||
body.design-workspace .workspace-review-head--slim {
|
||
margin-bottom: 8px;
|
||
padding-bottom: 6px;
|
||
}
|
||
body.design-workspace .workspace-review-title {
|
||
font-size: 16px;
|
||
font-weight: 650;
|
||
font-family: var(--font-ui);
|
||
}
|
||
body.design-workspace .workspace-review-body,
|
||
body.design-workspace .review-worker-set {
|
||
max-width: none;
|
||
width: 100%;
|
||
}
|
||
|
||
.workspace-surface-kicker {
|
||
display: inline-block;
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.06em;
|
||
color: var(--accent);
|
||
margin-bottom: 8px;
|
||
}
|
||
.workspace-intent-head {
|
||
display: flex;
|
||
align-items: baseline;
|
||
justify-content: flex-start;
|
||
gap: 12px;
|
||
margin-bottom: 8px;
|
||
max-width: 46rem;
|
||
}
|
||
.workspace-intent-head:has(.workspace-view-switch) {
|
||
align-items: center;
|
||
}
|
||
.workspace-intent-head .workspace-surface-kicker {
|
||
margin-bottom: 0;
|
||
}
|
||
.workspace-leave-step {
|
||
appearance: none;
|
||
border: none;
|
||
background: transparent;
|
||
padding: 0;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
color: var(--muted);
|
||
cursor: pointer;
|
||
font-family: var(--font-ui);
|
||
flex-shrink: 0;
|
||
}
|
||
.workspace-leave-step:hover {
|
||
color: var(--text);
|
||
}
|
||
.workspace-leave-step:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
.workspace-answer-head--slim .workspace-leave-step {
|
||
margin-right: 4px;
|
||
}
|
||
.workspace-intent,
|
||
.workspace-answer {
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
width: 100%;
|
||
max-width: none;
|
||
margin: 0;
|
||
padding: var(--workspace-pad-y, 28px) var(--workspace-pad-x, 28px) 48px;
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
body.design-workspace[data-design-surface="answer"] .workspace-answer {
|
||
padding: 16px var(--workspace-pad-x, 24px) 20px;
|
||
}
|
||
.workspace-intent-title {
|
||
margin: 0 0 10px;
|
||
font-size: clamp(24px, 3vw, 34px);
|
||
font-weight: 650;
|
||
font-family: var(--font-read);
|
||
line-height: 1.25;
|
||
color: var(--text);
|
||
max-width: 40rem;
|
||
text-wrap: balance;
|
||
}
|
||
.workspace-intent-hint {
|
||
margin: 0;
|
||
font-size: clamp(14px, 1.15vw, 17px);
|
||
line-height: 1.55;
|
||
color: var(--muted);
|
||
max-width: 46rem;
|
||
}
|
||
.workspace-intent-actions {
|
||
margin-top: 22px;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
align-items: center;
|
||
}
|
||
.workspace-intent-meta {
|
||
margin: 14px 0 0;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
}
|
||
.workspace-opening-guide {
|
||
margin-top: 22px;
|
||
max-width: 40rem;
|
||
padding: 0;
|
||
font-size: clamp(14px, 1.1vw, 16px);
|
||
line-height: 1.65;
|
||
color: var(--text);
|
||
white-space: pre-wrap;
|
||
font-family: var(--font-read);
|
||
}
|
||
.workspace-intent .intake-panel {
|
||
margin-top: 20px;
|
||
max-width: 52rem;
|
||
}
|
||
.workspace-answer-head {
|
||
flex-shrink: 0;
|
||
margin-bottom: 14px;
|
||
max-width: 46rem;
|
||
}
|
||
.workspace-answer-head--slim {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 10px;
|
||
flex-wrap: wrap;
|
||
margin-bottom: 10px;
|
||
max-width: none;
|
||
}
|
||
.workspace-answer-head--slim .workspace-surface-kicker {
|
||
margin-bottom: 0;
|
||
}
|
||
.workspace-answer-hint {
|
||
margin: 0;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
line-height: 1.4;
|
||
}
|
||
body.design-workspace[data-design-surface="answer"] .questions-card-host {
|
||
flex: 0 1 auto;
|
||
border-top: none;
|
||
margin-top: 0;
|
||
padding: 0;
|
||
}
|
||
/* çé¢/éªæ¶å·¥ä½é¢å·²æ¯ surfaceï¼è¯¢é®ä¸åå¥åè§å¡ç */
|
||
body.design-workspace[data-design-surface="answer"] .questions-card-host.is-open:not([hidden]),
|
||
.workspace-review-ask .questions-card-host.is-open:not([hidden]) {
|
||
margin: 0;
|
||
border: none;
|
||
border-radius: 0;
|
||
background: transparent;
|
||
box-shadow: none;
|
||
}
|
||
body.design-workspace[data-design-surface="answer"] .qcard-body,
|
||
.workspace-review-ask .qcard-body {
|
||
padding-left: 0;
|
||
padding-right: 0;
|
||
}
|
||
body.design-workspace[data-design-surface="answer"] .qcard-top,
|
||
.workspace-review-ask .qcard-top,
|
||
body.design-workspace[data-design-surface="answer"] .questions-card-host.is-collapsed .qcard-top,
|
||
.workspace-review-ask .questions-card-host.is-collapsed .qcard-top {
|
||
padding-left: 0;
|
||
padding-right: 0;
|
||
}
|
||
body.design-workspace[data-design-surface="answer"] .qcard-skip,
|
||
.workspace-review-ask .qcard-skip,
|
||
body.design-workspace[data-design-surface="answer"] .qcard-pager,
|
||
.workspace-review-ask .qcard-pager {
|
||
right: 0;
|
||
}
|
||
|
||
/* 转述:对话在 stage 内的 .dictate-feed;#message-feed 保持隐藏 */
|
||
body.design-workspace[data-design-surface="dictate"] .message-feed {
|
||
display: none !important;
|
||
}
|
||
body.design-workspace[data-design-surface="dictate"] .workspace-stage {
|
||
order: 0;
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
border-bottom: none;
|
||
border-top: none;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
body.design-workspace[data-design-surface="dictate"] {
|
||
--coord-w: clamp(300px, 28vw, 380px);
|
||
}
|
||
body.design-workspace[data-design-surface="dictate"] .panel-feed {
|
||
overflow: hidden;
|
||
}
|
||
.dictate-stage-bar {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 10px;
|
||
padding: 8px var(--workspace-pad-x, 24px);
|
||
margin: 0;
|
||
flex: 0 0 auto;
|
||
border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
|
||
}
|
||
.dictate-stage-bar .workspace-surface-kicker {
|
||
margin-bottom: 0;
|
||
}
|
||
.dictate-stage-recipe {
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
}
|
||
.dictate-feed {
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
padding: 12px var(--workspace-pad-x, 24px) 16px;
|
||
background: var(--bg);
|
||
}
|
||
body.design-workspace[data-design-surface="dictate"] .workspace-surface-kicker {
|
||
color: var(--accent);
|
||
}
|
||
|
||
body.design-workspace[data-design-surface="speak"] .workspace-surface-kicker {
|
||
color: var(--accent);
|
||
}
|
||
body.design-workspace[data-design-surface="answer"] .workspace-surface-kicker {
|
||
color: #a16207;
|
||
}
|
||
body.design-workspace[data-design-surface="review"] .workspace-review-kicker {
|
||
color: #15803d;
|
||
}
|
||
body.design-workspace[data-design-surface="review"][data-review-kind="flow"] .workspace-review-kicker,
|
||
body.design-workspace[data-design-surface="review"][data-review-kind="opening"] .workspace-review-kicker {
|
||
color: var(--accent);
|
||
}
|
||
|
||
/* æè½½è¿½é®åµå¨äº§ç©éªæ¶é¢ä¸æ¹ï¼ä¸äº§ç©å宽ï¼é主æ±å¨æéåº */
|
||
.workspace-review-ask {
|
||
flex: 0 0 auto;
|
||
margin-top: 0;
|
||
min-height: 0;
|
||
width: 100%;
|
||
max-width: none;
|
||
align-self: stretch;
|
||
padding: 8px var(--workspace-pad-x, 24px) var(--workspace-pad-y, 16px);
|
||
box-sizing: border-box;
|
||
border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
|
||
}
|
||
.workspace-review-ask .questions-card-host {
|
||
padding-left: 0;
|
||
padding-right: 0;
|
||
border-top: none;
|
||
}
|
||
|
||
body.design-workspace .ws-creation-flow h4 { display: none; }
|
||
body.design-workspace .flow-brief {
|
||
margin: 0 0 12px;
|
||
font-size: 15px;
|
||
line-height: 1.55;
|
||
font-family: var(--font-read);
|
||
}
|
||
body.design-workspace .flow-status {
|
||
margin: 0 0 14px;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
}
|
||
.workspace-view-switch {
|
||
display: inline-flex;
|
||
align-items: stretch;
|
||
border: 1px solid var(--border);
|
||
border-radius: 7px;
|
||
overflow: hidden;
|
||
background: var(--bg);
|
||
flex-shrink: 0;
|
||
}
|
||
.workspace-view-switch a,
|
||
.workspace-view-switch button,
|
||
.workspace-view-switch span {
|
||
appearance: none;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
margin: 0;
|
||
padding: 4px 11px;
|
||
border: none;
|
||
border-radius: 0;
|
||
background: transparent;
|
||
color: var(--muted);
|
||
font: inherit;
|
||
font-size: 12px;
|
||
font-weight: 650;
|
||
line-height: 1.2;
|
||
text-decoration: none;
|
||
cursor: pointer;
|
||
}
|
||
.workspace-view-switch span.is-current {
|
||
cursor: default;
|
||
color: var(--text);
|
||
background: var(--surface);
|
||
}
|
||
.workspace-view-switch a:hover,
|
||
.workspace-view-switch button:hover {
|
||
color: var(--text);
|
||
background: color-mix(in srgb, var(--accent) 8%, var(--surface));
|
||
}
|
||
.workspace-view-switch a:focus-visible,
|
||
.workspace-view-switch button:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: -2px;
|
||
}
|
||
.workspace-skills {
|
||
position: absolute;
|
||
inset: 0;
|
||
z-index: 8;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
background: var(--bg);
|
||
}
|
||
.workspace-skills[hidden] {
|
||
display: none !important;
|
||
}
|
||
.workspace-skills-head {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
flex: 0 0 auto;
|
||
padding: 12px var(--workspace-pad-x, 24px);
|
||
border-bottom: 1px solid var(--border);
|
||
background: var(--surface);
|
||
}
|
||
.workspace-skills-frame {
|
||
flex: 1 1 auto;
|
||
width: 100%;
|
||
min-height: 0;
|
||
border: 0;
|
||
background: var(--bg);
|
||
}
|
||
body.design-workspace .flow-dag {
|
||
position: relative;
|
||
overflow: auto;
|
||
padding: 8px 8px 16px;
|
||
}
|
||
body.design-workspace .flow-dag-edges {
|
||
position: absolute;
|
||
inset: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
pointer-events: none;
|
||
z-index: 0;
|
||
overflow: visible;
|
||
}
|
||
body.design-workspace .flow-dag-edge {
|
||
stroke: color-mix(in srgb, var(--text) 32%, var(--border));
|
||
stroke-width: 1.5;
|
||
opacity: 0.55;
|
||
stroke-linecap: round;
|
||
}
|
||
body.design-workspace .flow-dag-arrowhead {
|
||
fill: color-mix(in srgb, var(--text) 38%, var(--border));
|
||
}
|
||
body.design-workspace .flow-dag.is-tracing .flow-dag-edge {
|
||
opacity: 0.12;
|
||
}
|
||
body.design-workspace .flow-dag.is-tracing .flow-dag-edge.is-trace-in,
|
||
body.design-workspace .flow-dag.is-tracing .flow-dag-edge.is-trace-out {
|
||
opacity: 1;
|
||
}
|
||
body.design-workspace .flow-dag-edge.is-trace-in {
|
||
stroke: var(--accent);
|
||
stroke-width: 2.35;
|
||
}
|
||
body.design-workspace .flow-dag-edge.is-trace-out {
|
||
stroke: color-mix(in srgb, var(--text) 72%, var(--accent));
|
||
stroke-width: 2.1;
|
||
}
|
||
body.design-workspace .flow-dag-arrowhead--in {
|
||
fill: var(--accent);
|
||
}
|
||
body.design-workspace .flow-dag-arrowhead--out {
|
||
fill: color-mix(in srgb, var(--text) 72%, var(--accent));
|
||
}
|
||
body.design-workspace .flow-dag-rows {
|
||
position: relative;
|
||
z-index: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 44px;
|
||
min-width: 0;
|
||
}
|
||
body.design-workspace .flow-dag-row {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
align-items: stretch;
|
||
}
|
||
body.design-workspace .flow-dag-row-label {
|
||
font-size: 11px;
|
||
font-weight: 650;
|
||
letter-spacing: 0.04em;
|
||
color: var(--muted);
|
||
text-align: center;
|
||
}
|
||
body.design-workspace .flow-dag-row-nodes {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: center;
|
||
align-items: flex-start;
|
||
gap: 24px 104px;
|
||
min-width: 0;
|
||
padding: 0 28px;
|
||
}
|
||
body.design-workspace .flow-dag.is-tracing .flow-node {
|
||
opacity: 0.4;
|
||
}
|
||
body.design-workspace .flow-dag.is-tracing .flow-node.is-trace-root,
|
||
body.design-workspace .flow-dag.is-tracing .flow-node.is-trace-related,
|
||
body.design-workspace .flow-dag.is-tracing .flow-node.is-locked.is-trace-root,
|
||
body.design-workspace .flow-dag.is-tracing .flow-node.is-locked.is-trace-related {
|
||
opacity: 1;
|
||
}
|
||
body.design-workspace .flow-dag.is-tracing .flow-node.is-trace-root {
|
||
position: relative;
|
||
z-index: 2;
|
||
border-color: var(--accent);
|
||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
|
||
}
|
||
body.design-workspace .flow-dag-hint {
|
||
position: absolute;
|
||
z-index: 4;
|
||
width: max-content;
|
||
max-width: min(240px, calc(100% - 24px));
|
||
padding: 8px 10px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
background: var(--surface);
|
||
box-shadow: 0 8px 22px color-mix(in srgb, var(--text) 12%, transparent);
|
||
pointer-events: none;
|
||
color: var(--text);
|
||
}
|
||
body.design-workspace .flow-dag-hint[hidden] {
|
||
display: none !important;
|
||
}
|
||
body.design-workspace .flow-dag-hint-kicker {
|
||
margin: 0 0 2px;
|
||
font-size: 10px;
|
||
font-weight: 650;
|
||
letter-spacing: 0.06em;
|
||
color: var(--muted);
|
||
}
|
||
body.design-workspace .flow-dag-hint-name {
|
||
margin: 0 0 8px;
|
||
font-size: 13px;
|
||
font-weight: 650;
|
||
line-height: 1.35;
|
||
}
|
||
body.design-workspace .flow-dag-hint-sec + .flow-dag-hint-sec {
|
||
margin-top: 8px;
|
||
padding-top: 8px;
|
||
border-top: 1px solid var(--border);
|
||
}
|
||
body.design-workspace .flow-dag-hint-label {
|
||
font-size: 11px;
|
||
font-weight: 650;
|
||
color: var(--muted);
|
||
margin-bottom: 4px;
|
||
}
|
||
body.design-workspace .flow-dag-hint-empty {
|
||
margin: 0;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
}
|
||
body.design-workspace .flow-dag-hint-list {
|
||
margin: 0;
|
||
padding: 0;
|
||
list-style: none;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
}
|
||
body.design-workspace .flow-dag-hint-list li {
|
||
display: flex;
|
||
align-items: baseline;
|
||
justify-content: space-between;
|
||
gap: 10px;
|
||
font-size: 12px;
|
||
line-height: 1.35;
|
||
}
|
||
body.design-workspace .flow-dag-hint-item-name {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
body.design-workspace .flow-dag-hint-item-run {
|
||
flex-shrink: 0;
|
||
color: var(--muted);
|
||
font-size: 11px;
|
||
}
|
||
body.design-workspace .flow-node {
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 10px;
|
||
width: min(100%, 280px);
|
||
margin: 0;
|
||
padding: 12px 14px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 10px;
|
||
background: var(--bg);
|
||
color: inherit;
|
||
text-align: left;
|
||
font: inherit;
|
||
min-width: 0;
|
||
box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 70%, transparent);
|
||
transition:
|
||
transform 0.12s ease,
|
||
box-shadow 0.12s ease,
|
||
border-color 0.12s ease,
|
||
background 0.12s ease;
|
||
}
|
||
body.design-workspace .flow-node-main {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
gap: 2px;
|
||
min-width: 0;
|
||
flex: 1;
|
||
}
|
||
body.design-workspace .flow-node.is-done-menu {
|
||
cursor: context-menu;
|
||
opacity: 0.92;
|
||
}
|
||
body.design-workspace .flow-node.is-done-menu:hover {
|
||
opacity: 1;
|
||
border-color: color-mix(in srgb, var(--border) 40%, var(--text) 20%);
|
||
background: var(--surface);
|
||
}
|
||
body.design-workspace .flow-node.is-done-menu:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
body.design-workspace .flow-node-menu-btn {
|
||
flex: 0 0 auto;
|
||
align-self: center;
|
||
width: 22px;
|
||
height: 22px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 14px;
|
||
line-height: 1;
|
||
color: var(--muted);
|
||
opacity: 0.55;
|
||
pointer-events: auto;
|
||
cursor: context-menu;
|
||
}
|
||
body.design-workspace .flow-node.is-done-menu:hover .flow-node-menu-btn,
|
||
body.design-workspace .flow-node.is-done-menu:focus-visible .flow-node-menu-btn,
|
||
body.design-workspace .flow-node.is-selectable:hover .flow-node-menu-btn,
|
||
body.design-workspace .flow-node.is-selectable:focus-visible .flow-node-menu-btn {
|
||
opacity: 1;
|
||
}
|
||
.step-artifact-body {
|
||
max-height: min(70vh, 560px);
|
||
overflow: auto;
|
||
margin: 8px 0 0;
|
||
}
|
||
.snapshot-products-body .snap-product {
|
||
border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
|
||
padding: 8px 0;
|
||
}
|
||
.snapshot-products-body .snap-product:first-child {
|
||
border-top: 0;
|
||
padding-top: 0;
|
||
}
|
||
.snapshot-products-body .snap-product-head {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 8px;
|
||
margin-bottom: 6px;
|
||
}
|
||
.snapshot-products-body .snap-product-label {
|
||
font-weight: 600;
|
||
}
|
||
.snapshot-products-body .snap-product-tag {
|
||
color: var(--muted);
|
||
font-size: 0.85em;
|
||
}
|
||
.snapshot-products-body .snap-product-edit {
|
||
margin-left: auto;
|
||
}
|
||
.snapshot-products-body textarea.snap-product-ta {
|
||
width: 100%;
|
||
min-height: 160px;
|
||
resize: vertical;
|
||
font: inherit;
|
||
line-height: 1.45;
|
||
padding: 8px 10px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 6px;
|
||
background: var(--surface);
|
||
color: inherit;
|
||
}
|
||
.snapshot-products-body .snap-product-actions {
|
||
display: flex;
|
||
gap: 8px;
|
||
margin-top: 6px;
|
||
}
|
||
.snapshot-products-body .snap-product-preview {
|
||
white-space: pre-wrap;
|
||
max-height: 8em;
|
||
overflow: auto;
|
||
font-size: 0.92em;
|
||
opacity: 0.92;
|
||
}
|
||
body.design-workspace .flow-node[data-run="current"] {
|
||
border-color: var(--accent);
|
||
background: var(--surface);
|
||
}
|
||
body.design-workspace .flow-node.is-locked {
|
||
opacity: 0.55;
|
||
}
|
||
body.design-workspace .flow-node.is-selectable {
|
||
cursor: pointer;
|
||
border-color: var(--accent);
|
||
border-width: 1.5px;
|
||
background: var(--surface);
|
||
box-shadow:
|
||
0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent),
|
||
0 4px 12px color-mix(in srgb, var(--accent) 12%, transparent);
|
||
}
|
||
body.design-workspace .flow-node.is-selectable:hover {
|
||
background: color-mix(in srgb, var(--accent) 10%, var(--surface));
|
||
box-shadow:
|
||
0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent),
|
||
0 8px 18px color-mix(in srgb, var(--accent) 16%, transparent);
|
||
}
|
||
body.design-workspace .flow-node.is-selectable:active {
|
||
box-shadow:
|
||
0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
|
||
0 2px 6px color-mix(in srgb, var(--accent) 12%, transparent);
|
||
}
|
||
body.design-workspace .flow-node.is-selectable:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
body.design-workspace .flow-action {
|
||
flex-shrink: 0;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
letter-spacing: 0.02em;
|
||
color: var(--accent);
|
||
pointer-events: none;
|
||
}
|
||
body.design-workspace .flow-node.is-selectable:hover .flow-action {
|
||
color: color-mix(in srgb, var(--accent) 80%, #000);
|
||
}
|
||
body.design-workspace .flow-node--prototype {
|
||
border-style: dashed;
|
||
border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
|
||
background: color-mix(in srgb, var(--accent) 6%, var(--bg));
|
||
}
|
||
body.design-workspace .flow-node--prototype.is-selectable {
|
||
border-style: dashed;
|
||
border-color: var(--accent);
|
||
}
|
||
body.design-workspace .flow-node--prototype.is-selectable:hover {
|
||
border-color: var(--accent);
|
||
}
|
||
body.design-workspace .flow-occ-prototype {
|
||
color: var(--accent);
|
||
}
|
||
body.design-workspace .flow-family {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
width: min(100%, 280px);
|
||
min-width: 0;
|
||
}
|
||
body.design-workspace .flow-family > .flow-node {
|
||
width: 100%;
|
||
}
|
||
body.design-workspace .flow-family-spawns {
|
||
position: relative;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
margin: 0;
|
||
padding: 8px 0 0 22px;
|
||
list-style: none;
|
||
}
|
||
body.design-workspace .flow-family-spawns::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: 12px;
|
||
top: 0;
|
||
bottom: 14px;
|
||
width: 1px;
|
||
background: color-mix(in srgb, var(--accent) 32%, var(--border));
|
||
}
|
||
body.design-workspace .flow-family-spawn {
|
||
position: relative;
|
||
min-width: 0;
|
||
}
|
||
body.design-workspace .flow-family-spawn::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: -10px;
|
||
top: 50%;
|
||
width: 10px;
|
||
height: 1px;
|
||
background: color-mix(in srgb, var(--accent) 32%, var(--border));
|
||
}
|
||
body.design-workspace .flow-node--spawn {
|
||
width: 100%;
|
||
min-width: 0;
|
||
padding: 8px 10px;
|
||
gap: 8px;
|
||
border-radius: 8px;
|
||
box-shadow: none;
|
||
background: var(--surface);
|
||
}
|
||
body.design-workspace .flow-node--spawn .flow-name {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
max-width: 100%;
|
||
}
|
||
body.design-workspace .flow-node--spawn .flow-params,
|
||
body.design-workspace .flow-node--spawn .flow-params-missing {
|
||
font-size: 11px;
|
||
}
|
||
body.design-workspace .flow-node--spawn.is-selectable {
|
||
border-width: 1px;
|
||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent);
|
||
}
|
||
body.design-workspace .flow-node--spawn.is-selectable:hover {
|
||
transform: none;
|
||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
|
||
}
|
||
body.design-workspace .flow-spawn-meta {
|
||
flex-shrink: 0;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
}
|
||
body.design-workspace .flow-spawn-meta .flow-action {
|
||
min-height: 24px;
|
||
padding: 0 8px;
|
||
font-size: 11px;
|
||
}
|
||
body.design-workspace .flow-spawn-count {
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
line-height: 1.3;
|
||
}
|
||
body.design-workspace .flow-origin {
|
||
display: block;
|
||
max-width: 100%;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
line-height: 1.3;
|
||
}
|
||
body.design-workspace .flow-origin-rule {
|
||
font-weight: 650;
|
||
color: var(--text);
|
||
}
|
||
body.design-workspace .flow-dag-edge--belong {
|
||
stroke-dasharray: 3 4;
|
||
stroke-width: 1.25;
|
||
}
|
||
body.design-workspace .flow-dag-arrowhead--belong {
|
||
fill: color-mix(in srgb, var(--text) 28%, var(--border));
|
||
}
|
||
body.design-workspace .flow-dag.is-tracing .flow-dag-edge--belong.is-trace-in,
|
||
body.design-workspace .flow-dag.is-tracing .flow-dag-edge--belong.is-trace-out {
|
||
stroke-dasharray: 4 4;
|
||
}
|
||
body.design-workspace .flow-suggestion-inline {
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
line-height: 1.35;
|
||
}
|
||
body.design-workspace .flow-suggestions {
|
||
margin-top: 12px;
|
||
padding: 10px 12px;
|
||
border: 1px dashed var(--border);
|
||
border-radius: 8px;
|
||
background: var(--surface);
|
||
}
|
||
body.design-workspace .flow-suggestions-title {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
margin-bottom: 8px;
|
||
color: var(--muted);
|
||
}
|
||
body.design-workspace .flow-suggestion {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
font-size: 12px;
|
||
padding: 6px 0;
|
||
border-top: 1px solid var(--border);
|
||
}
|
||
body.design-workspace .flow-suggestion:first-of-type {
|
||
border-top: none;
|
||
padding-top: 0;
|
||
}
|
||
body.design-workspace .flow-suggestion-name {
|
||
font-weight: 600;
|
||
}
|
||
body.design-workspace .flow-suggestion-text {
|
||
color: var(--muted);
|
||
}
|
||
body.design-workspace .flow-node .flow-run {
|
||
font-size: 11px;
|
||
font-weight: 650;
|
||
letter-spacing: 0.04em;
|
||
color: var(--muted);
|
||
}
|
||
body.design-workspace .flow-node[data-run="done"] .flow-run {
|
||
color: #15803d;
|
||
}
|
||
body.design-workspace .flow-node.is-selectable .flow-run {
|
||
color: var(--accent);
|
||
}
|
||
body.design-workspace .flow-node .flow-name {
|
||
font-weight: 600;
|
||
font-size: 14px;
|
||
line-height: 1.35;
|
||
}
|
||
body.design-workspace .flow-title {
|
||
font-size: 13px;
|
||
font-weight: 650;
|
||
line-height: 1.35;
|
||
color: var(--text);
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
max-width: 100%;
|
||
}
|
||
body.design-workspace .flow-node .flow-params,
|
||
body.design-workspace .flow-node .flow-params-missing {
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
line-height: 1.35;
|
||
}
|
||
body.design-workspace .flow-spawns {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
margin-top: 14px;
|
||
}
|
||
body.design-workspace .flow-spawn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
min-height: 32px;
|
||
padding: 0 10px;
|
||
border: 1px dashed var(--border);
|
||
border-radius: 8px;
|
||
background: transparent;
|
||
color: var(--muted);
|
||
font: inherit;
|
||
font-size: 13px;
|
||
}
|
||
body.design-workspace .flow-spawn.is-ready {
|
||
cursor: pointer;
|
||
border-style: solid;
|
||
border-color: var(--accent);
|
||
color: var(--text);
|
||
}
|
||
body.design-workspace .flow-spawn.is-ready:hover {
|
||
background: color-mix(in srgb, var(--accent) 8%, var(--surface));
|
||
}
|
||
body.design-workspace .flow-spawn.is-ready:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
body.design-workspace .flow-spawn.is-blocked {
|
||
opacity: 0.65;
|
||
}
|
||
@media (max-width: 720px) {
|
||
body.design-workspace .flow-dag-row-nodes {
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
gap: 12px;
|
||
padding: 0;
|
||
}
|
||
body.design-workspace .flow-node,
|
||
body.design-workspace .flow-family {
|
||
width: 100%;
|
||
}
|
||
}
|
||
body.design-workspace .flow-steps {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
|
||
gap: 10px;
|
||
}
|
||
body.design-workspace .flow-step {
|
||
display: grid;
|
||
grid-template-columns: 28px minmax(0, 1fr);
|
||
gap: 4px 10px;
|
||
padding: 12px 14px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 10px;
|
||
background: var(--bg);
|
||
align-items: start;
|
||
min-width: 0;
|
||
}
|
||
body.design-workspace .flow-order {
|
||
grid-row: 1 / -1;
|
||
width: 28px;
|
||
height: 28px;
|
||
border-radius: 8px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: var(--surface-2, rgba(0, 0, 0, 0.04));
|
||
color: var(--muted);
|
||
font-weight: 700;
|
||
font-size: 13px;
|
||
}
|
||
body.design-workspace .flow-run {
|
||
grid-column: 2;
|
||
font-size: 11px;
|
||
font-weight: 650;
|
||
letter-spacing: 0.04em;
|
||
color: var(--muted);
|
||
line-height: 1.2;
|
||
}
|
||
body.design-workspace .flow-name {
|
||
font-weight: 600;
|
||
font-size: 14px;
|
||
line-height: 1.35;
|
||
min-width: 0;
|
||
}
|
||
body.design-workspace .flow-deps,
|
||
body.design-workspace .flow-params,
|
||
body.design-workspace .flow-params-missing,
|
||
body.design-workspace .flow-occ {
|
||
grid-column: 2;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
line-height: 1.35;
|
||
}
|
||
body.design-workspace .flow-step[data-run="pending"] {
|
||
background: var(--bg);
|
||
border-color: var(--border);
|
||
}
|
||
body.design-workspace .flow-step[data-run="pending"] .flow-name {
|
||
color: var(--muted);
|
||
font-weight: 500;
|
||
}
|
||
body.design-workspace .flow-step[data-run="current"] {
|
||
background: var(--surface);
|
||
border-color: var(--accent);
|
||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
|
||
}
|
||
body.design-workspace .flow-step[data-run="current"] .flow-order {
|
||
background: var(--accent);
|
||
color: #fff;
|
||
}
|
||
body.design-workspace .flow-step[data-run="current"] .flow-run {
|
||
color: var(--accent);
|
||
}
|
||
body.design-workspace .flow-step[data-run="done"] {
|
||
background: var(--bg);
|
||
border-color: color-mix(in srgb, var(--border) 70%, transparent);
|
||
}
|
||
body.design-workspace .flow-step[data-run="done"] .flow-order {
|
||
background: color-mix(in srgb, #15803d 16%, var(--bg));
|
||
color: #15803d;
|
||
}
|
||
body.design-workspace .flow-step[data-run="done"] .flow-run {
|
||
color: #15803d;
|
||
}
|
||
body.design-workspace .flow-step[data-run="done"] .flow-name {
|
||
color: var(--text);
|
||
font-weight: 500;
|
||
}
|
||
|
||
@media (max-width: 900px) {
|
||
body.design-workspace .main-body,
|
||
body.play-workspace .main-body {
|
||
grid-template-columns: minmax(0, 1fr);
|
||
}
|
||
body.design-workspace .coord-rail:not([hidden]),
|
||
body.play-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]),
|
||
body.play-workspace.coord-rail-collapsed .coord-rail:not([hidden]) {
|
||
width: var(--coord-w-collapsed, 40px);
|
||
box-shadow: none;
|
||
}
|
||
body.design-workspace .panel-feed,
|
||
body.play-workspace .panel-feed {
|
||
position: relative;
|
||
}
|
||
}
|
||
|
||
.btn, .btn-sm {
|
||
border: 1px solid var(--border);
|
||
background: var(--surface);
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
padding: 6px 10px;
|
||
}
|
||
.btn:focus,
|
||
.btn-sm:focus {
|
||
outline: none;
|
||
}
|
||
.btn:focus-visible,
|
||
.btn-sm:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
.btn-sm { padding: 4px 8px; font-size: 12px; }
|
||
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
|
||
.btn-primary:focus-visible {
|
||
outline-color: color-mix(in srgb, var(--accent) 50%, #fff);
|
||
}
|
||
.btn-danger { color: var(--danger); border-color: #fecaca; }
|
||
.btn:disabled, .btn-sm:disabled { opacity: 0.5; cursor: not-allowed; }
|
||
|
||
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
|
||
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
|
||
.status-dot.running { background: var(--accent); }
|
||
.status-dot.waiting { background: var(--warn); }
|
||
.status-dot.done { background: var(--ok); }
|
||
|
||
.panel-head-actions { display: flex; gap: 4px; align-items: center; }
|
||
.btn-sm.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
|
||
|
||
/* Books â breadcrumb + list */
|
||
.path-bar {
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: nowrap;
|
||
gap: 0;
|
||
overflow-x: auto;
|
||
font-size: 12px;
|
||
line-height: 1.35;
|
||
flex-shrink: 0;
|
||
min-width: 0;
|
||
}
|
||
.path-bar-list {
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: nowrap;
|
||
gap: 0;
|
||
margin: 0;
|
||
padding: 0;
|
||
list-style: none;
|
||
min-width: 0;
|
||
max-width: 100%;
|
||
}
|
||
.path-bar-item {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
min-width: 0;
|
||
max-width: 100%;
|
||
flex-shrink: 0;
|
||
}
|
||
.path-bar-item-current {
|
||
min-width: 0;
|
||
flex: 1 1 auto;
|
||
max-width: 100%;
|
||
}
|
||
.path-seg {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
border: none;
|
||
background: transparent;
|
||
padding: 0;
|
||
border-radius: 4px;
|
||
color: var(--text);
|
||
cursor: pointer;
|
||
white-space: nowrap;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
max-width: 9em;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.rail-path .path-seg.current {
|
||
font-size: 13px;
|
||
}
|
||
.path-seg:hover { color: var(--accent); }
|
||
.path-seg:focus-visible {
|
||
outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
|
||
outline-offset: 2px;
|
||
}
|
||
.path-seg-root {
|
||
max-width: none;
|
||
color: var(--text);
|
||
}
|
||
.path-home-icon {
|
||
display: block;
|
||
flex-shrink: 0;
|
||
color: var(--muted);
|
||
}
|
||
.path-seg-root:hover .path-home-icon { color: var(--accent); }
|
||
.path-seg.current,
|
||
.path-seg[aria-current="page"] {
|
||
font-weight: 600;
|
||
cursor: default;
|
||
color: var(--text);
|
||
max-width: none;
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.path-seg.current:hover,
|
||
.path-seg[aria-current="page"]:hover { color: var(--text); }
|
||
.path-sep {
|
||
color: var(--muted);
|
||
opacity: 0.65;
|
||
padding: 0 6px;
|
||
user-select: none;
|
||
flex-shrink: 0;
|
||
font-weight: 400;
|
||
font-size: 13px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.book-list {
|
||
flex: 1; overflow-y: auto; padding: 4px 6px 8px;
|
||
font-size: 12px; line-height: 1.35; position: relative;
|
||
min-width: 0;
|
||
}
|
||
.book-box-overlay {
|
||
position: fixed; z-index: 160; pointer-events: none;
|
||
border: 1px solid #3b82f6; background: rgba(59, 130, 246, 0.12);
|
||
border-radius: 2px;
|
||
}
|
||
.book-box-overlay[hidden] { display: none; }
|
||
.explorer-row {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1fr) auto;
|
||
align-items: start;
|
||
column-gap: 6px;
|
||
row-gap: 2px;
|
||
width: 100%;
|
||
min-height: 32px;
|
||
padding: 7px 8px;
|
||
border: none;
|
||
background: transparent;
|
||
cursor: pointer;
|
||
text-align: left;
|
||
color: var(--text);
|
||
border-radius: 6px;
|
||
min-width: 0;
|
||
}
|
||
.explorer-row.has-twist {
|
||
grid-template-columns: 16px minmax(0, 1fr) auto;
|
||
}
|
||
.explorer-twist {
|
||
grid-column: 1;
|
||
grid-row: 1 / span 2;
|
||
align-self: center;
|
||
width: 16px;
|
||
height: 16px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 10px;
|
||
line-height: 1;
|
||
color: var(--muted);
|
||
user-select: none;
|
||
}
|
||
.explorer-row.has-twist .explorer-main { grid-column: 2; }
|
||
.explorer-row.has-twist .explorer-del { grid-column: 3; }
|
||
.explorer-row.explorer-process {
|
||
min-height: 28px;
|
||
padding-top: 5px;
|
||
padding-bottom: 5px;
|
||
}
|
||
.explorer-row.explorer-process .explorer-name {
|
||
font-weight: 400;
|
||
color: var(--muted);
|
||
}
|
||
.explorer-row.explorer-process.active .explorer-name {
|
||
color: var(--accent);
|
||
font-weight: 600;
|
||
}
|
||
.explorer-row.explorer-spec .explorer-name {
|
||
font-weight: 500;
|
||
}
|
||
.explorer-row.explorer-run .explorer-name {
|
||
font-weight: 400;
|
||
}
|
||
.explorer-row.child {
|
||
padding-left: 28px;
|
||
min-height: 28px;
|
||
padding-top: 5px;
|
||
padding-bottom: 5px;
|
||
}
|
||
.explorer-row.child .explorer-name { font-size: 12px; font-weight: 400; }
|
||
.explorer-row:hover { background: var(--bg); }
|
||
.explorer-row:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: -2px;
|
||
}
|
||
.explorer-row.active,
|
||
.explorer-row.is-picking {
|
||
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; }
|
||
@media (hover: none) {
|
||
.explorer-del { opacity: 0.7; }
|
||
}
|
||
.explorer-add {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 28px;
|
||
height: 28px;
|
||
margin: 0 0 2px 8px;
|
||
padding: 0;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--muted);
|
||
font-size: 16px;
|
||
line-height: 1;
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
flex-shrink: 0;
|
||
}
|
||
.explorer-add.child { margin-left: 28px; }
|
||
.explorer-add:hover {
|
||
background: var(--bg);
|
||
color: var(--accent);
|
||
}
|
||
.explorer-add:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: -2px;
|
||
}
|
||
.explorer-add:disabled {
|
||
color: var(--muted);
|
||
opacity: 0.45;
|
||
cursor: not-allowed;
|
||
}
|
||
.explorer-add:disabled:hover { background: transparent; color: var(--muted); }
|
||
.explorer-design .explorer-name { font-weight: 500; }
|
||
.book-list > .explorer-design + .explorer-hint { margin-top: 2px; }
|
||
.book-enter-pop {
|
||
position: fixed;
|
||
z-index: 1100;
|
||
min-width: 148px;
|
||
margin: 0;
|
||
padding: 4px;
|
||
background: var(--surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: 10px;
|
||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
||
}
|
||
.book-enter-pop[hidden] { display: none !important; }
|
||
.book-enter-item {
|
||
display: block;
|
||
width: 100%;
|
||
text-align: left;
|
||
border: none;
|
||
background: transparent;
|
||
padding: 10px 12px;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
line-height: 1.3;
|
||
color: var(--text);
|
||
cursor: pointer;
|
||
border-radius: 6px;
|
||
}
|
||
.book-enter-item:hover {
|
||
background: var(--bg);
|
||
}
|
||
.book-enter-item:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: -2px;
|
||
}
|
||
.book-enter-item:disabled {
|
||
color: var(--muted);
|
||
cursor: not-allowed;
|
||
}
|
||
.book-enter-item:disabled:hover { background: transparent; }
|
||
.explorer-hint {
|
||
margin: 4px 8px; font-size: 11px; color: var(--muted); line-height: 1.4;
|
||
}
|
||
.explorer-product {
|
||
margin: 2px 0 6px;
|
||
}
|
||
.explorer-product.is-open {
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
background: var(--surface);
|
||
overflow: hidden;
|
||
}
|
||
.explorer-product.is-open > .explorer-row {
|
||
border-radius: 0;
|
||
background: var(--bg);
|
||
}
|
||
.explorer-product.is-open > .explorer-row:hover {
|
||
background: #ececee;
|
||
}
|
||
.explorer-drop {
|
||
border-top: 1px solid var(--border);
|
||
padding: 4px;
|
||
background: var(--surface);
|
||
}
|
||
.explorer-drop .explorer-row.child {
|
||
padding-left: 12px;
|
||
}
|
||
.explorer-drop-empty {
|
||
margin: 4px 8px 8px 12px;
|
||
font-size: 12px;
|
||
line-height: 1.4;
|
||
color: var(--muted);
|
||
}
|
||
.sidebar-empty { padding: 12px; color: var(--muted); font-size: 13px; text-align: center; }
|
||
|
||
/* Skill picker â primary action when starting */
|
||
.skill-picker {
|
||
padding: 16px;
|
||
border-bottom: 2px solid var(--accent);
|
||
background: var(--accent-soft);
|
||
}
|
||
.skill-picker h2 { margin: 0 0 4px; font-size: 15px; }
|
||
.skill-picker p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
|
||
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
|
||
.skill-card {
|
||
text-align: left; padding: 12px; border: 1px solid var(--border);
|
||
border-radius: 8px; background: var(--surface); cursor: pointer;
|
||
}
|
||
.skill-card:hover { border-color: var(--accent); }
|
||
.skill-card-name { font-weight: 600; margin-bottom: 4px; }
|
||
.skill-card-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }
|
||
.skill-card-tag { font-size: 11px; color: var(--accent); margin-top: 6px; }
|
||
|
||
/* Feed â SillyTavern å¼Â对è¯Âæ°Â泡 */
|
||
.message-feed {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: 12px 14px;
|
||
min-height: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
background: var(--bg);
|
||
}
|
||
body.rail-collapsed .message-feed {
|
||
padding: 6px 10px;
|
||
gap: 6px;
|
||
}
|
||
.empty { color: var(--muted); text-align: center; padding: 40px 16px; align-self: center; max-width: 100%; }
|
||
.empty-intake { white-space: pre-wrap; text-align: left; max-width: 560px; margin: 40px auto; line-height: 1.6; }
|
||
|
||
.msg {
|
||
display: flex;
|
||
flex-direction: column;
|
||
border: none;
|
||
border-radius: 0;
|
||
padding: 0;
|
||
margin: 0;
|
||
background: transparent;
|
||
max-width: 100%;
|
||
}
|
||
.msg-user-row { align-items: flex-end; }
|
||
.msg-assistant-row { align-items: flex-start; }
|
||
|
||
.msg-bubble {
|
||
position: relative;
|
||
width: 90%;
|
||
max-width: 90%;
|
||
border-radius: 14px;
|
||
border: 1px solid var(--border);
|
||
background: var(--surface);
|
||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
||
box-sizing: border-box;
|
||
}
|
||
.msg-user-row .msg-bubble {
|
||
background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
|
||
border-color: #93c5fd;
|
||
border-bottom-right-radius: 4px;
|
||
}
|
||
.msg-assistant-row.msg.skill .msg-bubble,
|
||
.msg-assistant-row.msg.agent .msg-bubble {
|
||
border-bottom-left-radius: 4px;
|
||
}
|
||
.msg-assistant-row.msg.error .msg-bubble {
|
||
border-color: #fecaca;
|
||
background: #fef2f2;
|
||
}
|
||
|
||
.msg-head {
|
||
display: flex;
|
||
gap: 8px;
|
||
align-items: center;
|
||
padding: 8px 12px 0;
|
||
font-size: 11px;
|
||
flex-wrap: wrap;
|
||
}
|
||
.msg-head [data-act="retry_run"] {
|
||
margin-left: auto;
|
||
}
|
||
.msg-foot {
|
||
display: flex;
|
||
gap: 8px;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
padding: 4px 10px 8px;
|
||
font-size: 11px;
|
||
flex-wrap: wrap;
|
||
}
|
||
/* 用户气泡不再单独占一行显示时间;操作菜单叠在右下角,不挤正文 */
|
||
.msg-user-row .msg-foot {
|
||
position: absolute;
|
||
right: 4px;
|
||
bottom: 4px;
|
||
padding: 0;
|
||
z-index: 1;
|
||
}
|
||
.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: 8px; }
|
||
.msg-assistant-row .msg-head + .msg-body { padding-top: 4px; }
|
||
.msg-pending { opacity: 0.85; }
|
||
|
||
.msg-thinking {
|
||
margin: 6px 10px 0;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
border: 1px dashed var(--border);
|
||
border-radius: 6px;
|
||
background: #fafafa;
|
||
}
|
||
.msg-thinking summary {
|
||
cursor: pointer;
|
||
padding: 6px 8px;
|
||
user-select: none;
|
||
}
|
||
.msg-thinking-body {
|
||
margin: 0;
|
||
padding: 8px;
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
font-family: ui-monospace, "Cascadia Code", monospace;
|
||
font-size: 12px;
|
||
color: var(--text);
|
||
max-height: 240px;
|
||
overflow: auto;
|
||
}
|
||
.msg-play-process-row {
|
||
margin: 4px 0;
|
||
}
|
||
.msg-play-process {
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
border: 1px dashed var(--border);
|
||
border-radius: 6px;
|
||
background: #fafafa;
|
||
}
|
||
.msg-play-process > summary {
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 8px;
|
||
padding: 6px 10px;
|
||
user-select: none;
|
||
list-style: none;
|
||
}
|
||
.msg-play-process > summary::-webkit-details-marker { display: none; }
|
||
.msg-play-process > summary::before {
|
||
content: "â¸";
|
||
font-size: 10px;
|
||
color: var(--muted);
|
||
}
|
||
.msg-play-process[open] > summary::before { content: "â¾"; }
|
||
.msg-play-process .msg-tag {
|
||
font-weight: 600;
|
||
color: var(--muted);
|
||
}
|
||
.msg-play-process .msg-body {
|
||
padding: 0 10px 10px;
|
||
max-height: 320px;
|
||
overflow: auto;
|
||
}
|
||
|
||
.msg-live-indicator {
|
||
margin-left: 8px;
|
||
font-size: 11px;
|
||
color: var(--accent);
|
||
}
|
||
.msg-live-body { min-height: 1.5em; }
|
||
.msg-live-section { margin-bottom: 8px; }
|
||
.msg-live-section:last-child { margin-bottom: 0; }
|
||
.msg-live-section header {
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
margin-bottom: 4px;
|
||
}
|
||
.msg-live-pre {
|
||
margin: 0;
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
font-family: ui-monospace, "Cascadia Code", monospace;
|
||
font-size: 12px;
|
||
max-height: 320px;
|
||
overflow: auto;
|
||
}
|
||
|
||
.msg-body-editing { padding: 8px 10px 10px; }
|
||
.msg-edit-input {
|
||
display: block;
|
||
width: 100%;
|
||
min-height: 72px;
|
||
max-height: 320px;
|
||
border: 1px solid var(--accent);
|
||
border-radius: 10px;
|
||
padding: 10px 12px;
|
||
font: inherit;
|
||
font-size: 14px;
|
||
line-height: 1.55;
|
||
resize: vertical;
|
||
background: var(--surface);
|
||
box-sizing: border-box;
|
||
}
|
||
.msg-user-row .msg-edit-input {
|
||
background: #fff;
|
||
}
|
||
.msg-edit-bar {
|
||
display: flex;
|
||
gap: 8px;
|
||
margin-top: 10px;
|
||
justify-content: flex-end;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
}
|
||
.msg-edit-bar .btn {
|
||
min-width: 4.5rem;
|
||
}
|
||
.msg-edit-hint {
|
||
margin: 6px 0 0;
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
text-align: right;
|
||
}
|
||
.msg-body-editing {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0;
|
||
width: 100%;
|
||
}
|
||
.msg.is-editing .msg-bubble {
|
||
box-shadow: 0 0 0 2px var(--accent-soft);
|
||
width: 90%;
|
||
max-width: 90%;
|
||
}
|
||
.msg-user-row.is-editing .msg-bubble {
|
||
width: 90%;
|
||
max-width: 90%;
|
||
}
|
||
@media (hover: none) {
|
||
.msg-actions { opacity: 1; }
|
||
}
|
||
|
||
/* Skill guide (right panel tab) */
|
||
.agent-tabs {
|
||
display: flex; gap: 0; border-bottom: 1px solid var(--border);
|
||
padding: 0 8px; background: var(--surface);
|
||
}
|
||
.agent-tab {
|
||
border: none; background: transparent; padding: 8px 12px; font-size: 12px;
|
||
cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent;
|
||
margin-bottom: -1px;
|
||
}
|
||
.agent-tab:hover { color: var(--text); }
|
||
.agent-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
|
||
.agent-tab-panel { flex: 1; min-height: 0; display: none; flex-direction: column; }
|
||
.agent-tab-panel.active { display: flex; }
|
||
.skill-guide-list { flex: 1; overflow-y: auto; padding: 8px 12px; font-size: 12px; }
|
||
.skill-guide-item { display: grid; grid-template-columns: 8px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
|
||
.skill-guide-item:last-child { border-bottom: none; }
|
||
.skill-guide-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); margin-top: 4px; }
|
||
.skill-guide-item.active .skill-guide-dot { background: var(--accent); }
|
||
.skill-guide-item.done .skill-guide-dot { background: var(--ok); }
|
||
.skill-guide-label { font-weight: 600; }
|
||
.skill-guide-purpose { color: var(--muted); margin-top: 2px; }
|
||
|
||
.review-artifact-panel {
|
||
flex: 1; overflow-y: auto; padding: 10px 12px; font-size: 12px; min-height: 0;
|
||
display: flex; flex-direction: column; gap: 10px;
|
||
}
|
||
.review-artifact-head { font-weight: 600; font-size: 13px; }
|
||
.review-artifact-summary { color: var(--muted); line-height: 1.4; }
|
||
.review-artifact-body {
|
||
flex: 1; overflow-y: auto; white-space: pre-wrap; word-break: break-word;
|
||
line-height: 1.55; font-size: 12px; padding: 10px; border: 1px solid var(--border);
|
||
border-radius: 8px; background: var(--surface); min-height: 120px;
|
||
}
|
||
.review-artifact-actions { display: flex; gap: 8px; flex-shrink: 0; }
|
||
.review-artifact-actions .btn { flex: 1; }
|
||
.review-hint {
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
line-height: 1.45;
|
||
margin: 0 0 8px;
|
||
}
|
||
|
||
/* 主对è¯éªæ¶å¡ï¼æ§ï¼ï¼ä¿çéæ©å¨ä»¥å
åå²ç±»å失æ */
|
||
.msg-review {
|
||
align-self: stretch;
|
||
width: 100%;
|
||
}
|
||
.msg-review .msg-review-bubble {
|
||
width: 100%;
|
||
max-width: 100%;
|
||
padding: 8px 10px 10px;
|
||
border-radius: 10px;
|
||
}
|
||
.msg-review .msg-head { padding: 2px 2px 0; }
|
||
.msg-review .msg-tag {
|
||
font-family: var(--font-ui);
|
||
letter-spacing: 0.04em;
|
||
}
|
||
.review-feed-summary {
|
||
margin: 2px 0 4px;
|
||
font-family: var(--font-read);
|
||
font-size: 15px;
|
||
font-weight: 600;
|
||
line-height: 1.4;
|
||
color: var(--text, inherit);
|
||
}
|
||
.review-json-block { margin: 4px 0 0; }
|
||
.msg-review .review-hint {
|
||
margin: 0 0 6px;
|
||
font-size: 11px;
|
||
line-height: 1.35;
|
||
}
|
||
.msg-review .ws-focus-banner {
|
||
padding: 6px 8px;
|
||
margin-bottom: 6px;
|
||
}
|
||
.msg-review .ws-focus-hint { margin-bottom: 0; font-size: 11px; }
|
||
.msg-review .review-worker-set { margin: 0 0 6px; }
|
||
|
||
/* é¡¶æ 主é¢èåï¼è²ä¸»é¢ + é壳 */
|
||
.more-menu {
|
||
position: relative;
|
||
display: inline-block;
|
||
flex: 0 0 auto;
|
||
}
|
||
.more-menu-sum {
|
||
list-style: none;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
line-height: 1;
|
||
height: 28px;
|
||
min-width: 28px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
box-sizing: border-box;
|
||
padding-inline: 6px;
|
||
}
|
||
.more-menu-sum::-webkit-details-marker { display: none; }
|
||
.more-menu-sum::marker { content: ""; }
|
||
.hamburger-icon {
|
||
display: block;
|
||
width: 14px;
|
||
height: 11px;
|
||
background:
|
||
linear-gradient(currentColor, currentColor) 0 0 / 100% 1.5px no-repeat,
|
||
linear-gradient(currentColor, currentColor) 0 50% / 100% 1.5px no-repeat,
|
||
linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
|
||
}
|
||
.more-menu[open] .more-menu-sum {
|
||
background: var(--accent-soft);
|
||
border-color: var(--accent);
|
||
color: var(--accent);
|
||
}
|
||
.more-menu-panel {
|
||
position: absolute;
|
||
left: auto;
|
||
right: 0;
|
||
top: calc(100% + 4px);
|
||
bottom: auto;
|
||
z-index: 80;
|
||
min-width: 188px;
|
||
max-height: min(70vh, 480px);
|
||
overflow: auto;
|
||
padding: 4px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
background: var(--surface);
|
||
box-shadow: var(--shadow);
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1px;
|
||
}
|
||
.more-menu-sep {
|
||
height: 1px;
|
||
margin: 4px 6px;
|
||
background: var(--border);
|
||
}
|
||
.more-menu-label {
|
||
padding: 6px 10px 2px;
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
letter-spacing: 0.02em;
|
||
color: var(--muted);
|
||
}
|
||
.more-font-scale {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 4px 10px 8px;
|
||
}
|
||
.more-font-btn {
|
||
box-sizing: border-box;
|
||
width: 28px;
|
||
height: 28px;
|
||
padding: 0;
|
||
border: 1px solid var(--border);
|
||
border-radius: 6px;
|
||
background: var(--surface);
|
||
color: var(--text);
|
||
font: inherit;
|
||
font-size: 16px;
|
||
line-height: 1;
|
||
cursor: pointer;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.more-font-btn:hover:not(:disabled) {
|
||
background: var(--bg);
|
||
border-color: var(--accent);
|
||
color: var(--accent);
|
||
}
|
||
.more-font-btn:disabled {
|
||
opacity: 0.4;
|
||
cursor: not-allowed;
|
||
}
|
||
.more-font-btn:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 1px;
|
||
}
|
||
.more-font-value {
|
||
min-width: 2.5em;
|
||
text-align: center;
|
||
font-size: 13px;
|
||
font-variant-numeric: tabular-nums;
|
||
font-weight: 600;
|
||
color: var(--text);
|
||
}
|
||
.more-menu-item {
|
||
display: block;
|
||
width: 100%;
|
||
padding: 7px 10px;
|
||
border: none;
|
||
border-radius: 6px;
|
||
background: transparent;
|
||
color: var(--text);
|
||
text-decoration: none;
|
||
text-align: left;
|
||
font: inherit;
|
||
font-size: 13px;
|
||
cursor: pointer;
|
||
}
|
||
.more-menu-item[hidden] { display: none !important; }
|
||
.more-menu-item:disabled {
|
||
opacity: 0.45;
|
||
cursor: not-allowed;
|
||
}
|
||
.more-menu-item:hover {
|
||
background: var(--bg);
|
||
color: var(--accent);
|
||
}
|
||
.more-menu-item:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: -2px;
|
||
}
|
||
.more-theme-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 8px 10px;
|
||
}
|
||
.more-theme-item.is-active {
|
||
background: var(--accent-soft);
|
||
color: var(--accent);
|
||
}
|
||
.more-toggle-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 8px 10px;
|
||
}
|
||
.more-toggle-item .more-theme-copy {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
}
|
||
.more-toggle-mark {
|
||
flex: 0 0 auto;
|
||
width: 1.1em;
|
||
text-align: center;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
}
|
||
.more-toggle-mark::before {
|
||
content: "";
|
||
}
|
||
.more-toggle-item.is-active {
|
||
background: var(--accent-soft);
|
||
color: var(--accent);
|
||
}
|
||
.more-toggle-item.is-active .more-toggle-mark::before,
|
||
.more-profile-item.is-active .more-toggle-mark::before {
|
||
content: "✓";
|
||
color: var(--accent);
|
||
font-weight: 700;
|
||
}
|
||
|
||
/* Markdown body (optional render) */
|
||
.msg-body .md-p,
|
||
.dictate-product-body .md-p,
|
||
.present-region-body .md-p {
|
||
margin: 0 0 0.55em;
|
||
line-height: 1.55;
|
||
}
|
||
.msg-body .md-p:last-child,
|
||
.dictate-product-body .md-p:last-child,
|
||
.present-region-body .md-p:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
.msg-body .md-h,
|
||
.dictate-product-body .md-h,
|
||
.present-region-body .md-h {
|
||
margin: 0.7em 0 0.35em;
|
||
font-weight: 650;
|
||
line-height: 1.35;
|
||
}
|
||
.msg-body .md-h:first-child,
|
||
.dictate-product-body .md-h:first-child,
|
||
.present-region-body .md-h:first-child {
|
||
margin-top: 0;
|
||
}
|
||
.msg-body h1.md-h,
|
||
.dictate-product-body h1.md-h,
|
||
.present-region-body h1.md-h { font-size: 1.25em; }
|
||
.msg-body h2.md-h,
|
||
.dictate-product-body h2.md-h,
|
||
.present-region-body h2.md-h { font-size: 1.15em; }
|
||
.msg-body h3.md-h,
|
||
.msg-body h4.md-h,
|
||
.msg-body h5.md-h,
|
||
.msg-body h6.md-h,
|
||
.dictate-product-body h3.md-h,
|
||
.dictate-product-body h4.md-h,
|
||
.dictate-product-body h5.md-h,
|
||
.dictate-product-body h6.md-h,
|
||
.present-region-body h3.md-h,
|
||
.present-region-body h4.md-h,
|
||
.present-region-body h5.md-h,
|
||
.present-region-body h6.md-h { font-size: 1.05em; }
|
||
.msg-body .md-ul,
|
||
.msg-body .md-ol,
|
||
.dictate-product-body .md-ul,
|
||
.dictate-product-body .md-ol,
|
||
.present-region-body .md-ul,
|
||
.present-region-body .md-ol {
|
||
margin: 0.35em 0 0.55em;
|
||
padding-left: 1.35em;
|
||
}
|
||
.msg-body .md-quote,
|
||
.dictate-product-body .md-quote,
|
||
.present-region-body .md-quote {
|
||
margin: 0.45em 0;
|
||
padding: 0.15em 0 0.15em 0.75em;
|
||
border-left: 3px solid color-mix(in srgb, var(--accent) 45%, var(--border));
|
||
color: var(--muted);
|
||
}
|
||
.msg-body .md-pre,
|
||
.dictate-product-body .md-pre,
|
||
.present-region-body .md-pre {
|
||
margin: 0.45em 0;
|
||
padding: 8px 10px;
|
||
overflow-x: hidden;
|
||
overflow-wrap: anywhere;
|
||
word-break: break-word;
|
||
white-space: pre-wrap;
|
||
border-radius: 8px;
|
||
border: 1px solid var(--border);
|
||
background: color-mix(in srgb, var(--bg) 80%, var(--surface));
|
||
font-size: 12px;
|
||
line-height: 1.45;
|
||
}
|
||
.msg-body .md-pre code,
|
||
.dictate-product-body .md-pre code,
|
||
.present-region-body .md-pre code {
|
||
white-space: inherit;
|
||
overflow-wrap: inherit;
|
||
word-break: inherit;
|
||
}
|
||
.msg-body .md-code,
|
||
.dictate-product-body .md-code,
|
||
.present-region-body .md-code {
|
||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||
font-size: 0.92em;
|
||
padding: 0.05em 0.35em;
|
||
border-radius: 4px;
|
||
background: color-mix(in srgb, var(--bg) 70%, var(--surface));
|
||
}
|
||
.msg-body .md-a,
|
||
.dictate-product-body .md-a,
|
||
.present-region-body .md-a {
|
||
color: var(--accent);
|
||
text-decoration: underline;
|
||
text-underline-offset: 2px;
|
||
}
|
||
.msg-body .md-hr,
|
||
.dictate-product-body .md-hr,
|
||
.present-region-body .md-hr {
|
||
border: none;
|
||
border-top: 1px solid var(--border);
|
||
margin: 0.75em 0;
|
||
}
|
||
.msg-body .md-table-wrap,
|
||
.dictate-product-body .md-table-wrap,
|
||
.present-region-body .md-table-wrap {
|
||
margin: 0.55em 0;
|
||
overflow-x: auto;
|
||
}
|
||
.msg-body .md-table,
|
||
.dictate-product-body .md-table,
|
||
.present-region-body .md-table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
font-size: 0.92em;
|
||
line-height: 1.45;
|
||
}
|
||
.msg-body .md-table th,
|
||
.msg-body .md-table td,
|
||
.dictate-product-body .md-table th,
|
||
.dictate-product-body .md-table td,
|
||
.present-region-body .md-table th,
|
||
.present-region-body .md-table td {
|
||
border: 1px solid var(--border);
|
||
padding: 0.35em 0.55em;
|
||
text-align: left;
|
||
vertical-align: top;
|
||
}
|
||
.msg-body .md-table th,
|
||
.dictate-product-body .md-table th,
|
||
.present-region-body .md-table th {
|
||
font-weight: 650;
|
||
background: color-mix(in srgb, var(--surface) 88%, var(--accent));
|
||
}
|
||
.msg-body .md-details,
|
||
.dictate-product-body .md-details,
|
||
.present-region-body .md-details {
|
||
margin: 0.55em 0;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
background: color-mix(in srgb, var(--bg) 70%, var(--surface));
|
||
}
|
||
.msg-body .md-summary,
|
||
.dictate-product-body .md-summary,
|
||
.present-region-body .md-summary {
|
||
cursor: pointer;
|
||
list-style: none;
|
||
padding: 0.45em 0.65em;
|
||
font-weight: 600;
|
||
user-select: none;
|
||
}
|
||
.msg-body .md-summary::-webkit-details-marker,
|
||
.dictate-product-body .md-summary::-webkit-details-marker,
|
||
.present-region-body .md-summary::-webkit-details-marker {
|
||
display: none;
|
||
}
|
||
.msg-body .md-summary::before,
|
||
.dictate-product-body .md-summary::before,
|
||
.present-region-body .md-summary::before {
|
||
content: "▸";
|
||
display: inline-block;
|
||
width: 1em;
|
||
margin-right: 0.25em;
|
||
color: var(--muted);
|
||
transition: transform 0.12s ease;
|
||
}
|
||
.msg-body .md-details[open] > .md-summary::before,
|
||
.dictate-product-body .md-details[open] > .md-summary::before,
|
||
.present-region-body .md-details[open] > .md-summary::before {
|
||
transform: rotate(90deg);
|
||
}
|
||
.msg-body .md-details-body,
|
||
.dictate-product-body .md-details-body,
|
||
.present-region-body .md-details-body {
|
||
padding: 0 0.65em 0.55em;
|
||
border-top: 1px solid var(--border);
|
||
}
|
||
|
||
.more-theme-icon {
|
||
flex: 0 0 auto;
|
||
width: 1.25em;
|
||
text-align: center;
|
||
font-size: 15px;
|
||
line-height: 1;
|
||
}
|
||
.more-theme-copy {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1px;
|
||
min-width: 0;
|
||
}
|
||
.more-theme-name {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
line-height: 1.2;
|
||
}
|
||
.more-theme-desc {
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
font-weight: 400;
|
||
line-height: 1.2;
|
||
}
|
||
.more-theme-item.is-active .more-theme-desc {
|
||
color: color-mix(in srgb, var(--accent) 70%, var(--muted));
|
||
}
|
||
|
||
/* æé®ç´¢å¼æ°æ³¡ï¼å³çå¨ä¸æ¹è¯¢é®å¡ */
|
||
.msg-bubble-index {
|
||
width: auto;
|
||
max-width: 70%;
|
||
background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
|
||
border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
|
||
}
|
||
.msg-q-index {
|
||
margin: 0;
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
color: var(--accent);
|
||
line-height: 1.4;
|
||
}
|
||
.msg-questions-banner {
|
||
padding: 6px 12px 0;
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: var(--warn);
|
||
}
|
||
.msg-q-list { margin: 0; padding-left: 1.25rem; line-height: 1.55; }
|
||
.msg-q-list li { margin: 0.35rem 0; }
|
||
.msg-q-lead { margin: 0; line-height: 1.55; font-size: 14px; }
|
||
|
||
/* 游ç©ï¼ç»ç¨¿éºæ»¡é
读åºï¼åå·è·æ£æé
读走ï¼ä¸è·åä½éªæ¶ç大å稿走 */
|
||
body[data-lifecycle="play"] .message-feed {
|
||
padding: 10px 12px 16px;
|
||
gap: 10px;
|
||
}
|
||
body[data-lifecycle="play"] .msg-assistant-row .msg-bubble {
|
||
width: min(100%, 44rem);
|
||
max-width: 100%;
|
||
border-color: color-mix(in srgb, var(--border) 70%, transparent);
|
||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
||
}
|
||
body[data-lifecycle="play"] .msg-assistant-row .msg-head {
|
||
padding-top: 6px;
|
||
}
|
||
body[data-lifecycle="play"] .msg-user-row .msg-bubble {
|
||
width: min(100%, 42rem);
|
||
max-width: 92%;
|
||
}
|
||
body[data-lifecycle="play"] .msg-play-final .msg-bubble {
|
||
width: 100%;
|
||
max-width: 100%;
|
||
}
|
||
body[data-lifecycle="play"] .msg-play-final .msg-body {
|
||
padding: 6px 14px 12px;
|
||
white-space: normal;
|
||
}
|
||
body[data-lifecycle="play"] .msg-play-final .present-shell {
|
||
border: none;
|
||
box-shadow: none;
|
||
background: transparent;
|
||
padding: 0;
|
||
border-radius: 0;
|
||
}
|
||
body[data-lifecycle="play"] .msg-play-final .present-shell-badge {
|
||
display: none;
|
||
}
|
||
body[data-lifecycle="play"] .msg-play-final .present-stack,
|
||
body[data-lifecycle="play"] .msg-play-final .present-board,
|
||
body[data-lifecycle="play"] .msg-play-final .present-split,
|
||
body[data-lifecycle="play"] .msg-play-final .present-reader {
|
||
gap: 10px;
|
||
}
|
||
body[data-lifecycle="play"] .msg-play-final .present-stage .present-region--body .present-region-body,
|
||
body[data-lifecycle="play"] .msg-play-final .present-stage.present-region--body .present-region-body,
|
||
body[data-lifecycle="play"] .msg-play-final .present-stage--read .present-region-body {
|
||
font-size: 15px;
|
||
line-height: 1.65;
|
||
max-width: none;
|
||
max-height: none;
|
||
overflow: visible;
|
||
}
|
||
body[data-lifecycle="play"] .msg-play-final .present-tone--book .present-stage--read .present-region-body,
|
||
body[data-lifecycle="play"] .msg-play-final .present-tone--book .present-stage .present-region-body {
|
||
max-width: none;
|
||
}
|
||
body[data-lifecycle="play"] .msg-play-final .present-shell--chat_monitor .present-stage {
|
||
padding: 0;
|
||
border: none;
|
||
background: transparent;
|
||
}
|
||
|
||
/* 产ç©ç´§åå¡ï¼æ¨ªå主轴ï¼é¢è§ä¸è¡ */
|
||
.artifact-compact-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
}
|
||
.artifact-compact {
|
||
border: 1px solid var(--border);
|
||
border-radius: 10px;
|
||
background: var(--surface);
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* éªæ¶æå¹³ï¼ä¸æ¡ metaï¼æ£æç´æ¥è¯»ï¼ä¸å¥ details/é¢è§æè¦ */
|
||
.artifact-flat-review {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
min-width: 0;
|
||
}
|
||
.artifact-flat-meta {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 8px 10px;
|
||
padding-bottom: 8px;
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
.artifact-flat-meta > .artifact-raw--quiet {
|
||
margin-left: auto;
|
||
}
|
||
.artifact-flat-path .artifact-crumb-root {
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
color: var(--text);
|
||
}
|
||
.artifact-flat-title {
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
color: var(--text);
|
||
margin-right: 4px;
|
||
}
|
||
.artifact-flat-chips {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 5px;
|
||
align-items: center;
|
||
}
|
||
.artifact-flat-chips .ws-badge,
|
||
.artifact-flat-chips .ws-slot-chip,
|
||
.artifact-flat-chips .pct-pill {
|
||
font-size: 11px;
|
||
padding: 1px 7px;
|
||
}
|
||
.artifact-flat-body {
|
||
min-width: 0;
|
||
}
|
||
body.design-workspace .artifact-flat-review {
|
||
max-width: none;
|
||
}
|
||
.artifact-compact-sum {
|
||
list-style: none;
|
||
cursor: pointer;
|
||
padding: 8px 10px;
|
||
user-select: none;
|
||
}
|
||
.artifact-compact-sum::-webkit-details-marker { display: none; }
|
||
.artifact-compact-sum::marker { content: ""; }
|
||
.artifact-compact-row {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 10px;
|
||
}
|
||
.artifact-compact-main {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 3px;
|
||
}
|
||
.artifact-compact-title {
|
||
font-family: var(--font-ui);
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
line-height: 1.3;
|
||
letter-spacing: 0.01em;
|
||
}
|
||
.artifact-compact-meta {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 4px 6px;
|
||
}
|
||
.artifact-compact-toggle {
|
||
flex-shrink: 0;
|
||
align-self: center;
|
||
font-family: var(--font-ui);
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: var(--accent);
|
||
padding: 4px 10px;
|
||
border-radius: 999px;
|
||
background: var(--accent-soft);
|
||
}
|
||
.artifact-compact-toggle::before { content: "å±Âå¼Â"; }
|
||
.artifact-compact[open] .artifact-compact-toggle::before { content: "æÂ¶èµ·"; }
|
||
.artifact-compact-preview {
|
||
margin: 0;
|
||
font-family: var(--font-read);
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
line-height: 1.45;
|
||
color: #3f3f46;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.pct-pill {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 1px 6px;
|
||
border-radius: 999px;
|
||
font-family: var(--font-ui);
|
||
font-size: 10.5px;
|
||
font-weight: 700;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
.pct-pill.tone-low {
|
||
color: var(--danger);
|
||
background: color-mix(in srgb, var(--danger) 12%, var(--surface));
|
||
}
|
||
.pct-pill.tone-mid {
|
||
color: #a16207;
|
||
background: #fef9c3;
|
||
}
|
||
.pct-pill.tone-high {
|
||
color: var(--ok);
|
||
background: #dcfce7;
|
||
}
|
||
.artifact-compact-body {
|
||
border-top: 1px solid var(--border);
|
||
padding: 8px;
|
||
max-height: min(72vh, 640px);
|
||
overflow: auto;
|
||
background: #fafafa;
|
||
font-family: var(--font-ui);
|
||
}
|
||
.artifact-compact-body .artifact-friendly { gap: 6px; }
|
||
.artifact-compact-body .artifact-block,
|
||
.artifact-compact-body .artifact-friendly .ws-section {
|
||
padding: 6px 8px;
|
||
}
|
||
.ws-focus-body {
|
||
margin-top: 8px;
|
||
max-height: none;
|
||
padding: 0;
|
||
border: none;
|
||
background: transparent;
|
||
}
|
||
.ws-focus-body .artifact-compact-list { margin: 0; }
|
||
|
||
/* å±å¼åºï¼mosaic / ç·ç ç½æ ¼ */
|
||
.af-mosaic {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
gap: 6px;
|
||
}
|
||
body.is-reviewing .af-mosaic,
|
||
body.rail-collapsed .af-mosaic,
|
||
body.design-workspace .af-mosaic {
|
||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
|
||
}
|
||
|
||
/* ç¾å¦éªæ¶ï¼å·¦å¥çº¦ / å³è¯æ */
|
||
.af-split {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
width: 100%;
|
||
min-width: 0;
|
||
}
|
||
.af-split-banner {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: baseline;
|
||
gap: 8px 14px;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
padding-bottom: 8px;
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
.af-split-banner b {
|
||
color: var(--text);
|
||
font-weight: 700;
|
||
margin-right: 2px;
|
||
}
|
||
.af-split-banner-note {
|
||
margin-left: auto;
|
||
font-size: 11px;
|
||
opacity: 0.85;
|
||
}
|
||
.af-split-grid {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.9fr);
|
||
gap: 18px 22px;
|
||
align-items: start;
|
||
}
|
||
.af-split-product,
|
||
.af-split-eval {
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
}
|
||
.af-split-eval {
|
||
position: sticky;
|
||
top: 8px;
|
||
max-height: calc(100dvh - 7rem);
|
||
overflow-y: auto;
|
||
padding: 10px 12px 12px;
|
||
border-radius: 8px;
|
||
border: 1px solid var(--border);
|
||
background: var(--bg);
|
||
}
|
||
.af-block-head {
|
||
margin-bottom: 8px;
|
||
}
|
||
.af-block-title {
|
||
margin: 0;
|
||
font-family: var(--font-ui);
|
||
font-size: 14px;
|
||
font-weight: 650;
|
||
color: var(--text);
|
||
letter-spacing: 0.01em;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
.af-block-miss {
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
color: var(--danger);
|
||
padding: 1px 6px;
|
||
border-radius: 999px;
|
||
background: color-mix(in srgb, var(--danger) 12%, var(--surface));
|
||
}
|
||
.af-block-hint {
|
||
margin: 0;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
line-height: 1.4;
|
||
}
|
||
.af-block-body {
|
||
min-width: 0;
|
||
}
|
||
|
||
/* ç¾å¦å¡ï¼é
读å±çº§ â å
æ ¸æå¤§ï¼è弿¬¡ä¹ï¼å³æ æ´å¯æ´æ² */
|
||
.af-split--aesthetics .af-split-product {
|
||
gap: 22px;
|
||
}
|
||
.af-split--aesthetics .af-block--product .af-block-title {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
color: var(--muted);
|
||
text-transform: none;
|
||
letter-spacing: 0.02em;
|
||
}
|
||
.af-split--aesthetics .af-block--product .af-block-head {
|
||
margin-bottom: 6px;
|
||
}
|
||
.af-split--aesthetics .artifact-kernel.qcard-assessment,
|
||
.af-split--aesthetics .artifact-kernel {
|
||
margin: 0 0 14px;
|
||
padding: 12px 14px;
|
||
border-radius: 8px;
|
||
border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
|
||
background: color-mix(in srgb, var(--surface) 88%, var(--bg));
|
||
}
|
||
.af-split--aesthetics .artifact-kernel .artifact-aside-label {
|
||
margin: 0 0 6px;
|
||
font-size: 11px;
|
||
font-weight: 650;
|
||
letter-spacing: 0.04em;
|
||
color: var(--muted);
|
||
}
|
||
.af-split--aesthetics .artifact-kernel .artifact-prose,
|
||
.af-split--aesthetics .artifact-kernel .artifact-inline {
|
||
font-family: var(--font-read);
|
||
font-size: 16px;
|
||
line-height: 1.75;
|
||
max-width: 40rem;
|
||
}
|
||
.af-split--aesthetics .af-block--product .af-group-title,
|
||
.af-split--aesthetics .af-block--product .af-section-title {
|
||
font-size: 12px;
|
||
font-weight: 650;
|
||
color: var(--muted);
|
||
margin: 0 0 6px;
|
||
}
|
||
.af-split--aesthetics .af-block--product .af-stack,
|
||
.af-split--aesthetics .af-block--product .af-def-list {
|
||
gap: 12px;
|
||
}
|
||
.af-split--aesthetics .af-block--product .af-def-v,
|
||
.af-split--aesthetics .af-block--product .artifact-prose {
|
||
font-family: var(--font-read);
|
||
font-size: 14.5px;
|
||
line-height: 1.65;
|
||
max-width: 40rem;
|
||
}
|
||
.af-split--aesthetics .af-split-eval {
|
||
gap: 12px;
|
||
font-size: 13px;
|
||
}
|
||
.af-split--aesthetics .af-block--eval .af-block-title,
|
||
.af-split--aesthetics .af-block--extra .af-block-title {
|
||
font-size: 12px;
|
||
font-weight: 650;
|
||
color: var(--muted);
|
||
}
|
||
.af-split--aesthetics .af-block--eval .af-block-body,
|
||
.af-split--aesthetics .af-block--extra .af-block-body {
|
||
font-size: 13px;
|
||
line-height: 1.5;
|
||
color: color-mix(in srgb, var(--text) 92%, var(--muted));
|
||
}
|
||
.af-split--aesthetics .af-dim-title {
|
||
font-size: 12px;
|
||
}
|
||
@media (max-width: 900px) {
|
||
.af-split-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.af-split-eval {
|
||
position: static;
|
||
max-height: none;
|
||
}
|
||
.af-split-banner-note {
|
||
margin-left: 0;
|
||
width: 100%;
|
||
}
|
||
}
|
||
|
||
/* æ§å¸å±ç±»åä¿çï¼é¿å
æ®çå¼ç¨å´©æ ·å¼ */
|
||
.af-review-stack,
|
||
.af-review-layout {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 18px;
|
||
width: 100%;
|
||
}
|
||
.af-review-primary {
|
||
min-width: 0;
|
||
padding: 0;
|
||
}
|
||
.af-review-primary-body {
|
||
font-size: 15px;
|
||
line-height: 1.7;
|
||
}
|
||
.af-review-primary-body .artifact-kernel.qcard-assessment,
|
||
.af-review-primary-body .artifact-kernel {
|
||
margin: 0 0 12px;
|
||
padding: 0;
|
||
border: none;
|
||
background: transparent;
|
||
}
|
||
.af-review-primary-body .artifact-aside-label {
|
||
margin-bottom: 6px;
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.04em;
|
||
color: var(--muted);
|
||
}
|
||
.af-review-primary-body .artifact-kernel .artifact-prose,
|
||
.af-review-primary-body .artifact-kernel .artifact-inline,
|
||
.af-review-primary-body .artifact-prose {
|
||
font-family: var(--font-read);
|
||
font-size: 16px;
|
||
line-height: 1.75;
|
||
max-width: 42rem;
|
||
}
|
||
.af-review-primary-body .af-tile-grid {
|
||
margin-top: 12px;
|
||
grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
|
||
}
|
||
.af-review-rail {
|
||
min-width: 0;
|
||
position: sticky;
|
||
top: 8px;
|
||
max-height: calc(100dvh - 8rem);
|
||
overflow-y: auto;
|
||
padding: 10px 12px 12px;
|
||
border-radius: 8px;
|
||
border: 1px solid var(--border);
|
||
background: var(--bg);
|
||
}
|
||
.af-review-rail-label {
|
||
margin: 0 0 8px;
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.06em;
|
||
text-transform: uppercase;
|
||
color: var(--muted);
|
||
}
|
||
.af-support-block {
|
||
margin: 0 0 12px;
|
||
padding: 0;
|
||
border: none;
|
||
background: transparent;
|
||
}
|
||
.af-support-block:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
.af-support-block > h4 {
|
||
margin: 0 0 8px;
|
||
font-family: var(--font-ui);
|
||
font-size: 12.5px;
|
||
font-weight: 700;
|
||
color: var(--text);
|
||
letter-spacing: 0.02em;
|
||
}
|
||
.af-support-block .af-dim-stack {
|
||
gap: 10px;
|
||
}
|
||
.af-support-block .af-tile-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.af-support-block .af-tile-text {
|
||
-webkit-line-clamp: 8;
|
||
font-size: 12px;
|
||
}
|
||
@media (max-width: 900px) {
|
||
.af-review-layout {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.af-review-rail {
|
||
position: static;
|
||
max-height: none;
|
||
}
|
||
}
|
||
|
||
.af-panel {
|
||
padding: 6px 8px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
background: var(--surface);
|
||
min-width: 0;
|
||
}
|
||
.af-panel > h4 {
|
||
margin: 0 0 6px;
|
||
font-family: var(--font-ui);
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
color: var(--muted);
|
||
letter-spacing: 0.06em;
|
||
}
|
||
.af-panel-wide { grid-column: 1 / -1; }
|
||
.af-tile-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
|
||
gap: 5px;
|
||
}
|
||
.af-tile {
|
||
padding: 6px 7px;
|
||
border-radius: 7px;
|
||
background: var(--bg);
|
||
border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
|
||
min-width: 0;
|
||
}
|
||
.af-tile:hover { border-color: var(--border); background: #fff; }
|
||
.af-tile-head {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 6px;
|
||
margin-bottom: 3px;
|
||
}
|
||
.af-tile-name {
|
||
font-family: var(--font-ui);
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
color: #52525b;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
letter-spacing: 0.02em;
|
||
}
|
||
.af-tile-text {
|
||
margin: 0;
|
||
font-family: var(--font-read);
|
||
font-size: 12.5px;
|
||
font-weight: 500;
|
||
line-height: 1.5;
|
||
color: #27272a;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 4;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
word-break: break-word;
|
||
}
|
||
.af-tile-sub {
|
||
display: block;
|
||
margin-top: 2px;
|
||
font-family: var(--font-ui);
|
||
font-size: 10.5px;
|
||
color: var(--muted);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.af-tile-sub.pending { color: #a16207; }
|
||
.af-stack { display: flex; flex-direction: column; gap: 6px; width: 100%; }
|
||
.af-group { min-width: 0; width: 100%; }
|
||
.af-group-wide {
|
||
width: 100%;
|
||
min-width: 0;
|
||
padding: 4px 0;
|
||
}
|
||
.af-group-wide .artifact-kv,
|
||
.af-group-wide .artifact-prose,
|
||
.af-group-wide .artifact-inline {
|
||
max-width: none;
|
||
}
|
||
.af-group-title {
|
||
font-family: var(--font-ui);
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
color: var(--text);
|
||
margin-bottom: 6px;
|
||
letter-spacing: 0.02em;
|
||
}
|
||
.af-section {
|
||
margin: 0 0 14px;
|
||
padding: 0;
|
||
min-width: 0;
|
||
}
|
||
.af-section:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
.present-preview-note,
|
||
.present-preview-status {
|
||
margin: 0 0 8px;
|
||
font-size: 12px;
|
||
line-height: 1.45;
|
||
color: var(--muted);
|
||
}
|
||
.present-frame-host {
|
||
width: 100%;
|
||
min-width: 0;
|
||
border: 1px solid var(--border);
|
||
border-radius: 10px;
|
||
overflow: hidden;
|
||
background: var(--surface);
|
||
}
|
||
.present-preview-frame {
|
||
display: block;
|
||
width: 100%;
|
||
height: 220px;
|
||
border: 0;
|
||
background: transparent;
|
||
}
|
||
.present-preview-fallback {
|
||
margin-top: 8px;
|
||
padding: 8px 10px;
|
||
border-radius: 8px;
|
||
background: var(--bg);
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
font-size: 13px;
|
||
line-height: 1.55;
|
||
}
|
||
.af-section-title {
|
||
margin: 0 0 8px;
|
||
font-family: var(--font-ui);
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
color: var(--text);
|
||
letter-spacing: 0.01em;
|
||
padding-bottom: 4px;
|
||
border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
|
||
}
|
||
.af-dim-stack {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 14px;
|
||
}
|
||
.af-dim {
|
||
min-width: 0;
|
||
padding: 0 0 12px;
|
||
border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
|
||
}
|
||
.af-dim:last-child {
|
||
border-bottom: none;
|
||
padding-bottom: 0;
|
||
}
|
||
.af-dim-head {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: baseline;
|
||
gap: 6px 10px;
|
||
margin-bottom: 8px;
|
||
}
|
||
.af-dim-title {
|
||
margin: 0;
|
||
font-family: var(--font-ui);
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
color: var(--text);
|
||
letter-spacing: 0.01em;
|
||
line-height: 1.3;
|
||
}
|
||
.af-dim-head .pct-inline-value {
|
||
font-size: 13px;
|
||
}
|
||
.af-dim-body {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 5px;
|
||
padding-left: 2px;
|
||
}
|
||
.af-dim-row {
|
||
display: grid;
|
||
grid-template-columns: minmax(2.75rem, 3.25rem) minmax(0, 1fr);
|
||
gap: 2px 10px;
|
||
align-items: start;
|
||
font-size: 12.5px;
|
||
line-height: 1.5;
|
||
}
|
||
.af-dim-row--block {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.af-dim-k {
|
||
font-size: 11px;
|
||
font-weight: 500;
|
||
color: var(--muted);
|
||
padding-top: 2px;
|
||
}
|
||
.af-dim-v {
|
||
min-width: 0;
|
||
font-size: 13px;
|
||
color: var(--text);
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
}
|
||
|
||
/* è¡å
å®å¤åº¦ / è¯å */
|
||
.pct-inline {
|
||
display: inline-flex;
|
||
align-items: baseline;
|
||
gap: 4px;
|
||
font-variant-numeric: tabular-nums;
|
||
line-height: 1.2;
|
||
}
|
||
.pct-inline-label {
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: var(--muted);
|
||
}
|
||
.pct-inline-value {
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
}
|
||
.pct-inline.tone-low .pct-inline-value { color: var(--danger); }
|
||
.pct-inline.tone-mid .pct-inline-value { color: var(--warn); }
|
||
.pct-inline.tone-high .pct-inline-value { color: var(--ok); }
|
||
|
||
.af-panel-wide .af-stack,
|
||
.af-panel-wide .artifact-kv {
|
||
width: 100%;
|
||
}
|
||
.af-score-grid {
|
||
display: grid !important;
|
||
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
||
gap: 5px;
|
||
}
|
||
|
||
/* æÂÂè½ä¸Âç¨æÂ£æÂÂå¡ */
|
||
.skill-view {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 14px;
|
||
}
|
||
|
||
/* ç¾å¦çº²é¢ï¼ä¸»æ å¥çº¦ / è¾
æ è¯æï¼æ 第äºå±çåï¼ */
|
||
.skill-view.skill-view-aesthetics {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1.55fr) minmax(15.5rem, 0.88fr);
|
||
gap: 8px 36px;
|
||
align-items: start;
|
||
}
|
||
.skill-view-aesthetics.af-aes--solo {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.af-aes-main,
|
||
.af-aes-diag {
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
}
|
||
.af-aes-diag {
|
||
padding-left: 22px;
|
||
border-left: 1px solid var(--border);
|
||
}
|
||
.af-aes-kernel .artifact-aside-label {
|
||
display: block;
|
||
margin: 0 0 8px;
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.08em;
|
||
color: var(--muted);
|
||
}
|
||
.af-aes-kernel .artifact-prose,
|
||
.af-aes-kernel .artifact-inline {
|
||
font-family: var(--font-read);
|
||
font-size: 15.5px;
|
||
line-height: 1.78;
|
||
max-width: 42rem;
|
||
margin: 0;
|
||
color: var(--text);
|
||
}
|
||
.af-aes-paradigm {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 14px;
|
||
}
|
||
.af-aes-main > .skill-card-section > h4,
|
||
.af-aes-paradigm > .skill-card-section > h4 {
|
||
margin: 0 0 8px;
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.04em;
|
||
color: var(--muted);
|
||
}
|
||
.af-aes-diag > .skill-card-section > h4 {
|
||
margin: 0 0 8px;
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.06em;
|
||
color: var(--muted);
|
||
}
|
||
.af-aes-diag .af-dim-stack { gap: 10px; }
|
||
.af-aes-diag .af-dim { padding-bottom: 10px; }
|
||
.af-aes-diag .af-dim-title { font-size: 13px; }
|
||
.af-aes-twist {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
.af-aes-twist-row {
|
||
display: grid;
|
||
grid-template-columns: 2.5rem minmax(0, 1fr);
|
||
gap: 8px 10px;
|
||
align-items: start;
|
||
}
|
||
.af-aes-twist-k {
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: var(--muted);
|
||
padding-top: 2px;
|
||
}
|
||
.af-aes-twist-v {
|
||
font-size: 13px;
|
||
line-height: 1.5;
|
||
word-break: break-word;
|
||
}
|
||
.af-aes-twist-infer {
|
||
margin: 2px 0 0;
|
||
font-family: var(--font-read);
|
||
font-size: 13.5px;
|
||
line-height: 1.55;
|
||
color: var(--text);
|
||
}
|
||
.af-dim-row.is-pending .af-dim-k {
|
||
color: #a16207;
|
||
font-weight: 650;
|
||
}
|
||
.af-dim-row.is-pending .af-dim-v { color: #854d0e; }
|
||
@media (max-width: 860px) {
|
||
.skill-view.skill-view-aesthetics {
|
||
grid-template-columns: 1fr;
|
||
gap: 20px;
|
||
}
|
||
.af-aes-diag {
|
||
padding-left: 0;
|
||
border-left: none;
|
||
padding-top: 16px;
|
||
border-top: 1px solid var(--border);
|
||
}
|
||
}
|
||
.artifact-compact-body .skill-view.skill-view-aesthetics {
|
||
grid-template-columns: 1fr;
|
||
gap: 16px;
|
||
}
|
||
.artifact-compact-body .af-aes-diag {
|
||
padding-left: 0;
|
||
border-left: none;
|
||
padding-top: 12px;
|
||
border-top: 1px solid var(--border);
|
||
}
|
||
.ws-focus-body .skill-view.skill-view-aesthetics {
|
||
grid-template-columns: minmax(0, 1.55fr) minmax(15.5rem, 0.88fr);
|
||
}
|
||
.ws-focus-body .af-aes-diag {
|
||
padding-left: 22px;
|
||
border-left: 1px solid var(--border);
|
||
padding-top: 0;
|
||
border-top: none;
|
||
}
|
||
@media (max-width: 860px) {
|
||
.ws-focus-body .skill-view.skill-view-aesthetics {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.ws-focus-body .af-aes-diag {
|
||
padding-left: 0;
|
||
border-left: none;
|
||
padding-top: 16px;
|
||
border-top: 1px solid var(--border);
|
||
}
|
||
}
|
||
|
||
.skill-card-section > h4 {
|
||
margin: 0 0 8px;
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
}
|
||
.skill-kv {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
.skill-kv-row {
|
||
display: grid;
|
||
grid-template-columns: minmax(72px, 120px) 1fr;
|
||
gap: 8px 12px;
|
||
align-items: start;
|
||
}
|
||
.skill-kv-key {
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
color: var(--muted);
|
||
padding-top: 2px;
|
||
}
|
||
.skill-kv-val {
|
||
min-width: 0;
|
||
font-size: 13px;
|
||
line-height: 1.45;
|
||
}
|
||
.af-aes-main .skill-kv-row,
|
||
.af-aes-paradigm .skill-kv-row {
|
||
grid-template-columns: minmax(4.75rem, 7.25rem) 1fr;
|
||
}
|
||
.af-aes-main .skill-kv-val,
|
||
.af-aes-paradigm .skill-kv-val {
|
||
line-height: 1.55;
|
||
}
|
||
@media (max-width: 640px) {
|
||
.skill-kv-row { grid-template-columns: 1fr; gap: 2px; }
|
||
}
|
||
.skill-verdict {
|
||
margin: 0 0 8px;
|
||
padding: 8px 10px;
|
||
border-radius: 8px;
|
||
font-weight: 700;
|
||
font-size: 13px;
|
||
}
|
||
.skill-verdict.tone-ok {
|
||
background: color-mix(in srgb, var(--ok) 14%, var(--surface));
|
||
color: var(--ok);
|
||
}
|
||
.skill-verdict.tone-warn {
|
||
background: color-mix(in srgb, var(--warn) 18%, var(--surface));
|
||
color: color-mix(in srgb, var(--warn) 80%, #000);
|
||
}
|
||
.skill-rule-stack,
|
||
.skill-entity-grid,
|
||
.skill-pool-grid {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
}
|
||
.skill-entity-grid,
|
||
.skill-pool-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||
gap: 10px;
|
||
}
|
||
.skill-rule-card,
|
||
.skill-entity-card,
|
||
.skill-pool-card {
|
||
padding: 12px 14px;
|
||
border-radius: 10px;
|
||
border: 1px solid var(--border);
|
||
background: color-mix(in srgb, var(--surface) 92%, var(--bg));
|
||
}
|
||
.skill-rule-head,
|
||
.skill-entity-head {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
margin-bottom: 8px;
|
||
}
|
||
.skill-rule-title,
|
||
.skill-entity-name,
|
||
.skill-pool-name {
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
line-height: 1.3;
|
||
}
|
||
.skill-sub {
|
||
margin-top: 10px;
|
||
padding-top: 10px;
|
||
border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
|
||
}
|
||
.skill-sub-title {
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
color: var(--muted);
|
||
letter-spacing: 0.04em;
|
||
margin-bottom: 6px;
|
||
}
|
||
.skill-method {
|
||
margin-bottom: 8px;
|
||
}
|
||
.skill-method-label {
|
||
display: block;
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: var(--muted);
|
||
margin-bottom: 4px;
|
||
}
|
||
.skill-table-wrap {
|
||
overflow-x: auto;
|
||
margin-top: 6px;
|
||
border-radius: 8px;
|
||
border: 1px solid var(--border);
|
||
}
|
||
.skill-field-table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
font-size: 12px;
|
||
}
|
||
.skill-field-table th,
|
||
.skill-field-table td {
|
||
padding: 7px 9px;
|
||
text-align: left;
|
||
border-bottom: 1px solid var(--border);
|
||
vertical-align: top;
|
||
}
|
||
.skill-field-table th {
|
||
background: var(--bg);
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
font-weight: 700;
|
||
}
|
||
.skill-field-table tr:last-child td { border-bottom: 0; }
|
||
.skill-field-table code {
|
||
font-size: 11.5px;
|
||
font-weight: 600;
|
||
}
|
||
.skill-example {
|
||
margin-top: 8px;
|
||
font-size: 12px;
|
||
}
|
||
.skill-example summary {
|
||
cursor: pointer;
|
||
color: var(--muted);
|
||
font-weight: 600;
|
||
}
|
||
.skill-pool-card.is-direction {
|
||
grid-column: 1 / -1;
|
||
}
|
||
.skill-pool-dirs {
|
||
margin: 8px 0 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
}
|
||
.skill-pool-dir dt {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
}
|
||
.skill-pool-dir dd {
|
||
margin: 2px 0 0;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
line-height: 1.4;
|
||
}
|
||
.artifact-parse-hint {
|
||
margin: 0 0 8px;
|
||
font-size: 12px;
|
||
}
|
||
.skill-entity-card > p {
|
||
margin: 6px 0 0;
|
||
font-size: 12.5px;
|
||
line-height: 1.45;
|
||
}
|
||
.pct-mini {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
flex-shrink: 0;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
.pct-mini > b {
|
||
font-size: 11px;
|
||
font-weight: 800;
|
||
min-width: 1.6em;
|
||
text-align: right;
|
||
}
|
||
.pct-mini > i {
|
||
display: block;
|
||
width: 28px;
|
||
height: 4px;
|
||
border-radius: 999px;
|
||
background: color-mix(in srgb, var(--border) 80%, transparent);
|
||
position: relative;
|
||
overflow: hidden;
|
||
font-style: normal;
|
||
}
|
||
.pct-mini > i::after {
|
||
content: "";
|
||
position: absolute;
|
||
inset: 0 auto 0 0;
|
||
width: var(--p, 0%);
|
||
border-radius: inherit;
|
||
background: currentColor;
|
||
}
|
||
.pct-mini.tone-low { color: var(--danger); }
|
||
.pct-mini.tone-mid { color: var(--warn); }
|
||
.pct-mini.tone-high { color: var(--ok); }
|
||
|
||
@media (max-width: 720px) {
|
||
.af-mosaic { grid-template-columns: 1fr; }
|
||
.af-panel-wide { grid-column: auto; }
|
||
}
|
||
.json-pretty,
|
||
.review-feed-plain {
|
||
margin: 0;
|
||
padding: 12px 14px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
background: var(--surface-2, rgba(0, 0, 0, 0.03));
|
||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||
font-size: 12.5px;
|
||
line-height: 1.55;
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
max-height: min(70vh, 640px);
|
||
overflow: auto;
|
||
}
|
||
.json-pretty code {
|
||
font-family: inherit;
|
||
font-size: inherit;
|
||
}
|
||
.json-key { color: #0b6e4f; }
|
||
.json-str { color: #1d4ed8; }
|
||
.json-num { color: #b45309; }
|
||
.json-lit { color: #7c3aed; }
|
||
.review-feed-actions {
|
||
margin-top: 4px;
|
||
max-width: 200px;
|
||
}
|
||
.review-feed-actions .btn {
|
||
flex: 1;
|
||
}
|
||
.msg-review .ws-section h4,
|
||
.workspace-review .ws-section h4 {
|
||
font-size: 12px;
|
||
}
|
||
.msg-review .ws-user-view,
|
||
.workspace-review .ws-user-view {
|
||
gap: 8px;
|
||
}
|
||
|
||
.ws-creation-flow .flow-brief {
|
||
margin: 0 0 8px;
|
||
color: var(--muted, #666);
|
||
font-size: 13px;
|
||
}
|
||
.ws-creation-flow .flow-status {
|
||
margin: 0 0 8px;
|
||
color: var(--muted, #666);
|
||
font-size: 12px;
|
||
}
|
||
.propose-step {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
width: 100%;
|
||
padding: 4px 0 0;
|
||
}
|
||
.propose-step-head {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: baseline;
|
||
gap: 8px;
|
||
}
|
||
.propose-kicker {
|
||
font-size: 11px;
|
||
font-weight: 650;
|
||
letter-spacing: 0.04em;
|
||
color: var(--accent);
|
||
text-transform: none;
|
||
}
|
||
.propose-name {
|
||
font-size: 15px;
|
||
font-weight: 650;
|
||
}
|
||
.propose-output {
|
||
margin: 0;
|
||
font-size: 13px;
|
||
color: var(--text);
|
||
line-height: 1.45;
|
||
}
|
||
.propose-sync-hint,
|
||
.propose-plan-hint {
|
||
margin: 0;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
line-height: 1.4;
|
||
}
|
||
.propose-field.propose-field-id input {
|
||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||
letter-spacing: 0.01em;
|
||
}
|
||
.propose-field.is-stale-id input {
|
||
border-color: color-mix(in srgb, var(--danger) 55%, var(--border));
|
||
}
|
||
.propose-fields {
|
||
display: grid;
|
||
gap: 8px;
|
||
}
|
||
.propose-field {
|
||
display: grid;
|
||
gap: 4px;
|
||
font-size: 12px;
|
||
}
|
||
.propose-field-label {
|
||
color: var(--muted);
|
||
display: flex;
|
||
gap: 6px;
|
||
align-items: center;
|
||
}
|
||
.propose-req {
|
||
font-size: 10px;
|
||
color: var(--danger);
|
||
}
|
||
.propose-field.is-missing input {
|
||
border-color: color-mix(in srgb, var(--danger) 55%, var(--border));
|
||
}
|
||
.propose-field input {
|
||
height: var(--composer-control-h, 40px);
|
||
padding: 0 10px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
background: var(--surface);
|
||
color: var(--text);
|
||
}
|
||
.flow-steps {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
}
|
||
.flow-step {
|
||
display: grid;
|
||
grid-template-columns: 1.5rem 1fr;
|
||
grid-template-rows: auto auto;
|
||
column-gap: 8px;
|
||
row-gap: 2px;
|
||
padding: 8px 10px;
|
||
background: var(--surface-2, rgba(0, 0, 0, 0.04));
|
||
border-radius: 6px;
|
||
font-size: 13px;
|
||
border: 1px solid transparent;
|
||
}
|
||
.flow-step[data-run="current"] {
|
||
background: var(--surface);
|
||
border-color: var(--accent);
|
||
}
|
||
.flow-step[data-run="done"] {
|
||
opacity: 0.78;
|
||
}
|
||
.flow-run {
|
||
grid-column: 2;
|
||
font-size: 11px;
|
||
font-weight: 650;
|
||
color: var(--muted, #666);
|
||
}
|
||
.flow-step[data-run="current"] .flow-run {
|
||
color: var(--accent);
|
||
}
|
||
.flow-step[data-run="done"] .flow-run {
|
||
color: #15803d;
|
||
}
|
||
.flow-occ,
|
||
.flow-id {
|
||
margin-left: 6px;
|
||
color: var(--muted, #666);
|
||
font-size: 12px;
|
||
font-weight: 400;
|
||
}
|
||
.flow-occ-revise {
|
||
color: var(--text, #222);
|
||
}
|
||
.flow-order {
|
||
grid-row: 1 / -1;
|
||
align-self: center;
|
||
font-weight: 600;
|
||
color: var(--muted, #666);
|
||
}
|
||
.flow-name {
|
||
font-weight: 600;
|
||
}
|
||
.flow-params,
|
||
.flow-params-missing,
|
||
.flow-deps {
|
||
grid-column: 2;
|
||
font-size: 12px;
|
||
color: var(--muted, #666);
|
||
}
|
||
.flow-params-missing {
|
||
color: var(--danger, #b42318);
|
||
}
|
||
|
||
.board-panel {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: 10px 12px;
|
||
font-size: 12px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 14px;
|
||
}
|
||
.board-section h4 {
|
||
margin: 0 0 6px;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
}
|
||
.board-brief {
|
||
margin: 0;
|
||
padding: 8px;
|
||
background: var(--surface-2, rgba(0,0,0,0.04));
|
||
border-radius: 6px;
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
max-height: 180px;
|
||
overflow-y: auto;
|
||
font-size: 11px;
|
||
line-height: 1.45;
|
||
}
|
||
.board-tag-list {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
.board-tag-item {
|
||
border: 1px solid var(--border, #ddd);
|
||
border-radius: 6px;
|
||
padding: 8px;
|
||
}
|
||
.board-tag-head {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex-wrap: wrap;
|
||
}
|
||
.board-edit-btn { margin-left: auto; opacity: 0.7; }
|
||
.board-edit-btn:hover { opacity: 1; }
|
||
.board-badge {
|
||
font-size: 10px;
|
||
color: var(--accent);
|
||
flex-shrink: 0;
|
||
}
|
||
.board-tag-meta {
|
||
color: var(--muted);
|
||
font-size: 10px;
|
||
margin-top: 2px;
|
||
}
|
||
.board-tag-preview {
|
||
margin-top: 6px;
|
||
line-height: 1.4;
|
||
color: var(--text);
|
||
word-break: break-word;
|
||
}
|
||
.board-archived {
|
||
color: var(--muted);
|
||
margin: 0;
|
||
font-size: 11px;
|
||
}
|
||
.empty-sm {
|
||
color: var(--muted);
|
||
margin: 0;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.review-worker-set { display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; min-height: 0; }
|
||
.worker-set-section h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
|
||
.worker-set-section p { margin: 0; line-height: 1.5; }
|
||
.worker-set-cards { display: flex; flex-direction: column; gap: 8px; }
|
||
.worker-set-card {
|
||
border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: var(--surface);
|
||
}
|
||
.worker-set-card-head { font-weight: 600; margin-bottom: 4px; }
|
||
.worker-set-duty { line-height: 1.45; }
|
||
.worker-set-when { color: var(--muted); font-size: 11px; margin-top: 4px; }
|
||
.worker-set-gap { color: var(--warn); font-size: 11px; margin-top: 4px; }
|
||
.worker-set-pres { margin-top: 6px; font-size: 11px; }
|
||
.worker-set-pres-label, .worker-set-hint-label { color: var(--muted); margin-right: 4px; }
|
||
.worker-set-kv { margin: 4px 0 0; padding-left: 16px; }
|
||
.worker-set-list { margin: 0; padding-left: 18px; line-height: 1.5; }
|
||
.worker-set-open { color: var(--warn); }
|
||
.worker-set-hint-reason { color: var(--muted); font-size: 11px; margin-top: 4px; }
|
||
.worker-gap { color: var(--warn); font-size: 12px; }
|
||
.review-parse-error {
|
||
color: var(--danger);
|
||
font-size: 13px;
|
||
border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
|
||
background: color-mix(in srgb, var(--danger) 10%, var(--surface));
|
||
border-radius: 10px;
|
||
padding: 12px 14px;
|
||
line-height: 1.5;
|
||
}
|
||
.review-parse-error-title {
|
||
font-weight: 700;
|
||
font-size: 14px;
|
||
margin-bottom: 6px;
|
||
}
|
||
.review-parse-error-hint {
|
||
margin: 8px 0 0;
|
||
color: var(--muted);
|
||
font-size: 12px;
|
||
}
|
||
.review-raw-yaml summary { cursor: pointer; color: var(--muted); font-size: 11px; user-select: none; }
|
||
.review-raw-yaml pre { max-height: 160px; margin-top: 6px; }
|
||
|
||
.msg-assistant-row.msg.questions .msg-bubble:not(.msg-bubble-index) {
|
||
border: 2px solid color-mix(in srgb, var(--accent, #2a6) 55%, var(--border));
|
||
background: color-mix(in srgb, var(--accent, #2a6) 8%, var(--surface));
|
||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent, #2a6) 20%, transparent);
|
||
}
|
||
|
||
/* 询é®å¡ï¼å¯¹è¯æµé host å³å¡çï¼åä½å·¥ä½é¢ä¸å¥å£³ï¼è§ä¸æ¹ flatten è§å */
|
||
.questions-card-host {
|
||
--qcard-max: 48vh;
|
||
flex: 0 1 auto;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
padding: 0 16px 8px;
|
||
border-top: 1px solid var(--border);
|
||
background: var(--surface, #fff);
|
||
min-height: 0;
|
||
height: fit-content;
|
||
}
|
||
.questions-card-host[hidden] { display: none !important; }
|
||
.questions-card-host.is-open:not([hidden]) {
|
||
position: relative;
|
||
display: flex;
|
||
flex-direction: column;
|
||
max-height: var(--qcard-max);
|
||
overflow: hidden;
|
||
margin: 6px 0 0;
|
||
padding: 0;
|
||
border: 1px solid var(--border);
|
||
border-radius: 10px;
|
||
background: var(--surface, #fff);
|
||
transition: max-height 0.18s ease;
|
||
}
|
||
.questions-card-host.is-open.is-collapsed:not([hidden]) {
|
||
max-height: none;
|
||
}
|
||
.qcard-top {
|
||
flex: 0 0 auto;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 10px;
|
||
min-height: 18px;
|
||
margin: 0;
|
||
padding: 4px 12px 0;
|
||
border: none;
|
||
background: transparent;
|
||
cursor: pointer;
|
||
color: var(--muted);
|
||
user-select: none;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
.qcard-top-grip {
|
||
width: 28px;
|
||
height: 3px;
|
||
flex-shrink: 0;
|
||
border-radius: 999px;
|
||
background: color-mix(in srgb, var(--muted, #888) 35%, transparent);
|
||
}
|
||
.qcard-top:hover .qcard-top-grip {
|
||
background: color-mix(in srgb, var(--muted, #888) 55%, transparent);
|
||
}
|
||
.qcard-collapsed-meta {
|
||
display: none;
|
||
min-width: 0;
|
||
flex: 1;
|
||
font-size: 12px;
|
||
font-weight: 550;
|
||
line-height: 1.35;
|
||
color: var(--text);
|
||
text-align: left;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.questions-card-host.is-collapsed .qcard-top {
|
||
min-height: 44px;
|
||
padding: 0 12px;
|
||
justify-content: flex-start;
|
||
}
|
||
.questions-card-host.is-collapsed .qcard-top:hover .qcard-top-grip {
|
||
background: color-mix(in srgb, var(--muted, #888) 55%, transparent);
|
||
}
|
||
.questions-card-host.is-collapsed .qcard-collapsed-meta {
|
||
display: block;
|
||
}
|
||
.questions-card-host.is-collapsed .qcard-body,
|
||
.questions-card-host.is-collapsed .qcard-float {
|
||
display: none;
|
||
}
|
||
/* æ¬æµ®æ§ä»¶å±ï¼ä¸å ææ¡£æµé«åº¦ */
|
||
.qcard-float {
|
||
position: absolute;
|
||
inset: 0;
|
||
z-index: 2;
|
||
pointer-events: none;
|
||
}
|
||
.qcard-pager {
|
||
position: absolute;
|
||
top: 8px;
|
||
right: 8px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 2px;
|
||
padding: 2px 4px;
|
||
border-radius: 999px;
|
||
border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
|
||
background: color-mix(in srgb, var(--surface, #fff) 82%, transparent);
|
||
backdrop-filter: blur(8px);
|
||
-webkit-backdrop-filter: blur(8px);
|
||
box-shadow: 0 1px 3px color-mix(in srgb, #000 8%, transparent);
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
pointer-events: auto;
|
||
}
|
||
.qcard-page {
|
||
min-width: 2.4em;
|
||
text-align: center;
|
||
font-variant-numeric: tabular-nums;
|
||
font-weight: 600;
|
||
color: var(--text);
|
||
}
|
||
.qcard-nav {
|
||
border: none;
|
||
background: transparent;
|
||
border-radius: 999px;
|
||
width: 22px;
|
||
height: 22px;
|
||
cursor: pointer;
|
||
line-height: 1;
|
||
font-size: 14px;
|
||
padding: 0;
|
||
color: var(--muted);
|
||
}
|
||
.qcard-nav:hover:not(:disabled) {
|
||
background: color-mix(in srgb, var(--muted, #888) 12%, transparent);
|
||
color: var(--text);
|
||
}
|
||
.qcard-nav:disabled { opacity: 0.35; cursor: default; }
|
||
.qcard-skip {
|
||
position: absolute;
|
||
bottom: 8px;
|
||
right: 8px;
|
||
border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
|
||
background: color-mix(in srgb, var(--surface, #fff) 82%, transparent);
|
||
backdrop-filter: blur(8px);
|
||
-webkit-backdrop-filter: blur(8px);
|
||
box-shadow: 0 1px 3px color-mix(in srgb, #000 8%, transparent);
|
||
border-radius: 999px;
|
||
padding: 4px 10px;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
cursor: pointer;
|
||
pointer-events: auto;
|
||
}
|
||
.qcard-skip:hover {
|
||
color: var(--text);
|
||
border-color: var(--border-strong, #999);
|
||
}
|
||
.qcard-body {
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
padding: 10px 12px;
|
||
overflow: auto;
|
||
}
|
||
.questions-card-host.has-pager .qcard-body { padding-top: 12px; }
|
||
.questions-card-host.has-pager .qcard-pager { top: 4px; }
|
||
.questions-card-host.has-skip .qcard-body { padding-bottom: 40px; }
|
||
.qcard-q { margin-bottom: 0; }
|
||
.qcard-q + .qcard-q { margin-top: 14px; }
|
||
.qcard-assessment {
|
||
margin-bottom: 10px;
|
||
padding: 8px 10px;
|
||
border-left: 3px solid var(--border-strong, #c4b5a0);
|
||
background: color-mix(in srgb, var(--panel, #fff) 88%, var(--muted, #888) 12%);
|
||
font-size: 12.5px;
|
||
line-height: 1.5;
|
||
white-space: pre-wrap;
|
||
color: var(--text);
|
||
}
|
||
.qcard-optional-note {
|
||
margin: 0 0 8px;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
line-height: 1.4;
|
||
}
|
||
.qcard-prompt {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
margin-bottom: 8px;
|
||
line-height: 1.45;
|
||
white-space: pre-wrap;
|
||
}
|
||
.qcard-options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
|
||
.qcard-opt {
|
||
display: grid;
|
||
grid-template-columns: 36px 1fr;
|
||
gap: 8px;
|
||
align-items: start;
|
||
padding: 6px 8px;
|
||
border-radius: 8px;
|
||
border: 1px solid transparent;
|
||
}
|
||
.qcard-opt.is-selected {
|
||
border-color: color-mix(in srgb, var(--accent, #2a6) 45%, var(--border));
|
||
background: color-mix(in srgb, var(--accent, #2a6) 8%, var(--surface));
|
||
}
|
||
.qcard-letter {
|
||
width: 32px;
|
||
height: 28px;
|
||
border-radius: 6px;
|
||
border: 1px solid var(--border);
|
||
background: color-mix(in srgb, var(--surface, #fff) 80%, #ddd);
|
||
font-weight: 700;
|
||
font-size: 12px;
|
||
cursor: pointer;
|
||
}
|
||
.qcard-opt.is-selected .qcard-letter {
|
||
background: var(--accent, #2a6);
|
||
border-color: var(--accent, #2a6);
|
||
color: #fff;
|
||
}
|
||
.qcard-label {
|
||
min-height: 28px;
|
||
padding: 4px 6px;
|
||
border-radius: 6px;
|
||
font-size: 13px;
|
||
line-height: 1.45;
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
flex: 1;
|
||
line-height: 1.45;
|
||
outline: none;
|
||
}
|
||
.qcard-label:focus {
|
||
background: color-mix(in srgb, var(--surface, #fff) 70%, #e8e4dc);
|
||
box-shadow: inset 0 0 0 1px var(--border);
|
||
}
|
||
.qcard-label.is-readonly { color: var(--muted); }
|
||
.qcard-other-input {
|
||
width: 100%;
|
||
border: 1px solid var(--border);
|
||
border-radius: 6px;
|
||
padding: 6px 8px;
|
||
font-size: 13px;
|
||
background: var(--surface, #fff);
|
||
}
|
||
|
||
.composer-ask-banner {
|
||
margin: 0 0 10px;
|
||
padding: 10px 12px;
|
||
border-radius: 10px;
|
||
border: 1px solid color-mix(in srgb, var(--accent, #2a6) 40%, var(--border));
|
||
background: color-mix(in srgb, var(--accent, #2a6) 10%, var(--surface));
|
||
font-size: 13px;
|
||
line-height: 1.45;
|
||
}
|
||
.composer-ask-banner strong { display: block; margin-bottom: 4px; }
|
||
.skill-guide-runs { color: var(--muted); font-size: 11px; font-weight: normal; }
|
||
|
||
.worker-set-user-panel {
|
||
flex-shrink: 0; max-height: 45%; overflow-y: auto;
|
||
border-bottom: 1px solid var(--border); padding: 8px 10px; font-size: 12px;
|
||
}
|
||
.worker-set-user-panel[hidden] { display: none; }
|
||
|
||
.ws-user-view { display: flex; flex-direction: column; gap: 10px; }
|
||
.ws-section h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
|
||
.ws-section p { margin: 0; line-height: 1.5; }
|
||
.ws-slot-row { display: flex; flex-wrap: wrap; gap: 6px; }
|
||
.ws-slot-chip {
|
||
display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px;
|
||
font-size: 12px; border: 1px solid var(--border);
|
||
}
|
||
.ws-slot-chip.ws-slot-on { background: var(--accent-soft); border-color: transparent; }
|
||
.ws-slot-chip.ws-slot-off { opacity: 0.55; text-decoration: line-through; }
|
||
/* 产ç©ç»ÂæÂÂÃ¥ÂÂå±Â示 â 对齠qcard / flow-step / ws-badge */
|
||
.artifact-friendly { display: flex; flex-direction: column; gap: 10px; }
|
||
.artifact-list { margin: 0; padding-left: 18px; line-height: 1.5; }
|
||
.artifact-hero {
|
||
display: flex; flex-direction: column; gap: 8px;
|
||
padding: 10px 12px;
|
||
border-radius: 10px;
|
||
border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
|
||
background: color-mix(in srgb, var(--accent) 7%, var(--surface));
|
||
}
|
||
.artifact-block,
|
||
.artifact-friendly .ws-section {
|
||
padding: 6px 8px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
background: var(--surface);
|
||
}
|
||
.artifact-block h4,
|
||
.artifact-friendly .ws-section h4 {
|
||
margin: 0 0 6px;
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
color: var(--muted);
|
||
letter-spacing: 0.05em;
|
||
}
|
||
.artifact-chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
||
.artifact-chip {
|
||
display: inline-flex; align-items: center;
|
||
padding: 2px 8px; border-radius: 6px;
|
||
font-size: 12px; border: 1px solid var(--border);
|
||
background: var(--surface-2, rgba(0, 0, 0, 0.03));
|
||
}
|
||
.artifact-chip.mount {
|
||
background: var(--accent-soft);
|
||
border-color: transparent;
|
||
color: var(--accent);
|
||
}
|
||
.artifact-chip.muted { opacity: 0.8; color: var(--muted); }
|
||
.artifact-prose, .artifact-inline, .artifact-conclusion {
|
||
margin: 0;
|
||
font-family: var(--font-read);
|
||
font-size: 13.5px;
|
||
font-weight: 500;
|
||
line-height: 1.6;
|
||
color: #27272a;
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
}
|
||
.artifact-prose, .artifact-conclusion {
|
||
padding: 8px 10px;
|
||
border-radius: 8px;
|
||
background: var(--bg);
|
||
}
|
||
.artifact-brief {
|
||
margin: 0;
|
||
font-family: var(--font-read);
|
||
font-size: 15px;
|
||
font-weight: 600;
|
||
line-height: 1.5;
|
||
}
|
||
.artifact-kernel.qcard-assessment,
|
||
.artifact-kernel {
|
||
font-family: var(--font-read);
|
||
}
|
||
.artifact-kernel .artifact-prose,
|
||
.artifact-kernel .artifact-inline {
|
||
font-size: 14px;
|
||
line-height: 1.65;
|
||
}
|
||
.artifact-aside-label,
|
||
.af-panel > h4,
|
||
.artifact-block h4,
|
||
.artifact-friendly .ws-section h4 {
|
||
font-family: var(--font-ui);
|
||
}
|
||
.artifact-scalar { font-variant-numeric: tabular-nums; }
|
||
.artifact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
|
||
.artifact-card {
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
padding: 8px 10px;
|
||
background: var(--bg);
|
||
}
|
||
.artifact-card-title { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
|
||
.artifact-card-body { font-size: 13px; line-height: 1.45; }
|
||
.artifact-kv { display: flex; flex-direction: column; gap: 8px; }
|
||
.artifact-kv-row {
|
||
display: grid;
|
||
grid-template-columns: minmax(4.5rem, 26%) 1fr;
|
||
gap: 6px 10px;
|
||
align-items: start;
|
||
}
|
||
.artifact-kv-row.complex { grid-template-columns: 1fr; gap: 4px; }
|
||
.artifact-kv-key {
|
||
font-size: 11px; font-weight: 600; color: var(--muted);
|
||
padding-top: 2px;
|
||
}
|
||
.artifact-kv-row.complex .artifact-kv-key { margin-bottom: 2px; }
|
||
.artifact-kv-val { min-width: 0; font-size: 13px; line-height: 1.45; }
|
||
|
||
/* èªéåºå®ä¹è¡ï¼å¤å®½å¹¶æï¼ä¸å¤æ´ç»æè¡ââåè¡è§åï¼ä¸æåæ°æ½ç¾ */
|
||
.af-def-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
width: 100%;
|
||
min-width: 0;
|
||
}
|
||
.af-def {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: baseline;
|
||
column-gap: 12px;
|
||
row-gap: 3px;
|
||
min-width: 0;
|
||
padding-bottom: 8px;
|
||
border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
|
||
}
|
||
.af-def:last-child {
|
||
border-bottom: none;
|
||
padding-bottom: 0;
|
||
}
|
||
.af-def-k {
|
||
flex: 0 1 auto;
|
||
max-width: 100%;
|
||
font-size: 11px;
|
||
font-weight: 650;
|
||
color: var(--muted);
|
||
line-height: 1.35;
|
||
}
|
||
.af-def-v {
|
||
flex: 1 1 12rem;
|
||
min-width: min(100%, 12rem);
|
||
font-size: 13px;
|
||
line-height: 1.55;
|
||
color: var(--text);
|
||
word-break: break-word;
|
||
}
|
||
.af-def-v .artifact-prose,
|
||
.af-def-v .artifact-inline {
|
||
margin: 0;
|
||
font-size: inherit;
|
||
line-height: inherit;
|
||
max-width: none;
|
||
}
|
||
.af-def-list > .af-section {
|
||
margin: 4px 0 10px;
|
||
padding-top: 4px;
|
||
border-bottom: none;
|
||
}
|
||
.af-def-list > .af-section .af-section-title {
|
||
margin-bottom: 8px;
|
||
}
|
||
.af-split-product .af-def-v {
|
||
flex-basis: 14rem;
|
||
}
|
||
|
||
/* ç¾åÂÂæ¯Âè¿Â度æÂ¡ */
|
||
.pct-meter {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 5px;
|
||
padding: 8px 10px;
|
||
border-radius: 8px;
|
||
background: var(--bg);
|
||
border: 1px solid var(--border);
|
||
}
|
||
.pct-meter-head {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: baseline;
|
||
gap: 8px;
|
||
font-size: 12px;
|
||
}
|
||
.pct-meter-label { font-weight: 600; color: var(--muted); }
|
||
.pct-meter-value {
|
||
font-weight: 700;
|
||
font-variant-numeric: tabular-nums;
|
||
font-size: 13px;
|
||
}
|
||
.pct-meter-track {
|
||
height: 8px;
|
||
border-radius: 999px;
|
||
background: color-mix(in srgb, var(--border) 70%, transparent);
|
||
overflow: hidden;
|
||
}
|
||
.pct-meter-track > i {
|
||
display: block;
|
||
height: 100%;
|
||
border-radius: inherit;
|
||
transition: width 0.2s ease;
|
||
}
|
||
.pct-meter.tone-low .pct-meter-value { color: var(--danger); }
|
||
.pct-meter.tone-low .pct-meter-track > i { background: var(--danger); }
|
||
.pct-meter.tone-mid .pct-meter-value { color: var(--warn); }
|
||
.pct-meter.tone-mid .pct-meter-track > i { background: var(--warn); }
|
||
.pct-meter.tone-high .pct-meter-value { color: var(--ok); }
|
||
.pct-meter.tone-high .pct-meter-track > i { background: var(--ok); }
|
||
|
||
.artifact-scores { display: flex; flex-direction: column; gap: 8px; }
|
||
.artifact-score-note, .artifact-weak {
|
||
margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4;
|
||
}
|
||
.artifact-weak { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
||
.artifact-diag { display: flex; flex-direction: column; gap: 8px; }
|
||
.artifact-basis, .artifact-fact {
|
||
margin: 0;
|
||
font-size: 12.5px;
|
||
line-height: 1.5;
|
||
padding: 6px 8px;
|
||
border-radius: 6px;
|
||
background: color-mix(in srgb, var(--surface) 88%, var(--muted) 12%);
|
||
}
|
||
.artifact-fact.pending {
|
||
border-left: 3px solid var(--warn);
|
||
background: color-mix(in srgb, #fef9c3 55%, var(--surface));
|
||
}
|
||
.artifact-aside-label {
|
||
display: inline-block;
|
||
margin-right: 6px;
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
color: var(--muted);
|
||
}
|
||
.artifact-kernel.qcard-assessment { margin: 0; }
|
||
.artifact-subgroups { display: flex; flex-direction: column; gap: 8px; }
|
||
.artifact-subgroup {
|
||
padding: 8px 10px;
|
||
border-radius: 8px;
|
||
background: var(--bg);
|
||
border: 1px solid transparent;
|
||
}
|
||
.artifact-subgroup:hover { border-color: var(--border); }
|
||
.artifact-subgroup-title {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--muted);
|
||
margin-bottom: 6px;
|
||
}
|
||
.artifact-body-specialty { display: contents; }
|
||
.artifact-probe-lead {
|
||
margin: 0 0 10px;
|
||
font-size: 13px;
|
||
line-height: 1.45;
|
||
color: var(--muted);
|
||
}
|
||
.artifact-probe-q + .artifact-probe-q { margin-top: 14px; }
|
||
.artifact-probe-opts { margin-top: 6px; }
|
||
.artifact-probe-opts .qcard-opt { pointer-events: none; }
|
||
.artifact-q-idx {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 22px;
|
||
height: 22px;
|
||
margin-right: 8px;
|
||
border-radius: 6px;
|
||
background: var(--accent-soft);
|
||
color: var(--accent);
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
vertical-align: -2px;
|
||
}
|
||
.artifact-order-list {
|
||
list-style: none; margin: 0; padding: 0;
|
||
display: flex; flex-direction: column; gap: 6px;
|
||
}
|
||
.artifact-order-list > li {
|
||
display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
|
||
padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px;
|
||
font-size: 13px; background: var(--bg);
|
||
}
|
||
.artifact-order-list > li.is-history {
|
||
border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
|
||
background: color-mix(in srgb, var(--accent) 8%, var(--surface));
|
||
}
|
||
.artifact-order-idx {
|
||
display: inline-flex; align-items: center; justify-content: center;
|
||
min-width: 1.4rem; height: 1.4rem; padding: 0 4px;
|
||
border-radius: 999px; font-size: 11px; font-weight: 700;
|
||
background: var(--accent-soft);
|
||
color: var(--accent);
|
||
}
|
||
.artifact-order-ref { font-weight: 600; }
|
||
.artifact-raw {
|
||
margin-top: 10px;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
}
|
||
.artifact-raw > summary {
|
||
cursor: pointer; user-select: none; padding: 4px 0;
|
||
}
|
||
.artifact-raw > summary:hover { color: var(--text); }
|
||
.artifact-raw .json-pretty { margin-top: 6px; max-height: min(40vh, 360px); }
|
||
|
||
/* æé tag / æå¹³é¢å
å±ï¼ä¸è¡è·¯å¾ + ä¸èµ·ç¼åæ */
|
||
.artifact-crumb {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 6px 10px;
|
||
padding: 4px 0 8px;
|
||
border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
|
||
margin-bottom: 4px;
|
||
}
|
||
.artifact-crumb-path {
|
||
display: inline-flex;
|
||
flex-wrap: wrap;
|
||
align-items: baseline;
|
||
gap: 4px 6px;
|
||
min-width: 0;
|
||
font-size: 12px;
|
||
line-height: 1.35;
|
||
}
|
||
.artifact-crumb-root {
|
||
color: var(--muted);
|
||
font-weight: 500;
|
||
}
|
||
.artifact-crumb-sep {
|
||
color: var(--muted);
|
||
opacity: 0.55;
|
||
font-weight: 400;
|
||
}
|
||
.artifact-crumb-leaf {
|
||
color: var(--text);
|
||
font-weight: 650;
|
||
}
|
||
.artifact-raw--quiet {
|
||
margin: 0 0 0 auto;
|
||
font-size: 11px;
|
||
}
|
||
.artifact-raw--quiet > summary {
|
||
padding: 0;
|
||
opacity: 0.65;
|
||
}
|
||
.artifact-raw--quiet > summary:hover {
|
||
opacity: 1;
|
||
}
|
||
.artifact-raw--quiet .json-pretty {
|
||
margin-top: 6px;
|
||
max-height: min(28vh, 240px);
|
||
font-size: 11px;
|
||
}
|
||
.artifact-body-root > .artifact-kv,
|
||
.artifact-body-root > .artifact-cards { margin-top: 2px; }
|
||
|
||
.ws-context-order .ws-order-hint { margin: 0.25rem 0 0.5rem; font-size: 0.85em; }
|
||
.ctx-order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
|
||
.ctx-order-row {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
padding: 6px 8px;
|
||
border: 1px solid var(--border, #ddd);
|
||
border-radius: 6px;
|
||
background: var(--surface-2, transparent);
|
||
}
|
||
.ctx-order-line { flex: 1 1 12rem; font-size: 0.9em; line-height: 1.4; }
|
||
.ctx-order-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
|
||
.btn-mini {
|
||
font: inherit;
|
||
font-size: 0.8em;
|
||
padding: 2px 8px;
|
||
border-radius: 4px;
|
||
border: 1px solid var(--border, #ccc);
|
||
background: var(--surface, #fff);
|
||
cursor: pointer;
|
||
}
|
||
.btn-mini:hover { border-color: var(--accent, #666); }
|
||
.ctx-order-proj {
|
||
font: inherit;
|
||
font-size: 0.8em;
|
||
padding: 2px 4px;
|
||
border-radius: 4px;
|
||
border: 1px solid var(--border, #ccc);
|
||
max-width: 6.5rem;
|
||
}
|
||
.ctx-order-row.ctx-order-history {
|
||
border-color: var(--accent, #888);
|
||
background: var(--accent-soft, rgba(0, 0, 0, 0.04));
|
||
}
|
||
.ws-muted { color: var(--muted); font-size: 11px; }
|
||
.ws-headline p { font-weight: 500; }
|
||
.ws-list, .ws-kv { margin: 0; padding-left: 18px; line-height: 1.5; }
|
||
.ws-worker-cards { display: flex; flex-direction: column; gap: 8px; }
|
||
.ws-worker-card {
|
||
border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: var(--surface);
|
||
}
|
||
.ws-worker-card.gap { border-color: var(--warn); }
|
||
.ws-worker-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
|
||
.ws-worker-order {
|
||
display: inline-flex; align-items: center; justify-content: center;
|
||
width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft);
|
||
color: var(--accent); font-size: 11px; font-weight: 700;
|
||
}
|
||
.ws-worker-name { font-weight: 600; flex: 1; }
|
||
.ws-worker-id { font-size: 11px; color: var(--muted); display: block; margin-bottom: 4px; }
|
||
.ws-badge { font-size: 10px; padding: 1px 6px; border-radius: 4px; }
|
||
.ws-badge-ok { background: #dcfce7; color: var(--ok); }
|
||
.ws-badge-warn { background: #fef9c3; color: var(--warn); }
|
||
.ws-badge-review { background: #e0f2fe; color: #0369a1; }
|
||
.ws-badge-continue { background: #f3f4f6; color: #4b5563; }
|
||
.ws-row { display: grid; grid-template-columns: 72px 1fr; gap: 6px; margin: 4px 0; line-height: 1.45; }
|
||
.ws-label { color: var(--muted); font-size: 11px; }
|
||
.ws-gap { color: var(--warn); font-size: 11px; margin: 4px 0; }
|
||
.ws-pres { margin: 6px 0; }
|
||
.ws-context-block { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
|
||
.ws-context-tier { background: var(--bg); border-radius: 6px; padding: 6px 8px; }
|
||
.ws-tag-order { margin: 4px 0 0; padding-left: 20px; line-height: 1.55; }
|
||
.ws-tag-order li { margin: 2px 0; }
|
||
.ws-tag-order code { font-size: 11px; }
|
||
.ws-tag-note { display: block; color: var(--muted); font-size: 10px; margin-left: 2px; }
|
||
.ws-tag-filled { color: var(--ok); margin-left: 4px; font-size: 10px; }
|
||
.ws-tag-pending { color: var(--muted); margin-left: 4px; font-size: 10px; }
|
||
.ws-tag-empty { color: var(--muted); font-size: 11px; margin-top: 2px; }
|
||
.ws-context-hint { margin: 0 0 0.5rem; font-size: 12px; }
|
||
.ws-context-cards { display: flex; flex-direction: column; gap: 8px; }
|
||
.ws-context-card {
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
padding: 8px 10px;
|
||
background: var(--panel, #fff);
|
||
}
|
||
.ws-context-card.kind-fixed { border-left: 3px solid var(--accent); }
|
||
.ws-context-card.kind-resident { border-left: 3px solid #0d9488; }
|
||
.ws-context-card.kind-board { border-left: 3px solid #94a3b8; }
|
||
.ws-context-card-head {
|
||
display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px;
|
||
}
|
||
.ws-context-card-title { font-weight: 600; flex: 1; }
|
||
.ws-context-preview {
|
||
margin: 0 0 6px; font-size: 12px; color: var(--text); line-height: 1.45;
|
||
white-space: pre-wrap; max-height: 4.5em; overflow: hidden;
|
||
}
|
||
.ws-mount-row {
|
||
display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-bottom: 4px;
|
||
}
|
||
.ws-mount-summary { font-size: 13px; font-weight: 500; }
|
||
.ws-mount-chips { display: flex; flex-wrap: wrap; gap: 4px; }
|
||
.ws-mount-chip {
|
||
display: inline-flex; align-items: center; gap: 4px;
|
||
font-size: 11px; padding: 2px 7px; border-radius: 4px;
|
||
background: var(--bg); border: 1px solid var(--border);
|
||
}
|
||
.ws-mount-how { color: var(--muted); font-size: 10px; }
|
||
.ws-badge-fixed { background: #e0e7ff; color: #3730a3; }
|
||
.ws-badge-resident { background: #ccfbf1; color: #0f766e; }
|
||
.ws-badge-board { background: #f1f5f9; color: #475569; }
|
||
.ws-badge-focus {
|
||
background: #fef3c7;
|
||
color: #92400e;
|
||
font-weight: 700;
|
||
}
|
||
.ws-focus-banner {
|
||
border: 1px solid #f59e0b;
|
||
border-radius: 10px;
|
||
padding: 10px 12px;
|
||
background: linear-gradient(180deg, #fffbeb 0%, var(--panel, #fff) 100%);
|
||
box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12);
|
||
}
|
||
.ws-focus-banner-head {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin-bottom: 6px;
|
||
}
|
||
.ws-focus-mode {
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.02em;
|
||
padding: 2px 8px;
|
||
border-radius: 999px;
|
||
background: #f59e0b;
|
||
color: #111827;
|
||
}
|
||
.ws-focus-label { font-weight: 700; font-size: 15px; }
|
||
.ws-focus-id { font-size: 11px; color: var(--muted); }
|
||
.ws-focus-hint {
|
||
margin: 0 0 8px;
|
||
font-size: 12px;
|
||
color: #92400e;
|
||
line-height: 1.45;
|
||
}
|
||
.ws-focus-body-text,
|
||
.ws-focus-body-json {
|
||
margin: 0;
|
||
font-size: 12px;
|
||
line-height: 1.5;
|
||
white-space: pre-wrap;
|
||
}
|
||
.ws-context-card.ws-context-focus,
|
||
.ws-worker-card.ws-worker-focus {
|
||
border-color: #f59e0b;
|
||
box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
|
||
background: #fffbeb;
|
||
}
|
||
.ws-context-card.ws-dimmed,
|
||
.ws-worker-card.ws-dimmed {
|
||
opacity: 0.45;
|
||
}
|
||
.ws-unit-current {
|
||
background: #fffbeb;
|
||
border-radius: 6px;
|
||
padding: 4px 6px !important;
|
||
border: 1px solid #fcd34d;
|
||
}
|
||
.ws-section-focus-context h4 {
|
||
color: #92400e;
|
||
}
|
||
.ws-writes { margin-top: 6px; line-height: 1.6; }
|
||
.ws-writes code { font-size: 11px; margin-right: 4px; }
|
||
.ws-inferred { color: var(--muted); font-size: 10px; margin-top: 4px; font-style: italic; }
|
||
.ws-flow { display: flex; flex-direction: column; gap: 4px; }
|
||
.ws-flow-edge { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; line-height: 1.5; }
|
||
.ws-flow-arrow { color: var(--muted); }
|
||
.ws-task-list { list-style: none; margin: 0; padding: 0; }
|
||
.ws-task { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--border); }
|
||
.ws-task:last-child { border-bottom: none; }
|
||
.ws-task-status { font-size: 10px; padding: 1px 5px; border-radius: 4px; background: var(--bg); }
|
||
.ws-task-filled .ws-task-status { color: var(--ok); }
|
||
.ws-task-skipped .ws-task-status { color: var(--muted); }
|
||
.ws-task-planned .ws-task-status { color: var(--accent); }
|
||
.ws-open { color: var(--warn); }
|
||
|
||
/* Floating peek: single entry, no backdrop, drag via header;
|
||
edges = width/height only, corners = aspect-locked */
|
||
.msg-peek-panel {
|
||
position: fixed;
|
||
z-index: 1100;
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: min(680px, 92vw);
|
||
height: min(82vh, 760px);
|
||
max-height: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
background: var(--surface, #fff);
|
||
color: var(--text);
|
||
border: 1px solid var(--border);
|
||
border-radius: 10px;
|
||
box-shadow: 0 10px 36px rgba(0, 0, 0, 0.16);
|
||
overflow: hidden;
|
||
box-sizing: border-box;
|
||
}
|
||
.msg-peek-panel[hidden] { display: none !important; }
|
||
.msg-peek-panel.is-resizing {
|
||
user-select: none;
|
||
}
|
||
.msg-peek-head {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 10px;
|
||
padding: 10px 12px;
|
||
border-bottom: 1px solid var(--border);
|
||
background: color-mix(in srgb, var(--surface, #fff) 92%, var(--bg, #f5f5f5));
|
||
cursor: grab;
|
||
user-select: none;
|
||
touch-action: none;
|
||
flex: 0 0 auto;
|
||
}
|
||
.msg-peek-panel.is-dragging .msg-peek-head { cursor: grabbing; }
|
||
.msg-peek-head-text {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
.msg-peek-title {
|
||
margin: 0;
|
||
font-size: 14px;
|
||
font-weight: 650;
|
||
line-height: 1.35;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.msg-peek-subtitle {
|
||
margin: 3px 0 0;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
line-height: 1.35;
|
||
overflow: hidden;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
}
|
||
.msg-peek-close {
|
||
position: relative;
|
||
z-index: 3;
|
||
flex: 0 0 auto;
|
||
width: 28px;
|
||
height: 28px;
|
||
margin: -2px -4px 0 0;
|
||
border: none;
|
||
border-radius: 6px;
|
||
background: transparent;
|
||
color: var(--muted);
|
||
font-size: 18px;
|
||
line-height: 1;
|
||
cursor: pointer;
|
||
}
|
||
.msg-peek-close:hover {
|
||
background: var(--bg, #f3f3f3);
|
||
color: var(--text);
|
||
}
|
||
.msg-peek-close:focus-visible {
|
||
outline: 2px solid var(--accent, #2563eb);
|
||
outline-offset: 1px;
|
||
}
|
||
.msg-peek-body {
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
padding: 12px 14px 16px;
|
||
font-size: 13px;
|
||
line-height: 1.5;
|
||
}
|
||
.msg-peek-body .md-pre,
|
||
.msg-peek-body .json-pretty,
|
||
.msg-peek-body .review-feed-plain,
|
||
.msg-peek-body pre {
|
||
max-width: 100%;
|
||
overflow-x: hidden;
|
||
overflow-y: visible;
|
||
white-space: pre-wrap;
|
||
overflow-wrap: anywhere;
|
||
word-break: break-word;
|
||
}
|
||
.msg-peek-body .md-pre code,
|
||
.msg-peek-body .json-pretty code,
|
||
.msg-peek-body pre code {
|
||
white-space: inherit;
|
||
overflow-wrap: inherit;
|
||
word-break: inherit;
|
||
}
|
||
.msg-peek-resize {
|
||
position: absolute;
|
||
touch-action: none;
|
||
z-index: 2;
|
||
}
|
||
.msg-peek-resize--n {
|
||
top: 0;
|
||
left: 14px;
|
||
right: 14px;
|
||
height: 6px;
|
||
cursor: ns-resize;
|
||
}
|
||
.msg-peek-resize--s {
|
||
bottom: 0;
|
||
left: 14px;
|
||
right: 14px;
|
||
height: 6px;
|
||
cursor: ns-resize;
|
||
}
|
||
.msg-peek-resize--e {
|
||
right: 0;
|
||
top: 14px;
|
||
bottom: 14px;
|
||
width: 6px;
|
||
cursor: ew-resize;
|
||
}
|
||
.msg-peek-resize--w {
|
||
left: 0;
|
||
top: 14px;
|
||
bottom: 14px;
|
||
width: 6px;
|
||
cursor: ew-resize;
|
||
}
|
||
.msg-peek-resize--nw,
|
||
.msg-peek-resize--ne,
|
||
.msg-peek-resize--sw,
|
||
.msg-peek-resize--se {
|
||
width: 14px;
|
||
height: 14px;
|
||
z-index: 3;
|
||
}
|
||
.msg-peek-resize--nw { top: 0; left: 0; cursor: nwse-resize; }
|
||
.msg-peek-resize--ne { top: 0; right: 0; cursor: nesw-resize; }
|
||
.msg-peek-resize--sw { bottom: 0; left: 0; cursor: nesw-resize; }
|
||
.msg-peek-resize--se { bottom: 0; right: 0; cursor: nwse-resize; }
|
||
.msg-peek-resize--nw::after,
|
||
.msg-peek-resize--ne::after,
|
||
.msg-peek-resize--sw::after,
|
||
.msg-peek-resize--se::after {
|
||
content: "";
|
||
position: absolute;
|
||
width: 9px;
|
||
height: 9px;
|
||
border: 2px solid color-mix(in srgb, var(--muted, #888) 70%, transparent);
|
||
pointer-events: none;
|
||
}
|
||
.msg-peek-resize--nw::after {
|
||
top: 3px;
|
||
left: 3px;
|
||
border-right: none;
|
||
border-bottom: none;
|
||
border-radius: 2px 0 0 0;
|
||
}
|
||
.msg-peek-resize--ne::after {
|
||
top: 3px;
|
||
right: 3px;
|
||
border-left: none;
|
||
border-bottom: none;
|
||
border-radius: 0 2px 0 0;
|
||
}
|
||
.msg-peek-resize--sw::after {
|
||
bottom: 3px;
|
||
left: 3px;
|
||
border-right: none;
|
||
border-top: none;
|
||
border-radius: 0 0 0 2px;
|
||
}
|
||
.msg-peek-resize--se::after {
|
||
right: 3px;
|
||
bottom: 3px;
|
||
border-left: none;
|
||
border-top: none;
|
||
border-radius: 0 0 2px 0;
|
||
}
|
||
.msg-peek-panel.is-resizing .msg-peek-resize--nw::after,
|
||
.msg-peek-panel.is-resizing .msg-peek-resize--ne::after,
|
||
.msg-peek-panel.is-resizing .msg-peek-resize--sw::after,
|
||
.msg-peek-panel.is-resizing .msg-peek-resize--se::after {
|
||
border-color: var(--accent, #2563eb);
|
||
}
|
||
.msg-peek-body .json-pretty,
|
||
.msg-peek-body .review-feed-plain,
|
||
.msg-peek-body .artifact-raw .json-pretty,
|
||
.msg-peek-body .artifact-raw--quiet .json-pretty,
|
||
.msg-peek-body .msg-thinking-body,
|
||
.msg-peek-body .msg-play-process .msg-body,
|
||
.msg-peek-body .dictate-product-body {
|
||
max-height: none;
|
||
}
|
||
.msg-peek-body .artifact-compact-body {
|
||
max-height: none;
|
||
overflow: visible;
|
||
}
|
||
.msg-peek-body .artifact-compact-list {
|
||
max-width: none;
|
||
}
|
||
@media (max-width: 640px) {
|
||
.msg-peek-panel {
|
||
width: min(100vw - 16px, 92vw);
|
||
height: min(78vh, 720px);
|
||
}
|
||
}
|
||
|
||
/* Context menu — fixed to viewport; follow cursor via placeMenu */
|
||
menu.context-menu,
|
||
.context-menu {
|
||
position: fixed;
|
||
z-index: 1200;
|
||
inset: auto;
|
||
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);
|
||
display: block;
|
||
box-sizing: border-box;
|
||
}
|
||
menu.context-menu[hidden],
|
||
.context-menu[hidden] {
|
||
display: none !important;
|
||
}
|
||
.context-menu-item {
|
||
display: block; width: 100%; text-align: left;
|
||
border: none; background: transparent; padding: 8px 12px;
|
||
font-size: 13px; cursor: pointer; border-radius: 4px;
|
||
}
|
||
.context-menu-item[hidden] { display: none; }
|
||
.context-menu-item:hover { background: var(--bg); }
|
||
.context-menu-item:disabled {
|
||
opacity: 0.45;
|
||
cursor: not-allowed;
|
||
}
|
||
.context-menu-item:disabled:hover { background: transparent; }
|
||
.context-menu-separator-before { border-top: 1px solid var(--border); }
|
||
.context-menu-danger { color: var(--danger); }
|
||
.context-menu-danger:hover { background: #fef2f2; }
|
||
|
||
/* Agent panel */
|
||
.agent-focus { padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 12px; flex-shrink: 0; min-width: 0; }
|
||
.agent-focus-who { font-weight: 600; font-family: var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.agent-focus-action { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
|
||
.agent-focus-detail { margin-top: 2px; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.35; }
|
||
#rail-panel-log .tool-trace { max-height: 30%; overflow: auto; }
|
||
.tool-trace { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 12px; }
|
||
.tool-trace-item { padding: 4px 0; border-bottom: 1px dashed var(--border); }
|
||
.tool-trace-item:last-child { border-bottom: none; }
|
||
.tool-trace-name { font-family: ui-monospace, monospace; font-weight: 600; color: var(--accent); }
|
||
.agent-timeline { flex: 1; overflow-y: auto; padding: 8px 12px; font-size: 12px; min-height: 0; }
|
||
.timeline-item { padding: 6px 0; border-bottom: 1px solid var(--border); }
|
||
.timeline-empty { color: var(--muted); }
|
||
|
||
/* Composer — 左汉堡 / 输入 / 发送;菜单向上弹出不被裁切 */
|
||
.composer {
|
||
border-top: 1px solid var(--border);
|
||
padding: 6px var(--workspace-pad-x, 16px) 8px;
|
||
min-height: var(--composer-min);
|
||
overflow: visible;
|
||
background: var(--bg);
|
||
flex-shrink: 0;
|
||
position: relative;
|
||
z-index: 20;
|
||
display: flex;
|
||
flex-direction: row;
|
||
flex-wrap: wrap;
|
||
align-items: flex-end;
|
||
gap: 8px;
|
||
}
|
||
.preference-review {
|
||
flex: 1 1 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
margin-bottom: 4px;
|
||
}
|
||
.preference-review[hidden] {
|
||
display: none !important;
|
||
}
|
||
.preference-review-card {
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
padding: 10px 12px;
|
||
background: var(--surface, #fff);
|
||
}
|
||
.preference-review-head {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: baseline;
|
||
gap: 8px;
|
||
margin-bottom: 6px;
|
||
}
|
||
.preference-review-hint {
|
||
font-size: 12px;
|
||
color: var(--muted, #71717a);
|
||
}
|
||
.preference-review-content {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
resize: vertical;
|
||
min-height: 64px;
|
||
font: inherit;
|
||
padding: 8px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 6px;
|
||
background: var(--bg);
|
||
color: inherit;
|
||
}
|
||
.preference-review-actions {
|
||
display: flex;
|
||
gap: 8px;
|
||
margin-top: 8px;
|
||
}
|
||
.composer:has(.composer-more-menu[open]) {
|
||
z-index: 120;
|
||
}
|
||
.composer > .status {
|
||
flex: 0 0 auto;
|
||
align-self: center;
|
||
min-width: 0;
|
||
}
|
||
.composer:has(.composer-mode-chip) > .status,
|
||
.composer:has(.composer-input-shell) > .status {
|
||
display: none;
|
||
}
|
||
#composer-main {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
min-height: 0;
|
||
max-height: min(50vh, 420px);
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
}
|
||
#composer-main:has(.composer-more-menu[open]) {
|
||
overflow: visible;
|
||
}
|
||
.main-stack:has(.composer-more-menu[open]) {
|
||
overflow: visible;
|
||
}
|
||
/* å¯ä¸æè¾¹ï¼è¾å
¥ + æä½åæ¡ */
|
||
.composer-input-shell {
|
||
position: relative;
|
||
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 {
|
||
position: absolute;
|
||
right: 6px;
|
||
bottom: 4px;
|
||
z-index: 3;
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
margin: 0;
|
||
padding: 0;
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transition: opacity 0.14s ease;
|
||
}
|
||
.composer-input-shell:hover > .composer-shell-actions,
|
||
.composer-shell-actions:focus-within {
|
||
opacity: 0.8;
|
||
pointer-events: auto;
|
||
}
|
||
.composer-shell-actions:hover {
|
||
opacity: 0.85;
|
||
}
|
||
@media (hover: none) {
|
||
.composer-shell-actions {
|
||
opacity: 0.8;
|
||
pointer-events: auto;
|
||
}
|
||
}
|
||
.persona-picker-host {
|
||
display: flex;
|
||
align-items: center;
|
||
position: relative;
|
||
margin-right: 2px;
|
||
}
|
||
.persona-picker-host[hidden] {
|
||
display: none !important;
|
||
}
|
||
.persona-menu {
|
||
position: relative;
|
||
}
|
||
.persona-menu > summary {
|
||
list-style: none;
|
||
cursor: pointer;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
max-width: 11rem;
|
||
padding: 5px 10px;
|
||
border-radius: 6px;
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--muted);
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
line-height: 1.2;
|
||
}
|
||
.persona-menu > summary::-webkit-details-marker { display: none; }
|
||
.persona-menu > summary:hover,
|
||
.persona-menu[open] > summary {
|
||
color: var(--text);
|
||
background: var(--accent-soft);
|
||
}
|
||
.persona-menu-sum-label {
|
||
opacity: 0.7;
|
||
flex-shrink: 0;
|
||
}
|
||
.persona-menu-sum-name {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
color: var(--text);
|
||
}
|
||
.persona-menu-panel {
|
||
position: absolute;
|
||
top: calc(100% + 6px);
|
||
left: 0;
|
||
z-index: 50;
|
||
width: min(320px, 88vw);
|
||
max-height: min(420px, 70vh);
|
||
overflow: auto;
|
||
padding: 8px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 10px;
|
||
background: var(--surface);
|
||
box-shadow: 0 12px 32px color-mix(in srgb, var(--text) 14%, transparent);
|
||
}
|
||
.persona-menu-head {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
margin-bottom: 6px;
|
||
padding: 0 4px 6px;
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
.persona-menu-head-title {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--muted);
|
||
}
|
||
.persona-menu-add {
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--accent);
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
padding: 2px 6px;
|
||
border-radius: 4px;
|
||
}
|
||
.persona-menu-add:hover {
|
||
background: var(--accent-soft);
|
||
}
|
||
.persona-card {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
width: 100%;
|
||
padding: 8px;
|
||
margin: 0 0 4px;
|
||
border: 1px solid transparent;
|
||
border-radius: 8px;
|
||
background: transparent;
|
||
text-align: left;
|
||
cursor: pointer;
|
||
color: var(--text);
|
||
}
|
||
.persona-card:hover {
|
||
background: color-mix(in srgb, var(--text) 5%, transparent);
|
||
}
|
||
.persona-card.is-active {
|
||
border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
|
||
background: var(--accent-soft);
|
||
}
|
||
.persona-card-name {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
line-height: 1.3;
|
||
}
|
||
.persona-card-desc {
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
line-height: 1.4;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
white-space: pre-wrap;
|
||
}
|
||
.persona-card-bind {
|
||
margin-top: 6px;
|
||
padding-top: 6px;
|
||
border-top: 1px solid var(--border);
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
}
|
||
.persona-card-bind-name {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
line-height: 1.3;
|
||
}
|
||
.persona-card-bind-sum {
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
line-height: 1.4;
|
||
white-space: pre-wrap;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 8;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
}
|
||
.persona-card-actions {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
margin-top: 2px;
|
||
}
|
||
.persona-card-actions button {
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--muted);
|
||
font-size: 11px;
|
||
padding: 2px 4px;
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
}
|
||
.persona-card-actions button:hover {
|
||
color: var(--text);
|
||
background: color-mix(in srgb, var(--text) 8%, transparent);
|
||
}
|
||
.persona-edit {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
padding: 8px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
margin-bottom: 4px;
|
||
background: var(--bg, var(--surface));
|
||
}
|
||
.persona-edit input,
|
||
.persona-edit textarea {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
border: 1px solid var(--border);
|
||
border-radius: 6px;
|
||
padding: 6px 8px;
|
||
background: var(--surface);
|
||
color: var(--text);
|
||
font: inherit;
|
||
font-size: 13px;
|
||
}
|
||
.persona-edit textarea {
|
||
min-height: 72px;
|
||
resize: vertical;
|
||
}
|
||
.persona-edit-actions {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
gap: 6px;
|
||
}
|
||
.persona-edit-actions .btn-sm {
|
||
font-size: 12px;
|
||
}
|
||
.directive-ac-popup {
|
||
position: absolute;
|
||
left: 8px;
|
||
bottom: calc(100% + 6px);
|
||
z-index: 40;
|
||
min-width: 220px;
|
||
max-width: min(360px, 90vw);
|
||
max-height: 220px;
|
||
overflow: auto;
|
||
padding: 4px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
background: var(--surface);
|
||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
||
}
|
||
.directive-ac-item {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
gap: 2px;
|
||
width: 100%;
|
||
padding: 6px 8px;
|
||
border: 0;
|
||
border-radius: 6px;
|
||
background: transparent;
|
||
color: var(--text);
|
||
text-align: left;
|
||
cursor: pointer;
|
||
}
|
||
.directive-ac-item:hover,
|
||
.directive-ac-item.is-active {
|
||
background: var(--hover, rgba(127, 127, 127, 0.12));
|
||
}
|
||
.directive-ac-item code {
|
||
font-size: 12px;
|
||
}
|
||
.directive-ac-hint {
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
}
|
||
|
||
/* 指令高亮:镜像层 + 透明字 + 悬停预览 */
|
||
.composer-input-field {
|
||
position: relative;
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
align-self: stretch;
|
||
display: flex;
|
||
}
|
||
.composer-input-field textarea {
|
||
width: 100%;
|
||
flex: 1 1 auto;
|
||
}
|
||
.composer-input-backdrop {
|
||
position: absolute;
|
||
inset: 0;
|
||
overflow: hidden;
|
||
padding: 6px 4px;
|
||
margin: 0;
|
||
border: 0;
|
||
white-space: pre-wrap;
|
||
overflow-wrap: break-word;
|
||
word-wrap: break-word;
|
||
line-height: 1.5;
|
||
font: inherit;
|
||
color: var(--text);
|
||
pointer-events: none;
|
||
z-index: 0;
|
||
}
|
||
.composer-input-backdrop .dir-hit {
|
||
border-radius: 3px;
|
||
padding: 0 1px;
|
||
margin: 0 -1px;
|
||
background: var(--accent-soft);
|
||
color: var(--accent);
|
||
font: inherit;
|
||
font-weight: inherit;
|
||
box-decoration-break: clone;
|
||
-webkit-box-decoration-break: clone;
|
||
}
|
||
.composer-input-backdrop .dir-hit--dice {
|
||
background: color-mix(in srgb, var(--warn) 16%, transparent);
|
||
color: color-mix(in srgb, var(--warn) 75%, var(--text));
|
||
}
|
||
.composer-input-backdrop .dir-hit--desc {
|
||
background: color-mix(in srgb, var(--accent) 10%, transparent);
|
||
}
|
||
.directive-preview-tip {
|
||
position: fixed;
|
||
z-index: 80;
|
||
max-width: min(280px, calc(100vw - 24px));
|
||
padding: 8px 10px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
background: var(--surface);
|
||
box-shadow: var(--shadow);
|
||
pointer-events: none;
|
||
font-size: 12px;
|
||
line-height: 1.4;
|
||
color: var(--text);
|
||
}
|
||
.directive-preview-tip-title {
|
||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||
font-size: 11px;
|
||
font-weight: 650;
|
||
color: var(--accent);
|
||
margin-bottom: 2px;
|
||
}
|
||
.directive-preview-tip-body {
|
||
color: var(--muted);
|
||
}
|
||
|
||
.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-mode-chip[data-task="busy"],
|
||
.composer-input-shell[data-task="busy"] .composer-mode-chip {
|
||
color: var(--muted);
|
||
}
|
||
.composer-input-shell textarea {
|
||
flex: 1;
|
||
min-width: 0;
|
||
min-height: 1.5em;
|
||
max-height: min(42vh, 360px);
|
||
height: auto;
|
||
resize: none;
|
||
overflow-y: hidden;
|
||
border: none;
|
||
border-radius: 0;
|
||
padding: 6px 4px;
|
||
line-height: 1.5;
|
||
background: transparent;
|
||
box-shadow: none;
|
||
field-sizing: content;
|
||
position: relative;
|
||
z-index: 1;
|
||
caret-color: var(--text);
|
||
color: var(--text);
|
||
}
|
||
.composer-input-field textarea:not(.is-empty) {
|
||
color: transparent;
|
||
-webkit-text-fill-color: transparent;
|
||
}
|
||
.composer-input-field textarea:not(.is-empty)::selection {
|
||
background: var(--accent-soft);
|
||
color: transparent;
|
||
-webkit-text-fill-color: transparent;
|
||
}
|
||
.composer-input-shell textarea:focus {
|
||
outline: none;
|
||
border: none;
|
||
box-shadow: none;
|
||
}
|
||
.composer-actions-with-chip {
|
||
align-items: center;
|
||
}
|
||
.composer-actions-with-chip .composer-mode-chip {
|
||
margin-top: 0;
|
||
margin-right: 2px;
|
||
}
|
||
.composer-waiting, .composer-idle {
|
||
padding: 6px 0; text-align: left; color: var(--muted); font-size: 13px;
|
||
}
|
||
.composer-waiting {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
}
|
||
.composer-waiting .btn {
|
||
flex-shrink: 0;
|
||
}
|
||
.composer-hint { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
|
||
.composer-form {
|
||
display: flex;
|
||
gap: 8px;
|
||
align-items: flex-end;
|
||
min-height: 0;
|
||
max-height: 100%;
|
||
width: 100%;
|
||
}
|
||
.composer-form .composer-input-shell {
|
||
flex: 1 1 auto;
|
||
width: auto;
|
||
min-width: 0;
|
||
position: relative;
|
||
z-index: 1;
|
||
}
|
||
.composer-more-menu {
|
||
align-self: center;
|
||
position: relative;
|
||
z-index: 2;
|
||
flex: 0 0 auto;
|
||
}
|
||
.composer-more-menu[open] {
|
||
z-index: 130;
|
||
}
|
||
.composer-more-menu .more-menu-sum {
|
||
height: var(--composer-control-h);
|
||
min-height: var(--composer-control-h);
|
||
min-width: var(--composer-control-h);
|
||
border: 1px solid transparent;
|
||
background: transparent;
|
||
color: var(--muted);
|
||
border-radius: 8px;
|
||
}
|
||
.composer-more-menu .more-menu-sum:hover {
|
||
color: var(--accent);
|
||
background: var(--accent-soft);
|
||
}
|
||
.composer-more-menu .more-menu-panel {
|
||
left: 0;
|
||
right: auto;
|
||
top: auto;
|
||
bottom: calc(100% + 6px);
|
||
min-width: 240px;
|
||
max-width: min(86vw, 340px);
|
||
/* visible:二级 API 菜单向右飞出,避免被 overflow:auto 裁切 */
|
||
overflow: visible;
|
||
z-index: 140;
|
||
}
|
||
.api-fold {
|
||
position: relative;
|
||
display: block;
|
||
}
|
||
.api-fold-sum {
|
||
list-style: none;
|
||
cursor: pointer;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
.api-fold-sum .more-theme-copy {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
}
|
||
.api-fold-sum::-webkit-details-marker { display: none; }
|
||
.api-fold-sum::marker { content: ""; }
|
||
.api-fold-chevron {
|
||
flex: 0 0 auto;
|
||
width: 1em;
|
||
text-align: center;
|
||
color: var(--muted);
|
||
}
|
||
.api-fold-chevron::before { content: "›"; }
|
||
.api-fold[open] > .api-fold-sum .api-fold-chevron,
|
||
.api-fold-sum:hover .api-fold-chevron {
|
||
color: var(--accent);
|
||
}
|
||
.api-fold-sum:hover,
|
||
.api-fold[open] > .api-fold-sum {
|
||
background: var(--bg);
|
||
color: var(--accent);
|
||
}
|
||
.api-fold-list {
|
||
position: absolute;
|
||
left: calc(100% + 4px);
|
||
top: 0;
|
||
z-index: 150;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1px;
|
||
min-width: 220px;
|
||
max-width: min(80vw, 300px);
|
||
max-height: min(60vh, 420px);
|
||
overflow: auto;
|
||
margin: 0;
|
||
padding: 4px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
background: var(--surface);
|
||
box-shadow: var(--shadow);
|
||
}
|
||
@media (max-width: 560px) {
|
||
.api-fold-list {
|
||
position: static;
|
||
left: auto;
|
||
top: auto;
|
||
margin: 2px 0 4px 8px;
|
||
padding: 2px 0 4px 6px;
|
||
min-width: 0;
|
||
max-width: none;
|
||
max-height: 240px;
|
||
border: none;
|
||
border-left: 1px solid var(--border);
|
||
border-radius: 0;
|
||
box-shadow: none;
|
||
background: transparent;
|
||
}
|
||
.api-fold-chevron::before { content: "▾"; }
|
||
.api-fold[open] > .api-fold-sum .api-fold-chevron::before { content: "▴"; }
|
||
}
|
||
.api-fold-sum:focus-visible,
|
||
.api-fold-list .more-profile-item:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: -2px;
|
||
}
|
||
.more-submenu {
|
||
position: relative;
|
||
display: block;
|
||
}
|
||
.more-submenu-sum {
|
||
list-style: none;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
.more-submenu-sum::-webkit-details-marker { display: none; }
|
||
.more-submenu-sum::marker { content: ""; }
|
||
.more-submenu-sum .more-theme-copy {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
}
|
||
.more-submenu-sum .more-theme-name,
|
||
.more-submenu-sum .more-theme-desc {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.more-submenu-chevron {
|
||
flex: 0 0 auto;
|
||
width: 1em;
|
||
text-align: center;
|
||
font-size: 14px;
|
||
line-height: 1;
|
||
color: var(--muted);
|
||
}
|
||
.more-submenu-chevron::before {
|
||
content: "›";
|
||
}
|
||
.more-submenu[open] > .more-submenu-sum,
|
||
.more-submenu-sum:hover {
|
||
background: var(--bg);
|
||
color: var(--accent);
|
||
}
|
||
.more-submenu[open] > .more-submenu-sum .more-submenu-chevron,
|
||
.more-submenu-sum:hover .more-submenu-chevron {
|
||
color: var(--accent);
|
||
}
|
||
.more-submenu-panel {
|
||
position: absolute;
|
||
left: calc(100% + 4px);
|
||
bottom: 0;
|
||
z-index: 150;
|
||
min-width: 220px;
|
||
max-width: min(80vw, 300px);
|
||
max-height: min(60vh, 420px);
|
||
overflow: auto;
|
||
padding: 4px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
background: var(--surface);
|
||
box-shadow: var(--shadow);
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1px;
|
||
}
|
||
@media (max-width: 560px) {
|
||
.more-submenu-panel {
|
||
position: static;
|
||
left: auto;
|
||
bottom: auto;
|
||
margin-top: 2px;
|
||
max-width: none;
|
||
box-shadow: none;
|
||
border-color: color-mix(in srgb, var(--border) 70%, transparent);
|
||
background: color-mix(in srgb, var(--bg) 55%, var(--surface));
|
||
}
|
||
.more-submenu-chevron::before {
|
||
content: "▾";
|
||
}
|
||
.more-submenu[open] > .more-submenu-sum .more-submenu-chevron::before {
|
||
content: "▴";
|
||
}
|
||
}
|
||
.more-profile-item .more-theme-name,
|
||
.more-profile-item .more-theme-desc {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.more-profile-item .more-theme-copy {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
}
|
||
.more-profile-item.is-active:hover:not(:disabled) {
|
||
background: var(--accent-soft);
|
||
color: var(--accent);
|
||
}
|
||
.more-profile-row {
|
||
display: flex;
|
||
align-items: stretch;
|
||
min-width: 0;
|
||
}
|
||
.more-profile-row .more-profile-item {
|
||
flex: 1 1 auto;
|
||
width: auto;
|
||
min-width: 0;
|
||
}
|
||
.more-profile-forget {
|
||
flex: 0 0 auto;
|
||
margin: 0;
|
||
padding: 0 8px;
|
||
border: none;
|
||
border-radius: 6px;
|
||
background: transparent;
|
||
color: var(--muted);
|
||
font: inherit;
|
||
font-size: 11px;
|
||
cursor: pointer;
|
||
}
|
||
.more-profile-forget:hover {
|
||
color: var(--accent);
|
||
background: var(--bg);
|
||
}
|
||
.more-profile-forget:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: -2px;
|
||
}
|
||
/* more-profile-models:与 more-submenu 默认向右飞出一致,不再强制向下展开 */
|
||
.more-model-filter {
|
||
margin: 2px 4px 6px;
|
||
width: calc(100% - 8px);
|
||
box-sizing: border-box;
|
||
padding: 6px 8px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 6px;
|
||
background: var(--bg);
|
||
color: inherit;
|
||
font: inherit;
|
||
font-size: 12px;
|
||
}
|
||
.more-model-filter:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 1px;
|
||
}
|
||
.more-model-empty {
|
||
margin: 0;
|
||
padding: 6px 10px 8px;
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
}
|
||
.more-menu-empty {
|
||
margin: 0;
|
||
padding: 8px 10px 10px;
|
||
font-size: 12px;
|
||
line-height: 1.45;
|
||
color: var(--muted);
|
||
}
|
||
.more-menu-empty a {
|
||
color: var(--accent);
|
||
text-decoration: none;
|
||
}
|
||
.more-menu-empty a:hover {
|
||
text-decoration: underline;
|
||
}
|
||
.more-menu-retry {
|
||
margin-left: 4px;
|
||
padding: 0;
|
||
border: none;
|
||
background: none;
|
||
color: var(--accent);
|
||
font: inherit;
|
||
font-size: 12px;
|
||
cursor: pointer;
|
||
}
|
||
.more-menu-retry:hover {
|
||
text-decoration: underline;
|
||
}
|
||
.more-menu-retry:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
.composer-shell-actions > .btn,
|
||
.composer-shell-actions > .btn-primary,
|
||
.composer-shell-actions > .composer-btn,
|
||
.composer-shell-actions > .composer-btn-accept,
|
||
.composer-shell-actions > .composer-btn-icon,
|
||
.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-icon {
|
||
width: calc(var(--composer-control-h) - 8px);
|
||
min-width: calc(var(--composer-control-h) - 8px);
|
||
padding: 0;
|
||
font-size: 16px;
|
||
line-height: 1;
|
||
}
|
||
.composer-btn-icon .composer-icon {
|
||
display: block;
|
||
flex-shrink: 0;
|
||
}
|
||
.composer-btn-icon.btn-primary .composer-icon {
|
||
color: inherit;
|
||
}
|
||
/* éªæ¶æï¼ä¸»æé®æ¿æ¥åãæ¹é
ãè¯ä¹ */
|
||
.composer-btn-review {
|
||
background: #15803d;
|
||
border-color: #15803d;
|
||
color: #fff;
|
||
}
|
||
.composer-btn-review:hover:not(:disabled) {
|
||
background: #166534;
|
||
border-color: #166534;
|
||
}
|
||
.composer-form textarea {
|
||
flex: 1;
|
||
min-height: var(--composer-control-h);
|
||
max-height: min(42vh, 360px);
|
||
height: auto;
|
||
resize: none;
|
||
overflow-y: hidden;
|
||
border: none;
|
||
border-radius: 0;
|
||
padding: 6px 4px;
|
||
line-height: 1.5;
|
||
background: transparent;
|
||
field-sizing: content;
|
||
}
|
||
.composer-form textarea:focus {
|
||
outline: none;
|
||
border: none;
|
||
box-shadow: none;
|
||
}
|
||
.composer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
|
||
.composer-actions .btn-primary { flex: 1; }
|
||
|
||
/* Intake (from intake-ui.js) */
|
||
.intake-panel { border: 1px solid var(--border); border-radius: 8px; padding: 10px; margin-bottom: 10px; background: #fffbeb; }
|
||
.intake-section-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
|
||
.intake-list { list-style: none; margin: 0; padding: 0; }
|
||
.intake-item { display: grid; grid-template-columns: 16px 1fr auto; gap: 6px; font-size: 12px; padding: 3px 0; }
|
||
.intake-item.filled .intake-mark { color: var(--ok); }
|
||
.intake-value.empty { color: var(--muted); }
|
||
|
||
/* Dialog */
|
||
.dialog {
|
||
border: 1px solid var(--border);
|
||
border-radius: 10px;
|
||
padding: 16px;
|
||
max-width: 400px;
|
||
background: var(--panel, #fff);
|
||
color: inherit;
|
||
}
|
||
.dialog-wide {
|
||
width: min(920px, 94vw);
|
||
max-width: min(920px, 94vw);
|
||
max-height: min(88vh, 900px);
|
||
}
|
||
.context-trace-form {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
max-height: min(84vh, 860px);
|
||
}
|
||
.context-trace-body {
|
||
margin: 0;
|
||
padding: 12px;
|
||
overflow: auto;
|
||
flex: 1;
|
||
min-height: 240px;
|
||
max-height: min(60vh, 640px);
|
||
font-size: 12px;
|
||
line-height: 1.45;
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
background: color-mix(in srgb, var(--panel, #fff) 92%, #000 8%);
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
}
|
||
.dialog-compare {
|
||
width: min(1100px, 96vw);
|
||
max-width: min(1100px, 96vw);
|
||
max-height: min(92vh, 960px);
|
||
padding: 0;
|
||
}
|
||
.compare-shell {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
padding: 16px;
|
||
max-height: min(90vh, 940px);
|
||
}
|
||
.compare-profile-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
margin: 8px 0 4px;
|
||
max-height: 280px;
|
||
overflow: auto;
|
||
}
|
||
.compare-profile-item {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 8px;
|
||
font-size: 13px;
|
||
line-height: 1.4;
|
||
}
|
||
.compare-profile-item input {
|
||
margin-top: 2px;
|
||
}
|
||
.compare-profile-item .muted {
|
||
color: var(--muted);
|
||
font-size: 12px;
|
||
}
|
||
.compare-results {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
||
gap: 10px;
|
||
overflow: auto;
|
||
min-height: 280px;
|
||
max-height: min(70vh, 720px);
|
||
align-items: stretch;
|
||
}
|
||
.compare-card {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
padding: 10px;
|
||
background: color-mix(in srgb, var(--panel, #fff) 94%, #000 6%);
|
||
min-height: 200px;
|
||
}
|
||
.compare-card-head {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
}
|
||
.compare-card-head strong {
|
||
font-size: 13px;
|
||
}
|
||
.compare-card-head span {
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
}
|
||
.compare-card-status {
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
}
|
||
.compare-card-status.is-error {
|
||
color: var(--danger, #b91c1c);
|
||
}
|
||
.compare-card-body {
|
||
flex: 1;
|
||
margin: 0;
|
||
padding: 8px;
|
||
overflow: auto;
|
||
max-height: 420px;
|
||
font-size: 12.5px;
|
||
line-height: 1.5;
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
background: var(--panel, #fff);
|
||
border: 1px solid var(--border);
|
||
border-radius: 6px;
|
||
}
|
||
.compare-card-actions {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
.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-actions-stack {
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
}
|
||
.dialog-actions-stack .btn { width: 100%; }
|
||
.dialog-head-row { display: flex; justify-content: space-between; align-items: center; }
|
||
|
||
/* ââ æ¸¸ç©åç°å£³ present.v1 ââ
|
||
* 主工ä½é¢ = bodyï¼é 1000ï½2000 åæé«ï¼ã
|
||
* è§è§ï¼å°çåãå°æ¸åï¼å±çº§é åå·/é´è·/对æ¯ï¼ä¸é è£
é¥°æ¢æ³¨æåã
|
||
*/
|
||
.present-shell {
|
||
white-space: normal;
|
||
--present-ink: #1c1917;
|
||
--present-muted: #78716c;
|
||
--present-line: #e7e5e4;
|
||
--present-soft: #f5f5f4;
|
||
--present-accent: #0f766e;
|
||
--present-body: 15px;
|
||
--present-body-lh: 1.62;
|
||
--present-body-hero: 16.5px;
|
||
--present-body-read: 15.5px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0;
|
||
position: relative;
|
||
padding: 16px 18px 18px;
|
||
border: 1px solid var(--present-line);
|
||
border-radius: 8px;
|
||
background: var(--surface, #fff);
|
||
color: var(--present-ink);
|
||
}
|
||
.present-shell-badge {
|
||
align-self: flex-start;
|
||
margin-bottom: 8px;
|
||
font-size: 10px;
|
||
font-weight: 600;
|
||
letter-spacing: 0.06em;
|
||
text-transform: uppercase;
|
||
color: var(--present-muted);
|
||
opacity: 0.55;
|
||
padding: 0;
|
||
border: none;
|
||
background: transparent;
|
||
}
|
||
.present-stack,
|
||
.present-board,
|
||
.present-split,
|
||
.present-reader {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 14px;
|
||
min-width: 0;
|
||
}
|
||
.present-region {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
min-width: 0;
|
||
}
|
||
.present-region-title {
|
||
margin: 0;
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
color: var(--present-muted);
|
||
letter-spacing: 0.05em;
|
||
}
|
||
.present-region-body {
|
||
margin: 0;
|
||
line-height: 1.65;
|
||
white-space: normal;
|
||
font-size: 14px;
|
||
}
|
||
.present-region-body > p {
|
||
margin: 0 0 0.7em;
|
||
}
|
||
.present-region-body > p:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
/* P0ï¼æ£æèå° ââ é忰伏å±ï¼1000ï½2000 é å¤å±æ»å¨ï¼ä¸å¡è¿å°æ¡ï¼ */
|
||
.present-stage {
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
min-width: 0;
|
||
}
|
||
.present-region--body {
|
||
min-width: 0;
|
||
}
|
||
.present-region--body .present-region-body,
|
||
.present-stage .present-region--body .present-region-body,
|
||
.present-stage.present-region--body .present-region-body {
|
||
font-size: var(--present-body);
|
||
line-height: var(--present-body-lh);
|
||
letter-spacing: 0.01em;
|
||
max-height: none;
|
||
overflow: visible;
|
||
}
|
||
.present-stage--hero .present-region-body {
|
||
font-size: var(--present-body-hero);
|
||
line-height: 1.82;
|
||
padding: 4px 2px 8px;
|
||
}
|
||
.present-stage--read .present-region-body {
|
||
font-family: var(--font-read);
|
||
font-size: var(--present-body-read);
|
||
line-height: 1.7;
|
||
max-width: none;
|
||
}
|
||
/* åæ ï¼ä¾§æ éä½ï¼æ£æåé¿ä¹è½å¯¹ç
§ */
|
||
.present-board-side,
|
||
.present-split-side,
|
||
.present-reader-aside {
|
||
position: sticky;
|
||
top: 0.75rem;
|
||
align-self: start;
|
||
max-height: calc(100dvh - 3rem);
|
||
overflow-y: auto;
|
||
}
|
||
/* P2ï¼çæ§è¯ç */
|
||
.present-chips {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px 8px;
|
||
}
|
||
.present-chip {
|
||
display: inline-flex;
|
||
align-items: baseline;
|
||
gap: 6px;
|
||
padding: 4px 10px;
|
||
border-radius: 6px;
|
||
border: 1px solid var(--present-line);
|
||
background: var(--present-soft);
|
||
font-size: 12px;
|
||
line-height: 1.35;
|
||
}
|
||
.present-chip-k {
|
||
color: var(--present-muted);
|
||
font-weight: 600;
|
||
}
|
||
.present-chip-v {
|
||
color: var(--present-ink);
|
||
font-weight: 500;
|
||
}
|
||
.present-region--monitor .present-region-body,
|
||
.present-region--aside .present-region-body,
|
||
.present-region--footer .present-region-body {
|
||
font-size: 12.5px;
|
||
line-height: 1.45;
|
||
color: var(--present-ink);
|
||
padding: 8px 10px;
|
||
border-radius: 8px;
|
||
border: 1px solid var(--present-line);
|
||
background: var(--present-soft);
|
||
}
|
||
.present-region--header .present-region-body {
|
||
font-size: 14px;
|
||
font-weight: 650;
|
||
letter-spacing: 0.01em;
|
||
line-height: 1.4;
|
||
}
|
||
/* P1ï¼è¡å¨ */
|
||
.present-action-row {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
}
|
||
.present-action {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 7px 12px;
|
||
border-radius: 8px;
|
||
border: 1px solid color-mix(in srgb, var(--present-accent) 35%, var(--present-line));
|
||
background: color-mix(in srgb, var(--present-accent) 8%, #fff);
|
||
color: var(--present-ink);
|
||
font-size: 13px;
|
||
font-weight: 550;
|
||
line-height: 1.3;
|
||
}
|
||
.present-actions {
|
||
margin: 0;
|
||
padding-left: 18px;
|
||
line-height: 1.45;
|
||
font-size: 13px;
|
||
}
|
||
/* ââ å壳å¸å±ï¼ç»æå·®å¨åæ¶å¯è§å
³ç³»ï¼ä¸é æ¸ååºåï¼ ââ */
|
||
.present-shell--chat_monitor {
|
||
--present-accent: #0369a1;
|
||
}
|
||
.present-shell--chat_monitor .present-stage {
|
||
padding: 4px 0 0;
|
||
border: none;
|
||
background: transparent;
|
||
}
|
||
.present-shell--spotlight {
|
||
--present-accent: #b45309;
|
||
padding-top: 14px;
|
||
}
|
||
.present-shell--spotlight .present-stack--spotlight {
|
||
gap: 12px;
|
||
}
|
||
.present-shell--spotlight .present-stage--hero {
|
||
padding: 2px 0 4px;
|
||
}
|
||
.present-shell--spotlight .present-region--monitor .present-region-title {
|
||
display: none;
|
||
}
|
||
.present-shell--turn_panel {
|
||
--present-accent: #047857;
|
||
}
|
||
.present-board-top {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
.present-board-mid {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1.75fr) minmax(140px, 0.8fr);
|
||
gap: 16px;
|
||
align-items: start;
|
||
}
|
||
.present-board-mid.is-solo,
|
||
.present-board-mid:not(:has(.present-board-side)) {
|
||
grid-template-columns: minmax(0, 1fr);
|
||
}
|
||
.present-board-side:empty {
|
||
display: none;
|
||
}
|
||
.present-board-side {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
.present-shell--turn_panel .present-stage {
|
||
padding: 0;
|
||
border: none;
|
||
background: transparent;
|
||
}
|
||
.present-shell--split_board {
|
||
--present-accent: #4338ca;
|
||
}
|
||
.present-split {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1.6fr) minmax(150px, 0.85fr);
|
||
gap: 16px 20px;
|
||
align-items: start;
|
||
}
|
||
.present-split.is-solo,
|
||
.present-split:not(:has(.present-split-side)) {
|
||
grid-template-columns: minmax(0, 1fr);
|
||
}
|
||
.present-split-side:empty {
|
||
display: none;
|
||
}
|
||
.present-split-main {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
min-width: 0;
|
||
}
|
||
.present-split-side {
|
||
min-width: 0;
|
||
padding: 0 0 0 14px;
|
||
border-radius: 0;
|
||
border: none;
|
||
border-left: 1px solid var(--present-line);
|
||
background: transparent;
|
||
}
|
||
.present-split .present-region--actions {
|
||
grid-column: 1 / -1;
|
||
}
|
||
.present-shell--choice_dock {
|
||
--present-accent: #be123c;
|
||
}
|
||
.present-stack--dock {
|
||
gap: 12px;
|
||
}
|
||
.present-dock {
|
||
margin-top: 8px;
|
||
padding: 12px 0 0;
|
||
border-radius: 0;
|
||
border: none;
|
||
border-top: 1px solid var(--present-line);
|
||
background: color-mix(in srgb, var(--surface, #fff) 92%, var(--present-soft));
|
||
position: sticky;
|
||
bottom: 0;
|
||
z-index: 2;
|
||
}
|
||
.present-dock .present-region-title {
|
||
margin-bottom: 2px;
|
||
}
|
||
.present-dock .present-action {
|
||
padding: 9px 14px;
|
||
font-size: 13.5px;
|
||
border-width: 1px;
|
||
}
|
||
.present-shell--chapter_reader {
|
||
--present-accent: #44403c;
|
||
}
|
||
.present-reader {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1fr) minmax(120px, 0.38fr);
|
||
gap: 20px;
|
||
align-items: start;
|
||
}
|
||
.present-reader.is-solo,
|
||
.present-reader:not(:has(.present-reader-aside)) {
|
||
grid-template-columns: minmax(0, 1fr);
|
||
}
|
||
.present-reader-aside:empty {
|
||
display: none;
|
||
}
|
||
.present-reader-main {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
min-width: 0;
|
||
}
|
||
.present-reader-aside {
|
||
font-size: 12px;
|
||
padding-top: 4px;
|
||
border-left: 1px solid var(--present-line);
|
||
padding-left: 14px;
|
||
}
|
||
.present-shell--chapter_reader .present-region--header .present-region-body {
|
||
font-family: var(--font-read);
|
||
font-size: 20px;
|
||
font-weight: 600;
|
||
}
|
||
.present-shell--prose .present-stage--read {
|
||
padding: 2px 0;
|
||
}
|
||
.present-shell--prose .present-region--footer .present-region-body {
|
||
opacity: 0.75;
|
||
border: none;
|
||
background: transparent;
|
||
padding: 0;
|
||
}
|
||
@media (max-width: 640px) {
|
||
.present-board-mid,
|
||
.present-split,
|
||
.present-reader {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.present-board-side,
|
||
.present-split-side,
|
||
.present-reader-aside {
|
||
position: static;
|
||
max-height: none;
|
||
}
|
||
.present-reader-aside {
|
||
border-left: none;
|
||
border-top: 1px solid var(--present-line);
|
||
padding-left: 0;
|
||
padding-top: 12px;
|
||
}
|
||
}
|
||
.present-tone--messenger .present-stage {
|
||
border-left: 3px solid #7dd3fc;
|
||
padding-left: 12px;
|
||
}
|
||
.present-tone--book .present-stage--read .present-region-body,
|
||
.present-tone--book .present-stage .present-region-body {
|
||
font-family: var(--font-read);
|
||
max-width: none;
|
||
}
|
||
.present-tone--terminal {
|
||
--present-ink: #d6d3d1;
|
||
--present-muted: #a8a29e;
|
||
--present-line: #3f3f46;
|
||
--present-soft: #27272a;
|
||
background: #18181b;
|
||
color: #e7e5e4;
|
||
}
|
||
.present-tone--terminal .present-chip,
|
||
.present-tone--terminal .present-stage,
|
||
.present-tone--terminal .present-dock,
|
||
.present-tone--terminal .present-split-side {
|
||
background: #27272a;
|
||
border-color: #3f3f46;
|
||
}
|
||
.present-tone--terminal .present-region-body,
|
||
.present-tone--terminal .present-action {
|
||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||
}
|
||
.present-tone--terminal .present-region--body .present-region-body {
|
||
font-size: calc(var(--present-body) - 0.5px);
|
||
}
|
||
.present-tone--terminal .present-action {
|
||
font-size: 13px;
|
||
color: #e7e5e4;
|
||
background: #3f3f46;
|
||
}
|
||
|
||
.opening-setup-body {
|
||
display: grid;
|
||
gap: 12px;
|
||
}
|
||
.opening-picker {
|
||
display: grid;
|
||
gap: 8px;
|
||
}
|
||
.opening-picker-nav {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 10px;
|
||
}
|
||
.opening-picker-btn {
|
||
font: inherit;
|
||
font-size: 12px;
|
||
padding: 4px 10px;
|
||
border: 1px solid var(--border);
|
||
background: var(--bg-elev, transparent);
|
||
color: inherit;
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
}
|
||
.opening-picker-btn:hover {
|
||
border-color: var(--accent);
|
||
}
|
||
.opening-picker-pos {
|
||
font-size: 12px;
|
||
color: var(--muted, #888);
|
||
min-width: 4.5em;
|
||
text-align: center;
|
||
}
|
||
|
||
/* תÊöÕûÀí£ºÒѳ־û¯²úÎïչʾ */
|
||
.dictate-products {
|
||
margin-top: 14px;
|
||
border: 1px solid var(--border, #d8d4cc);
|
||
background: var(--surface-2, #f7f5f1);
|
||
padding: 10px 12px;
|
||
}
|
||
.dictate-products-head {
|
||
display: flex;
|
||
align-items: baseline;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
margin-bottom: 8px;
|
||
}
|
||
.dictate-products-title {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
letter-spacing: 0.04em;
|
||
text-transform: uppercase;
|
||
color: var(--muted, #6b6560);
|
||
}
|
||
.dictate-products-count {
|
||
font-size: 12px;
|
||
color: var(--muted, #6b6560);
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
.dictate-products-empty {
|
||
margin: 0;
|
||
font-size: 13px;
|
||
color: var(--muted, #6b6560);
|
||
line-height: 1.45;
|
||
}
|
||
.dictate-products-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
}
|
||
.dictate-product:not(.dictate-product--rail) {
|
||
border: 1px solid var(--border, #e2ddd4);
|
||
background: var(--surface, #fff);
|
||
}
|
||
.dictate-product:not(.dictate-product--rail) > summary {
|
||
display: grid;
|
||
grid-template-columns: minmax(7rem, 11rem) 1fr;
|
||
gap: 8px;
|
||
align-items: baseline;
|
||
padding: 8px 10px;
|
||
cursor: pointer;
|
||
list-style: none;
|
||
}
|
||
.dictate-product:not(.dictate-product--rail) > summary::-webkit-details-marker {
|
||
display: none;
|
||
}
|
||
.dictate-product:not(.dictate-product--rail) .dictate-product-tag {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--fg, #1c1917);
|
||
word-break: break-all;
|
||
}
|
||
.dictate-product:not(.dictate-product--rail) .dictate-product-preview {
|
||
font-size: 12px;
|
||
color: var(--muted, #6b6560);
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
min-width: 0;
|
||
}
|
||
.dictate-product:not(.dictate-product--rail) .dictate-product-body {
|
||
margin: 0;
|
||
padding: 0 10px 10px;
|
||
font-size: 12px;
|
||
line-height: 1.5;
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
max-height: 240px;
|
||
overflow: auto;
|
||
color: var(--fg, #1c1917);
|
||
font-family: inherit;
|
||
}
|
||
.dictate-product-body {
|
||
font-size: 12px;
|
||
line-height: 1.55;
|
||
color: var(--text, var(--fg, #1c1917));
|
||
overflow-wrap: anywhere;
|
||
word-break: break-word;
|
||
}
|
||
|
||
/* 转述:右侧栏产物列表 — 默认折叠、单列密度行 */
|
||
.dictate-products-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0;
|
||
min-width: 0;
|
||
width: 100%;
|
||
max-width: 100%;
|
||
border: none;
|
||
background: transparent;
|
||
overflow: visible;
|
||
}
|
||
.dictate-products-empty-block {
|
||
margin: 28px 16px;
|
||
text-align: center;
|
||
}
|
||
.dictate-products-empty-title {
|
||
margin: 0 0 6px;
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
color: var(--text);
|
||
}
|
||
.dictate-products-empty-desc {
|
||
margin: 0;
|
||
font-size: 12px;
|
||
line-height: 1.5;
|
||
color: var(--muted);
|
||
}
|
||
.dictate-product--rail {
|
||
margin: 0;
|
||
border: none;
|
||
border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
|
||
background: transparent;
|
||
min-width: 0;
|
||
width: 100%;
|
||
max-width: 100%;
|
||
box-sizing: border-box;
|
||
overflow: hidden;
|
||
cursor: context-menu;
|
||
}
|
||
.dictate-product--rail:last-child {
|
||
border-bottom: none;
|
||
}
|
||
.dictate-product--rail > .dictate-product-sum {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
margin: 0;
|
||
padding: 8px 12px;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
border: none;
|
||
background: transparent;
|
||
color: inherit;
|
||
font: inherit;
|
||
text-align: left;
|
||
cursor: context-menu;
|
||
user-select: none;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
position: relative;
|
||
appearance: none;
|
||
-webkit-appearance: none;
|
||
transition: background 0.1s ease;
|
||
}
|
||
.dictate-product--rail > .dictate-product-sum:hover {
|
||
background: color-mix(in srgb, var(--accent-soft) 50%, transparent);
|
||
}
|
||
.dictate-product--rail > .dictate-product-sum:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: -2px;
|
||
}
|
||
.dictate-product--rail.is-open > .dictate-product-sum {
|
||
background: color-mix(in srgb, var(--bg) 70%, var(--surface));
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
.dictate-product-sum-top {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
min-width: 0;
|
||
}
|
||
.dictate-product--rail .dictate-product-tag {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
font-size: 12.5px;
|
||
font-weight: 600;
|
||
letter-spacing: 0.01em;
|
||
color: var(--text);
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
word-break: normal;
|
||
}
|
||
.dictate-product-order {
|
||
flex: 0 0 auto;
|
||
font-size: 10px;
|
||
font-weight: 600;
|
||
font-variant-numeric: tabular-nums;
|
||
color: var(--muted);
|
||
padding: 1px 5px;
|
||
border-radius: 4px;
|
||
background: color-mix(in srgb, var(--bg) 88%, var(--surface));
|
||
border: 1px solid var(--border);
|
||
line-height: 1.35;
|
||
}
|
||
.dictate-product-chevron {
|
||
flex: 0 0 auto;
|
||
width: 14px;
|
||
height: 14px;
|
||
margin-left: 2px;
|
||
opacity: 0.4;
|
||
background: no-repeat center / 10px 10px;
|
||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
|
||
transition: transform 0.12s ease, opacity 0.12s ease;
|
||
}
|
||
.dictate-product--rail > .dictate-product-sum:hover .dictate-product-chevron {
|
||
opacity: 0.7;
|
||
}
|
||
.dictate-product--rail.is-open .dictate-product-chevron {
|
||
transform: rotate(180deg);
|
||
opacity: 0.75;
|
||
}
|
||
.dictate-product--rail .dictate-product-preview {
|
||
display: block;
|
||
font-size: 11px;
|
||
line-height: 1.4;
|
||
color: var(--muted);
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
min-width: 0;
|
||
max-width: 100%;
|
||
}
|
||
.dictate-product--rail .dictate-product-preview.is-empty {
|
||
font-style: italic;
|
||
opacity: 0.75;
|
||
}
|
||
.dictate-product--rail.is-open .dictate-product-preview {
|
||
display: none;
|
||
}
|
||
.dictate-product--rail .dictate-product-body {
|
||
margin: 0;
|
||
padding: 10px 12px 12px;
|
||
font-size: 12px;
|
||
line-height: 1.55;
|
||
white-space: normal;
|
||
overflow-wrap: anywhere;
|
||
word-break: break-word;
|
||
width: 100%;
|
||
max-width: 100%;
|
||
box-sizing: border-box;
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
max-height: min(38vh, 280px);
|
||
font-family: inherit;
|
||
color: var(--text);
|
||
background: var(--bg);
|
||
border-top: none;
|
||
cursor: auto;
|
||
}
|
||
.dictate-product--rail .dictate-product-body[hidden] {
|
||
display: none !important;
|
||
}
|
||
.dictate-product--rail .dictate-product-body[data-pending="1"]:empty {
|
||
display: none;
|
||
}
|
||
.dictate-product--rail .dictate-product-body .md-h {
|
||
font-size: 1.05em;
|
||
}
|
||
.dictate-product--rail .dictate-product-body h1.md-h {
|
||
font-size: 1.12em;
|
||
}
|
||
.dictate-product--rail .dictate-product-body .md-pre {
|
||
font-size: 11px;
|
||
padding: 7px 8px;
|
||
border-radius: 6px;
|
||
max-width: 100%;
|
||
}
|
||
body[data-coord-rail-mode="products"] .coord-drawer-body {
|
||
padding: 0;
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
min-width: 0;
|
||
gap: 0;
|
||
}
|
||
body[data-coord-rail-mode="products"] .coord-rail,
|
||
body[data-coord-rail-mode="products"] .coord-rail-panel {
|
||
min-width: 0;
|
||
overflow-x: hidden;
|
||
}
|
||
body[data-coord-rail-mode="products"] .coord-rail-head {
|
||
padding: 9px 12px;
|
||
}
|
||
body[data-coord-rail-mode="products"] .coord-rail-title {
|
||
font-size: 12px;
|
||
font-weight: 650;
|
||
letter-spacing: 0.02em;
|
||
color: var(--text);
|
||
}
|