localagent-webgpu / style.css
danelcsb's picture
deploy generable-dispatch demo (scenarios-best)
e15d158 verified
:root {
--bg: #0f1020;
--panel: #1a1b35;
--panel-2: #232450;
--fg: #e8e8f2;
--muted: #9a9ac0;
--accent: #8b7cff;
--accent-2: #5ad1c0;
--ok: #5ad17a;
--warn: #ffcc66;
--err: #ff7a90;
--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
margin: 0;
background: radial-gradient(1200px 600px at 70% -10%, #2a2350 0%, var(--bg) 60%);
color: var(--fg);
font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
line-height: 1.5;
}
main { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
header h1 { font-size: 1.7rem; margin: 0 0 4px; }
header h1 .sub { font-size: 0.95rem; color: var(--muted); font-weight: 400; }
.tagline { color: var(--muted); margin: 0 0 20px; font-size: 0.92rem; }
.tagline a { color: var(--accent-2); text-decoration: none; }
.tagline a:hover { text-decoration: underline; }
.status {
display: flex; align-items: center; gap: 10px;
background: var(--panel); border: 1px solid var(--panel-2);
border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; margin-bottom: 18px;
}
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); flex: none; }
.status.loading .dot { background: var(--warn); animation: pulse 1.2s infinite; }
.status.ready .dot { background: var(--ok); }
.status.error .dot { background: var(--err); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.badge {
margin-left: auto; font-family: var(--mono); font-size: 0.75rem;
background: var(--panel-2); padding: 2px 8px; border-radius: 6px; color: var(--accent-2);
}
.io label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
textarea {
width: 100%; background: var(--panel); color: var(--fg);
border: 1px solid var(--panel-2); border-radius: 10px; padding: 12px 14px;
font-size: 1rem; resize: vertical; font-family: inherit;
}
textarea:focus { outline: none; border-color: var(--accent); }
.row { display: flex; align-items: center; justify-content: space-between; margin: 12px 0; gap: 12px; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--fg); cursor: pointer; }
.switch input { accent-color: var(--accent); width: 16px; height: 16px; }
button#run {
background: var(--accent); color: #11102a; border: none; font-weight: 600;
padding: 10px 22px; border-radius: 10px; font-size: 0.95rem; cursor: pointer;
}
button#run:disabled { opacity: 0.45; cursor: not-allowed; }
button#run:not(:disabled):hover { filter: brightness(1.08); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.examples span { color: var(--muted); font-size: 0.82rem; }
.chip {
background: var(--panel); color: var(--fg); border: 1px solid var(--panel-2);
border-radius: 999px; padding: 5px 12px; font-size: 0.82rem; cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: #fff; }
.result { margin-top: 22px; }
.call {
background: var(--panel); border: 1px solid var(--panel-2); border-left: 3px solid var(--accent-2);
border-radius: 10px; padding: 14px 16px; margin-bottom: 10px;
}
.call .tool { font-family: var(--mono); font-size: 1rem; color: var(--accent-2); }
.call .conf { float: right; color: var(--muted); font-size: 0.8rem; font-family: var(--mono); }
.call pre { margin: 8px 0 0; font-family: var(--mono); font-size: 0.85rem; color: var(--fg); white-space: pre-wrap; }
.call.abstain { border-left-color: var(--warn); }
.call.abstain .tool { color: var(--warn); }
.step-index { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; margin-right: 6px; }
.call .route { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 10px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 0.72rem; vertical-align: middle; }
.timing { color: var(--muted); font-size: 0.78rem; margin-top: 6px; font-family: var(--mono); }
footer { margin-top: 36px; color: var(--muted); font-size: 0.78rem; }