/* ===== Belscript — strak, donker, duidelijke kleurcodering ===== */
:root {
  --bg: #0B0D10;
  --bg-elev: #14171C;
  --bg-elev-2: #1B1F26;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #EEF1F5;
  --text-dim: #9AA4B2;
  --text-faint: #5C6672;
  --accent: #6E8BFF;
  --accent-glow: rgba(110, 139, 255, 0.35);
  --spk-a: #38E1D3;      /* Spreker 1 */
  --spk-a-bg: rgba(56, 225, 211, 0.12);
  --spk-b: #FFB347;      /* Spreker 2 */
  --spk-b-bg: rgba(255, 179, 71, 0.12);
  --ok: #4ADE80;
  --warn: #FBBF24;
  --err: #FB7185;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
  --tabbar-h: 66px;
  --player-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { background: var(--bg); }        /* geen witte flits bij navigatie */
body {
  background: var(--bg);               /* vlak, geen verloop → geen naden */
  overflow-x: clip;                    /* veilig voor de full-bleed balken */
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  /* niets selecteren bij een gewone tik/klik — wel bij lang indrukken op tekst */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--accent-glow); }

/* tekst die je bewust mag selecteren/kopiëren (via lang indrukken op mobiel) */
.turn .txt, .detail-head h2, .detail-head .meta, .purged code,
.result .r-txt, .card .name {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* eigen pagina-overgang (geen View Transitions → geen witte flits) */
#app > .view { animation: view-in .32s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  #app > .view { animation: none; }
}

#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px calc(var(--tabbar-h) + var(--player-h) + 20px);
  min-height: 100%;
  background: var(--bg);
}

/* onderin: inhoud vervaagt netjes onder de vaste balk i.p.v. hard af te kappen */
.scrim {
  position: fixed; left: 0; right: 0; z-index: 30; height: 84px;
  bottom: var(--tabbar-h);
  background: linear-gradient(to top, var(--bg) 34%, rgba(11, 13, 16, 0));
  pointer-events: none; transition: bottom .4s var(--ease);
}
body.has-player .scrim { bottom: calc(var(--tabbar-h) + var(--player-h)); }

/* helper: element loopt door tot de schermranden, inhoud blijft in de kolom */
.bleed {
  margin-inline: calc(50% - 50vw);
  padding-inline: max(16px, calc(50vw - 360px + 16px));
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  margin-inline: calc(50% - 50vw);
  padding: 18px max(16px, calc(50vw - 360px + 16px)) 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar h1 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 9px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px transparent; } }
.topbar .spacer { flex: 1; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-elev-2);
  border: 1px solid var(--line-strong); object-fit: cover; }
.iconbtn { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-elev); border: 1px solid var(--line); transition: .2s var(--ease); }
.iconbtn:hover { background: var(--bg-elev-2); transform: translateY(-1px); }
.iconbtn svg { width: 19px; height: 19px; fill: var(--text-dim); }

/* ---------- search ---------- */
.search {
  position: relative; margin: 4px 0 14px;
}
.search input {
  width: 100%; height: 46px; border-radius: 14px; padding: 0 42px 0 42px;
  background: var(--bg-elev); border: 1px solid var(--line); color: var(--text);
  font-size: 15px; outline: none; transition: .2s var(--ease);
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); background: var(--bg-elev-2); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; fill: var(--text-faint); pointer-events: none; }
.search .clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 8px; display: none; place-items: center; }
.search.has-value .clear { display: grid; }

/* ---------- segmented control ---------- */
.seg { display: flex; gap: 4px; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 13px; padding: 4px; margin-bottom: 16px; }
.seg button { flex: 1; height: 36px; border-radius: 9px; color: var(--text-dim);
  font-weight: 600; font-size: 13.5px; transition: .22s var(--ease); position: relative; }
.seg button.active { color: var(--text); background: var(--bg-elev-2);
  box-shadow: inset 0 0 0 1px var(--line-strong); }
.seg .badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px;
  padding: 0 5px; margin-left: 6px; font-size: 11px; border-radius: 6px;
  background: var(--accent); color: #0b0d10; font-weight: 700; vertical-align: 1px; }

