Files
swarm-assistent/Assets/assistent.css
T
Leonid PershinandCursor b0f2736f65 Ship Assistent 0.15.11: collaborative params, richer UI, and strict image critique.
Adds session_exact pinning, sampler/scheduler chips, expanded param tags with non-default highlighting, QLoRA HF presets, LoRA strength editing, SQLite bootstrap for training memory, last-job UI, and harsher critique_image QC so result review leads with defects instead of praise.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 19:59:45 +03:00

3088 lines
64 KiB
CSS

.swarm-assistent-root {
display: flex;
flex-direction: column;
height: calc(100vh - 8rem);
min-height: 28rem;
padding: 0.5rem 0.65rem 0.65rem;
box-sizing: border-box;
position: relative;
}
.sa-gate {
padding: 1.25rem 1.5rem;
margin-bottom: 0.5rem;
border-radius: 0.5rem;
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
background: color-mix(in srgb, currentColor 6%, transparent);
opacity: 0.95;
}
.sa-appbar {
display: flex;
align-items: center;
gap: 0.65rem;
flex-wrap: wrap;
padding: 0.35rem 0.5rem 0.55rem;
border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
flex: 0 0 auto;
}
.sa-appbar-brand {
display: flex;
align-items: center;
gap: 0.45rem;
min-width: 0;
}
.sa-appbar-title {
font-weight: 700;
letter-spacing: 0.04em;
font-size: 0.92rem;
}
.sa-app-tabs {
display: inline-flex;
gap: 0.25rem;
flex: 1;
min-width: 0;
flex-wrap: wrap;
}
.sa-app-tab {
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
background: transparent;
color: inherit;
border-radius: 999px;
padding: 0.22rem 0.75rem;
font-size: 0.82rem;
font-weight: 600;
cursor: pointer;
opacity: 0.72;
}
.sa-app-tab-active {
opacity: 1;
background: color-mix(in srgb, currentColor 14%, transparent);
border-color: color-mix(in srgb, currentColor 42%, transparent);
}
.sa-train-banner {
display: inline-flex;
align-items: center;
gap: 0.45rem;
padding: 0.25rem 0.65rem;
border-radius: 999px;
font-size: 0.78rem;
font-weight: 600;
border: 1px solid color-mix(in srgb, #f5a623 55%, currentColor);
background: color-mix(in srgb, #f5a623 16%, transparent);
flex: 0 0 auto;
}
.sa-views {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
}
.sa-views > .sa-view {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.sa-views > .sa-view[hidden] {
display: none !important;
}
#sa_view_chat .sa-layout {
flex: 1;
min-height: 0;
}
.sa-chat-workspace {
flex: 1 1 auto;
display: flex;
min-width: 0;
min-height: 0;
gap: 0;
}
.sa-chat-body {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
}
.sa-chats-drawer {
flex: 0 0 var(--sa-chats-drawer-width, 17.5rem);
width: var(--sa-chats-drawer-width, 17.5rem);
display: flex;
flex-direction: column;
gap: 0.45rem;
min-height: 0;
border-left: 1px solid color-mix(in srgb, currentColor 12%, transparent);
background: color-mix(in srgb, #000 22%, transparent);
padding: 0.55rem 0.4rem 0.55rem 0.45rem;
overflow: hidden;
transition: width 0.2s ease, flex-basis 0.2s ease, opacity 0.2s ease;
}
.sa-chats-drawer[hidden] {
display: none !important;
}
.sa-chats-drawer-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.35rem;
padding: 0.15rem 0.35rem 0.1rem;
}
.sa-chats-drawer-label {
font-size: 0.72rem;
font-weight: 650;
letter-spacing: 0.06em;
text-transform: uppercase;
opacity: 0.55;
}
.sa-chats-drawer-actions {
display: inline-flex;
gap: 0.1rem;
}
.sa-chats-icon-btn {
appearance: none;
border: 0;
background: transparent;
color: inherit;
width: 1.65rem;
height: 1.65rem;
border-radius: 0.4rem;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0.55;
}
.sa-chats-icon-btn:hover {
opacity: 1;
background: color-mix(in srgb, currentColor 10%, transparent);
}
.sa-chats-search-wrap {
position: relative;
margin: 0 0.2rem;
}
.sa-chats-search-ico {
position: absolute;
left: 0.55rem;
top: 50%;
transform: translateY(-50%);
opacity: 0.4;
pointer-events: none;
}
.sa-layout {
display: flex;
flex: 1;
gap: 0;
min-height: 0;
}
.sa-image-pane {
flex: 0 0 var(--sa-image-width, 42%);
max-width: 56%;
min-width: 14rem;
display: flex;
flex-direction: column;
gap: 0.45rem;
}
.sa-board-head {
display: flex;
align-items: center;
gap: 0.45rem;
min-height: 1.6rem;
flex-wrap: wrap;
}
.sa-board-title {
font-weight: 650;
letter-spacing: 0.04em;
text-transform: uppercase;
font-size: 0.78rem;
}
.sa-board-tabs {
display: flex;
gap: 0.2rem;
flex: 1;
min-width: 0;
}
.sa-board-tab {
appearance: none;
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
background: transparent;
color: inherit;
border-radius: 999px;
padding: 0.15rem 0.55rem;
font-size: 0.75rem;
cursor: pointer;
opacity: 0.7;
display: inline-flex;
align-items: center;
gap: 0.3rem;
}
.sa-board-tab.sa-board-tab-active {
opacity: 1;
background: color-mix(in srgb, currentColor 12%, transparent);
border-color: color-mix(in srgb, currentColor 40%, transparent);
font-weight: 600;
}
.sa-board-badge {
font-size: 0.65rem;
padding: 0.05rem 0.35rem;
border-radius: 999px;
background: color-mix(in srgb, currentColor 18%, transparent);
opacity: 0.9;
}
.sa-board {
flex: 1;
display: grid;
grid-template-columns: 1fr 1fr;
grid-auto-rows: minmax(7.5rem, 1fr);
gap: 0.4rem;
min-height: 16rem;
outline: none;
}
.sa-board:focus-visible {
box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 55%, transparent);
}
.sa-board.sa-board-gen-only {
grid-template-columns: 1fr;
grid-auto-rows: 1fr;
}
.sa-board.sa-board-gen-only .sa-slot.sa-slot-gen {
grid-column: auto;
min-height: 100%;
height: 100%;
}
.sa-splitter {
flex: 0 0 0.45rem;
margin: 0 0.15rem;
cursor: col-resize;
border-radius: 999px;
background: color-mix(in srgb, currentColor 12%, transparent);
transition: background 0.15s ease;
align-self: stretch;
}
.sa-splitter:hover,
.sa-splitter.sa-dragging {
background: color-mix(in srgb, currentColor 35%, transparent);
}
.sa-slot {
position: relative;
display: flex;
align-items: center;
justify-content: center;
border: 1px dashed color-mix(in srgb, currentColor 28%, transparent);
border-radius: 0.5rem;
overflow: hidden;
background:
radial-gradient(ellipse at 30% 20%, color-mix(in srgb, currentColor 8%, transparent), transparent 55%),
color-mix(in srgb, currentColor 4%, transparent);
min-height: 7.5rem;
cursor: pointer;
outline: none;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sa-slot:focus-visible {
box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 55%, transparent);
}
.sa-slot.sa-has-image {
border-style: solid;
}
.sa-slot.sa-selected {
box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 45%, transparent);
border-color: color-mix(in srgb, currentColor 55%, transparent);
}
.sa-slot.sa-dragover {
border-color: color-mix(in srgb, currentColor 70%, transparent);
box-shadow: inset 0 0 0 2px color-mix(in srgb, currentColor 25%, transparent);
}
.sa-slot.sa-slot-gen {
grid-column: 1 / -1;
min-height: 10rem;
}
.sa-board.sa-board-many .sa-slot.sa-slot-gen {
grid-column: auto;
min-height: 7.5rem;
}
.sa-slot.sa-has-image img {
cursor: zoom-in;
}
.sa-slot img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
display: block;
}
.sa-slot-bar {
position: absolute;
top: 0.3rem;
left: 0.3rem;
right: 0.3rem;
display: flex;
align-items: center;
gap: 0.25rem;
z-index: 2;
pointer-events: none;
}
.sa-slot-bar > * {
pointer-events: auto;
}
.sa-slot-chip {
padding: 0.12rem 0.4rem;
border-radius: 999px;
font-size: 0.68rem;
font-weight: 650;
letter-spacing: 0.04em;
text-transform: uppercase;
background: color-mix(in srgb, currentColor 18%, transparent);
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}
.sa-slot-chip.sa-live {
background: color-mix(in srgb, #6ee7a8 28%, transparent);
}
.sa-slot-attach {
margin-left: auto;
display: flex;
align-items: center;
gap: 0.2rem;
font-size: 0.7rem;
opacity: 0.85;
background: color-mix(in srgb, currentColor 14%, transparent);
border-radius: 999px;
padding: 0.08rem 0.35rem;
}
.sa-slot-busy {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: color-mix(in srgb, #000 35%, transparent);
z-index: 3;
}
.sa-add-cell {
border: 1px dashed color-mix(in srgb, currentColor 22%, transparent);
border-radius: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
opacity: 0.55;
cursor: pointer;
font-size: 0.85rem;
font-weight: 600;
}
.sa-add-cell:hover {
opacity: 0.9;
}
.sa-image-empty {
padding: 1.25rem 1rem;
text-align: center;
opacity: 0.7;
}
.sa-empty-title {
font-weight: 600;
letter-spacing: 0.02em;
margin-bottom: 0.35rem;
}
.sa-empty-hint {
font-size: 0.88rem;
line-height: 1.4;
opacity: 0.9;
}
.sa-image-actions {
display: flex;
flex-wrap: wrap;
gap: 0.45rem;
align-items: center;
}
.sa-live-params {
font-size: 0.75rem;
opacity: 0.88;
padding: 0.2rem 0.15rem 0.35rem;
letter-spacing: 0.01em;
display: flex;
flex-wrap: wrap;
gap: 0.22rem 0.38rem;
align-items: center;
line-height: 1.45;
font-variant-numeric: tabular-nums;
}
.sa-composer-params {
font-size: 0.72rem;
opacity: 0.88;
padding: 0.05rem 0 0.25rem;
letter-spacing: 0.01em;
line-height: 1.45;
display: flex;
flex-wrap: wrap;
gap: 0.2rem 0.36rem;
align-items: center;
font-variant-numeric: tabular-nums;
color: color-mix(in srgb, currentColor 88%, transparent);
}
.sa-param-tag {
display: inline-flex;
align-items: center;
gap: 0.15rem;
padding: 0.06rem 0.38rem;
border-radius: 4px;
background: color-mix(in srgb, currentColor 7%, transparent);
white-space: nowrap;
}
.sa-param-tag.sa-param-custom {
background: color-mix(in srgb, var(--sa-accent, #6ea8fe) 20%, transparent);
color: color-mix(in srgb, var(--sa-accent, #6ea8fe) 95%, currentColor);
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sa-accent, #6ea8fe) 38%, transparent);
}
.sa-more-wrap {
position: relative;
display: inline-flex;
align-items: center;
gap: 0.15rem;
}
.sa-more-menu {
position: absolute;
z-index: 40;
bottom: calc(100% + 0.25rem);
left: 0;
min-width: 11rem;
display: flex;
flex-direction: column;
gap: 0.15rem;
padding: 0.35rem;
border-radius: 0.45rem;
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
background: color-mix(in srgb, #1a1a1a 92%, currentColor);
box-shadow: 0 8px 24px color-mix(in srgb, #000 45%, transparent);
}
#sa_clear_more_wrap .sa-more-menu {
left: auto;
right: 0;
bottom: auto;
top: calc(100% + 0.25rem);
}
.sa-more-item {
appearance: none;
border: 0;
background: transparent;
color: inherit;
text-align: left;
padding: 0.4rem 0.55rem;
border-radius: 0.3rem;
cursor: pointer;
font-size: 0.85rem;
}
.sa-more-item:hover {
background: color-mix(in srgb, currentColor 12%, transparent);
}
.sa-mode-badge {
display: inline-flex;
align-items: center;
padding: 0.12rem 0.45rem;
border-radius: 999px;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.03em;
text-transform: lowercase;
border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
background: color-mix(in srgb, currentColor 8%, transparent);
opacity: 0.92;
flex: 0 0 auto;
}
.sa-mode-badge.sa-mode-hot {
border-color: color-mix(in srgb, #f5a623 55%, currentColor);
background: color-mix(in srgb, #f5a623 18%, transparent);
}
.sa-chat-pane {
flex: 1 1 auto;
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
border-radius: 0.55rem;
background: color-mix(in srgb, currentColor 3%, transparent);
overflow: hidden;
}
.sa-chat-header {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
background: color-mix(in srgb, currentColor 5%, transparent);
flex-wrap: wrap;
}
.sa-chat-title {
font-weight: 650;
letter-spacing: 0.03em;
display: flex;
align-items: center;
gap: 0.45rem;
flex-wrap: wrap;
}
.sa-sessions-bar {
display: inline-flex;
align-items: center;
gap: 0.3rem;
margin-left: 0.15rem;
}
.sa-chats-toggle {
position: relative;
}
.sa-chats-toggle.sa-sessions-toggle-active,
.sa-drawer-open .sa-chats-toggle {
opacity: 1;
background: color-mix(in srgb, currentColor 12%, transparent);
}
.sa-chats-count {
position: absolute;
top: -0.2rem;
right: -0.25rem;
min-width: 0.95rem;
height: 0.95rem;
padding: 0 0.22rem;
border-radius: 999px;
background: color-mix(in srgb, #6af 55%, #222);
color: #081018;
font-size: 0.62rem;
font-weight: 700;
line-height: 0.95rem;
text-align: center;
}
.sa-session-label {
font-size: 0.78rem;
font-weight: 500;
opacity: 0.75;
max-width: 10rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
border-radius: 0.3rem;
padding: 0.1rem 0.35rem;
}
.sa-chats-panel,
.sa-chats-drawer {
/* drawer lives in .sa-chat-workspace — not a dropdown */
position: static;
z-index: auto;
top: auto;
left: auto;
right: auto;
max-width: none;
max-height: none;
box-shadow: none;
border-radius: 0;
border: none;
border-left: 1px solid color-mix(in srgb, currentColor 12%, transparent);
background: color-mix(in srgb, #000 22%, transparent);
}
.sa-chats-panel-head {
font-size: 0.78rem;
font-weight: 650;
opacity: 0.85;
letter-spacing: 0.03em;
}
.sa-chats-search {
appearance: none;
width: 100%;
box-sizing: border-box;
border: 1px solid transparent;
background: color-mix(in srgb, currentColor 7%, transparent);
color: inherit;
border-radius: 0.5rem;
padding: 0.42rem 0.55rem 0.42rem 1.7rem;
font: inherit;
font-size: 0.8rem;
}
.sa-chats-search:focus {
outline: none;
border-color: color-mix(in srgb, currentColor 22%, transparent);
background: color-mix(in srgb, currentColor 10%, transparent);
}
.sa-chats-panel-hint {
display: none;
}
.sa-chats-list {
overflow: auto;
display: flex;
flex-direction: column;
gap: 0.1rem;
min-height: 0;
padding: 0.15rem 0.15rem 0.4rem;
flex: 1;
}
.sa-chats-empty {
font-size: 0.8rem;
opacity: 0.5;
padding: 0.85rem 0.55rem;
line-height: 1.4;
}
.sa-chat-row {
display: flex;
align-items: center;
gap: 0;
border-radius: 0.5rem;
border: 0;
background: transparent;
position: relative;
}
.sa-chat-row-active {
background: color-mix(in srgb, currentColor 11%, transparent);
}
.sa-chat-row-active::before {
content: '';
position: absolute;
left: 0.35rem;
top: 50%;
transform: translateY(-50%);
width: 0.35rem;
height: 0.35rem;
border-radius: 50%;
background: #f59e0b;
box-shadow: 0 0 0 2px color-mix(in srgb, #f59e0b 25%, transparent);
}
.sa-chat-row-main {
appearance: none;
border: 0;
background: transparent;
color: inherit;
text-align: left;
flex: 1;
min-width: 0;
padding: 0.48rem 0.45rem 0.48rem 0.55rem;
cursor: pointer;
display: grid;
grid-template-columns: 1.1rem 1fr auto;
align-items: center;
gap: 0.45rem;
border-radius: 0.5rem;
}
.sa-chat-row-active .sa-chat-row-main {
padding-left: 1.05rem;
}
.sa-chat-row-main:hover {
background: color-mix(in srgb, currentColor 7%, transparent);
}
.sa-chat-row-active .sa-chat-row-main:hover {
background: transparent;
}
.sa-chat-row-ico {
width: 1.05rem;
height: 1.05rem;
opacity: 0.45;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.sa-chat-row-active .sa-chat-row-ico {
opacity: 0.75;
}
.sa-chat-row-title {
font-size: 0.84rem;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}
.sa-chat-row-active .sa-chat-row-title {
font-weight: 600;
}
.sa-chat-row-when {
font-size: 0.72rem;
opacity: 0.42;
font-variant-numeric: tabular-nums;
flex-shrink: 0;
padding-right: 0.15rem;
}
.sa-chat-row-del {
appearance: none;
border: 0;
background: transparent;
color: inherit;
opacity: 0;
cursor: pointer;
width: 1.55rem;
height: 1.55rem;
border-radius: 0.35rem;
font-size: 0.95rem;
line-height: 1;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-right: 0.15rem;
}
.sa-chat-row:hover .sa-chat-row-del {
opacity: 0.45;
}
.sa-chat-row-del:hover {
opacity: 1 !important;
color: #f66;
background: color-mix(in srgb, #f66 12%, transparent);
}
.sa-live-dot {
width: 0.55rem;
height: 0.55rem;
border-radius: 50%;
background: #6ee7a8;
box-shadow: 0 0 0 0 color-mix(in srgb, #6ee7a8 70%, transparent);
animation: sa-pulse 1.4s ease-out infinite;
}
.sa-chat-empty {
margin: auto;
padding: 1.5rem 1.1rem;
text-align: center;
opacity: 0.72;
max-width: 22rem;
}
.sa-chat-empty-title {
font-weight: 650;
letter-spacing: 0.03em;
margin-bottom: 0.4rem;
}
.sa-chat-empty-hint {
font-size: 0.9rem;
line-height: 1.45;
opacity: 0.9;
}
.sa-livebar {
display: flex;
align-items: center;
gap: 0.55rem;
padding: 0.45rem 0.85rem;
border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
background: color-mix(in srgb, currentColor 6%, transparent);
font-size: 0.88rem;
min-height: 2.1rem;
}
.sa-livebar[hidden] {
display: none !important;
}
.sa-livebar-text {
flex: 1;
min-width: 0;
opacity: 0.92;
}
.sa-elapsed {
font-variant-numeric: tabular-nums;
opacity: 0.65;
font-size: 0.8rem;
}
.sa-spinner {
width: 0.85rem;
height: 0.85rem;
border-radius: 50%;
border: 2px solid color-mix(in srgb, currentColor 22%, transparent);
border-top-color: currentColor;
animation: sa-spin 0.7s linear infinite;
flex: 0 0 auto;
}
.sa-msg {
animation: sa-msg-in 0.28s ease;
}
.sa-msg.sa-typing {
display: flex;
align-items: center;
gap: 0.55rem;
font-style: normal;
opacity: 0.85;
min-height: 2.4rem;
}
.sa-typing-label {
opacity: 0.75;
font-size: 0.9rem;
}
.sa-dots {
display: inline-flex;
gap: 0.22rem;
align-items: center;
}
.sa-dots i {
width: 0.42rem;
height: 0.42rem;
border-radius: 50%;
background: currentColor;
opacity: 0.35;
animation: sa-dot 1.1s ease-in-out infinite;
}
.sa-dots i:nth-child(2) { animation-delay: 0.15s; }
.sa-dots i:nth-child(3) { animation-delay: 0.3s; }
.sa-is-busy .sa-primary:not(#sa_btn_send) {
opacity: 0.55;
pointer-events: none;
}
.sa-is-busy #sa_input,
.sa-input-busy {
opacity: 1;
pointer-events: auto;
}
.sa-composer-busy {
box-shadow: inset 0 1px 0 color-mix(in srgb, currentColor 12%, transparent);
}
.sa-status.sa-status-busy {
opacity: 0.9;
font-weight: 560;
}
@keyframes sa-spin {
to { transform: rotate(360deg); }
}
@keyframes sa-pulse {
0% { box-shadow: 0 0 0 0 color-mix(in srgb, #6ee7a8 55%, transparent); }
70% { box-shadow: 0 0 0 0.45rem transparent; }
100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes sa-dot {
0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
40% { opacity: 1; transform: translateY(-0.18rem); }
}
@keyframes sa-msg-in {
from { opacity: 0; transform: translateY(0.35rem); }
to { opacity: 1; transform: none; }
}
.sa-header-right {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.4rem;
}
.sa-persona-wrap {
display: inline-flex;
align-items: center;
gap: 0.2rem;
}
.sa-persona-controls {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.55rem 0.85rem;
width: 100%;
order: 5;
padding: 0.15rem 0 0;
}
.sa-control-row {
display: inline-flex;
align-items: center;
gap: 0.4rem;
font-size: 0.78rem;
min-width: 11rem;
}
.sa-control-row label {
opacity: 0.75;
white-space: nowrap;
}
.sa-control-row input[type="range"] {
width: 7.5rem;
accent-color: color-mix(in srgb, #f0883e 70%, currentColor);
}
.sa-control-val {
font-variant-numeric: tabular-nums;
min-width: 2.4rem;
opacity: 0.85;
}
#sa_persona_delete:not([hidden]) {
opacity: 0.7;
}
#sa_persona_delete:hover {
opacity: 1;
color: #e06c75;
}
.sa-icon-btn {
min-width: 2rem;
padding-left: 0.45rem;
padding-right: 0.45rem;
}
.sa-settings {
display: flex;
flex-direction: column;
gap: 0.55rem;
padding: 0.75rem 0.85rem 1rem;
flex: 1;
min-height: 0;
overflow: hidden;
border-bottom: none;
background: transparent;
}
#sa_view_settings {
overflow: hidden;
}
.sa-settings-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
flex-shrink: 0;
}
.sa-settings-tabs {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
flex-shrink: 0;
}
.sa-stab {
border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
background: transparent;
color: inherit;
border-radius: 0.4rem;
padding: 0.2rem 0.55rem;
font-size: 0.78rem;
cursor: pointer;
opacity: 0.75;
}
.sa-stab:hover {
opacity: 1;
}
.sa-stab-active {
opacity: 1;
background: color-mix(in srgb, currentColor 12%, transparent);
border-color: color-mix(in srgb, currentColor 35%, transparent);
}
.sa-settings-panes {
overflow: auto;
flex: 1;
min-height: 0;
}
.sa-spane {
display: grid;
gap: 0.45rem;
}
.sa-settings-hint {
margin: 0;
font-size: 0.78rem;
opacity: 0.7;
line-height: 1.35;
}
.sa-settings-row {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
align-items: center;
}
.sa-settings-row.sa-knob-row label {
flex: 1;
min-width: 5rem;
}
.sa-settings-health {
font-size: 0.75rem;
opacity: 0.8;
}
.sa-danger-btn {
color: #e06c75 !important;
}
.sa-persona-panel {
display: grid;
grid-template-columns: minmax(8rem, 11rem) 1fr;
gap: 0.5rem;
min-height: 10rem;
}
.sa-persona-list {
display: flex;
flex-direction: column;
gap: 0.2rem;
max-height: 14rem;
overflow: auto;
border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
border-radius: 0.4rem;
padding: 0.25rem;
}
.sa-persona-item {
text-align: left;
border: none;
background: transparent;
color: inherit;
padding: 0.35rem 0.4rem;
border-radius: 0.3rem;
cursor: pointer;
font-size: 0.82rem;
}
.sa-persona-item:hover,
.sa-persona-item-active {
background: color-mix(in srgb, currentColor 10%, transparent);
}
.sa-persona-item-title {
display: flex;
align-items: center;
gap: 0.35rem;
}
.sa-persona-dot {
width: 0.45rem;
height: 0.45rem;
border-radius: 50%;
background: currentColor;
flex: 0 0 auto;
}
.sa-persona-badge {
font-size: 0.62rem;
opacity: 0.55;
text-transform: uppercase;
}
.sa-persona-preview {
border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
border-radius: 0.4rem;
padding: 0.45rem 0.55rem;
max-height: 14rem;
overflow: auto;
font-size: 0.8rem;
line-height: 1.35;
white-space: pre-wrap;
}
.sa-user-prefs-cols {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
}
@media (max-width: 720px) {
.sa-user-prefs-cols,
.sa-persona-panel {
grid-template-columns: 1fr;
}
}
.sa-mem-search {
flex: 1;
min-width: 6rem;
max-width: 12rem;
box-sizing: border-box;
font-size: 0.8rem;
}
.sa-settings label {
display: flex;
flex-direction: column;
gap: 0.2rem;
font-size: 0.9rem;
}
.sa-settings input[type="text"],
.sa-settings input[type="number"],
.sa-settings input[type="search"],
.sa-settings input[type="range"],
.sa-select {
width: 100%;
box-sizing: border-box;
}
.sa-header-right .sa-select {
width: auto;
min-width: 9rem;
max-width: 12rem;
}
.sa-header-right .sa-model-select {
min-width: 14rem;
max-width: 24rem;
}
.sa-check {
flex-direction: row !important;
align-items: center;
gap: 0.4rem !important;
font-size: 0.9rem;
}
.sa-skills-label {
font-size: 0.85rem;
opacity: 0.85;
margin-top: 0.25rem;
}
.sa-skills-box {
display: flex;
flex-wrap: wrap;
gap: 0.35rem 0.75rem;
margin-bottom: 0.25rem;
}
.sa-mem-head {
display: flex;
align-items: center;
gap: 0.4rem;
margin-top: 0.35rem;
}
.sa-mem-head .sa-skills-label {
flex: 1;
margin-top: 0;
}
.sa-settings .sa-mem-kind {
width: auto;
min-width: 8rem;
max-width: 12rem;
}
.sa-mem-list {
display: flex;
flex-direction: column;
gap: 0.25rem;
max-height: 14rem;
overflow: auto;
padding: 0.25rem;
border-radius: 0.4rem;
border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
background: color-mix(in srgb, currentColor 4%, transparent);
}
.sa-mem-empty {
font-size: 0.8rem;
opacity: 0.65;
padding: 0.35rem 0.25rem;
}
.sa-mem-row {
display: flex;
align-items: flex-start;
gap: 0.35rem;
padding: 0.3rem 0.35rem;
border-radius: 0.35rem;
background: color-mix(in srgb, currentColor 4%, transparent);
}
.sa-mem-row-body {
flex: 1;
min-width: 0;
}
.sa-mem-row-head {
display: flex;
align-items: baseline;
gap: 0.35rem;
}
.sa-mem-kind-badge {
font-size: 0.62rem;
text-transform: uppercase;
letter-spacing: 0.04em;
opacity: 0.55;
}
.sa-mem-row-key {
font-size: 0.82rem;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sa-mem-row-text {
font-size: 0.76rem;
opacity: 0.78;
line-height: 1.3;
}
.sa-mem-row-meta {
font-size: 0.68rem;
opacity: 0.5;
}
.sa-mem-forget {
flex: 0 0 auto;
padding: 0.1rem 0.4rem !important;
font-size: 0.85rem;
}
.sa-mem-foot {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 0.35rem;
font-size: 0.72rem;
opacity: 0.7;
}
.sa-health {
font-size: 0.7rem;
padding: 0.05rem 0.4rem;
border-radius: 0.75rem;
border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
cursor: pointer;
white-space: nowrap;
opacity: 0.85;
}
.sa-health-ok {
color: color-mix(in srgb, #6ee7a8 75%, currentColor);
border-color: color-mix(in srgb, #6ee7a8 40%, transparent);
}
.sa-health-warn {
color: color-mix(in srgb, #e3b341 80%, currentColor);
border-color: color-mix(in srgb, #e3b341 40%, transparent);
}
.sa-health-down {
color: color-mix(in srgb, #f2777a 80%, currentColor);
border-color: color-mix(in srgb, #f2777a 45%, transparent);
}
.sa-ctx-wrap {
position: relative;
display: inline-flex;
align-items: center;
}
.sa-ctx-chip {
display: inline-flex;
align-items: center;
gap: 0.3rem;
font-size: 0.72rem;
font-variant-numeric: tabular-nums;
padding: 0.15rem 0.5rem;
border-radius: 0.75rem;
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
background: color-mix(in srgb, currentColor 6%, transparent);
cursor: pointer;
white-space: nowrap;
color: inherit;
line-height: 1.2;
}
.sa-ctx-chip:hover {
border-color: color-mix(in srgb, currentColor 45%, transparent);
}
.sa-ctx-dot {
width: 0.4rem;
height: 0.4rem;
border-radius: 50%;
background: color-mix(in srgb, #6ea8fe 80%, currentColor);
flex-shrink: 0;
}
.sa-ctx-ok {
border-color: color-mix(in srgb, #6ee7a8 35%, transparent);
}
.sa-ctx-warn {
color: color-mix(in srgb, #e3b341 85%, currentColor);
border-color: color-mix(in srgb, #e3b341 45%, transparent);
}
.sa-ctx-hot {
color: color-mix(in srgb, #f2777a 85%, currentColor);
border-color: color-mix(in srgb, #f2777a 50%, transparent);
}
.sa-ctx-compressing {
color: color-mix(in srgb, #6ea8fe 85%, currentColor);
border-color: color-mix(in srgb, #6ea8fe 50%, transparent);
}
.sa-ctx-panel {
position: absolute;
top: calc(100% + 0.35rem);
right: 0;
z-index: 40;
width: min(22rem, 78vw);
padding: 0.65rem 0.75rem 0.75rem;
border-radius: 0.55rem;
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
background: color-mix(in srgb, #1a1d24 92%, transparent);
box-shadow: 0 0.6rem 1.4rem color-mix(in srgb, #000 45%, transparent);
display: flex;
flex-direction: column;
gap: 0.45rem;
}
.sa-ctx-panel-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.4rem;
font-size: 0.85rem;
}
.sa-ctx-bar {
height: 0.35rem;
border-radius: 0.25rem;
background: color-mix(in srgb, currentColor 12%, transparent);
overflow: hidden;
}
.sa-ctx-bar-fill {
height: 100%;
width: 0%;
background: color-mix(in srgb, #6ee7a8 70%, currentColor);
transition: width 0.2s ease;
}
.sa-ctx-bar-fill[data-level="warn"] {
background: color-mix(in srgb, #e3b341 75%, currentColor);
}
.sa-ctx-bar-fill[data-level="hot"] {
background: color-mix(in srgb, #f2777a 75%, currentColor);
}
.sa-ctx-panel-body {
font-size: 0.75rem;
display: flex;
flex-direction: column;
gap: 0.25rem;
max-height: 14rem;
overflow: auto;
}
.sa-ctx-layer {
display: flex;
justify-content: space-between;
gap: 0.5rem;
opacity: 0.85;
}
.sa-ctx-layers-label,
.sa-ctx-meta,
.sa-ctx-see {
opacity: 0.65;
font-size: 0.7rem;
margin-top: 0.15rem;
}
.sa-ctx-summary {
margin: 0.2rem 0 0;
padding: 0.4rem 0.45rem;
font-size: 0.7rem;
white-space: pre-wrap;
word-break: break-word;
max-height: 7rem;
overflow: auto;
border-radius: 0.35rem;
background: color-mix(in srgb, currentColor 8%, transparent);
border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.sa-ctx-actions {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.sa-ctx-auto {
font-size: 0.75rem;
}
.sa-msg-compress {
margin: 0.35rem 0.55rem;
padding: 0.35rem 0.55rem;
border-radius: 0.45rem;
border: 1px dashed color-mix(in srgb, #6ea8fe 40%, transparent);
background: color-mix(in srgb, #6ea8fe 8%, transparent);
font-size: 0.8rem;
}
.sa-msg-compress > summary {
cursor: pointer;
font-weight: 600;
}
.sa-msg-compress-body {
margin-top: 0.4rem;
display: flex;
flex-direction: column;
gap: 0.3rem;
}
.sa-msg-compress-row {
opacity: 0.8;
font-size: 0.72rem;
white-space: pre-wrap;
word-break: break-word;
}
.sa-card-row-wanted {
border-color: color-mix(in srgb, #e3b341 40%, transparent);
}
.sa-settings .sa-select {
width: 100%;
}
.sa-messages {
flex: 1;
overflow: auto;
padding: 0.85rem 0.9rem;
display: flex;
flex-direction: column;
gap: 0.7rem;
scroll-behavior: smooth;
}
.sa-msg {
max-width: 92%;
padding: 0.6rem 0.8rem;
border-radius: 0.75rem;
white-space: pre-wrap;
word-break: break-word;
line-height: 1.4;
box-shadow: 0 1px 0 color-mix(in srgb, currentColor 8%, transparent);
}
.sa-msg.user {
align-self: flex-end;
border-bottom-right-radius: 0.25rem;
background: color-mix(in srgb, currentColor 14%, transparent);
}
.sa-msg.assistant {
align-self: flex-start;
border-bottom-left-radius: 0.25rem;
background: color-mix(in srgb, currentColor 7%, transparent);
border-left: 2px solid color-mix(in srgb, currentColor 18%, transparent);
}
.sa-msg.assistant[data-persona="lewd"] {
border-left-color: color-mix(in srgb, #c4788a 55%, currentColor);
}
.sa-msg.assistant[data-persona="aggressive"] {
border-left-color: color-mix(in srgb, #c47a4a 55%, currentColor);
}
.sa-msg.assistant[data-persona="neutral"] {
border-left-color: color-mix(in srgb, currentColor 22%, transparent);
}
.sa-msg-meta {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.45rem;
margin: 0 0 0.35rem;
line-height: 1.1;
white-space: normal;
}
.sa-persona-mark {
font-size: 0.68rem;
font-weight: 650;
letter-spacing: 0.06em;
text-transform: uppercase;
opacity: 0.48;
}
.sa-persona-lewd {
opacity: 0.58;
color: color-mix(in srgb, #c4788a 70%, currentColor);
}
.sa-persona-aggressive {
opacity: 0.58;
color: color-mix(in srgb, #c47a4a 70%, currentColor);
}
.sa-pack-mark {
font-size: 0.66rem;
opacity: 0.36;
letter-spacing: 0.02em;
}
.sa-msg-body {
word-break: break-word;
}
.sa-msg-body.sa-prose {
white-space: normal;
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.sa-msg-body.sa-prose-live {
display: block;
white-space: pre-wrap;
word-break: break-word;
}
.sa-prose-h {
font-weight: 650;
letter-spacing: 0.01em;
line-height: 1.25;
margin: 0.15rem 0 0.05rem;
color: color-mix(in srgb, currentColor 92%, #fff);
}
.sa-prose-h1 {
font-size: 1.15rem;
}
.sa-prose-h2 {
font-size: 1.05rem;
}
.sa-prose-h3 {
font-size: 0.98rem;
opacity: 0.92;
}
.sa-prose-p {
margin: 0;
line-height: 1.45;
white-space: pre-wrap;
}
.sa-prose-list {
margin: 0.1rem 0 0.2rem 1.1rem;
padding: 0;
line-height: 1.4;
}
.sa-prose-list li {
margin: 0.15rem 0;
}
.sa-prose-code {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 0.88em;
padding: 0.05em 0.3em;
border-radius: 0.25rem;
background: color-mix(in srgb, currentColor 12%, transparent);
}
.sa-prose-gap {
height: 0.35rem;
}
.sa-msg.error {
align-self: stretch;
border: 1px solid color-mix(in srgb, #c44 55%, transparent);
background: color-mix(in srgb, #c44 12%, transparent);
}
.sa-msg.sa-system {
align-self: center;
max-width: 100%;
font-size: 0.85rem;
opacity: 0.75;
background: transparent;
box-shadow: none;
text-align: center;
}
.sa-patch {
margin-top: 0.55rem;
padding-top: 0.5rem;
border-top: 1px dashed color-mix(in srgb, currentColor 25%, transparent);
font-size: 0.88rem;
}
.sa-patch pre {
margin: 0;
max-height: 10rem;
overflow: auto;
padding: 0.45rem 0.55rem;
border-radius: 0.35rem;
background: color-mix(in srgb, currentColor 6%, transparent);
}
.sa-patch-actions {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
margin-top: 0.45rem;
}
.sa-patch-stale {
margin-top: 0.4rem;
font-size: 0.78rem;
opacity: 0.5;
font-style: italic;
}
.sa-btn-gen {
display: inline-flex;
align-items: center;
gap: 0.4rem;
}
.sa-btn-gen-primary {
font-weight: 650;
border-color: color-mix(in srgb, #3fb950 70%, currentColor);
background: color-mix(in srgb, #3fb950 20%, transparent);
}
.sa-btn-gen:disabled {
opacity: 0.65;
pointer-events: none;
}
.sa-patch-silent {
opacity: 0.88;
font-size: 0.88rem;
padding: 0.35rem 0.5rem;
border-left: 3px solid color-mix(in srgb, #3fb950 70%, transparent);
}
.sa-spinner-btn {
width: 0.7rem;
height: 0.7rem;
border-width: 2px;
}
.sa-msg.sa-welcome {
align-self: stretch;
max-width: 100%;
background: color-mix(in srgb, currentColor 6%, transparent);
border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}
.sa-welcome-title {
font-weight: 650;
margin-bottom: 0.35rem;
}
.sa-welcome ul {
margin: 0.2rem 0 0;
padding-left: 1.1rem;
}
.sa-welcome li {
margin: 0.15rem 0;
}
.sa-danger {
opacity: 0.85;
}
.sa-civitai-list {
display: flex;
flex-direction: column;
gap: 0.45rem;
margin-top: 0.55rem;
}
.sa-civitai-card {
padding: 0.5rem 0.6rem;
border-radius: 0.45rem;
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
background: color-mix(in srgb, currentColor 5%, transparent);
font-size: 0.88rem;
}
.sa-civitai-card.sa-installed {
opacity: 0.7;
}
.sa-civitai-title {
font-weight: 600;
margin-bottom: 0.2rem;
}
.sa-civitai-meta {
opacity: 0.8;
font-size: 0.82rem;
margin-bottom: 0.35rem;
}
.sa-civitai-actions {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.sa-streaming {
opacity: 0.9;
font-style: italic;
}
.sa-interrupt-active {
border-color: color-mix(in srgb, #c44 55%, transparent) !important;
}
.sa-composer {
border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
padding: 0.6rem 0.7rem 0.7rem;
display: flex;
flex-direction: column;
gap: 0.45rem;
background: color-mix(in srgb, currentColor 4%, transparent);
}
.sa-composer textarea {
width: 100%;
resize: vertical;
box-sizing: border-box;
min-height: 4.25rem;
border-radius: 0.45rem;
padding: 0.55rem 0.65rem;
line-height: 1.35;
}
.sa-chips {
display: flex;
flex-wrap: nowrap;
gap: 0.35rem;
align-items: center;
overflow-x: auto;
overflow-y: hidden;
max-width: 100%;
padding-bottom: 0.15rem;
scrollbar-width: thin;
}
.sa-chips::-webkit-scrollbar {
height: 4px;
}
.sa-chip {
appearance: none;
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
background: color-mix(in srgb, currentColor 6%, transparent);
color: inherit;
border-radius: 999px;
padding: 0.18rem 0.55rem;
font-size: 0.78rem;
font-weight: 600;
letter-spacing: 0.02em;
cursor: pointer;
line-height: 1.3;
flex: 0 0 auto;
}
.sa-chip:hover {
background: color-mix(in srgb, currentColor 12%, transparent);
}
.sa-chip.sa-chip-active {
border-color: color-mix(in srgb, #6cf 55%, currentColor);
background: color-mix(in srgb, #6cf 22%, transparent);
}
.sa-chip.sa-chip-active.sa-chip-custom {
border-color: color-mix(in srgb, #e8a838 60%, currentColor);
background: color-mix(in srgb, #e8a838 24%, transparent);
}
.sa-chip-sep {
width: 1px;
height: 1.1rem;
background: color-mix(in srgb, currentColor 28%, transparent);
margin: 0 0.15rem;
}
.sa-pack-flash {
animation: sa-flash 0.85s ease;
}
.sa-system-note {
white-space: pre-wrap;
opacity: 0.92;
font-size: 0.92rem;
}
.sa-composer-actions {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
align-items: center;
}
.sa-primary {
font-weight: 600;
}
.sa-status {
font-size: 0.85rem;
opacity: 0.75;
margin-left: 0.15rem;
}
.sa-disabled {
opacity: 0.45;
pointer-events: none;
}
.sa-flash {
animation: sa-flash 0.85s ease;
}
@keyframes sa-flash {
0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); }
40% { box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 20%, transparent); }
100% { box-shadow: 0 0 0 0 transparent; }
}
.sa-subtabs {
display: inline-flex;
gap: 0.2rem;
margin-left: 0.55rem;
vertical-align: middle;
}
/* app-level tabs replace in-pane subtabs */
.sa-subtabs {
display: none;
}
.sa-subtab,
.sa-app-tab {
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
background: transparent;
color: inherit;
border-radius: 999px;
padding: 0.12rem 0.55rem;
font-size: 0.75rem;
font-weight: 600;
cursor: pointer;
opacity: 0.7;
}
.sa-subtab-active,
.sa-app-tab-active {
opacity: 1;
background: color-mix(in srgb, currentColor 12%, transparent);
}
#sa_btn_settings.sa-subtab-active {
opacity: 1;
background: color-mix(in srgb, currentColor 12%, transparent);
}
.sa-view {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
}
.sa-cards-layout {
flex: 1;
display: flex;
min-height: 0;
gap: 0;
}
.sa-cards-list-pane {
flex: 0 0 38%;
min-width: 10rem;
border-right: 1px solid color-mix(in srgb, currentColor 18%, transparent);
display: flex;
flex-direction: column;
min-height: 0;
}
.sa-cards-filter {
display: flex;
gap: 0.35rem;
padding: 0.45rem 0.55rem;
border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.sa-cards-list {
flex: 1;
overflow: auto;
padding: 0.35rem;
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.sa-card-row {
text-align: left;
padding: 0.45rem 0.55rem;
border-radius: 0.4rem;
border: 1px solid transparent;
background: color-mix(in srgb, currentColor 4%, transparent);
cursor: pointer;
font-size: 0.85rem;
}
.sa-card-row:hover {
border-color: color-mix(in srgb, currentColor 22%, transparent);
}
.sa-card-row.sa-selected {
border-color: color-mix(in srgb, currentColor 45%, transparent);
background: color-mix(in srgb, currentColor 10%, transparent);
}
.sa-card-row-kind {
font-size: 0.68rem;
text-transform: uppercase;
opacity: 0.55;
letter-spacing: 0.04em;
}
.sa-card-row-meta {
font-size: 0.75rem;
opacity: 0.7;
}
.sa-cards-editor-pane {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
padding: 0.55rem 0.65rem 0.7rem;
gap: 0.45rem;
}
.sa-cards-editor-head {
display: flex;
align-items: center;
gap: 0.5rem;
}
.sa-card-badge {
font-size: 0.72rem;
padding: 0.1rem 0.4rem;
border-radius: 999px;
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
opacity: 0.85;
}
#sa_card_json {
min-height: 8rem;
width: 100%;
box-sizing: border-box;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 0.82rem;
border-radius: 0.4rem;
padding: 0.5rem;
resize: vertical;
}
.sa-card-form {
display: flex;
flex-direction: column;
gap: 0.35rem;
overflow: auto;
flex: 1;
min-height: 0;
}
.sa-card-form label {
display: flex;
flex-direction: column;
gap: 0.2rem;
font-size: 0.78rem;
opacity: 0.92;
}
.sa-card-form input,
.sa-card-form textarea {
width: 100%;
box-sizing: border-box;
border-radius: 0.35rem;
padding: 0.35rem 0.45rem;
font: inherit;
}
.sa-card-form .sa-card-json-toggle {
flex-direction: row;
align-items: center;
gap: 0.4rem;
}
.sa-card-previews {
display: flex;
gap: 0.35rem;
overflow-x: auto;
padding: 0.15rem 0;
min-height: 4.5rem;
}
.sa-card-thumb {
width: 4.5rem;
height: 4.5rem;
object-fit: cover;
border-radius: 0.35rem;
border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
cursor: pointer;
flex: 0 0 auto;
background: color-mix(in srgb, currentColor 6%, transparent);
}
.sa-card-thumb:hover {
border-color: color-mix(in srgb, currentColor 55%, transparent);
}
.sa-card-row {
display: flex;
gap: 0.55rem;
align-items: center;
}
.sa-card-row-thumb {
width: 3.6rem;
height: 3.6rem;
border-radius: 0.35rem;
object-fit: cover;
flex: 0 0 auto;
background: color-mix(in srgb, currentColor 8%, transparent);
border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.sa-card-row-body {
min-width: 0;
flex: 1;
}
.sa-card-row-name {
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sa-card-row-chat {
flex: 0 0 auto;
padding: 0.2rem 0.45rem !important;
font-size: 0.85rem;
}
.sa-btn-gen.sa-has-patch {
border-color: color-mix(in srgb, #3fb950 55%, currentColor);
box-shadow: inset 0 0 0 1px color-mix(in srgb, #3fb950 25%, transparent);
}
.sa-patch-details {
margin: 0.35rem 0 0.15rem;
}
.sa-patch-details > summary {
cursor: pointer;
font-size: 0.82rem;
opacity: 0.88;
user-select: none;
list-style: none;
}
.sa-patch-details > summary::-webkit-details-marker {
display: none;
}
.sa-patch-details > summary::before {
content: '▸ ';
opacity: 0.7;
}
.sa-patch-details[open] > summary::before {
content: '▾ ';
}
.sa-patch-details pre {
margin-top: 0.35rem;
max-height: 14rem;
overflow: auto;
}
.sa-patch-auto {
opacity: 0.95;
}
.sa-train-last-job {
margin-bottom: 0.65rem;
padding: 0.55rem 0.65rem;
border-radius: 0.45rem;
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
background: color-mix(in srgb, currentColor 6%, transparent);
font-size: 0.78rem;
line-height: 1.45;
}
.sa-train-last-head {
font-weight: 600;
margin-bottom: 0.25rem;
}
.sa-train-last-ok {
color: color-mix(in srgb, #6fcf97 85%, currentColor);
margin-top: 0.25rem;
}
.sa-train-last-warn {
color: color-mix(in srgb, #f2c94c 85%, currentColor);
margin-top: 0.25rem;
}
.sa-train-last-log {
max-height: 8rem;
margin-top: 0.35rem;
}
.sa-train-model-new {
border-color: color-mix(in srgb, #6fcf97 45%, transparent);
}
.sa-lora-chips {
display: flex;
flex-wrap: nowrap;
gap: 0.3rem;
align-items: center;
min-height: 0;
overflow-x: auto;
max-width: 100%;
scrollbar-width: thin;
}
.sa-lora-chip {
display: inline-flex;
align-items: center;
gap: 0.1rem;
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
background: color-mix(in srgb, currentColor 8%, transparent);
color: inherit;
border-radius: 999px;
padding: 0.02rem 0.2rem 0.02rem 0.05rem;
font-size: 0.72rem;
max-width: 14rem;
overflow: hidden;
}
.sa-lora-chip-main {
appearance: none;
border: none;
background: transparent;
color: inherit;
border-radius: 999px;
padding: 0.1rem 0.35rem;
font-size: inherit;
cursor: pointer;
max-width: 12rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sa-lora-chip-rm {
appearance: none;
border: none;
background: transparent;
color: inherit;
opacity: 0.65;
padding: 0.05rem 0.25rem;
font-size: 0.85rem;
line-height: 1;
cursor: pointer;
border-radius: 999px;
}
.sa-lora-chip-rm:hover {
opacity: 1;
background: color-mix(in srgb, currentColor 14%, transparent);
}
.sa-lora-chip.sa-lora-add {
appearance: none;
cursor: pointer;
padding: 0.12rem 0.45rem;
opacity: 0.75;
border-style: dashed;
}
.sa-lora-picker {
position: absolute;
z-index: 40;
max-height: 12rem;
overflow: auto;
min-width: 14rem;
max-width: 22rem;
border-radius: 0.45rem;
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
background: color-mix(in srgb, #111 92%, transparent);
box-shadow: 0 8px 24px color-mix(in srgb, #000 35%, transparent);
padding: 0.25rem;
}
.sa-lora-picker button {
display: block;
width: 100%;
text-align: left;
border: none;
background: transparent;
color: inherit;
padding: 0.35rem 0.45rem;
border-radius: 0.3rem;
cursor: pointer;
font-size: 0.78rem;
}
.sa-lora-picker button:hover {
background: color-mix(in srgb, currentColor 12%, transparent);
}
.sa-lora-weight-pop {
position: absolute;
z-index: 41;
min-width: 10rem;
border-radius: 0.45rem;
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
background: color-mix(in srgb, #111 92%, transparent);
box-shadow: 0 8px 24px color-mix(in srgb, #000 35%, transparent);
padding: 0.45rem;
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.sa-lora-weight-pop label {
display: flex;
flex-direction: column;
gap: 0.25rem;
font-size: 0.72rem;
opacity: 0.85;
}
.sa-lora-weight-pop input[type="number"] {
width: 100%;
box-sizing: border-box;
padding: 0.3rem;
}
.sa-lora-weight-actions {
display: flex;
gap: 0.35rem;
justify-content: flex-end;
}
.sa-slash-wrap {
position: relative;
}
.sa-slash-menu {
position: absolute;
left: 0;
right: 0;
bottom: calc(100% + 0.25rem);
z-index: 50;
max-height: 12rem;
overflow: auto;
border-radius: 0.45rem;
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
background: color-mix(in srgb, #111 94%, transparent);
box-shadow: 0 8px 24px color-mix(in srgb, #000 40%, transparent);
padding: 0.2rem;
}
.sa-slash-item {
display: block;
width: 100%;
text-align: left;
border: none;
background: transparent;
color: inherit;
padding: 0.35rem 0.5rem;
border-radius: 0.3rem;
cursor: pointer;
font-size: 0.8rem;
}
.sa-slash-item code {
font-weight: 650;
}
.sa-slash-item.sa-slash-active,
.sa-slash-item:hover {
background: color-mix(in srgb, currentColor 14%, transparent);
}
.sa-cards-actions {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
align-items: center;
}
.sa-board.sa-board-variants {
grid-template-columns: 1fr 1fr;
grid-auto-rows: minmax(7.5rem, 1fr);
}
.sa-slot.sa-slot-gen-result .sa-slot-open {
appearance: none;
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
background: color-mix(in srgb, currentColor 10%, transparent);
color: inherit;
border-radius: 999px;
padding: 0.05rem 0.45rem;
font-size: 0.68rem;
cursor: pointer;
margin-left: auto;
opacity: 0.85;
}
.sa-slot.sa-slot-gen-result .sa-slot-open:hover {
opacity: 1;
}
.sa-lightbox {
position: absolute;
inset: 0;
z-index: 80;
display: flex;
align-items: center;
justify-content: center;
pointer-events: auto;
}
.sa-lightbox[hidden] {
display: none !important;
}
.sa-lightbox-backdrop {
position: absolute;
inset: 0;
background: color-mix(in srgb, #000 62%, transparent);
}
.sa-lightbox-panel {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
gap: 0.45rem;
width: min(96%, 52rem);
max-height: 94%;
padding: 0.55rem 0.65rem 0.65rem;
border-radius: 0.65rem;
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
background: color-mix(in srgb, Canvas 92%, transparent);
box-shadow: 0 12px 40px color-mix(in srgb, #000 35%, transparent);
}
.sa-lightbox-head {
display: flex;
align-items: center;
gap: 0.45rem;
}
.sa-lightbox-title {
font-weight: 650;
font-size: 0.9rem;
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sa-lightbox-idx {
font-size: 0.75rem;
opacity: 0.7;
}
.sa-lightbox-body {
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-height: 12rem;
flex: 1;
overflow: hidden;
}
.sa-lightbox-body img {
max-width: 100%;
max-height: min(70vh, 36rem);
object-fit: contain;
border-radius: 0.35rem;
}
.sa-lightbox-nav {
appearance: none;
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 2rem;
height: 2.4rem;
border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
border-radius: 0.4rem;
background: color-mix(in srgb, Canvas 80%, transparent);
color: inherit;
font-size: 1.4rem;
line-height: 1;
cursor: pointer;
opacity: 0.85;
}
.sa-lightbox-nav:hover {
opacity: 1;
}
.sa-lightbox-prev {
left: 0.25rem;
}
.sa-lightbox-next {
right: 0.25rem;
}
.sa-lightbox-actions {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
justify-content: flex-end;
}
@media (max-width: 900px) {
.sa-layout {
flex-direction: column;
}
.sa-image-pane {
flex: 0 0 auto;
max-width: none;
max-height: 46%;
width: 100% !important;
}
.sa-slot.sa-slot-gen {
grid-column: auto;
}
.sa-splitter {
display: none;
}
.sa-cards-layout {
flex-direction: column;
}
.sa-cards-list-pane {
flex: 0 0 auto;
max-height: 40%;
border-right: none;
border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.sa-lightbox-panel {
width: 98%;
max-height: 96%;
}
.sa-chat-workspace {
position: relative;
}
.sa-chats-drawer:not([hidden]) {
position: absolute;
z-index: 60;
top: 0;
right: 0;
bottom: 0;
width: min(18rem, 92vw);
flex: none;
box-shadow: -8px 0 24px color-mix(in srgb, #000 35%, transparent);
}
}
/* Training tab */
.sa-training {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
border-radius: 0.55rem;
background: color-mix(in srgb, currentColor 3%, transparent);
overflow: hidden;
}
.sa-training-tabs {
display: flex;
gap: 0.25rem;
padding: 0.45rem 0.55rem;
border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent);
flex-wrap: wrap;
}
.sa-train-global-status {
display: block;
margin: 0.25rem 0.55rem 0.4rem;
min-height: 1.1em;
opacity: 0.9;
}
.sa-ttab {
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
background: transparent;
color: inherit;
border-radius: 999px;
padding: 0.15rem 0.65rem;
font-size: 0.78rem;
font-weight: 600;
cursor: pointer;
opacity: 0.72;
}
.sa-ttab-active {
opacity: 1;
background: color-mix(in srgb, currentColor 12%, transparent);
}
.sa-training-panes {
flex: 1;
overflow: auto;
min-height: 0;
padding: 0.55rem 0.65rem 0.75rem;
}
.sa-tpane {
display: flex;
flex-direction: column;
gap: 0.55rem;
min-height: 0;
}
.sa-train-toolbar {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
align-items: center;
}
.sa-train-stats {
font-size: 0.78rem;
font-weight: 600;
opacity: 0.85;
margin-right: 0.25rem;
}
.sa-agent-heard-panel {
border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
border-radius: 0.45rem;
padding: 0.55rem 0.65rem;
display: flex;
flex-direction: column;
gap: 0.4rem;
margin-bottom: 0.35rem;
}
.sa-agent-heard-head {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.65rem;
}
.sa-agent-heard-stats {
font-size: 0.78rem;
font-weight: 600;
opacity: 0.8;
}
.sa-agent-heard-hint {
margin: 0;
font-size: 0.78rem;
opacity: 0.78;
line-height: 1.35;
}
.sa-agent-heard-controls {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.45rem 0.75rem;
}
.sa-agent-heard-controls label {
display: inline-flex;
align-items: center;
gap: 0.3rem;
font-size: 0.82rem;
}
.sa-agent-heard-controls input[type="number"] {
width: 2.75rem;
}
.sa-hf-mapping-row {
display: flex;
flex-wrap: wrap;
gap: 0.45rem 0.75rem;
align-items: center;
padding: 0.35rem 0;
}
.sa-hf-mapping-row label {
display: inline-flex;
align-items: center;
gap: 0.3rem;
font-size: 0.82rem;
}
.sa-hf-panel {
border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
border-radius: 0.45rem;
padding: 0.55rem;
display: flex;
flex-direction: column;
gap: 0.45rem;
}
.sa-hf-search-row,
.sa-hf-link-row,
.sa-hf-import-row {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
align-items: center;
}
.sa-hf-search,
.sa-hf-link {
flex: 1 1 12rem;
min-width: 8rem;
}
.sa-hf-status {
font-size: 0.76rem;
opacity: 0.85;
min-height: 1.1rem;
}
.sa-hf-status.sa-hf-busy {
opacity: 1;
color: var(--emphasis, #8ab4ff);
font-weight: 600;
}
.sa-hf-list {
display: flex;
flex-direction: column;
gap: 0.25rem;
max-height: 12rem;
overflow: auto;
}
.sa-hf-row {
display: flex;
align-items: flex-start;
gap: 0.35rem;
padding: 0.35rem 0.45rem;
border-radius: 0.35rem;
border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
cursor: pointer;
font-size: 0.76rem;
}
.sa-hf-row:hover {
background: color-mix(in srgb, currentColor 8%, transparent);
}
.sa-hf-row.sa-hf-row-active {
border-color: color-mix(in srgb, currentColor 42%, transparent);
background: color-mix(in srgb, currentColor 12%, transparent);
}
.sa-hf-row.sa-hf-rejected {
opacity: 0.55;
cursor: not-allowed;
}
.sa-hf-badge {
font-size: 0.68rem;
padding: 0.05rem 0.35rem;
border-radius: 999px;
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
white-space: nowrap;
}
.sa-hf-badge-ok {
border-color: color-mix(in srgb, #4caf50 50%, currentColor);
}
.sa-hf-badge-map {
border-color: color-mix(in srgb, #f5a623 50%, currentColor);
}
.sa-hf-badge-no {
border-color: color-mix(in srgb, #e74c3c 50%, currentColor);
}
.sa-hf-preview {
font-size: 0.72rem;
max-height: 10rem;
overflow: auto;
border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
border-radius: 0.35rem;
padding: 0.4rem;
white-space: pre-wrap;
font-family: ui-monospace, monospace;
}
.sa-train-samples {
display: flex;
flex-direction: column;
gap: 0.35rem;
max-height: 24rem;
overflow: auto;
}
.sa-train-sample {
border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
border-radius: 0.4rem;
padding: 0.45rem 0.55rem;
font-size: 0.76rem;
}
.sa-train-sample-head {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
align-items: center;
margin-bottom: 0.35rem;
}
.sa-train-sample textarea {
width: 100%;
box-sizing: border-box;
min-height: 3rem;
font-size: 0.74rem;
}
.sa-msg-curate {
display: inline-flex;
gap: 0.25rem;
margin-top: 0.35rem;
}
.sa-msg-curate button {
font-size: 0.72rem !important;
padding: 0.1rem 0.4rem !important;
}
.sa-train-modes {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.sa-train-form label {
display: flex;
flex-direction: column;
gap: 0.2rem;
font-size: 0.78rem;
margin-bottom: 0.35rem;
}
.sa-train-progress-bar {
height: 0.35rem;
border-radius: 999px;
background: color-mix(in srgb, currentColor 12%, transparent);
overflow: hidden;
}
.sa-train-progress-fill {
height: 100%;
width: 0%;
background: color-mix(in srgb, #4caf50 70%, currentColor);
transition: width 0.3s ease;
}
.sa-train-log {
max-height: 14rem;
overflow: auto;
font-size: 0.72rem;
margin: 0.35rem 0 0;
padding: 0.45rem;
border-radius: 0.35rem;
background: color-mix(in srgb, #000 22%, transparent);
}
.sa-train-models-list {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.sa-root-training-lock .sa-composer,
.sa-root-training-lock #sa_btn_send,
.sa-root-training-lock #sa_btn_build_gen {
pointer-events: none;
opacity: 0.45;
}
/* Turn activity timeline (model commands + pipeline) */
.sa-activity {
align-self: stretch;
margin: 0.35rem 0 0.55rem;
border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
border-radius: 0.65rem;
background:
linear-gradient(180deg,
color-mix(in srgb, currentColor 7%, transparent),
color-mix(in srgb, currentColor 3%, transparent));
overflow: hidden;
box-shadow: 0 1px 0 color-mix(in srgb, #fff 4%, transparent) inset;
}
.sa-activity-live {
border-color: color-mix(in srgb, #6af 35%, transparent);
}
.sa-activity-done {
opacity: 0.92;
}
.sa-activity-head {
display: flex;
align-items: center;
gap: 0.55rem;
width: 100%;
padding: 0.55rem 0.75rem;
border: 0;
background: transparent;
color: inherit;
font: inherit;
text-align: left;
cursor: pointer;
}
.sa-activity-head:hover {
background: color-mix(in srgb, currentColor 5%, transparent);
}
.sa-activity-spin {
width: 0.7rem;
height: 0.7rem;
border-radius: 50%;
border: 1.5px solid color-mix(in srgb, currentColor 25%, transparent);
border-top-color: color-mix(in srgb, #8cf 90%, currentColor);
flex-shrink: 0;
}
.sa-activity-live .sa-activity-spin {
animation: sa-spin 0.7s linear infinite;
}
.sa-activity-done .sa-activity-spin {
border-color: color-mix(in srgb, #6c6 55%, transparent);
border-top-color: #6c6;
animation: none;
background: color-mix(in srgb, #6c6 35%, transparent);
}
.sa-activity-title {
flex: 1;
min-width: 0;
font-size: 0.9rem;
font-weight: 600;
letter-spacing: 0.01em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sa-activity-chev {
opacity: 0.45;
font-size: 0.75rem;
transition: transform 0.15s ease;
}
.sa-activity-collapsed .sa-activity-chev {
transform: rotate(-90deg);
}
.sa-activity-collapsed .sa-activity-steps {
display: none;
}
.sa-activity-steps {
display: flex;
flex-direction: column;
gap: 0.15rem;
padding: 0 0.55rem 0.6rem 0.75rem;
}
.sa-activity-step {
display: grid;
grid-template-columns: 1.1rem 1fr;
gap: 0.45rem;
align-items: start;
padding: 0.28rem 0.35rem;
border-radius: 0.4rem;
}
.sa-activity-step.sa-activity-running {
background: color-mix(in srgb, #6af 10%, transparent);
}
.sa-activity-step.sa-activity-done {
opacity: 0.85;
}
.sa-activity-step.sa-activity-skip {
opacity: 0.45;
}
.sa-activity-step.sa-activity-error {
background: color-mix(in srgb, #c44 12%, transparent);
}
.sa-activity-icon {
font-size: 0.78rem;
line-height: 1.35;
opacity: 0.7;
text-align: center;
}
.sa-activity-running .sa-activity-icon {
opacity: 1;
color: color-mix(in srgb, #8cf 80%, currentColor);
}
.sa-activity-label {
font-size: 0.86rem;
line-height: 1.35;
}
.sa-activity-detail {
margin-top: 0.1rem;
font-size: 0.78rem;
line-height: 1.35;
opacity: 0.62;
word-break: break-word;
}
@keyframes sa-spin {
to { transform: rotate(360deg); }
}