.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: baseline; gap: 0.45rem; min-height: 1.6rem; } .sa-board-title { font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; } .sa-board-hint { flex: 1; font-size: 0.75rem; opacity: 0.55; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .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-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-frame { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; border: 1px dashed color-mix(in srgb, currentColor 28%, transparent); border-radius: 0.55rem; 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: 14rem; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; } .sa-image-frame:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 35%, transparent); } .sa-image-frame.sa-has-image { border-style: solid; } .sa-image-frame.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-image-frame img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; } .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-drop-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, currentColor 18%, transparent); font-weight: 600; letter-spacing: 0.04em; pointer-events: none; } .sa-vision-chip { position: absolute; top: 0.45rem; left: 0.45rem; padding: 0.15rem 0.45rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: color-mix(in srgb, currentColor 16%, transparent); border: 1px solid color-mix(in srgb, currentColor 28%, transparent); } .sa-image-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; } .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 { 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); } .sa-chat-title { font-weight: 650; letter-spacing: 0.03em; display: flex; align-items: center; gap: 0.45rem; } .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; gap: 0.4rem; } .sa-icon-btn { min-width: 2rem; padding-left: 0.45rem; padding-right: 0.45rem; } .sa-settings { display: grid; 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); } .sa-settings label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.9rem; } .sa-settings input[type="text"], .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-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); } .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-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: wrap; gap: 0.35rem; align-items: center; } .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; } .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 { flex: 1; min-height: 12rem; 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-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); } }