/* ---------- conversation cards ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.card {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 13px; align-items: center;
  padding: 14px; border-radius: var(--radius); background: var(--bg-elev);
  border: 1px solid var(--line); text-align: left; width: 100%;
  transition: transform .18s var(--ease), border-color .2s, background .2s;
  animation: card-in .4s var(--ease) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.card:active { transform: scale(.985); }
.card:hover { border-color: var(--line-strong); background: var(--bg-elev-2); }
.card .ava { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 700; font-size: 16px; letter-spacing: -.02em;
  background: linear-gradient(145deg, var(--bg-elev-2), #0e1116); border: 1px solid var(--line-strong);
  color: var(--accent); position: relative; }
.card .ava .dir { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px;
  border-radius: 50%; display: grid; place-items: center; background: var(--bg-elev-2);
  border: 1px solid var(--line-strong); }
.card .ava .dir svg { width: 10px; height: 10px; }
.dir.in svg { fill: var(--ok); } .dir.out svg { fill: var(--accent); } .dir.unknown svg { fill: var(--text-faint); }

/* avatar-inhoud: initialen of foto */
.ava-in, .ava-in-lg { position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: inherit; overflow: hidden; }
.ava-in img, .ava-in-lg img { width: 100%; height: 100%; object-fit: cover; }
.card .main { min-width: 0; }
.card .name { font-weight: 650; font-size: 15.5px; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { color: var(--text-dim); font-size: 12.5px; margin-top: 3px;
  display: flex; align-items: center; gap: 7px; }
.card .sub .hit { color: var(--accent); font-weight: 600; }
.card .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.card .time { font-variant-numeric: tabular-nums; color: var(--text-dim); font-size: 12px; }

/* status pill */
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 7px;
  letter-spacing: .01em; display: inline-flex; align-items: center; gap: 5px; }
.pill.done { color: var(--ok); background: rgba(74, 222, 128, .12); }
.pill.queued { color: var(--text-dim); background: rgba(255,255,255,.06); }
.pill.transcribing, .pill.diarizing { color: var(--warn); background: rgba(251, 191, 36, .12); }
.pill.error { color: var(--err); background: rgba(251, 113, 133, .12); }
.pill .spin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor;
  border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- empty / loading ---------- */
.empty { text-align: center; color: var(--text-faint); padding: 70px 20px; }
.empty svg { width: 46px; height: 46px; fill: currentColor; opacity: .5; margin-bottom: 12px; }
.skel { height: 74px; border-radius: var(--radius); background: linear-gradient(100deg,
  var(--bg-elev) 30%, var(--bg-elev-2) 50%, var(--bg-elev) 70%);
  background-size: 200% 100%; animation: sweep 1.3s linear infinite; }
@keyframes sweep { to { background-position: -200% 0; } }

/* ---------- detail view ---------- */
.detail-head { padding: 6px 0 14px; }
.backrow { position: sticky; top: 8px; z-index: 21; margin-bottom: 12px; }
.backbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 8px;
  border-radius: 999px; background: rgba(20, 23, 28, 0.72); text-decoration: none;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); color: var(--text);
  font-weight: 600; font-size: 13px; letter-spacing: -.01em;
  transition: transform .18s var(--ease), background .2s, border-color .2s;
}
.backbtn:hover { background: var(--bg-elev-2); border-color: var(--accent); }
.backbtn:active { transform: scale(.94); }
.backbtn .chev {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #0b0d10; flex: none; transition: transform .18s var(--ease);
}
.backbtn:hover .chev { transform: translateX(-2px); }
.backbtn .chev svg { width: 14px; height: 14px; }

