* {
  box-sizing:border-box;
}
[hidden] {
  display:none!important;
}
:root {
  --ink:#f5f2f6;
  --muted:#aaa5af;
  --line:#39353d;
  --accent:#ff73b8;
  --paper:#0e0d10;
  --white:#19171c;
  --mint:#243b40;
  --coral:#55263b;
  --gold:#493919;
  --focus:#ff77bc;
  color:var(--ink);
  font:15px/1.5 Inter,"Segoe UI",Arial,sans-serif;
  color-scheme:dark;
}
body {
  margin:0;
  min-height:100vh;
  background:var(--paper);
}
button,input,select,textarea {
  font:inherit;
  color:inherit;
}
button,a,input,select,textarea {
  outline-offset:3px;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:2px solid var(--focus);
}
button,a {
  cursor:pointer;
}
button {
  border:0;
  background:none;
}
button:disabled {
  opacity:.5;
  cursor:default;
}
a {
  color:var(--accent);
  text-underline-offset:3px;
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font-size:clamp(29px,3.25vw,46px);
  line-height:1.14;
  letter-spacing:-.05em;
  font-weight:650;
  overflow-wrap:anywhere;
}
h2 {
  font-size:21px;
  letter-spacing:-.035em;
  line-height:1.3;
}
h3 {
  font-size:20px;
  line-height:1.3;
}
.shell {
  width:min(1440px,100%);
  margin:auto;
  padding:0 clamp(18px,4vw,68px);
}
.top {
  background:var(--white);
  border-bottom:1px solid var(--line);
}
.nav,.navright,.brand,nav,.actions,.inline,.panelhead,.pagehead,.inputrow,.inputstate,.filters,.markactions,.dialoghead {
  display:flex;
  align-items:center;
  gap:12px;
}
.nav {
  height:72px;
  gap:clamp(16px,4vw,64px);
}
.brand {
  font-size:19px;
  font-weight:710;
  color:var(--ink);
  letter-spacing:-.055em;
  text-decoration:none;
  gap:10px;
}
.brandmark,.bigicon {
  background:#e20074;
  color:white;
  border-radius:11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.brandmark {
  height:36px;
  width:36px;
  gap:2px;
}
.brandmark i,.waveart i {
  display:block;
  width:3px;
  border-radius:3px;
  background:#ffffff;
  height:9px;
}
.brandmark i:nth-child(2) {
  height:17px;
}
.brandmark i:nth-child(3) {
  height:24px;
}
.brandmark i:nth-child(4) {
  height:13px;
}
.navright {
  margin-left:auto;
}
.tab {
  color:var(--muted);
  padding:9px 15px;
  border-radius:8px;
  font-weight:560;
}
.tab.active {
  color:var(--accent);
  background:#442235;
}
.engine,.langtag,.count {
  font-size:12px;
  font-weight:650;
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.engine i {
  width:7px;
  height:7px;
  background:#88828e;
  border-radius:50%;
}
.engine.ok i {
  background:#66c5a5;
}
.engine.warn i {
  background:#bc8034;
}
.icon {
  font-size:21px;
  border:1px solid var(--line);
  border-radius:8px;
  min-width:36px;
  height:36px;
  background:var(--white);
  line-height:1;
}
.icon.small {
  font-size:17px;
  min-width:27px;
  height:27px;
}
.pagehead {
  padding:34px 0 25px;
  justify-content:space-between;
  align-items:flex-end;
}
.pagehead>div:first-child {
  min-width:0;
}
.eyebrow {
  font-size:11px;
  color:var(--accent);
  letter-spacing:.13em;
  font-weight:700;
  margin-bottom:8px;
}
.actions {
  flex-wrap:wrap;
  gap:8px;
}
.pagehead>.actions {
  flex-shrink:0;
}
.btn,.play {
  border:1px solid #45404a;
  border-radius:8px;
  background:var(--white);
  font-weight:600;
  padding:9px 14px;
  white-space:nowrap;
}
.btn:hover,.icon:hover,.choice:hover {
  background:#342a33;
}
.primary,.play {
  background:var(--accent);
  border-color:var(--accent);
  color:white;
}
.primary:hover,.play:hover {
  background:#b60060;
}
.btn b {
  font-size:16px;
}
.welcome,.panel,.loginbox {
  border:1px solid var(--line);
  background:var(--white);
  border-radius:16px;
  box-shadow:0 3px 12px #00000022;
}
.welcome {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  overflow:hidden;
}
.welcome-main,.welcome-side {
  padding:clamp(24px,4vw,54px);
}
.welcome-main {
  max-width:760px;
}
.welcome-side {
  background:#231b25;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
}
.welcome p,.login p,.muted,.choice small,small {
  color:var(--muted);
}
.welcome p {
  margin:10px 0 22px;
  max-width:55ch;
}
.bigicon {
  width:46px;
  height:46px;
  font-size:25px;
  margin-bottom:20px;
}
.waveart {
  display:flex;
  gap:4px;
  height:36px;
  align-items:center;
  margin-bottom:14px;
}
.waveart i {
  background:#d05195;
  width:4px;
  height:12px;
}
.waveart i:nth-child(3n) {
  height:32px;
}
.waveart i:nth-child(2n) {
  height:22px;
}
.waveart i:nth-child(5n) {
  height:9px;
}
.inputrow {
  margin-bottom:12px;
  gap:8px;
}
.inputrow input {
  min-width:0;
  flex:1;
}
input:not([type=checkbox]):not([type=range]),select,textarea {
  border:1px solid #49424b;
  background:var(--white);
  padding:9px 11px;
  border-radius:7px;
}
input[type=checkbox],input[type=range] {
  accent-color:var(--accent);
}
label:not(.inline) {
  font-weight:550;
  font-size:14px;
  display:grid;
  gap:6px;
}
.inline {
  gap:6px;
  font-size:13px;
  white-space:nowrap;
}
.inline input[type=checkbox] {
  width:15px;
  height:15px;
}
.workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
  padding-bottom:40px;
}
.workspace-overview {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:inherit;
}
.leftcol {
  display:grid;
  gap:18px;
}
.panel {
  overflow:hidden;
}
.panelhead {
  padding:19px 22px;
  justify-content:space-between;
}
.panelhead a {
  font-size:13px;
}
.count,.langtag {
  background:#211e24;
  color:var(--accent);
  border-radius:10px;
  padding:2px 9px;
}
.langtag {
  font-weight:550;
}
.source #playerBox {
  background:#141116;
  color:#faf2f8;
  position:relative;
}
.source video,.source iframe {
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  display:block;
  border:0;
  background:#141116;
}
.audioface {
  min-height:155px;
  padding:25px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
}
.audioface .waveart {
  margin:0;
}
.audioface .waveart i {
  background:#fd68ac;
}
.playerinfo {
  padding:9px 17px;
  font-size:13px;
  color:#f0d196;
  background:#322a1d;
}
.play {
  padding:6px 10px;
}
.volume {
  display:flex!important;
  align-items:center;
  gap:0!important;
}
.volume input {
  width:49px;
}
.mono,time {
  font:12px/1.5 "Cascadia Mono",Consolas,monospace;
  font-variant-numeric:tabular-nums;
}
.inputstate {
  padding:10px 16px;
  border-top:1px solid var(--line);
  gap:8px;
  flex-wrap:wrap;
}
.level {
  margin-left:auto;
  background:#37333a;
  width:38px;
  height:5px;
  border-radius:4px;
  overflow:hidden;
}
.level span {
  display:block;
  width:0;
  height:100%;
  background:#ed4596;
}
.inputstate .muted {
  font-size:12px;
}
.reader-tools {
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  padding:7px 20px;
  border-block:1px solid var(--line);
  background:#211e24;
  flex-wrap:wrap;
}
.reader-tools select {
  padding:3px 5px;
  font-size:13px;
}
#reader {
  height:clamp(300px,50vh,660px);
  overflow:auto;
  scrollbar-gutter:stable;
  padding:6px 23px 19px;
}
.utterance {
  display:grid;
  grid-template-columns:49px 1fr;
  gap:10px;
  padding:13px 0;
  border-bottom:1px solid #252228;
}
.utterance:last-child {
  border:0;
}
.utterance time {
  color:#b59bad;
  margin-top:4px;
}
.words {
  font-size:18px;
  line-height:1.75;
  overflow-wrap:anywhere;
}
.word {
  cursor:text;
  border-radius:3px;
}
.word:hover {
  box-shadow:inset 0 -2px #eb5ba3;
}
.word.draft {
  color:#a99faa;
}
.word.selected {
  background:#2b3e59!important;
  box-shadow:inset 0 -2px #9db9e8;
}
.translation {
  font-size:14px;
  color:var(--muted);
  margin:5px 0;
}
.training {
  background:var(--mint);
  color:#abdfe3;
}
.error {
  background:var(--coral);
  color:#ffaccf;
}
.question {
  background:var(--gold);
  color:#ffe1a0;
}
.markactions {
  flex-wrap:wrap;
  gap:6px;
}
.chip {
  padding:5px 9px;
  border-radius:6px;
  font-size:12px;
  font-weight:650;
}
.timeline {
  height:6px;
  border-radius:6px;
  margin:0 22px 13px;
  background:#252228;
  position:relative;
}
.tick {
  position:absolute;
  top:-3px;
  height:12px;
  width:6px;
  border:1px solid #897984;
  padding:0;
  border-radius:3px;
}
.markrow,.librow {
  display:flex;
  align-items:center;
  border-top:1px solid #252228;
  gap:10px;
  padding:11px 18px;
}
.markbody,.libbody {
  min-width:0;
  flex:1;
  text-align:left;
}
.markbody strong,.libbody strong {
  display:block;
  overflow-wrap:anywhere;
}
.markbody small,.libbody small {
  display:block;
}
.markrow .chip {
  margin-left:5px;
}
.empty {
  font-size:14px;
  color:var(--muted);
  padding:21px;
}
.filters {
  padding:18px;
  justify-content:space-between;
  flex-wrap:wrap;
}
.filters input[type=search] {
  width:min(100%,360px);
}
.librarypanel {
  margin-bottom:36px;
}
.libbody {
  padding:3px;
}
.libkind {
  font-size:12px;
  color:var(--muted);
}
.metalink {
  color:var(--accent);
  font-size:13px;
  padding:4px 0;
  text-decoration:underline;
  text-underline-offset:3px;
}
.dialoghead {
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding:18px 22px;
}
dialog {
  border:1px solid var(--line);
  border-radius:16px;
  width:min(465px,calc(100% - 24px));
  padding:0;
  background:var(--white);
  color:var(--ink);
  box-shadow:0 18px 65px #00000066;
}
dialog::backdrop {
  background:#000000a8;
}
.dialogbody {
  padding:21px;
}
.stack {
  display:grid;
  gap:15px;
}
.choice {
  display:grid;
  gap:3px;
  padding:13px;
  text-align:left;
  text-decoration:none;
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--white);
}
.choice small {
  font-size:13px;
}
.dialogbody hr {
  border:0;
  border-top:1px solid var(--line);
  width:100%;
  margin:14px 0;
}
.two {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.two input {
  width:100%;
}
#newLink .actions {
  margin-top:12px;
}
blockquote {
  margin:0;
  padding:9px 14px;
  border-left:3px solid var(--accent);
  background:#211e24;
}
.danger {
  color:#ff9cb7;
}
.login {
  display:grid;
  min-height:100vh;
  place-items:center;
}
.loginbox {
  padding:34px;
  width:min(420px,92vw);
}
.loginbox h1 {
  margin:25px 0 10px;
}
.loginbox p {
  margin:8px 0 22px;
}
#toast {
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  max-width:90vw;
  background:#f0edf2;
  color:white;
  padding:11px 19px;
  z-index:99;
  border-radius:8px;
  box-shadow:0 5px 15px #0000003b;
}
#materialMeta {
  margin-top:6px;
}
.librarypanel .btn {
  font-size:12px;
}
.jumpmark {
  background:#211e24;
  border-radius:4px;
}
@media(max-width:900px) {
  .shell {
    padding:0 16px;
  }
  .panelhead {
    padding:14px;
  }
  .pagehead {
    align-items:flex-start;
  }
  .pagehead>.actions {
    flex-direction:column;
    align-items:stretch;
  }
  .nav {
    gap:14px;
  }
  .reader-tools {
    gap:6px;
    padding:6px 10px;
  }
}
@media(max-width:700px) {
  .welcome {
    grid-template-columns:1fr;
  }
  .pagehead {
    flex-wrap:wrap;
    padding:24px 0 16px;
  }
  .pagehead>.actions {
    flex-direction:row;
  }
  .nav {
    height:auto;
    min-height:58px;
    flex-wrap:wrap;
    gap:5px;
    padding-block:8px;
  }
  .brand {
    font-size:16px;
  }
  .brandmark {
    height:30px;
    width:30px;
  }
  .tab {
    padding:6px;
    font-size:13px;
  }
  nav {
    gap:0;
  }
  .engine>span {
    display:none;
  }
  .navright {
    gap:4px;
  }
  .welcome-main,.welcome-side {
    padding:22px;
  }
  #reader {
    height:42vh;
    min-height:230px;
  }
  .librow {
    flex-wrap:wrap;
  }
  .utterance {
    grid-template-columns:42px 1fr;
  }
}

