/* LiveKit Voice Center — operations dashboard */
:root {
  --bg: #0b0f17;
  --bg-elev: #121826;
  --bg-elev-2: #182033;
  --bg-hover: #1d2740;
  --border: #243049;
  --border-strong: #33415f;
  --text: #e6ebf5;
  --text-muted: #8f9bb3;
  --text-faint: #5f6b85;
  --accent: #4f8cff;
  --accent-strong: #3a74e6;
  --accent-soft: rgba(79, 140, 255, .14);

  --st-created: #8f9bb3;
  --st-ringing: #f5b544;
  --st-connecting: #5ec8ff;
  --st-connected: #2fd07f;
  --st-hold: #b58cff;
  --st-completed: #7d8aa5;
  --st-failed: #ff5d6c;
  --st-missed: #ff9448;

  --ok: #2fd07f;
  --warn: #f5b544;
  --err: #ff5d6c;
  --mock: #d08bff;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --sidebar-w: 240px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-elev: #ffffff;
  --bg-elev-2: #f7f9fd;
  --bg-hover: #eef2fa;
  --border: #e1e6f0;
  --border-strong: #cdd5e4;
  --text: #121a2b;
  --text-muted: #5b6780;
  --text-faint: #8d97ab;
  --accent: #2f6fed;
  --accent-strong: #2259c9;
  --accent-soft: rgba(47, 111, 237, .10);
  --st-created: #6b7790;
  --st-ringing: #c98700;
  --st-connecting: #0a8fcf;
  --st-connected: #12a35d;
  --st-hold: #8055d6;
  --st-completed: #66728a;
  --st-failed: #dc3545;
  --st-missed: #d9661a;
  --ok: #12a35d;
  --warn: #c98700;
  --err: #dc3545;
  --mock: #9b4fd6;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 6px 16px rgba(16,24,40,.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #7b5cff);
  display: grid; place-items: center; color: #fff;
}
.brand-name { font-weight: 700; font-size: 14px; line-height: 1.15; }
.brand-sub { font-size: 11px; color: var(--text-muted); }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); padding: 14px 10px 4px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 500;
}
.nav-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-link:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--accent-soft); color: var(--accent); }
.nav-link.sub { padding-left: 38px; font-size: 13px; }
.nav-count {
  margin-left: auto; background: var(--st-connected); color: #06150d;
  font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 7px; min-width: 20px; text-align: center;
}
.sidebar-footer { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--border); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; display: flex; align-items: center; gap: 12px;
  padding: 0 24px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-weight: 600; font-size: 15px; }
.topbar-spacer { flex: 1; }
.menu-btn { display: none; }
.content { padding: 24px; max-width: 1440px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--text-muted); }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-elev);
  font-size: 12px; font-weight: 500; color: var(--text-muted); white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.dot.warn { background: var(--warn); }
.dot.err { background: var(--err); }
.dot.mock { background: var(--mock); }
.pill.mock { color: var(--mock); border-color: color-mix(in srgb, var(--mock) 45%, transparent); background: color-mix(in srgb, var(--mock) 10%, transparent); font-weight: 600; }
.pill.real { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }

