Spaces:
Running
Running
Download styles.css from ricardo-lsantos/web-agent: direct link, hf CLI and curl.
- Browser
- Download file 46.8 kB
-
https://huggingface.co/spaces/ricardo-lsantos/web-agent/resolve/main/styles.css
- Command line
-
hf download hf://spaces/ricardo-lsantos/web-agent/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/ricardo-lsantos/web-agent/resolve/main/styles.css
46.8 kB
/* p2p-agents React UI — web-agent theme (cosmic violet + glass).
Design tokens live here (:root light, [data-theme="dark"] override).
Light = clean lavender-white web-agent; dark = cosmic violet glass
(radial glows + translucent surfaces + violet glow accents).
First paint: index.html sets data-theme from storage else
prefers-color-scheme; the :root:not([data-theme]) fallback below covers
the no-JS / pre-script case. */
:root {
color-scheme: light;
--bg: #f6f3ff;
--bg-glow:
radial-gradient(900px 420px at 50% -8%, rgba(168, 85, 247, 0.22) 0%, transparent 65%),
radial-gradient(800px 420px at 108% 108%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
radial-gradient(700px 380px at -8% 100%, rgba(34, 211, 238, 0.1) 0%, transparent 60%);
--panel: rgba(255, 255, 255, 0.82);
--panel-2: #f8f5ff;
--ink: #1a1a2e;
--muted: #6b7280;
--accent: #7c3aed;
--accent-strong: #6d28d9;
--accent-ink: #ffffff;
--accent-2: #0891b2;
--grad: linear-gradient(135deg, #a855f7 0%, #7c3aed 55%, #6d28d9 100%);
--grad-bright: linear-gradient(90deg, #a855f7, #22d3ee);
--border: #e8e0f0;
--tool-bg: #f5f0ff;
--danger: #e11d48;
--radius: 16px;
--radius-lg: 20px;
--glass-blur: blur(22px) saturate(160%);
--shadow: 0 1px 2px rgba(90, 40, 180, 0.07), 0 8px 24px rgba(90, 40, 180, 0.08);
--shadow-lift: 0 2px 6px rgba(90, 40, 180, 0.1), 0 16px 40px rgba(124, 58, 237, 0.18);
--focus: #7c3aed;
}
[data-theme="dark"] {
color-scheme: dark;
--bg: #0a0612;
--bg-glow:
radial-gradient(ellipse 80% 55% at 50% -10%, rgba(168, 85, 247, 0.55) 0%, rgba(168, 85, 247, 0) 65%),
radial-gradient(ellipse 70% 55% at 110% 110%, rgba(120, 50, 220, 0.5) 0%, rgba(120, 50, 220, 0) 60%),
radial-gradient(ellipse 60% 45% at -10% 100%, rgba(70, 20, 160, 0.45) 0%, rgba(70, 20, 160, 0) 60%),
linear-gradient(180deg, #1a0a32 0%, #0a0612 55%, #050309 100%);
--panel: rgba(30, 18, 60, 0.45);
--panel-2: rgba(20, 12, 42, 0.55);
--ink: #ece6ff;
--muted: #948aba;
--accent: #a855f7;
--accent-strong: #b478ff;
--accent-ink: #ffffff;
--accent-2: #22d3ee;
--grad: linear-gradient(135deg, #a855f7 0%, #7c3aed 60%, #6d28d9 100%);
--grad-bright: linear-gradient(90deg, #b478ff, #22d3ee);
--border: rgba(180, 140, 255, 0.16);
--tool-bg: rgba(80, 50, 140, 0.28);
--danger: #fb7185;
--shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 28px rgba(0, 0, 0, 0.4);
--shadow-lift: 0 4px 10px rgba(0, 0, 0, 0.5), 0 8px 28px -6px rgba(168, 85, 247, 0.6);
--focus: #b478ff;
}
/* No-JS / pre-script fallback: follow the OS when no explicit theme set. */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]):not([data-theme="dark"]) {
color-scheme: dark;
--bg: #0a0612;
--bg-glow:
radial-gradient(ellipse 80% 55% at 50% -10%, rgba(168, 85, 247, 0.55) 0%, rgba(168, 85, 247, 0) 65%),
radial-gradient(ellipse 70% 55% at 110% 110%, rgba(120, 50, 220, 0.5) 0%, rgba(120, 50, 220, 0) 60%),
radial-gradient(ellipse 60% 45% at -10% 100%, rgba(70, 20, 160, 0.45) 0%, rgba(70, 20, 160, 0) 60%),
linear-gradient(180deg, #1a0a32 0%, #0a0612 55%, #050309 100%);
--panel: rgba(30, 18, 60, 0.45);
--panel-2: rgba(20, 12, 42, 0.55);
--ink: #ece6ff;
--muted: #948aba;
--accent: #a855f7;
--accent-strong: #b478ff;
--accent-ink: #ffffff;
--accent-2: #22d3ee;
--grad: linear-gradient(135deg, #a855f7 0%, #7c3aed 60%, #6d28d9 100%);
--grad-bright: linear-gradient(90deg, #b478ff, #22d3ee);
--border: rgba(180, 140, 255, 0.16);
--tool-bg: rgba(80, 50, 140, 0.28);
--danger: #fb7185;
--shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 28px rgba(0, 0, 0, 0.4);
--shadow-lift: 0 4px 10px rgba(0, 0, 0, 0.5), 0 8px 28px -6px rgba(168, 85, 247, 0.6);
--focus: #b478ff;
}
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
font-size: 15px;
line-height: 1.6;
background-color: var(--bg);
background-image: var(--bg-glow);
background-attachment: fixed;
color: var(--ink);
letter-spacing: -0.006em;
}
::selection {
background: color-mix(in srgb, var(--accent) 28%, transparent);
}
/* Visible keyboard focus everywhere (best-practice a11y). */
:focus-visible {
outline: 2px solid var(--focus);
outline-offset: 2px;
}
/* Skip link: hidden until focused. */
.skip-link {
position: absolute;
left: 12px;
top: -48px;
z-index: 100;
background: var(--accent);
color: var(--accent-ink);
padding: 8px 14px;
border-radius: 8px;
font-weight: 600;
text-decoration: none;
transition: top 0.15s ease;
}
.skip-link:focus {
top: 12px;
}
code {
font-family: ui-monospace, monospace;
font-size: 0.9em;
}
.muted {
color: var(--muted);
}
.small {
font-size: 13px;
}
.error-text {
color: var(--danger);
}
/* shell */
.app {
display: flex;
flex-direction: column;
height: 100vh;
}
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background: var(--panel);
border-bottom: 1px solid var(--border);
}
.brand {
display: flex;
align-items: center;
gap: 10px;
}
/* Icon button (sidebar toggle). */
.icon-btn {
background: none;
border: 1px solid transparent;
border-radius: 8px;
color: var(--ink);
font-size: 17px;
line-height: 1;
padding: 6px 8px;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
}
.icon-btn:hover {
border-color: var(--border);
background: var(--bg);
}
.icon-btn-sm {
padding: 4px 6px;
border-radius: 6px;
}
/* Inline SVG alignment everywhere. */
.btn svg,
.icon-btn svg,
.chip svg,
.retry-btn svg,
.jump-latest svg,
.tab svg {
flex: none;
vertical-align: -3px;
}
/* Text + icon combos inside buttons. */
.btn-icon-text {
display: inline-flex;
align-items: center;
gap: 6px;
}
/* Circular icon buttons (send/stop, small actions). */
.btn-icon {
width: 42px;
height: 42px;
padding: 0;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
}
.btn-icon-sm {
width: auto;
height: auto;
padding: 4px 6px;
border-radius: 8px;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--muted);
}
.btn-icon-sm:hover:not(:disabled) {
color: var(--ink);
}
.logo {
width: 32px;
height: 32px;
display: grid;
place-items: center;
background: var(--accent);
color: var(--accent-ink);
border-radius: 8px;
}
.topbar-actions {
display: flex;
gap: 8px;
align-items: center;
}
.tabs {
display: flex;
gap: 4px;
padding: 8px 20px 0;
background: var(--panel);
border-bottom: 1px solid var(--border);
}
.tab {
border: 1px solid transparent;
border-bottom: 0;
background: none;
color: var(--muted);
padding: 8px 16px;
border-radius: 8px 8px 0 0;
cursor: pointer;
font-size: 14px;
}
.tab.active {
background: var(--bg);
color: var(--ink);
border-color: var(--border);
}
.layout {
flex: 1;
display: flex;
gap: 16px;
padding: 16px 20px;
overflow: hidden;
min-height: 0;
}
.chat-col {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
}
/* Constrain the reading column for comfortable line lengths. */
.messages-wrap,
.composer,
.chat-col > .toast,
.chat-col > .custom-note {
width: 100%;
max-width: 860px;
margin-left: auto;
margin-right: auto;
}
.tools-col {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 14px;
padding-bottom: 32px;
min-height: 0;
}
.tools-col > * {
width: 100%;
max-width: 1080px;
margin-inline: auto;
}
.statusbar {
display: flex;
gap: 8px;
align-items: center;
padding: 6px 20px;
background: var(--panel);
border-top: 1px solid var(--border);
font-size: 13px;
color: var(--muted);
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--muted);
}
.dot-ok {
background: #22c55e;
}
.dot-bad {
background: var(--danger);
}
/* sidebar */
.sidebar {
width: 300px;
flex: none;
display: flex;
flex-direction: column;
gap: 12px;
overflow-y: auto;
min-height: 0;
}
/* Desktop: drawer wrapper is transparent. Mobile: it becomes an overlay. */
.sidebar-drawer {
display: contents;
}
.sidebar-backdrop {
display: none;
}
.sidebar-tools {
list-style: none;
margin: 8px 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.sidebar-tools li {
display: flex;
flex-direction: column;
gap: 4px;
}
.stats {
display: flex;
gap: 12px;
}
.stat {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
}
.stat-value {
font-size: 22px;
font-weight: 700;
}
.stat-label {
font-size: 12px;
color: var(--muted);
}
/* generic components */
.btn {
border: 1px solid var(--border);
background: var(--panel);
color: var(--ink);
padding: 8px 14px;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
}
.btn:hover:not(:disabled) {
border-color: var(--accent);
}
.btn:disabled {
opacity: 0.5;
cursor: default;
}
.btn-primary {
background: var(--accent);
border-color: var(--accent);
color: var(--accent-ink);
font-weight: 600;
}
.btn-danger {
border-color: var(--danger);
color: var(--danger);
}
.btn-ghost {
background: transparent;
}
.badge {
display: inline-block;
padding: 2px 8px;
border-radius: 999px;
font-size: 12px;
border: 1px solid var(--border);
background: var(--panel);
}
.badge-accent {
background: var(--tool-bg);
border-color: var(--accent);
color: var(--ink);
}
.badge-ok {
background: #dcfce7;
border-color: #22c55e;
color: #166534;
}
.badge-warn {
background: #fef3c7;
border-color: #f59e0b;
color: #92400e;
}
[data-theme="dark"] .badge-ok {
background: rgba(34, 197, 94, 0.15);
border-color: #22c55e;
color: #86efac;
}
[data-theme="dark"] .badge-warn {
background: rgba(245, 158, 11, 0.15);
border-color: #f59e0b;
color: #fcd34d;
}
.avatar {
width: 32px;
height: 32px;
flex: none;
display: grid;
place-items: center;
border-radius: 50%;
font-size: 13px;
border: 1px solid var(--border);
background: var(--panel);
}
.avatar-user {
background: var(--accent);
color: var(--accent-ink);
border-color: var(--accent);
}
.avatar-bot {
background: #111827;
color: #fff;
}
[data-theme="dark"] .avatar-bot {
background: #e8eaed;
color: #111;
}
.avatar-tool {
background: var(--tool-bg);
}
.card {
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px 14px;
}
.card-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
.card-head h3 {
margin: 0;
font-size: 14px;
}
.card-body {
margin-top: 8px;
font-size: 14px;
}
.card-body p {
margin: 6px 0;
}
.collapsible {
border: 1px solid var(--border);
border-radius: 8px;
margin-top: 8px;
}
.collapsible-toggle {
width: 100%;
display: flex;
gap: 8px;
align-items: center;
background: none;
border: 0;
color: var(--ink);
padding: 8px 10px;
cursor: pointer;
font-size: 13px;
}
.collapsible-body {
padding: 0 10px 10px;
}
.empty {
text-align: center;
padding: 48px 20px;
color: var(--muted);
}
.empty-icon {
font-size: 40px;
}
.empty h2 {
color: var(--ink);
}
.typing {
display: flex;
gap: 8px;
align-items: center;
color: var(--muted);
padding: 8px 4px;
}
.dots {
display: inline-flex;
gap: 4px;
}
.dots i {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--muted);
animation: blink 1s infinite;
}
.dots i:nth-child(2) {
animation-delay: 0.2s;
}
.dots i:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes blink {
50% {
opacity: 0.25;
}
}
.toast {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
background: #fee2e2;
color: #7f1d1d;
border: 1px solid #fca5a5;
padding: 8px 12px;
border-radius: 8px;
margin-bottom: 8px;
font-size: 14px;
box-shadow: var(--shadow);
animation: toast-in 0.18s ease-out;
}
@keyframes toast-in {
from {
opacity: 0;
transform: translateY(-4px);
}
}
[data-theme="dark"] .toast {
background: #3f1d1d;
color: #fecaca;
}
.toast button {
background: none;
border: 0;
cursor: pointer;
font-size: 14px;
}
.modal-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.45);
display: grid;
place-items: center;
z-index: 50;
padding: 16px;
}
.modal {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 12px;
max-width: 520px;
width: 100%;
max-height: 85vh;
overflow-y: auto;
animation: modal-in 0.16s ease-out;
}
@keyframes modal-in {
from {
opacity: 0;
transform: translateY(8px) scale(0.98);
}
}
.modal-wide {
max-width: 720px;
}
.modal-head {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
border-bottom: 1px solid var(--border);
}
.modal-head h3 {
margin: 0;
}
.modal-body {
padding: 16px;
}
.schema,
.tool-output {
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 10px;
overflow-x: auto;
font-size: 12.5px;
white-space: pre-wrap;
}
/* chat */
.messages-wrap {
position: relative;
flex: 1;
display: flex;
min-height: 0;
}
.messages {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 14px;
padding: 4px 2px 8px;
min-height: 0;
scrollbar-width: thin;
scrollbar-color: var(--border) transparent;
}
/* "Jump to latest" pill: appears only when the user scrolled up. */
.jump-latest {
position: absolute;
left: 50%;
bottom: 12px;
transform: translateX(-50%);
display: inline-flex;
align-items: center;
gap: 6px;
border: 1px solid var(--border);
background: var(--panel);
color: var(--ink);
border-radius: 999px;
padding: 6px 14px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
box-shadow: var(--shadow);
}
.jump-latest:hover {
border-color: var(--accent);
}
/* Day dividers break long histories into scannable chunks. */
.day-divider {
display: flex;
align-items: center;
gap: 12px;
color: var(--muted);
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
margin: 4px 0;
}
.day-divider::before,
.day-divider::after {
content: "";
flex: 1;
border-top: 1px solid var(--border);
}
.msg {
display: flex;
gap: 10px;
align-items: flex-start;
}
.bubble {
max-width: 720px;
padding: 10px 14px;
border-radius: var(--radius);
border: 1px solid var(--border);
background: var(--panel);
box-shadow: var(--shadow);
}
.bubble p {
margin: 0 0 4px;
white-space: pre-wrap;
}
.bubble time {
font-size: 11px;
color: var(--muted);
}
.bubble-user {
background: var(--accent);
border-color: var(--accent);
color: var(--accent-ink);
}
.bubble-user time {
color: inherit;
opacity: 0.75;
}
.msg-user {
justify-content: flex-end;
flex-direction: row-reverse;
}
.bubble-tool {
background: var(--tool-bg);
flex: 1;
}
.tool-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
margin-bottom: 4px;
}
.bubble-foot {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
margin-top: 4px;
}
.bubble-foot .btn {
padding: 2px 8px;
font-size: 12px;
}
/* discrete retry button on user cards */
.retry-btn {
background: none;
border: 0;
cursor: pointer;
line-height: 1;
padding: 4px;
border-radius: 6px;
opacity: 0.6;
color: inherit;
display: inline-flex;
align-items: center;
justify-content: center;
}
.retry-btn:hover:not(:disabled) {
opacity: 1;
background: rgba(0, 0, 0, 0.12);
}
.retry-btn:disabled {
cursor: default;
opacity: 0.3;
}
/* turn + thinking + tool call cards */
.toolcall-list {
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 8px;
}
.toolcall {
border: 1px solid var(--border);
border-left-width: 4px;
border-radius: 8px;
padding: 8px 10px;
background: var(--bg);
}
.toolcall-ok {
border-left-color: #22c55e;
}
.toolcall-err {
border-left-color: var(--danger);
}
.toolcall-run {
border-left-color: var(--accent);
}
.toolcall-head {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.toolcall-head .btn {
margin-left: auto;
padding: 2px 8px;
font-size: 12px;
}
.thinking {
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 10px;
font-size: 13px;
white-space: pre-wrap;
max-height: 260px;
overflow-y: auto;
font-style: italic;
}
/* memory panel */
.memory-search {
width: 100%;
padding: 8px 10px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--bg);
color: var(--ink);
font-size: 13px;
margin: 8px 0;
}
.memory-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 6px;
max-height: 320px;
overflow-y: auto;
}
.memory-item {
border: 1px solid var(--border);
border-radius: 8px;
padding: 6px 8px;
font-size: 13px;
}
.memory-item-head {
display: flex;
align-items: center;
gap: 6px;
}
.memory-item-head code {
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
}
.memory-item-head .btn {
padding: 2px 6px;
font-size: 12px;
}
.memory-item p {
margin: 4px 0 0;
color: var(--muted);
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.memory-item time {
font-size: 11px;
color: var(--muted);
}
.memory-actions {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-top: 8px;
}
.memory-actions .btn {
padding: 4px 10px;
font-size: 13px;
}
.composer {
display: flex;
gap: 10px;
padding-top: 12px;
align-items: flex-end;
}
.composer textarea {
flex: 1;
resize: none;
padding: 12px 14px;
border: 1px solid var(--border);
border-radius: 16px;
font-size: 15px;
line-height: 1.55;
background: var(--panel);
color: var(--ink);
font-family: inherit;
box-shadow: var(--shadow);
}
.composer-side {
display: flex;
flex-direction: column;
gap: 4px;
align-items: center;
padding-bottom: 2px;
}
/* Circular gradient send button. */
.send-btn {
width: 44px;
height: 44px;
}
.send-btn:disabled {
opacity: 0.45;
box-shadow: none;
filter: none;
}
.send-btn svg {
margin-left: 2px;
}
.count {
font-size: 12px;
color: var(--muted);
}
.count-warn {
color: var(--danger);
}
.chips {
display: flex;
gap: 8px;
flex-wrap: wrap;
justify-content: center;
margin-top: 16px;
}
.chip {
border: 1px solid var(--accent);
background: var(--tool-bg);
color: var(--ink);
padding: 8px 14px;
border-radius: 999px;
cursor: pointer;
font-size: 13px;
}
.chip:hover {
background: var(--accent);
color: var(--accent-ink);
}
.chips-left {
justify-content: flex-start;
margin-top: 8px;
}
/* tools tab */
.tool-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 12px;
}
.param-badges {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-top: 8px;
}
@media (max-width: 900px) {
.layout:not(.wa-body) {
flex-direction: column;
overflow-y: auto;
}
/* web-agent body keeps its row: drawers are fixed overlays here. */
.wa-body {
flex-direction: row;
overflow: hidden;
padding: 12px;
gap: 12px;
}
/* Mobile: side panel becomes an overlay drawer. */
.sidebar-drawer {
display: block;
}
.sidebar-backdrop {
display: block;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.45);
z-index: 40;
}
.sidebar-drawer .sidebar {
position: fixed;
top: 0;
bottom: 0;
width: min(340px, 88vw);
z-index: 41;
background: var(--panel);
padding: 16px;
box-shadow: var(--shadow);
overflow-y: auto;
}
/* Right inspector slides from the right; left workspace from the left. */
.drawer-right .sidebar {
right: 0;
border-left: 1px solid var(--border);
}
.drawer-left .sidebar {
left: 0;
border-right: 1px solid var(--border);
}
.hide-sm {
display: none;
}
}
/* builder */
.builder-toolbar {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 16px;
margin-bottom: 12px;
flex-wrap: wrap;
}
.builder-toolbar h2 {
margin: 0 0 4px;
}
.builder-toolbar p {
margin: 0;
max-width: 560px;
}
.toolbar-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.form-grid .span2 {
grid-column: span 2;
}
.form-grid label {
display: flex;
flex-direction: column;
gap: 4px;
font-size: 14px;
font-weight: 600;
}
.form-grid label .muted {
font-weight: 400;
}
.form-grid input,
.form-grid select,
.form-grid textarea,
.tools-col textarea,
.collapsible-body textarea {
padding: 10px;
border: 1px solid var(--border);
border-radius: 8px;
font-size: 14px;
background: var(--bg);
color: var(--ink);
font-family: inherit;
width: 100%;
}
.form-grid textarea,
.tools-col textarea {
font-family: ui-monospace, monospace;
font-size: 13px;
}
.row-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
margin: 8px 0;
}
.kv-row {
display: grid;
grid-template-columns: 1fr 2fr auto;
gap: 8px;
margin-bottom: 8px;
}
.var-chips {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.problems {
list-style: none;
padding: 8px 12px;
background: #fef3c7;
border: 1px solid #f59e0b;
border-radius: 8px;
font-size: 13px;
color: #78350f;
}
[data-theme="dark"] .problems {
background: #3a2c10;
color: #fde68a;
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 12px;
}
.card-actions {
display: flex;
gap: 8px;
margin-top: 8px;
flex-wrap: wrap;
}
.switch {
display: inline-flex;
gap: 6px;
align-items: center;
font-size: 13px;
cursor: pointer;
}
.toast-info {
background: var(--tool-bg);
color: var(--ink);
border-color: var(--accent);
}
.custom-note {
margin: 0 0 8px;
}
/* ---------- UX polish ---------- */
/* Rendered markdown inside assistant turns. */
.md > *:first-child {
margin-top: 0;
}
.md > *:last-child {
margin-bottom: 0;
}
.md p {
margin: 0 0 8px;
white-space: pre-wrap;
}
.md h2,
.md h3,
.md h4 {
margin: 12px 0 6px;
line-height: 1.35;
}
.md h2 {
font-size: 17px;
}
.md h3 {
font-size: 16px;
}
.md h4 {
font-size: 15px;
}
.md ul,
.md ol {
margin: 0 0 8px;
padding-left: 22px;
}
.md li {
margin: 2px 0;
}
.md li::marker {
color: var(--accent);
}
.md blockquote {
margin: 0 0 8px;
padding: 6px 12px;
border-left: 3px solid var(--accent);
background: var(--bg);
border-radius: 0 8px 8px 0;
color: var(--ink);
}
.md blockquote p {
margin: 0;
}
.md a {
color: var(--accent);
text-underline-offset: 2px;
}
.md code {
font-family: ui-monospace, monospace;
font-size: 0.86em;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 6px;
padding: 1px 5px;
}
.md hr {
border: 0;
border-top: 1px solid var(--border);
margin: 12px 0;
}
.md-code {
position: relative;
margin: 0 0 8px;
}
.md-code pre {
margin: 0;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 10px 12px;
overflow-x: auto;
font-size: 13px;
}
.md-code pre code {
background: none;
border: 0;
padding: 0;
}
.md-code-lang {
position: absolute;
top: 8px;
left: 12px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--muted);
}
.md-code-copy {
position: absolute;
top: 6px;
right: 8px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--muted);
font-size: 12px;
padding: 2px 8px;
cursor: pointer;
}
.md-code-copy:hover {
color: var(--ink);
border-color: var(--accent);
}
/* Sticky composer: input stays visible while history scrolls. */
.composer {
position: sticky;
bottom: 0;
background: var(--bg);
padding-bottom: 4px;
flex-wrap: wrap;
}
.composer-hint {
flex-basis: 100%;
font-size: 12px;
text-align: right;
}
/* Empty state: centered column with breathing room. */
.empty {
max-width: 560px;
margin: auto;
}
/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
}
}
@media (max-width: 640px) {
.layout {
padding: 12px;
gap: 12px;
}
.topbar {
padding: 8px 12px;
}
.tabs {
padding: 8px 12px 0;
overflow-x: auto;
}
.composer-hint {
display: none;
}
.bubble {
max-width: 100%;
}
.msg {
gap: 8px;
}
.avatar {
width: 28px;
height: 28px;
}
/* Tables become stacked cards on narrow screens. */
.profiles-table thead {
display: none;
}
.profiles-table,
.profiles-table tbody,
.profiles-table tr,
.profiles-table td {
display: block;
width: 100%;
}
.profiles-table tr {
border: 1px solid var(--border);
border-radius: 12px;
margin-bottom: 10px;
background: var(--panel);
}
.profiles-table td {
border-bottom: 0;
padding: 6px 12px;
}
.profiles-table td::before {
content: attr(data-label);
display: block;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--muted);
}
.profiles-table td:last-child {
padding-bottom: 12px;
}
}
/* ---------- modern edgy layer (overrides) ---------- */
/* Gradient hairline across the top of the app. */
.app::before {
content: "";
display: block;
height: 3px;
background: var(--grad-bright);
}
/* Glassy header. */
.topbar {
background: color-mix(in srgb, var(--panel) 82%, transparent);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
.logo {
background: var(--grad);
color: #fff;
border-radius: 10px;
font-weight: 800;
box-shadow: 0 2px 10px rgba(124, 58, 237, 0.45);
}
.brand strong {
letter-spacing: -0.02em;
font-size: 16px;
}
/* Tabs: gradient active indicator. */
.tab {
position: relative;
font-weight: 600;
border-radius: 10px 10px 0 0;
transition: color 0.15s ease, background 0.15s ease;
}
.tab:hover {
color: var(--ink);
background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.tab.active {
background: transparent;
border-color: transparent;
}
.tab.active::after {
content: "";
position: absolute;
left: 10px;
right: 10px;
bottom: -1px;
height: 3px;
border-radius: 3px 3px 0 0;
background: var(--grad-bright);
}
/* Buttons: gradient primary, glowing hover. */
.btn {
border-radius: 10px;
font-weight: 600;
transition: transform 0.08s ease, box-shadow 0.15s ease, border-color 0.15s
ease;
}
.btn:active:not(:disabled) {
transform: translateY(1px);
}
.btn-primary {
background: var(--grad);
border-color: transparent;
color: #fff;
box-shadow: 0 2px 12px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover:not(:disabled) {
border-color: transparent;
box-shadow: 0 4px 18px rgba(124, 58, 237, 0.55);
filter: brightness(1.07);
}
.btn-danger:hover:not(:disabled) {
border-color: var(--danger);
background: color-mix(in srgb, var(--danger) 10%, transparent);
}
/* User bubbles carry the brand gradient. */
.bubble-user {
background: var(--grad);
border-color: transparent;
color: #fff;
border-top-right-radius: 4px;
}
.bubble-user time {
color: rgba(255, 255, 255, 0.8);
}
.msg-assistant .bubble {
border-top-left-radius: 4px;
background: var(--panel);
}
.retry-btn:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.22);
}
/* Avatars with presence rings. */
.avatar {
box-shadow: var(--shadow);
}
.avatar-bot {
background: var(--grad);
color: #fff;
border-color: transparent;
}
.avatar-tool {
background: var(--tool-bg);
border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
/* Badges: tinted, semibold. */
.badge {
font-weight: 600;
letter-spacing: 0.01em;
}
.badge-accent {
background: color-mix(in srgb, var(--accent) 14%, transparent);
border-color: color-mix(in srgb, var(--accent) 45%, transparent);
color: var(--ink);
}
/* Cards lift on hover in grids. */
.tool-grid .card,
.builder-toolbar + .tool-grid .card {
transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.tool-grid .card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lift);
}
/* Tool calls: glowing rails. */
.toolcall-ok {
border-left-color: #22c55e;
box-shadow: inset 0 0 18px rgba(34, 197, 94, 0.06);
}
.toolcall-err {
box-shadow: inset 0 0 18px rgba(225, 29, 72, 0.07);
}
.toolcall-run {
border-left-color: var(--accent-strong);
}
/* Chips with gradient hover. */
.chip {
font-weight: 600;
transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s
ease;
}
.chip:hover {
background: var(--grad);
border-color: transparent;
color: #fff;
box-shadow: 0 2px 12px rgba(124, 58, 237, 0.4);
}
.chip:active {
transform: translateY(1px);
}
/* Composer: glowing focus + elevated bar. */
.composer textarea {
border-radius: 12px;
box-shadow: var(--shadow);
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.composer textarea:focus {
outline: none;
border-color: var(--accent-strong);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent),
var(--shadow);
}
/* Markdown links pop. */
.md a {
font-weight: 600;
}
/* Empty state icon glow. */
.empty-icon {
filter: drop-shadow(0 4px 14px rgba(124, 58, 237, 0.45));
}
.empty h2 {
letter-spacing: -0.02em;
}
/* Status dot glow. */
.dot-ok {
box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}
.dot-bad {
box-shadow: 0 0 8px color-mix(in srgb, var(--danger) 80%, transparent);
}
/* Slim scrollbars. */
.messages::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.tools-col::-webkit-scrollbar,
.memory-list::-webkit-scrollbar,
.ws-tree::-webkit-scrollbar {
width: 8px;
}
.messages::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.tools-col::-webkit-scrollbar-thumb,
.memory-list::-webkit-scrollbar-thumb,
.ws-tree::-webkit-scrollbar-thumb {
background: color-mix(in srgb, var(--accent) 30%, var(--border));
border-radius: 8px;
}
/* Collapsible chevron accent. */
.chev {
color: var(--accent-strong);
font-weight: 700;
}
/* Screen-reader-only text. */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Password input with visibility toggle. */
.pw-wrap {
position: relative;
display: block;
}
.pw-wrap input {
width: 100%;
padding-right: 40px;
}
.pw-toggle {
position: absolute;
right: 6px;
top: 50%;
transform: translateY(-50%);
}
/* Inline run error with recovery actions (preferred over toast-only). */
.inline-error {
border: 1px solid color-mix(in srgb, var(--danger) 55%, var(--border));
border-left-width: 4px;
background: var(--panel);
border-radius: 12px;
padding: 12px 14px;
box-shadow: var(--shadow);
}
.inline-error p {
margin: 4px 0 0;
font-size: 14px;
white-space: pre-wrap;
}
.inline-error-actions {
display: flex;
gap: 8px;
margin-top: 10px;
}
/* Saved configuration profiles. */
.profile-save {
display: flex;
gap: 8px;
margin: 10px 0 4px;
}
.profile-save input {
flex: 1;
padding: 9px 12px;
border: 1px solid var(--border);
border-radius: 10px;
font-size: 14px;
background: var(--bg);
color: var(--ink);
font-family: inherit;
min-width: 0;
}
.table-scroll {
overflow-x: auto;
margin: 8px -4px 0;
padding: 0 4px;
}
.profiles-table {
width: 100%;
border-collapse: collapse;
font-size: 13.5px;
}
.profiles-table th {
text-align: left;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--muted);
padding: 8px 10px;
border-bottom: 2px solid var(--border);
white-space: nowrap;
position: sticky;
top: 0;
background: var(--panel);
z-index: 1;
}
.profiles-table td {
padding: 9px 10px;
border-bottom: 1px solid var(--border);
vertical-align: middle;
}
.profiles-table tbody tr:hover {
background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.profiles-table tr.row-active {
background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.profiles-table td code {
overflow-wrap: anywhere;
}
.row-actions {
display: flex;
gap: 6px;
align-items: center;
white-space: nowrap;
}
.row-actions .btn {
padding: 4px 10px;
font-size: 13px;
}
/* ---------- workspace left panel (mirrors right sidebar) ---------- */
.sidebar-left {
order: -1;
}
.ws-head-actions {
display: flex;
gap: 6px;
}
.ws-head-actions .btn {
padding: 4px 10px;
font-size: 13px;
}
.ws-list {
max-height: 380px;
}
.ws-editor-content {
font-family: ui-monospace, monospace;
font-size: 13px;
min-height: 220px;
white-space: pre;
}
/* ---------- workspace tree view ---------- */
.ws-toolbar {
display: flex;
gap: 6px;
margin: 8px 0 4px;
}
.ws-toolbar .btn {
padding: 2px 8px;
font-size: 12px;
}
.ws-tree,
.ws-children {
list-style: none;
margin: 4px 0 0;
padding: 0;
}
.ws-tree {
max-height: 380px;
overflow-y: auto;
}
.ws-children {
margin-left: 10px;
padding-left: 10px;
border-left: 1px solid var(--border);
}
.ws-node {
display: flex;
align-items: center;
gap: 6px;
padding: 3px 4px;
border-radius: 8px;
font-size: 13px;
}
.ws-node:hover {
background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.ws-toggle {
background: none;
border: 0;
padding: 2px 4px;
border-radius: 6px;
cursor: pointer;
line-height: 1;
}
.ws-spacer {
width: 22px;
flex: none;
}
.ws-name {
background: none;
border: 0;
cursor: pointer;
color: var(--ink);
font-family: ui-monospace, monospace;
font-size: 12.5px;
padding: 2px 4px;
border-radius: 6px;
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
}
.ws-name:hover {
text-decoration: underline;
}
.ws-count {
font-size: 12px;
}
.ws-source {
font-size: 12px;
}
.ws-node .ws-actions {
display: flex;
gap: 4px;
margin-left: auto;
}
.ws-node .ws-actions .btn {
padding: 2px 6px;
font-size: 12px;
}
/* Row actions stay always visible (no hover-reveal) for touch + keyboard
users; keyboard focus uses the global :focus-visible outline. */
@media (max-width: 1300px) {
/* Both panels open squeeze the chat column; let sidebars shrink first. */
.sidebar {
width: 280px;
}
}
/* ================= web-agent Web App layer =================
Layout: left nav (glass) + main column (topbar + chat + composer) +
right inspector (glass). Hero empty-state with prompt gallery cards.
Violet gradient primary, glass surfaces,
rounded 16-20px cards, pill composer. */
.wa-app {
display: flex;
flex-direction: row;
height: 100vh;
height: 100dvh;
overflow: hidden;
min-height: 0;
}
.wa-app::before {
content: none;
display: none;
}
/* Left nav */
.wa-nav {
width: 288px;
flex: none;
display: flex;
flex-direction: column;
gap: 10px;
padding: 16px 14px 14px;
border-right: 1px solid var(--border);
background: var(--panel);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
overflow-y: auto;
min-height: 0;
max-height: 100%;
}
[data-theme="dark"] .wa-nav {
background: rgba(18, 10, 38, 0.45);
}
.wa-brand {
display: flex;
align-items: center;
gap: 10px;
padding: 2px 6px 8px;
}
.wa-orb {
width: 36px;
height: 36px;
display: grid;
place-items: center;
border-radius: 12px;
background: var(--grad);
color: #fff;
font-weight: 800;
font-size: 18px;
box-shadow: 0 8px 28px -6px rgba(168, 85, 247, 0.6), inset 0 1px 0 rgba(255,
255, 255, 0.25);
}
.wa-brand strong {
display: block;
font-size: 16px;
letter-spacing: -0.02em;
line-height: 1.1;
}
.wa-brand small {
display: block;
font-size: 12px;
color: var(--muted);
font-weight: 500;
}
.wa-newchat {
width: 100%;
border: 0;
border-radius: 12px;
padding: 11px 14px;
font-size: 14px;
font-weight: 700;
color: #fff;
background: var(--grad);
cursor: pointer;
box-shadow: 0 8px 28px -6px rgba(168, 85, 247, 0.6), inset 0 1px 0 rgba(255,
255, 255, 0.2);
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.wa-newchat:hover {
filter: brightness(1.07);
}
.wa-search {
width: 100%;
padding: 9px 12px;
border-radius: 10px;
border: 1px solid var(--border);
background: var(--panel-2);
color: var(--ink);
font-size: 13.5px;
font-family: inherit;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wa-search::placeholder {
color: var(--muted);
}
.wa-search:focus {
outline: none;
border-color: var(--accent-strong);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.wa-section {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--muted);
padding: 8px 8px 2px;
}
.wa-links {
display: flex;
flex-direction: column;
gap: 2px;
}
.wa-link {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
border: 1px solid transparent;
background: transparent;
color: var(--muted);
border-radius: 10px;
padding: 9px 10px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
text-align: left;
font-family: inherit;
}
.wa-link:hover {
background: color-mix(in srgb, var(--accent) 8%, transparent);
color: var(--ink);
}
.wa-link.active {
background: color-mix(in srgb, var(--accent) 14%, transparent);
border-color: color-mix(in srgb, var(--accent) 35%, transparent);
color: var(--ink);
}
[data-theme="dark"] .wa-link.active {
background: rgba(168, 85, 247, 0.22);
}
.wa-link .count {
margin-left: auto;
font-size: 11.5px;
font-weight: 700;
background: var(--panel-2);
border: 1px solid var(--border);
border-radius: 999px;
padding: 1px 8px;
color: var(--muted);
flex: none;
}
.wa-recent-empty {
padding: 0 10px;
font-size: 12.5px;
}
.wa-recent {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.wa-recent button {
width: 100%;
text-align: left;
border: 0;
background: transparent;
color: var(--muted);
font-size: 13px;
padding: 7px 10px;
border-radius: 8px;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-family: inherit;
}
.wa-recent button:hover {
background: color-mix(in srgb, var(--accent) 8%, transparent);
color: var(--ink);
}
.wa-nav-foot {
margin-top: auto;
border-top: 1px solid var(--border);
padding-top: 10px;
display: flex;
flex-direction: column;
gap: 8px;
}
.wa-user {
display: flex;
align-items: center;
gap: 10px;
padding: 8px;
border: 1px solid var(--border);
border-radius: 12px;
background: var(--panel-2);
}
.wa-user .avatar {
width: 30px;
height: 30px;
font-size: 12px;
}
.wa-user b {
display: block;
font-size: 13px;
line-height: 1.2;
}
.wa-user span {
font-size: 12px;
color: var(--muted);
display: flex;
align-items: center;
gap: 6px;
}
.wa-foot-row {
display: flex;
gap: 6px;
}
.wa-foot-row .btn,
.wa-foot-row .icon-btn {
flex: 1;
min-width: 0;
padding: 8px 6px;
font-size: 13px;
justify-content: center;
}
/* Main column */
.wa-main {
flex: 1 1 auto;
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
height: 100%;
}
.wa-topbar {
flex: none;
display: flex;
align-items: center;
gap: 10px;
padding: 10px 20px;
border-bottom: 1px solid var(--border);
background: color-mix(in srgb, var(--panel) 72%, transparent);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
z-index: 20;
}
.wa-menu-btn {
display: none;
}
.wa-model {
display: inline-flex;
align-items: center;
gap: 8px;
border: 1px solid var(--border);
background: var(--panel);
border-radius: 999px;
padding: 6px 12px;
font-size: 13.5px;
font-weight: 700;
white-space: nowrap;
}
.wa-model .dot {
width: 8px;
height: 8px;
}
.wa-topbar-actions {
margin-left: auto;
display: flex;
gap: 8px;
align-items: center;
flex: none;
}
.wa-body {
flex: 1 1 auto;
display: flex;
gap: 16px;
padding: 16px 20px;
overflow: hidden;
min-height: 0;
min-width: 0;
}
/* Chat column owns its vertical space: notes on top, scroll region in the
middle, composer pinned at the bottom. */
.wa-body .chat-col {
flex: 1 1 auto;
min-width: 0;
min-height: 0;
overflow: hidden;
}
.wa-body .messages-wrap {
flex: 1 1 auto;
min-height: 0;
}
/* Empty-state hero fills the scroll region and scrolls internally when
the viewport is short, so the orb + cards never clip behind panels. */
.chat-col > .wa-hero {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
max-width: 720px;
margin: 0 auto;
}
/* Hero empty state */
.wa-hero {
max-width: 760px;
margin: auto;
text-align: center;
padding: 24px 16px;
width: 100%;
}
.wa-hero-orb {
width: 60px;
height: 60px;
margin: 0 auto 14px;
display: grid;
place-items: center;
font-size: 26px;
color: #fff;
border-radius: 20px;
background: var(--grad);
box-shadow: 0 12px 40px -6px rgba(168, 85, 247, 0.65), inset 0 1px 0 rgba(255,
255, 255, 0.3);
}
.wa-hero h2 {
margin: 0 0 8px;
font-size: clamp(22px, 3.4vw, 30px);
letter-spacing: -0.03em;
line-height: 1.15;
}
.wa-hero h2 span {
background: var(--grad-bright);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.wa-hero p {
margin: 0 auto 18px;
color: var(--muted);
max-width: 540px;
font-size: 14px;
line-height: 1.55;
}
.wa-hero .chips {
margin-top: 14px;
}
.wa-prompts {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
text-align: left;
}
.wa-prompt {
border: 1px solid var(--border);
background: var(--panel);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border-radius: var(--radius);
padding: 12px 13px;
cursor: pointer;
font-family: inherit;
color: var(--ink);
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 6px;
font-size: 13.5px;
font-weight: 650;
line-height: 1.4;
box-shadow: var(--shadow);
transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s
ease;
min-width: 0;
}
.wa-prompt:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lift);
border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.wa-prompt small {
font-weight: 400;
color: var(--muted);
font-size: 12px;
line-height: 1.45;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.wa-prompt .pi {
width: 28px;
height: 28px;
display: grid;
place-items: center;
border-radius: 9px;
background: color-mix(in srgb, var(--accent) 14%, transparent);
border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
font-size: 15px;
flex: none;
}
/* Composer pill */
.wa-composer {
flex: none;
border: 1px solid var(--border);
background: var(--panel);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lift);
padding: 10px 10px 8px;
}
[data-theme="dark"] .wa-composer {
border-color: rgba(180, 140, 255, 0.22);
box-shadow: 0 8px 28px -6px rgba(168, 85, 247, 0.5), inset 0 1px 0 rgba(255,
255, 255, 0.06);
}
.wa-composer textarea {
display: block;
width: 100%;
border: 0 !important;
box-shadow: none !important;
background: transparent !important;
border-radius: 0 !important;
padding: 8px 10px !important;
min-height: 44px;
}
.wa-composer textarea:focus {
box-shadow: none !important;
}
.wa-composer-bar {
display: flex;
align-items: center;
gap: 10px;
padding: 4px 4px 0;
}
.wa-composer-bar .count {
flex: none;
}
.wa-composer-bar select {
max-width: 220px;
border: 1px solid var(--border);
background: var(--panel-2);
color: var(--ink);
border-radius: 999px;
padding: 6px 10px;
font-size: 12.5px;
font-family: inherit;
}
/* Bucket export row tucked under the send bar. */
.wa-bucket-row {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
width: 100%;
margin-top: 8px;
padding: 8px 4px 0;
border-top: 1px dashed var(--border);
}
.wa-bucket-row select {
flex: 1 1 180px;
min-width: 0;
border: 1px solid var(--border);
background: var(--panel-2);
color: var(--ink);
border-radius: 999px;
padding: 6px 10px;
font-size: 12.5px;
font-family: inherit;
}
.wa-send {
margin-left: auto;
width: 40px;
height: 40px;
border-radius: 50%;
border: 0;
background: var(--grad);
color: #fff;
display: grid;
place-items: center;
cursor: pointer;
box-shadow: 0 8px 24px -6px rgba(168, 85, 247, 0.7);
}
.wa-send:disabled {
opacity: 0.45;
box-shadow: none;
cursor: default;
}
.wa-send:not(:disabled):hover {
filter: brightness(1.08);
}
/* Glass cards + inspector */
[data-theme="dark"] .card,
[data-theme="dark"] .bubble-assistant,
[data-theme="dark"] .toolcall,
[data-theme="dark"] .wa-prompt,
[data-theme="dark"] .wa-user {
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
}
.card {
border-radius: var(--radius);
box-shadow: var(--shadow);
}
.bubble {
border-radius: var(--radius);
}
.bubble-assistant {
border-top-left-radius: 6px;
}
.topbar {
display: none;
}
.tabs {
display: none;
}
.wa-backdrop {
display: none;
}
@media (max-width: 1100px) {
.wa-nav {
position: fixed;
top: 0;
bottom: 0;
left: 0;
z-index: 41;
width: min(320px, 86vw);
max-height: none;
box-shadow: var(--shadow-lift);
transform: translateX(-105%);
transition: transform 0.2s ease;
}
.wa-nav.open {
transform: none;
}
.wa-backdrop {
display: block;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.45);
z-index: 40;
}
.wa-menu-btn {
display: inline-flex;
}
}
@media (max-width: 1400px) {
.wa-prompts {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 640px) {
.wa-prompts {
grid-template-columns: 1fr;
}
.wa-hero {
padding: 16px 8px;
}
.wa-hero h2 {
font-size: 24px;
}
.wa-body {
padding: 12px;
gap: 12px;
}
.wa-topbar {
padding: 10px 12px;
gap: 8px;
}
.wa-model {
font-size: 12.5px;
padding: 5px 10px;
}
}
/* p2p-agents React UI — web-agent theme (cosmic violet + glass).
Design tokens live here (:root light, [data-theme="dark"] override).
Light = clean lavender-white web-agent; dark = cosmic violet glass
(radial glows + translucent surfaces + violet glow accents).
First paint: index.html sets data-theme from storage else
prefers-color-scheme; the :root:not([data-theme]) fallback below covers
the no-JS / pre-script case. */
:root {
color-scheme: light;
--bg: #f6f3ff;
--bg-glow:
radial-gradient(900px 420px at 50% -8%, rgba(168, 85, 247, 0.22) 0%, transparent 65%),
radial-gradient(800px 420px at 108% 108%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
radial-gradient(700px 380px at -8% 100%, rgba(34, 211, 238, 0.1) 0%, transparent 60%);
--panel: rgba(255, 255, 255, 0.82);
--panel-2: #f8f5ff;
--ink: #1a1a2e;
--muted: #6b7280;
--accent: #7c3aed;
--accent-strong: #6d28d9;
--accent-ink: #ffffff;
--accent-2: #0891b2;
--grad: linear-gradient(135deg, #a855f7 0%, #7c3aed 55%, #6d28d9 100%);
--grad-bright: linear-gradient(90deg, #a855f7, #22d3ee);
--border: #e8e0f0;
--tool-bg: #f5f0ff;
--danger: #e11d48;
--radius: 16px;
--radius-lg: 20px;
--glass-blur: blur(22px) saturate(160%);
--shadow: 0 1px 2px rgba(90, 40, 180, 0.07), 0 8px 24px rgba(90, 40, 180, 0.08);
--shadow-lift: 0 2px 6px rgba(90, 40, 180, 0.1), 0 16px 40px rgba(124, 58, 237, 0.18);
--focus: #7c3aed;
}
[data-theme="dark"] {
color-scheme: dark;
--bg: #0a0612;
--bg-glow:
radial-gradient(ellipse 80% 55% at 50% -10%, rgba(168, 85, 247, 0.55) 0%, rgba(168, 85, 247, 0) 65%),
radial-gradient(ellipse 70% 55% at 110% 110%, rgba(120, 50, 220, 0.5) 0%, rgba(120, 50, 220, 0) 60%),
radial-gradient(ellipse 60% 45% at -10% 100%, rgba(70, 20, 160, 0.45) 0%, rgba(70, 20, 160, 0) 60%),
linear-gradient(180deg, #1a0a32 0%, #0a0612 55%, #050309 100%);
--panel: rgba(30, 18, 60, 0.45);
--panel-2: rgba(20, 12, 42, 0.55);
--ink: #ece6ff;
--muted: #948aba;
--accent: #a855f7;
--accent-strong: #b478ff;
--accent-ink: #ffffff;
--accent-2: #22d3ee;
--grad: linear-gradient(135deg, #a855f7 0%, #7c3aed 60%, #6d28d9 100%);
--grad-bright: linear-gradient(90deg, #b478ff, #22d3ee);
--border: rgba(180, 140, 255, 0.16);
--tool-bg: rgba(80, 50, 140, 0.28);
--danger: #fb7185;
--shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 28px rgba(0, 0, 0, 0.4);
--shadow-lift: 0 4px 10px rgba(0, 0, 0, 0.5), 0 8px 28px -6px rgba(168, 85, 247, 0.6);
--focus: #b478ff;
}
/* No-JS / pre-script fallback: follow the OS when no explicit theme set. */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]):not([data-theme="dark"]) {
color-scheme: dark;
--bg: #0a0612;
--bg-glow:
radial-gradient(ellipse 80% 55% at 50% -10%, rgba(168, 85, 247, 0.55) 0%, rgba(168, 85, 247, 0) 65%),
radial-gradient(ellipse 70% 55% at 110% 110%, rgba(120, 50, 220, 0.5) 0%, rgba(120, 50, 220, 0) 60%),
radial-gradient(ellipse 60% 45% at -10% 100%, rgba(70, 20, 160, 0.45) 0%, rgba(70, 20, 160, 0) 60%),
linear-gradient(180deg, #1a0a32 0%, #0a0612 55%, #050309 100%);
--panel: rgba(30, 18, 60, 0.45);
--panel-2: rgba(20, 12, 42, 0.55);
--ink: #ece6ff;
--muted: #948aba;
--accent: #a855f7;
--accent-strong: #b478ff;
--accent-ink: #ffffff;
--accent-2: #22d3ee;
--grad: linear-gradient(135deg, #a855f7 0%, #7c3aed 60%, #6d28d9 100%);
--grad-bright: linear-gradient(90deg, #b478ff, #22d3ee);
--border: rgba(180, 140, 255, 0.16);
--tool-bg: rgba(80, 50, 140, 0.28);
--danger: #fb7185;
--shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 28px rgba(0, 0, 0, 0.4);
--shadow-lift: 0 4px 10px rgba(0, 0, 0, 0.5), 0 8px 28px -6px rgba(168, 85, 247, 0.6);
--focus: #b478ff;
}
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
font-size: 15px;
line-height: 1.6;
background-color: var(--bg);
background-image: var(--bg-glow);
background-attachment: fixed;
color: var(--ink);
letter-spacing: -0.006em;