#settingsDialog {
  width:min(540px,calc(100% - 24px));
  max-height:90dvh;
  overflow-y:auto;
}
.modelcheck,.modeldetails {
  display:grid;
  gap:10px;
}
.modelcheck > button {
  justify-self:start;
}
.modelinfo {
  display:grid;
  grid-template-columns:minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap:5px 12px;
  margin:0;
}
.modelinfo dt,.modeldetails small {
  color:var(--muted);
}
.modelinfo dd {
  margin:0;
  white-space:pre-line;
}
.modelinfo dd,.modeldetails,.modelresult {
  overflow-wrap:anywhere;
}
.modelresult {
  white-space:pre-line;
  background:var(--paper);
  padding:8px 12px;
  border-radius:6px;
}
.modeldetails {
  margin-top:8px;
  font-size:14px;
}
.modelcheck summary {
  cursor:pointer;
  color:var(--accent);
}
.sourceextras { padding:9px 16px 14px; display:grid; gap:6px; }
.sourceextras button,.satzwerkzeuge button { justify-self:start; }
.coveragehead { display:flex; align-items:baseline; justify-content:space-between; gap:8px; font-size:13px; }
#coverageTrack { height:9px; background:#343139; border-radius:6px; position:relative; overflow:hidden; }
#coverageTrack span { position:absolute; top:0; bottom:0; background:#dc448f; min-width:1px; }
.chip.pronunciation,.word.pronunciation { background:#332941; color:#e6c9ff; }
.tick.pronunciation { background:#bd9beb; }
.satzwerkzeuge { display:grid; align-content:start; justify-items:start; gap:1px; }
.satzwerkzeuge .metalink { font-size:11px; white-space:normal; line-height:1.25; }
.reader-tools { flex-wrap:wrap; }
#studyDialog { width:min(820px,calc(100% - 24px)); max-height:90dvh; overflow:auto; }
#referenceDialog,#markDialog { max-height:90dvh; overflow:auto; }
#refList,#compareResult { display:grid; gap:8px; }
#refList button { text-align:left; }
#referencePanel summary,#compareResult summary { color:var(--accent); cursor:pointer; }
#compareControls select { min-width:0; width:100%; }
#compareResult { min-width:0; font-variant-numeric:tabular-nums; }
.score-models,.score-overview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.score-models { border-top:1px solid var(--line); padding-top:.75rem; overflow-wrap:anywhere; }
.score-basis { margin:0; color:var(--muted); font-size:.9rem; }
.score-card { padding:.75rem 1rem; background:#211e24; border:1px solid var(--line); border-radius:8px; }
.score-card h3,.score-card p { margin:0; }
.score-line { display:grid; grid-template-columns:1rem minmax(0,1fr) auto; gap:.5rem; align-items:center; margin-top:.55rem; }
.score-line strong { min-width:4.5rem; text-align:right; }
.score-count { display:block; margin-left:1.5rem; }
.score-card .score-delta { margin-top:.55rem; padding-top:.45rem; border-top:1px solid var(--line); font-weight:650; }
.scores { width:100%; font-size:14px; border-collapse:collapse; }
.scores td,.scores th { padding:7px 4px; text-align:left; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.runwords { max-height:220px; overflow:auto; padding:8px 0; }
@media (max-width:600px) { #studyDialog .two,.score-models,.score-overview { grid-template-columns:minmax(0,1fr); } }
.word.heard { box-shadow:inset 0 -2px var(--accent); background-color:#211e24; }
.word.heard.training,.word.heard.error,.word.heard.pronunciation,.word.heard.question { outline:1px solid var(--accent); }
.repairnotice { display:flex; flex-wrap:wrap; gap:6px 12px; padding:10px 18px; align-items:center; background:#211e24; font-size:13px; }
.repairnotice span { font-weight:600; }
.historyEntry { border-bottom:1px solid var(--line); padding-bottom:12px; display:grid; gap:7px; }
.historyEntry .btn { justify-self:start; }
.historyEntry p { margin:0; overflow-wrap:anywhere; }
#datasetDialog,#historyDialog,#removeMaterialDialog { max-height:88dvh; overflow:auto; }
#datasetChoices { max-height:200px; overflow:auto; }
#sentenceRaw { margin:0; }
#audioSaveState { font-size:13px; font-weight:600; }
#audioSaveError { margin:0; }
#datasetStatus { min-height:2em; }
#datasetDialog .two { margin-top:8px; }
/* Quellhinweise bleiben auch in der korrigierten Fassung erkennbar. */
.hint-open{background:#483714;border-bottom:2px dotted #e2b666}
.chip.punctuation,.word.punctuation,.hint-editorial{background:#283542;color:#d2e7fc;border-bottom:2px dotted #93bce0}
.tick.punctuation{background:#93bce0}
.hint-confirmed{background:#233c36;border-bottom:2px solid #6fd1ae}
.hint-pronunciation{background:#3a2949;border-bottom:2px solid #c39af4}
#hintReason{white-space:pre-wrap;overflow-wrap:anywhere}
#runPassages{max-height:14rem;overflow:auto}
.panel.stack{padding:1rem}

/* Arbeitsfläche */
:root { --magenta:#e20074; accent-color:var(--magenta); }
.shell { width:min(1720px,100%); padding-inline:clamp(14px,3vw,54px); }
.top { background:#111014; }
h1 { font-size:clamp(28px,2.65vw,43px); }
.primary,.play { background:var(--magenta); border-color:var(--magenta); color:#fff; }
.primary:hover,.play:hover { background:#bd0060; }
.brandmark,.bigicon { background:var(--magenta); }
.tab.active { box-shadow:inset 0 -2px var(--magenta); }
.panel { min-width:0; border-radius:14px; }
.panelhead { padding:15px 18px; }
.panelhead button { font:inherit; color:inherit; }
#marksToggle { padding:0; }
#marksChevron { margin-left:4px; font-size:.75em; color:var(--muted); }
#marksExpand { font-size:12px; }
#markList { height:min(14.4rem,calc(var(--mark-count,3)*4.8rem)); min-height:2.7rem; max-height:70vh; overflow:auto; resize:vertical; scrollbar-gutter:stable; }
.markrow { height:4.8rem; padding:5px 12px; }
.markbody { overflow:hidden; }
.markbody small,.markbody strong { text-overflow:ellipsis; overflow:hidden; white-space:nowrap; }
.markbody small:nth-of-type(n+2) { display:none; }
#timeMarkBtn { margin:5px 16px 10px; }
.sourceactions { padding:0 16px 14px; display:grid; gap:10px; }
.sourceactions { padding-top:12px; border-top:1px solid var(--line); }
.sourceactions>.primary { width:100%; }
details summary { cursor:pointer; font-weight:580; color:var(--ink); }
details[open]>summary { margin-bottom:9px; }
.segmented { display:flex; gap:3px; padding:3px; background:#100e12; border:1px solid var(--line); border-radius:9px; width:fit-content; margin:0 16px 12px; }
.segmented button { border-radius:6px; padding:4px 12px; color:var(--muted); }
.segmented [aria-pressed=true] { background:#483040; color:#ffc2e1; }
.audioface { min-height:60px; flex-direction:row; align-items:center; justify-content:flex-start; padding:16px; font-size:14px; }
.audioface .waveart { display:none; }
.wavebox { position:relative; padding:8px 16px; background:#171118; }
.wavebox canvas { display:block; width:100%; height:66px; }
.wavebox input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:crosshair; margin:0; }
.wavebox:focus-within { outline:2px solid var(--focus); outline-offset:-2px; }
.offline-progress { display:grid; gap:4px; font-size:13px; color:var(--muted); }
.offline-progress progress { width:100%; height:6px; }
#offlineCancel { justify-self:start; }
#reader { height:clamp(380px,62vh,860px); min-height:260px; max-height:85vh; resize:vertical; overflow:auto; padding:4px clamp(12px,2vw,28px) 12px; }
.utterance,.joined-group { grid-template-columns:minmax(61px,max-content) minmax(0,1fr); column-gap:14px; }
.utterance .words { font-size:clamp(16px,1.16vw,20px); line-height:1.65; }
.word { cursor:pointer; }
.word.heard { background:#5c2543; box-shadow:inset 0 -2px #ff75ba; }
.word.edited-word { text-decoration:underline solid #f886c2 2px; text-underline-offset:3px; }
.joined-group { display:grid; padding:13px 0; border-bottom:1px solid var(--line); }
.joined-tools { display:grid; align-content:start; gap:7px; }
.joined-text .utterance,.joined-text .utterance>div,.joined-text .words { display:inline; border:0; padding:0; }
#settingsDialog { width:min(550px,calc(100% - 20px)); overflow-x:hidden; }
dialog { max-width:calc(100vw - 20px); max-height:90dvh; overflow:auto; }
.dialogbody,.dialogbody>*,.stack>*,.settings-group>*,.two>*,label,select,input,textarea,.reader-tools>* { min-width:0; max-width:100%; }
dialog label,dialog p,dialog small,dialog code,dialog dd,dialog pre { overflow-wrap:anywhere; white-space:normal; }
.dialogbody label select,.dialogbody label input:not([type=checkbox]),.dialogbody textarea { width:100%; }
.settings-group { display:grid; gap:8px; border-bottom:1px solid var(--line); padding-bottom:14px; }
.settings-group h3 { font-size:17px; }
.settings-head { flex-wrap:wrap; row-gap:10px; padding-bottom:0; }
.settings-headactions { display:flex; align-items:center; gap:8px; margin-left:auto; }
.settings-headactions form { display:flex; }
.settings-headactions .btn { padding:6px 11px; font-size:13px; }
.settings-tabs { display:flex; flex-wrap:wrap; gap:2px 6px; flex-basis:100%; margin-bottom:-1px; }
.settings-tabs [role=tab] { padding:7px 10px 9px; font-size:14px; font-weight:600; color:var(--muted); border-bottom:2px solid transparent; }
.settings-tabs [role=tab]:hover { color:var(--ink); }
.settings-tabs [role=tab][aria-selected=true] { color:var(--ink); border-bottom-color:var(--accent); }
.provider-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 12px; }
.model-pair { display:flex; flex-wrap:wrap; align-items:end; gap:8px 12px; }
.model-pair>* { flex:1 1 11rem; }
.model-pair>.model-pick { flex:2 1 15rem; }
.model-pick { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; }
.model-pick>label { grid-column:1/-1; }
.model-pick select { width:100%; }
.model-pick .icon { height:auto; }
.data-note>summary { width:fit-content; font-size:13px; font-weight:400; color:var(--muted); }
.data-note[open]>summary { margin-bottom:4px; }
#cliAdvancedToggle,#geminiAdvancedToggle { justify-self:start; }
#cliInfo:empty,#geminiInfo:empty,#aiInfo:empty { display:none; }
.settings-save { position:sticky; bottom:0; z-index:2; background:var(--white); padding-block:10px; border-top:1px solid var(--line); }
#asrInfo,#llmTest { white-space:pre-line; }
.btn { white-space:normal; text-decoration:none; }
@media(max-width:800px) {
  .workspace .source video,.workspace .source iframe { max-height:40vh; }
  #reader { height:54vh; }
  .utterance,.joined-group { grid-template-columns:53px minmax(0,1fr); gap:7px; }
  #marksExpand { min-height:32px; }
  .shell { padding-inline:11px; }
  .reader-tools { justify-content:flex-start; }
  .reader-tools label { flex-wrap:wrap; }
  .reader-tools select { max-width:100%; }
  .dialogbody { padding:16px; }
  dialog .two { grid-template-columns:1fr; }
}

#toast { background:#342a34; color:#fff; border:1px solid #765269; }

/* Wiedergabeleiste: am unteren Fensterrand fixiert, Höhe kommt als --playbar-h aus studio.js */
body { padding-bottom:var(--playbar-h,0px); }
html { scroll-padding-bottom:calc(var(--playbar-h,0px) + 8px); }
#toast { bottom:calc(var(--playbar-h,0px) + 16px); }
#toast.toast-error { background:var(--coral); color:#ffd3e3; border-color:#c2416f; font-weight:600; }
.playbar { position:fixed; inset:auto 0 0; z-index:60; background:#0b0a0d; border-top:1px solid var(--line); box-shadow:0 -8px 22px #0000004d; padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.playbar-actions,.playbar-row { width:min(1720px,100%); margin-inline:auto; padding-inline:clamp(14px,3vw,54px); }
.playbar-actions { display:flex; flex-wrap:wrap; gap:8px; padding-top:8px; }
.playbar-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; grid-template-areas:"buttons position settings"; align-items:center; column-gap:clamp(12px,1.6vw,26px); padding-block:9px; }
.playbar-buttons { grid-area:buttons; display:flex; align-items:center; gap:6px; }
.playbar-position { grid-area:position; display:flex; align-items:center; gap:10px; min-width:0; }
.playbar-settings { grid-area:settings; display:flex; align-items:center; gap:14px; }
.playbar .play { width:42px; height:42px; padding:0; border-radius:50%; font-size:16px; line-height:1; display:grid; place-items:center; }
.playbar .skip { min-width:52px; height:34px; padding:0 8px; border:1px solid #45404a; border-radius:8px; background:var(--white); color:var(--ink); font:600 12px/1 "Cascadia Mono",Consolas,monospace; white-space:nowrap; }
.playbar .skip:hover { background:#342a33; }
#seek { flex:1; width:100%; min-width:60px; height:24px; margin:0; }
#playTime { color:#e4dde6; }
#totalTime { color:var(--muted); }
.playbar .rate select { padding:5px 7px; font-size:13px; }
.playbar .volume input { width:84px; }
.playbar-status { grid-column:1/-1; font-size:13px; color:#f0d196; }
.playbar.textonly .playbar-buttons,.playbar.textonly .playbar-position,.playbar.textonly .playbar-settings { display:none; }
.playbar.capture .play { width:auto; padding:0 16px; border-radius:8px; font:600 14px/1 Inter,"Segoe UI",Arial,sans-serif; }
@media(max-width:700px) {
  .playbar-row { grid-template-columns:auto minmax(0,1fr); grid-template-areas:"position position" "buttons settings"; row-gap:4px; padding-block:6px 8px; }
  .playbar-settings { justify-self:end; gap:10px; }
  .playbar .play { width:40px; height:40px; }
  .playbar .volume input { width:64px; }
}

/* Leseschalter am oberen Rand des Lesebereichs: Ton und Markierungen getrennt */
.reader-switches { display:flex; flex-wrap:wrap; align-items:center; gap:6px 22px; padding:8px clamp(12px,2vw,28px); border-block:1px solid var(--line); background:#151317; }
.reader-switches label.switch { display:inline-flex; align-items:center; gap:9px; font-size:13px; font-weight:550; color:#e2dce5; cursor:pointer; white-space:nowrap; }
.switch input { appearance:none; -webkit-appearance:none; flex:none; width:34px; height:20px; margin:0; border:1px solid #5d5663; border-radius:99px; cursor:pointer;
  background:radial-gradient(circle at 9px 50%,#b4aeb9 0 6px,transparent 6.5px) #29252c; transition:background-color .15s,border-color .15s; }
.switch input:checked { background:radial-gradient(circle at 23px 50%,#f1f6fd 0 6px,transparent 6.5px) #3b5574; border-color:#86a6cc; }
.switch input:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.reader-hint { margin-left:auto; font-size:12px; color:var(--muted); }

/* Markierungen aus: nur Text, Auswahl, Tastaturfokus und eine dezente Wiedergabeposition bleiben sichtbar */
#reader.marks-off .word:is(.training,.error,.question,.pronunciation,.punctuation,.hint-open,.hint-editorial,.hint-confirmed,.hint-pronunciation,.audio-finding,.import-annotation,.edited-word,.term-mark,.term-open,.term-own,.finding-anchor,.low-confidence) {
  background:none; color:inherit; border-bottom:0; text-decoration:none; box-shadow:none; outline:0; }
#reader.marks-off .word:hover { box-shadow:inset 0 -2px #eb5ba3; }
#reader.marks-off .word.heard { background:#29242c; box-shadow:inset 0 -2px #948c99; }
#reader.marks-off .word.selected { background:#2b3e59!important; box-shadow:inset 0 -2px #9db9e8; }
#reader .word:focus-visible,#reader.marks-off .word:focus-visible { outline:2px solid var(--focus); outline-offset:1px; }

/* Aktionszeile zur Auswahl über der Wiedergabeleiste */
.playbar-actions { position:relative; align-items:center; gap:6px 8px; padding-block:8px 0; }
.playbar-actions .btn,.menu-up>summary { padding:6px 11px; font-size:13px; line-height:1.3; white-space:nowrap; }
.sel-count { font-size:13px; font-weight:650; color:#e4dde6; margin-right:4px; white-space:nowrap; }
.sel-close { margin-left:auto; }
.sel-note { flex-basis:100%; font-size:12.5px; color:#f0d196; }
.tipped { position:relative; display:inline-flex; }
.tip { position:absolute; bottom:calc(100% + 7px); left:50%; transform:translateX(-50%); z-index:6; width:max-content; max-width:min(300px,80vw); padding:5px 8px;
  border:1px solid #5d5663; border-radius:6px; background:#26222a; color:var(--ink); font-size:12px; font-weight:500; line-height:1.35; white-space:normal;
  pointer-events:none; opacity:0; visibility:hidden; transition:opacity .12s; }
/* Hinweis bei Mauszeiger oder Tastaturfokus; nach einem Tipp bzw. Klick bleibt er nicht über der Zeile stehen */
.tipped>:focus-visible+.tip { opacity:1; visibility:visible; }
@media(hover:hover) { .tipped:hover>.tip { opacity:1; visibility:visible; } }
.sel-close .tip { left:auto; right:0; transform:none; }
.term-toggle.pressed { background:#1d3a31; border-color:#5fbf9d; color:#c8f4e3; }
.term-toggle.pressed:hover { background:#24483c; }
.term-toggle[aria-pressed=mixed] { border-style:dashed; }
.term-toggle[aria-busy=true] { opacity:.65; cursor:progress; }
.term-state { display:inline-block; max-width:min(320px,100%); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle;
  padding:3px 9px; border:1px solid #5d5663; border-radius:99px; background:#211e24; color:#d9d2dc; font-size:12px; font-weight:600; }
.term-state[data-status=mensch] { color:#bff0db; border-color:#3f7f69; background:#17302a; }
.term-state[data-status=ki_konsens] { color:#cedced; border-color:#657387; background:#26303a; }
.term-state[data-status=offen] { color:#ffdc9d; border-color:#886b3a; background:#30281e; }
.term-state[data-status=abgelehnt] { color:#d8cfd4; border-color:#6d5f67; background:#2a2428; }
.menu-up { position:relative; }
.menu-up>summary { list-style:none; cursor:pointer; border:1px solid #45404a; border-radius:8px; background:var(--white); font-weight:600; }
.menu-up>summary::-webkit-details-marker { display:none; }
.menu-up>summary::after { content:" ▴"; color:var(--muted); }
.menu-up>summary:hover,.menu-up[open]>summary { background:#342a33; }
.menu-up>summary:focus-visible { outline:2px solid var(--focus); outline-offset:3px; }
.menu-state { color:var(--muted); font-weight:500; }
.menu-list { position:absolute; bottom:calc(100% + 6px); left:0; z-index:6; display:grid; gap:2px; width:max-content; min-width:220px; max-width:min(420px,calc(100vw - 28px));
  max-height:min(50vh,320px); overflow:auto; padding:6px; border:1px solid #5d5663; border-radius:10px; background:#1d1a20; box-shadow:0 10px 30px #0009; }
.menu-item { display:block; width:100%; padding:7px 9px; border-radius:6px; text-align:left; font-size:13px; line-height:1.35; white-space:normal; overflow-wrap:anywhere; }
.menu-item:hover,.menu-item:focus-visible { background:#302632; }
.menu-list label.inline { white-space:normal; padding:6px 4px; }
.sentence-training { display:grid; gap:2px; }
@media(max-width:700px) {
  .reader-hint { display:none; }
  .reader-switches { gap:6px 16px; }
  .sel-count { order:0; }
  #listenWords { order:1; }
  .sel-close { order:2; }
  .markactions { order:3; flex-basis:100%; }
  .sel-note { order:4; }
  .menu-up { position:static; }
  .menu-list { left:14px; right:14px; width:auto; min-width:0; max-width:none; }
  .term-tipped .tip { left:auto; right:0; transform:none; }
}

/* Zeitangabe als Sprungschaltfläche, aktuelles Segment beim Abspielen */
.timejump { justify-self:start; align-self:start; margin:2px 0 0 -5px; padding:1px 4px; border:1px solid transparent; border-radius:6px; color:#c9adbf; text-decoration:underline dotted #7d6373; text-underline-offset:3px; }
.timejump time { margin:0; color:inherit; }
.timejump:hover,.timejump:focus-visible { background:#2d1f29; border-color:#6b4a60; color:#ffc2e1; text-decoration-color:currentColor; }
.utterance.current,.joined-group.current { background:#1b1419; box-shadow:-9px 0 0 #1b1419,-12px 0 0 var(--magenta); }

.material-quality {padding:.8rem 1rem}
.material-quality .counts {margin:0 0 .55rem; font-size:.85rem; color:#c6bfcd}
.quality-grid {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem}
.quality-grid button {min-width:0; text-align:left; padding:.6rem .7rem; border:1px solid #48404b; background:#201c22; border-radius:8px; color:#f7f3f8}
.quality-grid button:hover,.quality-tabs button[aria-pressed=true] {border-color:#ff65b2}
.quality-tabs button[aria-pressed=true] {font-weight:700;text-decoration:underline}
.quality-grid span,.quality-grid strong {display:block; overflow-wrap:anywhere}
.quality-grid span {font-size:.8rem;color:#d7ced7}
.quality-grid strong {font-weight:650;margin-top:.15rem}
#heardProgress {display:block;width:100%;height:4px;margin-top:.35rem;accent-color:#ef0085}
#qualityDetails {margin-top:.5rem} #qualityDetails summary {font-size:.85rem}
.quality-row,.change-entry {padding:.7rem 0;border-top:1px solid #45404c;overflow-wrap:anywhere}
.quality-row p,.change-entry p {margin:.2rem 0 .5rem}
.quality-tabs {display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;margin:.6rem 0}
.diff-line {display:grid;grid-template-columns:1rem minmax(0,1fr) 4.2rem minmax(0,1fr);gap:.4rem}
.diff-line small {color:#bfb5c5}
#hintDialog del,.diff-line del {background:#5a293b;color:#ffe0e7;text-decoration:line-through}
#hintDialog ins,.diff-line ins {background:#29443b;color:#b9f5d9;text-decoration:underline}
#hintReason {white-space:pre-line} .training-pick {cursor:pointer;font-size:.85rem}
@media(max-width:560px){.material-quality{padding:.65rem}.quality-grid{gap:.25rem}.quality-grid button{padding:.35rem}.quality-grid span{font-size:.73rem}.quality-grid strong{font-size:.9rem}}

.finding-filters {display:flex;flex-wrap:wrap;gap:.5rem;padding:0 .8rem}
.finding-filters label {flex:1 1 5rem;min-width:0;font-size:.78rem;color:var(--muted)}
.finding-filters select {display:block;max-width:100%;width:100%}
.finding {display:grid;gap:.18rem;text-align:left;background:transparent;color:inherit;border:0;border-bottom:1px solid var(--line);padding:.65rem .9rem;width:100%;cursor:pointer}
.finding:hover,.finding:focus-visible {background:#302632}
.finding[data-status="open"] {border-inline-start:3px solid #f2bd60}
.finding strong,.source-row strong {overflow-wrap:anywhere}.finding small {line-height:1.25}
.source-row,.download-row {display:flex;gap:.8rem;align-items:center;justify-content:space-between;flex-wrap:wrap}
.source-row>div,.download-row>div:first-child {display:grid;gap:.24rem;min-width:0}
.download-row {padding-block:.6rem}.download-row small,.check-feedback {color:var(--muted)}
.check-feedback {margin:.35rem 1rem;font-size:.85rem}
#marksBody>.metalink {margin:.55rem .9rem}#marksToggle {white-space:nowrap}
#newRun form {padding:.8rem 0} #workingPicker select,.source-row {max-width:100%}
#markList {height:min(12.4rem,calc(var(--mark-count,3)*4.1rem));overscroll-behavior:contain}
.reader-tools {justify-content:space-between;gap:.5rem}
.view-group,.check-group {display:flex;align-items:center;gap:.5rem .75rem;flex-wrap:wrap;min-width:0}
.check-group {margin-left:auto;justify-content:flex-end}
.check-start {display:flex;align-items:center;gap:.4rem;flex-wrap:nowrap;min-width:0}
.check-start select {min-width:0}
.check-start .btn {flex:none}
.check-state {font-size:.8rem;color:var(--muted);max-width:22rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.check-state[data-state="blocked"] {color:#f2bd60}
.check-state[data-state="running"] {color:var(--ink)}
.run-options {display:grid;gap:.5rem;width:min(calc(100% - 40px),46rem);margin:0 20px 0 auto;padding:.6rem .75rem;font-size:.85rem;background:#211e24;border:1px solid var(--line);border-top:0;border-radius:0 0 8px 8px}
.run-columns {display:flex;flex-wrap:wrap;gap:.5rem 1rem}
.run-provider,.run-common {flex:1 1 16rem;display:grid;gap:.3rem;align-content:start;min-width:0}
.run-common>.metalink {justify-self:start}
.run-options label {display:grid;gap:.15rem;min-width:0}
.run-model {display:flex;align-items:end;gap:.3rem}
.run-model label {flex:1}
.run-model .icon {flex:none}
@media(max-width:550px){.nav{flex-wrap:wrap;gap:.3rem}.navright{margin-left:auto}.pagehead h1{font-size:1.6rem}.quality-grid button{min-width:0}.marks-panel .panelhead{padding:.7rem}}

.finding-filter-box {margin:0 .9rem .35rem}
.finding-filter-box>summary {width:fit-content;font-size:.82rem;color:var(--muted)}
.finding-filter-box .finding-filters {padding:0}
#markList {height:auto;min-height:0;max-height:13.2rem}
.marks-panel:has(#marksExpand[aria-pressed=true]) #markList {max-height:43vh}
.play {font-family:"Segoe UI Symbol",system-ui,sans-serif;font-variant-emoji:text}

.toast-action {margin-left:.6rem;font-weight:700;text-decoration:underline;color:inherit}

.agreement{display:inline-flex;align-self:flex-start;width:fit-content;max-width:100%;border:1px solid #657387;border-radius:.5rem;padding:.12rem .48rem;font-size:.78rem;font-weight:650;color:#cedced;background:#26303a}
.agreement.confirmed_2_of_2{color:#abefd5;background:#17392d;border-color:#39725e}
.agreement.conflict_diff,.agreement.conflict_slip{color:#ffdc9d;background:#3b3020;border-color:#886b3a}
.agreement.audio_original{color:#d5d1d8;background:#302d32;border-color:#676169}
.check-warning,.audio-advice{color:#ffdc9d}
.audio-advice{padding:.55rem .8rem;background:#30281e;border-inline-start:3px solid #c09a59}
.audio-finding.confirmed_2_of_2{border-bottom-color:#69ba98}
.audio-finding.conflict_slip,.audio-finding.conflict_diff{border-bottom-color:#e5b45e}
.audio-finding.audio_original{border-bottom-color:#aba2b1}
#hintReason{white-space:pre-line}
.repeat-row {display:flex;align-items:baseline;gap:.6rem;overflow-wrap:anywhere}
.word.import-annotation {text-decoration:underline dotted var(--accent);text-underline-offset:.18em}
#variantChoice{max-width:100%}
.export-group,.export-card{display:grid;gap:10px;padding:13px;border:1px solid var(--line);border-radius:10px;background:#211e24}
.export-group>div:first-child,.export-card>div:first-child{display:grid;gap:3px}
.export-group small,.export-card small{font-size:13px;color:var(--muted)}
.export-group>.btn,.export-card>.btn{justify-self:start}
.export-more .stack{margin-top:8px}

dialog > .dialoghead { position:sticky; top:0; z-index:3; background:var(--white); }
#referenceDialog { width:min(560px,calc(100% - 24px)); }
.ref-transport { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:10px; }
.ref-play { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.ref-play .btn { padding:6px 11px; font-size:13px; line-height:1.35; }
#refListen { min-width:44px; font-size:15px; }
#refLoop[aria-pressed="true"] { background:var(--mag-bg); border-color:var(--mag-line); color:#ffd1e8; }
.ref-option { font-size:13px; color:var(--muted); }
/* Kompakt, wächst mit dem Wortlaut (field-sizing; ältere Browser behalten 2 Zeilen mit Scrollleiste). */
#refText { field-sizing:content; min-height:3.4em; max-height:14em; resize:vertical; }
.ref-stale { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 10px; padding:8px 10px; border:1px solid var(--warn-line); border-radius:8px; background:var(--warn-bg); color:var(--warn); font-size:13px; }
.ref-flags { gap:8px; }
#refExcludeRow { display:grid; gap:2px; }
.ref-exclude { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:8px; margin-top:6px; }
@media (max-width:480px){ .ref-exclude { grid-template-columns:1fr; } }
.utterance.excluded .words,.utterance.excluded .translation { opacity:.55; }
.excluded-badge { display:inline-flex; align-items:center; padding:0 7px; border:1px solid var(--warn-line); border-radius:99px; background:var(--warn-bg); color:var(--warn); font-size:11px; font-weight:650; line-height:1.6; white-space:nowrap; }
.ref-steps { display:flex; gap:4px; margin-top:3px; }
.ref-steps button { flex:1; padding:3px 0; font-size:12px; color:var(--accent); }
.ref-boundaries { display:grid; gap:8px; }
#refNeighbors { white-space:pre-line; }
#refStatus:empty { display:none; }
#refStatus.status-error { padding:8px 10px; border:1px solid #c2416f; border-left-width:4px; border-radius:8px; background:var(--coral); color:#ffd3e3; font-weight:600; }
#refStatus.status-error::before { content:"⚠ "; }
.key-input { display: flex; align-items: center; gap: .6rem; }
.key-input input { flex: 1; min-width: 0; }
#geminiClear { flex: none; color: var(--muted); }
#geminiClear:hover { color: var(--accent); }
.finding-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem; margin:.6rem 1rem; }
.finding-tools label { display:flex; align-items:center; gap:.5rem; font-size:.85rem; }
.finding-tools select { width:auto; padding:.25rem; }
.finding-current { outline:2px solid var(--accent); outline-offset:-2px; }
.word.finding-anchor { box-shadow:inset 0 -3px var(--accent); background-color:#563147; }
.minute-panel { padding:.8rem 1.2rem; margin-bottom:.8rem; }
.minute-panel table { border-collapse:collapse; width:min(100%,38rem); margin:.5rem 0; }
.minute-panel td,.minute-panel th { padding:.25rem .5rem; text-align:left; border-bottom:1px solid var(--line); }
.minute-panel td:last-child,.minute-panel th:last-child { text-align:right; font-variant-numeric:tabular-nums; }
.match-row { padding:.5rem 0; border-bottom:1px solid var(--line); }
.match-row p { margin:.2rem 0; }

/* Fehler- und Fachbegriff-Statistik über dem Transkript */
#termCoverage,.stat-caption {margin:.4rem 0;font-size:.85rem}
.term-stats {margin:.5rem 0;padding:.4rem .7rem;border:1px solid var(--line);border-radius:8px;background:#17151a;font-size:.9rem}
.stat-line {display:grid;grid-template-columns:minmax(7rem,auto) minmax(2rem,1fr) minmax(0,4fr);align-items:center;gap:.6rem;min-height:1.8rem}
.term-actions {display:flex;flex-wrap:wrap;gap:.25rem .8rem}
.stat-bar {height:.45rem;border-radius:99px;background:#3a3440;overflow:hidden}
.stat-bar i {display:block;height:100%;width:0;background:var(--magenta);transition:width .3s}
.stat-bar.over {box-shadow:0 0 0 1px var(--magenta)}
.stat-text {color:var(--ink);overflow-wrap:anywhere}
button.stat-text,.stat-link {background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer;text-align:left}
.stat-link {color:var(--accent);text-decoration:underline dotted;text-underline-offset:3px}
.stat-link.quiet {color:var(--muted)}
.stat-detail {margin:.1rem 0 .1rem 8.1rem;font-size:.8rem}
.stat-detail:empty {display:none}
.term-list {margin-top:.4rem;max-height:16rem;overflow:auto;border-top:1px solid var(--line);padding-top:.4rem}
.term-row {display:flex;justify-content:space-between;gap:.6rem;align-items:center;padding:.3rem 0;border-bottom:1px solid #2a262d}
.term-row strong,.term-row small {display:block;overflow-wrap:anywhere}
#libraryTabs { margin:0 0 16px; }
.dict-tools,.dict-page { display:flex; flex-wrap:wrap; align-items:end; gap:12px; padding:14px 18px; }
.dict-tools label:first-child { flex:1; min-width:14rem; }
.dict-page { align-items:center; padding-block:8px; border-block:1px solid var(--line); }
#dictResult { margin-right:auto; }
#dictNotice:not(:empty) { padding:0 18px 12px; }
.dict-table { width:100%; table-layout:fixed; border-collapse:collapse; }
.dict-table :is(td,th) { text-align:left; padding:8px 14px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.dict-table th:first-child { width:34%; }
.dict-table th:nth-child(2) { width:30%; }
#dictDialog { width:min(600px,calc(100% - 24px)); }
#dictForm fieldset { min-width:0; border:1px solid var(--line); border-radius:8px; }
.dict-form-row { display:flex; align-items:center; gap:10px; margin-block:6px; }
.dict-form-row input[type=text] { flex:1; }
.form-error { color:#ffadc5; }
#hintDialog.word-card { position:fixed; inset:auto; margin:0; z-index:65; max-height:min(65vh,calc(100vh - var(--playbar-h,0px) - 24px)); }
#wordCard { gap:9px; }
#wordCard p { overflow-wrap:anywhere; }
#cardOrigin { display:block; }
#wordCard:not([hidden]) + #hintBody { border-top:1px solid var(--line); }
#termVersion { margin-left:auto; }
.word.term-mark {text-decoration:underline solid #8d5a76;text-underline-offset:4px}
.word.term-open {text-decoration-style:dotted;text-decoration-color:var(--accent)}
.word.term-own {text-decoration:underline solid #6fd1ae 2px;text-underline-offset:4px}
/* Whisper-Wortkonfidenz: dezente Punktlinie über unsicheren, noch ungeprüften Originalwörtern */
.word.low-confidence {background-image:radial-gradient(circle,rgba(236,176,84,.8) 0 1px,transparent 1.5px);
  background-size:4px 3px;background-repeat:repeat-x;background-position:0 0}
@media(max-width:620px){.stat-line{grid-template-columns:1fr 2fr}.stat-text{grid-column:1/-1}.stat-detail{margin-left:0}.term-row{flex-wrap:wrap}}

@media(min-width:801px) {
  .workspace-overview { grid-template-columns:clamp(270px,25%,390px) minmax(0,1fr); }
  .track-view .workspace-overview { grid-template-columns:clamp(215px,19%,285px) minmax(0,1fr); }
  .source iframe { min-height:200px; }
  #desk>.pagehead { padding-block:18px 14px; }
  .material-quality { padding-block:.45rem; }
  .reader-tools,.reader-switches { padding-block:5px; }
  .run-options { width:100%; margin:0; padding-inline:20px; }
}

/* KI-Suche nach fehlenden Fachbegriffen: Abschnitte im KI-Optionen-Menü und Prüfliste */
.run-section {display:grid;gap:.4rem;min-width:0}
.run-section+.run-section {border-top:1px solid var(--line);padding-top:.55rem;margin-top:.15rem}
.run-heading {margin:0;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.scan-badge {display:inline-block;min-width:1.25rem;margin-left:.35rem;padding:0 .35rem;border-radius:99px;background:var(--magenta);color:#fff;font-size:.7rem;font-weight:700;line-height:1.25rem;text-align:center;text-decoration:none;vertical-align:1px}
.scan-choice,.scan-run {display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .8rem;min-width:0}
.scan-choice>span {overflow-wrap:anywhere}
.scan-note {color:var(--muted);overflow-wrap:anywhere}
.scan-note[data-state=blocked] {color:#ffadc5}
.scan-note[data-state=running] {color:var(--ink)}
#scanDialog {width:min(980px,calc(100% - 24px))}
#scanDialog>.dialogbody {padding-bottom:0}
.scan-tools {display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.scan-tools input[type=search] {flex:1 1 16rem;min-width:0}
.scan-chips {display:flex;flex-wrap:wrap;gap:6px}
.scan-chip {padding:3px 10px;border:1px solid var(--line);border-radius:99px;background:#211e24;font-size:12px;color:var(--muted)}
.scan-chip[aria-pressed=true] {border-color:var(--accent);color:var(--ink);background:#3a2533}
.scan-rows {display:grid;border-top:1px solid var(--line)}
.scan-row {display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;padding:9px 2px;border-bottom:1px solid #2a262d}
.scan-row>input[type=checkbox] {width:16px;height:16px;margin-top:9px}
.scan-row.blocked {opacity:.72}
.scan-main {display:grid;gap:5px;min-width:0}
.scan-main>small {font-size:12.5px}
.scan-head {display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
input.scan-lemma {flex:1 1 14rem;min-width:0;max-width:26rem;padding:5px 9px;font-weight:650}
label.scan-aa {display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:650;color:var(--muted);cursor:pointer}
label.scan-aa input {width:14px;height:14px}
.scan-tag {padding:2px 8px;border-radius:6px;background:#2b2730;font-size:11.5px;font-weight:650;color:var(--muted)}
.scan-tag.mittel {background:var(--gold);color:#ffe1a0}
.scan-row-actions {display:flex;gap:12px;margin-left:auto}
.scan-row-actions .metalink {padding:0;font-size:12px}
.scan-forms {display:flex;flex-wrap:wrap;gap:6px}
.scan-form {display:inline-flex;align-items:center;gap:6px;padding:3px 8px;border:1px solid var(--line);border-radius:8px;background:#211e24;font-size:13px}
.scan-form[data-state=konflikt] {border-color:#7a3b55}
.scan-form[data-state=vorhanden] {opacity:.7}
.scan-form input[type=text] {width:auto;min-width:5rem;padding:2px 6px;border-radius:5px;font-size:13px}
.scan-form .stat-link {font-size:12px;font-variant-numeric:tabular-nums}
.scan-notes {margin:0;padding-left:1.1rem;font-size:12.5px}
.scan-note-block {color:#ffadc5}
.scan-note-warn {color:#ffe1a0}
.scan-note-info {color:var(--muted)}
.scan-plan {display:grid;gap:8px;padding:13px;border:1px solid var(--accent);border-radius:10px;background:#211e24;scroll-margin-bottom:5.5rem}
.scan-plan h3 {margin:0;font-size:16px}
#scanPlanRows {display:grid;gap:6px;max-height:40dvh;overflow:auto}
.scan-plan-row {display:grid;gap:1px;padding-bottom:6px;border-bottom:1px solid #2a262d}
.scan-plan-row[data-status="übersprungen"] strong {color:var(--muted)}
.scan-plan-row small {font-size:12.5px}
.scan-footer {position:sticky;bottom:0;z-index:2;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-inline:-21px;padding:12px 21px;border-top:1px solid var(--line);background:var(--white)}
#scanCount {margin-right:auto}
@media(max-width:620px){.scan-row-actions{margin-left:0}.scan-footer .btn{flex:1 1 auto}}


/* ==========================================================================
   Redesign „Clinical Analytics“: Wiedergabe, Prüfstatistik, Transkript-Kopf
   Grün = erledigt · Amber = offen/Handlungsbedarf · Magenta = Primär/aktiv · Slate = Metadaten
   ========================================================================== */
:root {
  --cl-card:#1c1c20; --cl-inner:#17171b; --cl-line:#2e2e35; --cl-line-strong:#3a3a43;
  --cl-muted:#a3a3ad; --cl-faint:#83838e; --cl-track:#2a2a31;
  --cl-slate-bg:#25252b; --cl-slate-ink:#b4b4bc;
  --ok:#34d399; --ok-strong:#10b981; --ok-bg:rgba(16,185,129,.12); --ok-line:rgba(16,185,129,.32);
  --warn:#fbbf24; --warn-strong:#f59e0b; --warn-bg:rgba(245,158,11,.12); --warn-line:rgba(245,158,11,.36);
  --mag-bg:rgba(226,0,116,.12); --mag-line:rgba(226,0,116,.45);
}
#work .panel { background:var(--cl-card); border-color:var(--cl-line); box-shadow:none; }

/* Icons als Masken: kein Text im zugänglichen Namen, überlebt textContent-Updates */
.ico::before,.ico-only::before,i.ico-wave,.chip-btn.go::after,#runOptions.chevron::after {
  content:""; display:inline-block; flex:none; width:15px; height:15px; background:currentColor;
  -webkit-mask:var(--icon) center/contain no-repeat; mask:var(--icon) center/contain no-repeat;
}
.btn.ico { display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.ico-download { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m-5-5 5 5 5-5M5 20h14'/%3E%3C/svg%3E"); }
.ico-mic { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='12' rx='3'/%3E%3Cpath d='M19 11a7 7 0 0 1-14 0M12 18v3'/%3E%3C/svg%3E"); }
.ico-check { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ico-search { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E"); }
.ico-gear { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/%3E%3C/svg%3E"); }
i.ico-wave { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h3l2.5-6 4 12 3-9 2 3H21'/%3E%3C/svg%3E"); width:14px; height:14px; }
.chip-btn.go::after { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E"); width:12px; height:12px; }
#runOptions.chevron::after { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); width:12px; height:12px; margin-left:6px; transition:transform .18s; }
#runOptions.chevron[aria-expanded=true]::after { transform:rotate(180deg); }
.ico-only { display:inline-grid; place-items:center; }

/* Primär (Magenta) ohne Neon-Glow, Ghost-/Sekundärflächen neutral */
.primary,.play { box-shadow:none; }
.btn.ghost { background:transparent; border-color:var(--cl-line-strong); color:#d6d6dc; }
.btn.ghost:hover { background:#26262c; border-color:#4a4a55; color:var(--ink); }
.btn.ghost[aria-expanded=true] { background:var(--mag-bg); border-color:var(--mag-line); color:#ffd1e8; }
.reader-tools .btn.small,.run-options .btn.small,.quality-foot .btn.small { padding:6px 12px; font-size:13px; border-width:1px; line-height:1.35; }
.check-start .btn:not(.primary) { background:#222227; border-color:var(--cl-line-strong); color:#e4e4e8; }
.check-start .btn:not(.primary):hover { background:#2b2b31; }

/* Kopfbereich */
.headbadges { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin-bottom:8px; }
.headbadges .eyebrow { margin:0; padding:2px 8px; border:1px solid var(--cl-line-strong); border-radius:6px; background:var(--cl-slate-bg); color:var(--cl-slate-ink); font-size:10.5px; letter-spacing:.1em; }
.sync-state { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--cl-faint); }
.sync-state::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--cl-faint); animation:cl-pulse 1.2s ease-in-out infinite; }
@keyframes cl-pulse { 50% { opacity:.3; } }
@media (prefers-reduced-motion:reduce) { .sync-state::before { animation:none; } }
.material-meta { color:var(--cl-muted); font-size:14px; overflow-wrap:anywhere; }
.material-meta .metalink { padding:0; font-size:14px; color:#dcdce2; text-decoration:none; }
.material-meta .metalink:hover,.material-meta .metalink:focus-visible { color:var(--ink); text-decoration:underline; }
.material-meta small { font-size:13px; }
.pagehead>.actions { align-items:center; }

/* Wiedergabe */
#mediaColumn>.panelhead { flex-wrap:wrap; align-items:center; gap:8px 12px; padding:13px 16px; }
#mediaColumn>.panelhead h2 { font-size:17px; }
.panelhead-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px 12px; margin-left:auto; min-width:0; max-width:100%; }
.panelhead-tools .segmented { margin:0; background:#141416; border-color:var(--cl-line); }
.segmented button { font-size:13px; }
.segmented [aria-pressed=true] { background:var(--mag-bg); color:#ffc2e1; box-shadow:inset 0 0 0 1px var(--mag-line); }
.panelhead-tools a { white-space:nowrap; color:var(--cl-slate-ink); text-decoration:none; font-size:13px; }
.panelhead-tools a:hover,.panelhead-tools a:focus-visible { color:var(--ink); text-decoration:underline; }
.sourceactions { border-top-color:var(--cl-line); }
.sourceactions>#offlineBtn { width:100%; }
#offlineBtn.is-complete { background:#202025; border-color:var(--cl-line-strong); color:#cfcfd6; font-weight:550; }
#offlineBtn.is-complete:hover { background:#2a2a30; color:var(--ink); }
.coverage { gap:7px; }
.coverage .coveragehead b { display:inline-flex; align-items:center; gap:7px; font-weight:600; }
.coverage .dot { width:7px; height:7px; border-radius:50%; background:var(--magenta); }
.coverage.complete .dot { background:var(--ok-strong); }
#coverageText { color:var(--cl-muted); font-variant-numeric:tabular-nums; }
.coverage.complete #coverageText { color:var(--ok); }
#coverageTrack { height:6px; border-radius:99px; background:var(--cl-track); }
#coverageTrack span { background:#d0408a; }
.coverage.complete #coverageTrack span { background:var(--ok-strong); }
#nextGap { font-size:12px; color:var(--cl-muted); padding:0; }
#nextGap:hover { color:var(--ink); }

/* Gemeinsame Pills */
.pill { display:inline-flex; align-items:center; padding:1px 8px; border:1px solid var(--cl-line-strong); border-radius:99px; background:var(--cl-slate-bg); color:var(--cl-slate-ink); font-size:11px; font-weight:650; line-height:1.55; white-space:nowrap; font-variant-numeric:tabular-nums; }
.pill.ok,.dataset-badge.ok,.chip-btn.ok { color:var(--ok); background:var(--ok-bg); border-color:var(--ok-line); }
.pill.warn,.dataset-badge.warn,.chip-btn.warn { color:var(--warn); background:var(--warn-bg); border-color:var(--warn-line); }

/* Prüfstatistik */
.material-quality { display:grid; align-content:start; gap:14px; padding:16px 18px; }
.quality-head { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:8px 16px; }
.quality-title { display:grid; gap:3px; flex:1 1 22rem; min-width:0; }
.quality-title h2 { font-size:17px; }
.material-quality .counts { margin:0; font-size:13px; line-height:1.5; color:var(--cl-muted); }
.material-quality .counts b { color:#e4e4e8; font-weight:600; font-variant-numeric:tabular-nums; }
.counts .nowrap { white-space:nowrap; }
.dataset-badge { flex:none; max-width:100%; padding:4px 11px; border:1px solid var(--cl-line-strong); border-radius:99px; background:var(--cl-slate-bg); color:var(--cl-slate-ink); font-size:12px; font-weight:600; white-space:normal; text-align:left; }
.dataset-badge:hover { filter:brightness(1.15); }
.quality-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-items:stretch; }
.quality-grid button.kpi { display:flex; flex-direction:column; gap:8px; min-width:0; padding:12px 14px; border:1px solid var(--cl-line); border-radius:10px; background:var(--cl-inner); color:var(--ink); text-align:left; }
.quality-grid button.kpi:hover { border-color:#4a4a55; background:#1b1b20; }
.quality-grid .kpi span,.quality-grid .kpi strong { display:revert; margin:0; font-size:inherit; color:inherit; overflow-wrap:anywhere; }
.quality-grid .kpi .kpi-head { display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:22px; }
.quality-grid .kpi .kpi-label { font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--cl-muted); overflow-wrap:normal; }
.quality-grid .kpi .pill { display:inline-flex; font-size:11px; color:var(--cl-slate-ink); overflow-wrap:normal; }
.quality-grid .kpi .pill.ok { color:var(--ok); } .quality-grid .kpi .pill.warn { color:var(--warn); }
.quality-grid .kpi .kpi-value { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; }
.quality-grid .kpi .kpi-value strong { font-size:26px; font-weight:650; letter-spacing:-.02em; line-height:1.15; font-variant-numeric:tabular-nums; overflow-wrap:normal; }
.quality-grid .kpi .kpi-unit { font-size:13px; color:var(--cl-muted); white-space:nowrap; }
#openCount.warn { color:var(--warn); } #openCount.ok { color:var(--ok); }
#heardProgress { -webkit-appearance:none; appearance:none; display:block; width:100%; height:5px; margin:0; border:0; border-radius:99px; background:var(--cl-track); overflow:hidden; accent-color:var(--magenta); }
#heardProgress::-webkit-progress-bar { background:var(--cl-track); border-radius:99px; }
#heardProgress::-webkit-progress-value { background:var(--magenta); border-radius:99px; }
#heardProgress::-moz-progress-bar { background:var(--magenta); border-radius:99px; }
#heardProgress.ok::-webkit-progress-value { background:var(--ok-strong); }
#heardProgress.ok::-moz-progress-bar { background:var(--ok-strong); }
.quality-grid .kpi .kpi-bar { display:block; height:5px; border-radius:99px; background:var(--cl-track); overflow:hidden; }
.kpi-bar i { display:block; height:100%; width:0; border-radius:inherit; background:#5fb79a; transition:width .3s; }
.quality-grid .kpi .kpi-sub { display:flex; flex-wrap:wrap; gap:2px 8px; margin-top:auto; font-size:12px; line-height:1.4; color:var(--cl-faint); font-variant-numeric:tabular-nums; }
.quality-grid .kpi .kpi-jump { color:var(--warn); font-weight:600; }
.quality-grid .kpi .kpi-jump.ok { color:var(--ok); font-weight:550; }
.quality-grid .kpi .kpi-sub:has(.kpi-jump:empty) { display:none; }

/* Qualitätsblock */
.term-stats { display:grid; gap:12px; margin:0; padding:14px 16px; border:1px solid var(--cl-line); border-radius:10px; background:var(--cl-inner); font-size:13.5px; }
.stat-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px; }
.term-stats .stat-caption { display:inline-flex; align-items:center; gap:8px; margin:0; font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--cl-muted); }
.stat-meta { display:flex; flex-wrap:wrap; gap:6px; }
.meta-pill { padding:1px 8px; border:1px solid var(--cl-line-strong); border-radius:6px; background:var(--cl-slate-bg); color:var(--cl-slate-ink); font-size:11.5px; font-weight:600; white-space:nowrap; }
#termVersion { margin-left:0; }
.term-stats .stat-line { grid-template-columns:auto minmax(0,1fr); grid-template-areas:"label text" "bar bar"; align-items:center; gap:7px 12px; min-height:0; }
.stat-label { grid-area:label; display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; min-width:0; }
.stat-label strong { font-weight:600; }
.term-stats .stat-line .stat-text { grid-area:text; justify-self:end; text-align:right; font-size:12.5px; color:var(--cl-muted); font-variant-numeric:tabular-nums; }
button.stat-text:hover,button.stat-text:focus-visible { color:var(--ink); text-decoration:underline dotted; text-underline-offset:3px; }
.term-stats .stat-bar { grid-area:bar; height:6px; background:var(--cl-track); }
.term-stats .stat-bar i { background:#8c8c96; }
.term-stats .stat-bar.ok i { background:var(--ok-strong); }
.term-stats .stat-bar.warn i { background:var(--warn-strong); }
.term-stats .stat-bar.over { box-shadow:0 0 0 1px var(--warn-line); }
.term-stats .stat-detail { margin:-4px 0 0; font-size:12px; }
.term-actions { align-items:center; gap:6px 8px; margin-top:-2px; }
.chip-btn { display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border:1px solid var(--cl-line-strong); border-radius:99px; background:var(--cl-slate-bg); color:var(--cl-slate-ink); font-size:12px; font-weight:600; line-height:1.45; white-space:nowrap; }
.chip-btn:hover { filter:brightness(1.18); }
#termInserted { font-size:12px; }
.term-stats .term-list { margin-top:0; }

/* Fußzeile */
.quality-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 16px; padding-top:12px; border-top:1px solid var(--cl-line); }
#confirmMaterial { white-space:normal; text-align:left; background:#202025; border-color:var(--cl-line-strong); color:#d6d6dc; }
#confirmMaterial.done::before { color:var(--ok); }
#confirmMaterial.attention { background:var(--warn-bg); border-color:var(--warn-line); color:#fde4a8; }
#confirmMaterial:hover { filter:brightness(1.15); }
.quality-foot>#qualityDetails { margin:0 0 0 auto; }
.quality-foot>#qualityDetails[open] { flex:1 1 100%; }
#qualityDetails>summary { width:fit-content; margin-left:auto; font-size:13px; font-weight:550; color:var(--cl-muted); }
#qualityDetails>summary:hover { color:var(--ink); }

/* Transkript-Kopfzeile */
.transcript>.reader-tools { padding:10px 18px; gap:8px 16px; border-bottom:1px solid var(--cl-line); }
.view-group h2 { font-size:17px; margin-right:4px; }
.view-label { color:var(--cl-muted); font-size:13px; }
.check-group { gap:8px 10px; }

/* Optionen-Panel (#reviewMenu) */
.run-options { width:100%; margin:0; gap:14px; padding:14px 20px 16px; border:0; border-bottom:1px solid var(--cl-line); border-radius:0; background:#18181c; font-size:13px; }
.run-section { gap:10px; }
.run-section+.run-section { padding-top:14px; margin-top:0; border-top-color:var(--cl-line); }
.run-section[hidden]+.run-section { padding-top:0; border-top:0; }
.run-heading { font-size:11px; letter-spacing:.08em; color:var(--cl-muted); }
.run-columns { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px 18px; }
.run-provider,.run-common,.run-levels { display:grid; gap:6px; align-content:start; min-width:0; }
.run-provider>b,.run-common>b,.run-levels>b { font-size:12.5px; font-weight:600; color:#dcdce2; }
.run-options select { width:100%; min-width:0; }
.run-model { display:flex; align-items:center; gap:6px; }
.run-model select { flex:1 1 auto; }
.run-model .icon { flex:none; color:var(--cl-muted); background:transparent; }
.run-model .icon:hover { color:var(--ink); background:#26262c; }
.run-options label:not(.inline) { font-size:inherit; font-weight:inherit; gap:3px; }
.run-options select { font-weight:400; }
.run-levels label { display:grid; gap:2px; }
.run-levels:not(.dual) .run-sub { display:none; }
.run-sub { font-size:11.5px; color:var(--cl-faint); }
.run-options small:empty { display:none; }
.run-options .run-provider small,.run-options .run-common small { font-size:12px; line-height:1.4; }
.run-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 12px; }
.run-foot #runModelDetails { margin-left:auto; color:var(--cl-muted); font-size:12.5px; }
.run-foot #runModelDetails:hover { color:var(--ink); }

/* Fachbegriffe · Wörterbuch: kompakte Leiste */
.run-section.scan-section { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; }
.scan-section .scan-pill { flex:none; padding:2px 9px; border:1px solid var(--cl-line-strong); border-radius:6px; background:var(--cl-slate-bg); color:var(--cl-slate-ink); font-size:10.5px; }
.scan-section .scan-choice { flex:0 1 auto; gap:4px; font-size:12.5px; }
.scan-section .scan-choice .icon { color:var(--cl-muted); background:transparent; border-color:var(--cl-line-strong); }
.scan-section .scan-choice .icon:hover { color:var(--ink); background:#26262c; }
.scan-section .scan-note { flex:1 1 13rem; min-width:0; font-size:12.5px; }
.scan-section .scan-note[data-state=blocked] { color:#f3c66d; }
.scan-section .scan-run { flex:none; margin-left:auto; gap:8px; }
.scan-badge { background:var(--warn-strong); color:#1a1205; }

/* Responsiv */
@media(max-width:1180px) { .run-columns { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:800px) {
  .quality-grid { gap:8px; }
  .check-group { margin-left:0; justify-content:flex-start; }
}
@media(max-width:640px) {
  .quality-grid { grid-template-columns:minmax(0,1fr); }
  .quality-grid button.kpi { padding:10px 12px; gap:6px; }
  .quality-grid .kpi .kpi-value strong { font-size:22px; }
  .material-quality { padding:14px; gap:12px; }
  .term-stats { padding:12px; }
  .term-stats .stat-line { grid-template-columns:minmax(0,1fr); grid-template-areas:"label" "text" "bar"; }
  .term-stats .stat-line .stat-text { justify-self:start; text-align:left; }
  .quality-foot>#qualityDetails { margin-left:0; }
  #qualityDetails>summary { margin-left:0; }
  .run-columns { grid-template-columns:minmax(0,1fr); }
  .run-options { padding-inline:14px; }
  .scan-section .scan-run { margin-left:0; }
  .transcript>.reader-tools { padding:8px 12px; }
}
.hint-conflict { padding:8px 10px; border:1px solid var(--warn-line); border-radius:8px; background:var(--warn-bg); }
.hint-conflict > strong { color:var(--warn); }
.hint-conflict .conflict-row { display:flex; flex-direction:column; gap:2px; }
.hint-conflict textarea { width:100%; }
.source-warning { color:var(--warn); font-weight:600; }
.ref-validity { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:0 0 8px; font-size:13px; }
.ref-validity.warn { padding:8px 10px; border:1px solid var(--warn-line); border-radius:8px; background:var(--warn-bg); color:var(--warn); }
