/* The document, its audio and the review notes remain independent columns on large screens. */
.case-record-actions {margin:.7rem 0 1rem}
.case-record-actions button {display:inline-flex;align-items:center;gap:.5rem}
.case-record-actions button[hidden] {display:none}
.case-record-actions svg {width:1.1em;height:1.1em}
.workspace .format-tools #rv-voice-input {margin-inline-start:auto;display:grid;place-items:center;color:var(--accent)}
.workspace .format-tools #rv-voice-input[aria-pressed=true] {background:#8b2927;color:white;border-color:#8b2927}
.voice-partial {text-decoration:underline dotted #6e8090;text-underline-offset:.2em;white-space:pre-wrap}
.voice-replaced {display:none}
.workspace dialog#record-tools {margin:auto;width:min(48rem,calc(100% - 1.5rem));max-height:90dvh;padding:0;border:1px solid var(--line);border-radius:12px;color:var(--ink);box-shadow:0 18px 55px #172a4033;overscroll-behavior:contain}
.workspace dialog#record-tools::backdrop {background:rgba(18,29,44,.55)}
.record-dialog-head {position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:space-between;gap:1rem;background:white;border-bottom:1px solid var(--line);padding:.8rem clamp(12px,3vw,24px)}
.record-dialog-head h2 {font-size:clamp(1.1rem,3vw,1.4rem)}
dialog#record-tools #capture {padding:clamp(10px,3vw,24px)}
body:has(#record-tools:modal) {overflow:hidden}
.workspace {
    --ink:#24282d; --muted:#56616d; --line:#d6dade; --ground:#f5f6f8;
    --accent:#175ca4; --soft:#eaf2fb; --action:var(--accent); --action-light:white;
    --fold:#343d47; --fold-light:#f5f6f8; --radius:8px;
    background:var(--ground);color:var(--ink);
}
.workspace ::selection {background:#c4def8;color:#122942}
.workspace button:not(.primary):not(.quiet):not(.audio-icon):where(.rv-toolbar *, .proof-panel *, .read-controls *, .letter-form *, .take-list *),
.workspace .rv-links a {color:var(--action);border-color:var(--line);background:var(--action-light)}
.workspace .rv-links a {display:inline-flex;align-items:center;text-decoration:none;font-size:.84rem;border:1px solid var(--line);border-radius:7px;padding:.42rem .65rem}
.workspace .primary {background:var(--action);color:#fff;border-color:var(--action)}
.workspace .primary:hover,.workspace .primary:focus-visible {background:#104c89}
.workspace button:focus-visible,.workspace select:focus-visible,.workspace summary:focus-visible {outline-color:var(--accent)}
.workspace main:has(#review,.practice-layout,.settings-workbench,.letter-form),
.workspace:has(#review,.practice-layout,.settings-workbench,.letter-form) .bar {
    width:100%;max-width:none;padding-inline:clamp(18px,2.35vw,84px);
}
.workspace main:has(#review,.practice-layout,.settings-workbench,.letter-form){padding-top:clamp(1.4rem,2.3vw,2.75rem)}
.workspace .back {color:var(--fold)}
.rv-body,.practice-layout {gap:clamp(12px,1.15vw,30px)}
.rv-audio-column {display:contents}
.rv-audio-column>.listening,.practice-layout>.listening {grid-area:audio}
#rv-media {grid-area:media}#record-tools{grid-area:recorder;min-width:0;margin:0}
#rv-text,.practice-layout>.paper {grid-area:editor}
.review-checks {grid-area:checks;min-width:0}
#rv-manage {grid-area:manage}#rv-no-text {grid-area:empty}
.rv-body,.practice-layout {grid-template-columns:minmax(0,1fr);grid-template-areas:"audio" "editor" "checks" "media" "recorder" "empty" "manage"}
.rv-body:has(#rv-text[hidden]) {grid-template-areas:"audio" "media" "recorder" "empty" "manage"}
.rv-body:has(#rv-text[hidden]) #rv-empty {grid-column:1/-1}
.rv-section,.paper,#rv-manage,#record-tools {padding:clamp(16px,1.35vw,30px)}
#rv-media h2,.review-checks h2,.editor-head h2,.practice-layout>.paper h2 {font-size:clamp(1.22rem,1.1vw,1.6rem);color:var(--ink)}
#rv-media,#record-tools {background:#fff}
#review details:not(#rv-manage),.practice-layout details {border-top:0;margin:.65rem 0 0;padding:0}
#review details>summary,.practice-layout details>summary,.setting-disclosure>summary,#rv-manage>summary {display:flex;align-items:center;justify-content:space-between;gap:.65rem;list-style:none;background:var(--fold-light);color:var(--fold);font-weight:var(--weight-label);border-radius:7px;padding:.65rem .75rem}
#review details>summary::-webkit-details-marker,.practice-layout details>summary::-webkit-details-marker,.setting-disclosure>summary::-webkit-details-marker{display:none}
#review details>summary::after,.practice-layout details>summary::after,.setting-disclosure>summary::after {content:"";width:.46rem;height:.46rem;border:solid currentColor;border-width:0 1.8px 1.8px 0;transform:rotate(45deg);margin:-.18rem .25rem 0 auto;flex:none}
#review details[open]>summary::after,.practice-layout details[open]>summary::after,.setting-disclosure[open]>summary::after {transform:rotate(225deg);margin-top:.25rem}
#review .mic-choice>summary {background:var(--studio-key);color:var(--studio-ink)}
.review-checks {background:white;border-color:var(--line)}
#review .review-checks details>summary,.practice-layout .review-checks details>summary {color:var(--ink);background:var(--fold-light)}
.review-checks .proof-status {color:var(--ink);font-weight:var(--weight-heading)}
.proof-results .proof-excerpt {color:#2e3944}.proof-excerpt strong {background:#dceafa;color:#1b354d;border-radius:2px}
.proof-panel>p,.review-checks>details>p {font-size:.91rem}
.rv-caption:empty {display:none}
#rv-editor,#practice-text {background:white;color:#192a36;min-height:clamp(18rem,38vh,36rem);padding:clamp(22px,2.8vw,58px) max(1.35rem,calc((100% - 72ch)/2));}
.dictation-field {background:white;border:1px solid var(--line);border-radius:5px}
.dictation-field:focus-within {border-color:var(--accent)}
.format-tools {gap:.38rem .7rem;padding:.55rem .65rem;background:#f5f6f8;border-bottom:1px solid var(--line)}
.editor-head {justify-content:flex-start;flex-wrap:wrap;gap:.45rem}
.editor-head h2 {margin-right:auto!important}.editor-head .copy-text {border-color:var(--line);background:var(--action-light);color:var(--action);min-height:34px;font-size:.83rem;padding:.4rem .65rem}
.tool-group {display:flex;align-items:flex-end;flex-wrap:wrap;gap:.25rem;max-width:100%}
.tool-group label {display:grid;gap:.2rem;line-height:1.15;font-size:.69rem;color:#3f5361;font-weight:var(--weight-label)}
.format-tools select {border:1px solid var(--line);border-radius:5px;background:white;color:var(--ink);min-height:2rem;font-size:.82rem;padding:.25rem .35rem}
.format-tools button {color:var(--ink);border:1px solid transparent;border-radius:5px;padding:.3rem .45rem;min-height:2rem;min-width:2rem}
.format-tools button:hover,.format-tools button[aria-pressed=true] {background:var(--soft);border-color:#a0bfdc;color:var(--accent)}
.format-tools button:disabled{opacity:.43}
.format-tools .fmt-strike{text-decoration:line-through}.fmt-highlight svg {color:inherit}
.format-tools .copy-text {background:white;color:var(--action);border-color:var(--line);font-size:.82rem}
.tool-group:has(.fmt-bold){margin-top:auto}.tool-group:has([aria-label="Rückgängig"]){margin-top:auto}
.dictation-field .ProseMirror h1,.dictation-field .ProseMirror h2 {font-family:inherit;font-weight:700;line-height:1.22;color:#152832;margin:.72em 0 .3em;letter-spacing:-.025em}
.dictation-field .ProseMirror h1 {font-size:1.65em}.dictation-field .ProseMirror h2 {font-size:1.3em}
.ProseMirror [data-align=center]{text-align:center}.ProseMirror [data-align=right]{text-align:right}.ProseMirror [data-align=justify]{text-align:justify}
.ProseMirror {counter-reset:dictation-item}
.ProseMirror>[data-kind]:not([data-kind=number]){counter-set:dictation-item 0}
.ProseMirror>[data-kind=number],.ProseMirror>[data-kind=bullet]{padding-inline-start:1.7em;position:relative}
.ProseMirror>[data-kind=number]{counter-increment:dictation-item}
.ProseMirror>[data-kind=number]::before,.ProseMirror>[data-kind=bullet]::before{position:absolute;left:0;min-width:1.25em;text-align:right;content:counter(dictation-item) "."}
.ProseMirror>[data-kind=bullet]::before {content:"•"}
.ProseMirror mark:not(.spoken-word){background:#fff094;color:inherit}
.ink-size-10{font-size:10pt}.ink-size-11{font-size:11pt}.ink-size-12{font-size:12pt}.ink-size-14{font-size:14pt}.ink-size-16{font-size:16pt}.ink-size-18{font-size:18pt}.ink-size-24{font-size:24pt}
.ink-color-18558A{color:#18558a}.ink-color-136654{color:#136654}.ink-color-9D3535{color:#9d3535}.ink-color-65488D{color:#65488d}
.letter-form{max-width:none}.letter-columns,.letter-reference {display:grid;gap:1rem;align-items:start}
@media(min-width:900px) {
    .rv-body:has(#rv-text:not([hidden])),.practice-layout {grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);grid-template-areas:"audio checks" "editor checks" "media recorder" "manage manage"}
    .rv-body:has(#rv-text[hidden]) {grid-template-columns:1fr 1fr;grid-template-areas:"audio media" "recorder media" "empty empty" "manage manage"}
    .review-checks .proof-results:not(:empty) {max-height:52vh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:.45rem}
    .letter-columns {grid-template-columns:1fr 1.25fr;gap:2rem}.letter-columns textarea[name=Recipient]{min-height:10.8rem}
    .listening {position:relative;top:auto}
}
@media(min-width:1220px) {
    .rv-body:has(#rv-text:not([hidden])),.practice-layout {
        grid-template-columns:minmax(242px,.77fr) minmax(480px,1.86fr) minmax(248px,.85fr);
        grid-template-areas:"audio editor checks" "manage manage manage";align-items:start;
    }
    .rv-body:has(#rv-text:not([hidden])) .rv-audio-column{grid-area:audio;display:grid;gap:1rem;min-width:0}
    .rv-body:has(#rv-text:not([hidden])) .rv-audio-column>:is(.listening,#rv-media,#record-tools) {grid-area:auto}
}
@media(min-width:900px) {
    #review.focused .rv-body:has(#rv-text:not([hidden])) {grid-template-columns:minmax(250px,.6fr) minmax(0,1.8fr);grid-template-areas:"audio editor"}
    #review.focused .rv-audio-column{display:block;grid-area:audio}
}
#review.focused :is(#rv-checks,#rv-media,#record-tools,#rv-manage){display:none}#review.focused #rv-editor{min-height:52vh}
.player-host{container-type:inline-size}
@container (max-width:600px){
    .audio-heading-title{gap:.35rem}.audio-heading-title .audio-state{display:none}.audio-heading h2{font-size:1rem}
    .audio-insignia{width:30px;height:30px}.audio-clock strong{font-size:1.25rem}
    .audio-transport{display:grid;grid-template-columns:1fr auto;gap:.45rem}.audio-main-controls,.audio-end-controls{gap:4px}
    .player-host .audio-play{min-width:40px;width:40px;padding:0}.audio-play span{display:none}
    .player-host .audio-icon{width:36px}.audio-end-controls{grid-row:1;grid-column:2}.audio-loop{grid-column:1/-1;justify-self:start}
    .audio-tools{grid-template-columns:minmax(0,1fr)}.audio-bookmarks{grid-column:1}
}
@media(max-width:899px){.review-checks{margin:0}.rv-audio-column>.listening{position:relative;top:auto}}

/* Document commands, editing ribbon and review pane share one neutral Office-style surface. */
.workspace .brandmark,.login-page .signin {background:#175ca4}
.workspace .brandmark {border-radius:7px}
.workspace .bar {min-height:56px}
.workspace .bar nav a[aria-current=page] {background:transparent;color:var(--accent);box-shadow:inset 0 -2px var(--accent);border-radius:0}
.workspace main:has(#review,.practice-layout,.settings-workbench){padding-top:1.15rem}
.workspace main:has(#review,.practice-layout,.settings-workbench) h1:not(:where(.ProseMirror h1)) {font-size:clamp(1.45rem,1.8vw,2.1rem);font-weight:var(--weight-title);letter-spacing:-.015em}
.workspace main:has(#review,.practice-layout) .ProseMirror h1{font-size:1.65em}
.workspace .back{margin:0 0 .35rem;color:var(--muted)}
.workspace .service-note,.workspace kbd {background:var(--fold-light);color:var(--muted)}
.workspace :is(button,select,a,input,summary,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.workspace :is(#review,.practice-layout) :is(.rv-section,.paper){padding:clamp(14px,1.15vw,24px)}
.workspace :is(#review,.practice-layout) h2:not(.ProseMirror h2){font-family:inherit;font-size:1.1rem;letter-spacing:-.015em}
.workspace :is(.rv-section,.paper) button:not(.audio-icon){min-height:32px;border-radius:4px;font-size:.85rem}
.workspace .rv-section :is(.rv-toolbar,.proof-actions) button:not(.primary){color:var(--ink);background:white;border-color:#c8ced4}
.workspace .rv-section button:not(.primary):not(:disabled):hover,.workspace .paper button:not(.primary):not(:disabled):hover {background:#eaf0f6;color:#163c67}
.workspace .primary:disabled {background:#e8eaed;border-color:#e0e3e6;color:#59616b;opacity:1}
.workspace .editor-head {margin-bottom:.65rem}
.workspace .editor-head h2,.workspace .review-checks>h2{margin:0}
.workspace #rv-focus {color:var(--muted);border:0;background:transparent}
.workspace .document-commands,.document-commands .read-controls,.copy-slot,.proof-decisions,.search-actions {
    display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .5rem
}
.document-commands {position:relative;padding:.35rem 0;margin-bottom:.35rem;border-top:1px solid var(--line)}
.workspace .document-commands :is(button,summary),.workspace #review .output-menu>summary {
    min-height:32px;padding:.3rem .45rem;color:var(--ink);background:transparent;border:0;font-weight:500;font-size:.84rem
}
.workspace .document-commands .read-controls {margin:0}
.workspace .document-commands .output-menu {margin:0 0 0 auto!important;padding:0}
.workspace #review .output-menu>summary::after {width:.35rem;height:.35rem}
.output-menu .rv-links {position:absolute;right:0;z-index:5;display:grid;min-width:13rem;padding:.32rem;border-radius:6px;box-shadow:0 4px 16px #26364b30;background:white;margin:0;gap:0}
.workspace .output-menu .rv-links a {border:0;color:var(--ink);font-weight:500}
.workspace .output-menu .rv-links a:hover {background:var(--fold-light)}
.workspace .format-tools {padding:.35rem;gap:.25rem;align-items:center}
.format-tools .tool-group {flex-wrap:nowrap;align-items:center;gap:1px;margin:0;padding-inline-end:.28rem;border-right:1px solid var(--line)}
.format-tools .tool-group:last-child {border:0;padding:0}
.format-tools .speech-tools {flex:1 0 auto}
.dictation-field {container-type:inline-size}
@container(max-width:620px){
    .workspace .format-tools select[aria-label=Absatzformat]{width:6.6rem}
    .workspace .format-tools{column-gap:.1rem}
    .workspace .format-tools .tool-group{padding-right:.12rem}
}
@container(max-width:305px){
    .workspace .format-tools select[aria-label=Absatzformat]{width:5.8rem}
    .workspace .format-tools .tool-group button{min-width:26px;width:28px}
}
.format-tools .tool-group>label {margin:0!important}
.format-tools .tool-group>label>span {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.workspace .format-tools select {min-height:30px;height:30px;font-size:.81rem;padding:.2rem .3rem;border-radius:4px}
.workspace .format-tools button {width:30px;min-width:30px;height:30px;min-height:30px;padding:.2rem;background:transparent}
.workspace .format-tools button[aria-pressed=true],.workspace .format-tools button[aria-expanded=true] {background:#dfebf8;border-color:#b2cbe5;color:#144d86}
.format-options,.document-search {background:#f8f9fa;border-bottom:1px solid var(--line);padding:.55rem .65rem;display:flex;flex-wrap:wrap;gap:.5rem;align-items:end}
.workspace :is(.format-options,.document-search) label{margin:0;font-size:.78rem;color:var(--muted);gap:.15rem}
.workspace .format-options select,.workspace .document-search input {font-size:.85rem;padding:.3rem .45rem;height:32px;border-radius:4px}
.compact-formats:not(:empty){display:flex;align-items:center;gap:.18rem;flex-wrap:wrap;flex-basis:100%}
.compact-formats .tool-group {align-items:center}
.compact-formats button {padding:.3rem;min-width:32px}
.compact-formats .fmt-strike {text-decoration:line-through}
.workspace .proof-results textarea {field-sizing:content;max-height:11rem}
.document-search input {width:12rem}
.document-search [role=status]{font-size:.8rem;color:var(--muted)}
.workspace .dictation-field .ProseMirror {line-height:1.65;color:var(--ink);font-family:inherit}
.review-jump {display:none}
@media(max-width:899px){.review-jump{display:inline-block;font-size:.82rem}}
.document-status {display:flex;align-items:center;justify-content:space-between;gap:.4rem .8rem;flex-wrap:wrap;padding-top:.6rem}
.document-status .passage-help,.document-status [role=status] {margin:0;color:var(--muted);font-size:.78rem}
.review-checks .proof-actions{gap:.35rem;margin:.75rem 0 .35rem}
.review-checks .proof-panel .proof-scope,.review-checks .proof-status {font-size:.79rem;line-height:1.4}
.review-checks .proof-scope {color:var(--muted)}
.review-checks .proof-status:not(:empty){margin:.9rem 0 .4rem}
.review-checks .proof-results {margin:0}
.review-checks .proof-results li{padding:.7rem 0 .9rem;display:flow-root;overflow-wrap:anywhere}
.review-checks .proof-results li>p {font-size:.88rem;line-height:1.45;margin:.3rem 0}
.workspace .review-checks .proof-results button.proof-excerpt {display:flex;width:100%;min-height:30px;align-items:baseline;justify-content:space-between;gap:.4rem;text-align:left;padding:.35rem .5rem;margin:0 0 .45rem;background:#f3f5f7;color:var(--ink);border:0;border-radius:4px;font-weight:400;line-height:1.4}
.proof-excerpt svg {align-self:center;width:.95rem;height:.95rem;color:var(--muted)}

.proof-excerpt strong {padding-inline:.12rem}
.proof-save {padding:.65rem 0;border-top:1px solid var(--line)}
.output-menu #rv-export-hint {padding:.4rem .6rem;font-size:.78rem}

#rv-marks button {padding:0;border:0;background:transparent;color:var(--accent);font-size:.8rem;min-height:26px}
.workspace .proof-results label {font-size:.77rem;gap:.2rem;margin:.5rem 0}
.workspace .proof-results textarea {padding:.35rem .55rem;min-height:2.3rem;height:2.5rem;resize:vertical;height:auto;border-radius:4px;color:var(--ink);font-size:.91rem}
.workspace .proof-results button {margin:0}
.workspace .proof-decisions button {padding:.32rem .7rem}
.workspace .proof-decisions .proof-accept:not(:disabled) {background:var(--accent);border-color:var(--accent);color:white}
.workspace .proof-decisions .proof-accept:not(:disabled):hover {background:#104b85;color:white}
#rv-marks-panel .save-first {display:none}
#rv-marks-panel.requires-save .save-first {display:block;margin:.4rem 0}
#rv-marks-panel #rv-note {width:100%}
#rv-marks-panel .rv-toolbar {gap:.35rem}
#rv-marks-panel .rv-toolbar button {font-size:.81rem}
#rv-mark-help:empty {display:none}
.workspace #review .rv-section details>summary,.workspace .practice-layout details>summary {border-radius:4px}
.workspace .copy-feedback {color:var(--muted)}
.workspace .proof-results {scrollbar-color:#a7b3bf transparent}
@media (min-width:900px) {
    .review-checks .proof-results:not(:empty){max-height:60vh}
}
@media (max-width:899px) {
    .document-status .passage-help {display:none}
    .workspace .format-tools button {width:34px;height:38px}
    .workspace .format-tools select {min-height:36px}
    .workspace .format-tools .tool-group {padding-right:.2rem}
}


