Default pack is Обычный; prefer default_chat/senior Ollama tag; client-apply same-but-aspect; leave critique pack after hops; render Critique as Критика instead of raw ### markdown. Co-authored-by: Cursor <cursoragent@cursor.com>
1857 lines
38 KiB
CSS
1857 lines
38 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;
|
|
}
|
|
|
|
.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-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.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.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 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.78;
|
|
padding: 0.2rem 0.15rem 0.35rem;
|
|
letter-spacing: 0.01em;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.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-sessions-toggle {
|
|
font-size: 0.78rem !important;
|
|
padding: 0.18rem 0.5rem !important;
|
|
}
|
|
|
|
.sa-session-label {
|
|
font-size: 0.78rem;
|
|
font-weight: 500;
|
|
opacity: 0.75;
|
|
max-width: 10rem;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
border-radius: 0.3rem;
|
|
padding: 0.1rem 0.35rem;
|
|
}
|
|
|
|
.sa-session-label:hover {
|
|
opacity: 1;
|
|
background: color-mix(in srgb, currentColor 10%, transparent);
|
|
}
|
|
|
|
.sa-chats-panel {
|
|
position: absolute;
|
|
z-index: 50;
|
|
top: calc(100% - 1px);
|
|
left: 0.5rem;
|
|
right: 0.5rem;
|
|
max-width: 26rem;
|
|
max-height: min(50vh, 22rem);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
padding: 0.55rem;
|
|
border-radius: 0 0 0.5rem 0.5rem;
|
|
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
|
|
background: color-mix(in srgb, #161616 94%, currentColor);
|
|
box-shadow: 0 12px 28px color-mix(in srgb, #000 40%, 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 color-mix(in srgb, currentColor 22%, transparent);
|
|
background: color-mix(in srgb, #000 28%, transparent);
|
|
color: inherit;
|
|
border-radius: 0.35rem;
|
|
padding: 0.35rem 0.5rem;
|
|
font: inherit;
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.sa-chats-search:focus {
|
|
outline: 1px solid color-mix(in srgb, #6cf 55%, currentColor);
|
|
}
|
|
|
|
.sa-chats-panel-hint {
|
|
font-size: 0.72rem;
|
|
opacity: 0.65;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.sa-chats-list {
|
|
overflow: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
min-height: 0;
|
|
}
|
|
|
|
.sa-chats-empty {
|
|
font-size: 0.82rem;
|
|
opacity: 0.65;
|
|
padding: 0.5rem 0.25rem;
|
|
}
|
|
|
|
.sa-chat-row {
|
|
display: flex;
|
|
align-items: stretch;
|
|
gap: 0.2rem;
|
|
border-radius: 0.4rem;
|
|
border: 1px solid transparent;
|
|
background: color-mix(in srgb, currentColor 5%, transparent);
|
|
}
|
|
|
|
.sa-chat-row-active {
|
|
border-color: color-mix(in srgb, #6cf 45%, currentColor);
|
|
background: color-mix(in srgb, #6cf 12%, transparent);
|
|
}
|
|
|
|
.sa-chat-row-main {
|
|
appearance: none;
|
|
border: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
text-align: left;
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: 0.4rem 0.5rem;
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.12rem;
|
|
}
|
|
|
|
.sa-chat-row-title {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.sa-chat-row-meta {
|
|
font-size: 0.72rem;
|
|
opacity: 0.7;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.sa-chat-row-del {
|
|
appearance: none;
|
|
border: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
opacity: 0.55;
|
|
cursor: pointer;
|
|
padding: 0 0.55rem;
|
|
font-size: 1.1rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.sa-chat-row-del:hover {
|
|
opacity: 1;
|
|
color: #f66;
|
|
}
|
|
|
|
.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 {
|
|
opacity: 0.55;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sa-input-busy {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.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.45rem;
|
|
padding: 0.7rem 0.75rem;
|
|
border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
|
|
background: color-mix(in srgb, currentColor 5%, transparent);
|
|
max-height: 50vh;
|
|
}
|
|
|
|
.sa-settings-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.sa-settings-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.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-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-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: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-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;
|
|
}
|
|
|
|
.sa-subtab {
|
|
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 {
|
|
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-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 {
|
|
appearance: none;
|
|
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.12rem 0.45rem;
|
|
font-size: 0.72rem;
|
|
cursor: pointer;
|
|
max-width: 14rem;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.sa-lora-chip.sa-lora-add {
|
|
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-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;
|
|
}
|
|
|
|
@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);
|
|
}
|
|
}
|