:root {
  --bg: #f5f6fb; --card: #ffffff; --card-2: #f9f9fd; --text: #1c1f33; --muted: #6a6f8a; --line: #e4e6f0;
  --primary: #5847ff; --primary-2: #8b5cf6; --primary-soft: #eeebff; --on-primary: #fff;
  --ok: #12965a; --ok-soft: #e3f6ec; --warn: #b26b00; --warn-soft: #fff4dd; --err: #d33b3b; --err-soft: #fde8e8;
  --local: #0f8a6a; --online: #2463d6; --keyed: #a2569f;
  --radius: 14px; --shadow: 0 1px 2px rgba(20, 20, 50, .05), 0 6px 24px rgba(20, 20, 50, .06);
  --nav-h: 64px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1020; --card: #171a2e; --card-2: #1c2036; --text: #e8eaf7; --muted: #9da2c0; --line: #2a2e48;
    --primary: #7c6dff; --primary-2: #a78bfa; --primary-soft: #262350; --on-primary: #fff;
    --ok: #3ccf8e; --ok-soft: #12352a; --warn: #f0b44c; --warn-soft: #3a2d12; --err: #ff6b6b; --err-soft: #3d1a1f;
    --local: #3cc9a0; --online: #6ea2ff; --keyed: #e08ad8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1020; --card: #171a2e; --card-2: #1c2036; --text: #e8eaf7; --muted: #9da2c0; --line: #2a2e48;
  --primary: #7c6dff; --primary-2: #a78bfa; --primary-soft: #262350; --on-primary: #fff;
  --ok: #3ccf8e; --ok-soft: #12352a; --warn: #f0b44c; --warn-soft: #3a2d12; --err: #ff6b6b; --err-soft: #3d1a1f;
  --local: #3cc9a0; --online: #6ea2ff; --keyed: #e08ad8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .25); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; scroll-padding-bottom: 140px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
@media (min-width: 820px) { body { padding-bottom: 32px; } }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.02rem; }
p { margin: .25rem 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .76rem; }
.hidden { display: none !important; }
code, pre, kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85em; }
code { background: var(--card-2); border: 1px solid var(--line); padding: .05em .35em; border-radius: 6px; }
pre {
  background: #12142a; color: #e6e8ff; padding: 12px 14px; border-radius: 10px; overflow-x: auto;
  white-space: pre; margin: .5rem 0; line-height: 1.45;
}

