566 lines
23 KiB
CSS
566 lines
23 KiB
CSS
/* =========================================================================
|
|
AGIBOT A3 · Voice Control
|
|
A dark, single-purpose control surface. Committed to one theme on purpose:
|
|
this is meant to be projected or shown on a stand next to the robot.
|
|
========================================================================= */
|
|
|
|
:root {
|
|
/* surfaces */
|
|
--bg: #080a0f;
|
|
--bg-glow-a: rgba(34, 211, 238, 0.10);
|
|
--bg-glow-b: rgba(59, 130, 246, 0.08);
|
|
--surface: #11151f;
|
|
--surface-2: #161b28;
|
|
--surface-3: #1c2230;
|
|
--border: rgba(255, 255, 255, 0.075);
|
|
--border-strong: rgba(255, 255, 255, 0.14);
|
|
|
|
/* text */
|
|
--text: #e8ecf4;
|
|
--text-dim: #9aa4bb;
|
|
--text-faint: #626c85;
|
|
|
|
/* brand + state */
|
|
--accent: #22d3ee;
|
|
--accent-deep: #0891b2;
|
|
--accent-soft: rgba(34, 211, 238, 0.14);
|
|
--ok: #34d399;
|
|
--warn: #fbbf24;
|
|
--danger: #f87171;
|
|
--busy: #818cf8;
|
|
|
|
--radius: 14px;
|
|
--radius-sm: 10px;
|
|
--shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.32);
|
|
|
|
--font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
|
|
"Helvetica Neue", Arial, sans-serif;
|
|
--mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", Consolas, monospace;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
/* Author `display` rules below outrank the UA stylesheet's [hidden], so restate
|
|
it with priority - otherwise .banner / .chip stay visible when hidden=true. */
|
|
[hidden] { display: none !important; }
|
|
|
|
html, body { height: 100%; }
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: var(--font);
|
|
font-size: 15px;
|
|
line-height: 1.5;
|
|
color: var(--text);
|
|
background:
|
|
radial-gradient(1100px 620px at 12% -10%, var(--bg-glow-a), transparent 60%),
|
|
radial-gradient(900px 520px at 92% 0%, var(--bg-glow-b), transparent 55%),
|
|
var(--bg);
|
|
background-attachment: fixed;
|
|
-webkit-font-smoothing: antialiased;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
|
|
.mono { font-family: var(--mono); font-size: 13px; }
|
|
|
|
/* =========================================================================
|
|
HEADER
|
|
========================================================================= */
|
|
.topbar {
|
|
position: sticky; top: 0; z-index: 40;
|
|
display: flex; align-items: center; justify-content: space-between; gap: 16px;
|
|
padding: 14px clamp(16px, 4vw, 40px);
|
|
background: rgba(8, 10, 15, 0.72);
|
|
backdrop-filter: blur(14px);
|
|
-webkit-backdrop-filter: blur(14px);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.topbar__brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
|
|
|
|
.brand__mark {
|
|
display: grid; place-items: center;
|
|
width: 40px; height: 40px; flex: none;
|
|
border-radius: 11px;
|
|
color: var(--accent);
|
|
background: linear-gradient(160deg, var(--surface-3), var(--surface));
|
|
border: 1px solid var(--border-strong);
|
|
box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
|
|
}
|
|
.brand__mark svg { width: 23px; height: 23px; }
|
|
|
|
.brand__text h1 { font-size: 16px; letter-spacing: 0.02em; }
|
|
.brand__text p { margin: 0; font-size: 12px; color: var(--text-faint); letter-spacing: .06em; text-transform: uppercase; }
|
|
|
|
.mode-badge {
|
|
margin-left: 6px; padding: 3px 9px;
|
|
font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
|
|
border-radius: 6px;
|
|
color: var(--warn);
|
|
background: rgba(251, 191, 36, .12);
|
|
border: 1px solid rgba(251, 191, 36, .3);
|
|
white-space: nowrap;
|
|
}
|
|
.mode-badge[data-mode="real"] { color: var(--ok); background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.3); }
|
|
|
|
.topbar__status { display: flex; align-items: center; gap: 10px; }
|
|
|
|
/* connection pill */
|
|
.conn {
|
|
display: inline-flex; align-items: center; gap: 9px;
|
|
padding: 7px 14px 7px 12px;
|
|
border-radius: 999px;
|
|
font-size: 13px; font-weight: 500; white-space: nowrap;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
transition: border-color .25s, background .25s, color .25s;
|
|
}
|
|
.conn__dot {
|
|
width: 8px; height: 8px; border-radius: 50%;
|
|
background: var(--text-faint);
|
|
box-shadow: 0 0 0 0 transparent;
|
|
transition: background .25s;
|
|
}
|
|
.conn[data-state="connected"] { color: var(--ok); border-color: rgba(52,211,153,.32); background: rgba(52,211,153,.09); }
|
|
.conn[data-state="connected"] .conn__dot { background: var(--ok); box-shadow: 0 0 10px rgba(52,211,153,.75); }
|
|
.conn[data-state="connecting"] { color: var(--warn); border-color: rgba(251,191,36,.32); background: rgba(251,191,36,.09); }
|
|
.conn[data-state="connecting"] .conn__dot { background: var(--warn); animation: pulse 1.1s ease-in-out infinite; }
|
|
.conn[data-state="disconnected"] { color: var(--danger); border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.08); }
|
|
.conn[data-state="disconnected"] .conn__dot { background: var(--danger); }
|
|
.conn[data-state="error"] { color: var(--danger); border-color: rgba(248,113,113,.45); background: rgba(248,113,113,.12); }
|
|
.conn[data-state="error"] .conn__dot { background: var(--danger); animation: pulse 1.4s ease-in-out infinite; }
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; transform: scale(1); }
|
|
50% { opacity: .35; transform: scale(.82); }
|
|
}
|
|
|
|
.chip {
|
|
display: inline-flex; align-items: center; gap: 6px;
|
|
padding: 6px 11px; border-radius: 999px;
|
|
font-family: var(--mono); font-size: 12px; color: var(--text-dim);
|
|
background: var(--surface-2); border: 1px solid var(--border);
|
|
}
|
|
.chip svg { width: 12px; height: 12px; color: var(--accent); }
|
|
|
|
.icon-btn {
|
|
display: grid; place-items: center;
|
|
width: 36px; height: 36px; flex: none;
|
|
border-radius: 10px; cursor: pointer;
|
|
color: var(--text-dim);
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
transition: color .18s, border-color .18s, background .18s, transform .18s;
|
|
}
|
|
.icon-btn svg { width: 17px; height: 17px; }
|
|
.icon-btn:hover { color: var(--accent); border-color: var(--border-strong); background: var(--surface-3); }
|
|
.icon-btn:active { transform: scale(.94); }
|
|
.icon-btn[data-spin="true"] svg { animation: spin .9s linear infinite; }
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
/* =========================================================================
|
|
CONFIG BANNER
|
|
========================================================================= */
|
|
.banner {
|
|
display: flex; align-items: flex-start; gap: 11px;
|
|
margin: 16px clamp(16px, 4vw, 40px) 0;
|
|
padding: 13px 16px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 13.5px;
|
|
color: #fde68a;
|
|
background: rgba(251, 191, 36, .07);
|
|
border: 1px solid rgba(251, 191, 36, .28);
|
|
}
|
|
.banner[data-level="error"] { color: #fecaca; background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.3); }
|
|
.banner svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
|
|
.banner__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
.banner__body strong { font-weight: 650; }
|
|
.banner__body span { color: inherit; opacity: .88; }
|
|
|
|
/* =========================================================================
|
|
LAYOUT
|
|
========================================================================= */
|
|
.layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
|
|
gap: 20px;
|
|
max-width: 1240px;
|
|
margin: 0 auto;
|
|
padding: 22px clamp(16px, 4vw, 40px) 48px;
|
|
align-items: start;
|
|
}
|
|
.sidebar { display: flex; flex-direction: column; gap: 20px; }
|
|
|
|
.panel {
|
|
background: linear-gradient(180deg, var(--surface-2), var(--surface));
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
padding: 20px;
|
|
}
|
|
.panel--speech { padding: 22px; }
|
|
|
|
.panel__head {
|
|
display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
|
|
margin-bottom: 14px;
|
|
}
|
|
.panel__head h2 { font-size: 15px; letter-spacing: -0.01em; }
|
|
.panel__hint { font-size: 12.5px; color: var(--text-faint); }
|
|
.panel__note {
|
|
margin: 12px 0 0; font-size: 12.5px; color: var(--text-faint); line-height: 1.5;
|
|
overflow-wrap: anywhere; /* long file paths must not push the panel wide */
|
|
}
|
|
|
|
.count {
|
|
display: inline-block; margin-left: 6px; padding: 1px 7px;
|
|
font-size: 11px; font-weight: 600; color: var(--text-dim);
|
|
background: var(--surface-3); border-radius: 999px; border: 1px solid var(--border);
|
|
}
|
|
|
|
/* =========================================================================
|
|
COMPOSER
|
|
========================================================================= */
|
|
.composer {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
background: #0d111a;
|
|
transition: border-color .2s, box-shadow .2s;
|
|
}
|
|
.composer:focus-within {
|
|
border-color: rgba(34, 211, 238, .45);
|
|
box-shadow: 0 0 0 3px var(--accent-soft);
|
|
}
|
|
|
|
.composer__input {
|
|
display: block; width: 100%;
|
|
padding: 16px 17px 10px;
|
|
border: 0; outline: none; resize: vertical;
|
|
min-height: 150px;
|
|
font-family: inherit; font-size: 16.5px; line-height: 1.6;
|
|
color: var(--text); background: transparent;
|
|
}
|
|
.composer__input::placeholder { color: var(--text-faint); }
|
|
|
|
.composer__meta {
|
|
display: flex; align-items: center; justify-content: space-between; gap: 12px;
|
|
padding: 9px 15px 11px;
|
|
font-size: 12px; color: var(--text-faint);
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
.kbd-hint { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
|
|
kbd {
|
|
padding: 2px 6px; border-radius: 5px;
|
|
font-family: var(--mono); font-size: 10.5px; color: var(--text-dim);
|
|
background: var(--surface-3); border: 1px solid var(--border-strong);
|
|
box-shadow: 0 1px 0 rgba(0,0,0,.4);
|
|
}
|
|
.counter { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
|
|
.counter b { color: var(--text-dim); font-weight: 500; }
|
|
.counter[data-level="warn"] b { color: var(--warn); }
|
|
.counter[data-level="over"] b { color: var(--danger); }
|
|
|
|
/* =========================================================================
|
|
ACTIONS
|
|
========================================================================= */
|
|
.actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
|
|
|
|
.btn {
|
|
display: inline-flex; align-items: center; justify-content: center; gap: 9px;
|
|
padding: 0 20px; height: 46px;
|
|
font-family: inherit; font-size: 14.5px; font-weight: 550;
|
|
color: var(--text);
|
|
border-radius: 11px; border: 1px solid var(--border-strong);
|
|
background: var(--surface-3);
|
|
cursor: pointer;
|
|
transition: background .18s, border-color .18s, color .18s, transform .12s, opacity .18s;
|
|
}
|
|
.btn svg { width: 17px; height: 17px; }
|
|
.btn:hover:not(:disabled) { background: #232a3a; border-color: rgba(255,255,255,.2); }
|
|
.btn:active:not(:disabled) { transform: translateY(1px); }
|
|
.btn:disabled { opacity: .42; cursor: not-allowed; }
|
|
.btn--ghost { color: var(--text-dim); }
|
|
.btn--ghost:hover:not(:disabled) { color: var(--text); }
|
|
|
|
/* the one button that matters */
|
|
.btn--speak {
|
|
flex: 1 1 260px;
|
|
height: 54px;
|
|
padding: 0 30px;
|
|
font-size: 16px; font-weight: 650; letter-spacing: .01em;
|
|
color: #04222a;
|
|
border: 0;
|
|
background: linear-gradient(135deg, #67e8f9 0%, var(--accent) 45%, var(--accent-deep) 100%);
|
|
box-shadow: 0 6px 22px rgba(34, 211, 238, .26), inset 0 1px 0 rgba(255,255,255,.35);
|
|
}
|
|
.btn--speak:hover:not(:disabled) {
|
|
filter: brightness(1.07);
|
|
box-shadow: 0 8px 30px rgba(34, 211, 238, .36), inset 0 1px 0 rgba(255,255,255,.4);
|
|
}
|
|
.btn--speak:disabled { background: var(--surface-3); color: var(--text-faint); box-shadow: none; }
|
|
.btn__icon { display: inline-grid; place-items: center; }
|
|
.btn__spinner { display: none; width: 16px; height: 16px; border-radius: 50%;
|
|
border: 2px solid rgba(4,34,42,.28); border-top-color: #04222a; animation: spin .7s linear infinite; }
|
|
|
|
.btn--speak[data-busy="true"] .btn__icon { display: none; }
|
|
.btn--speak[data-busy="true"] .btn__spinner { display: block; }
|
|
|
|
/* =========================================================================
|
|
PIPELINE
|
|
========================================================================= */
|
|
.pipeline { margin-top: 22px; }
|
|
|
|
.pipeline__track {
|
|
position: relative; height: 3px; border-radius: 3px;
|
|
background: var(--surface-3); overflow: hidden;
|
|
}
|
|
.pipeline__track i {
|
|
position: absolute; inset: 0 100% 0 0;
|
|
background: linear-gradient(90deg, var(--accent-deep), var(--accent));
|
|
transition: inset .45s cubic-bezier(.4, 0, .2, 1);
|
|
}
|
|
.pipeline[data-stage="failed"] .pipeline__track i,
|
|
.pipeline[data-stage="cancelled"] .pipeline__track i { background: var(--danger); }
|
|
|
|
.pipeline__steps {
|
|
display: grid; grid-template-columns: repeat(4, 1fr);
|
|
margin: 11px 0 0; padding: 0; list-style: none;
|
|
font-size: 12.5px; color: var(--text-faint);
|
|
}
|
|
.pipeline__steps li { display: flex; align-items: center; gap: 7px; transition: color .3s; }
|
|
.pipeline__steps li:last-child { justify-content: flex-end; }
|
|
.pipeline__steps li:nth-child(2) { justify-content: center; }
|
|
.pipeline__steps li:nth-child(3) { justify-content: center; }
|
|
.pipeline__steps .dot {
|
|
width: 7px; height: 7px; border-radius: 50%;
|
|
background: var(--surface-3); border: 1px solid var(--border-strong);
|
|
transition: background .3s, border-color .3s, box-shadow .3s;
|
|
}
|
|
.pipeline__steps li[data-on="done"] { color: var(--text-dim); }
|
|
.pipeline__steps li[data-on="done"] .dot { background: var(--accent-deep); border-color: var(--accent-deep); }
|
|
.pipeline__steps li[data-on="active"] { color: var(--accent); font-weight: 550; }
|
|
.pipeline__steps li[data-on="active"] .dot { background: var(--accent); border-color: var(--accent);
|
|
box-shadow: 0 0 0 4px var(--accent-soft); }
|
|
.pipeline[data-stage="failed"] li[data-on="active"],
|
|
.pipeline[data-stage="cancelled"] li[data-on="active"] { color: var(--danger); }
|
|
.pipeline[data-stage="failed"] li[data-on="active"] .dot,
|
|
.pipeline[data-stage="cancelled"] li[data-on="active"] .dot {
|
|
background: var(--danger); border-color: var(--danger); box-shadow: 0 0 0 4px rgba(248,113,113,.16);
|
|
}
|
|
|
|
/* =========================================================================
|
|
LIVE STATUS
|
|
========================================================================= */
|
|
.live {
|
|
display: flex; align-items: center; gap: 11px;
|
|
margin-top: 18px; padding: 13px 16px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--surface); border: 1px solid var(--border);
|
|
font-size: 14px;
|
|
transition: border-color .3s, background .3s;
|
|
}
|
|
.live__text { font-weight: 550; }
|
|
.live__detail { color: var(--text-faint); font-size: 12.5px; font-family: var(--mono); margin-left: auto; }
|
|
|
|
.live[data-tone="idle"] { color: var(--text-dim); }
|
|
.live[data-tone="busy"] { color: var(--accent); border-color: rgba(34,211,238,.3); background: rgba(34,211,238,.05); }
|
|
.live[data-tone="speaking"] { color: var(--accent); border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.07); }
|
|
.live[data-tone="ok"] { color: var(--ok); border-color: rgba(52,211,153,.28); background: rgba(52,211,153,.05); }
|
|
.live[data-tone="error"] { color: var(--danger); border-color: rgba(248,113,113,.32); background: rgba(248,113,113,.06); }
|
|
|
|
/* speaking waveform */
|
|
.live__wave { display: none; align-items: flex-end; gap: 3px; height: 18px; }
|
|
.live[data-tone="speaking"] .live__wave { display: flex; }
|
|
.live__wave i {
|
|
display: block; width: 3px; border-radius: 2px;
|
|
background: currentColor;
|
|
animation: wave 900ms ease-in-out infinite;
|
|
}
|
|
.live__wave i:nth-child(1) { height: 7px; animation-delay: 0ms; }
|
|
.live__wave i:nth-child(2) { height: 14px; animation-delay: 120ms; }
|
|
.live__wave i:nth-child(3) { height: 18px; animation-delay: 240ms; }
|
|
.live__wave i:nth-child(4) { height: 11px; animation-delay: 360ms; }
|
|
.live__wave i:nth-child(5) { height: 6px; animation-delay: 480ms; }
|
|
@keyframes wave {
|
|
0%, 100% { transform: scaleY(.35); opacity: .55; }
|
|
50% { transform: scaleY(1); opacity: 1; }
|
|
}
|
|
|
|
/* =========================================================================
|
|
FACTS
|
|
========================================================================= */
|
|
.facts { margin: 0; display: flex; flex-direction: column; gap: 1px; }
|
|
.fact {
|
|
display: flex; align-items: center; justify-content: space-between; gap: 12px;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid rgba(255,255,255,.045);
|
|
}
|
|
.fact:last-child { border-bottom: 0; }
|
|
.fact dt { font-size: 12.5px; color: var(--text-faint); }
|
|
.fact dd { margin: 0; font-size: 13px; font-weight: 500; text-align: right;
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62%; }
|
|
.fact dd[data-tone="ok"] { color: var(--ok); }
|
|
.fact dd[data-tone="warn"] { color: var(--warn); }
|
|
.fact dd[data-tone="error"] { color: var(--danger); }
|
|
|
|
/* =========================================================================
|
|
HISTORY
|
|
========================================================================= */
|
|
.link-btn {
|
|
padding: 3px 8px; border: 0; border-radius: 6px; cursor: pointer;
|
|
font-family: inherit; font-size: 12.5px; color: var(--text-faint);
|
|
background: transparent; transition: color .18s, background .18s;
|
|
}
|
|
.link-btn:hover { color: var(--danger); background: rgba(248,113,113,.09); }
|
|
|
|
.history {
|
|
list-style: none; margin: 0; padding: 0;
|
|
display: flex; flex-direction: column; gap: 7px;
|
|
max-height: 340px; overflow-y: auto;
|
|
scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
|
|
}
|
|
.history::-webkit-scrollbar { width: 7px; }
|
|
.history::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
|
|
|
|
.hitem {
|
|
display: flex; align-items: flex-start; gap: 10px;
|
|
padding: 9px 11px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--surface); border: 1px solid var(--border);
|
|
cursor: pointer;
|
|
transition: border-color .16s, background .16s, transform .16s;
|
|
}
|
|
.hitem:hover { border-color: var(--border-strong); background: var(--surface-3); }
|
|
.hitem:active { transform: scale(.99); }
|
|
.hitem__bar { width: 3px; align-self: stretch; border-radius: 2px; background: var(--text-faint); flex: none; }
|
|
.hitem[data-ok="true"] .hitem__bar { background: var(--ok); }
|
|
.hitem[data-ok="false"] .hitem__bar { background: var(--danger); }
|
|
.hitem[data-ok="pending"] .hitem__bar { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
|
|
|
|
.hitem__body { min-width: 0; flex: 1; }
|
|
.hitem__text {
|
|
font-size: 13px; line-height: 1.45; color: var(--text);
|
|
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
|
|
}
|
|
.hitem__meta {
|
|
display: flex; align-items: center; gap: 8px; margin-top: 4px;
|
|
font-family: var(--mono); font-size: 11px; color: var(--text-faint);
|
|
}
|
|
.hitem__meta .err { color: var(--danger); font-family: var(--font); }
|
|
|
|
.empty { margin: 4px 0 0; font-size: 12.5px; color: var(--text-faint); line-height: 1.55; }
|
|
|
|
/* =========================================================================
|
|
TOASTS
|
|
========================================================================= */
|
|
.toasts {
|
|
position: fixed; right: 20px; bottom: 20px; z-index: 90;
|
|
display: flex; flex-direction: column; gap: 9px;
|
|
max-width: min(380px, calc(100vw - 40px));
|
|
}
|
|
.toast {
|
|
display: flex; align-items: flex-start; gap: 10px;
|
|
padding: 12px 14px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 13.5px; line-height: 1.45;
|
|
color: var(--text);
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border-strong);
|
|
box-shadow: var(--shadow);
|
|
animation: toast-in .25s cubic-bezier(.2, .8, .3, 1);
|
|
}
|
|
.toast[data-tone="error"] { border-color: rgba(248,113,113,.42); background: #1d1316; }
|
|
.toast[data-tone="ok"] { border-color: rgba(52,211,153,.38); background: #0f1a17; }
|
|
.toast__dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--text-faint); }
|
|
.toast[data-tone="error"] .toast__dot { background: var(--danger); }
|
|
.toast[data-tone="ok"] .toast__dot { background: var(--ok); }
|
|
.toast.is-out { animation: toast-out .2s ease-in forwards; }
|
|
|
|
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
|
|
@keyframes toast-out { to { opacity: 0; transform: translateY(6px) scale(.98); } }
|
|
|
|
/* =========================================================================
|
|
RESPONSIVE
|
|
========================================================================= */
|
|
@media (max-width: 980px) {
|
|
.layout { grid-template-columns: 1fr; }
|
|
.sidebar { order: 2; }
|
|
}
|
|
@media (max-width: 620px) {
|
|
.topbar { flex-wrap: wrap; gap: 10px; }
|
|
.brand__text p { display: none; }
|
|
.panel__hint { display: none; }
|
|
.actions { flex-direction: column; }
|
|
.btn { width: 100%; }
|
|
.pipeline__steps { font-size: 11.5px; }
|
|
.toasts { right: 12px; left: 12px; bottom: 12px; max-width: none; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
|
|
}
|
|
|
|
|
|
/* =========================================================================
|
|
SAVED AUDIO
|
|
========================================================================= */
|
|
.audio-list {
|
|
list-style: none; margin: 12px 0 0; padding: 0;
|
|
display: flex; flex-direction: column; gap: 6px;
|
|
max-height: 260px; overflow-y: auto;
|
|
scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
|
|
}
|
|
.audio-list::-webkit-scrollbar { width: 7px; }
|
|
.audio-list::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
|
|
|
|
.aitem {
|
|
display: flex; align-items: center; gap: 9px;
|
|
padding: 7px 9px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--surface); border: 1px solid var(--border);
|
|
transition: border-color .16s, background .16s;
|
|
}
|
|
.aitem:hover { border-color: var(--border-strong); background: var(--surface-3); }
|
|
|
|
.aitem__play {
|
|
display: grid; place-items: center;
|
|
width: 26px; height: 26px; flex: none;
|
|
border-radius: 50%; cursor: pointer;
|
|
color: #04222a; background: var(--accent); border: 0;
|
|
transition: filter .15s, transform .12s;
|
|
}
|
|
.aitem__play svg { width: 12px; height: 12px; }
|
|
.aitem__play:hover { filter: brightness(1.1); }
|
|
.aitem__play:active { transform: scale(.92); }
|
|
.aitem__play[data-playing="true"] { background: var(--warn); }
|
|
|
|
.aitem__body { min-width: 0; flex: 1; }
|
|
.aitem__text {
|
|
font-size: 12.5px; line-height: 1.4; color: var(--text);
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
}
|
|
.aitem__meta {
|
|
font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); margin-top: 2px;
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
}
|
|
.aitem__dl {
|
|
flex: none; display: grid; place-items: center;
|
|
width: 24px; height: 24px; border-radius: 6px;
|
|
color: var(--text-faint); text-decoration: none;
|
|
transition: color .15s, background .15s;
|
|
}
|
|
.aitem__dl svg { width: 13px; height: 13px; }
|
|
.aitem__dl:hover { color: var(--accent); background: var(--surface-3); }
|
|
|
|
/* replay marker on history rows whose audio is already saved */
|
|
.hitem__replay {
|
|
flex: none; display: grid; place-items: center;
|
|
width: 24px; height: 24px; border-radius: 50%;
|
|
border: 0; cursor: pointer;
|
|
color: var(--accent); background: var(--accent-soft);
|
|
transition: filter .15s, transform .12s;
|
|
}
|
|
.hitem__replay svg { width: 11px; height: 11px; }
|
|
.hitem__replay:hover { filter: brightness(1.25); }
|
|
.hitem__replay:active { transform: scale(.9); }
|