/* =========================================================
   Lisa — reisgenoot voor onderweg
   Fase 2 · PWA · dark · electric blue
   ========================================================= */

:root{
  /* surfaces */
  --bg:        #080A0F;
  --bg-soft:   #0C0F16;
  --surface:   #111621;
  --surface-2: #161C29;
  --line:      #1F2735;
  --line-soft: #171E2A;

  /* type */
  --text:      #E9EDF5;
  --text-dim:  #A2ACC0;
  --muted:     #6D7891;

  /* electric blue */
  --accent:      #2E6BFF;
  --accent-2:    #66B3FF;
  --accent-3:    #9CD1FF;
  --accent-wash: rgba(46,107,255,.13);
  --accent-line: rgba(46,107,255,.34);
  --glow:        rgba(46,107,255,.45);

  /* semantic */
  --ok:      #35D08A;
  --warn:    #F5B740;
  --danger:  #FF5F6D;

  /* shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  /* motion — kort en zacht, niets dat vertraagt */
  --t-fast: 120ms cubic-bezier(.4,0,.2,1);
  --t:      200ms cubic-bezier(.4,0,.2,1);
  --t-slow: 320ms cubic-bezier(.32,.72,0,1);

  --maxw: 940px;

  /* veilige zones (notch, home-indicator) */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

*,*::before,*::after{ box-sizing:border-box; }

/* Moet vóór alle display-regels staan: veel blokken zijn display:flex,
   en dat wint het anders van het [hidden]-attribuut. */
[hidden]{ display:none !important; }

html{
  -webkit-text-size-adjust:100%;
  background:var(--bg);
  height:100%;
}

body{
  margin:0;
  min-height:100dvh;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, -apple-system, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  -webkit-tap-highlight-color:transparent;
}

/* Gloed als vaste laag: scheelt repaints en voorkomt iOS-haperingen. */
body::before{
  content:"";
  position:fixed; inset:0; z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(1100px 620px at 50% -18%, rgba(46,107,255,.11), transparent 62%),
    radial-gradient(760px 460px at 88% 8%, rgba(102,179,255,.05), transparent 60%);
}

/* In rijmodus mag de pagina niet meescrollen of stuiteren. */
body[data-mode="drive"]{
  overflow:hidden;
  height:100dvh;
  overscroll-behavior:none;
}

h1,h2,h3{ margin:0; font-weight:600; letter-spacing:-.02em; line-height:1.25; }
p{ margin:0; }
code{
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size:.86em;
  background:var(--surface-2);
  border:1px solid var(--line-soft);
  padding:.08em .38em;
  border-radius:5px;
  color:var(--accent-3);
}
b{ font-weight:600; color:var(--text); }
.muted{ color:var(--muted); }
.link{ color:var(--accent-2); cursor:pointer; }
.link:hover{ text-decoration:underline; }

:focus-visible{
  outline:2px solid var(--accent-2);
  outline-offset:3px;
  border-radius:4px;
}

/* =========================================================
   GEDEELDE ONDERDELEN
   ========================================================= */
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:5px 12px 5px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  font-size:12.5px; color:var(--text-dim);
  white-space:nowrap;
  transition:border-color var(--t), color var(--t);
}
.pill-dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--muted);
  transition:background var(--t), box-shadow var(--t);
}
.pill[data-state="live"]       { border-color:var(--accent-line); color:var(--accent-3); }
.pill[data-state="live"] .pill-dot{ background:var(--accent-2); box-shadow:0 0 10px var(--glow); }
.pill[data-state="connecting"] { border-color:rgba(245,183,64,.35); color:var(--warn); }
.pill[data-state="connecting"] .pill-dot{ background:var(--warn); animation:blink 1s steps(2) infinite; }
.pill[data-state="error"]      { border-color:rgba(255,95,109,.35); color:var(--danger); }
.pill[data-state="error"] .pill-dot{ background:var(--danger); }
.pill[data-state="queued"]     { border-color:rgba(245,183,64,.35); color:var(--warn); }
.pill[data-state="queued"] .pill-dot{ background:var(--warn); }
.pill[data-state="synced"]     { border-color:rgba(53,208,138,.3); color:var(--ok); }
.pill[data-state="synced"] .pill-dot{ background:var(--ok); }