/* contact-blok in de detailkop (klik = bewerken) */
.contact { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 6px; margin: 0 -6px; border-radius: 16px; transition: background .18s var(--ease); }
.contact:hover { background: var(--bg-elev); }
.contact:active { transform: scale(.99); }
.ava-lg { position: relative; width: 56px; height: 56px; border-radius: 16px; flex: none;
  background: linear-gradient(145deg, var(--bg-elev-2), #0e1116); border: 1px solid var(--line-strong);
  color: var(--accent); font-weight: 700; font-size: 20px; }
.contact .c-text { min-width: 0; }
.contact .c-name { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.15; }
.contact .c-edit { display: grid; place-items: center; width: 22px; height: 22px; flex: none;
  border-radius: 50%; background: var(--bg-elev-2); border: 1px solid var(--line-strong); }
.contact .c-edit svg { width: 12px; height: 12px; fill: none; stroke: var(--text-dim); }
.contact:hover .c-edit { border-color: var(--accent); }
.contact:hover .c-edit svg { stroke: var(--accent); }
.contact .c-meta { display: block; color: var(--text-dim); font-size: 12.5px; margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- bottom sheet: contact bewerken ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end;
  justify-content: center; background: rgba(0, 0, 0, 0); transition: background .3s var(--ease); }
.sheet-back.show { background: rgba(0, 0, 0, 0.55); }
.sheet { width: 100%; max-width: 460px; background: var(--bg-elev);
  border: 1px solid var(--line-strong); border-bottom: 0;
  border-radius: 22px 22px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom, 0));
  transform: translateY(102%); transition: transform .34s var(--ease); box-shadow: var(--shadow); }
.sheet.show { transform: translateY(0); }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong);
  margin: 6px auto 12px; }
.sheet h3 { font-size: 17px; letter-spacing: -.02em; margin-bottom: 16px; text-align: center; }
.ava-edit { position: relative; width: 96px; height: 96px; margin: 0 auto 8px; display: block;
  border-radius: 24px; overflow: visible; cursor: pointer; }
.ava-prev { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; display: grid;
  place-items: center; background: linear-gradient(145deg, var(--bg-elev-2), #0e1116);
  border: 1px solid var(--line-strong); color: var(--accent); font-weight: 700; font-size: 32px; }
.ava-prev img { width: 100%; height: 100%; object-fit: cover; }
.ava-cam { position: absolute; right: -6px; bottom: -6px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); border: 3px solid var(--bg-elev); }
.ava-cam svg { width: 15px; height: 15px; stroke: #0b0d10; }
.linkbtn { display: block; margin: 0 auto 14px; color: var(--err); font-size: 12.5px; font-weight: 600; }
.fld { display: block; margin-bottom: 14px; }
.fld span { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.fld input { width: 100%; height: 46px; border-radius: 12px; padding: 0 14px; font-size: 15px;
  background: var(--bg-elev-2); border: 1px solid var(--line); color: var(--text); outline: none; }
.fld input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.scope { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.scope label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-dim);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.scope label:has(input:checked) { border-color: var(--accent); color: var(--text); background: var(--bg-elev-2); }
.scope input { accent-color: var(--accent); width: 16px; height: 16px; }
.scope b { color: var(--text); font-weight: 600; }
.scope-note { font-size: 12.5px; color: var(--text-faint); margin-bottom: 18px; }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .p-btn { flex: 1; height: 46px; justify-content: center; }

.detail-head h2 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.detail-head .meta { color: var(--text-dim); font-size: 13px; margin-top: 6px;
  display: flex; gap: 10px; flex-wrap: wrap; }

/* speaker timeline — full-bleed, met een echte 'afgespeeld'-schaduw */
.timeline { margin: 16px 0 6px; margin-inline: calc(50% - 50vw); }
.timeline .bar { position: relative; height: 46px; overflow: hidden;
  background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timeline .seg-a, .timeline .seg-b { position: absolute; height: 50%; border-radius: 2px; }
.timeline .seg-a { top: 3px; background: var(--spk-a); opacity: .92; }
.timeline .seg-b { bottom: 3px; background: var(--spk-b); opacity: .92; }
.timeline .tl-shade { position: absolute; top: 0; right: 0; bottom: 0; left: 100%;
  background: rgba(11, 13, 16, 0.45); transition: left .12s linear; pointer-events: none; }
.timeline .play-cursor { position: absolute; top: 0; width: 2px; height: 100%; opacity: 0;
  background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.85); transition: left .12s linear, opacity .2s; }
.timeline.playing .play-cursor { opacity: 1; }
.timeline .legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-dim);
  margin: 9px max(16px, calc(50vw - 360px + 16px)) 0; }
.timeline .legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: 0; }

/* in-conversation search */
.mini-search { position: relative; margin: 14px 0 6px; }
.mini-search input { width: 100%; height: 40px; border-radius: 11px; padding: 0 14px 0 36px;
  background: var(--bg-elev); border: 1px solid var(--line); color: var(--text); outline: none; }
