Files
planet/frontend/src/admin/pages/AdvisorPages.css
T
rayd1o 30b44ec00d
ci / backend (push) Waiting to run
ci / frontend (push) Waiting to run
release: bump version to 0.84.2
2026-12-05 01:56:03 +08:00

2211 lines
43 KiB
CSS

.an-advisor-page {
height: 100%;
min-height: 0;
min-width: 0;
display: flex;
flex-direction: column;
gap: 10px;
overflow: hidden;
font-size: 13px;
letter-spacing: 0;
}
/* Scoped typography & control density harmony inside AI Advisor pages */
.an-advisor-route .an-field {
min-width: 0;
gap: 5px;
font-size: 12px;
font-weight: 500;
color: var(--an-muted);
}
.an-advisor-route .an-field .an-input,
.an-advisor-route .an-field .an-select,
.an-advisor-route .an-field .an-advisor-textarea {
font-size: 13px;
font-weight: 400;
color: var(--an-text);
box-sizing: border-box;
}
.an-advisor-route .an-select {
font-size: 13px;
font-weight: 400;
}
.an-advisor-route .tui-button {
font-size: 12.5px;
font-weight: 500;
letter-spacing: 0;
--tui-control-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
--tui-control-shadow-hover: 0 2px 5px rgba(15, 23, 42, 0.09);
}
.an-advisor-route .tui-button--primary,
.an-advisor-route .tui-button--danger {
font-weight: 550;
}
.an-advisor-route .tui-button--sm {
height: var(--an-control-sm);
padding-inline: 10px;
}
.an-advisor-bar {
flex: 0 0 auto;
min-width: 0;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
flex-wrap: wrap;
padding: 10px 14px;
background: var(--an-surface);
border: 1px solid var(--an-border);
border-radius: 10px;
}
.an-advisor-bar__group {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
min-width: 0;
}
.an-playground-bar__extras {
flex: 1 1 auto;
justify-content: space-between;
}
.an-advisor-bar__select {
min-width: 210px;
max-width: 100%;
}
.an-advisor-bar__select--sm {
min-width: 148px;
width: 164px;
}
.an-advisor-route .an-advisor-bar__model {
width: 184px;
min-width: 150px;
flex: 0 0 184px;
}
.an-advisor-bar__input {
height: var(--an-control-sm);
min-width: 0;
width: 100%;
max-width: 100%;
box-sizing: border-box;
padding: 0 10px;
border-radius: var(--an-control-radius);
border: 1px solid var(--an-border);
background: var(--an-surface);
color: var(--an-text);
font-size: 13px;
font-weight: 400;
letter-spacing: 0;
}
.an-advisor-bar__mobile-toggle.tui-button {
display: none;
}
.an-advisor-mobile-tabs {
display: none;
flex: 0 0 auto;
gap: 6px;
padding: 4px;
background: var(--an-surface);
border: 1px solid var(--an-border);
border-radius: 10px;
}
.an-advisor-mobile-tab {
flex: 1 1 0;
min-width: 0;
height: var(--an-control-sm);
padding: 0 10px;
border-radius: 7px;
border: 1px solid transparent;
background: transparent;
color: var(--an-muted);
font-size: 12.5px;
font-weight: 500;
letter-spacing: 0;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.an-advisor-mobile-tab.is-active {
background: var(--an-soft);
color: var(--an-text);
border-color: var(--an-border);
}
.an-advisor-mobile-back {
display: none;
align-items: center;
gap: 4px;
height: var(--an-control-xs);
padding: 0 8px;
border-radius: var(--an-control-radius);
border: 1px solid var(--an-border);
background: var(--an-surface-alt);
color: var(--an-text);
font-size: 12px;
font-weight: 500;
letter-spacing: 0;
cursor: pointer;
}
.an-advisor-badge {
display: inline-flex;
align-items: center;
gap: 4px;
height: 22px;
padding: 0 7px;
border-radius: 6px;
font-size: 11.5px;
font-weight: 500;
letter-spacing: 0;
background: var(--an-soft);
color: var(--an-text);
white-space: nowrap;
}
.an-advisor-badge--success {
color: var(--an-success);
}
.an-advisor-badge--warning {
color: var(--an-warning);
}
.an-advisor-badge--danger {
color: var(--an-danger);
}
.an-advisor-badge--accent {
color: var(--an-accent);
}
/* Compact micro-pills for dense catalog cards, node chips, and traces */
.an-wf-pill {
display: inline-flex;
align-items: center;
gap: 3px;
height: 19px;
padding: 0 6px;
border-radius: 5px;
font-size: 11px;
font-weight: 500;
line-height: 1;
letter-spacing: 0;
background: var(--an-soft);
color: var(--an-muted);
white-space: nowrap;
flex: 0 0 auto;
}
.an-wf-pill--rev {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
color: var(--an-text);
}
.an-wf-pill--accent {
color: var(--an-accent);
background: color-mix(in srgb, var(--an-accent) 12%, var(--an-surface));
}
.an-wf-pill--success {
color: var(--an-success);
background: color-mix(in srgb, var(--an-success) 12%, var(--an-surface));
}
.an-wf-pill--warning {
color: var(--an-warning);
background: color-mix(in srgb, var(--an-warning) 14%, var(--an-surface));
}
.an-wf-pill--danger {
color: var(--an-danger);
background: color-mix(in srgb, var(--an-danger) 12%, var(--an-surface));
}
.an-wf-pill--block {
height: auto;
padding: 5px 8px;
white-space: normal;
word-break: break-word;
line-height: 1.4;
}
/* Pure-chat Playground shell */
.an-playground-shell {
flex: 1 1 0;
min-height: 0;
min-width: 0;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 0;
overflow: hidden;
}
.an-playground-shell.has-drawer {
grid-template-columns: minmax(0, 1fr) 14px var(--an-pg-drawer-width, 368px);
}
.an-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.an-chat-pane {
position: relative;
min-height: 0;
min-width: 0;
display: flex;
flex-direction: column;
background: var(--an-surface);
border: 1px solid var(--an-border);
border-radius: 10px;
overflow: hidden;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.an-chat-pane.is-drag-over {
border-color: var(--an-accent);
box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--an-accent) 32%, transparent);
}
.an-mounted-context-bar {
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
padding: 8px 14px;
border-bottom: 1px solid var(--an-border);
background: color-mix(in srgb, var(--an-accent) 7%, var(--an-surface));
font-size: 12.5px;
color: var(--an-text);
letter-spacing: 0;
}
.an-mounted-context-bar__info {
display: inline-flex;
align-items: center;
gap: 6px;
min-width: 0;
color: var(--an-accent);
}
.an-mounted-context-bar__info span {
color: var(--an-text);
word-break: break-word;
}
.an-mounted-context-bar__actions {
display: inline-flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.an-mounted-context-bar__input {
width: 168px;
height: var(--an-control-xs);
font-size: 12.5px;
}
.an-chat-messages {
flex: 1 1 0;
min-height: 0;
min-width: 0;
overflow: hidden;
display: flex;
flex-direction: column;
}
.an-chat-messages > .tui-scrollbar__viewport {
padding: 16px 18px 16px 16px;
display: flex;
flex-direction: column;
gap: 10px;
overflow-x: hidden;
box-sizing: border-box;
}
.an-chat-messages > .tui-scrollbar__viewport > * {
flex: 0 0 auto;
min-width: 0;
}
.an-chat-empty {
margin: auto;
max-width: 520px;
text-align: center;
color: var(--an-muted);
font-size: 13px;
line-height: 1.55;
letter-spacing: 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 16px;
}
.an-chat-empty strong {
font-size: 14px;
font-weight: 600;
color: var(--an-text);
}
.an-chat-empty span {
font-size: 13px;
color: var(--an-muted);
}
.an-chat-context-tag {
display: inline-flex;
align-items: center;
gap: 5px;
margin-bottom: 6px;
padding: 2px 8px;
border-radius: 5px;
background: rgba(255, 255, 255, 0.16);
font-size: 11.5px;
line-height: 1.35;
}
.an-chat-user-attachments {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 6px;
}
.an-chat-user-attachment {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 8px;
border-radius: 6px;
background: rgba(255, 255, 255, 0.16);
font-size: 12px;
line-height: 1.3;
}
.an-chat-user-attachment__thumb {
width: 24px;
height: 24px;
border-radius: 4px;
object-fit: cover;
flex: 0 0 auto;
}
.an-chat-bubble {
max-width: min(760px, 92%);
padding: 10px 14px;
border-radius: 10px;
border: 1px solid var(--an-border);
background: var(--an-surface-alt);
color: var(--an-text);
font-size: 13.5px;
line-height: 1.55;
word-break: break-word;
letter-spacing: 0;
}
.an-chat-bubble--user {
align-self: flex-end;
background: var(--an-accent);
color: #ffffff;
border-color: var(--an-accent);
white-space: pre-wrap;
}
.an-chat-bubble--assistant {
align-self: flex-start;
white-space: normal;
}
.an-chat-bubble--assistant .an-playground-markdown.markdown-renderer {
font-size: 13.5px;
line-height: 1.6;
}
.an-chat-bubble--assistant .an-playground-markdown.markdown-renderer h1 {
font-size: 15px;
margin: 0.65em 0 0.35em;
padding-bottom: 4px;
}
.an-chat-bubble--assistant .an-playground-markdown.markdown-renderer h2 {
font-size: 14px;
margin: 0.6em 0 0.35em;
padding-bottom: 4px;
}
.an-chat-bubble--assistant .an-playground-markdown.markdown-renderer h3 {
font-size: 13.5px;
margin: 0.55em 0 0.3em;
}
.an-chat-bubble--assistant .an-playground-markdown.markdown-renderer p {
margin: 0.35em 0;
}
.an-chat-bubble--assistant .an-playground-markdown.markdown-renderer ul,
.an-chat-bubble--assistant .an-playground-markdown.markdown-renderer ol {
margin: 0.35em 0 0.5em;
padding-left: 1.35em;
}
.an-chat-bubble--assistant .an-playground-markdown.markdown-renderer li {
margin: 0.2em 0;
}
.an-chat-reasoning {
margin-bottom: 8px;
padding: 6px 10px;
border-radius: 6px;
background: var(--an-soft);
color: var(--an-muted);
font-size: 12px;
}
.an-chat-trace-row {
margin-top: 8px;
padding-top: 8px;
border-top: 1px solid var(--an-border);
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.an-trace-chip {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
border-radius: 6px;
border: 1px solid var(--an-border);
background: var(--an-surface);
color: var(--an-accent);
font-size: 11.5px;
font-weight: 500;
cursor: pointer;
letter-spacing: 0;
}
.an-trace-chip:hover {
border-color: var(--an-accent);
}
.an-chat-slash-row {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
padding: 8px 14px 2px;
border-top: 1px solid var(--an-border);
}
.an-slash-pill {
flex: 0 0 auto;
height: 26px;
padding: 0 10px;
border-radius: 6px;
border: 1px solid var(--an-border);
background: var(--an-surface-alt);
color: var(--an-text);
font-size: 12px;
font-weight: 500;
cursor: pointer;
letter-spacing: 0;
}
.an-slash-pill:hover {
border-color: var(--an-accent);
color: var(--an-accent);
}
.an-earth-detect-banner {
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
flex-wrap: wrap;
margin: 0 12px 6px;
padding: 9px 12px;
border-radius: 9px;
border: 1px solid color-mix(in srgb, var(--an-accent) 45%, var(--an-border));
background: color-mix(in srgb, var(--an-accent) 9%, var(--an-surface));
font-size: 12.5px;
letter-spacing: 0;
}
.an-earth-detect-banner__copy {
flex: 1 1 260px;
min-width: 0;
display: flex;
align-items: flex-start;
gap: 8px;
color: var(--an-accent);
}
.an-earth-detect-banner__copy > div {
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
color: var(--an-text);
}
.an-earth-detect-banner__copy strong {
font-size: 12.5px;
font-weight: 600;
}
.an-earth-detect-banner__copy span {
font-size: 12px;
color: var(--an-muted);
line-height: 1.4;
}
.an-earth-detect-banner__actions {
display: inline-flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.an-inline-tool-bar {
flex: 0 0 auto;
margin: 0 12px 6px;
padding: 9px 12px;
border-radius: 9px;
border: 1px solid var(--an-border-strong);
background: var(--an-surface-alt);
display: flex;
flex-direction: column;
gap: 8px;
font-size: 12.5px;
letter-spacing: 0;
}
.an-inline-tool-bar__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
font-size: 12.5px;
font-weight: 600;
color: var(--an-text);
}
.an-inline-tool-bar__head > span {
display: inline-flex;
align-items: center;
gap: 6px;
}
.an-inline-tool-bar__head-actions {
display: inline-flex;
align-items: center;
gap: 4px;
}
.an-inline-tool-bar__close {
width: 24px;
height: 24px;
border-radius: 6px;
border: 1px solid transparent;
background: transparent;
color: var(--an-muted);
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.an-inline-tool-bar__close:hover {
color: var(--an-text);
background: var(--an-soft);
}
.an-inline-tool-bar__row {
display: flex;
align-items: center;
gap: 8px;
}
.an-inline-tool-bar__row .an-input {
flex: 1 1 0;
min-width: 0;
}
.an-inline-tool-bar__actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 6px;
}
.an-inline-tool-bar__empty {
font-size: 12px;
color: var(--an-muted);
padding: 4px 0;
}
.an-local-session-list {
display: flex;
flex-direction: column;
max-height: 180px;
min-height: 0;
overflow: hidden;
}
.an-local-session-list > .tui-scrollbar__viewport {
display: flex;
flex-direction: column;
gap: 6px;
padding-right: 12px;
overflow-x: hidden;
box-sizing: border-box;
}
.an-local-session-list > .tui-scrollbar__viewport > * {
flex: 0 0 auto;
min-width: 0;
}
.an-local-session-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 6px 8px;
border-radius: 7px;
border: 1px solid var(--an-border);
background: var(--an-surface);
}
.an-local-session-row.is-selected {
border-color: var(--an-accent);
}
.an-local-session-row__info {
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.an-local-session-row__info strong {
font-size: 12.5px;
font-weight: 500;
color: var(--an-text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.an-local-session-row__info span {
font-size: 11.5px;
color: var(--an-muted);
}
.an-local-session-row__actions {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
gap: 5px;
}
.an-attachment-strip {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
padding: 6px 14px 2px;
}
.an-attachment-chip {
display: inline-flex;
align-items: center;
gap: 7px;
max-width: 240px;
padding: 5px 8px;
border-radius: 8px;
border: 1px solid var(--an-border);
background: var(--an-surface-alt);
font-size: 12px;
color: var(--an-text);
letter-spacing: 0;
}
.an-attachment-chip__thumb {
width: 28px;
height: 28px;
border-radius: 5px;
object-fit: cover;
flex: 0 0 auto;
}
.an-attachment-chip__icon {
width: 24px;
height: 24px;
border-radius: 5px;
background: var(--an-soft);
color: var(--an-accent);
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
}
.an-attachment-chip__text {
min-width: 0;
display: flex;
flex-direction: column;
gap: 1px;
}
.an-attachment-chip__text strong {
font-size: 12px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.an-attachment-chip__text span {
font-size: 11px;
color: var(--an-muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.an-attachment-chip__remove {
flex: 0 0 auto;
width: 18px;
height: 18px;
border-radius: 4px;
border: 0;
background: transparent;
color: var(--an-muted);
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.an-attachment-chip__remove:hover {
color: var(--an-text);
background: var(--an-soft);
}
.an-attach-menu-wrap {
position: relative;
flex: 0 0 auto;
}
.an-attach-menu {
position: absolute;
bottom: calc(100% + 8px);
left: 0;
min-width: 256px;
border-radius: 10px;
border: 1px solid var(--an-border-strong);
background: var(--an-surface);
box-shadow: var(--an-shadow);
display: flex;
flex-direction: column;
overflow: hidden;
z-index: 20;
}
.an-attach-menu__scroll {
max-height: min(320px, 55vh);
min-height: 0;
display: flex;
flex-direction: column;
}
.an-attach-menu__scroll > .tui-scrollbar__viewport {
padding: 6px 12px 6px 6px;
display: flex;
flex-direction: column;
gap: 3px;
overflow-x: hidden;
box-sizing: border-box;
}
.an-attach-menu__item {
width: 100%;
height: 32px;
padding: 0 10px;
border-radius: 7px;
border: 1px solid transparent;
background: transparent;
color: var(--an-text);
font-size: 12.5px;
font-weight: 500;
letter-spacing: 0;
display: flex;
align-items: center;
gap: 8px;
text-align: left;
cursor: pointer;
white-space: nowrap;
}
.an-attach-menu__item:hover {
background: var(--an-soft);
border-color: var(--an-border);
}
.an-chat-composer {
flex: 0 0 auto;
display: flex;
align-items: flex-end;
gap: 10px;
padding: 10px 14px 12px;
min-width: 0;
}
.an-chat-textarea {
flex: 1 1 auto;
width: 100%;
max-width: 100%;
min-width: 0;
box-sizing: border-box;
height: 40px;
min-height: 40px;
max-height: 150px;
resize: vertical;
padding: 8px 12px;
border-radius: 8px;
border: 1px solid var(--an-border);
background: var(--an-surface-alt);
color: var(--an-text);
font-size: 13px;
line-height: 1.45;
letter-spacing: 0;
}
.an-chat-textarea:focus {
border-color: var(--an-accent);
outline: none;
box-shadow: 0 0 0 2px color-mix(in srgb, var(--an-accent) 16%, transparent);
}
.an-chat-composer .tui-button {
flex: 0 0 auto;
height: 40px;
padding-inline: 14px;
}
.an-chat-composer .tui-button.tui-button--icon {
width: 40px;
padding-inline: 0;
}
.an-drawer-pane {
min-height: 0;
min-width: 0;
display: flex;
flex-direction: column;
background: var(--an-surface);
border: 1px solid var(--an-border);
border-radius: 10px;
overflow: hidden;
}
.an-drawer-pane__header {
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 10px 12px;
border-bottom: 1px solid var(--an-border);
}
.an-drawer-pane__header h3 {
margin: 0;
font-size: 13.5px;
font-weight: 600;
letter-spacing: 0;
white-space: nowrap;
}
.an-drawer-pane__body {
flex: 1 1 0;
min-height: 0;
min-width: 0;
overflow: hidden;
display: flex;
flex-direction: column;
font-size: 13px;
line-height: 1.5;
color: var(--an-text);
}
.an-drawer-pane__body > .tui-scrollbar__viewport {
padding: 12px 14px 12px 12px;
display: flex;
flex-direction: column;
gap: 10px;
overflow-x: hidden;
box-sizing: border-box;
}
.an-drawer-pane__body > .tui-scrollbar__viewport > * {
flex: 0 0 auto;
min-width: 0;
}
.an-context-card {
min-width: 0;
padding: 10px 12px;
border-radius: 8px;
border: 1px solid var(--an-border);
background: var(--an-surface-alt);
display: flex;
flex-direction: column;
gap: 8px;
}
.an-context-card.is-selected {
border-color: var(--an-accent);
}
.an-context-card__title {
font-size: 12.5px;
font-weight: 600;
color: var(--an-text);
letter-spacing: 0;
display: inline-flex;
align-items: center;
gap: 6px;
}
.an-context-card__meta {
font-size: 12px;
color: var(--an-muted);
letter-spacing: 0;
line-height: 1.45;
word-break: break-word;
}
/* Dedicated bounded textareas inside AI Advisor panels (decoupled from 320px global .an-json-editor) */
.an-advisor-textarea {
width: 100%;
max-width: 100%;
min-width: 0;
box-sizing: border-box;
min-height: 108px;
max-height: 320px;
resize: vertical;
padding: 8px 10px;
border-radius: var(--an-control-radius);
border: 1px solid var(--an-border);
background: var(--an-surface);
color: var(--an-text);
font-family: inherit;
font-size: 12.5px;
font-weight: 400;
line-height: 1.5;
letter-spacing: 0;
}
.an-advisor-textarea:focus {
border-color: var(--an-accent);
outline: none;
box-shadow: 0 0 0 2px color-mix(in srgb, var(--an-accent) 16%, transparent);
}
.an-advisor-textarea--sm {
min-height: 88px;
}
.an-advisor-textarea--code {
min-height: 124px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 12px;
}
.an-advisor-page .an-json-editor {
width: 100%;
max-width: 100%;
min-width: 0;
box-sizing: border-box;
min-height: 120px;
max-height: 320px;
resize: vertical;
padding: 8px 10px;
border-radius: 6px;
border: 1px solid var(--an-border);
background: var(--an-surface);
color: var(--an-text);
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 12px;
line-height: 1.45;
letter-spacing: 0;
}
/* React Flow 3-Column Workflow Studio with Resizer Tracks */
.an-workflow-studio {
flex: 1 1 0;
min-height: 0;
min-width: 0;
display: grid;
grid-template-columns: var(--an-wf-rail-width, 276px) 14px minmax(320px, 1fr) 14px var(--an-wf-inspector-width, 396px);
gap: 0;
overflow: hidden;
}
.an-workflow-rail,
.an-workflow-inspector {
min-height: 0;
min-width: 0;
display: flex;
flex-direction: column;
background: var(--an-surface);
border: 1px solid var(--an-border);
border-radius: 10px;
overflow: hidden;
}
.an-workflow-rail__list,
.an-workflow-inspector__body {
flex: 1 1 0;
min-height: 0;
min-width: 0;
overflow: hidden;
display: flex;
flex-direction: column;
}
.an-workflow-rail__list > .tui-scrollbar__viewport,
.an-workflow-inspector__body > .tui-scrollbar__viewport {
padding: 10px 14px 10px 10px;
display: flex;
flex-direction: column;
gap: 8px;
overflow-x: hidden;
box-sizing: border-box;
}
.an-workflow-rail__list > .tui-scrollbar__viewport > *,
.an-workflow-inspector__body > .tui-scrollbar__viewport > * {
flex: 0 0 auto;
min-width: 0;
}
.an-workflow-item {
width: 100%;
min-width: 0;
text-align: left;
padding: 10px 11px;
border-radius: 8px;
border: 1px solid var(--an-border);
background: var(--an-surface-alt);
color: var(--an-text);
cursor: pointer;
display: flex;
flex-direction: column;
gap: 4px;
letter-spacing: 0;
transition: border-color 0.14s ease, background 0.14s ease;
}
.an-workflow-item:hover {
border-color: var(--an-border-strong);
background: var(--an-row-hover);
}
.an-workflow-item.is-active {
border-color: var(--an-accent);
background: color-mix(in srgb, var(--an-accent) 9%, var(--an-surface));
box-shadow: inset 3px 0 0 var(--an-accent);
}
.an-workflow-item__head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 6px;
min-width: 0;
}
.an-workflow-item__title {
flex: 1 1 auto;
min-width: 0;
font-size: 13px;
font-weight: 550;
line-height: 1.35;
color: var(--an-text);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.an-workflow-item__id {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 11px;
color: var(--an-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.an-workflow-item__badges {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 4px;
margin-top: 2px;
}
.an-workflow-canvas-wrap {
min-height: 0;
min-width: 0;
height: 100%;
display: flex;
flex-direction: column;
background: var(--an-surface);
border: 1px solid var(--an-border);
border-radius: 10px;
overflow: hidden;
position: relative;
}
.an-workflow-canvas-stage {
flex: 1 1 0;
min-height: 0;
width: 100%;
height: 100%;
position: relative;
}
.an-workflow-mobile-bar {
display: none;
flex: 0 0 auto;
align-items: center;
gap: 8px;
padding: 8px 10px;
border-bottom: 1px solid var(--an-border);
background: var(--an-surface-alt);
}
.an-workflow-mobile-bar__select {
flex: 1 1 auto;
min-width: 0;
}
.an-workflow-canvas-actions {
position: absolute;
top: 10px;
right: 10px;
z-index: 6;
display: flex;
align-items: center;
gap: 5px;
padding: 4px;
border-radius: 8px;
border: 1px solid var(--an-border);
background: var(--an-surface);
box-shadow: var(--an-shadow);
}
.an-workflow-compact-rail-toggle.tui-button {
display: none;
}
.an-workflow-rail-backdrop {
display: none;
}
.an-workflow-mobile-node-bar {
display: none;
position: absolute;
left: 10px;
right: 10px;
bottom: 10px;
z-index: 6;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 8px 10px;
border-radius: 9px;
border: 1px solid var(--an-border-strong);
background: var(--an-surface);
box-shadow: var(--an-shadow);
}
.an-workflow-mobile-node-bar__label {
min-width: 0;
font-size: 12.5px;
color: var(--an-text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* React Flow canvas interaction & theme harmony */
.an-workflow-canvas-stage .react-flow {
background: var(--an-bg);
}
.an-workflow-canvas-stage .react-flow__pane {
cursor: grab;
}
.an-workflow-canvas-stage .react-flow__pane.dragging {
cursor: grabbing;
}
.an-workflow-canvas-stage .react-flow__node {
cursor: grab;
}
.an-workflow-canvas-stage .react-flow__node.dragging {
cursor: grabbing;
}
.an-workflow-canvas-stage .react-flow__handle {
width: 10px;
height: 10px;
border: 2px solid var(--an-surface);
background: var(--an-accent);
cursor: crosshair;
}
.an-workflow-canvas-stage .react-flow__edge-path {
stroke: var(--an-border-strong);
stroke-width: 1.75;
}
.an-workflow-canvas-stage .react-flow__edge.selected .react-flow__edge-path {
stroke: var(--an-accent);
stroke-width: 2.25;
}
.an-workflow-canvas-stage .react-flow__edge-textbg {
fill: var(--an-surface);
stroke: var(--an-border);
stroke-width: 1;
}
.an-workflow-canvas-stage .react-flow__edge-text {
fill: var(--an-text);
font-size: 11px;
font-weight: 500;
}
.an-workflow-canvas-stage .react-flow__controls {
border: 1px solid var(--an-border);
border-radius: 8px;
overflow: hidden;
box-shadow: var(--an-shadow);
}
.an-workflow-canvas-stage .react-flow__controls-button {
background: var(--an-surface);
border-bottom: 1px solid var(--an-border);
color: var(--an-text);
fill: currentColor;
}
.an-workflow-canvas-stage .react-flow__controls-button:hover {
background: var(--an-soft);
}
.an-workflow-canvas-stage .react-flow__minimap {
background: var(--an-surface);
border: 1px solid var(--an-border);
border-radius: 8px;
overflow: hidden;
}
.an-workflow-canvas-stage .react-flow__minimap-svg {
cursor: pointer;
}
.an-workflow-canvas-stage .react-flow__minimap-node {
fill: var(--an-border-strong);
cursor: pointer;
}
.an-workflow-canvas-stage .react-flow__minimap-node.selected {
fill: var(--an-accent);
}
.an-workflow-canvas-stage .react-flow__minimap-mask {
stroke: var(--an-accent);
stroke-width: 1.5;
}
.an-rf-node {
width: 248px;
padding: 10px 12px;
border-radius: 10px;
border: 1px solid var(--an-border-strong);
background: var(--an-surface);
color: var(--an-text);
box-shadow: var(--an-shadow);
letter-spacing: 0;
line-height: 1.4;
}
.an-rf-node.is-selected {
border-color: var(--an-accent);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--an-accent) 26%, transparent);
}
.an-rf-node.is-disabled {
opacity: 0.55;
}
.an-rf-node.is-trace-hit {
border-color: var(--an-success);
}
.an-rf-node__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 4px;
min-width: 0;
}
.an-rf-node__title {
font-size: 13px;
font-weight: 600;
letter-spacing: 0;
line-height: 1.35;
}
.an-rf-node__meta {
font-size: 11.5px;
color: var(--an-muted);
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.an-inspector-tabs {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: 2px;
padding: 6px 8px;
border-bottom: 1px solid var(--an-border);
background: var(--an-surface-alt);
flex-wrap: nowrap;
overflow-x: auto;
scrollbar-width: none;
}
.an-inspector-tab {
flex: 1 0 auto;
height: 28px;
padding: 0 7px;
border-radius: 6px;
border: 1px solid transparent;
background: transparent;
color: var(--an-muted);
font-size: 11.5px;
font-weight: 500;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 3px;
cursor: pointer;
white-space: nowrap;
letter-spacing: 0;
}
.an-inspector-tab:hover {
color: var(--an-text);
background: color-mix(in srgb, var(--an-soft) 55%, transparent);
}
.an-inspector-tab.is-active {
background: var(--an-surface);
color: var(--an-text);
border-color: var(--an-border);
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
/* Setting toggle rows & Tool checklist in Right Inspector */
.an-setting-card {
display: flex;
flex-direction: column;
border-radius: 8px;
border: 1px solid var(--an-border);
background: var(--an-surface-alt);
overflow: hidden;
}
.an-setting-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 9px 11px;
min-width: 0;
}
.an-setting-card .an-setting-row + .an-setting-row {
border-top: 1px solid var(--an-border);
}
.an-setting-row--plain {
padding: 0;
}
.an-setting-row__copy {
flex: 1 1 auto;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.an-setting-row__copy strong {
font-size: 12.5px;
font-weight: 550;
color: var(--an-text);
line-height: 1.35;
}
.an-setting-row__copy span {
font-size: 11.5px;
color: var(--an-muted);
line-height: 1.35;
}
.an-tool-list {
display: flex;
flex-direction: column;
gap: 6px;
}
.an-tool-item {
width: 100%;
min-width: 0;
height: auto;
padding: 8px 10px;
border-radius: 7px;
border: 1px solid var(--an-border);
background: var(--an-surface);
color: var(--an-text);
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
text-align: left;
cursor: pointer;
letter-spacing: 0;
transition: border-color 0.14s ease, background 0.14s ease;
}
.an-tool-item:hover {
border-color: var(--an-border-strong);
background: var(--an-row-hover);
}
.an-tool-item.is-active {
border-color: color-mix(in srgb, var(--an-accent) 55%, var(--an-border));
background: color-mix(in srgb, var(--an-accent) 8%, var(--an-surface));
}
.an-tool-item__text {
flex: 1 1 auto;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.an-tool-item__name {
font-size: 12.5px;
font-weight: 500;
color: var(--an-text);
line-height: 1.35;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.an-tool-item__id {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 11px;
color: var(--an-muted);
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.an-tool-item__check {
flex: 0 0 auto;
width: 18px;
height: 18px;
border-radius: 5px;
border: 1px solid var(--an-border-strong);
background: var(--an-surface-alt);
color: #ffffff;
display: inline-flex;
align-items: center;
justify-content: center;
}
.an-tool-item__check.is-active {
border-color: var(--an-accent);
background: var(--an-accent);
}
.an-fixture-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.an-inspector-submit {
width: 100%;
}
.an-diff-card {
padding: 8px 10px;
border-radius: 8px;
border: 1px solid var(--an-border);
background: var(--an-surface-alt);
font-size: 12px;
display: flex;
flex-direction: column;
gap: 4px;
}
.an-runs-filters {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
flex: 1 1 auto;
min-width: 0;
}
.an-runs-search-row {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
flex: 1 1 200px;
max-width: 320px;
}
.an-runs-split {
flex: 1 1 0;
min-height: 0;
min-width: 0;
display: grid;
grid-template-columns: minmax(0, 1fr) 14px var(--an-runs-detail-width, 390px);
gap: 0;
overflow: hidden;
}
/* Custom Workflow Creation, Shortcuts Popover, Node Palette & Earth Bindings */
.an-workflow-create-box {
flex: 0 0 auto;
padding: 10px;
border-bottom: 1px solid var(--an-border);
background: var(--an-surface-alt);
display: flex;
flex-direction: column;
gap: 8px;
}
.an-workflow-create-box__actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 6px;
}
.an-workflow-palette-wrap {
position: relative;
}
.an-workflow-palette-menu {
position: absolute;
top: calc(100% + 6px);
right: 0;
min-width: 220px;
padding: 6px;
border-radius: 10px;
border: 1px solid var(--an-border-strong);
background: var(--an-surface);
box-shadow: var(--an-shadow);
display: flex;
flex-direction: column;
gap: 4px;
z-index: 12;
}
.an-workflow-palette-item {
width: 100%;
text-align: left;
padding: 7px 10px;
border-radius: 7px;
border: 1px solid transparent;
background: transparent;
color: var(--an-text);
font-size: 12.5px;
font-weight: 500;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
cursor: pointer;
letter-spacing: 0;
}
.an-workflow-palette-item:hover {
background: var(--an-soft);
border-color: var(--an-border);
}
.an-workflow-shortcuts-popover {
position: absolute;
top: calc(100% + 6px);
right: 0;
width: 288px;
padding: 10px 12px;
border-radius: 10px;
border: 1px solid var(--an-border-strong);
background: var(--an-surface);
box-shadow: var(--an-shadow);
display: flex;
flex-direction: column;
gap: 6px;
z-index: 14;
}
.an-workflow-shortcuts-popover__title {
font-size: 12.5px;
font-weight: 600;
color: var(--an-text);
padding-bottom: 4px;
border-bottom: 1px solid var(--an-border);
}
.an-shortcut-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
font-size: 12px;
color: var(--an-muted);
white-space: nowrap;
}
.an-shortcut-row kbd {
padding: 2px 6px;
border-radius: 5px;
border: 1px solid var(--an-border);
background: var(--an-surface-alt);
color: var(--an-text);
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 11px;
white-space: nowrap;
}
.an-binding-chips {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.an-binding-chip {
height: 28px;
padding: 0 10px;
border-radius: 7px;
border: 1px solid var(--an-border);
background: var(--an-surface);
color: var(--an-text);
font-size: 12px;
font-weight: 500;
display: inline-flex;
align-items: center;
gap: 5px;
cursor: pointer;
letter-spacing: 0;
}
.an-binding-chip.is-active {
border-color: var(--an-accent);
background: color-mix(in srgb, var(--an-accent) 14%, var(--an-surface));
color: var(--an-accent);
}
.an-field-row {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
min-width: 0;
}
.an-trace-chip--running {
border-color: var(--an-accent);
color: var(--an-accent);
background: color-mix(in srgb, var(--an-accent) 10%, var(--an-surface));
}
.an-trace-chip--skipped {
opacity: 0.6;
}
/* Playground inline feedback buttons & reason bar */
.an-chat-feedback-actions {
display: inline-flex;
align-items: center;
gap: 4px;
margin-left: auto;
}
.an-feedback-btn {
width: 24px;
height: 24px;
padding: 0;
border-radius: 6px;
border: 1px solid var(--an-border);
background: var(--an-surface);
color: var(--an-muted);
font-size: 12px;
line-height: 1;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
letter-spacing: 0;
transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.an-feedback-btn:hover {
color: var(--an-text);
border-color: var(--an-border-strong);
background: var(--an-soft);
}
.an-feedback-btn.is-up {
color: var(--an-success);
border-color: color-mix(in srgb, var(--an-success) 55%, var(--an-border));
background: color-mix(in srgb, var(--an-success) 10%, var(--an-surface));
}
.an-feedback-btn.is-down {
color: var(--an-danger);
border-color: color-mix(in srgb, var(--an-danger) 55%, var(--an-border));
background: color-mix(in srgb, var(--an-danger) 10%, var(--an-surface));
}
.an-chat-feedback-box {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
margin-top: 4px;
padding-top: 6px;
border-top: 1px dashed var(--an-border);
}
.an-chat-feedback-input {
flex: 1 1 160px;
min-width: 120px;
height: 28px;
font-size: 12px;
}
/* Header Self & Meta Evolution Popover + Inspector Health Widgets */
.an-evolution-popover-wrap {
position: relative;
}
.an-evolution-popover {
position: absolute;
top: calc(100% + 8px);
right: 0;
width: 396px;
height: min(560px, calc(100dvh - 110px));
max-height: calc(100dvh - 110px);
border-radius: 10px;
border: 1px solid var(--an-border-strong);
background: var(--an-surface);
box-shadow: var(--an-shadow);
display: flex;
flex-direction: column;
overflow: hidden;
z-index: 25;
}
.an-evolution-popover__header {
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 10px 12px;
border-bottom: 1px solid var(--an-border);
font-size: 13px;
font-weight: 600;
color: var(--an-text);
letter-spacing: 0;
}
.an-evolution-popover__body {
flex: 1 1 0;
min-height: 0;
overflow: hidden;
display: flex;
flex-direction: column;
}
.an-evolution-popover__body > .tui-scrollbar__viewport {
padding: 12px 14px 12px 12px;
display: flex;
flex-direction: column;
gap: 10px;
overflow-x: hidden;
box-sizing: border-box;
}
.an-evolution-popover__body > .tui-scrollbar__viewport > * {
flex: 0 0 auto;
min-width: 0;
}
.an-evolution-ledger-list {
display: flex;
flex-direction: column;
gap: 6px;
}
.an-evolution-ledger-item {
padding: 7px 9px;
border-radius: 7px;
border: 1px solid var(--an-border);
background: var(--an-surface);
display: flex;
flex-direction: column;
gap: 4px;
}
.an-evo-metrics-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px;
}
.an-evo-metric {
padding: 6px 8px;
border-radius: 6px;
border: 1px solid var(--an-border);
background: var(--an-surface);
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
font-size: 11.5px;
color: var(--an-muted);
}
.an-evo-metric strong {
font-size: 12.5px;
font-weight: 600;
color: var(--an-text);
}
.an-evo-actions-row {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.an-evo-signal-row {
display: flex;
align-items: flex-start;
gap: 6px;
}
@media (max-width: 1360px) and (min-width: 1025px) {
.an-workflow-studio {
position: relative;
grid-template-columns: minmax(460px, 1fr) 14px var(--an-wf-inspector-width, 340px);
}
.an-workflow-studio > .an-detail-resizer:first-of-type {
display: none;
}
.an-workflow-rail {
display: none;
}
.an-workflow-studio.is-compact-rail-open .an-workflow-rail-backdrop {
display: block;
position: absolute;
inset: 0;
z-index: 24;
border-radius: 10px;
background: rgba(15, 23, 42, 0.24);
}
.admin-theme-root[data-theme='dark'] .an-workflow-studio.is-compact-rail-open .an-workflow-rail-backdrop {
background: rgba(2, 6, 23, 0.48);
}
.an-workflow-studio.is-compact-rail-open .an-workflow-rail {
display: flex;
position: absolute;
inset: 0 auto 0 0;
width: min(300px, calc(100% - 48px));
z-index: 25;
box-shadow: 12px 0 32px rgba(2, 6, 23, 0.34);
}
.an-workflow-compact-rail-toggle.tui-button {
display: inline-flex;
}
.an-playground-shell.has-drawer {
grid-template-columns: minmax(0, 1fr) 14px var(--an-pg-drawer-width, 332px);
}
.an-runs-split {
grid-template-columns: minmax(0, 1fr) 14px var(--an-runs-detail-width, 344px);
}
}
@media (max-width: 1024px) {
.an-advisor-route .an-detail-resizer {
display: none;
}
.an-advisor-mobile-tabs,
.an-advisor-mobile-back,
.an-workflow-mobile-bar,
.an-workflow-mobile-node-bar {
display: flex;
}
.an-advisor-desktop-drawer-toggle.tui-button {
display: none;
}
.an-workflow-studio {
position: relative;
grid-template-columns: minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr);
}
.an-workflow-rail,
.an-workflow-inspector {
position: relative;
z-index: 2;
}
.an-workflow-studio[data-mobile-pane='list'] .an-workflow-inspector,
.an-workflow-studio[data-mobile-pane='canvas'] .an-workflow-rail,
.an-workflow-studio[data-mobile-pane='canvas'] .an-workflow-inspector,
.an-workflow-studio[data-mobile-pane='inspector'] .an-workflow-rail {
display: none;
}
/* Keep React Flow mounted at real mobile dimensions when switching tabs so d3-zoom/MiniMap never hit 0x0 division */
.an-workflow-studio:not([data-mobile-pane='canvas']) .an-workflow-canvas-wrap {
position: absolute;
inset: 0;
visibility: hidden;
pointer-events: none;
z-index: 0;
}
.an-playground-shell,
.an-playground-shell.has-drawer {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr);
}
.an-playground-shell.has-drawer .an-chat-pane {
display: none;
}
.an-runs-split {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr);
}
.an-runs-split .an-runs-detail-pane {
display: none;
}
.an-runs-split.is-mobile-detail-open .an-runs-list-pane {
display: none;
}
.an-runs-split.is-mobile-detail-open .an-runs-detail-pane {
display: flex;
}
.an-workflow-canvas-actions {
top: 56px;
right: 8px;
}
.an-workflow-canvas-stage .react-flow__controls {
bottom: 64px;
left: 10px;
}
}
@media (max-width: 760px) {
.an-advisor-route .an-page__header > div > p {
display: none;
}
.an-advisor-route .an-toolbar {
gap: 6px;
}
.an-advisor-route .an-toolbar .an-advisor-bar__select--sm {
width: auto;
min-width: 112px;
flex: 0 1 136px;
}
.an-advisor-bar {
padding: 8px 10px;
gap: 8px;
}
.an-advisor-bar__primary {
width: 100%;
flex-wrap: nowrap;
}
.an-advisor-bar__select {
flex: 1 1 0;
min-width: 0;
}
.an-advisor-bar__mobile-toggle.tui-button {
display: inline-flex;
flex: 0 0 auto;
}
.an-advisor-bar__extras {
display: none;
width: 100%;
}
.an-advisor-bar__extras.is-mobile-open {
display: flex;
}
.an-advisor-bar__model {
flex: 1 1 140px;
width: auto;
min-width: 0;
}
.an-runs-filter-bar {
gap: 6px;
}
.an-runs-filters {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
width: 100%;
gap: 6px;
}
.an-runs-filters .an-advisor-bar__select,
.an-runs-filters .an-advisor-bar__select--sm {
width: 100%;
min-width: 0;
}
.an-runs-search-row {
grid-column: 1 / -1;
max-width: none;
}
.an-chat-messages > .tui-scrollbar__viewport {
padding: 12px 14px 12px 12px;
}
.an-chat-slash-row {
flex-wrap: nowrap;
overflow-x: auto;
padding: 8px 10px 4px;
scrollbar-width: none;
}
.an-chat-composer {
padding: 8px 10px 10px;
gap: 8px;
}
.an-chat-textarea {
min-height: 40px;
max-height: 110px;
}
.an-workflow-canvas-stage .react-flow__minimap {
display: none;
}
.an-evolution-popover {
position: fixed;
left: 12px;
right: 12px;
top: 64px;
width: auto;
height: min(540px, calc(100dvh - 84px));
max-height: calc(100dvh - 84px);
}
}