:root {
  color-scheme: light;
  --ink: #17231f;
  --muted: #687770;
  --line: #dce4df;
  --paper: #fffefb;
  --canvas: #f3f5f1;
  --green: #176b4d;
  --green-soft: #e5f3ec;
  --blue: #2d5e8e;
  --blue-soft: #e8f0f8;
  --orange: #c66d2d;
  --red: #b43d3d;
  --shadow: 0 18px 50px rgba(23, 35, 31, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); min-width: 320px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: .68rem 1rem; cursor: pointer; font-weight: 650; }
button:hover:not(:disabled) { border-color: #aab9b1; transform: translateY(-1px); }
button:disabled { opacity: .48; cursor: not-allowed; }
button.primary { color: white; background: var(--green); border-color: var(--green); }
button.danger { color: white; background: var(--red); border-color: var(--red); }
button.large { padding: .9rem 1.4rem; font-size: 1rem; }
button.full { width: 100%; }
input, select, textarea { width: 100%; border: 1px solid #cbd6d0; background: white; border-radius: 9px; padding: .72rem .8rem; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid rgba(45, 94, 142, .2); border-color: var(--blue); }
label > span, .select-control > span { display: block; margin-bottom: .38rem; color: #45564e; font-size: .78rem; font-weight: 700; }
textarea { resize: vertical; }
[hidden], .step-panel[hidden] { display: none !important; }
.eyebrow { margin: 0 0 .35rem; color: var(--green); font-size: .69rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.status { min-height: 1.4em; color: var(--muted); margin: .6rem 0 0; }
.status.error { color: var(--red); }
.muted { color: var(--muted); }
kbd { margin-left: .45rem; border: 1px solid rgba(255,255,255,.45); border-radius: 5px; padding: .1rem .36rem; font: 600 .72rem ui-monospace, monospace; }

.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; background: rgba(255, 254, 251, .94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); }
.brand { border: 0; padding: 0; background: transparent; display: flex; align-items: center; gap: .75rem; text-align: left; }
.brand:hover:not(:disabled) { transform: none; border-color: transparent; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: var(--green); font-weight: 850; letter-spacing: -.04em; }
.brand small, .brand strong { display: block; }
.brand small { color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; }
.brand strong { font-size: .96rem; }
.topbar-actions { display: flex; align-items: center; gap: .8rem; }
.auth-controls { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .76rem; }
.auth-controls button { padding: .45rem .65rem; }
.workspace-label { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .76rem; }
.icon-button { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.login-page { min-height: 100vh; background: radial-gradient(circle at top left, #e8f1ec 0, transparent 42%), var(--bg); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: min(100%, 420px); padding: 2rem; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.login-card .brand-mark { margin-bottom: 1.4rem; }
.login-card h1 { margin: .15rem 0 .6rem; font-size: 2rem; letter-spacing: -.04em; }
.login-card form { display: grid; gap: 1rem; margin-top: 1.6rem; }

.exercise-screen { max-width: 1180px; margin: 0 auto; padding: 9vh 2rem 5rem; }
.welcome { max-width: 710px; margin-bottom: 3rem; }
.welcome h1 { margin: .2rem 0 1rem; font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.055em; }
.welcome > p:last-child { color: var(--muted); font-size: 1.08rem; }
.exercise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.exercise-card { min-height: 210px; padding: 1.35rem; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 8px 25px rgba(23,35,31,.035); cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; transition: transform .18s, box-shadow .18s, border-color .18s; }
.exercise-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #a9bdb3; }
.exercise-card-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: var(--green-soft); color: var(--green); font-size: 1.25rem; }
.exercise-card h2 { margin: .8rem 0 .3rem; font-size: 1.22rem; }
.exercise-card p { margin: 0; color: var(--muted); font-size: .83rem; }

.studio { max-width: 1440px; margin: 0 auto; padding: 0 2rem 4rem; }
.exercise-context { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 1rem; padding: 1.75rem 0 1.2rem; }
.exercise-context h1 { margin: 0; font-size: 1.55rem; letter-spacing: -.025em; }
.back-button { justify-self: start; border: 0; background: transparent; padding-left: 0; color: var(--muted); }
.exercise-progress { color: var(--muted); font-size: .8rem; }
.stepper { display: grid; grid-template-columns: repeat(6, 1fr); gap: .45rem; padding: .5rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); position: sticky; top: 78px; z-index: 20; box-shadow: 0 8px 24px rgba(23,35,31,.05); }
.stepper button { position: relative; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: .6rem; text-align: left; border: 0; background: transparent; padding: .65rem .7rem; }
.stepper button > span { grid-row: 1 / 3; align-self: center; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #e8eeea; font-size: .75rem; }
.stepper button strong { font-size: .82rem; }
.stepper button small { color: var(--muted); font-size: .68rem; }
.stepper button.active { background: var(--ink); color: white; }
.stepper button.active small { color: #bfcac5; }
.stepper button.active > span { background: var(--green); }
.stepper button.done > span { background: var(--green-soft); color: var(--green); }
.workspace { margin-top: 1rem; }
.step-panel { min-height: 620px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); padding: clamp(1.3rem, 3vw, 2.5rem); }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.page-heading h2 { margin: .15rem 0 .5rem; font-size: clamp(1.8rem, 3vw, 2.55rem); letter-spacing: -.04em; }
.page-heading p:last-child { margin: 0; color: var(--muted); max-width: 670px; }
.select-control { min-width: 260px; }
.summary-pill, .count-badge { border-radius: 999px; background: var(--green-soft); color: var(--green); padding: .55rem .85rem; font-size: .78rem; font-weight: 750; }

.upload-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); gap: 1.2rem; }
.upload-card, .recording-library { border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; background: #fbfcfa; }
.drop-zone { min-height: 180px; border: 1.5px dashed #aebdb5; border-radius: 14px; display: grid; place-items: center; align-content: center; gap: .35rem; text-align: center; background: white; cursor: pointer; }
.drop-zone.dragging { border-color: var(--green); background: var(--green-soft); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone small { color: var(--muted); }
.drop-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 1.5rem; }
.upload-queue { display: grid; gap: .55rem; margin: .8rem 0; }
.upload-item { display: grid; grid-template-columns: minmax(150px,1fr) 170px minmax(180px,1fr) 32px; gap: .55rem; align-items: center; padding: .7rem; border: 1px solid var(--line); border-radius: 11px; background: white; }
.upload-item strong, .upload-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item small { color: var(--muted); font-size: .7rem; }
.upload-item input { padding: .5rem; }
.upload-item button { border: 0; padding: .4rem; }
.metadata-card { margin-top: .9rem; padding: 1rem; border-radius: 13px; background: white; border: 1px solid var(--line); }
.metadata-card h3 { margin: 0 0 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.form-grid.compact { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.advanced { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.advanced summary { cursor: pointer; color: #40524a; font-weight: 700; }
.advanced[open] summary { margin-bottom: 1rem; }
.advanced .form-grid { margin-top: .8rem; }
.action-row { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.action-row .status { margin: 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.section-title h3 { margin: 0; }
.recording-list { display: grid; gap: .65rem; max-height: 650px; overflow: auto; }
.recording-item { padding: .9rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.recording-item-head { display: flex; justify-content: space-between; gap: .7rem; }
.recording-item h4 { margin: 0; }
.recording-item p { margin: .5rem 0 0; color: var(--muted); font-size: .76rem; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .2rem .48rem; font-size: .66rem; font-weight: 750; background: #edf1ef; color: #53635c; }
.badge.good { background: var(--green-soft); color: var(--green); }
.badge.validation { background: var(--blue-soft); color: var(--blue); }
.badge.warning { background: #fff2df; color: var(--orange); }

.annotation-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); gap: 1.1rem; }
.video-workbench, .rep-editor { border: 1px solid var(--line); border-radius: 16px; background: #f9faf8; padding: 1rem; }
.video-workbench video { width: 100%; max-height: 66vh; border-radius: 12px; background: #0d1210; }
.annotation-transport { display: flex; align-items: center; gap: .7rem; margin-top: .8rem; }
.annotation-transport output { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.mark-button { background: var(--green); color: white; border-color: var(--green); flex: 1; }
.rep-counter { display: flex; justify-content: space-between; align-items: center; padding: .8rem 0 1rem; border-bottom: 1px solid var(--line); }
.rep-counter strong { font-size: 2.5rem; line-height: 1; }
.rep-list { display: grid; gap: .45rem; max-height: 390px; overflow: auto; padding: .8rem 0; }
.rep-row { display: grid; gap: .45rem; padding: .55rem; border-radius: 9px; background: white; border: 1px solid var(--line); }
.rep-row.abandoned { background: #fbf7f2; border-style: dashed; }
.rep-row-head { display: grid; grid-template-columns: 34px minmax(0,1fr) 34px; align-items: center; gap: .5rem; }
.rep-row-foot { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: .6rem; }
.rep-row-foot .inline-check { margin: 0; font-size: .74rem; font-weight: 650; white-space: nowrap; }
.rep-row-foot .inline-check input { width: auto; }
.rep-row-foot input[data-rep-note] { font-size: .78rem; }
/* Fehler-Labels je Wiederholung: das Vokabular stammt aus der Uebungs-Config,
   deshalb sind es Schalter und kein Textfeld (CLAUDE.md §8). */
.rep-labels { display: flex; flex-wrap: wrap; gap: .3rem; }
.rep-labels .chip { padding: .22rem .5rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .7rem; font-weight: 700; color: var(--muted); }
.rep-labels .chip.active { background: #fff2df; border-color: var(--orange); color: var(--orange); }
.rep-row input { padding: .45rem; font-variant-numeric: tabular-nums; }
.rep-row button { padding: .35rem; border: 0; }
.rep-time-editor { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .35rem; }
.rep-time-editor button { border: 1px solid var(--line); padding: .35rem .48rem; }
.inline-message { margin-top: .7rem; padding: .7rem; background: #fff3df; border-radius: 9px; }

.focus-card { max-width: 620px; margin: 3rem auto; padding: 2.4rem; text-align: center; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #fbfcfa, #f0f5f1); }
.focus-card h3 { margin: .8rem 0 .4rem; font-size: 1.35rem; }
.focus-card p { color: var(--muted); }
.focus-icon { width: 55px; height: 55px; display: grid; place-items: center; margin: auto; border-radius: 17px; background: var(--green-soft); color: var(--green); font-size: 1.5rem; }
.focus-icon svg { width: 26px; height: 26px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.5rem; }
.metric-card { padding: 1.05rem; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfa; }
.metric-card span, .metric-card small { color: var(--muted); display: block; }
.metric-card strong { display: block; font-size: 1.8rem; margin: .25rem 0; }
.repcheck-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.repcheck-card { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; }
.repcheck-card-head { display: flex; justify-content: space-between; gap: .5rem; }
.rep-numbers { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; margin-top: 1rem; text-align: center; }
.rep-numbers strong { font-size: 1.8rem; display: block; }
.rep-numbers small { color: var(--muted); }
.run-model-fieldset { border: 0; padding: 0; margin: 1.2rem 0; text-align: left; }
.run-model-fieldset legend { font-size: .75rem; font-weight: 750; color: var(--muted); margin-bottom: .5rem; }
.run-model-list { display: grid; gap: .45rem; }
.run-model-option { display: flex; align-items: center; gap: .65rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.run-model-option input { width: auto; }
.run-model-option span, .run-model-option strong, .run-model-option small { display: block; }
.run-model-option small { color: var(--muted); font-size: .7rem; }
.run-option { display: flex; align-items: flex-start; gap: .7rem; margin: 1rem 0 1.25rem; padding: .85rem; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: left; cursor: pointer; }
.run-option input { width: auto; margin-top: .2rem; }
.run-option span, .run-option strong, .run-option small { display: block; }
.run-option small { margin-top: .25rem; color: var(--muted); font-size: .76rem; line-height: 1.4; font-weight: 400; }
.run-progress { padding: 1.2rem; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfa; }
.progress-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.progress-current { min-height: 1.5em; color: var(--blue); font-weight: 700; }
.progress-track { height: 9px; margin: .8rem 0; border-radius: 99px; background: #e3e9e5; overflow: hidden; }
.progress-track i { display: block; height: 100%; background: var(--green); transition: width .25s; }
.run-model-statuses { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0; }
.run-model-status { padding: .45rem .6rem; border-radius: 9px; background: var(--green-soft); }
.run-model-status strong, .run-model-status small { display: block; }
.run-model-status small { color: var(--muted); font-size: .68rem; }
.progress-log { max-height: 240px; overflow: auto; display: grid; gap: .35rem; color: var(--muted); font-size: .76rem; }
.progress-log span { padding: .35rem .45rem; border-radius: 6px; background: #f1f5f2; }

.calibration-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); gap: 1rem; }
.calibration-main, .threshold-panel { min-width: 0; }
.calibration-stage { position: relative; aspect-ratio: 16/9; max-height: 58vh; overflow: hidden; border-radius: 15px; background: #101714; }
.calibration-stage video, .calibration-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.calibration-stage canvas { pointer-events: none; }
.calibration-transport { display: grid; grid-template-columns: 44px 1fr 92px; align-items: center; gap: .6rem; margin: .7rem 0; }
.calibration-transport output { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .78rem; }
.chart-card { border: 1px solid var(--line); border-radius: 14px; padding: .9rem; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.chart-head span, .chart-head strong { display: block; }
.chart-head span { color: var(--muted); font-size: .72rem; }
.chart-head select { max-width: 280px; }
#angle-chart { width: 100%; height: 220px; }
.detected-events { margin-top: .8rem; padding: .9rem; border: 1px solid #ecd2d2; border-radius: 14px; background: #fffafa; }
.event-track { position: relative; height: 10px; margin: .6rem .25rem 1rem; border-radius: 10px; background: #f0dede; }
.event-track i { position: absolute; top: -3px; width: 4px; height: 16px; margin-left: -2px; border-radius: 4px; background: #b43d3d; }
.event-chips { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .25rem; }
.event-chips button { flex: 0 0 auto; display: grid; gap: .1rem; text-align: left; border-color: #e5c4c4; background: white; }
.event-chips button strong, .event-chips button span { display: block; }
.event-chips button span { color: var(--muted); font-size: .7rem; }
.event-chips button.active { color: white; background: #b43d3d; border-color: #b43d3d; }
.event-chips button.active span { color: #ffeaea; }
.threshold-panel { border: 1px solid var(--line); border-radius: 15px; padding: 1rem; background: #fbfcfa; align-self: start; position: sticky; top: 170px; max-height: calc(100vh - 190px); overflow: auto; }
.threshold-panel > p { color: var(--muted); font-size: .78rem; }
.threshold-heading { display: flex; justify-content: space-between; gap: .7rem; align-items: flex-start; }
.threshold-heading h3 { margin: 0; }
.threshold-list { display: grid; gap: .65rem; margin: .8rem 0; }
.threshold-control { padding: .8rem; border: 1px solid var(--line); border-radius: 11px; background: white; }
.threshold-control-head { display: flex; justify-content: space-between; gap: .6rem; margin-bottom: .55rem; }
.threshold-control-head small { color: var(--muted); }
.threshold-control-fields { display: grid; grid-template-columns: 1fr 72px; gap: .55rem; align-items: center; }
.threshold-control-fields input[type="range"] { padding: 0; }
.threshold-control-fields input[type="number"] { padding: .45rem; }
.button-stack { display: grid; gap: .5rem; margin-top: 1rem; }
.calibration-save-panel { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(280px, 1.2fr) minmax(190px, .65fr); align-items: end; gap: 1rem; margin-top: 1rem; padding: 1.15rem 1.25rem; border: 1px solid #bad3c6; border-radius: 16px; background: var(--green-soft); }
.calibration-save-panel h3 { margin: 0; }
.calibration-save-panel p { margin: .35rem 0 0; font-size: .78rem; }
.calibration-save-panel .button-stack { margin: 0; }
.calibration-save-panel .status { grid-column: 1 / -1; margin: 0; min-height: 0; }
.calibration-secondary { margin-top: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfa; }
.calibration-secondary > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; cursor: pointer; list-style-position: inside; }
.calibration-secondary > summary span:first-child { flex: 1; }
.calibration-secondary > summary small, .calibration-secondary > summary strong { display: block; }
.calibration-secondary > summary small { margin-bottom: .15rem; color: var(--green); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.calibration-secondary-body { padding: 0 1.15rem 1.15rem; border-top: 1px solid var(--line); }
.calibration-secondary-body > .section-title { margin-top: 1rem; }
.diagnostic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: .55rem; }
.diagnostic { padding: .65rem; border-radius: 9px; background: #f2f5f3; }
.diagnostic span, .diagnostic strong { display: block; }
.diagnostic span { color: var(--muted); font-size: .7rem; }

.final-run-layout { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr); gap: 1rem; }
.run-card { margin: 0; max-width: none; }
.cancel-run { margin-top: 1rem; }
.readiness-list { display: grid; gap: .55rem; text-align: left; margin: 1.2rem 0; }
.readiness-item { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .8rem; border-radius: 9px; background: white; }
.readiness-item strong.good { color: var(--green); }
.readiness-item strong.warn { color: var(--orange); }
.result-recommendation { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr); align-items: stretch; gap: 1.2rem; margin: .75rem 0 1rem; padding: 1.45rem; border: 0; border-radius: 18px; color: white; background: linear-gradient(135deg, #17231f, #244a3d); box-shadow: 0 16px 35px rgba(23, 35, 31, .14); }
/* Ohne globale Entscheidung traegt die Karte nur noch die Entscheidung selbst
   — die drei Zahlen daneben standen direkt darunter als Kennzahlenkarten. */
.result-recommendation.solo { grid-template-columns: 1fr; }
.recommendation-copy { align-self: center; }
.recommendation-copy .decision-basis { margin-top: .8rem; }
.recommendation-copy .eyebrow { color: #88d2b4; }
.recommendation-copy h3 { margin: 0 0 .7rem; color: #c5d1cc; font-size: .86rem; font-weight: 650; }
.recommendation-copy > strong { display: block; max-width: 30rem; overflow-wrap: anywhere; font-size: clamp(1.35rem, 2.6vw, 2.15rem); line-height: 1.05; letter-spacing: -.035em; }
.recommendation-copy > strong ~ p { margin: .6rem 0 0; color: #b9c9c2; font-size: .78rem; }
.decision-summary { display: grid; align-content: space-between; gap: 1.1rem; padding: .9rem; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.055); }
.decision-basis { color: #c5d1cc; font-size: .76rem; }
.recommendation-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.recommendation-facts span { padding: .7rem; border-left: 1px solid rgba(255,255,255,.14); }
.recommendation-facts span:first-child { border-left: 0; }
.recommendation-facts strong, .recommendation-facts small { display: block; }
.recommendation-facts strong { font-size: 1.35rem; }
.recommendation-facts small { margin-top: .2rem; color: #aebeb7; font-size: .68rem; line-height: 1.25; }

.app-release { border-color: #bad3c6; background: #f8fbf9; }
.app-release .release-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .55rem; margin-bottom: .9rem; }
.app-release .readiness-item { border: 1px solid rgba(23,107,77,.16); }
.app-release .release-confirm { max-width: 42rem; }
.inline-check { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; font-weight: 650; }

.report-note { display: flex; align-items: center; gap: .55rem; margin: 0 0 .8rem; color: var(--muted); font-size: .76rem; }
.report-note.warning, .note-warning { color: var(--red); font-weight: 600; }
.note-warning { margin: 0 0 1rem; font-size: .82rem; line-height: 1.5; }
.report-section { margin-top: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.report-section .section-title { margin-bottom: 1.1rem; }
.section-hint { color: var(--muted); font-size: .7rem; }
.metric-card { position: relative; overflow: hidden; }
.metric-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #b8c5bf; }
.metric-card.positive::before { background: var(--green); }
.metric-card.negative::before { background: var(--orange); }
.score-track { height: 6px; overflow: hidden; border-radius: 99px; background: #e4ebe7; }
.score-track i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.empty-chart { display: grid; justify-items: center; gap: .25rem; padding: 2.5rem 1rem; border: 1px dashed #cfd9d3; border-radius: 12px; text-align: center; }
.empty-chart strong { font-size: .86rem; }
.empty-chart span { color: var(--muted); font-size: .72rem; }

.condition-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: .8rem; }
.condition-chart { padding: .9rem; border-radius: 12px; background: #f7f9f7; }
.condition-chart header { margin-bottom: .75rem; }
.condition-chart header strong, .condition-chart header small { display: block; }
.condition-chart header small { margin-top: .15rem; color: var(--muted); font-size: .65rem; }
.condition-bar-row { display: grid; grid-template-columns: minmax(85px, .7fr) minmax(100px, 1.4fr) 32px 32px; gap: .5rem; align-items: center; margin-top: .5rem; font-size: .7rem; }
.condition-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e2e8e4; }
.condition-track i { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.condition-bar-row small { color: var(--muted); }

.report-details { padding: 0; overflow: hidden; }
.report-details > summary { padding: 1rem 1.2rem; cursor: pointer; }
.report-details > summary span, .report-details > summary strong, .report-details > summary small { display: block; }
.report-details > summary small { margin-top: .2rem; color: var(--muted); font-size: .7rem; font-weight: 400; }
.report-details[open] > summary { border-bottom: 1px solid var(--line); }
.report-details > .table-wrap, .report-details > .technical-grid { margin: 0 1.2rem 1.2rem; }
.technical-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; padding: 1rem 0 0; }
.technical-grid div { min-width: 0; padding: .75rem; border-radius: 10px; background: #f5f7f5; }
.technical-grid dt { color: var(--muted); font-size: .65rem; }
.technical-grid dd { margin: .25rem 0 0; overflow-wrap: anywhere; font-size: .78rem; font-weight: 700; }
.report-details > .download-row { margin: 0 1.2rem 1.2rem; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.download-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.download-row a { display: inline-flex; text-decoration: none; color: var(--blue); border: 1px solid #cbd8e5; border-radius: 9px; padding: .55rem .75rem; font-size: .78rem; font-weight: 700; }
.step-actions { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

dialog { width: min(720px, calc(100vw - 2rem)); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 30px 100px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(18,27,23,.48); backdrop-filter: blur(4px); }
.dialog-shell { padding: 1.4rem; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; }
.dialog-head h2 { margin: 0; }
.dialog-head button { border: 0; font-size: 1.4rem; padding: .3rem; }
.check-list, .model-list { display: grid; gap: .55rem; margin: .8rem 0 1.2rem; }
.check-item, .model-item { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; }
.check-item small, .model-item small { display: block; color: var(--muted); }

@media (max-width: 980px) {
  .stepper { overflow-x: auto; grid-template-columns: repeat(6, minmax(130px, 1fr)); }
  .upload-layout, .annotation-layout, .calibration-layout, .final-run-layout { grid-template-columns: 1fr; }
  .threshold-panel { position: static; max-height: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .result-recommendation { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .topbar, .studio { padding-left: 1rem; padding-right: 1rem; }
  .workspace-label { display: none; }
  .exercise-screen { padding: 3.5rem 1rem; }
  .exercise-context { grid-template-columns: 1fr auto; }
  .exercise-context > div:nth-child(2) { grid-column: 1 / 3; grid-row: 1; }
  .exercise-context .back-button { grid-row: 2; }
  .page-heading { display: block; }
  .select-control { display: block; margin-top: 1rem; min-width: 0; }
  .form-grid, .metric-grid { grid-template-columns: 1fr; }
  .upload-item { grid-template-columns: 1fr 34px; }
  .upload-item input { grid-column: 1 / 2; }
  .result-recommendation { padding: 1.15rem; }
  .recommendation-facts { grid-template-columns: 1fr; }
  .recommendation-facts span { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .recommendation-facts span:first-child { border-top: 0; }
  .section-hint { display: none; }
}

/* Wahrheitsstreifen: was die Annotation zu der gerade offenen Aufnahme sagt.
   Steht direkt über den Reglern, weil genau dort entschieden wird. */
.truth-strip { margin: .2rem 0 .9rem; padding: .85rem; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; }
.truth-strip p { margin: .45rem 0 0; font-size: .82rem; }
.truth-counts { display: flex; align-items: center; gap: .7rem; }
.truth-counts div { text-align: center; }
.truth-counts strong { display: block; font-size: 1.5rem; line-height: 1.1; }
.truth-counts small { color: var(--muted); font-size: .7rem; }
.truth-counts span:not(.badge) { color: var(--muted); }
.truth-counts .badge { margin-left: auto; }
.truth-checks { list-style: none; margin: .7rem 0 0; padding: .7rem 0 0; border-top: 1px solid var(--line); }
.truth-checks li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .18rem 0; font-size: .82rem; }

/* Schwellensuche über alle Kalibrierungsaufnahmen. */
.tuning-panel { margin-top: 1.6rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.tuning-actions { display: grid; gap: .8rem; margin-bottom: 1rem; }
.sweep-form { display: grid; grid-template-columns: minmax(12rem, 2fr) repeat(3, minmax(5rem, 1fr)) auto; gap: .7rem; align-items: end; }
.sweep-form button { align-self: end; }
.sweep-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.sweep-head strong { display: block; font-size: 1.35rem; }
.sweep-head small { color: var(--muted); }
#sweep-chart { width: 100%; margin: .6rem 0 1.2rem; }
#sweep-result tr.best { background: var(--green-soft); }
#sweep-result tr.best strong { color: var(--green); }
#sweep-result td.good { color: var(--green); font-weight: 700; }
#sweep-result td.warn { color: var(--orange); font-weight: 700; }
@media (max-width: 780px) { .sweep-form { grid-template-columns: 1fr 1fr; } }

@media (max-width: 900px) {
  .calibration-save-panel { grid-template-columns: 1fr; }
  .calibration-save-panel .status { grid-column: 1; }
  .result-recommendation { grid-template-columns: 1fr; }
}

@media (max-width: 620px) { .recommendation-facts { grid-template-columns: 1fr; } }

/* Fehlerprüfungen anlegen und ändern (Schritt 4).
   Eine Zeile je Prüfung; gemessene Zahlen stehen unter der Zeile, zu der sie
   gehören, statt in einer eigenen Tabelle — sonst muss man beim Ändern einer
   Schwelle zwischen zwei Listen hin- und herschauen. */
.authoring-list { display: grid; gap: .8rem; margin-bottom: 1rem; }
.authoring-row { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); }
.authoring-row.is-retired { opacity: .55; }
.authoring-row header { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.authoring-row header strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; }
.authoring-row label { display: grid; gap: .25rem; margin-bottom: .5rem; }
.authoring-row label span { font-size: .78rem; color: var(--muted); }
.authoring-meta { display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(5rem, 1fr) 2fr; gap: .7rem; align-items: end; }
.authoring-condition { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: var(--muted); padding-bottom: .5rem; }
.authoring-measure { margin: .6rem 0 0; padding-top: .5rem; border-top: 1px solid var(--line); font-size: .82rem; }
.authoring-measure.muted { color: var(--muted); }
.authoring-row-actions { margin-top: .6rem; }
.authoring-row-actions button { font-size: .8rem; padding: .35rem .8rem; }
.pill { padding: .1rem .5rem; border-radius: 999px; font-size: .7rem; background: var(--canvas); border: 1px solid var(--line); color: var(--muted); }
.pill-new { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.pill-edit { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
.pill-off { background: #f4f4f4; }
/* Warnfarbe, nicht Infofarbe: Ohne Aufnahme sagt die App gar nichts, und das
   ist ein Loch im gemessenen Kanal „gesprochen" (CLAUDE.md §8). */
.pill-voice { background: #fff2df; border-color: var(--orange); color: var(--orange); }

/* Deep-Link "Felddaten dieser Übung" neben der Videos-annotiert-Zeile in der
   Kopfzeile der aktiven Übung (AP-C, E-1: übungsbezogen als Voreinstellung). */
.exercise-context-meta { display: grid; gap: .3rem; justify-items: end; text-align: right; }
.field-link { border: 0; background: transparent; padding: 0; color: var(--blue); font-size: .78rem; font-weight: 700; }
.field-link:hover { text-decoration: underline; transform: none; }

/* Felddaten-Ansicht — eigener Top-Level-Screen, gleichrangig zu
   #exercise-screen und #studio, kein siebter Stepper-Schritt (siehe
   field-view.js Kopfkommentar). Person links, ihre Uebungen rechts; die
   Winkelkurve ist das Hauptelement und bekommt deshalb als einziges hier
   eigene Bausteine, alles Uebrige nutzt .metric-grid/.table-wrap/.badge. */
.field-screen { max-width: 1440px; margin: 0 auto; padding: 0 2rem 4rem; }

/* Modellwahl ueber alle Uebungen — eigener Screen, gleiche Bauform wie die
   Felddaten. Die Tabelle ist breit (eine Spalte je Uebung), deshalb dieselbe
   Maximalbreite und `overflow-x` in `.table-wrap`. */
.model-screen { max-width: 1440px; margin: 0 auto; padding: 0 2rem 4rem; }
.model-screen .overview-table td:first-child { width: 2.4rem; text-align: center; }
.model-screen .overview-table input[type="radio"] { width: 1.05rem; height: 1.05rem; accent-color: var(--green); }
/* Der fuehrende Kandidat bleibt erkennbar, auch wenn eine andere Zeile
   gewaehlt ist: Genau die Differenz ist die Entscheidung. */
.overview-table tbody tr.leader td:nth-child(2) strong { color: var(--green); }
.model-reason { display: block; margin: .9rem 0; }
.model-reason span { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .72rem; }
.model-reason textarea { width: 100%; }
.model-history { margin-top: 1.4rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.person-admin-screen { max-width: 1280px; margin: 0 auto; padding: 0 2rem 4rem; }
.person-admin-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.person-admin-card { padding: 1.35rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.person-admin-card h2 { margin: 0 0 .25rem; }
.person-admin-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin: 1.2rem 0; }
.person-admin-meta div { padding: .75rem; border-radius: 10px; background: var(--canvas); }
.person-admin-meta span, .person-admin-meta strong { display: block; }
.person-admin-meta span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.person-admin-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* Oberflaechen-Umschalter. Vier Knoepfe nebeneinander, der aktive gefuellt --
   beim Durchgehen der Entwuerfe ist "wo stehe ich gerade" die Frage, die am
   haeufigsten gestellt wird. */
.person-variant { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; margin: 1rem 0; }
.person-variant legend { padding: 0 .4rem; font-weight: 600; }
.person-variant-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.person-variant-btn { flex: 1 1 auto; }
.person-variant-btn.is-active { background: var(--green); color: #fff; border-color: var(--green); }
.person-admin-actions .danger-link { color: var(--red); margin-left: auto; }
.admin-audit { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.admin-audit summary { cursor: pointer; font-weight: 700; }
.admin-audit[open] summary { margin-bottom: 1rem; }
.deletion-preview { padding: .9rem; border-left: 3px solid var(--red); background: #fff8f6; font-size: .85rem; }
.deletion-preview ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.field-topline { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 1rem; padding: 1.75rem 0 1.2rem; }
.field-topline h1 { margin: 0; font-size: 1.55rem; letter-spacing: -.025em; }
.field-topline-meta { display: flex; align-items: center; gap: .9rem; font-size: .8rem; }
.field-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.6rem; align-items: start; }

.field-people { position: sticky; top: 88px; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.field-people input { margin-bottom: .7rem; padding: .5rem .6rem; font-size: .82rem; }
.field-person-list { display: grid; gap: .3rem; max-height: 62vh; overflow: auto; }
.field-person { display: grid; gap: .1rem; justify-items: start; text-align: left; border: 1px solid transparent; background: transparent; padding: .55rem .6rem; }
.field-person:hover:not(:disabled) { transform: none; background: var(--canvas); border-color: var(--line); }
.field-person strong { font-size: .88rem; }
.field-person small { font-size: .7rem; color: #55655d; font-weight: 500; }
.field-person.active { background: var(--ink); border-color: var(--ink); color: white; }
.field-person.active small, .field-person.active small.muted { color: #b9c5bf; }
/* Die Hover-Regel oben ist spezifischer als `.active` und ueberschrieb deshalb
   deren dunklen Hintergrund — die weisse Schrift blieb aber stehen, und die
   gewaehlte Person wurde beim Darueberfahren unlesbar. Der ausgewaehlte
   Eintrag bleibt dunkel; die Rueckmeldung gibt ein leicht aufgehellter Ton,
   nicht ein Wechsel ins Helle. */
.field-person.active:hover:not(:disabled) { background: #24352f; border-color: #24352f; color: white; }
.field-person-empty { padding: .4rem .2rem; font-size: .82rem; }

/* Kurs-Code: Schranke vor der App und Riegel vor der Registrierung.
   Feld und Knopf stehen nebeneinander — der Knopf gehoert zur Eingabe und
   nicht darunter, wo er wie eine eigene Handlung aussieht. Unter 640 px
   bricht er um, weil ein 120-px-Feld schlechter ist als zwei Zeilen. */
.admin-access-code { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.admin-access-code h2 { margin: 0 0 .3rem; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.admin-access-code p { margin: .3rem 0; font-size: .82rem; }
.admin-access-code-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .7rem; }
.admin-access-code-row input { flex: 1 1 16rem; min-width: 0; }
.admin-access-code-row button { flex: 0 0 auto; }
@media (max-width: 640px) { .admin-access-code-row input { flex-basis: 100%; } }

/* Ob ueberhaupt ein Code gesetzt ist, ist die erste Frage vor diesem Feld —
   sie steht deshalb als Marke in der Ueberschrift und nicht nur als Satz
   darunter. Farbe traegt die Aussage nie allein: Das Wort steht daneben. */
.admin-access-code .badge { text-transform: none; letter-spacing: 0; }
.admin-access-code-meta { font-size: .78rem; }

.field-detail { min-width: 0; }
.field-person-head h2 { margin: 0 0 .25rem; font-size: 1.7rem; letter-spacing: -.03em; }
.field-person-head p { margin: 0; font-size: .82rem; }
.field-exercise-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.1rem 0 1.4rem; }
.field-exercise-tabs button { display: grid; gap: .1rem; justify-items: start; text-align: left; padding: .5rem .8rem; font-size: .83rem; }
.field-exercise-tabs button small { color: var(--muted); font-size: .68rem; font-weight: 500; }
.field-exercise-tabs button.active { background: var(--ink); border-color: var(--ink); color: white; }
.field-exercise-tabs button.active small { color: #bfcac5; }
.field-section { margin-bottom: 1.8rem; }
.field-note { margin: .6rem 0 1.2rem; font-size: .8rem; color: #45564e; }
.field-note.warn { color: var(--orange); font-weight: 600; }

/* Winkelverlauf. Ein Balken je Wiederholung (min..max), Punkt beim Mittelwert,
   Schwellen als Linie mit getoenter Verbotsseite. */
.joint-card { margin-bottom: 1.4rem; padding: 1.1rem 1.2rem 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.joint-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.joint-head h4 { margin: 0; font-size: 1rem; text-transform: capitalize; }
.joint-head span { font-size: .78rem; }
.joint-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: .5rem 0 1rem; }
.joint-stats div { padding: .55rem .7rem; border-radius: 10px; background: var(--canvas); }
.joint-stats span { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.joint-stats strong { font-size: 1.02rem; }

.angle-chart { display: block; width: 100%; height: auto; margin: .7rem 0 .2rem; overflow: visible; }
.chart-plot { fill: #fbfcfa; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 11px; }
.chart-forbidden { fill: rgba(180, 61, 61, .05); }
.chart-threshold { stroke: var(--orange); stroke-width: 1.6; stroke-dasharray: 6 4; }
.chart-threshold-spread { fill: rgba(198, 109, 45, .1); }
.chart-threshold-label { fill: var(--orange); font-size: 11px; font-weight: 700; }
.chart-threshold-sub { fill: var(--muted); font-size: 10px; font-weight: 500; }
.chart-session { stroke: #b9c5bf; stroke-width: 1; stroke-dasharray: 3 3; }
.chart-session-label { fill: var(--muted); font-size: 10px; }
.chart-bar { fill: var(--green); opacity: .8; }
.chart-bar.partial { fill: var(--orange); }
.chart-bar.short { fill: var(--red); }
.chart-bar.neutral { fill: #97a8a0; }
.chart-mean { fill: var(--ink); }
.chart-cue { fill: var(--blue); }
.chart-legend { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .72rem; }
.chart-legend .key { width: 9px; height: 9px; border-radius: 2px; margin-left: .5rem; }
.chart-legend .key.bar-good { background: var(--green); }
.chart-legend .key.bar-partial { background: var(--orange); }
.chart-legend .key.bar-short { background: var(--red); }
.chart-legend .key.mean { background: var(--ink); border-radius: 50%; width: 7px; height: 7px; }
.chart-legend .key.cue { background: var(--blue); clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; }

.badge.warn { background: #fff2df; color: var(--orange); }
tr.row-short td { background: rgba(180, 61, 61, .04); }
.value-short { color: var(--red); font-weight: 700; }
.value-good { color: var(--green); font-weight: 700; }

@media (max-width: 1080px) {
  .field-layout { grid-template-columns: 1fr; }
  .person-admin-layout { grid-template-columns: 1fr; }
  .field-people { position: static; }
  .field-person-list { grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); max-height: none; overflow-x: auto; }
  .joint-stats { grid-template-columns: repeat(2, 1fr); }
  .person-admin-meta { grid-template-columns: repeat(2, 1fr); }
}

/* Rechenaufwand, Kandidatentabelle und Modelluebersicht ueber alle Uebungen.
   Alle drei sind Tabellen und keine Karten: Die Frage ist hier "welche Zahl
   ist groesser", und dafuer muessen die Zahlen untereinander stehen. */
.compute-table, .candidate-table, .overview-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.compute-table th, .candidate-table th, .overview-table th {
  padding: .5rem .55rem; text-align: left; color: var(--muted);
  font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.compute-table td, .candidate-table td, .overview-table td {
  padding: .55rem; border-bottom: 1px solid #eef2f0; vertical-align: middle;
}
.compute-table td small, .candidate-table td small, .overview-table td small {
  display: block; color: var(--muted); font-size: .64rem;
}
.compute-table tr.selected, .candidate-table tr.selected, .overview-table tbody tr.selected {
  background: #f6faf8; box-shadow: inset 3px 0 0 var(--green);
}
.candidate-table + .table-wrap, #report-candidate-table { margin-top: 1rem; }
.compute-bar { position: relative; display: flex; align-items: center; gap: .5rem; }
.compute-bar i { display: block; height: 8px; min-width: 3px; border-radius: 99px; background: #8fa9a0; }
.compute-bar span { color: var(--ink); font-variant-numeric: tabular-nums; }
.compute-scope { margin: .85rem 0 0; font-size: .72rem; line-height: 1.5; }

.overview-verdict {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.1rem; margin-bottom: 1.1rem;
  border: 1px solid #cbded4; border-radius: 14px; background: var(--green-soft);
}
.overview-verdict strong { display: block; font-size: 1.35rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.overview-verdict small { display: block; margin-top: .2rem; color: var(--muted); font-size: .7rem; }
.overview-verdict-facts { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.overview-verdict-facts strong { font-size: 1.15rem; }
.overview-verdict-facts small { font-size: .66rem; }
.overview-table th.active-exercise { color: var(--green); }
.overview-table .score-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.overview-table .score-cell .score-track { width: 3.4rem; margin-bottom: .25rem; }
.overview-table tr.overview-note-row td { border-bottom: 1px solid #eef2f0; padding-top: 0; }
.overview-basis { display: grid; gap: .5rem; margin: 1rem 0 0; font-size: .74rem; }
.overview-basis dt { color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.overview-basis dd { margin: .18rem 0 0; }