@keyframes blink{ 50%{ opacity:.25; } }

.icon-btn{
  display:grid; place-items:center;
  width:44px; height:44px;            /* minimaal 44px: Apple's tap-target */
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  color:var(--text-dim);
  cursor:pointer;
  flex:0 0 auto;
  transition:background var(--t), color var(--t), border-color var(--t);
}
.icon-btn:hover{ background:var(--surface-2); color:var(--text); border-color:var(--accent-line); }
.icon-btn svg{
  width:20px; height:20px;
  fill:none; stroke:currentColor; stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round;
}

.btn{
  border:1px solid transparent;
  border-radius:999px;
  padding:12px 26px;
  font:inherit; font-size:15px; font-weight:550;
  cursor:pointer;
  transition:background var(--t), border-color var(--t), color var(--t), transform var(--t-fast), opacity var(--t);
}
.btn:active{ transform:scale(.975); }
.btn:disabled{ opacity:.35; cursor:not-allowed; }
.btn:disabled:active{ transform:none; }

.btn-primary{
  background:var(--accent); color:#fff;
  box-shadow:0 6px 22px rgba(46,107,255,.3);
}
.btn-primary:hover:not(:disabled){ background:#4680FF; }

.btn-ghost{
  background:var(--surface); border-color:var(--line); color:var(--text-dim);
}
.btn-ghost:hover:not(:disabled){ border-color:var(--accent-line); color:var(--text); }
.btn-ghost[data-active="1"]{
  border-color:var(--warn); color:var(--warn); background:rgba(245,183,64,.08);
}

.btn-small{ padding:8px 16px; font-size:13.5px; }
.btn-danger{ background:transparent; border-color:rgba(255,95,109,.35); color:var(--danger); }
.btn-danger:hover{ background:rgba(255,95,109,.1); }

/* =========================================================
   RIJMODUS
   ========================================================= */
.drive{
  position:fixed; inset:0;
  display:flex; flex-direction:column;
  padding:calc(var(--sat) + 10px) calc(var(--sar) + 14px) calc(var(--sab) + 12px) calc(var(--sal) + 14px);
  overflow:hidden;
}

.drive-top{
  display:flex; align-items:center; gap:8px;
  flex:0 0 auto;
}
.drive-top-spacer{ flex:1; }

/* De hele middenkolom is de knop. */
.drive-main{
  flex:1 1 auto;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:0;
  min-height:0;
  margin:6px 0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  cursor:pointer;
  border-radius:var(--r-lg);
  transition:background var(--t-fast);
  -webkit-tap-highlight-color:transparent;
}
.drive-main:active{ background:rgba(46,107,255,.06); }

.drive-orb{
  display:block;
  flex:0 1 auto;
  width:min(62vh, 78vw, 420px);
  aspect-ratio:1;
  min-height:0;
}
.drive-orb canvas{ width:100%; height:100%; display:block; }

.drive-status{
  display:block;
  margin-top:clamp(6px, 2vh, 18px);
  font-size:clamp(38px, 11vw, 76px);
  font-weight:650;
  letter-spacing:-.035em;
  line-height:1;
  transition:color var(--t);
}
.drive-status[data-state="listening"]{ color:var(--accent-2); }
.drive-status[data-state="thinking"] { color:var(--accent-3); }
.drive-status[data-state="speaking"] { color:#fff; }
.drive-status[data-state="silent"]   { color:var(--warn); }
.drive-status[data-state="stopped"]  { color:var(--muted); }
.drive-status[data-state="offline"]  { color:var(--danger); }

.drive-sub{
  display:block;
  margin-top:8px;
  font-size:clamp(15px, 4.2vw, 21px);
  color:var(--text-dim);
  min-height:1.4em;
  padding:0 12px;
  text-wrap:balance;
}

.drive-label{
  display:block;
  margin-top:clamp(10px, 2.5vh, 22px);
  padding:10px 30px;
  border:1px solid var(--accent-line);
  border-radius:999px;
  background:var(--accent-wash);
  color:var(--accent-2);
  font-size:clamp(15px, 4vw, 19px);
  font-weight:600;
  letter-spacing:.01em;
}
.drive-main[data-mode="stop"] .drive-label{
  border-color:rgba(255,95,109,.4);
  background:rgba(255,95,109,.08);
  color:var(--danger);
}

.drive-bottom{
  flex:0 0 auto;
  display:flex; flex-direction:column; align-items:center; gap:10px;
}

.live-line{
  width:100%;
  max-width:640px;
  min-height:2.8em;
  font-size:clamp(14px, 3.6vw, 16px);
  line-height:1.45;
  color:var(--text-dim);
  text-align:center;
  opacity:0;
  transform:translateY(4px);
  transition:opacity var(--t), transform var(--t);
  overflow:hidden;
}
.live-line.show{ opacity:1; transform:none; }
.live-line b{ color:var(--accent-2); font-weight:600; }

.btn-silence{
  min-width:200px;
  min-height:52px;
  font-size:16px;
}

.hint{
  font-size:13px;
  color:var(--muted);
  text-align:center;
  max-width:460px;
}

/* meldingen in rijmodus */
.drive-alerts{
  position:absolute;
  left:calc(var(--sal) + 14px);
  right:calc(var(--sar) + 14px);
  bottom:calc(var(--sab) + 12px);
  display:flex; flex-direction:column; gap:8px;
  pointer-events:none;
  z-index:20;
}
.alert{
  position:relative;
  pointer-events:auto;
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:13px 16px;
  border-radius:var(--r-md);
  font-size:14px;
  line-height:1.45;
  color:var(--text-dim);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  animation:rise var(--t-slow);
}
@keyframes rise{ from{ opacity:0; transform:translateY(8px); } }
.alert-warn{ border:1px solid rgba(245,183,64,.3); background:rgba(30,24,8,.9); }
.alert-err { border:1px solid rgba(255,95,109,.3); background:rgba(32,12,15,.9); }
.alert-info{ border:1px solid var(--accent-line);  background:rgba(10,18,38,.9); }
.alert-x{
  position:absolute; top:6px; right:8px;
  width:30px; height:30px;
  border:0; background:transparent;
  color:var(--muted); font-size:20px; line-height:1;
  cursor:pointer;
}

/* =========================================================
   TERUGKEER-OVERLAY
   ========================================================= */
.resume{
  position:fixed; inset:0; z-index:80;
  display:grid; place-items:center;
  padding:24px;
  background:rgba(6,8,13,.93);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  animation:fadeIn var(--t);
}
@keyframes fadeIn{ from{ opacity:0; } }
.resume-btn{
  display:flex; flex-direction:column; align-items:center; gap:10px;
  width:100%; max-width:460px;
  padding:44px 28px;
  border:1px solid var(--accent-line);
  border-radius:var(--r-lg);
  background:var(--accent-wash);
  color:inherit; font:inherit;
  cursor:pointer;
  transition:background var(--t-fast), transform var(--t-fast);
}
.resume-btn:active{ transform:scale(.985); background:rgba(46,107,255,.2); }
.resume-title{ font-size:clamp(24px,6.5vw,34px); font-weight:650; letter-spacing:-.03em; color:var(--accent-2); }
.resume-sub{ font-size:15px; color:var(--text-dim); text-align:center; }

/* =========================================================
   THUISWEERGAVE
   ========================================================= */
.home{
  min-height:100dvh;
  padding-bottom:calc(var(--sab) + 8px);
}

.topbar{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:calc(var(--sat) + 12px) max(20px, var(--sar)) 12px max(20px, var(--sal));
  max-width:var(--maxw); margin:0 auto;
  background:linear-gradient(to bottom, rgba(8,10,15,.96), rgba(8,10,15,.72));
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.brand{ display:flex; align-items:baseline; gap:10px; }
.brand-mark{
  width:11px; height:11px; border-radius:50%;
  align-self:center;
  background:var(--accent-2);
  box-shadow:0 0 0 4px var(--accent-wash), 0 0 16px var(--glow);
}
.brand-name{ font-size:18px; font-weight:650; letter-spacing:-.02em; }
.brand-sub{ font-size:13px; color:var(--muted); }
.topbar-right{ display:flex; align-items:center; gap:10px; }

.data{
  max-width:var(--maxw);
  margin:0 auto;
  padding:14px 20px 40px;
}

.tabs{
  display:flex; gap:4px;
  border-bottom:1px solid var(--line);
  margin-bottom:22px;
  overflow-x:auto;
  scrollbar-width:none;
}
.tabs::-webkit-scrollbar{ display:none; }

.tab{
  position:relative;
  border:0; background:transparent;
  padding:11px 14px;
  font:inherit; font-size:14.5px;
  color:var(--muted);
  cursor:pointer; white-space:nowrap;
  transition:color var(--t);
}
.tab::after{
  content:""; position:absolute; left:14px; right:14px; bottom:-1px;
  height:2px; border-radius:2px;
  background:var(--accent-2);
  transform:scaleX(0);
  transition:transform var(--t);
}
.tab:hover{ color:var(--text-dim); }
.tab.is-active{ color:var(--text); }
.tab.is-active::after{ transform:scaleX(1); }

.tab-count{
  display:inline-block;
  margin-left:6px; padding:1px 7px;
  border-radius:999px;
  background:var(--surface-2);
  font-size:11.5px; color:var(--text-dim);
}
.tab.is-active .tab-count{ background:var(--accent-wash); color:var(--accent-2); }

.panel{ display:none; }
.panel.is-active{ display:block; animation:fade var(--t-slow); }
@keyframes fade{ from{ opacity:0; transform:translateY(5px); } }

.group{ margin-bottom:30px; }
.group-head{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.group-title{
  font-size:12px; font-weight:600;
  letter-spacing:.09em; text-transform:uppercase;
  color:var(--muted);
}
.group-line{ flex:1; height:1px; background:var(--line-soft); }

.card{
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:var(--surface);
  padding:15px 17px;
  margin-bottom:9px;
  transition:border-color var(--t);
}
.card:hover{ border-color:#28303F; }
.card-meta{
  display:flex; align-items:center; gap:9px; flex-wrap:wrap;
  margin-bottom:7px;
  font-size:12px; color:var(--muted);
}
.card-body{ font-size:15px; line-height:1.55; color:var(--text); }
.card-sub{ margin-top:7px; font-size:13.5px; color:var(--text-dim); }

.tag{
  display:inline-block;
  padding:2px 9px;
  border-radius:999px;
  font-size:11px; font-weight:600;
  letter-spacing:.04em; text-transform:uppercase;
  border:1px solid var(--accent-line);
  background:var(--accent-wash);
  color:var(--accent-2);
}
.tag[data-tag="klant"]{ border-color:rgba(53,208,138,.32); background:rgba(53,208,138,.09); color:var(--ok); }
.tag[data-tag="random"]{ border-color:var(--line); background:var(--surface-2); color:var(--text-dim); }

.empty{
  padding:34px 20px;
  border:1px dashed var(--line);
  border-radius:var(--r-md);
  text-align:center; color:var(--muted); font-size:14px;
}

/* Spaans */
.progress-card{
  border:1px solid var(--accent-line);
  background:linear-gradient(135deg, var(--accent-wash), rgba(102,179,255,.03));
  border-radius:var(--r-md);
  padding:18px 20px;
  margin-bottom:24px;
}
.progress-top{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.progress-num{ font-size:30px; font-weight:650; letter-spacing:-.03em; color:var(--accent-2); }
.progress-label{ font-size:14px; color:var(--text-dim); }
.progress-bar{ height:5px; border-radius:3px; background:var(--surface-2); overflow:hidden; }
.progress-fill{
  height:100%; border-radius:3px;
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  transition:width var(--t-slow);
}
.progress-foot{ margin-top:10px; font-size:13px; color:var(--muted); }

.word{
  display:flex; align-items:center; gap:14px;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:var(--surface);
  padding:13px 16px;
  margin-bottom:7px;
}
.word-main{ flex:1; min-width:0; }
.word-es{ font-size:15.5px; font-weight:600; }
.word-nl{ font-size:13.5px; color:var(--text-dim); }
.word-ex{ margin-top:5px; font-size:13px; color:var(--muted); font-style:italic; }
.word-side{ text-align:right; font-size:11.5px; color:var(--muted); white-space:nowrap; }
.due{ color:var(--accent-2); font-weight:600; }
.dots{ display:flex; gap:3px; margin-top:4px; justify-content:flex-end; }
.dot{ width:5px; height:5px; border-radius:50%; background:var(--line); }
.dot.on{ background:var(--accent-2); }

/* Transcript */
.log-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.log{
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:var(--surface);
  padding:6px 0;
  max-height:460px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.log-line{
  display:flex; gap:12px;
  padding:8px 17px;
  font-size:14.5px; line-height:1.5;
  border-bottom:1px solid var(--line-soft);
}
.log-line:last-child{ border-bottom:0; }
.log-who{
  flex:0 0 46px;
  font-size:11.5px; font-weight:600;
  letter-spacing:.05em; text-transform:uppercase;
  padding-top:3px;
}
.log-line[data-who="lisa"] .log-who{ color:var(--accent-2); }
.log-line[data-who="jij"]  .log-who{ color:var(--muted); }
.log-line[data-who="tool"] .log-who{ color:var(--ok); }
.log-line[data-who="tool"] .log-text{ color:var(--text-dim); font-size:13.5px; }
.log-text{ flex:1; min-width:0; overflow-wrap:anywhere; }

.foot{
  max-width:var(--maxw); margin:0 auto;
  padding:22px 20px 32px;
  border-top:1px solid var(--line-soft);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-size:12.5px; color:var(--muted);
}

.devlog{
  max-width:var(--maxw);
  margin:0 auto 40px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:#05070B;
  font-family:ui-monospace, "SF Mono", Menlo, monospace;
  font-size:11.5px; line-height:1.65;
  color:#7F8CA3;
  max-height:300px; overflow:auto;
  white-space:pre-wrap; word-break:break-word;
}

/* =========================================================
   INSTELLINGEN
   ========================================================= */
.scrim{
  position:fixed; inset:0; z-index:50;
  background:rgba(4,6,10,.66);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  animation:fadeIn var(--t);
}

.settings{
  position:fixed; top:0; right:0; bottom:0; z-index:60;
  width:min(460px, 100vw);
  display:flex; flex-direction:column;
  background:var(--bg-soft);
  border-left:1px solid var(--line);
  animation:slideIn var(--t-slow);
}
@keyframes slideIn{ from{ transform:translateX(24px); opacity:0; } }

.settings-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:calc(var(--sat) + 16px) 22px 16px;
  border-bottom:1px solid var(--line);
  flex:0 0 auto;
}
.settings-head h2{ font-size:17px; }

.settings-body{
  flex:1 1 auto;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:8px 22px calc(var(--sab) + 40px);
}

.fieldset{ padding:22px 0; border-bottom:1px solid var(--line-soft); }
.fieldset:last-child{ border-bottom:0; }
.fieldset h3{
  font-size:12px; font-weight:600;
  letter-spacing:.09em; text-transform:uppercase;
  color:var(--muted);
  margin-bottom:14px;
}

.field{ display:block; margin-bottom:16px; }
.field:last-child{ margin-bottom:0; }
.label{
  display:flex; justify-content:space-between; align-items:baseline;
  font-size:13.5px; color:var(--text-dim);
  margin-bottom:7px;
}
.val{ color:var(--accent-2); font-variant-numeric:tabular-nums; font-size:13px; }

input[type="password"], input[type="text"], select{
  width:100%;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:var(--r-sm);
  background:var(--surface);
  color:var(--text);
  font:inherit;
  font-size:16px;                 /* 16px voorkomt dat iOS inzoomt bij focus */
  transition:border-color var(--t);
}
input[type="password"]:focus, input[type="text"]:focus, select:focus{
  border-color:var(--accent); outline:none;
}
select{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236D7891' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 11px center;
  background-size:16px;
  padding-right:34px;
}

input[type="range"]{
  width:100%; appearance:none;
  height:4px; border-radius:2px;
  background:var(--surface-2); outline:none;
}
input[type="range"]::-webkit-slider-thumb{
  appearance:none;
  width:22px; height:22px; border-radius:50%;
  background:var(--accent-2);
  border:4px solid var(--bg-soft);
  box-shadow:0 0 0 1px var(--accent);
  cursor:pointer;
}
input[type="range"]::-moz-range-thumb{
  width:16px; height:16px; border-radius:50%;
  background:var(--accent-2); border:2px solid var(--bg-soft); cursor:pointer;
}

.help{
  display:block; margin-top:6px;
  font-size:12.5px; line-height:1.5; color:var(--muted);
}

.check{
  display:flex; align-items:flex-start; gap:11px;
  font-size:14.5px; color:var(--text-dim);
  cursor:pointer; margin-bottom:13px;
  padding:3px 0;
}
.check input{
  appearance:none; flex:0 0 auto;
  width:22px; height:22px; margin-top:0;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--surface);
  cursor:pointer;
  transition:background var(--t), border-color var(--t);
}
.check input:checked{
  background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/15px no-repeat;
  border-color:var(--accent);
}
.check input:disabled{ opacity:.4; cursor:not-allowed; }

.row{ display:flex; gap:9px; flex-wrap:wrap; }

/* GitHub-status */
.gh-status{
  margin-top:12px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:var(--r-sm);
  background:var(--surface);
  font-size:13px; line-height:1.5;
  color:var(--text-dim);
  white-space:pre-wrap;
  word-break:break-word;
}
.gh-status:empty{ display:none; }
.gh-status[data-state="ok"]  { border-color:rgba(53,208,138,.3); color:var(--ok); }
.gh-status[data-state="err"] { border-color:rgba(255,95,109,.3); color:var(--danger); }
.gh-status[data-state="busy"]{ border-color:rgba(245,183,64,.3); color:var(--warn); }

/* stemmen */
.voice-list{ display:flex; flex-direction:column; gap:6px; margin-top:10px; }
.voice{
  display:flex; align-items:center; gap:12px;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:var(--r-sm);
  background:var(--surface);
  cursor:pointer;
  transition:border-color var(--t), background var(--t);
}
.voice:hover{ border-color:#2A3345; }
.voice[data-selected="1"]{ border-color:var(--accent); background:var(--accent-wash); }
.voice-radio{
  flex:0 0 auto;
  width:18px; height:18px; border-radius:50%;
  border:1.5px solid var(--line);
  transition:border-color var(--t), box-shadow var(--t);
}
.voice[data-selected="1"] .voice-radio{
  border-color:var(--accent-2);
  box-shadow:inset 0 0 0 4px var(--accent-2);
}
.voice-info{ flex:1; min-width:0; }
.voice-name{ display:block; font-size:14.5px; font-weight:550; }
.voice-desc{ display:block; font-size:12.5px; color:var(--muted); }
.voice-play{
  flex:0 0 auto;
  display:grid; place-items:center;
  width:40px; height:40px;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--surface-2);
  color:var(--text-dim);
  cursor:pointer;
  transition:color var(--t), border-color var(--t);
}
.voice-play:hover{ color:var(--accent-2); border-color:var(--accent-line); }
.voice-play svg{ width:15px; height:15px; fill:currentColor; }
.voice-play[data-busy="1"]{
  color:var(--accent-2); border-color:var(--accent-line);
  animation:pulse 1s ease-in-out infinite;
}
@keyframes pulse{ 50%{ opacity:.4; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px){
  .brand-sub{ display:none; }
  .settings{ border-left:0; }
  .foot{ flex-direction:column; gap:8px; }
  .data{ padding:14px 16px 40px; }
}

/* Liggend op een telefoon: orb naast de tekst, anders past er niets. */
@media (orientation: landscape) and (max-height: 500px){
  .drive-main{ flex-direction:row; gap:min(6vw,40px); }
  .drive-orb{ width:min(62vh, 34vw); }
  .drive-main > .drive-status,
  .drive-main > .drive-sub,
  .drive-main > .drive-label{ margin-top:0; }
  .drive-main{ align-items:center; }
  .drive-status{ font-size:clamp(30px, 7vw, 60px); }
  .hint{ display:none; }
  .live-line{ min-height:1.6em; }
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}
