
:root{--bg:#f5f0e9;--paper:#fffdf9;--ink:#34271e;--muted:#716151;--accent:#a34819;--brown:#66371f;--line:#ded0bf;--soft:#f7e8d6;--bar-height:150px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:calc(var(--bar-height) + 20px)}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;line-height:1.55;color:var(--ink);background:var(--bg)}[hidden]{display:none!important}.wrap{width:min(1160px,92vw);margin:auto}a{color:var(--brown)}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.35}button:focus-visible,a:focus-visible{outline:3px solid #bf6b2e;outline-offset:4px}header{color:#fff;background:linear-gradient(125deg,#57321f 0%,#874321 55%,#ad501b 100%);padding:43px 0 35px}.brand{font-size:.97rem;display:flex;gap:8px 18px;flex-wrap:wrap;margin-bottom:16px}.brand a{color:#fff;text-decoration:none;font-weight:750}h1{font-size:clamp(2.2rem,5.5vw,3.6rem);letter-spacing:-.04em;line-height:1.12;margin:0 0 12px}header p{max-width:850px;font-size:1.12rem;margin:0}.nav{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px}.nav a{color:#fff;text-decoration:none;background:#ffffff10;border:1px solid #ffffff60;padding:7px 13px;border-radius:999px}.nav a:hover{background:#ffffff25}main{padding:27px 0 55px}.intro{background:var(--paper);border:1px solid var(--line);border-radius:17px;padding:21px 23px;margin-bottom:18px}.intro p{margin:0}.intro strong{color:var(--brown)}.intro .small{font-size:.88rem;color:var(--muted);margin-top:10px}.controls{position:sticky;top:8px;z-index:20;background:#fffdf9f5;backdrop-filter:blur(12px);border:1px solid #cdbba5;box-shadow:0 7px 24px #57321f14;border-radius:17px;padding:15px 18px;margin-bottom:22px}.searchrow{display:flex;gap:8px;align-items:stretch}.searchrow input{flex:1;min-width:0;padding:11px 14px;border:1px solid #cbb7a0;border-radius:10px;background:#fff;font-size:1rem;color:var(--ink)}.searchrow input:focus{outline:3px solid #a3481922;border-color:var(--accent)}.tool{flex-shrink:0;border:1px solid #cbb7a0;border-radius:10px;background:var(--soft);color:var(--brown);font-weight:700;padding:9px 12px}.tool:hover{background:#eed7ba}.tool[aria-pressed="true"]{background:var(--brown);color:#fff;border-color:var(--brown)}.status{font-size:.85rem;color:var(--muted);margin:10px 0 0}.az{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 25px;scroll-margin-top:calc(var(--bar-height) + 18px)}.az a{min-width:33px;padding:5px 9px;border:1px solid var(--line);background:var(--paper);border-radius:999px;text-align:center;text-decoration:none;font-weight:750}.az a:hover{background:var(--soft)}.letter{display:flex;align-items:center;gap:16px;margin:29px 0 12px;color:var(--brown);font-size:1.55rem}.letter:after{content:"";height:1px;background:var(--line);flex:1}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;align-items:start}.card{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:17px 19px;box-shadow:0 3px 13px #57321f07;scroll-margin-top:calc(var(--bar-height) + 18px);content-visibility:auto;contain-intrinsic-size:auto 195px}.card:hover{border-color:#c19973}.card:focus{outline:3px solid #bf6b2e;outline-offset:3px}.badge{font-size:.72rem;font-weight:750;background:var(--soft);color:var(--brown);display:inline-block;padding:4px 8px;border-radius:999px}.card h3{font-size:1.07rem;line-height:1.4;margin:10px 0 7px;font-weight:750;color:#56361f}.meaning{font-size:.95rem;margin:0}.actions{display:flex;justify-content:flex-end;gap:7px;align-items:center;margin-top:16px;padding-top:10px;border-top:1px solid #eadfcf}.actions button{color:var(--brown);border:1px solid var(--line);border-radius:7px;background:#fffaf3;min-width:35px;min-height:33px;font-weight:700;padding:4px 9px}.actions button:hover:enabled{background:var(--soft);border-color:#b9916b}.actions .copyright{margin-right:auto;font-size:.67rem;color:#88705a}.empty{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:25px;text-align:center;color:var(--muted)}footer{border-top:1px solid var(--line);padding:22px 0 30px;color:var(--muted);font-size:.86rem}footer p{margin:0 0 6px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:var(--brown);color:#fff;padding:12px 20px;border-radius:12px;z-index:40;box-shadow:0 5px 20px #0002}.toast:empty{display:none}dialog{border:1px solid var(--line);border-radius:15px;max-width:min(560px,92vw);padding:22px;color:var(--ink);background:var(--paper)}dialog::backdrop{background:#21160c77}dialog h2{margin:0 0 10px;font-size:1.25rem}dialog textarea{display:block;width:100%;min-height:150px;padding:10px;font:inherit;border:1px solid var(--line);border-radius:8px;margin:14px 0}.dialog-actions{display:flex;gap:10px;justify-content:flex-end}.error-tools{margin-top:15px}.error-tools label{display:block;margin-bottom:7px}.error-tools input{max-width:100%}.top-link{display:block;margin-top:30px;text-align:center;border:1px solid var(--line);background:var(--soft);padding:10px;border-radius:12px;text-decoration:none;font-weight:700}
.category-tools{display:flex;align-items:center;gap:12px;justify-content:flex-end;margin:0 0 14px}.category-tools .status{margin:0}.category-panel{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:16px;margin-bottom:20px}.category-buttons{display:flex;flex-wrap:wrap;gap:8px}.category-buttons .tool{font-size:.83rem;padding:8px 11px}.category-buttons span{font-weight:400}.category-panel[hidden]{display:none}.card[hidden],section[hidden]{display:none!important}
@media(max-width:650px){header{padding:30px 0}header p{font-size:1rem}.brand{font-size:.86rem;gap:5px 12px}.grid{grid-template-columns:1fr}.controls{padding:12px;top:5px}.searchrow{flex-wrap:wrap}.searchrow input{flex-basis:100%}.tool{font-size:.87rem;flex:1;padding:8px}.category-tools{justify-content:flex-start;flex-wrap:wrap}.category-tools .tool,.category-buttons .tool{flex:0 1 auto}.intro{padding:18px}.status{font-size:.78rem}.card{content-visibility:visible;padding:16px}.wrap{width:93vw}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{header{background:#fff;color:#222;padding:15px 0}.brand a{color:#222}.controls,.category-tools,.category-panel,.az,.actions,.nav,.top-link{display:none}.grid{display:block}.card{content-visibility:visible;break-inside:avoid;box-shadow:none;margin:10px 0}body{background:white}main{padding-top:10px}}

.brand{font-size:1.1rem;gap:4px 0;align-items:center}.brand a{letter-spacing:.055em;font-weight:700}.brand .sep{padding:0 16px;opacity:.72}
.brand span{letter-spacing:.018em}.help-content h1,header h1{letter-spacing:.018em}
.actions{gap:5px;flex-wrap:wrap}.actions .origin-label{font-size:.69rem;color:var(--muted);margin-left:3px}.actions button{border:0;background:#bcc4ca;color:#fff;width:30px;height:24px;min-width:0;min-height:0;border-radius:4px;padding:0;font-size:1.15rem;line-height:1;display:inline-flex;align-items:center;justify-content:center;opacity:.88;flex-shrink:0}.actions button:hover:enabled{background:#9ea9b1;opacity:1}.actions button:disabled{opacity:.32;background:#bcc4ca}.actions button svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.actions button.speaking{background:var(--brown);opacity:1}.actions button[data-action="origin"]{font-size:1rem}.progressive-more{text-align:center;padding:24px 12px;margin-top:20px}.progressive-more .status{margin:0 0 12px}.origin-metaphor{font-size:1.08rem;font-weight:750;color:var(--brown)}.origin-status{font-size:.82rem;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:12px}.origin-text{white-space:pre-line;line-height:1.6}.origin-sources{padding-left:20px;font-size:.85rem}.origin-sources li{margin:7px 0}#origin-dialog{max-height:85vh;overflow:auto;width:min(560px,92vw)}
@media(max-width:650px){.brand{font-size:.96rem;row-gap:5px}.brand .sep{padding:0 10px}.actions button{width:30px;height:24px}.actions .copyright{font-size:.65rem}}@media print{.progressive-more{display:none}}

html{scroll-behavior:auto}body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}input,textarea,select,[contenteditable="true"]{-webkit-user-select:text;user-select:text}
.card:hover,.card.marked{background:#f3e9dc;border-color:var(--line)}.card .copyright a{color:inherit;text-decoration:none}.card .copyright a:hover{text-decoration:underline}
.actions .origin-label{margin-left:18px}.actions button.origin-checked,.actions button.origin-explained{background:#668c70;opacity:1}.actions button.origin-explained{background:#7d9a83}.actions button.origin-checked:hover,.actions button.origin-explained:hover{background:#4d7857}.actions button.origin-empty{background:#c7cdd1;opacity:.38}
.touch-tools{display:none}.touch-tools svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.help-content h2{color:var(--brown);margin-top:28px}.help-content p{max-width:900px}.help-content section{scroll-margin-top:25px}
@media(max-width:820px),(pointer:coarse){body{padding-bottom:calc(65px + env(safe-area-inset-bottom))}.touch-tools{position:fixed;bottom:0;left:0;right:0;z-index:40;display:flex;justify-content:center;gap:6px;padding:7px 10px calc(7px + env(safe-area-inset-bottom));border-top:2px solid #a77b59;background:#eadccc;box-shadow:0 -5px 18px #57321f24}.touch-tools button,.touch-tools a{font:inherit;font-size:.8rem;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;flex:1;max-width:180px;border:2px solid #b8997d;border-radius:9px;background:white;color:var(--brown);font-weight:600;text-decoration:none;cursor:pointer}.toast{bottom:calc(82px + env(safe-area-inset-bottom));width:max-content;max-width:92vw;font-size:.86rem}.actions button{position:relative}.actions button:after{content:"";position:absolute;inset:-10px -4px}.actions{gap:9px}.actions .origin-label{margin-left:12px}}
@media print{.touch-tools,.toast{display:none!important}}

/* Die kleinen Kartenaktionen bleiben auch auf braunem Grund klar erkennbar. */
.actions button:not(.origin-checked):not(.origin-explained):not(.origin-empty){
  background:#59636b;color:#fff;border:1px solid #414a52;box-shadow:inset 0 1px 0 #ffffff22;
}
.actions button:not(.origin-checked):not(.origin-explained):not(.origin-empty):hover:enabled{
  background:#68747d;border-color:#4c5861;color:#fff;
}
.actions button:not(.origin-checked):not(.origin-explained):not(.origin-empty):focus-visible{
  outline:3px solid #d99a64;outline-offset:2px;
}
.actions button:not(.origin-checked):not(.origin-explained):not(.origin-empty):disabled{
  background:#858d93;color:#eef1f2;opacity:.55;
}
.toast{white-space:pre-line;text-align:center}
.origin-gap{display:block;height:.55em}
.actions button:not(.origin-checked):not(.origin-explained):not(.origin-empty){background:#78838b;border-color:#59646c}
.actions button:not(.origin-checked):not(.origin-explained):not(.origin-empty):hover:enabled{background:#87939b;border-color:#68747d}

/* Einzelinformationen bleiben mit deutlichen Trennern gut lesbar. */
#count{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:1.05em;row-gap:.25em}
#count .status-item{white-space:nowrap}#count strong{font-weight:750}
#count .status-separator{font-weight:700;color:var(--brown)}
.origin-paragraph{display:block}.origin-paragraph+.origin-paragraph{margin-top:.55em}
.origin-note{font-style:italic}.nav .imprint-link{margin-left:auto;font-size:.8rem;text-decoration:underline;border-color:transparent;background:transparent}
.business-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}
.business-card{padding:23px;background:var(--paper);border:1px solid var(--line);border-radius:16px}
.business-card h2{margin:0 0 12px;font-size:1.25rem;color:var(--brown)}
.business-card p{margin:.6em 0}.business-example{border-left:3px solid #b87743;padding:6px 0 6px 16px;margin:18px 0;color:var(--brown)}
.help-content li{margin:.65em 0}.help-content table{width:100%;border-collapse:collapse;margin:20px 0;font-size:.95rem}
.help-content th,.help-content td{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:top}
.help-content th{background:var(--soft)}.help-content .table-scroll{overflow-x:auto}
@media(max-width:650px){.business-grid{grid-template-columns:1fr}.nav .imprint-link{margin-left:0}#count{column-gap:.8em}.business-card{padding:18px}}
.origin-text{white-space:normal;line-height:1.5}.origin-text br+br{display:block;content:"";height:.5em}
.actions button:not(.origin-checked):not(.origin-explained):not(.origin-empty){background:#68737b;border-color:#4b565f}
.actions button:not(.origin-checked):not(.origin-explained):not(.origin-empty):hover:enabled{background:#77838c;border-color:#596670}
.actions button:not(.origin-checked):not(.origin-explained):not(.origin-empty){background:#78838b;border-color:#59646c}
.actions button:not(.origin-checked):not(.origin-explained):not(.origin-empty):hover:enabled{background:#87939b;border-color:#68747d}

/* Revision 8: Suchaufruf mit eigenem Zeilenraum und Absatzabstand. */
.help-content .intro p+p{margin-top:.85em}
.help-content a.tool{display:inline-flex;align-items:center;max-width:100%;text-decoration:none;line-height:1.4}





/* Revision 9: hellere Kopfbereiche der Hilfsseiten. */
body[data-page-name="hmc-metaphern-help"] header{background:linear-gradient(125deg,#75472e 0%,#a76036 55%,#a65f38 100%)}
body[data-page-name="hmc-metaphern-benefits"] header{background:linear-gradient(125deg,#754237 0%,#985447 55%,#a35d4e 100%);color:#fff}
body[data-page-name="hmc-metaphern-benefits"] header .brand a,body[data-page-name="hmc-metaphern-benefits"] header .nav a{color:#fff}
body[data-page-name="hmc-metaphern-benefits"] header .nav a{background:#ffffff16;border-color:#ffffff70}
body[data-page-name="hmc-metaphern-benefits"] header .nav a:hover{background:#ffffff30}
body[data-page-name="hmc-metaphern-benefits"] header .nav .imprint-link{background:transparent;border-color:transparent}

/* Revision 10: Quellenbezug dunkelrot, redaktionelle Bilderklärung grün. */
.actions button.origin-checked{background:#8a3438;border-color:#70262b;color:#fff;opacity:1}
.actions button.origin-checked:hover:enabled{background:#a14348;border-color:#7d2c31}
.actions button.origin-checked:focus-visible{outline-color:#b65157}
.origin-legend{display:flex;gap:.55em;align-items:flex-start;margin:.65em 0}
.origin-swatch{flex:0 0 1.35em;height:1.35em;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:700;line-height:1;margin-top:.12em}
.origin-swatch.sources{background:#8a3438}.origin-swatch.editorial{background:#7d9a83}.origin-swatch.unavailable{background:#c7cdd1;color:#525b61}

.nav-separator{display:block;align-self:center;height:1.7rem;border-left:1px solid #ffffff8c;margin:0 .65rem;flex:0 0 0}
@media(max-width:600px){.nav-separator{margin:0 .25rem;height:1.5rem}}

/* Kategorien auf den Karten und statische Beispielsätze. */
.card button.badge{border:0;font-family:inherit;line-height:inherit;text-align:left;cursor:pointer}
.card button.badge:hover{background:#ecd5b9;text-decoration:underline}
.origin-examples-section hr{border:0;border-top:1px solid var(--line);margin:1.25em 0 1em}
.origin-examples-section h2{font-size:1.15rem;color:var(--brown)}
.origin-examples{padding-left:1.3em;line-height:1.55;margin:.7em 0 1.2em}
.origin-examples li{margin:.8em 0}
.origin-examples strong{font-size:.85rem;color:var(--muted)}
.origin-examples em{font-style:italic}
.origin-copy{display:inline-flex;align-items:center;gap:7px}
.origin-copy svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.dialog-actions .origin-close{background:transparent;border-color:#dfd4c6;color:var(--muted);font-weight:500;padding:7px 11px;font-size:.9rem}
.dialog-actions .origin-close:hover{background:#f3ede5;color:var(--brown);border-color:#cbb7a0}
.origin-copy-status{font-size:.85rem;color:#47664d;text-align:right;margin:9px 0 0}

/* Compact explanation actions and DECODER-style ENCODER. */
.dialog-actions .origin-copy,.dialog-actions .origin-close{height:29px;min-height:0;padding:4px 10px;font-size:.85rem;line-height:1.2;border-radius:8px}.origin-copy svg{width:15px;height:15px}
.encoder{background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 26px #57321f0b;padding:20px 22px;margin-bottom:18px;scroll-margin-top:15px}.encoder-toprow{display:flex;align-items:center;justify-content:space-between;gap:12px}.encoder-kicker{font-size:.72rem;font-weight:800;letter-spacing:.055em;color:var(--brown);background:var(--soft);border-radius:999px;padding:4px 9px}.encoder h2{font-size:1.24rem;line-height:1.3;margin:16px 0 6px;color:var(--brown)}.encoder-lead{font-size:.94rem;margin:0 0 13px;color:var(--muted)}.encoder-input-wrap{position:relative}.encoder textarea{font:inherit;width:100%;min-height:135px;resize:vertical;line-height:1.48;padding:12px 14px 48px;border:1px solid #cbb7a0;border-radius:12px;background:white;color:var(--ink)}#encoder-paste{position:absolute;right:10px;bottom:12px;font-size:.78rem;padding:5px 9px}.encoder-actions,.encoder-followups{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.encoder-primary,.encoder-secondary{font:inherit;border-radius:10px;padding:8px 12px;font-weight:500;line-height:1.3}.encoder-primary{border:1px solid var(--brown);background:var(--brown);color:white}.encoder-secondary{border:1px solid #ccb7a1;background:#fffdf9;color:var(--brown)}.encoder-secondary:hover:enabled{background:var(--soft)}.encoder-privacy{font-size:.8rem;color:var(--muted);margin:10px 0 0}.encoder-status{min-height:1.2em;margin:9px 0 0;font-size:.86rem;color:var(--muted)}.encoder-result{margin-top:12px;padding:14px 16px;border:1px solid #d8b598;border-radius:12px;background:#fcf5eb;overflow-wrap:anywhere}.encoder-result h3{color:var(--brown);font-size:1.1rem;margin:0 0 10px}.encoder-result p{white-space:pre-line;margin:0 0 9px}.encoder-result h4{margin:14px 0 6px}.encoder-result li{margin:6px 0;font-style:italic}.encoder-followups{border-top:1px solid var(--line);padding-top:12px}.encoder-followups button{font-size:.86rem;padding:6px 10px}.encoder button:disabled{opacity:.5}.encoder-status.loading::before{content:"";display:inline-block;width:12px;height:12px;border:2px solid #dec9b5;border-top-color:var(--brown);border-radius:50%;margin-right:8px;animation:encoder-spin .8s linear infinite}@keyframes encoder-spin{to{transform:rotate(360deg)}}@media(max-width:650px){.encoder{padding:17px 16px}.encoder-toprow{flex-wrap:wrap}.encoder textarea{min-height:160px}}@media(prefers-reduced-motion:reduce){.encoder-status.loading::before{animation:none}}@media print{.encoder{display:none}}

.english-dialog{width:min(480px,92vw)}.english-translation{margin:.75em 0 .4em;line-height:1.6;white-space:pre-wrap}.english-literal{margin:.4em 0 1.2em;font-style:italic;color:var(--muted);white-space:pre-wrap}.actions button.english-button{font-size:.7rem;letter-spacing:.025em;font-weight:750;margin-left:3px}.actions button.english-button:disabled{opacity:.38}

#origin-dialog .origin-metaphor,#english-dialog .origin-metaphor{font-size:1.2rem;line-height:1.45;color:#a94745;font-weight:750}.english-translation{font-weight:750}.english-literal{margin-bottom:.25em}.english-literal-warning{font-size:.67rem;line-height:1.45;color:var(--muted);margin:.2em 0 1.25em}

.help-content .intro>h2:first-child{margin-top:0}.help-content table tbody td:first-child{font-weight:750}

#speak-english.speaking{background:var(--brown);color:#fff}.english-dialog .dialog-actions{flex-wrap:wrap}

.actions button.english-button:not(.origin-checked):not(.origin-explained):not(.origin-empty){background:#998477;border-color:#867164}.actions button.english-button:not(.origin-checked):not(.origin-explained):not(.origin-empty):hover:enabled{background:#a58b7a;border-color:#907563}

.actions button[data-action="next"]{margin-right:9px}

.view-row{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:15px}.view-actions{display:flex;align-items:center;gap:12px}.compact-brand{display:none;font-weight:700}.compact-brand a{color:inherit}.compact-help{display:none;color:#fff;font-size:.8rem}.view-toggle{background:#fff8ed;color:var(--brown);border:1px solid #fff9;border-radius:999px;font-size:.88rem;font-weight:700;padding:8px 13px}.view-toggle:hover{background:#f4e4d2}
html.compact-mode header{padding:12px 0}html.compact-mode header .brand,html.compact-mode header h1,html.compact-mode header>.wrap>p,html.compact-mode header .nav{display:none}html.compact-mode .view-row{margin-top:0;justify-content:space-between}html.compact-mode .compact-brand,html.compact-mode .compact-help{display:inline}html.compact-mode main{padding-top:15px}html.compact-mode main>.intro,html.compact-mode .encoder,html.compact-mode .az,html.compact-mode .category-tools,html.compact-mode .category-panel,html.compact-mode #count{display:none!important}html.compact-mode .controls{padding:10px;margin-bottom:14px}html.compact-mode .card{padding:12px 15px}html.compact-mode .actions .copyright{visibility:hidden}html.compact-mode .searchrow{flex-wrap:nowrap}html.compact-mode .searchrow input{flex:1;flex-basis:auto}html.compact-mode #case{display:none}html.compact-mode .searchrow .tool{flex:0 0 auto}
@media(max-width:650px){.actions .origin-label{display:none}.view-row{justify-content:flex-end}.view-actions{gap:9px}.view-toggle{font-size:.8rem;padding:7px 10px}html.compact-mode .compact-brand{font-size:.82rem}html.compact-mode .view-row{align-items:flex-start;gap:8px}html.compact-mode .view-actions{flex-wrap:wrap;justify-content:flex-end}.touch-tools button,.touch-tools a{min-width:0;flex:1;font-size:.65rem}.touch-tools{gap:3px}}
@media print{.view-row{display:none}}

/* Header layout and compact mobile navigation. */
html:not(.compact-mode) .view-row{display:none}.nav{align-items:center}.nav .view-toggle{flex-shrink:0}
.control-symbol{display:none}.card-topline{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.card-topline .badge{max-width:calc(100% - 42px)}.card-up{flex:0 0 29px;width:29px;height:27px;padding:0;border:1px solid var(--line);border-radius:6px;background:#fffaf3;color:var(--brown);font-size:1.05rem;font-weight:700;line-height:1}.card-up:hover{background:var(--soft);border-color:#b9916b}
@media(max-width:650px){#clear .control-full,#up .control-full{display:none}#clear .control-symbol,#up .control-symbol{display:inline}#clear,#up{width:40px;min-width:40px;padding:0;flex:0 0 40px;font-size:1.35rem;line-height:1}}
@media print{.card-up,.nav .view-toggle{display:none}}

.dot-separator{display:inline-block;margin-inline:.65em}#count .status-separator{margin-inline:.65em}
@media(min-width:821px){html.compact-mode .compact-brand{font-size:1.2rem;line-height:1.65}html.compact-mode header{padding-block:16px}}
.dialog-actions .origin-copy{justify-content:center;text-align:center}
@media(max-width:820px),(pointer:coarse){.touch-tools button,.touch-tools a{flex-direction:column;gap:3px;min-height:56px;padding:5px 3px;text-align:center;line-height:1.2}.touch-tools svg{width:24px;height:24px;flex-shrink:0}.touch-tools span{display:block}body{padding-bottom:calc(82px + env(safe-area-inset-bottom))}.toast{bottom:calc(96px + env(safe-area-inset-bottom))}}

/* Business guidance and situation entry reuse the existing card palette. */
.business-badge{display:inline-flex;align-items:center;gap:6px;color:var(--ink);font-size:.76rem;font-weight:700;white-space:nowrap}.business-dot{width:10px;height:10px;border-radius:50%;flex:0 0 10px;border:1px solid #0002}.card-title-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.card-title-row h3{min-width:0;overflow-wrap:anywhere}.card-title-row>.business-badge{flex-shrink:0}.business-english{font-size:.85rem;margin:8px 0 0;color:var(--muted);font-style:italic;overflow-wrap:anywhere}.actions .business-button{font-size:.72rem;padding:4px 7px}
.business-tools,.situation-entry{border:1px solid var(--line);background:var(--paper);border-radius:14px;margin:0 0 18px;min-width:0}.business-tools summary,.situation-entry summary{padding:12px 16px;cursor:pointer;font-weight:700;color:var(--brown)}#business-summary{display:block;font-weight:400;margin:3px 0 0;overflow-wrap:anywhere}.business-filter-inner{padding:0 16px 14px;min-width:0}.business-filter-inner h2{font-size:.95rem;margin:12px 0 8px}.business-chip-row{display:flex;gap:8px;overflow-x:auto;max-width:100%;padding:3px 3px 10px;scrollbar-width:thin}.business-chip{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:.83rem;flex-shrink:0}.business-chip[aria-pressed="true"]{background:var(--soft);color:var(--brown);border:2px solid var(--brown);padding:8px 11px}.business-chip[aria-pressed="false"]{background:#fff}.business-shortcuts{display:flex;gap:8px;flex-wrap:wrap}.business-shortcuts .tool{font-size:.8rem}.situation-entry>p{padding:0 16px;margin:0 0 12px;font-size:.9rem}.situation-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:0 16px 16px}.situation-tile{min-width:0;border:1px solid var(--line);background:var(--soft);border-radius:10px;padding:12px;text-align:left;color:var(--brown);font-size:.9rem;overflow-wrap:anywhere}.situation-tile:hover{background:#eed7ba}.situation-tile span{display:block;font-size:.75rem;margin-top:5px;color:var(--muted)}.business-reasons{display:flex;flex-wrap:wrap;gap:6px}.business-reason{font-size:.8rem;border:1px solid var(--line);border-radius:999px;padding:3px 9px;background:var(--soft)}.business-disclaimer{font-size:.72rem;color:var(--muted);margin-top:18px}#business-better h3{font-size:1rem;margin-bottom:6px}#business-alternatives{padding-left:22px}#business-alternatives li{margin:5px 0}#business-dialog-level .business-badge{font-size:.95rem}.business-tools:focus-within,.situation-entry:focus-within{border-color:#b9916b}html.compact-mode .situation-entry{display:none}
@media(max-width:650px){.situation-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.actions{flex-wrap:wrap}.card-title-row{gap:7px}.business-badge{font-size:.69rem}.business-tools summary,.situation-entry summary{padding:11px 12px}.business-filter-inner{padding-inline:12px}.business-shortcuts .tool{white-space:normal}.business-chip-row{overscroll-behavior-x:contain}.business-chip{font-size:.78rem}}
@media print{.business-tools,.situation-entry,.actions .business-button{display:none}}
.actions .business-button{width:auto;min-width:62px}#business-dialog{max-height:85vh;overflow:auto;width:min(560px,92vw)}#business-dialog .origin-metaphor{font-size:1.2rem;line-height:1.45;color:#a94745;font-weight:750}

/* Compact wrapped situation controls and responsive business card actions. */
#business-situations{flex-wrap:wrap;overflow-x:visible;padding-block:3px 6px;gap:6px}#business-situations .business-chip{padding:4px 8px;font-size:.78rem;line-height:1.3;white-space:normal;max-width:100%;flex-shrink:1}#business-situations .business-chip[aria-pressed="true"]{padding:3px 7px}#business-situations .business-chip>span{white-space:nowrap}
#count .business-result{color:#bb5358}.button-mobile{display:none}
@media(min-width:821px){.business-ampel-row{display:flex;align-items:center;gap:32px}.business-ampel-row #business-levels{flex:0 0 auto;padding-bottom:3px;overflow:visible}.business-ampel-row .business-shortcuts{flex-wrap:nowrap;min-width:0}.business-ampel-row .business-shortcuts .tool{white-space:nowrap;font-size:.76rem;padding:8px 9px}}
@media(max-width:650px){.actions .copyright{display:none}.business-button .button-desktop{display:none}.business-button .button-mobile{display:inline}.actions .business-button{min-width:36px;padding-inline:5px}#business-situations .business-chip{font-size:.75rem}}

.actions .business-button{min-width:36px}
@media(max-width:650px){.card .actions{justify-content:flex-start}.card .actions button[data-action="speak"]{margin-right:auto}}

.actions button.english-button{margin-left:11px}
@media(max-width:820px),(pointer:coarse){.actions button.english-button{margin-left:15px}}

@keyframes metaphernFirstVisitHint{0%,100%{box-shadow:0 0 0 0 #a9474500;transform:scale(1)}50%{box-shadow:0 0 0 7px #a947453d;background:#a94745;color:#fff;border-color:#843633;transform:scale(1.06)}}
.view-toggle.first-visit-hint{animation:metaphernFirstVisitHint 2s ease-in-out 5}
@media(prefers-reduced-motion:reduce){.view-toggle.first-visit-hint{animation:none;box-shadow:0 0 0 2px #d6b89c}}
.card-top-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.card-topline .badge{max-width:calc(100% - 78px)}.card-favorite{width:29px;height:27px;border:1px solid var(--line);border-radius:6px;background:#fffaf3;color:var(--brown);font-size:1.3rem;line-height:1;padding:0}.card-favorite[aria-pressed="true"]{color:#a36312;background:#f7e7c6}.card-favorite:hover{background:var(--soft)}#favorites-dialog{width:min(600px,92vw);max-height:85vh;overflow:auto}.favorites-list{list-style:none;padding:0;margin:16px 0}.favorites-list li{border-top:1px solid var(--line);padding:14px 0}.favorite-title{background:transparent;color:var(--brown);border:0;padding:0;text-align:left;font-weight:750;font-size:1rem;overflow-wrap:anywhere}.favorite-title:hover{text-decoration:underline}.favorites-list p{margin:6px 0;font-size:.9rem}.favorites-list .favorite-english{font-style:italic;color:var(--muted)}.favorite-item-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.favorite-item-actions .tool{font-size:.8rem;padding:4px 10px}.favorite-launch{white-space:nowrap}
@media(max-width:650px){html.compact-mode .view-row{flex-wrap:wrap}html.compact-mode .view-actions{margin-left:auto}.favorite-launch{font-size:.75rem}.favorite-item-actions{justify-content:flex-end}}
@media print{.card-favorite,.favorite-launch{display:none}}

#business-filter-body>summary{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.business-summary-title{flex:1;min-width:0}#business-filter-body>summary:before{content:'▸';flex-shrink:0}#business-filter-body[open]>summary:before{content:'▾'}#business-filter-body>summary::-webkit-details-marker{display:none}#business-result-count{display:none;margin:0;font-weight:400;text-align:right}html.compact-mode #business-result-count{display:block;max-width:48%;flex-shrink:0}#business-result-count .business-result{color:#bb5358}#favorites-dialog .dialog-actions{flex-wrap:wrap}
@media(min-width:821px){header .nav{flex-wrap:nowrap;gap:8px;font-size:clamp(.72rem,1.05vw,.9rem)}header .nav a{padding:7px 10px;white-space:nowrap}header .nav .view-toggle{font-size:inherit;padding:7px 10px}header .nav .nav-separator{margin-inline:4px}}

#business-summary[data-default="true"]{display:inline;margin-top:0;margin-left:1.1em;white-space:nowrap}

.actions button.origin-checked{background:#ad686c;border-color:#965458}.actions button.origin-checked:hover:enabled{background:#bb777b;border-color:#a05e63}
/* Stable measured cards and an opaque sticky search surface avoid repaint layers. */
.card{content-visibility:visible;contain-intrinsic-size:none}.controls{background:var(--paper);backdrop-filter:none;isolation:isolate}
.situation-tile{padding:6px 10px;font-size:.82rem;line-height:1.3}.situation-tile span{display:inline;font-size:.76rem;margin:0;white-space:nowrap}.situation-tiles{gap:6px}

.card{scroll-margin-top:0} /* The root scroll-padding already reserves the sticky search height. */

/* Separate search-only clearing from the always available complete reset. */
.control-short{display:none}.searchrow #clear-search{width:40px;min-width:40px;flex:0 0 40px;padding:0;font-size:1.35rem;line-height:1}
@media(max-width:650px){.searchrow #clear{width:auto;min-width:0;flex:0 0 auto;padding:8px 9px;font-size:.82rem;line-height:1.2}#clear .control-short{display:inline}}

/* Compact category disclosure button. */
#category-toggle{padding-top:4px;padding-bottom:4px}

/* Mobile controls: view switching remains in the fixed bottom toolbar. */
@media(max-width:820px){header #compact-toggle{display:none!important}.az{display:none!important}#business-summary[data-default="true"]{display:none!important}}
@media(max-width:650px){.controls,html.compact-mode .controls{padding:7px 9px}.searchrow{gap:6px}.searchrow input{padding:7px 10px}.searchrow #clear{padding:3px 7px;font-size:.76rem;line-height:1.1}.searchrow #clear-search,#up{width:34px;min-width:34px;flex-basis:34px}#clear .control-short{text-align:center}}

/* Allow wrapped labels to remain inside the saved-list action buttons. */
#favorites-dialog .dialog-actions{align-items:stretch}
#favorites-dialog .dialog-actions .tool{height:auto;min-height:32px;line-height:1.2;text-align:center;justify-content:center}
#copy-favorites svg{flex-shrink:0}
@media(max-width:650px){#favorites-dialog .dialog-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}#favorites-dialog .dialog-actions .tool{min-width:0;min-height:42px;padding:5px 7px;font-size:.8rem}#copy-favorites{gap:4px}}

@media(max-width:820px){header #favorites-launch{padding:2px 9px;min-height:0;line-height:1.2;font-size:.75rem}}

.situation-tile[aria-pressed="true"]{background:#eed7ba;border-color:#9b6946;box-shadow:inset 0 0 0 1px #9b6946}

.encoder-toggle-mobile{display:none}
@media(max-width:820px){#encoder-toggle{padding:3px 8px;font-size:.78rem;line-height:1.2}#encoder-toggle .encoder-toggle-full{display:none}#encoder-toggle .encoder-toggle-mobile{display:inline}}

/* Compact mobile business summary: give the heading the full row. */
@media(max-width:650px){
 #business-filter-body>summary{display:grid;grid-template-columns:10px minmax(0,1fr);gap:3px 7px;padding:9px 11px;align-items:start}
 #business-filter-body>summary:before{grid-column:1;grid-row:1;font-size:.85rem}
 .business-summary-title{grid-column:2;grid-row:1;font-size:.88rem;line-height:1.3}
 #business-summary{font-size:.75rem;line-height:1.35;margin-top:4px}
 html.compact-mode #business-result-count{grid-column:2;grid-row:2;max-width:none;text-align:left;font-size:.73rem;line-height:1.3;margin:1px 0 0;flex-shrink:1}
 .business-tools{margin-bottom:12px;border-radius:12px}
 html.compact-mode .controls{margin-bottom:10px}
}

.actions button.business-button{background:#e6eef2;border-color:#bccbd3;color:#49616e}.actions button.business-button:hover:enabled{background:#d8e5ec;border-color:#9fb5c2}

.actions button.business-button:not(.origin-checked):not(.origin-explained):not(.origin-empty){background:#a8cee8;border-color:#7ca9c9;color:#254d69}.actions button.business-button:not(.origin-checked):not(.origin-explained):not(.origin-empty):hover:enabled{background:#93bedf;border-color:#6599bd}

/* Muted action colors with consistent darkening on hover and press. */
.actions button.business-button:not(.origin-checked):not(.origin-explained):not(.origin-empty){background:#738fa3;border-color:#5b7589;color:#fff}
.actions button.business-button:not(.origin-checked):not(.origin-explained):not(.origin-empty):hover:enabled,.actions button.business-button:not(.origin-checked):not(.origin-explained):not(.origin-empty):active:enabled{background:#5f7d93;border-color:#4c687d}
.actions button.origin-checked:hover:enabled,.actions button.origin-checked:active:enabled{background:#975559;border-color:#82464b}
.actions button.origin-explained:active:enabled{background:#4d7857}

.actions button.english-button:not(.origin-checked):not(.origin-explained):not(.origin-empty):hover:enabled,.actions button.english-button:not(.origin-checked):not(.origin-explained):not(.origin-empty):active:enabled{background:#826e61;border-color:#705d50}

.search-mode-row{display:flex;align-items:center;gap:5px;margin:0 0 7px}.search-mode-button{border:1px solid var(--line);border-radius:6px;padding:2px 9px;background:transparent;color:var(--muted);font-size:.75rem;line-height:1.3}.search-mode-button[aria-pressed="true"]{background:var(--soft);color:var(--brown);border-color:#b9916b;font-weight:700}#meaning-search-note{font-size:.72rem;color:var(--muted);margin-left:6px}
@media(max-width:650px){.search-mode-row{margin-bottom:5px}.search-mode-button{padding:2px 8px;font-size:.71rem}#meaning-search-note{font-size:.65rem;line-height:1.2;min-width:0;margin-left:3px}}

@media(max-width:650px){#meaning-search-note[data-mode="wendung"]{display:none}}

.meaning-empty-tips{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:12px 0}.meaning-empty-tips .tool{font-size:.8rem;padding:5px 9px}#relax-search-filters{margin:0 6px 8px}

#meaning-search-note{font-size:.86rem;line-height:1.3}.search-mode-row{gap:6px}@media(max-width:650px){#meaning-search-note,#meaning-search-note[data-mode="wendung"]{display:inline;flex:1;min-width:0;font-size:.78rem;line-height:1.25;margin-left:3px;overflow-wrap:normal}}

.searchrow input{padding:6px 12px;line-height:1.3}.searchrow .tool{padding-top:5px;padding-bottom:5px;line-height:1.2}@media(max-width:650px){.searchrow input{padding:4px 10px}.searchrow #clear{padding-top:3px;padding-bottom:3px}.searchrow #clear-search,.searchrow #up{padding:0}}

#meaning-search-note.ai-loading::before{content:"";display:inline-block;width:12px;height:12px;border:2px solid #dec9b5;border-top-color:var(--brown);border-radius:50%;margin-right:6px;vertical-align:-1px;animation:encoder-spin .8s linear infinite}.controls[aria-busy="true"] input:disabled{opacity:1;color:var(--muted);background:#faf5ed}@media(prefers-reduced-motion:reduce){#meaning-search-note.ai-loading::before{animation:none}}

.search-input-wrap{position:relative;display:flex;flex:1;min-width:0}.search-input-wrap input{width:100%;min-width:0}#statement-enter-hint{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:.76rem;color:#888;pointer-events:none}.searchrow input.statement-input{padding-right:66px}input.statement-input::-webkit-search-cancel-button{display:none}

#empty.ai-no-match{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:16px 20px}#empty.ai-no-match p{margin:0}#empty.ai-no-match .tool{font-size:.86rem;padding:6px 12px}@media(max-width:650px){#empty.ai-no-match{padding:12px 14px;gap:9px;font-size:.9rem}}
#empty.ai-waiting,#empty.ai-no-match{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 12px;padding:9px 14px}#empty.ai-waiting p,#empty.ai-no-match p{margin:0;line-height:1.35}#empty.ai-waiting .tool,#empty.ai-no-match .tool{padding:4px 10px;font-size:.84rem;line-height:1.3}#empty.ai-waiting+#error+noscript+.top-link{margin-top:16px}@media(max-width:650px){#empty.ai-waiting,#empty.ai-no-match{padding:8px 10px;gap:7px;font-size:.88rem}}
@media(max-width:650px){#business-filter-body>summary{grid-template-columns:8px minmax(0,1fr) minmax(70px,30%);gap:3px 6px;padding:7px 10px;align-items:start}.business-summary-title{grid-column:2;grid-row:1;font-size:.82rem;line-height:1.25}#business-result-count,html.compact-mode #business-result-count{display:block;grid-column:3;grid-row:1;max-width:none;min-width:0;text-align:right;font-size:.72rem;line-height:1.25;margin:0;overflow-wrap:normal}#business-summary{margin-top:3px}}
.encoder:has(#encoder-body[hidden]){padding:9px 16px;border-radius:14px}.encoder-toprow{gap:8px}#encoder-toggle{padding:4px 10px;font-size:.88rem;line-height:1.25}.encoder-kicker{padding:3px 8px}@media(max-width:820px){.encoder:has(#encoder-body[hidden]){padding:7px 11px}.encoder-toprow{flex-wrap:nowrap}#encoder-toggle{padding:3px 8px;font-size:.78rem;line-height:1.2}.encoder-kicker{font-size:.67rem;letter-spacing:.025em}}

@media(min-width:821px){.encoder:has(#encoder-body[hidden]){padding:15px 20px}#encoder-toggle{padding:6px 12px}}
#encoder-translate{margin-right:20px}.encoder-followups [data-encoder-action="examples"]{margin-right:20px}#encoder-close{margin-left:20px}.encoder-followups{padding-bottom:12px;border-bottom:1px solid var(--line)}.encoder-status.result-success{font-weight:700}.workflow-launch{text-decoration:none;white-space:nowrap}
.help-content>section,.help-content>.business-card{background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:20px 23px;margin:0 0 16px}.help-content>section>h2:first-child{margin-top:0}.workflow-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.workflow-case{padding:14px 16px;border:1px solid var(--line);border-radius:11px;background:#fcf6ed}.workflow-case h3{margin:0 0 7px;font-size:1rem;color:var(--brown)}.workflow-case p{font-size:.88rem;line-height:1.45;margin:6px 0}.workflow-case a{font-weight:750}.workflow-example{color:var(--muted)}
@media(max-width:650px){.workflow-grid{grid-template-columns:1fr}.help-content>section,.help-content>.business-card{padding:14px 16px}.workflow-case{padding:11px 13px}#encoder-translate{margin-right:12px}.encoder-followups [data-encoder-action="examples"]{margin-right:12px}#encoder-close{margin-left:12px}}
header .nav a.workflow-launch{background:#fff8ed;color:var(--brown);border:1px solid #fff9;font-weight:700}header .nav a.workflow-launch:hover{background:#f4e4d2}.encoder{scroll-margin-top:calc(var(--bar-height) + 15px)}.help-content>section h2{margin-top:0}
.business-tools{scroll-margin-top:calc(var(--bar-height) + 12px)}

.workflow-arrow{font-size:1.3em;font-weight:850;color:var(--brown);line-height:1;vertical-align:-.04em}.workflow-case{position:relative;padding-top:44px}.workflow-screens-button{position:absolute;top:10px;right:12px;font-size:.74rem;padding:3px 8px}.workflow-back{position:fixed;top:12px;right:14px;z-index:1000;background:#b34a45;color:white;border:1px solid #943832;border-radius:9px;padding:8px 12px;text-decoration:none;font-weight:750;font-size:.86rem;box-shadow:0 3px 12px #0002;animation:workflow-return-pulse 2s ease-in-out 5}.workflow-back:hover{background:#963e39}@keyframes workflow-return-pulse{50%{background:#c9635c;box-shadow:0 0 0 3px #b34a4525}}
.encoder-followups [data-encoder-action="related"]{background:#f2e1ca;border-color:#c3976b;color:#6e421e;font-weight:650}.encoder-followups [data-encoder-action="related"]:hover{background:#e8d2b5}#encoder-speak{display:inline-flex;align-items:center;gap:6px}#encoder-speak svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#workflow-screens-dialog{width:min(1100px,96vw);max-height:92vh;overflow:auto;padding:18px}.workflow-screen-head{display:flex;gap:12px;justify-content:space-between;align-items:center}.workflow-screen-head h2{font-size:1.15rem;margin:0}#workflow-screen-caption{margin:12px 0 5px}#workflow-screen-note{margin:0 0 10px}#workflow-screen-image{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:9px;margin:12px 0}#workflow-screens-dialog .dialog-actions{align-items:center;justify-content:space-between}#workflow-screen-number{margin:0}
@media(max-width:650px){.workflow-case{padding-top:39px}.workflow-screens-button{top:8px;right:10px}.workflow-back{top:7px;right:7px;font-size:.75rem;padding:6px 9px}#workflow-screens-dialog{padding:12px}.workflow-screen-head h2{font-size:1rem}}@media(prefers-reduced-motion:reduce){.workflow-back{animation:none}}@media print{.workflow-back,.workflow-screens-button{display:none}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.workflow-case{padding-top:14px}.workflow-case h3{padding-right:96px}.workflow-arrow{font-size:1.5em}@media(max-width:650px){.workflow-case{padding-top:11px}.workflow-case h3{padding-right:88px}}

#workflow-screens-dialog{width:90vw;height:90vh;height:90dvh;max-width:none;max-height:90vh;max-height:90dvh;overflow:hidden;padding:14px 18px}#workflow-screens-dialog[open]{display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:6px}.workflow-screen-stage{min-height:0;overflow:auto;overscroll-behavior:contain}#workflow-screen-image{width:100%;max-width:none;height:auto;margin:0}#workflow-screen-caption,#workflow-screen-note{margin:0}#workflow-screen-note:empty{display:none}#workflow-screens-dialog .dialog-actions{padding-top:6px}.workflow-back{width:112px;text-align:center;line-height:1.2;padding:6px 9px;font-size:.8rem}
#controls{background:#fffdf9;backdrop-filter:none}
@media(min-width:821px){body.workflow-active .view-row{padding-right:130px}}
@media(max-width:650px){#workflow-screens-dialog{width:94vw;height:92vh;height:92dvh;max-height:92dvh;padding:10px}.workflow-back{width:93px;font-size:.72rem;padding:5px 7px}}
#workflow-screens-dialog .workflow-screen-head{grid-row:1}#workflow-screen-caption{grid-row:2}#workflow-screen-note{grid-row:3}#workflow-screens-dialog .workflow-screen-stage{grid-row:4}#workflow-screens-dialog .dialog-actions{grid-row:5}

/* Originalpixel erhalten: auf großen Monitoren keine unscharfe Vergrößerung. */
#workflow-screen-image{display:block;width:100%;height:auto;margin:0 auto;box-sizing:border-box;border:4px solid #95603d;border-radius:6px;background:#fff;box-shadow:0 3px 12px #4b2b1926}
.workflow-screen-stage{padding:4px 8px;box-sizing:border-box;background:#f0e8df;border-radius:8px}
#workflow-screen-caption{white-space:pre-wrap}
#workflow-screen-caption strong{font-weight:700}
@media(max-width:650px){#workflow-screen-image{border-width:3px}.workflow-screen-stage{padding:3px 6px}}

/* Navigation oben, Bildzähler in der Beschriftung. */
#workflow-screens-dialog[open]{grid-template-rows:auto auto auto minmax(0,1fr)}
.workflow-screen-head{display:grid;grid-template-columns:1fr auto 1fr;gap:12px}
.workflow-screen-head h2{justify-self:start}.workflow-screen-head #workflow-screens-close{justify-self:end}
.workflow-screen-nav{display:flex;gap:10px;align-items:center;justify-content:center}
#clear,#reset-filters,button[data-action="clear-all"]{background:#f3d9d5;border-color:#c79c94}
#clear:hover,#reset-filters:hover,button[data-action="clear-all"]:hover{background:#e9c6c0}
@media(max-width:650px){.workflow-screen-head{gap:6px;grid-template-columns:minmax(0,1fr) auto auto}.workflow-screen-head h2{font-size:.86rem}.workflow-screen-nav{gap:5px}.workflow-screen-nav span{display:none}.workflow-screen-nav button{padding:4px 9px}.workflow-screen-head #workflow-screens-close{font-size:.75rem;padding:4px 7px}}

/* Navigation tritt gegenüber Aktionen optisch zurück. */
#up{background:#faf5ee;border-color:#e4d4c4;font-weight:400;color:#896f59}
#up:hover{background:#f1e8dc}
#workflow-screens-dialog .workflow-screen-nav .tool,#workflow-screens-dialog #workflow-screens-close{padding:3px 10px;min-height:0;line-height:1.25}
@media(max-width:650px){#workflow-screens-dialog .workflow-screen-nav .tool,#workflow-screens-dialog #workflow-screens-close{padding:3px 8px}}

#encoder-result-text{font-style:italic}
@media(max-width:820px){header #workflow-launch{padding:2px 9px;min-height:0;line-height:1.2;font-size:.75rem}}

.card .actions button[data-action="prev"]:not(.origin-checked):not(.origin-explained):not(.origin-empty),.card .actions button[data-action="next"]:not(.origin-checked):not(.origin-explained):not(.origin-empty){background:#b9bfc2;border-color:#adb4b8;color:#fff;font-weight:400}
.card .actions button[data-action="prev"]:not(.origin-checked):not(.origin-explained):not(.origin-empty):hover:enabled,.card .actions button[data-action="next"]:not(.origin-checked):not(.origin-explained):not(.origin-empty):hover:enabled{background:#a8b0b5;border-color:#98a2a8}

/* Sichtbarer Rand des Workflow-Rueckbuttons auf dunklem Header. */
#workflow-back{border:3px solid #fff}

/* Aktive Karte klar von Hover unterscheiden; Verlaufssprung links ausrichten. */
.card.marked,.card.marked:hover{background:#f7e8e5;border-color:#c47a70}
.card.history-target{grid-column:1}

#workflow-screen-image{cursor:pointer}#workflow-screen-image:focus-visible{outline:3px solid #bf6b2e;outline-offset:3px}

/* Programmatisch fokussierte Dialogtitel ohne dekorativen Fokusrahmen. */
dialog h2[tabindex="-1"]:focus{outline:none;box-shadow:none}
.card-favorite[aria-pressed="true"]{color:#bd8500;background:#fbefcb}

#favorites-dialog::backdrop{background:#21160c55}
@media(min-width:821px){#workflow-screens-dialog{width:min(84vw,calc(153vh - 221px));width:min(84vw,calc(153dvh - 221px))}.workflow-screen-stage{display:flex;align-items:center;justify-content:center}#workflow-screen-image{flex:0 0 auto}}

/* Hilfsseite: native Ankerspruenge ohne Abstand der Suchleiste. */
html:has(body[data-page-name^="hmc-metaphern-benefits"]){scroll-padding-top:12px}
.workflow-screen-close{justify-self:end;display:flex;flex-direction:column;align-items:center;gap:2px}
.workflow-screen-close small{font-size:.7rem;line-height:1.1;color:var(--muted);font-weight:400}

.workflow-screen-navigation{display:flex;flex-direction:column;align-items:center;gap:2px}
#workflow-screens-dialog .workflow-key-hint{font-size:.8rem;line-height:1.2;color:var(--muted);font-weight:400}
#workflow-screens-dialog.touch-controls .workflow-key-hint{display:none}
@media(pointer:coarse),(any-pointer:coarse){#workflow-screens-dialog .workflow-key-hint{display:none}}

.card.marked .badge{box-shadow:inset 0 0 0 1px #c58d87}
.help-content a.tool{display:inline-block;padding:4px 12px;line-height:1.3;text-decoration:none}
#alphabet-toggle{margin-right:auto;padding-top:4px;padding-bottom:4px}
@media(max-width:820px){#alphabet-toggle{display:none!important}}

/* Gleiche Aufklapppfeile und Textabstaende beider Filterkacheln. */
.situation-entry>summary{display:flex;align-items:center;gap:18px;list-style:none}
.situation-entry>summary::-webkit-details-marker{display:none}
.situation-entry>summary::before,#business-filter-body>summary::before{content:'▸';font-size:1rem;line-height:1.4;flex:0 0 8px;width:8px}
.situation-entry[open]>summary::before,#business-filter-body[open]>summary::before{content:'▾'}
#business-filter-body>summary{gap:18px}
#alphabet-toggle{margin-left:112px}
@media(max-width:820px){#alphabet-toggle{display:none!important}}
@media(max-width:650px){#business-filter-body>summary{column-gap:12px}.situation-entry>summary{gap:12px;padding-left:10px}}

@media(max-width:820px){.actions [data-action="trail-reset"]{display:none!important}}

.actions [data-action="prev"],.actions [data-action="trail-reset"],.actions [data-action="next"]{order:-1}
.actions .copyright{margin-left:7px}

#repertoire-dialog{width:min(720px,94vw);max-width:720px;max-height:90dvh;overflow:auto}.repertoire-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.repertoire-head h2{margin:0}.repertoire-params{display:flex;gap:14px;margin-top:18px}.repertoire-params label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;color:var(--muted)}.repertoire-params label:first-child{flex:1}.repertoire-params select{font:inherit;padding:7px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--brown);max-width:100%}.repertoire-text{font-size:1.16rem;line-height:1.55;color:var(--brown);padding:18px 0;min-height:120px}.repertoire-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.repertoire-actions .status{margin:0}.repertoire-actions #repertoire-copy{margin-left:auto}header .repertoire-launch{background:#fff8ed;color:var(--brown);padding:6px 12px}.view-actions .repertoire-launch{display:none}html.compact-mode .view-actions .repertoire-launch{display:inline-block}@media(max-width:650px){.repertoire-params{flex-direction:column;gap:9px}.repertoire-text{font-size:1.05rem;min-height:0;padding:12px 0}.repertoire-head h2{font-size:1.1rem}header .repertoire-launch{padding:3px 10px;font-size:.82rem}#repertoire-dialog{padding:16px}}

#repertoire-dialog .tool{padding:3px 10px;line-height:1.25;min-height:0;font-size:.87rem}#repertoire-position{font-weight:700}.repertoire-params strong{font-weight:700;color:var(--brown)}

#repertoire-situation,#repertoire-position{font-weight:700}.repertoire-params label{min-width:0}.repertoire-params{gap:10px}#repertoire-dialog{width:min(860px,94vw);max-width:860px}

.repertoire-key-hint{display:block;margin-top:5px;font-size:.8rem;color:var(--muted)}#repertoire-dialog.touch-controls .repertoire-key-hint{display:none}@media(pointer:coarse),(any-pointer:coarse){.repertoire-key-hint{display:none}}

/* Repertoire: independent, compact metaphor selector */
#repertoire-metaphor{font:inherit;font-weight:700;padding:7px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--brown);min-height:0;cursor:pointer}#repertoire-metaphor:disabled{opacity:.5;cursor:default}.repertoire-metaphor-field{min-width:70px}.repertoire-footer{text-align:center}.repertoire-text strong{font-weight:700}@media(max-width:650px){.repertoire-metaphor-field #repertoire-metaphor{width:70px}}

#repertoire-dialog .repertoire-text{height:clamp(160px,24vh,210px);min-height:0;overflow:auto;box-sizing:border-box;scrollbar-gutter:stable;padding:12px 4px 12px 0}

@media(max-width:650px){.repertoire-params{display:grid;grid-template-columns:70px minmax(0,1fr) minmax(0,1.25fr);gap:9px}.repertoire-params label:first-child{grid-column:1 / -1}.repertoire-params select{width:100%;box-sizing:border-box}}

.repertoire-separator{display:inline-block;margin-inline:.65em}.repertoire-overview strong{font-weight:700}

.repertoire-title-count{display:inline-block;white-space:nowrap;margin-left:1em;font-size:.8em}

/* Repertoire: both cyclic selectors above, actions centred below. */
#repertoire-next,#repertoire-metaphor{font:inherit;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--brown);min-height:35px;box-sizing:border-box;cursor:pointer;font-weight:400;white-space:nowrap}
#repertoire-next strong,#repertoire-metaphor strong{font-weight:700}.repertoire-sentence-field,.repertoire-metaphor-field{width:65px;min-width:65px;position:relative}
.repertoire-sentence-field .repertoire-key-hint{position:absolute;top:100%;left:0;right:0;text-align:center;font-size:.72rem;margin-top:2px;white-space:nowrap}
#repertoire-dialog .repertoire-actions{justify-content:center;gap:clamp(45px,10vw,110px);align-items:flex-start;flex-wrap:nowrap}
#repertoire-dialog .repertoire-actions #repertoire-copy{margin-left:0}.repertoire-copy-group,.repertoire-close-group{text-align:center}
#repertoire-dialog #repertoire-status{font-size:.78rem;min-height:1.4em;margin:5px 0 0;max-width:230px}
@media(max-width:650px){.repertoire-params{grid-template-columns:minmax(50px,.65fr) minmax(55px,.7fr) minmax(0,1fr) minmax(0,1.4fr)}.repertoire-sentence-field,.repertoire-metaphor-field{width:auto;min-width:0}.repertoire-metaphor-field #repertoire-metaphor{width:100%}.repertoire-params label:first-child{grid-column:1 / -1}#repertoire-dialog .repertoire-actions{gap:55px}}

/* Parameter-only keyboard navigation, clear inset/outset focus contrast. */
#repertoire-dialog .repertoire-params select,#repertoire-dialog .repertoire-params button{background:#f7eddf}
#repertoire-dialog .repertoire-params select:focus,#repertoire-dialog .repertoire-params button:focus{outline:3px solid #be652b;outline-offset:3px;border-color:#9e532b;box-shadow:0 0 0 2px #fffdf9}
#repertoire-metaphor[aria-disabled="true"]{opacity:.5;cursor:default}
.repertoire-controls-hint{text-align:center;margin-top:12px;font-size:.78rem}
#repertoire-dialog .repertoire-text{height:148px;padding:8px 4px 8px 0;margin-top:12px;margin-bottom:12px}
@media(max-width:650px){#repertoire-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;box-sizing:border-box;margin:0;border-radius:0}#repertoire-dialog[open]{display:flex;flex-direction:column}#repertoire-dialog .repertoire-text{flex:1;min-height:130px;height:auto}#repertoire-dialog .repertoire-footer{margin-bottom:0}}

@media(min-width:651px){#repertoire-dialog .repertoire-actions .tool{padding:7px 18px;font-size:.95rem;line-height:1.3}}
.repertoire-controls-hint strong{font-weight:700}

.repertoire-mobile-cycle{display:none}
@media(max-width:820px){header a[href*="hinweise-zur-metaphernseite.html"]{display:none!important}}
@media(max-width:650px){#repertoire-tone,#repertoire-vividness{display:none}#repertoire-dialog .repertoire-mobile-cycle{display:block;font:inherit;background:#f7eddf;color:var(--brown);border:1px solid var(--line);border-radius:8px;min-height:44px;padding:5px 6px;width:100%;box-sizing:border-box;cursor:pointer;line-height:1.15}#repertoire-dialog .repertoire-head{order:0}#repertoire-dialog .repertoire-overview{order:1}#repertoire-dialog .repertoire-text{order:2}#repertoire-dialog .repertoire-params{order:3;flex-shrink:0;margin:12px 0}#repertoire-dialog .repertoire-controls-hint{order:4}#repertoire-dialog .repertoire-actions{order:5;flex-shrink:0}#repertoire-dialog #repertoire-fallback{order:6}#repertoire-dialog .repertoire-footer{order:7}#repertoire-next,#repertoire-metaphor{min-height:44px}}

#repertoire-dialog .repertoire-params label{gap:9px}
@media(max-width:820px){header .repertoire-launch{padding:2px 9px;min-height:0;line-height:1.2;font-size:.75rem}}

.repertoire-copy-icon{width:1em;height:1em;vertical-align:-.12em;margin-left:.2em;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.repertoire-alpha-note{margin-left:.8em;font-weight:400}.repertoire-situation-heading{white-space:nowrap}
@media(min-width:651px){#repertoire-dialog .repertoire-params select,#repertoire-next,#repertoire-metaphor{height:36px;min-height:36px;box-sizing:border-box;padding-top:0;padding-bottom:0}}

.repertoire-key-description{margin-left:.65em}

.help-topic-divider{border:0;border-top:1px solid var(--line);margin:22px 0}

#suche h3{font-size:1.04rem;color:var(--brown);margin:14px 0 10px;font-weight:700}

.help-content>section{display:flow-root}.help-tile-up{float:right;display:inline-flex;align-items:center;white-space:nowrap;margin:0 0 10px 18px;padding:3px 9px;border:1px solid var(--line);border-radius:7px;background:#fcf7f0;color:var(--brown);font-size:.8rem;font-weight:400;text-decoration:none;line-height:1.3}.help-tile-up:hover{background:var(--soft)}.help-content>section>h2{margin-top:0}@media(max-width:650px){.help-tile-up span{display:none}.help-tile-up{margin-left:12px;padding:3px 9px}}

.help-content #workflow>p{max-width:none}

.clear-all-icon{display:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:820px){html.compact-mode .searchrow #case:not([hidden]){display:inline-flex}.searchrow #case{align-items:center;justify-content:center;min-width:32px;padding:5px 6px}.searchrow #clear .control-full,.searchrow #clear .control-short{display:none}.searchrow #clear .clear-all-icon{display:block;width:20px;height:20px}.searchrow #clear{display:inline-flex;align-items:center;justify-content:center;width:34px;min-width:34px;flex:0 0 34px;padding:0}}
