.flh-reader{--flh-ink:#163b55;--flh-accent:#096a82}.flh-note{color:#07516b!important;background:#dff3fa!important;border-bottom:2px solid #087490;border-radius:3px;padding:0 2px;cursor:pointer;box-decoration-break:clone;-webkit-box-decoration-break:clone}.flh-note:hover,.flh-note:focus-visible{background:#bce8f5!important;outline:2px solid #174e6c;outline-offset:2px}.flh-note-body{border-left:3px solid #16819c;padding-left:16px;margin:18px 0}.flh-js .flh-notes{display:none}.flh-download{margin:15px 0 25px}.flh-download-button{display:inline-block;background:#07566d;color:#fff!important;text-decoration:none!important;border-radius:8px;padding:13px 21px;font-weight:700}.flh-download-button:hover{background:#063e4e}.flh-heft{line-height:1.75;overflow-wrap:anywhere}.flh-heft h2,.flh-heft h3,.flh-heft h4,.flh-heft h5,.flh-heft h6{scroll-margin-top:110px}.flh-table-wrap{overflow-x:auto;margin:20px 0}.flh-table{border-collapse:collapse;width:100%}.flh-table td,.flh-table th{border:1px solid #c9d8e1;padding:10px;vertical-align:top}.flh-table td p:last-child{margin-bottom:0}.flh-heft img{max-width:100%;height:auto}.flh-list-item{padding-left:15px}.flh-reader .flh-image-slot{display:none}.flh-toc{position:fixed;bottom:22px;right:22px;width:min(310px,calc(100vw - 32px));background:#fff;color:#153a51;border:1px solid #87a6b9;border-radius:12px;box-shadow:0 6px 30px #142d4933;z-index:9990;font:15px/1.5 system-ui,sans-serif}.flh-toc-header{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;background:#123c53;color:#fff;border-radius:11px 11px 0 0}.flh-toc-header button{border:1px solid #fff;color:#fff;background:transparent;border-radius:5px;padding:3px 9px;font:inherit;cursor:pointer}.flh-toc ol{list-style:none;margin:0;padding:12px;max-height:40vh;overflow:auto}.flh-toc li{margin:4px 0}.flh-toc a{display:block;padding:4px 6px;color:#14445e;text-decoration:none}.flh-toc a:hover,.flh-toc a:focus{background:#e4f1f7}.flh-toc.flh-minimized{width:auto}.flh-toc.flh-minimized ol{display:none}.flh-toc.flh-minimized .flh-toc-header{border-radius:11px}.flh-dialog{width:min(650px,calc(100vw - 30px));max-height:80vh;border:1px solid #6a8ca2;border-radius:14px;padding:0;background:#fff;color:#162e40;box-shadow:0 12px 70px #0005;z-index:10001}.flh-dialog::backdrop{background:#102331aa}.flh-dialog header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 20px;border-bottom:1px solid #cedce4}.flh-dialog h2{font-size:21px;margin:0!important}.flh-dialog button{background:#123f58;color:#fff;border:0;border-radius:6px;padding:9px 14px;cursor:pointer}.flh-dialog-body{padding:20px;overflow:auto;max-height:60vh;line-height:1.7}.flh-dialog-body h3{margin-top:0}@media(max-width:600px){.flh-toc{right:12px;bottom:12px}.flh-toc ol{max-height:33vh}.flh-dialog header{padding:12px}.flh-dialog-body{padding:15px}}@media print{.flh-toc,.flh-dialog,.flh-download{display:none!important}.flh-js .flh-notes{display:block}.flh-note{background:none!important;border-bottom:1px dotted #555}}

.flh-note *{color:inherit!important;background:transparent!important}
/* v1.0.1: preserve source colours but adapt them to the actual theme background. */
.flh-reader .flh-heft [style*="color:"]{color:var(--flh-readable-color,inherit)!important}
.flh-reader .flh-heft :is(h2,h3,h4,h5,h6){color:var(--flh-readable-color,inherit)!important}
.flh-reader .flh-heft .flh-note,.flh-reader .flh-heft .flh-note *{color:#07516b!important;background-color:#dff3fa!important}
.flh-reader .flh-image-slot,#flh-editor .flh-image-slot{display:inline-block!important;color:#b42318!important;background:#fff1f0!important;border:1px dashed #b42318;padding:8px 12px;border-radius:4px;font-weight:600}
.flh-table-wrap{width:100%;max-width:100%;overflow-x:auto;margin:20px 0}.flh-table-wrap table{min-width:560px}.flh-table-wrap td,.flh-table-wrap th{min-width:110px}
.flh-reader[data-flh-lang]:not([data-flh-lang="de"]) .flh-heft [style],.flh-reader[data-flh-lang]:not([data-flh-lang="de"]) .flh-heft :is(h2,h3,h4,h5,h6){color:inherit!important}
.flh-reader[data-flh-lang]:not([data-flh-lang="de"]) .flh-heft .flh-note,.flh-reader[data-flh-lang]:not([data-flh-lang="de"]) .flh-heft .flh-note *{color:inherit!important;background:transparent!important;border-bottom-color:currentColor}
.flh-dialog,.flh-dialog :is(h2,h3,p,li,span,strong,em){color:#162e40!important}.flh-dialog header button{color:#fff!important}
.flh-reader .flh-heft .flh-image-slot,.flh-reader[data-flh-lang]:not([data-flh-lang="de"]) .flh-heft .flh-image-slot,#flh-editor .flh-image-slot{color:#b42318!important;background:#fff1f0!important}
.flh-reader .flh-heft :is(p,li,td,th){color:var(--flh-readable-color,inherit)!important}
.flh-reader[data-flh-lang]:not([data-flh-lang="de"]) .flh-heft :is(p,li,td,th){color:inherit!important;background:transparent!important}
@media print{.flh-reader .flh-heft :is([style],p,li,td,th,h2,h3,h4,h5,h6){color:#17324d!important;background:transparent!important}}

.flh-reader .flh-heft :is(strong,b){color:var(--flh-readable-color,inherit)!important}
.flh-reader[data-flh-lang]:not([data-flh-lang="de"]) .flh-heft :is(strong,b){color:inherit!important}
/* Note highlights are interactive markers in every language, independent of ordinary word colours. */
.flh-reader[data-flh-lang] .flh-heft .flh-note[data-flh-note],.flh-reader[data-flh-lang] .flh-heft .flh-note[data-flh-note] *{color:#07516b!important;background:#dff3fa!important;border-bottom-color:#087490}
.flh-reader[data-flh-lang] .flh-heft .flh-note[data-flh-note]:hover,.flh-reader[data-flh-lang] .flh-heft .flh-note[data-flh-note]:focus-visible{background:#bce8f5!important}
.flh-download-button:disabled{opacity:1;cursor:wait;background:#365a6b;color:#fff!important;border:0;font:inherit}.flh-pdf-status{display:block;margin-top:8px;font-size:.9em}

/* Document switch and responsive letter template. */
.flh-document-panel[hidden],.flh-toc[hidden]{display:none!important}
.flh-document-tabs{display:flex;gap:10px;margin:20px 0}
.flh-document-tabs button{padding:12px 25px;border:1px solid #bac8c1;background:#f1f5f3;color:#17324d;border-radius:8px;cursor:pointer;font-weight:700}
.flh-document-tabs button[aria-selected="true"]{background:#218548;border-color:#218548;color:white}
.flh-document-tabs button:focus-visible{outline:3px solid #17324d;outline-offset:3px}
.flh-letter-reader{border:1px solid #c8d0d8;background:#fff;padding:clamp(12px,3vw,32px);border-radius:8px;box-shadow:0 3px 14px #17324d0d}
.flh-letter table{width:100%;border-collapse:collapse;table-layout:auto}
.flh-letter td,.flh-letter th{border:1px solid #b9c5ce;padding:12px;vertical-align:top;overflow-wrap:anywhere}
.flh-letter h2{font-size:1.1rem;margin:0 0 10px}.flh-letter p{margin:0 0 8px}
.flh-letter .flh-table-wrap{max-width:100%;overscroll-behavior-x:contain}

.flh-letter-section{margin:0 0 20px}.flh-letter-box{border:1px solid #9aa9b4;padding:12px;line-height:1.6}
.flh-letter .flh-letter-top td{border:0;padding:0 12px 0 0}.flh-letter .flh-letter-top td:first-child{width:72%}
.flh-letter .flh-letter-metrics td{border:0;padding:8px}.flh-letter-metrics{margin:10px 0 20px}
.flh-letter :is(h2,h3,h4,h5,h6){scroll-margin-top:110px}
@media(max-width:480px){.flh-letter .flh-letter-top td{display:block;width:auto!important;padding:0}.flh-letter .flh-letter-metrics td{padding:5px;font-size:.9rem}}
@media print{.flh-document-tabs{display:none!important}}

/* Text-only letters always use a white page with dark, readable text. */
.flh-reader.flh-letter-reader,#flh-editor .flh-letter{color:#17324d!important;background:#fff!important;color-scheme:light}
.flh-reader .flh-letter,.flh-reader .flh-letter *,#flh-editor .flh-letter,#flh-editor .flh-letter *{color:#17324d!important;-webkit-text-fill-color:#17324d!important;text-shadow:none!important;opacity:1!important;filter:none!important;mix-blend-mode:normal!important}
.flh-reader .flh-letter *,#flh-editor .flh-letter *{background-color:transparent!important;background-image:none!important}
.flh-reader .flh-letter :is(img,picture,svg,canvas,iframe,object,embed,[data-flh-image],.flh-image-slot),#flh-editor .flh-letter :is(img,picture,svg,canvas,iframe,object,embed,[data-flh-image],.flh-image-slot){display:none!important}

/* Layout tables have no outer rules; headings sit above their own content boxes. */
.flh-reader .flh-letter table,.flh-reader .flh-letter tr,#flh-editor .flh-letter table,#flh-editor .flh-letter tr{border:0!important;outline:0!important;box-shadow:none!important}
.flh-reader .flh-letter .flh-letter-top td,.flh-reader .flh-letter .flh-letter-metrics td,#flh-editor .flh-letter .flh-letter-top td,#flh-editor .flh-letter .flh-letter-metrics td{border:0!important;outline:0!important;box-shadow:none!important}
.flh-reader .flh-letter-section,#flh-editor .flh-letter-section{margin:0 0 28px!important;border:0!important}
.flh-reader .flh-letter-section>h2,#flh-editor .flh-letter-section>h2{border:0!important;outline:0!important;box-shadow:none!important;padding:0!important;margin:0 0 10px!important}

/* One shared box for age, weight and height; no internal cell lines. */
.flh-reader .flh-letter table.flh-letter-metrics,#flh-editor .flh-letter table.flh-letter-metrics{border:1px solid #9aa9b4!important;border-collapse:collapse!important;margin:10px 0 28px!important}
.flh-reader .flh-letter table.flh-letter-metrics td,#flh-editor .flh-letter table.flh-letter-metrics td{border:0!important;padding:12px!important}

/* Keep document controls readable when theme button styles override defaults. */
.flh-document-tabs button[role="tab"]{background:#f1f5f3!important;background-image:none!important;color:#17324d!important;-webkit-text-fill-color:#17324d!important;text-shadow:none!important;opacity:1!important;filter:none!important;border-color:#bac8c1!important}
.flh-document-tabs button[role="tab"][aria-selected="true"]{background:#218548!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#218548!important}
.flh-document-tabs button[role="tab"] span{color:inherit!important;-webkit-text-fill-color:inherit!important;opacity:1!important}

.flh-pdf-loading{cursor:wait!important;background-image:linear-gradient(90deg,transparent,rgba(130,210,255,.65),transparent)!important;background-size:60% 100%!important;background-repeat:no-repeat!important;animation:flh-pdf-sweep 1.5s linear infinite!important;opacity:1!important}
@keyframes flh-pdf-sweep{from{background-position:-160% 0}to{background-position:260% 0}}
@media(prefers-reduced-motion:reduce){.flh-pdf-loading{animation:none!important;background-position:50% 0!important}}

.flh-document-tabs{flex-wrap:wrap}.flh-native-flashcards{margin:20px auto;max-width:1050px}.flh-flashcard{border:1px solid #acc1d0;border-radius:10px;padding:18px;margin:16px 0;background:#fff;color:#17324d;overflow-x:auto}.flh-flashcard p{margin:8px 0;line-height:1.65}.flh-flashcard table{width:100%;border-collapse:collapse;table-layout:auto}.flh-flashcard td,.flh-flashcard th{border:1px solid #9bb3c5;padding:12px;vertical-align:top;min-width:100px}.flh-fc-navigator{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}.flh-fc-navigator button,.flh-fc-navigator select{padding:9px 14px;min-height:44px}.flh-fc-loading{padding:12px;border:1px solid #c3d6e4;border-radius:8px;background:#f2f8fc}.flh-fc-loading progress{width:100%;height:12px}.flh-fc-loading output{font-weight:bold;float:inline-end}.flh-native-flashcards [hidden]{display:none!important}.flh-fc-ready .flh-fc-loading{font-size:.85em;padding:6px 12px}.flh-fc-ready .flh-fc-loading progress{height:5px}@media(max-width:600px){.flh-flashcard{padding:10px}.flh-fc-navigator button{flex:1}.flh-document-tabs button{flex:1 1 auto}}
.flh-fc-card-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;border:1px solid #bdcfdd;border-radius:12px;background:#edf5fb;color:#17324d}.flh-fc-face-heading{font-size:1.05rem}.flh-fc-letter{font-weight:700;color:#125f94}.flh-fc-toolbar{display:flex;justify-content:center;align-items:center;gap:12px;width:100%}.flh-fc-toolbar button{border:1px solid #9db9cd;border-radius:12px;background:#fff;color:#143b58;font-weight:600;cursor:pointer;box-shadow:0 2px 6px #133d5810}.flh-fc-toolbar .flh-fc-arrow{width:48px;height:46px;padding:0;font-size:22px;flex:0 0 48px}.flh-fc-toolbar .flh-fc-flip{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:160px;background:#126caa;color:#fff;border-color:#126caa}.flh-fc-flip[aria-pressed=true]{background:#0f526e}.flh-fc-toolbar button:disabled{opacity:.4;cursor:default}.flh-fc-card-list{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%;padding:8px 0}.flh-fc-card-list button{width:auto;flex:0 0 auto;min-width:42px;min-height:42px;border-radius:11px;border:1px solid #aac0d0;background:#fff;color:#17324d;font-weight:700;padding:8px 12px;cursor:pointer}.flh-fc-card-list button.is-active{background:#126caa;color:#fff;border-color:#126caa;box-shadow:0 3px 10px #126caa30}.flh-fc-navigator{justify-content:center}.flh-fc-navigator button:focus-visible{outline:3px solid #32a5e7;outline-offset:3px}.flh-fc-count{font-size:.9rem;font-weight:600;color:#587083}.flh-flashcard-front,.flh-flashcard-back{min-height:200px}.flh-flashcard{padding:24px;box-shadow:0 3px 14px #163d5810}@media(max-width:600px){.flh-fc-card-header{padding:11px 14px}.flh-fc-toolbar{gap:8px}.flh-fc-toolbar .flh-fc-flip{min-width:0;flex:1}.flh-fc-card-list{gap:6px}.flh-fc-card-list button{min-width:40px}.flh-flashcard{padding:16px}}

.flh-native-flashcards .flh-fc-loading,.flh-native-flashcards .flh-fc-loading span,.flh-native-flashcards .flh-fc-loading output{color:#17324d}

/* Text cards framed by the supplied square pattern, on both faces. */
.flh-native-flashcards{width:100%;min-width:0;box-sizing:border-box}
.flh-native-flashcards .flh-fc-pages,.flh-native-flashcards .flh-flashcards-document{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.flh-native-flashcards .flh-flashcard{padding:0;margin:12px 0 20px;overflow:hidden;border-radius:12px;background:#fff;color:#17324d;box-sizing:border-box;max-width:100%}
.flh-native-flashcards .flh-flashcard-front,.flh-native-flashcards .flh-flashcard-back{display:flex;flex-direction:column;box-sizing:border-box;min-height:clamp(270px,40vw,480px);padding:0;background:#fff;color:#17324d;overflow-wrap:anywhere}
.flh-native-flashcards .flh-flashcard-front::before,.flh-native-flashcards .flh-flashcard-back::before,.flh-native-flashcards .flh-flashcard-front::after,.flh-native-flashcards .flh-flashcard-back::after{content:"";display:block;flex-shrink:0;width:100%;height:clamp(36px,8vw,105px);background:url("flashcard-border.svg") center/100% 100% no-repeat;pointer-events:none}
.flh-native-flashcards .flh-flashcard-front::after,.flh-native-flashcards .flh-flashcard-back::after{margin-top:auto}
.flh-native-flashcards .flh-flashcard-front>*,.flh-native-flashcards .flh-flashcard-back>*{margin-inline:clamp(16px,5vw,64px);max-width:calc(100% - clamp(32px,10vw,128px));box-sizing:border-box}
.flh-native-flashcards .flh-flashcard-front>:first-child,.flh-native-flashcards .flh-flashcard-back>:first-child{margin-top:18px}
.flh-native-flashcards .flh-flashcard-front>:last-child,.flh-native-flashcards .flh-flashcard-back>:last-child{margin-bottom:24px}
.flh-native-flashcards .flh-flashcard table{table-layout:fixed;width:auto}.flh-native-flashcards .flh-flashcard td,.flh-native-flashcards .flh-flashcard th{min-width:0;overflow-wrap:anywhere}
.flh-native-flashcards .flh-fc-loading{background:transparent;border:0;padding:8px 0}
@media(max-width:480px){.flh-native-flashcards .flh-fc-card-header{font-size:.95rem}.flh-native-flashcards .flh-fc-toolbar{width:100%;flex-wrap:nowrap}.flh-native-flashcards .flh-fc-toolbar button{padding:10px;min-width:44px}.flh-native-flashcards .flh-fc-flip{font-size:.9rem}.flh-native-flashcards .flh-flashcard td{padding:8px}}
/* Anamnesis: independent page navigation. */
.flh-anamnesis{width:100%;min-width:0;color:inherit}.flh-anamnesis *{box-sizing:border-box}.flh-anamnesis [hidden]{display:none!important}
.flh-anamnesis .flh-anam-tabs,.flh-anamnesis .flh-anam-body{display:block;width:100%;max-width:100%;min-width:0}
.flh-anamnesis .flh-anam-panel:not([hidden]){display:block!important;width:100%;margin:0;padding:clamp(14px,3vw,28px);border:1px solid #bdcfdd;border-radius:12px;background:#202c39;color:#fff;overflow-wrap:anywhere}
.flh-anam-navigation{display:flex;align-items:stretch;gap:10px;margin:16px 0}.flh-anam-navigation label{flex:1;min-width:0}.flh-anam-navigation select{width:100%;max-width:100%;height:100%;min-height:46px;padding:10px;border:1px solid #91a9bb;border-radius:8px;background:#fff;color:#17324d}
.flh-anam-navigation button,.flh-anam-result{min-height:44px;padding:10px 14px;border:1px solid #9ab3c5;border-radius:8px;background:#f0f6fa;color:#17324d;cursor:pointer}.flh-anam-navigation button:disabled{opacity:.4;cursor:default}
.flh-anam-search-label{display:block;margin:18px 0 6px;font-weight:600}.flh-anam-search-label input{display:block;width:100%;min-width:0;margin-top:7px;padding:12px;border:1px solid #91a9bb;border-radius:8px;background:#fff;color:#17324d}.flh-anam-search-status{margin:6px 0}.flh-anam-results{display:grid;gap:8px;max-height:300px;overflow:auto}.flh-anam-result{width:100%;text-align:start;white-space:normal;overflow-wrap:anywhere}.flh-anamnesis mark.flh-anam-match{background:#ffe78a;color:#172d40;border-radius:2px;padding:0}
.flh-transcript-turn{margin:0 0 16px;line-height:1.75;white-space:normal}.flh-transcript-turn strong{font-weight:750}.flh-simulation-notice{padding:14px 18px;border-inline-start:4px solid #126caa;background:#eef6fb;color:#17324d;border-radius:6px}.flh-anamnesis .flh-download{display:inline-flex;margin:6px 10px 6px 0}
.flh-anamnesis button:focus-visible,.flh-anamnesis input:focus-visible,.flh-anamnesis select:focus-visible{outline:3px solid #32a5e7;outline-offset:2px}
@media(max-width:600px){.flh-anam-navigation{display:grid;grid-template-columns:1fr 1fr;gap:8px}.flh-anam-navigation label{grid-column:1/-1;grid-row:1}.flh-anam-navigation button{font-size:.9rem}.flh-anamnesis .flh-download{display:flex;margin:8px 0}.flh-anamnesis .flh-download-button{width:100%;text-align:center}}



/* Independent paged transcript viewer; one navigation above a scrollable page. */
.flh-anamnesis .flh-anam-body{max-height:70vh;max-height:70dvh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border-radius:12px;background:#202c39}
.flh-anamnesis .flh-anam-panel h2,.flh-anamnesis .flh-anam-panel p,.flh-anamnesis .flh-anam-panel strong{color:inherit}
.flh-anamnesis .flh-anam-panel h2{margin:0 0 24px;line-height:1.3}

/* Only the speaker label receives a colored background. */
.flh-anamnesis .flh-anam-panel .flh-transcript-turn > strong.flh-speaker{display:inline-block;padding:1px 8px;border-radius:5px;font-weight:750;line-height:1.6;color:#102a43;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.flh-anamnesis .flh-anam-panel .flh-transcript-turn > strong.flh-speaker-doctor{background:#b9e6ff;color:#102a43}
.flh-anamnesis .flh-anam-panel .flh-transcript-turn > strong.flh-speaker-patient{background:#ffe2a8;color:#382500}

/* Explicit colors override the dark theme's generic form-control styling. */
.flh-anamnesis .flh-anam-navigation select.flh-anam-select,.flh-anamnesis .flh-anam-navigation select.flh-anam-select option{background:#f0f6fa!important;color:#17324d!important;-webkit-text-fill-color:#17324d!important;color-scheme:light;font-weight:600}
.flh-anamnesis .flh-anam-search-label input.flh-anam-search{background:#fff!important;color:#17324d!important;-webkit-text-fill-color:#17324d!important;color-scheme:light}
.flh-anamnesis .flh-anam-results{gap:10px;max-height:360px;max-height:min(360px,42vh);padding:2px 4px 4px 0;scrollbar-gutter:stable}
.flh-anamnesis button.flh-anam-result{display:block;padding:14px 16px;background:#f0f6fa!important;color:#17324d!important;line-height:1.5;font-size:1rem;font-weight:400;text-align:start;border:1px solid #9ab3c5;box-shadow:none}
.flh-anamnesis button.flh-anam-result:hover{background:#dfedf7!important;border-color:#32a5e7}
.flh-anamnesis .flh-anam-result-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;margin-bottom:8px;color:#17324d!important;font-size:.85em;font-weight:650}
.flh-anamnesis .flh-anam-result-page{color:#17324d!important}
.flh-anamnesis .flh-anam-result-role{padding:1px 7px;border-radius:4px;background:#dce7ee;color:#17324d!important;font-size:.9em}
.flh-anamnesis .flh-anam-result-role.flh-result-doctor{background:#b9e6ff;color:#102a43!important}
.flh-anamnesis .flh-anam-result-role.flh-result-patient{background:#ffe2a8;color:#382500!important}
.flh-anamnesis .flh-anam-result-snippet{display:block;color:#17324d!important;font-weight:400;overflow-wrap:anywhere}
.flh-anamnesis .flh-anam-results mark.flh-anam-match{background:#ffe078!important;color:#172d40!important;font-weight:750;padding:0 2px}