.badge {
  --c: var(--st-created);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.badge.s-ringing { --c: var(--st-ringing); }
.badge.s-connecting { --c: var(--st-connecting); }
.badge.s-connected { --c: var(--st-connected); }
.badge.s-on_hold { --c: var(--st-hold); }
.badge.s-completed { --c: var(--st-completed); }
.badge.s-failed { --c: var(--st-failed); }
.badge.s-missed { --c: var(--st-missed); }
.badge.s-ringing::before, .badge.s-connecting::before { animation: pulse 1.2s ease-in-out infinite; }
.badge.s-connected::before { animation: pulse 2s ease-in-out infinite; }
.badge.plain::before { display: none; }
.badge.active-agent { --c: var(--st-connected); }
.badge.inactive-agent { --c: var(--st-completed); }
.badge.default { --c: var(--accent); }
.badge.mock { --c: var(--mock); }
@keyframes pulse { 50% { opacity: .35; } }

.dir { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.dir svg { width: 14px; height: 14px; }
.dir.inbound { color: var(--st-connecting); }
.dir.outbound { color: var(--accent); }

/* ---------- cards ---------- */
.card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.card-body { padding: 18px; }
.card-body.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { padding: 16px 18px; position: relative; overflow: hidden; }
.kpi-label { color: var(--text-muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.kpi-label svg { width: 15px; height: 15px; }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi.highlight { border-color: color-mix(in srgb, var(--st-connected) 45%, var(--border)); }
.kpi.highlight .kpi-value { color: var(--st-connected); }
.kpi::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--kpi-c, transparent); opacity: .7; }

/* ---------- live call cards ---------- */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.live-card {
  --c: var(--st-created);
  border: 1px solid var(--border); border-left: 3px solid var(--c);
  border-radius: var(--radius); background: var(--bg-elev-2);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.live-card.s-ringing { --c: var(--st-ringing); }
.live-card.s-connecting { --c: var(--st-connecting); }
.live-card.s-connected { --c: var(--st-connected); }
.live-card.s-on_hold { --c: var(--st-hold); }
.live-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.live-dir { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
.live-number { font-size: 19px; font-weight: 600; font-family: var(--mono); letter-spacing: -.01em; }
.live-meta { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 13px; }
.live-meta dt { color: var(--text-muted); }
.live-meta dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-duration { font-family: var(--mono); font-size: 22px; font-variant-numeric: tabular-nums; }
.live-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.live-actions .btn { flex: 1; justify-content: center; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); background: var(--bg-elev-2); position: sticky; top: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--bg-hover); }
tbody tr.clickable { cursor: pointer; }
tbody tr:last-child td { border-bottom: none; }
tr.flash { animation: flash 1.4s ease-out; }
@keyframes flash { from { background: var(--accent-soft); } to { background: transparent; } }
td.num { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12.5px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.field .hint { font-size: 12px; color: var(--text-faint); }
.field .error-text { font-size: 12px; color: var(--err); }
input, select, textarea {
  font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 9px 11px; width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; min-height: 90px; font-family: var(--mono); font-size: 12.5px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.invalid { border-color: var(--err); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.filters .field { flex: 1 1 150px; min-width: 140px; }
.filters input, .filters select { padding: 7px 10px; }
.input-wrap { position: relative; }
.input-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-weight: 600; font-size: 13px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--bg-elev-2); color: var(--text);
  cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, opacity .12s;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { background: var(--bg-hover); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-strong); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.danger:hover { filter: brightness(.92); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn.ghost:hover { background: var(--bg-hover); color: var(--text); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.lg { padding: 11px 20px; font-size: 14px; }
.btn.icon { padding: 7px; }
.btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn .spinner { width: 14px; height: 14px; border-width: 2px; }

/* ---------- states ---------- */
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--border-strong); border-top-color: var(--accent);
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.state { padding: 44px 20px; text-align: center; color: var(--text-muted); display: grid; justify-items: center; gap: 10px; }
.state svg { width: 38px; height: 38px; color: var(--text-faint); }
.state strong { color: var(--text); font-size: 15px; }
.state.error svg { color: var(--err); }
.skeleton { background: linear-gradient(90deg, var(--bg-elev-2), var(--bg-hover), var(--bg-elev-2)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 6px; color: transparent !important; }
@keyframes shimmer { to { background-position: -200% 0; } }

.banner {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid; margin-bottom: 16px; font-size: 13px;
}
.banner svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.banner.mock { color: var(--mock); border-color: color-mix(in srgb, var(--mock) 40%, transparent); background: color-mix(in srgb, var(--mock) 8%, transparent); }
.banner.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.banner.err { color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, transparent); background: color-mix(in srgb, var(--err) 8%, transparent); }
.banner.info { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.banner b { color: inherit; }
.banner span { color: var(--text); }

/* ---------- details / timeline ---------- */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 0; }
.kv > div { padding: 9px 0; border-bottom: 1px solid var(--border); min-width: 0; overflow-wrap: anywhere; }
.kv > div:nth-child(odd) { color: var(--text-muted); font-size: 13px; }
.kv > div:nth-last-child(-n+2) { border-bottom: none; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 88px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { display: grid; grid-template-columns: 76px 24px 1fr; gap: 0 8px; padding: 6px 0; align-items: start; }
.tl-time { font-family: var(--mono); font-size: 12px; color: var(--text-muted); text-align: right; padding-top: 1px; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; margin: 5px auto 0; background: var(--text-faint); position: relative; z-index: 1; box-shadow: 0 0 0 3px var(--bg-elev); }
.tl-dot.call { background: var(--accent); }
.tl-dot.agent { background: var(--st-connected); }
.tl-dot.livekit { background: var(--st-connecting); }
.tl-dot.provider { background: var(--st-ringing); }
.tl-dot.error { background: var(--err); }
.tl-title { font-weight: 600; font-size: 13px; }
.tl-data { font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); overflow-wrap: anywhere; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 12px; overflow-x: auto; }
.tab { background: none; border: none; font: inherit; color: var(--text-muted); font-weight: 600; font-size: 13px; padding: 12px 12px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab .count { font-size: 11px; background: var(--bg-hover); border-radius: 999px; padding: 0 6px; margin-left: 4px; color: var(--text-muted); }

.transcript { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 80%; padding: 9px 13px; border-radius: 12px; background: var(--bg-elev-2); border: 1px solid var(--border); }
.msg .who { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 2px; }
.msg.agent { align-self: flex-start; border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.msg.customer { align-self: flex-end; }
.msg.system { align-self: center; font-style: italic; color: var(--text-muted); background: transparent; border-style: dashed; }
pre.json { margin: 0; padding: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: auto; font-family: var(--mono); font-size: 12px; max-height: 420px; }

.health-list { display: grid; gap: 10px; }
.health-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elev-2); }
.health-item .name { font-weight: 600; }
.health-item .detail { font-size: 12.5px; color: var(--text-muted); }
.health-item .state-label { margin-left: auto; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; white-space: nowrap; }

.agent-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.agent-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.agent-card.inactive { opacity: .7; }
.agent-avatar { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; flex-shrink: 0; }
.agent-card p { margin: 0; color: var(--text-muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.agent-card .foot { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); flex-wrap: wrap; }

.pagination { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--border); gap: 10px; flex-wrap: wrap; }

/* ---------- modal / toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(4, 7, 14, .6); display: grid; place-items: center; z-index: 100; padding: 20px; animation: fade .15s; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.45); animation: pop .16s ease-out; }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: 380px; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-elev); border: 1px solid var(--border); border-left: 3px solid var(--accent); box-shadow: var(--shadow); animation: pop .2s ease-out; font-size: 13px; }
.toast.success { border-left-color: var(--ok); }
.toast.error { border-left-color: var(--err); }
.toast.warn { border-left-color: var(--warn); }
.toast.mock { border-left-color: var(--mock); }
.toast .t-title { font-weight: 600; }
.toast .t-msg { color: var(--text-muted); }
.toast.leaving { opacity: 0; transform: translateX(10px); transition: all .2s; }

/* ---------- login ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(800px 400px at 20% 0%, var(--accent-soft), transparent), var(--bg); }
.login-card { width: 100%; max-width: 400px; padding: 32px; }
.login-card .brand { padding: 0 0 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .menu-btn { display: inline-flex; }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 110px 1fr; }
  .hide-sm { display: none !important; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-value { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Interviews */
.form-cols-2 { grid-template-columns: 1fr 1fr; }
.form-cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .form-cols-2, .form-cols-3 { grid-template-columns: 1fr; } }
.eval-score { font-size: 40px; font-weight: 700; line-height: 1; }
.eval-list { margin: 6px 0 0; padding-left: 1.2em; }
.eval-list li { margin: 3px 0; }
.link-box { display: flex; gap: 8px; }
.link-box input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; }