/* ---------- header / nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.08rem; text-decoration: none; color: var(--text); }
.brand-logo {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
}
.tabs { display: none; gap: 4px; margin-left: 12px; }
.tabs a {
  text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 9px; font-weight: 550; font-size: .93rem;
}
.tabs a:hover { background: var(--card); color: var(--text); }
.tabs a.active { background: var(--primary-soft); color: var(--primary); }
.topbar .spacer { flex: 1; }
@media (min-width: 820px) { .tabs { display: flex; } }

.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 600;
}
.bottomnav a svg { width: 22px; height: 22px; }
.bottomnav a.active { color: var(--primary); }
@media (min-width: 820px) { .bottomnav { display: none; } }

main { max-width: 1040px; margin: 0 auto; padding: 16px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.page-head h1 { font-size: 1.45rem; margin: 0; }

/* ---------- cards / layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 600;
  padding: 9px 14px; border-radius: 11px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none; line-height: 1.2; min-height: 40px; transition: transform .05s, background .15s, border-color .15s;
}
.btn:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--on-primary); border-color: transparent; }
.btn-primary:hover { filter: brightness(1.05); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--card-2); border-color: var(--line); }
.btn-danger { color: var(--err); }
.btn-sm { padding: 6px 10px; min-height: 32px; font-size: .85rem; border-radius: 9px; }
.btn-lg { padding: 13px 20px; font-size: 1.05rem; min-height: 50px; border-radius: 13px; }
.btn-block { width: 100%; }
.icon-btn {
  appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--text); width: 38px; height: 38px;
  border-radius: 10px; display: inline-grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.playing { background: var(--primary); color: #fff; border-color: var(--primary); }
.icon-btn.loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
label.lbl { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
input[type=text], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--card-2); border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 12px; outline: none; min-height: 42px;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
textarea { resize: vertical; min-height: 240px; line-height: 1.55; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field + .field { margin-top: 14px; }
.seg { display: inline-flex; background: var(--card-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; cursor: pointer; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { left: 21px; }
.switch .sw-text b { display: block; font-weight: 600; font-size: .93rem; }
.switch .sw-text span { color: var(--muted); font-size: .82rem; }

.slider { padding: 4px 0; }
.slider .row-between { margin-bottom: 4px; }
.slider .val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--primary); }
input[type=range] { width: 100%; accent-color: var(--primary); height: 28px; }
.slider .ticks { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; }

details.adv { border: 1px dashed var(--line); border-radius: 12px; padding: 0 14px; margin-top: 14px; }
details.adv > summary { cursor: pointer; padding: 12px 0; font-weight: 650; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 8px; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::before { content: "▸"; transition: transform .15s; display: inline-block; }
details.adv[open] > summary::before { transform: rotate(90deg); }
details.adv[open] { padding-bottom: 14px; }

/* ---------- stepper ---------- */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 16px; counter-reset: step; }
.step-tab {
  border: 0; background: none; padding: 6px 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted); font: inherit; font-size: .8rem; font-weight: 650; position: relative;
}
.step-tab::before { content: ""; position: absolute; top: 21px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.step-tab:first-child::before { display: none; }
.step-tab .dot {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line);
  position: relative; z-index: 1; font-weight: 750; transition: all .15s;
}
.step-tab.done .dot { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.step-tab.done::before, .step-tab.active::before { background: var(--primary); }
.step-tab.active { color: var(--text); }
.step-tab.active .dot { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 40%, transparent); }
.step-tab:disabled { cursor: not-allowed; opacity: .6; }
.step-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; position: sticky; bottom: calc(var(--nav-h) + 8px + env(safe-area-inset-bottom)); z-index: 5; }
@media (min-width: 820px) { .step-actions { bottom: 12px; } }
.step-actions .btn { box-shadow: var(--shadow); }

