/* Chart-Baukasten (Seitenkonzept Phase 2, CIO 25.10.2026): Farben und Layout der Makros in `_charts.html`.
   Seiten laden ihn in `basis.html` (ein Jahr im Cache, CIO 09.11.2026); PDFs betten ihn über `stil()` ein. */
  .ch { --ch-grund:var(--paper); --ch-tint:20%; --ch-flaeche:14%; margin:10px 0 6px; }  /* --s0…--s2 in statisch/app.css (PDF: _druck.html) */
  details.karte .ch, form.karte .ch { --ch-grund:var(--card); }  /* Karten ohne Fläche: Grund wie das Papier */
  /* im Dunklen kräftiger: wie das Gerät, außer Hell ist gewählt, oder Dunkel ist gewählt (CIO 08.11.2026) */
  @media (prefers-color-scheme: dark) { :root:not([data-farbe="hell"]) .ch { --ch-tint:34%; --ch-flaeche:22%; } }
  :root[data-farbe="dunkel"] .ch { --ch-tint:34%; --ch-flaeche:22%; }
  .ch .AKTIEN, .ch .MARKT, .ch .TAEGLICH, .ch .LIQUID, .ch .PLUS, .ch .k1 { --f:var(--c1); }
  .ch .ANLEIHEN, .ch .QUARTAL, .ch .BETEILIGUNGEN, .ch .k2 { --f:var(--c2); }
  .ch .GOLD, .ch .ASPIRATION, .ch .JAHRE, .ch .IMMOBILIEN, .ch .k3 { --f:var(--c3); }
  .ch .KRYPTO, .ch .GEBUNDEN, .ch .WEITERE, .ch .MINUS, .ch .RUECKGANG, .ch .k4 { --f:var(--c4); }
  .ch .CASH, .ch .SICHERHEIT, .ch .DARLEHEN, .ch .kn { --f:var(--cn); }
  .ch .ALPHA, .ch .NETTO, .ch .SUMME, .ch .ZIEL, .ch .ink { --f:var(--ink); }
  .ch .s0 { --f:var(--s0); } .ch .s1 { --f:var(--s1); } .ch .s2 { --f:var(--s2); } /* Serien: eigene Linie, dann die Maßstäbe */
  .ch .s3 { --f:var(--s3, #6E57B5); } /* vierter Lauf im Backtest-Vergleich (#883); das Druckgerüst kennt --s3 nicht */
  /* Regime unter Makro › Analyse: Goldilocks grün, Reflation gold, Inflation rot, Deflation violett */
  .ch .GOLDILOCKS { --f:var(--c1); } .ch .REFLATION { --f:var(--c3); } .ch .INFLATION { --f:var(--c4); } .ch .DEFLATION { --f:var(--c2); }
  .ch-legende { display:flex; flex-wrap:wrap; gap:4px 16px; font-size:13px; color:var(--muted); margin:8px 0 0; }
  .ch-legende span { display:inline-flex; align-items:center; gap:6px; }
  .ch-legende i { display:inline-block; width:10px; height:10px; border-radius:var(--r-ctl, 2px); background:var(--f); }
  .ch-legende i.linie { width:16px; height:2px; border-radius:var(--r-ctl, 1px); }
  .ch-legende i.band { width:16px; background:color-mix(in srgb, var(--f) var(--ch-tint), var(--ch-grund)); }
  .ch-legende i.strich { width:2px; height:14px; border-radius:var(--r-ctl, 1px); background:var(--ink); }
  details.ch-zahlen { margin:6px 0 0; }
  details.ch-zahlen > summary { display:inline-block; cursor:pointer; list-style:none; padding:4px 0; font-size:13px; color:var(--muted); }
  details.ch-zahlen > summary::-webkit-details-marker { display:none; }
  details.ch-zahlen > summary::before { content:"▸ "; }
  details.ch-zahlen[open] > summary::before { content:"▾ "; }
  /* Bullet: Name | Spur mit Band, Balken und Strich | Wert; am Handy die Spur darunter */
  .chb-zeile { display:grid; grid-template-columns:minmax(110px, 22%) minmax(0, 1fr) minmax(6em, auto); gap:2px 16px; align-items:center; padding:7px 0; border-top:1px solid var(--line); }
  .chb-zeile:first-child { border-top:none; }
  .chb-name { min-width:0; overflow-wrap:anywhere; }
  .chb-spur { position:relative; height:22px; }
  .chb-spur::before { content:""; position:absolute; left:0; right:0; top:10px; height:2px; background:var(--line); }
  .chb-band { position:absolute; top:1px; height:20px; border-radius:var(--r-ctl, 4px); background:color-mix(in srgb, var(--f) var(--ch-tint), var(--ch-grund)); }
  .chb-balken { position:absolute; left:0; top:6px; height:10px; border-radius:0 var(--r-ctl, 4px) var(--r-ctl, 4px) 0; background:var(--f); }
  .chb-ueber { position:absolute; right:-12px; top:0; line-height:22px; font-weight:700; color:var(--f); }
  .chb-ziel { position:absolute; top:-1px; width:2px; height:24px; margin-left:-1px; border-radius:var(--r-ctl, 1px); background:var(--ink); box-shadow:0 0 0 2px var(--ch-grund); }
  .chb-wert { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
  .chb-wert.warn { color:var(--warn); font-weight:600; }
  .chb-wert .ok { color:var(--pass); }
  .chb-hinweis { grid-column:1 / -1; font-size:13px; color:var(--muted); }
  @media (max-width:560px) {
    .chb-zeile { grid-template-columns:minmax(0, 1fr) auto; }
    .chb-spur { grid-column:1 / -1; grid-row:2; }
    .chb-hinweis { grid-row:3; }
  }
  /* Reichweite im Stresstest (Reiter FIRE, #933): Die Texte rechts sind verschieden lang – feste Spalten, damit
     Band und Strich in jeder Zeile an derselben Stelle stehen, der Text gleich neben der Spur; am Handy steht die
     Spur ohnehin darunter */
  @media (min-width:561px) {
    .ch[data-chart="stresstest"] .chb-zeile { grid-template-columns:minmax(110px, 25%) minmax(0, 1fr) 13.5em; }
    .ch[data-chart="stresstest"] .chb-wert { white-space:normal; text-align:left; }
  }
  /* Wasserfall und Leiter: Säulen in einer Fläche, Beträge darüber, Namen darunter */
  .chw-kopf { display:flex; justify-content:space-between; gap:12px; font-size:13px; color:var(--muted); }
  .chw, .chr { position:relative; height:190px; margin:8px 0 34px; }
  .chw-null, .chr-grund { position:absolute; left:0; right:0; height:0; border-top:1px solid var(--muted); }
  .chr-grund { bottom:0; }
  .chw-saeule { position:absolute; width:24px; margin-left:-12px; border-radius:var(--r-ctl, 3px); background:var(--f); }
  .chw-text, .chr-text { position:absolute; transform:translate(-50%, -100%); padding-bottom:3px; font-size:13px; font-weight:600; white-space:nowrap; font-variant-numeric:tabular-nums; }
  .chw-text.unten { transform:translate(-50%, 0); padding:3px 0 0; }
  .chw-name, .chr-name { position:absolute; top:100%; margin-top:6px; transform:translateX(-50%); font-size:12px; line-height:1.3; color:var(--muted); text-align:center; white-space:nowrap; }
  .chr { margin-bottom:48px; }
  .chr-name { white-space:normal; width:max-content; max-width:min(24%, 9.5em); }
  .chr-seg { position:absolute; width:28px; margin-left:-14px; background:var(--f); box-shadow:0 2px 0 var(--ch-grund); }
  .chr-seg.oben { border-radius:var(--r-ctl, 4px) var(--r-ctl, 4px) 0 0; }
  .chr-bedarf { position:absolute; left:0; right:0; height:0; border-top:2px solid var(--ink); }
  .chr-bedarf span { position:absolute; right:0; transform:translateY(-100%); padding:0 4px 2px; font-size:12px; background:color-mix(in srgb, var(--ch-grund) 85%, transparent); }
  @media (max-width:560px) { .chr-bedarf span { display:none; } } /* am Handy steht der Bedarf in der Legende */
  /* Bilanz: Zeilen Besitz, Darlehen, Netto */
  .chl-zeile { display:grid; grid-template-columns:minmax(90px, 16%) minmax(0, 1fr) minmax(6.5em, auto); gap:2px 14px; align-items:center; padding:5px 0; }
  .chl-spur { position:relative; height:18px; }
  .chl-stueck { position:absolute; top:2px; height:14px; background:var(--f); }
  .chl-stueck.letztes { border-radius:0 var(--r-ctl, 4px) var(--r-ctl, 4px) 0; }
  .chl-stueck.DARLEHEN { border-radius:var(--r-ctl, 4px); }
  .chl-wert { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; font-weight:600; }
  .chl-zeile.netto { border-top:1px solid var(--line); margin-top:2px; padding-top:7px; }
  /* Kosten: wie die Bilanz, die Spanne der Bankgebühr hell; klein im Teaser nur die zwei Balken */
  .chk-band { position:absolute; top:2px; height:14px; border-radius:0 var(--r-ctl, 4px) var(--r-ctl, 4px) 0; background:color-mix(in srgb, var(--f) var(--ch-tint), var(--ch-grund)); }
  .ch.mini .chl-zeile { display:block; padding:2px 0; }
  .ch.mini .chl-spur { height:12px; } .ch.mini .chl-stueck, .ch.mini .chk-band { top:1px; height:10px; }
  @media (max-width:560px) {
    .chl-zeile { grid-template-columns:minmax(0, 1fr) auto; }
    .chl-spur { grid-column:1 / -1; grid-row:2; }
  }
  /* Gruppierte Balken je Zeitraum: Name | Spuren ab der Nulllinie | Werte; am Handy der Name darüber */
  .chg-gruppe { display:grid; grid-template-columns:minmax(110px, 22%) minmax(0, 1fr) minmax(4.5em, auto); gap:2px 14px; align-items:center; padding:7px 0; border-top:1px solid var(--line); }
  .chg-gruppe:first-child { border-top:none; }
  .chg-name { grid-row:span var(--n); }
  .chg-spur { grid-column:2; position:relative; height:18px; }
  .chg-spur::before { content:""; position:absolute; left:var(--null); top:-1px; bottom:-1px; border-left:1px solid var(--muted); }
  .chg-balken { position:absolute; top:0; height:18px; border-radius:0 var(--r-ctl, 4px) var(--r-ctl, 4px) 0; background:var(--f); }
  .chg-balken.minus { border-radius:var(--r-ctl, 4px) 0 0 var(--r-ctl, 4px); }
  .chg-wert { grid-column:3; text-align:right; white-space:nowrap; font-size:14px; line-height:18px; color:var(--muted); font-variant-numeric:tabular-nums; }
  .chg-wert.eigen { color:var(--ink); font-weight:600; }
  .chg-wert span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .chg-leer { grid-column:2 / -1; font-size:14px; color:var(--muted); }
  .ch-titel { font:var(--gewicht-serif, 600) 17px/1.3 var(--serif); margin:28px 0 4px; }  /* Überschrift eines Charts unter einem h2 */
  @media (max-width:560px) {
    .chg-gruppe { grid-template-columns:minmax(0, 1fr) auto; }
    .chg-name { grid-row:auto; grid-column:1 / -1; }
    .chg-spur, .chg-leer { grid-column:1; } .chg-wert { grid-column:2; }
  }
  /* Säulen je Monat: Skala links neben der Fläche, je Monat eine Gruppe ab der Nulllinie, unten die Monate */
  .chs { --rand:3.4rem; }  /* rem: Säulen und Monatsnamen gleich weit eingerückt (in em stand die Zeile darunter
                              mit kleinerer Schrift bis zu 10 px zu weit links) */
  .chs .chv-anzeige { margin-bottom:12px; }
  .chs .chv-anzeige i { width:10px; height:10px; border-radius:var(--r-ctl, 2px); }
  .chs-flaeche { position:relative; height:190px; touch-action:pan-y; }
  .chs-gitter { position:absolute; left:var(--rand); right:0; height:0; border-top:1px solid var(--line); }
  .chs-gitter.null { border-top-color:var(--muted); }
  .chs-gitter span { position:absolute; right:100%; transform:translateY(-50%); padding-right:6px; font-size:12px; color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums; }
  .chs-saeulen { position:absolute; left:var(--rand); right:0; top:0; bottom:0; }
  .chs-monat { position:absolute; top:-4px; bottom:-4px; border-radius:var(--r-ctl, 4px); cursor:pointer; }
  .chs-monat.aktiv { background:color-mix(in srgb, var(--ink) 8%, transparent); }
  .chs-gruppe { position:absolute; left:10%; right:10%; top:4px; bottom:4px; display:flex; justify-content:center; gap:2px; }
  .chs-saeule { position:relative; flex:0 1 24px; }
  .chs-balken { position:absolute; left:0; right:0; border-radius:var(--r-ctl, 3px) var(--r-ctl, 3px) 0 0; background:var(--f); }
  .chs-balken.minus { border-radius:0 0 var(--r-ctl, 3px) var(--r-ctl, 3px); }
  .chs-x { position:relative; height:32px; margin:6px 0 0 var(--rand); font-size:12px; line-height:1.25; color:var(--muted); }
  .chs-x span { position:absolute; transform:translateX(-50%); text-align:center; white-space:nowrap; }
  .chs-x small { display:block; font-size:11px; }
  @media (max-width:560px) {
    .chs { --rand:2.6rem; }
    .chs-flaeche { height:170px; }
    .chs-gruppe { left:6%; right:6%; gap:1px; }
    .chs-saeule { flex-basis:18px; }
    .chs-gitter span, .chs-x { font-size:11px; }
    .chs-gitter span { padding-right:4px; }
    .chs-x small { font-size:10px; }
  }
  /* Verlauf: Fläche und Linien als SVG, Beschriftung und Punkte als HTML (bleiben am Handy unverzerrt) */
  .chv-anzeige { display:flex; flex-wrap:wrap; gap:2px 14px; min-height:20px; margin-bottom:20px; font-size:13px; color:var(--muted); }
  .chv-anzeige b { color:var(--ink); font-variant-numeric:tabular-nums; }
  .chv-anzeige i { display:inline-block; width:14px; height:2px; margin-right:5px; vertical-align:middle; background:var(--f); }
  .chv-flaeche { position:relative; height:220px; touch-action:pan-y; cursor:crosshair; }
  .chv-flaeche svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
  .chv-flaeche .linie { fill:none; stroke:var(--f); stroke-width:2; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke; }
  /* Maßstäbe im Rückgang vom Hoch (CIO 10.11.2026) wie im Linienchart: s1 gestrichelt, s2 gepunktet */
  .chv-flaeche .linie:is(.s1, .s2) { stroke-linecap:butt; }
  .chv > .chv-anzeige :is(.s1, .s2) i { height:0; background:none; border-top:2px dashed var(--f); }
  .chv > .chv-anzeige .s2 i { border-top-style:dotted; }
  .chv-flaeche .flaeche { fill:color-mix(in srgb, var(--f) var(--ch-flaeche), transparent); fill-opacity:1; stroke:none; }
  /* Anteile gestapelt (Regime, Allokation): kräftigere Bänder auf dem Grund, damit die Grenzen zu lesen sind.
     Diese Datei steht auch in PDFs und auf den Seiten der Demo – keine Namen aus den Reports (Sperrliste). */
  .ch[data-chart="regime"] .flaeche, .ch[data-chart="makro-regime"] .flaeche, .ch[data-chart="allokation"] .flaeche { fill:color-mix(in srgb, var(--f) calc(var(--ch-flaeche) * 2.6), var(--ch-grund)); }
  .chv-gitter { position:absolute; left:0; right:0; height:0; border-top:1px solid var(--line); }
  .chv-y { position:absolute; left:0; transform:translateY(-110%); padding:0 3px; border-radius:var(--r-ctl, 3px); font-size:12px; color:var(--muted); background:color-mix(in srgb, var(--ch-grund) 85%, transparent); pointer-events:none; }
  .chv-waag { position:absolute; left:0; right:0; height:0; border-top:1px solid var(--f); }
  .chv-waag span { position:absolute; right:0; transform:translateY(-110%); padding:0 3px; border-radius:var(--r-ctl, 3px); font-size:12px; color:var(--ink); background:color-mix(in srgb, var(--ch-grund) 85%, transparent); white-space:nowrap; }
  .chv-punkt { position:absolute; width:10px; height:10px; margin:-5px 0 0 -5px; border-radius:var(--r-pill, 50%); background:var(--f); box-shadow:0 0 0 2px var(--ch-grund); pointer-events:none; }
  /* Marken 6 px vom Punkt, auf dem Grund des Charts: läuft eine Linie oder Gitterlinie hindurch, bleibt der Text lesbar */
  .chv-marke { position:absolute; padding:0 3px; border-radius:var(--r-ctl, 3px); font-size:12px; font-weight:600; white-space:nowrap;
               pointer-events:none; background:color-mix(in srgb, var(--ch-grund) 85%, transparent); }
  .chv-marke.unten { margin-top:6px; } .chv-marke.oben { margin-top:-6px; }
  .chv-marke.oben.mitte { transform:translate(-50%, -100%); } .chv-marke.oben.links { transform:translate(0, -100%); } .chv-marke.oben.rechts { transform:translate(-100%, -100%); }
  .chv-marke.unten.mitte { transform:translate(-50%, 0); } .chv-marke.unten.links { transform:none; } .chv-marke.unten.rechts { transform:translate(-100%, 0); }
  .chv-vorne { margin-right:16px; }  /* Text einer nahen Marke in derselben Zeile (`charts.ueberlappen`) */
  .chv-zeiger { position:absolute; top:0; bottom:0; width:0; border-left:1px solid var(--muted); pointer-events:none; }
  .chv-x { position:relative; height:18px; margin-top:4px; font-size:12px; color:var(--muted); }
  .chv-x span { position:absolute; transform:translateX(-50%); white-space:nowrap; }
  .chv-x span.erste { transform:none; } .chv-x span.letzte { transform:translateX(-100%); }
  @media (max-width:560px) { .chv-flaeche { height:200px; } }
  /* klein im Teaser: nur die Form, ohne Beschriftung */
  .ch.mini { margin:6px 0 2px; }
  .chv.mini .chv-flaeche { height:52px; cursor:inherit; }
  .chv.mini .linie { stroke-width:1.5; }
  .chr.mini { height:52px; margin:6px 0 2px; }
  .chr.mini .chr-seg { width:18px; margin-left:-9px; }
  /* Punktbild (Makro › Analyse): je Signal eine Zeile, waagrecht der RSI; Ränder unter 30 und über 70 getönt */
  .chp { --chp-name:96px; }
  .chp-zeile { display:grid; grid-template-columns:var(--chp-name) minmax(0, 1fr); align-items:center; border-top:1px solid var(--line); }
  .chp-zeile:first-child { border-top:none; }
  .chp-name { font-size:13px; color:var(--muted); white-space:nowrap; padding-right:10px; }
  .chp-name .feld { display:inline-block; width:10px; height:10px; border-radius:var(--r-ctl, 2px); margin-right:6px; vertical-align:-1px; }
  .chp-spur { position:relative; height:calc(16px + var(--stufen, 1) * 36px);
              background:linear-gradient(to right, var(--chp-zone) 0 30%, transparent 30% 70%, var(--chp-zone) 70% 100%); }
  .chp { --chp-zone:color-mix(in srgb, var(--muted) 9%, transparent); }
  .chp-spur::after { content:""; position:absolute; left:50%; top:0; bottom:0; border-left:1px dashed var(--line); }
  .chp-punkt { position:absolute; top:50%; width:8px; height:8px; margin:-4px 0 0 -4px; border-radius:var(--r-pill, 50%); opacity:.55; z-index:1; }
  .chp-punkt.gross { width:12px; height:12px; margin:-6px 0 0 -6px; opacity:1; box-shadow:0 0 0 2px var(--ch-grund); z-index:2; }
  .chp-punkt.gedraengt { opacity:1; box-shadow:0 0 0 2px var(--ch-grund), 0 0 0 4px var(--block); z-index:3; }
  .chp-text { position:absolute; transform:translateX(-50%); padding:0 3px; border-radius:var(--r-ctl, 3px); font-size:12px; line-height:16px; white-space:nowrap; color:var(--muted);
              background:color-mix(in srgb, var(--ch-grund) 85%, transparent); pointer-events:none; z-index:4; }
  .chp-text.gross { color:var(--ink); font-weight:600; }
  .chp-text.oben { bottom:calc(50% + 8px + var(--stufe) * 18px); } .chp-text.unten { top:calc(50% + 8px + var(--stufe) * 18px); }
  .chp-x { display:grid; grid-template-columns:var(--chp-name) minmax(0, 1fr); margin-top:4px; font-size:12px; color:var(--muted); }
  .chp-achse { position:relative; height:18px; }
  .chp-achse span { position:absolute; transform:translateX(-50%); white-space:nowrap; }
  .chp-achse span.erste { transform:none; } .chp-achse span.letzte { transform:translateX(-100%); }
  .chp-zonen { margin-top:0; }
  .ch-legende i.punkt { border-radius:var(--r-pill, 50%); }
  .ch-legende i.ring { border-radius:var(--r-pill, 50%); background:var(--grau); box-shadow:0 0 0 2px var(--ch-grund), 0 0 0 4px var(--block); margin:0 3px; }
  @media (max-width:560px) { .chp { --chp-name:74px; } .chp-name { font-size:12px; padding-right:6px; } .chp-name .feld { display:none; } }
  .ch-legende i.punkt.chp-l { width:8px; height:8px; border-radius:var(--r-pill, 50%); background:var(--grau); opacity:.55; }
  .ch-legende i.punkt.chp-l.gross { width:12px; height:12px; opacity:1; }
  details.ch-zahlen tr.stark td:first-child { font-weight:600; }
  /* Regime des Reports als Band unter dem Verlauf der Analyse */
  .regime-band { position:relative; height:8px; margin:8px 0 2px; border-radius:var(--r-ctl, 2px); overflow:hidden; }
  .regime-band span { position:absolute; top:0; bottom:0; background:var(--f); }
  .regime-band .NICHT_VORLIEGEND { --f:var(--line); background:var(--line); }
  /* Seite „Marktregime“ für Testnutzer (#1202): zwei Farben, kein Name eines Regimes */
  .ch .risk_on { --f:var(--c1); } .ch .risk_off { --f:var(--c4); }
  /* Makro › Regime (#1006): blasser, wo nicht jeder Markt einen Trend hat; ein Strich je Wechsel im Verlauf */
  .regime-band .wenige { background:color-mix(in srgb, var(--f) 45%, var(--ch-grund)); }
  .chv-senk { position:absolute; top:0; bottom:0; width:0; border-left:1px dashed var(--f); opacity:.8; pointer-events:none; }
  /* Kopf (mit der Klasse ch: Farben und Ton im Dunklen wie die Charts): links das Regime in seiner Farbe, „seit“,
     Stimmen und Balken der Anteile mit Lücke zwischen den beiden Zeilen des Felds; rechts das Feld der vier
     Regime, das Regime des Tages gefüllt und gerahmt */
  .mr-kopf { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:20px 36px; align-items:start; }
  .mr-kopf p { margin:0; }
  .mr-am { font-size:13.5px; color:var(--muted); }
  .mr-name { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 12px; margin:4px 0 8px !important; }
  .mr-name i { display:inline-block; width:12px; height:12px; border-radius:var(--r-ctl, 2px); background:var(--f); }
  .mr-name strong { font:400 36px/1.1 var(--serif); letter-spacing:-.02em; color:var(--f); }
  .mr-name span { font-size:15px; color:var(--muted); }
  .mr-name.mr-ohne strong { font-size:28px; color:var(--ink); }
  .mr-name.mr-ohne { display:block; color:var(--muted); }
  .mr-satz { margin-top:4px !important; color:var(--muted); font-size:14px; }
  .mr-balken { display:flex; height:8px; margin:14px 0 4px; }
  .mr-balken span { height:100%; background:var(--f); }
  .mr-balken span + span { margin-left:1px; }
  .mr-balken .INFLATION { margin-left:8px; }  /* Lücke vor der zweiten Zeile des Felds */
  .mr-vorlaeufig { margin-top:8px !important; }
  .mr-feld { display:grid; grid-template-columns:auto minmax(0, 1fr) minmax(0, 1fr); gap:6px; font-size:13px; }
  .mr-spalte { align-self:end; padding:0 2px 2px; color:var(--muted); }
  .mr-zeile { align-self:center; padding-right:4px; color:var(--muted); white-space:nowrap; }
  .mr-zelle { display:flex; flex-direction:column; gap:1px; min-width:0; padding:9px 11px; border:1px solid var(--line); border-left:4px solid var(--f);
              border-radius:var(--r-ctl, 4px); font-variant-numeric:tabular-nums; }
  .mr-zelle strong { font-size:14px; font-weight:600; }
  .mr-anteil { font:400 22px/1.15 var(--serif); }
  .mr-stimmen { color:var(--muted); }
  .mr-zelle.heute { border:2px solid var(--f); border-left-width:4px; background:color-mix(in srgb, var(--f) var(--ch-tint), var(--ch-grund)); }
  .mr-abweichung { color:var(--ink); }
  .mr-abweichung strong { color:var(--warn); font-weight:600; }
  .mr-band-text { margin:2px 0 0; }
  /* Band der abstimmenden Märkte (Historie ab 1998, PR 5, #1129): schmal unter dem Band des Regimes, je Stück so
     hoch wie die Zahl der Märkte – die größte Zahl im Fenster füllt es; in Schriftfarbe, eine Lücke bleibt leer */
  .mr-anzahl { position:relative; height:12px; margin:3px 0 2px; border-bottom:1px solid var(--line); }
  .mr-anzahl span { position:absolute; bottom:0; background:color-mix(in srgb, var(--ink) 55%, var(--ch-grund)); }
  .mr-fuss { margin-top:28px; }
  @media (max-width:760px) { .mr-kopf { grid-template-columns:minmax(0, 1fr); } }
  @media (max-width:560px) { .mr-name strong { font-size:32px; } .mr-zelle { padding:8px 9px; } .mr-anteil { font-size:20px; } }
  /* Trendband (Makro › Momentum, #1011): Läufe als Stücke mit Lage in Prozent wie `.regime-band` – oben eine
     Fläche, unten eine Fläche, in der Mitte ein Strich, eine Lücke bleibt leer. Aufwärtstrend Petrol, Abwärtstrend
     Rostbraun (`--rost`), neutral gedämpft; nie die Statusfarben – die Richtung steht immer auch in der Lage. */
  .ch .AUFWAERTS { --f:var(--c1); } .ch .ABWAERTS { --f:var(--rost, #A4480C); } .ch .NEUTRAL { --f:var(--muted); }
  .trendband { display:block; position:relative; height:22px; }
  .trendband span { position:absolute; background:var(--f); }
  .trendband .oben { top:3px; height:7px; } .trendband .unten { bottom:3px; height:7px; } .trendband .mitte { top:10px; height:2px; }
  /* Kurs mit Phasen (Makro › Momentum, #1012): die Linie in Schriftfarbe, dahinter je Lauf eine helle Fläche über die
     ganze Höhe, oben am Beginn einer Phase ihr Zeichen – die Richtung steht nie in der Farbe allein */
  .ch .KURS { --f:var(--ink); }
  .chv-band { position:absolute; top:0; bottom:0; background:color-mix(in srgb, var(--f) var(--ch-flaeche), transparent); pointer-events:none; }
  .chv-zeichen { position:absolute; top:3px; margin-left:4px; font-size:13px; font-weight:700; line-height:1; color:var(--f); pointer-events:none; }
  /* Märkte am Stand-Tag (#1007): Zählstreifen, je Anlageklasse und Markt eine Zeile mit Trend und Feldern der
     Regime. Farbig sind nur die Felder der Regime; Trendbänder, Zeichen und Stand-Tag stehen in Schriftfarbe */
  .mr-maerkte, .mz-stimmen { margin-top:36px; }
  .mr-maerkte-kopf { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 18px; }
  .mr-maerkte-kopf h2 { margin:0; }
  .mr-stand { margin:0; font-size:14px; color:var(--muted); }
  .mr-stand strong { color:var(--ink); font-weight:600; }
  .mr-tag-wahl { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin:12px 0 6px; font-size:14px; }
  .mr-tag-wahl input[type="date"] { padding:4px 8px; border:1px solid var(--line-2); border-radius:var(--r-ctl, 4px); background:transparent; color:inherit; font:inherit; }
  .mr-tag-wahl button { padding:4px 12px; }
  .mr-maerkte-text { max-width:72ch; margin:6px 0 12px; }
  .mr-kontrolle { margin:8px 0 14px; padding:10px 12px; border-left:3px solid var(--warn); background:color-mix(in srgb, var(--warn) 9%, transparent); font-size:14px; }
  .mr-zaehlstreifen { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap:12px 20px; margin:10px 0 18px; }
  .mr-gruppe { display:grid; align-content:start; gap:5px; min-width:0; }
  .mr-felder { display:flex; flex-wrap:wrap; gap:3px; min-height:12px; }
  .mz-feld { width:12px; height:12px; border-radius:var(--r-ctl, 2px); }
  .mr-gruppe.BESTAETIGEN .mz-feld { background:var(--f); }
  .mr-gruppe.ANDERE .mz-feld { background:color-mix(in srgb, var(--ink) 55%, transparent); }
  .mr-gruppe.NEUTRAL .mz-feld { background:var(--line-2); }
  .mr-gruppe.OHNE_STIMME .mz-feld { box-shadow:inset 0 0 0 1.5px var(--muted); }
  .mr-gruppe.OHNE_WERT .mz-feld { border:1px dashed var(--line-2); }
  .mr-gruppe-text { font-size:13px; color:var(--muted); }
  .mr-gruppe-text b { margin-right:2px; color:var(--ink); font-size:15px; font-variant-numeric:tabular-nums; }
  .mr-liste { display:grid; margin:8px 0 6px; }
  .mz-zeile { display:grid; grid-template-columns:minmax(0, 1.15fr) minmax(70px, 1fr) 14px 100px; gap:0 10px; align-items:center; min-height:30px; padding:4px 0; }
  .mr-kopfzeile { align-items:end; padding-bottom:6px; font-size:12px; color:var(--muted); }
  .mr-klasse { border-top:1px solid var(--ink); }
  .mr-klassenzeile { min-height:40px; cursor:pointer; list-style:none; }
  .mr-klassenzeile::-webkit-details-marker { display:none; }
  .mr-klassenzeile .mz-name b::before { content:"▸ "; color:var(--muted); font-weight:400; }
  .mr-klasse[open] > .mr-klassenzeile .mz-name b::before { content:"▾ "; }
  .mr-klassenzeile.fest { cursor:auto; }  /* Sicht der Nutzer (#1030): je Anlageklasse, nicht aufklappbar */
  .mr-klassenzeile.fest .mz-name b::before { content:none; }
  .mr-markt { border-top:1px solid var(--line); font-size:13px; }
  .mz-name { min-width:0; overflow-wrap:anywhere; line-height:1.3; }
  .mz-satz { display:block; font-size:12.5px; color:var(--muted); }
  .mr-trend { position:relative; min-width:0; height:22px; }
  .mr-trend-kopf { display:flex; flex-wrap:wrap; justify-content:space-between; gap:0 6px; height:auto; white-space:nowrap; }
  .mr-trend-kopf > span:nth-child(2) { order:-1; flex-basis:100%; text-align:center; white-space:normal; }  /* über den Daten */
  .mr-trend svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
  .mr-trend .mr-mitte { fill:none; stroke:var(--line-2); stroke-width:1; }
  .mr-trend .mr-auf, .mr-trend .mr-ab { fill:color-mix(in srgb, var(--ink) 50%, transparent); stroke:none; }
  .mr-trend .trendband { position:absolute; inset:0; height:auto; }  /* Baustein aus Makro › Momentum */
  .mr-standlinie { position:absolute; top:-3px; bottom:-3px; width:0; border-left:1.5px dashed var(--muted); }
  .mr-zeichen { display:grid; place-items:center; color:var(--ink); }
  .mr-zeichen svg, .mr-legende svg { fill:currentColor; }
  .mr-regime { display:grid; grid-template-columns:repeat(4, 22px); gap:0 4px; justify-content:end; }
  .mr-regime-kopf { row-gap:4px; }
  .mr-risk { grid-column:span 2; padding-bottom:2px; border-bottom:1px solid var(--line-2); font-size:11px; text-align:center; white-space:nowrap; }
  .mr-rk { display:grid; justify-items:center; gap:4px; }
  .mr-rk i { width:10px; height:10px; border-radius:var(--r-ctl, 2px); background:var(--f); }
  .mr-rk span { writing-mode:vertical-rl; transform:rotate(180deg); font-size:11px; line-height:1; }
  .mr-rk.stand span { color:var(--ink); font-weight:600; }
  .mr-fk, .mr-fm, .mr-fs { position:relative; display:grid; place-items:center; height:100%; min-height:22px; }
  .mr-fk::after { content:""; position:absolute; width:18px; height:18px; border:1px solid var(--line); border-radius:var(--r-ctl, 2px); box-sizing:border-box; }
  .mr-fk i { width:18px; height:18px; border-radius:var(--r-ctl, 2px); background:var(--f); transform:scale(var(--s, 1)); }
  .mr-fm i { width:14px; height:14px; border-radius:var(--r-ctl, 2px); background:var(--f); }
  .mr-fk.stand, .mr-fm.stand, .mr-fs.stand { background:color-mix(in srgb, var(--f) 12%, transparent); }
  .mr-fs { font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
  .mr-summenzeile { border-top:1px solid var(--ink); font-size:13px; }
  .mr-wartet { display:inline-block; margin-left:6px; padding:0 5px; border:1px dashed var(--line-2); border-radius:var(--r-ctl, 3px); font-size:11px; color:var(--muted); white-space:nowrap; }
  .mr-legende i.mr-fk-legende { width:12px; height:12px; background:var(--muted); }
  .mr-legende i.mr-stand-legende { width:0; height:14px; border-left:1.5px dashed var(--muted); background:none; border-radius:0; }
  /* So wird daraus das Regime: die Stimmen des Stand-Tags auf gemeinsamer Skala, die meisten markiert */
  .mr-summen { display:grid; gap:8px; max-width:640px; margin:12px 0; }
  .mr-summe { display:grid; grid-template-columns:110px minmax(40px, 1fr) 36px; gap:10px; align-items:center; font-size:14px; }
  .mr-summe-name { display:inline-flex; align-items:center; gap:6px; }
  .mr-summe-name i { width:10px; height:10px; border-radius:var(--r-ctl, 2px); background:var(--f); }
  .mr-summe-balken { position:relative; height:12px; }
  .mr-summe-balken::before { content:""; position:absolute; left:0; right:0; top:5px; height:2px; background:var(--line); }
  .mr-summe-balken span { position:absolute; left:0; top:0; bottom:0; border-radius:0 var(--r-ctl, 2px) var(--r-ctl, 2px) 0; background:var(--f); }
  .mr-summe b { text-align:right; font-variant-numeric:tabular-nums; font-weight:400; }
  .mr-summe.hoechste .mr-summe-name, .mr-summe.hoechste b { font-weight:700; }
  .mr-summe.hoechste .mr-summe-balken span { box-shadow:0 0 0 2px var(--ch-grund), 0 0 0 3px var(--f); }
  .mr-gleichstand { font-weight:600; }
  /* Letzter Wechsel (#1008): je Markt, der gedreht hat, Trend vorher und nachher in Schriftfarbe und je Regime ein
     Feld – gefüllt: eine Stimme kam dazu, Umriss: sie fiel weg; daneben netto je Regime ab der Nulllinie in der Mitte */
  .mw { margin-top:36px; }
  .mw h2 { margin:0 0 8px; }
  .mw-teile { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap:20px 48px; align-items:start; margin:12px 0 6px; }
  .mw-maerkte { min-width:0; }
  .mw-zeile { display:grid; grid-template-columns:minmax(0, 1fr) 62px 100px; gap:0 10px; align-items:center; min-height:30px; padding:4px 0; border-top:1px solid var(--line); font-size:14px; }
  .mw-kopfzeile { align-items:end; padding-bottom:6px; border-top:0; font-size:12px; color:var(--muted); }
  .mw-name { min-width:0; overflow-wrap:anywhere; line-height:1.3; }
  .mw-trend { display:inline-flex; align-items:center; gap:4px; color:var(--ink); }
  .mw-trend svg, .mw-legende svg { fill:currentColor; }
  .mw-pfeil { color:var(--muted); font-size:12px; }
  .mw-ohne { display:inline-block; width:11px; height:11px; border:1px dashed var(--muted); border-radius:var(--r-ctl, 2px); box-sizing:border-box; }
  .mw-f { display:grid; place-items:center; min-height:22px; }
  .mw-f i, .mw-legende i.dazu, .mw-legende i.weg { width:14px; height:14px; border-radius:var(--r-ctl, 2px); box-sizing:border-box; }
  .mw-f i.dazu { background:var(--f); }
  .mw-f i.weg { background:none; border:2px solid var(--f); }
  .mw-legende i.dazu { background:var(--muted); }
  .mw-legende i.weg { background:none; border:2px solid var(--muted); }
  .mw-netto { display:grid; gap:8px; min-width:0; }
  .mw-netto h3 { margin:0 0 2px; font-size:15px; }
  .mw-netto-zeile, .mw-achse { display:grid; grid-template-columns:110px minmax(60px, 1fr) 36px; gap:10px; align-items:center; font-size:14px; }
  .mw-spur { position:relative; height:12px; }
  .mw-spur::before { content:""; position:absolute; left:50%; top:-4px; bottom:-4px; border-left:1px solid var(--muted); }
  .mw-spur span { position:absolute; top:0; bottom:0; background:var(--f); }
  .mw-netto-zeile b { text-align:right; font-variant-numeric:tabular-nums; font-weight:600; }
  .mw-achse { font-size:12px; color:var(--muted); }
  .mw-achse > span:nth-child(2) { display:flex; justify-content:space-between; }
  /* Abgleich › Regime als Bild (#1010): zwei Kacheln mit Marke, zwei Bänder mit Strichen und dem Streifen der
     Tage mit verschiedenem Regime, je Report zwei Felder, Punkte der Summen, Felder je Markt. Farbe heißt Regime */
  .ar-kacheln { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap:10px 32px; margin:0 0 4px; }
  .ar-kachel { display:grid; gap:4px; min-width:0; padding:10px 0 4px; border-top:1px solid var(--line); }
  .ar-kachel.massgeblich { border-top:2px solid var(--ink); }
  .ar-titel { margin:0; font-size:13px; color:var(--muted); }
  .ar-regime { display:flex; flex-wrap:wrap; align-items:center; gap:2px 10px; margin:0; }
  .ar-regime i { width:14px; height:14px; border-radius:var(--r-ctl, 2px); background:var(--f); }
  .ar-regime strong { font-size:24px; font-weight:600; }
  .ar-regime span { color:var(--muted); font-size:14px; }
  .ar-regime.NICHT_VORLIEGEND i, .ar-feld.NICHT_VORLIEGEND { background:var(--line-2); }
  .ar-marke { display:flex; align-items:center; gap:8px; margin:6px 0 0; font-size:14px; }
  .ar-marke b { display:inline-grid; place-items:center; width:22px; height:22px; border:1.5px solid var(--ink); border-radius:var(--r-ctl, 3px); font-weight:700; }
  .ar-marke.anders { font-weight:600; }
  .ar-marke.anders b { background:var(--ink); color:var(--paper); }
  .ar-baender, .ar-felder { display:grid; gap:3px; margin:10px 0 4px; }
  .ar-name { margin:0; font-size:12px; color:var(--muted); }
  .ar-fett { font-size:14px; font-weight:600; color:var(--ink); }
  .ar-band { height:10px; margin:0; }
  .ar-striche { position:relative; height:6px; }
  .ar-strich { position:absolute; top:0; bottom:0; width:0; border-left:1px solid var(--muted); }
  .ar-anders { position:relative; height:5px; background:var(--line); }
  .ar-anders span { position:absolute; top:0; bottom:0; background:var(--ink); }
  .ar-achse { display:flex; justify-content:space-between; gap:12px; font-size:12px; color:var(--muted); }
  .ar-legende-text { margin:4px 0 0; }
  .ar-zeile { display:flex; gap:2px; height:10px; }
  .ar-feld { flex:1 1 0; min-width:0; background:var(--f); }
  .ar-marken { height:5px; }
  .ar-marken span { flex:1 1 0; min-width:0; }
  .ar-marken span.abweichung { background:var(--ink); }
  .ar-quoten { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap:16px 40px; align-items:start; margin:12px 0 4px; }
  .ar-legende i.ar-balken-legende { width:16px; height:10px; background:var(--ink); }
  .ar-punkte { display:grid; gap:8px; margin:0; }
  .ar-punkt { display:grid; grid-template-columns:110px minmax(60px, 1fr) 64px; gap:10px; align-items:center; font-size:14px; }
  .ar-punkt b { text-align:right; font-weight:400; font-variant-numeric:tabular-nums; white-space:nowrap; }
  .ar-skala { position:relative; height:22px; }
  .ar-skala::before { content:""; position:absolute; left:0; right:0; top:10px; height:2px; background:var(--line); }
  .ar-report, .ar-eigen { position:absolute; top:50%; transform:translate(-50%, -50%); box-sizing:border-box; }
  .ar-report { width:14px; height:14px; border:2px solid var(--f); }
  .ar-eigen { width:8px; height:8px; background:var(--f); }
  .ar-legende i.ar-report-legende { width:14px; height:14px; border:2px solid var(--muted); background:none; box-sizing:border-box; }
  .ar-legende i.ar-eigen-legende { width:8px; height:8px; background:var(--muted); }
  .ar-quellen { display:flex; flex-wrap:wrap; gap:12px 32px; margin:8px 0 4px; }
  .ar-gruppe { display:grid; gap:5px; min-width:0; }
  .ar-felder-klein { display:flex; flex-wrap:wrap; gap:3px; max-width:372px; min-height:12px; }
  .ar-markt { width:12px; height:12px; border-radius:var(--r-ctl, 2px); box-sizing:border-box; }
  .ar-gruppe.ECHT .ar-markt { background:color-mix(in srgb, var(--ink) 60%, transparent); }
  .ar-gruppe.NAEHERUNG .ar-markt { border:1.5px solid var(--ink); }
  .ar-gruppe.WARTET .ar-markt { border:1px dashed var(--muted); }
  .ar-gruppe-text { font-size:13px; color:var(--muted); }
  .ar-gruppe-text b { margin-right:2px; color:var(--ink); font-size:15px; font-variant-numeric:tabular-nums; }
  @media (max-width:560px) { .ar-punkt { grid-template-columns:96px minmax(40px, 1fr) 58px; gap:8px; } .ar-regime strong { font-size:20px; } }
  @media (max-width:560px) {
    .mw-zeile { grid-template-columns:minmax(0, 1fr) 56px 89px; gap:0 6px; }
    .mw-netto-zeile, .mw-achse { grid-template-columns:96px minmax(40px, 1fr) 30px; gap:8px; }
  }
  @media (max-width:560px) {
    .mz-zeile { grid-template-columns:minmax(0, 1fr) minmax(52px, .8fr) 12px 89px; gap:0 6px; }
    .mr-regime { grid-template-columns:repeat(4, 20px); gap:0 3px; }
    .mr-fk::after, .mr-fk i { width:16px; height:16px; }
    .mr-summe { grid-template-columns:96px minmax(40px, 1fr) 30px; gap:8px; }
  }