.mini-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.mini-search svg { position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; fill: var(--text-faint); }
.mini-search .nav { position: absolute; right: 6px; top: 5px; display: flex; gap: 2px; align-items: center; }
.mini-search .nav span { font-size: 11px; color: var(--text-faint); padding: 0 6px; }
.mini-search .nav button { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.mini-search .nav button:hover { background: var(--bg-elev-2); }

/* transcript */
.transcript { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; }
.turn { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 9px 10px;
  border-radius: var(--radius-sm); transition: background .18s var(--ease);
  scroll-margin-top: 90px; animation: card-in .35s var(--ease) both; }
.turn:hover { background: var(--bg-elev); }
.turn.active { background: var(--bg-elev-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.turn.match { background: rgba(110,139,255,.1); }
.turn.match.current { box-shadow: inset 0 0 0 1px var(--accent); }
.turn .who { font-size: 11px; font-weight: 700; text-align: right; padding-top: 3px;
  font-variant-numeric: tabular-nums; }
.turn .who .t { display: block; color: var(--text-faint); font-weight: 500; margin-top: 2px; }
.turn.a .who { color: var(--spk-a); } .turn.b .who { color: var(--spk-b); }
.turn .txt { font-size: 15px; line-height: 1.55; }
.turn.a .txt { border-left: 2px solid var(--spk-a); padding-left: 11px; }
.turn.b .txt { border-left: 2px solid var(--spk-b); padding-left: 11px; }
.turn .txt mark { background: var(--accent); color: #0b0d10; border-radius: 3px; padding: 0 2px; }

/* ---------- processing / queue view ---------- */
.pipe { display: flex; flex-direction: column; gap: 12px; }
.job { padding: 15px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.job .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.job .top b { font-weight: 650; letter-spacing: -.01em; }
.stages { display: flex; align-items: center; gap: 0; margin-top: 14px; }
.stage { flex: 1; text-align: center; position: relative; font-size: 11px; color: var(--text-faint); }
.stage .ball { width: 22px; height: 22px; border-radius: 50%; margin: 0 auto 6px;
  background: var(--bg-elev-2); border: 2px solid var(--line-strong); display: grid; place-items: center;
  transition: .3s var(--ease); }
.stage .ball svg { width: 11px; height: 11px; fill: #0b0d10; opacity: 0; transition: .2s; }
.stage.on .ball { border-color: var(--accent); }
.stage.done .ball { background: var(--accent); border-color: var(--accent); }
.stage.done .ball svg { opacity: 1; }
.stage.on { color: var(--text); }
.stage.done { color: var(--text-dim); }
.stage:not(:last-child)::after { content: ""; position: absolute; top: 11px; left: 60%; right: -40%;
  height: 2px; background: var(--line-strong); }
.stage.done:not(:last-child)::after { background: var(--accent); }
.progress { height: 5px; border-radius: 3px; background: var(--bg-elev-2); overflow: hidden; margin-top: 14px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--spk-a));
  border-radius: 3px; transition: width .5s var(--ease); }
.job.error { border-color: rgba(251,113,133,.35); }
.job .errline { color: var(--err); font-size: 12.5px; margin-top: 10px; }
.retry { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--line-strong); border-radius: 9px; padding: 7px 12px; }

/* ---------- global search results ---------- */
.result { padding: 13px 14px; border-radius: var(--radius-sm); background: var(--bg-elev);
  border: 1px solid var(--line); width: 100%; text-align: left; margin-bottom: 8px;
  animation: card-in .3s var(--ease) both; transition: .18s var(--ease); }
.result:hover { border-color: var(--line-strong); background: var(--bg-elev-2); }
.result .r-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); }
.result .r-txt { margin-top: 6px; font-size: 14px; }
.result .r-txt b { color: var(--accent); font-weight: 400; }
.result .r-spk { font-weight: 700; font-size: 11px; margin-right: 6px; }
.result .r-spk.a { color: var(--spk-a); } .result .r-spk.b { color: var(--spk-b); }

/* ---------- sticky player ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: var(--tabbar-h); z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: rgba(20, 23, 28, 0.86); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-strong);
  transform: translateY(120%); transition: transform .4s var(--ease); pointer-events: none;
}
.player:not(.hidden) { transform: translateY(0); pointer-events: auto; }
.pl-btn { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent); box-shadow: 0 6px 20px -4px var(--accent-glow); transition: transform .15s var(--ease); }
.pl-btn:active { transform: scale(.9); }
.pl-btn svg { width: 20px; height: 20px; fill: #0b0d10; }
.pl-btn .i-pause { display: none; }
.player.playing .pl-btn .i-play { display: none; }
.player.playing .pl-btn .i-pause { display: block; }
.pl-body { flex: 1; min-width: 0; }
.pl-scrub { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; }
.pl-track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--bg-elev-2); }
.pl-fill { position: absolute; left: 0; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--spk-a)); width: 0; }
.pl-head { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--text);
  box-shadow: 0 0 0 4px rgba(238,241,245,.15); left: 0; transform: translateX(-50%); }
.pl-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim);
  font-variant-numeric: tabular-nums; margin-top: 2px; }
.pl-title { max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-faint); }
.pl-rate { font-size: 12px; font-weight: 700; color: var(--text-dim); width: 30px; text-align: center; }

/* ---------- bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--tabbar-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
  display: flex; background: rgba(11,13,16,.9); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a { flex: 1; display: grid; place-items: center; gap: 3px; color: var(--text-faint);
  font-size: 10.5px; font-weight: 600; text-decoration: none; transition: color .2s var(--ease); }
.tabbar a svg { width: 22px; height: 22px; fill: currentColor; transition: transform .2s var(--ease); }
.tabbar a.active { color: var(--accent); }
.tabbar a.active svg { transform: translateY(-1px) scale(1.06); }
.tabbar a .qbadge { position: absolute; margin: -20px 0 0 20px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 8px; background: var(--warn); color: #0b0d10;
  font-size: 10px; font-weight: 800; display: grid; place-items: center; }

/* ---------- login ---------- */
.login { min-height: 88vh; display: grid; place-items: center; text-align: center; }
.login .box { max-width: 340px; }
.login .logo { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 22px;
  background: linear-gradient(145deg, var(--bg-elev-2), #0e1116); border: 1px solid var(--line-strong);
  display: grid; place-items: center; }
.login .logo svg { width: 30px; height: 30px; fill: var(--accent); }
.login h1 { font-size: 26px; letter-spacing: -.03em; }
.login p { color: var(--text-dim); margin: 10px 0 26px; font-size: 14px; }
.gbtn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 13px; background: #fff; color: #1f1f1f; font-weight: 600; text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .2s; }
.gbtn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(255,255,255,.25); }
.gbtn svg { width: 18px; height: 18px; }
.login small { display: block; margin-top: 18px; color: var(--text-faint); font-size: 12px; }

/* ---------- audio opgeruimd ---------- */
.purged { margin: 14px 0 4px; padding: 18px; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px dashed var(--line-strong); text-align: center; }
.purged .p-icon { width: 40px; height: 40px; margin: 0 auto 10px; opacity: .5; }
.purged .p-icon svg { width: 100%; height: 100%; fill: var(--text-faint); }
.purged b { font-size: 14.5px; }
.purged p { color: var(--text-dim); font-size: 13px; margin: 8px auto 12px; max-width: 40ch; }
.purged code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; cursor: pointer;
  background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; font-size: 12.5px; color: var(--spk-a); }
.purged .p-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.purged .p-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border-radius: 10px; background: var(--accent); color: #0b0d10; font-weight: 650; font-size: 13px;
  text-decoration: none; transition: transform .15s var(--ease); }
.purged .p-btn:active { transform: scale(.95); }
.purged .p-btn.ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--line-strong); }

.hidden { display: none !important; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--player-h) + 14px);
  transform: translateX(-50%) translateY(20px); background: var(--bg-elev-2);
  border: 1px solid var(--line-strong); color: var(--text); padding: 10px 16px; border-radius: 12px;
  font-size: 13px; box-shadow: var(--shadow); opacity: 0; transition: .3s var(--ease); z-index: 60; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 560px) {
  .card .name { font-size: 16px; }
}