/* ---------- type cards / chips ---------- */
.types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .types { grid-template-columns: repeat(4, 1fr); } }
.type-card {
  text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px; cursor: pointer; font: inherit; color: var(--text);
  display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, background .15s;
}
.type-card .ico { font-size: 1.5rem; line-height: 1; }
.type-card b { font-size: .97rem; }
.type-card span { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.type-card.on { border-color: var(--primary); background: var(--primary-soft); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: thin; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: .85rem;
  font-weight: 600; white-space: nowrap; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip:hover:not(.on) { border-color: var(--primary); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.badge.local { background: color-mix(in srgb, var(--local) 14%, transparent); color: var(--local); }
.badge.online { background: color-mix(in srgb, var(--online) 14%, transparent); color: var(--online); }
.badge.keyed { background: color-mix(in srgb, var(--keyed) 14%, transparent); color: var(--keyed); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.neutral { background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }

/* ---------- editor ---------- */
.editor-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.editor-bar .count { margin-left: auto; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.format-help { background: var(--card-2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; font-size: .84rem; color: var(--muted); margin-top: 8px; }
.format-help code { font-size: .82rem; }

/* ---------- roles / voices ---------- */
.role { border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: var(--card); }
.role + .role { margin-top: 10px; }
.role-head { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; color: #fff; flex: none; font-size: .95rem;
}
.role-name { font-weight: 700; }
.role-sample { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-meta { min-width: 0; flex: 1; }
.voice-pick {
  margin-top: 10px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--card-2);
  border-radius: 11px; padding: 8px 8px 8px 12px; cursor: pointer; width: 100%; font: inherit; color: var(--text); text-align: left;
}
.voice-pick:hover { border-color: var(--primary); }
.voice-pick .vp-main { flex: 1; min-width: 0; }
.voice-pick .vp-name { font-weight: 650; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.voice-pick .vp-sub { color: var(--muted); font-size: .8rem; }
.role-adj { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 8px; }
@media (min-width: 640px) { .role-adj { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

/* ---------- modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(10, 10, 30, .5); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 720px) { .modal-back { align-items: center; padding: 24px; } }
.modal {
  background: var(--card); width: 100%; max-width: 760px; max-height: 92vh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.35); animation: up .18s ease-out;
}
@media (min-width: 720px) { .modal { border-radius: 18px; max-height: 86vh; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
.modal-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.modal-head h3 { margin: 0; flex: 1; }
.modal-body { padding: 12px 16px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 640px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.vlist { margin-top: 10px; }
.vrow { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 11px; cursor: pointer; border: 1px solid transparent; }
.vrow:hover { background: var(--card-2); }
.vrow.sel { border-color: var(--primary); background: var(--primary-soft); }
.vrow .vr-main { flex: 1; min-width: 0; }
.vrow .vr-name { font-weight: 650; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vrow .vr-sub { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-f { color: #d0478f; } .g-m { color: #3a7bd5; }

/* ---------- generate / result ---------- */
.summary-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-item:last-child { border-bottom: 0; }
.summary-item .si-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; font-weight: 800; }
.summary-item .si-main { flex: 1; min-width: 0; }
.summary-item .si-main b { display: block; }
.summary-item .si-main div { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.progress { height: 10px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width .3s; }
.progress.indet > i { width: 35% !important; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { margin-left: -35%; } to { margin-left: 100%; } }
audio { width: 100%; margin: 6px 0; }
.transcript { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: var(--card-2); }
.seg-line { padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: .92rem; display: flex; gap: 8px; }
.seg-line:hover { background: var(--card); }
.seg-line.now { background: var(--primary-soft); color: var(--text); }
.seg-line .t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .78rem; padding-top: 2px; flex: none; width: 40px; }
.seg-line .who { font-weight: 700; margin-right: 4px; }
.alert { border-radius: 11px; padding: 10px 12px; font-size: .88rem; }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.err { background: var(--err-soft); color: var(--err); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.info { background: var(--primary-soft); color: var(--text); }

/* ---------- history / lists ---------- */
.job { display: flex; gap: 12px; align-items: flex-start; }
.job + .job { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.job .j-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.job .j-main { flex: 1; min-width: 0; }
.job .j-title { font-weight: 700; overflow-wrap: anywhere; }
.job .j-meta { color: var(--muted); font-size: .8rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.job .j-prev { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .j-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.empty .big { font-size: 2.4rem; }

.engines { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .engines { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .engines { grid-template-columns: 1fr 1fr 1fr; } }
.engine { border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: var(--card); display: flex; flex-direction: column; gap: 6px; }
.engine.off { opacity: .72; }
.engine .e-name { font-weight: 700; }
.engine .e-desc { color: var(--muted); font-size: .84rem; flex: 1; }
.engine .e-lim { font-size: .78rem; color: var(--muted); }

.keyrow { border: 1px solid var(--line); border-radius: 13px; padding: 12px; }
.keyrow + .keyrow { margin-top: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; margin-bottom: calc(-1 * var(--nav-h)); }
.login { width: 100%; max-width: 380px; text-align: center; }
.login .brand-logo { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; }
.login .brand-logo svg { width: 34px; height: 34px; }
.login h1 { font-size: 1.6rem; }
.login form { margin-top: 18px; text-align: left; }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
@media (min-width: 820px) { .toasts { bottom: 20px; } }
.toast { background: #1d2036; color: #fff; padding: 11px 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: .9rem; animation: up .2s ease-out; }
.toast.err { background: #a42a2a; }
.toast.ok { background: #136b45; }
.spinner { width: 18px; height: 18px; border: 2.5px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
.skeleton { background: linear-gradient(90deg, var(--card-2), var(--line), var(--card-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; height: 64px; }
.skeleton + .skeleton { margin-top: 10px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.copy-wrap { position: relative; }
.copy-wrap .btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
table.simple { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.simple th, table.simple td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { color: var(--muted); font-weight: 650; font-size: .8rem; }
.scroll-x { overflow-x: auto; }
