:root { --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, "Cascadia Code", monospace; --ui: var(--mono); --fs: 13px; --lh: 1.45; --r: 8px; --t: 120ms; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--page); color: var(--text); font: var(--fs)/var(--lh) var(--ui);
  background-image: radial-gradient(1200px 600px at 80% -10%, var(--halo), transparent 70%);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--acc); }
::selection { background: var(--sel); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--r-m); border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
.hidden { display: none !important; }
.dim { color: var(--dim); } .faint { color: var(--faint); }

/* ---------- App-Fenster ---------- */
.app { height: 100vh; display: flex; flex-direction: column; padding: 14px; gap: 0; }
.win { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow); }
.bar { display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--surf); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); display: block; }
.dots i:nth-child(1) { background: var(--red); } .dots i:nth-child(2) { background: var(--yel); } .dots i:nth-child(3) { background: var(--grn); }
.brand { font-weight: 700; text-shadow: var(--glow); letter-spacing: .2px; text-decoration: none; color: var(--text); }
.brand span { color: var(--acc); }
.cmd { flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 10px; background: var(--bg); transition: border-color var(--t); }
.cmd:focus-within { border-color: var(--acc); }
.cmd b { color: var(--acc); }
.cmd input { flex: 1; border: 0; outline: 0; background: transparent; padding: 6px 0; caret-color: var(--acc); }
.cmd input::placeholder { color: var(--faint); }
.cmd kbd { color: var(--faint); }
.btn { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: var(--r-s); padding: 5px 10px; cursor: pointer; transition: border-color var(--t), background var(--t); white-space: nowrap; }
@media (hover: hover) { .btn:hover { border-color: var(--acc); } }
.btn.acc { border-color: var(--acc); color: var(--acc); }
@media (hover: hover) { .btn.acc:hover { background: var(--acc); color: var(--on-acc); } }
.btn.danger { border-color: var(--red); color: var(--red); }
@media (hover: hover) { .btn.danger:hover { background: var(--red); color: var(--bg); } }
.btn.ghost { border-color: transparent; color: var(--dim); }
@media (hover: hover) { .btn.ghost:hover { color: var(--text); border-color: var(--line); } }
.btn:disabled { opacity: .5; cursor: default; }

.theme { position: relative; }
.menu { position: absolute; right: 0; top: 36px; background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; width: 200px; z-index: 50; box-shadow: var(--shadow); }
.menu .it { padding: 6px 8px; border-radius: var(--r-s); cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--dim); }
.menu .it.on { background: var(--sel); color: var(--text); } @media (hover: hover) { .menu .it:hover { background: var(--sel); color: var(--text); } }
.sw { width: 14px; height: 14px; border-radius: var(--r-xs); border: 1px solid rgba(128,128,128,.4); flex: none; }

.win > .wrap { flex: 1; min-height: 0; display: flex; } /* nur der App-Rahmen, nicht jede .row.wrap */
.nav { width: 190px; flex: none; border-right: 1px solid var(--line); padding: 10px 8px; background: var(--surf); overflow-y: auto; }
.nav a { display: flex; justify-content: space-between; padding: 6px 9px; border-radius: var(--r-s); color: var(--dim); text-decoration: none; margin-bottom: 2px; cursor: pointer; }
@media (hover: hover) { .nav a:hover { color: var(--text); background: var(--surf-2); } }
.nav a.on { background: var(--sel); color: var(--text); }
.nav a.off { opacity: .45; cursor: default; }
@media (hover: hover) { .nav a.off:hover { background: transparent; color: var(--dim); } }
.nav .k { color: var(--faint); font-size: var(--fs-micro); }
.nav .ns, .nav .navmore { display: none; }
.nav .sep { border-top: 1px dashed var(--line); margin: 10px 4px; }
.nav a[draggable="true"] { -webkit-user-drag: element; }
.nav a.dragging { opacity: .35; }
.nav a.dragover { box-shadow: inset 0 2px 0 var(--acc); }
.nav .navreset { display: block; margin: 12px 9px 4px; padding: 0; background: none; border: 0; color: var(--faint); font: inherit; font-size: var(--fs-micro); cursor: pointer; text-decoration: underline dotted; }
@media (hover: hover) { .nav .navreset:hover { color: var(--text); } }
@media (max-width: 760px) { .nav .navreset { display: none; } }
.nav .lbl { color: var(--faint); font-size: var(--fs-micro); padding: 2px 9px 6px; text-transform: lowercase; }
.nav .area i { display: inline-block; width: 8px; height: 8px; border-radius: var(--r-xs); margin-right: 7px; }
.nav .area .n { color: var(--faint); }
.main { flex: 1; min-width: 0; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Formulare ---------- */
.in, select.in, textarea.in { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px 9px; outline: 0; transition: border-color var(--t); min-width: 0; }
.in:focus { border-color: var(--acc); }
select.in { cursor: pointer; }
textarea.in { resize: vertical; line-height: 1.5; }
label.chk { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); cursor: pointer; user-select: none; }
input[type="checkbox"] { accent-color: var(--acc); }

/* ---------- Kopf/Filter ---------- */
.head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--dim); }
.head b { color: var(--text); }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters .in { padding: 4px 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.seg button { border: 0; background: transparent; color: var(--dim); padding: 4px 10px; cursor: pointer; }
.seg button.on { background: var(--sel); color: var(--text); }

/* ---------- Board ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 10px; flex: 1; min-height: 0; }
.col { border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); display: flex; flex-direction: column; min-height: 0; }
.col.drop { border-color: var(--acc); }
.ch { display: flex; justify-content: space-between; align-items: center; color: var(--dim); text-transform: uppercase; font-size: var(--fs-micro); letter-spacing: 1px; padding: 9px 10px 6px; }
.ch b { color: var(--text); }
.ch .add { opacity: 0; transition: opacity var(--t); }
@media (hover: hover) { .col:hover .ch .add { opacity: 1; } }
.cards { flex: 1; overflow-y: auto; padding: 2px 9px 9px; min-height: 60px; }
.more { display: block; width: 100%; text-align: center; margin-top: 4px; }
.t { position: relative; border: 1px solid var(--line); border-left: 3px solid var(--faint); border-radius: var(--r-s); padding: 8px 9px; margin-bottom: 6px; background: var(--bg); cursor: pointer; transition: border-color var(--t), transform var(--t), opacity var(--t); user-select: none; }
@media (hover: hover) { .t:hover { border-color: var(--dim); } }
.t.sel { outline: 1px solid var(--acc); outline-offset: 1px; }
.t.dragging { opacity: .35; }
.t.done { opacity: .62; }
.t.done .tt { text-decoration: line-through; text-decoration-color: var(--faint); }
.t .id { color: var(--faint); font-size: var(--fs-micro); }
.t .prio { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .5px; }
.t .prio.dringend { color: var(--red); } .t .prio.hoch { color: var(--yel); }
.t .tt { margin: 2px 0 3px; color: var(--text); word-break: break-word; }
.t .m { color: var(--dim); font-size: var(--fs-micro); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tone-danger { color: var(--red) !important; } .tone-warn { color: var(--yel) !important; }
.tag { color: var(--acc); }
.marker { height: 2px; background: var(--acc); border-radius: var(--r-xs); margin: -1px 0 5px; box-shadow: var(--glow); }
.empty { color: var(--faint); text-align: center; padding: 18px 6px; border: 1px dashed var(--line); border-radius: var(--r-s); font-size: var(--fs-meta); }

/* ---------- Liste ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; color: var(--faint); font-weight: normal; font-size: var(--fs-micro); padding: 6px 8px; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; user-select: none; position: sticky; top: 0; background: var(--bg); }
.table th.sorted { color: var(--acc); }
.table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr { cursor: pointer; }
@media (hover: hover) { .table tbody tr:hover td { background: var(--surf); } }
.table tr.sel td { background: var(--sel); }
.table tr.cur td:first-child { box-shadow: inset 2px 0 0 var(--acc); }
.pill { display: inline-block; padding: 0 6px; border-radius: var(--r-s); border: 1px solid var(--line); font-size: var(--fs-micro); color: var(--dim); }

/* ---------- Overlay / Modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 100; animation: fade var(--t) ease-out; overflow-y: auto; }
[data-mode="light"] .overlay { background: rgba(20,20,30,.25); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.99); } }
.modal { width: min(1040px, 100%); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); animation: pop var(--t) ease-out; overflow: hidden; }
.modal .mh { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--surf); color: var(--dim); gap: 10px; }
.modal .mh .k { color: var(--acc); }
.modal .mb { display: grid; grid-template-columns: 1fr 290px; min-height: 420px; }
.modal .left { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.modal .right { border-left: 1px solid var(--line); padding: 14px; background: var(--surf); display: flex; flex-direction: column; gap: 10px; }
.title-in { font-size: var(--fs-title); font-weight: 700; border: 0; outline: 0; background: transparent; width: 100%; padding: 2px 0; border-bottom: 1px dashed transparent; }
.title-in:focus { border-bottom-color: var(--acc); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { color: var(--faint); font-size: var(--fs-micro); text-transform: lowercase; }
.field .in { width: 100%; }
.row { display: flex; gap: 6px; align-items: center; }
.sec { color: var(--faint); font-size: var(--fs-micro); text-transform: lowercase; display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.md { line-height: 1.6; word-break: break-word; }
.md p { margin: 0 0 .6em; } .md h1, .md h2, .md h3 { font-size: var(--fs-body); margin: .8em 0 .4em; color: var(--acc); }
.md code { background: var(--surf); padding: 0 4px; border-radius: var(--r-xs); }
.md ul { padding-left: 18px; margin: 0 0 .6em; } .md a { color: var(--acc); }
.md-empty { color: var(--faint); cursor: text; }
.cl { list-style: none; padding: 0; margin: 0; }
.cl li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.cl li.done span { text-decoration: line-through; color: var(--faint); }
.cl li .x { margin-left: auto; opacity: 0; }
@media (hover: hover) { .cl li:hover .x { opacity: 1; } }
.timeline { border-left: 1px solid var(--line); margin-left: 4px; padding-left: 12px; display: flex; flex-direction: column; gap: 8px; }
.timeline .ev { font-size: var(--fs-meta); color: var(--dim); position: relative; }
.timeline .ev::before { content: ""; position: absolute; left: -16px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.timeline .ev.c::before { background: var(--acc); }
.timeline .ev .when { color: var(--faint); font-size: var(--fs-micro); }
.timeline .ev .body { color: var(--text); white-space: pre-wrap; }
.tagbox { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-s); padding: 4px 6px; background: var(--bg); }
.tagbox:focus-within { border-color: var(--acc); }
.tagbox .chip { background: var(--sel); color: var(--text); padding: 0 6px; border-radius: var(--r-s); font-size: var(--fs-meta); cursor: pointer; }
@media (hover: hover) { .tagbox .chip:hover { text-decoration: line-through; } }
.tagbox input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 60px; padding: 2px; }
.rec { border: 1px dashed var(--line); border-radius: var(--r-s); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.rec.on { border-color: var(--acc); }
.saved { color: var(--faint); font-size: var(--fs-micro); }

/* ---------- Kontextmenü ---------- */
.ctx { position: fixed; z-index: 200; min-width: 220px; background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); padding: 5px; box-shadow: var(--shadow); animation: pop 90ms ease-out; }
.ctx .ci { display: flex; justify-content: space-between; gap: 18px; padding: 6px 9px; border-radius: var(--r-s); cursor: pointer; color: var(--text); }
.ctx .ci .h { color: var(--faint); }
.ctx .ci.act { background: var(--sel); } @media (hover: hover) { .ctx .ci:hover { background: var(--sel); } }
.ctx .ci.danger { color: var(--red); }
.ctx .sep { border-top: 1px solid var(--line); margin: 4px 2px; }
.ctx .hd { color: var(--faint); font-size: var(--fs-micro); padding: 4px 9px 2px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 300; }
.toast { background: var(--surf); border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: var(--r-s); padding: 8px 12px; box-shadow: var(--shadow); animation: pop var(--t) ease-out; max-width: 380px; }
.toast.err { border-left-color: var(--red); }
.toast .undo { margin-left: 10px; }

/* ---------- Login ---------- */
.login { width: min(440px, 100%); margin-top: 10vh; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); overflow: hidden; animation: pop 150ms ease-out; }
.login .bar { justify-content: space-between; }
.login .lb { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.login .hello { color: var(--dim); }
.login .hello b { color: var(--text); text-shadow: var(--glow); }
.prompt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 10px; transition: border-color var(--t); }
.prompt:focus-within { border-color: var(--acc); }
.prompt b { color: var(--acc); }
.prompt span { color: var(--faint); min-width: 64px; }
.prompt input { flex: 1; border: 0; outline: 0; background: transparent; padding: 9px 0; caret-color: var(--acc); }
.login .err { color: var(--red); min-height: 1.4em; }
.cursor { display: inline-block; width: 7px; height: 13px; background: var(--text); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Hilfe ---------- */
.help { width: min(620px, 100%); }
.help table { width: 100%; border-collapse: collapse; }
.help td { padding: 4px 6px; border-bottom: 1px solid var(--line); }
.help kbd { color: var(--acc); }

/* ---------- Einstellungen ---------- */
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.panel h3 { margin: 0 0 4px; font-size: var(--fs-meta); color: var(--acc); text-transform: lowercase; letter-spacing: .5px; }
.lrow { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.lrow:last-child { border-bottom: 0; }
.lrow .grow { flex: 1; min-width: 0; }
.lrow input[type="color"] { width: 26px; height: 22px; border: 0; background: transparent; padding: 0; cursor: pointer; }
.bar-prog { height: 4px; background: var(--line); border-radius: var(--r-s); overflow: hidden; }
.bar-prog i { display: block; height: 100%; background: var(--acc); }

/* ---------- Gesundheit ---------- */
.health { display: flex; flex-direction: column; gap: 12px; }
.panel h3 { display: flex; justify-content: space-between; gap: 8px; }
.today .slot { display: flex; flex-direction: column; gap: 2px; }
.intake { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: var(--r-s); cursor: pointer; transition: background var(--t); }
@media (hover: hover) { .intake:hover { background: var(--surf-2); } }
.intake .grow { flex: 1; min-width: 0; }
.intake.done .grow { color: var(--faint); text-decoration: line-through; }
.intake input { accent-color: var(--acc); width: 15px; height: 15px; }
.tlink { color: var(--acc); text-decoration: none; font-size: var(--fs-meta); }
@media (hover: hover) { .tlink:hover { text-decoration: underline; } }
.banner { border: 1px solid var(--yel); border-radius: var(--r); padding: 8px 12px; background: var(--surf); display: flex; flex-direction: column; gap: 6px; }
.banner .grow { flex: 1; }
.row.wrap { flex-wrap: wrap; }
.medmodal { width: min(720px, 100%); }
.medform { gap: 12px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.seg { flex-wrap: wrap; }
.rbox { border: 1px dashed var(--line); border-radius: var(--r-s); padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.rbox.on { border-style: solid; border-color: var(--acc); }
.rbox .rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.rbox input[type="checkbox"] { accent-color: var(--acc); }

/* ---------- Gesundheit: Werte-Kacheln & Arzt ---------- */
.lchip { font-size: var(--fs-micro); font-weight: 700; padding: 1px 8px; border-radius: 20px; white-space: nowrap; color: var(--dim); background: color-mix(in srgb, var(--faint) 18%, transparent); }
.lchip.lvl-ok { color: var(--grn); background: color-mix(in srgb, var(--grn) 15%, transparent); }
.lchip.lvl-warn { color: var(--yel); background: color-mix(in srgb, var(--yel) 15%, transparent); }
.lchip.lvl-crit { color: var(--red); background: color-mix(in srgb, var(--red) 16%, transparent); }
.zone.lvl-ok { background: var(--grn); } .zone.lvl-warn { background: var(--yel); } .zone.lvl-crit { background: var(--red); }
.cmp-bar { gap: 8px; } .cmp-bar .right { text-align: right; }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-s); }
.cmp { border-collapse: separate; border-spacing: 0; min-width: 100%; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 5px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: right; vertical-align: top; }
.cmp th { font-size: var(--fs-micro); color: var(--faint); font-weight: normal; background: var(--surf); position: sticky; top: 0; z-index: 2; }
.cmp th:first-child, .cmp td:first-child { position: sticky; left: 0; z-index: 3; background: var(--surf); text-align: left; box-shadow: 1px 0 0 var(--line); max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.cmp th:first-child { z-index: 4; width: 1%; }
.cmp th.new, .cmp td.new { background: color-mix(in srgb, var(--acc) 7%, var(--surf)); }
.cmp th.new { color: var(--acc); }
.cmp tr.grp td { text-align: left; font-size: var(--fs-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: 10px; border-bottom: 0; background: var(--surf); box-shadow: none; max-width: none; overflow: visible; }
.cmp tr.mk { cursor: pointer; } .cmp tr.mk:focus-visible td { background: var(--surf-2); } @media (hover: hover) { .cmp tr.mk:hover td { background: var(--surf-2); } }
.cmp tr.mk:focus-visible { outline: none; }
.cmp .ml { color: var(--text); } .cmp .u { color: var(--faint); font-size: var(--fs-micro); margin-left: 5px; }
.cmp .cv { font-weight: 600; color: var(--text); } .cmp .cv.lvl-ok { color: var(--grn); } .cmp .cv.lvl-warn { color: var(--yel); } .cmp .cv.lvl-crit { color: var(--red); }
.cmp .cd { display: block; font-size: var(--fs-micro); color: var(--faint); min-height: 12px; }
.cmp td.none { color: var(--faint); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.lvl-ok { background: var(--grn); } .dot.lvl-warn { background: var(--yel); } .dot.lvl-crit { background: var(--red); }

/* ---------- Dokumente ---------- */
.docs { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.docs .filters .grow { flex: 1; min-width: 180px; }
.docbody { min-height: 0; }
.nowrap { white-space: nowrap; }
.dtag { display: inline-block; padding: 0 6px; border-radius: var(--r-s); font-size: var(--fs-micro); line-height: 18px; cursor: default; }
.docside .dtag { cursor: pointer; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.dcard { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surf); padding: 8px; display: flex; flex-direction: column; gap: 5px; cursor: pointer; transition: border-color var(--t), background var(--t); min-width: 0; }
@media (hover: hover) { .dcard:hover { background: var(--surf-2); } }
.dcard.cur { border-color: var(--acc); }
/* Mehrfachauswahl (Aufräumen) */
.dcard { position: relative; }
.dcard.sel { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, var(--surf)); }
.dcard .dsel { position: absolute; top: 12px; left: 12px; z-index: 1; opacity: 0; transition: opacity var(--t); }
.dcard.sel .dsel, .docs:has(.selbar) .dcard .dsel, .dcard .dsel:focus-visible { opacity: 1; } @media (hover: hover) { .dcard:hover .dsel { opacity: 1; } }
.dsel { width: 16px; height: 16px; accent-color: var(--acc); cursor: pointer; margin: 0; }
.table th.selcol, .table td.selcol { width: 28px; padding-right: 0; }
.table td.selcol .dsel { opacity: .35; transition: opacity var(--t); }
.table tr.sel td.selcol .dsel, .docs:has(.selbar) .table td.selcol .dsel { opacity: 1; } @media (hover: hover) { .table tr:hover td.selcol .dsel { opacity: 1; } }
.table tr.sel td { background: color-mix(in srgb, var(--acc) 9%, transparent); }
.selbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px;
  padding: 8px 10px; border: 1px solid var(--acc); border-radius: var(--r-m); background: var(--surf); box-shadow: 0 6px 20px rgb(0 0 0 / .25); }
.selbar .grow { flex: 1; }
.dcard .thumb { aspect-ratio: 3 / 4; background: var(--bg); border-radius: var(--r-s); overflow: hidden; display: flex; align-items: flex-start; justify-content: center; }
.dcard .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dcard .dt { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.9em; }
.dcard > .faint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard > .row.wrap { flex-wrap: nowrap; overflow: hidden; min-height: 18px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.dcard > .row.wrap > * { flex: none; white-space: nowrap; }
.panel.offline { max-width: 560px; }
.docov { justify-content: flex-end; align-items: stretch; padding: 0; }
.docside { width: min(820px, 100%); height: 100vh; background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; animation: slidein var(--t) ease-out; }
@keyframes slidein { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.docside .mh { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--surf); color: var(--dim); flex-wrap: wrap; }
.docside .mh .k { color: var(--acc); }
.pv-scroll { overflow: auto; flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.pv-meta { display: flex; flex-direction: column; gap: 10px; }
.pv-pages { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.pv-page { width: 100%; background: var(--surf); border-radius: var(--r-s); display: flex; justify-content: center; }
.pv-page canvas { background: #fff; border-radius: var(--r-xs); box-shadow: 0 2px 10px rgba(0,0,0,.3); max-width: 100%; }
.pv-img { max-width: 100%; border-radius: var(--r-s); }
.pv-text { white-space: pre-wrap; background: var(--surf); padding: 10px; border-radius: var(--r-s); width: 100%; }
.picker { display: flex; flex-direction: column; max-height: 50vh; overflow: auto; }
.picker .pi { display: flex; gap: 8px; padding: 6px 8px; border-radius: var(--r-s); cursor: pointer; align-items: baseline; }
.picker .pi .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker .pi.on { background: var(--sel); } @media (hover: hover) { .picker .pi:hover { background: var(--sel); } }
.tdoc { justify-content: space-between; }
.tdoc .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pvtitle { color: var(--acc); font-size: var(--fs-sm); padding: 2px 0; }
.panel.wide { grid-column: 1 / -1; }
.tone-ok { color: var(--grn); }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  .app { padding: 0; }
  .win { border-radius: 0; border: 0; }
  .bar { gap: 8px; padding: 8px 10px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .dots, .cmd kbd, .bar > .btn.acc { display: none; }
  .cmd { min-width: 0; }
  .modal .mh { flex-wrap: wrap; }
  .modal .mh .btn.ghost { padding: 5px 6px; }
  .win > .wrap { flex-direction: column-reverse; }
  .nav { width: auto; display: flex; overflow-x: auto; border-right: 0; border-top: 1px solid var(--line); padding: 6px; gap: 4px; }
  .nav a { flex: none; margin: 0; } .nav .sep, .nav .lbl, .nav .area, .nav .k { display: none; }
  .board { grid-template-columns: repeat(3, 86vw); overflow-x: auto; scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .modal .mb { grid-template-columns: 1fr; }
  .modal .right { border-left: 0; border-top: 1px solid var(--line); }
  .overlay { padding: 0; }
  .modal { border-radius: 0; min-height: 100vh; min-height: 100dvh; }
  .hgrid { grid-template-columns: 1fr; }
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs .table .c-korr, .docs .table .c-typ { display: none; }
  .med .rt { white-space: normal; }
}
.dcard .nothumb { margin: auto; color: var(--faint); font-size: var(--fs-title); text-transform: uppercase; letter-spacing: 2px; }

/* ---------- Dateien (Dual-Pane) ---------- */
.files { display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1; }
.fpanes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; min-height: 0; }
.fpane { display: flex; flex-direction: column; min-height: 320px; min-width: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); overflow: hidden; }
.fpane.act { border-color: var(--acc); box-shadow: 0 0 0 1px var(--halo); }
.fpane.drop { border-style: dashed; background: var(--halo); }
.fph { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--surf); flex-wrap: wrap; }
.fph .src { padding: 3px 6px; }
.fph .crumbs { display: flex; gap: 2px; flex-wrap: wrap; min-width: 0; flex: 1; }
.fph .crumbs a { color: var(--dim); text-decoration: none; padding: 1px 3px; border-radius: var(--r-xs); }
@media (hover: hover) { .fph .crumbs a:hover { color: var(--acc); background: var(--sel); } }
.fph .crumbs a:last-of-type { color: var(--text); }
.fpane.act .fph .crumbs a:last-of-type { color: var(--acc); }
.fph .lock { color: var(--yel); font-size: var(--fs-micro); }
.fpb { flex: 1; overflow: auto; min-height: 0; }
.ftable td { padding: 3px 8px; border-bottom: 0; }
.ftable th { padding: 5px 8px; }
.ftable .fname { word-break: break-all; }
.ftable .ic { display: inline-block; width: 16px; color: var(--faint); }
.ftable tr.dir .fname { color: var(--text); }
.ftable tr.dir .ic { color: var(--acc); }
.ftable tr:not(.dir) .fname { color: var(--dim); }
.ftable tr.sel .fname, .ftable tr.sel .ic { color: var(--yel); }
.ftable td.num { text-align: right; }
/* Ordner per Klick öffnen: kurzes Aufleuchten in der Akzentfarbe, neuer Inhalt blendet weich ein */
.ftable tr.dir { cursor: pointer; }
@media (hover: hover) { .ftable tr.dir:hover td { background: color-mix(in srgb, var(--acc) 7%, transparent); } }
.ftable tr.flash td { animation: fglow .42s ease-out; }
.ftable tr.flash td:first-child { box-shadow: inset 3px 0 0 var(--acc); }
@keyframes fglow {
  0% { background: color-mix(in srgb, var(--acc) 34%, transparent); text-shadow: 0 0 10px color-mix(in srgb, var(--acc) 70%, transparent); }
  100% { background: color-mix(in srgb, var(--acc) 6%, transparent); text-shadow: none; }
}
.ftable.fin tbody { animation: fin .22s ease-out; }
@keyframes fin { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ftable tr.flash td, .ftable.fin tbody { animation: none; } }
.fpane:not(.act) .ftable tr.cur td:first-child { box-shadow: inset 2px 0 0 var(--line); }
.fpane.act .ftable tr.cur td { background: var(--surf-2); }
.fpf { padding: 4px 8px; border-top: 1px solid var(--line); font-size: var(--fs-micro); }
.fpane .panel.offline { margin: 14px; }
.fbar { display: flex; gap: 4px; flex-wrap: wrap; }
.faudit { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surf); margin-top: 6px; }
.faudit .fah { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 8px; }
.faudit .fat { background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: 3px 0; text-align: left; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.faudit .fat .chev { color: var(--acc); }
.faudit .fafilters { margin-left: auto; gap: 6px; flex-wrap: wrap; }
.faudit .fafilters .in { width: auto; min-width: 0; padding: 3px 6px; }
.faudit .fafilters input.in { width: 140px; }
.faudit .fab { display: none; max-height: 34vh; overflow: auto; padding: 0 8px 8px; }
.faudit.open .fab { display: block; }
.fat-table td, .fat-table th { padding: 3px 6px; font-size: var(--fs-meta); }
.fat-table .fa-path { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fat-table .ai { color: var(--acc); display: inline-block; width: 14px; text-align: center; }
.fat-table tr.a-delete .ai, .fat-table tr.a-purge .ai { color: var(--red); }
.mono { font-family: var(--mono); }
.fbar .fk { flex: 1 1 auto; min-width: 92px; background: var(--surf); border: 1px solid var(--line); color: var(--dim); border-radius: var(--r-s); padding: 5px 6px; cursor: pointer; font: inherit; font-size: var(--fs-meta); white-space: nowrap; }
@media (hover: hover) { .fbar .fk:hover { color: var(--text); border-color: var(--acc); } }
.fbar .fk.off { opacity: .45; }
.fswitch { display: none; }
.jobs { display: flex; flex-direction: column; gap: 6px; }
.jobs[hidden] { display: none; }
.job { border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px 8px; background: var(--surf); font-size: var(--fs-meta); display: flex; flex-direction: column; gap: 5px; }
.job.err { border-color: var(--red); }
.job.ok .jbar i { background: var(--grn); }
.job .jbar { height: 4px; background: var(--line); border-radius: var(--r-xs); overflow: hidden; }
.job .jbar i { display: block; height: 100%; background: var(--acc); transition: width .2s; }
.clist { margin: 0; padding-left: 18px; max-height: 180px; overflow: auto; color: var(--yel); }
.trash .btn.danger, .btn.ghost.danger { color: var(--red); }
.tfile .missing { color: var(--red); }
@media (max-width: 760px) {
  .fpanes { grid-template-columns: 1fr; }
  .fpane:not(.act) { display: none; }
  .fswitch { display: flex; gap: 4px; }
  .fswitch button { flex: 1; background: var(--surf); border: 1px solid var(--line); color: var(--dim); border-radius: var(--r-s); padding: 5px; font: inherit; font-size: var(--fs-meta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fswitch button.on { border-color: var(--acc); color: var(--acc); }
  .ftable th:nth-child(3), .ftable td:nth-child(3) { display: none; }
}
.panel .chip { display: inline-flex; align-items: center; gap: 4px; background: var(--sel); color: var(--text); padding: 1px 4px 1px 8px; border-radius: var(--r-s); font-size: var(--fs-meta); }
.panel .chip .btn { padding: 0 4px; }

/* ---------- KI ---------- */
.ai { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.ailist { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 14px; min-height: 120px; }
.aientry { display: flex; flex-direction: column; gap: 6px; max-width: 900px; }
.aiq { color: var(--text); }
.aia { white-space: pre-wrap; color: var(--dim); border-left: 2px solid var(--acc); padding: 4px 0 4px 10px; line-height: 1.5; }
.aia.thinking { border-left-color: var(--line); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.aisrc { font-size: var(--fs-meta); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.aiin { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.aiin textarea { flex: 1; resize: vertical; min-height: 44px; font: inherit; }
.aictx .chip { display: inline-flex; align-items: center; gap: 4px; background: var(--sel); padding: 1px 4px 1px 8px; border-radius: var(--r-s); font-size: var(--fs-meta); }
.aiprop { border: 1px dashed var(--acc); border-radius: var(--r-s); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; background: var(--halo); max-width: 620px; }
.aiprop.ok { border-style: solid; border-color: var(--grn); }
.aiprop.gone { opacity: .45; }
.brief { border: 1px solid var(--line); border-radius: var(--r-s); padding: 7px 10px; background: var(--surf); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.brief .btn { margin-left: auto; padding: 0 6px; }
.aibox { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px; background: var(--surf); }
.aibox ul { margin: 0; padding-left: 18px; color: var(--dim); }

/* ---------- Übersicht ---------- */
/* Scroll-Glow: .sg = Rahmen (leuchtet), .sg-scroll = Scrollbereich (oft dasselbe Element) */
.sg { --ga: var(--scroll-glow); transition: border-color .25s, box-shadow .35s;
  background-image: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), color-mix(in srgb, var(--acc) 9%, transparent), transparent 70%); }
@media (hover: hover) { .sg:hover { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); } }
.sg.sg-active { border-color: var(--acc); box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 25%, transparent), 0 0 22px -4px var(--ga); }
/* Scrollen: das Mausrad scrollt, was unter dem Zeiger ist; am Ende läuft die Seite weiter (kein overscroll-behavior: contain,
   keine Klick-Sperre – beides hat Murphy das Scrollen der Seite blockiert) */
.sg-scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: transparent transparent; }
@media (hover: hover) { .sg:hover .sg-scroll, .sg-scroll.sg:hover { scrollbar-color: color-mix(in srgb, var(--acc) 40%, transparent) transparent; } }
.sg.sg-active .sg-scroll, .sg-scroll.sg.sg-active { scrollbar-color: var(--acc) transparent; }
.sg-scroll::-webkit-scrollbar { width: 6px; }
.sg-scroll::-webkit-scrollbar-thumb { background: transparent; border: 0; border-radius: var(--r-s); transition: background .2s; }
@media (hover: hover) { .sg:hover .sg-scroll::-webkit-scrollbar-thumb, .sg-scroll.sg:hover::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--acc) 40%, transparent); } }
.sg.sg-active .sg-scroll::-webkit-scrollbar-thumb, .sg-scroll.sg.sg-active::-webkit-scrollbar-thumb { background: var(--acc); box-shadow: var(--glow); }
/* Kachel (Panel scrollt selbst): Kopf bleibt stehen, untere Kante blendet aus und leuchtet */
.panel.sg { position: relative; padding-top: 0; padding-bottom: 0; }
.panel.sg::after { content: ''; position: sticky; bottom: 0; flex: none; height: 34px; margin: -22px calc(-1 * var(--panel-pad-x)) 0; pointer-events: none; z-index: 2;
  opacity: 0; transition: opacity .25s;
  background: radial-gradient(60% 90% at 50% 100%, var(--ga), transparent 72%), linear-gradient(transparent, var(--panel-bg) 78%); }
.panel.sg.sg-down::after { opacity: 1; }
@media (hover: hover) { .panel.sg-lock.sg-down:not(.sg-focus):hover::after { content: '↓ klicken zum scrollen'; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 4px; font-size: var(--fs-micro); letter-spacing: .5px; color: var(--dim); } }
.panel.sg > h3 { position: sticky; top: 0; z-index: 2; margin: 0 calc(-1 * var(--panel-pad-x)) 0; padding: var(--panel-pad-y) var(--panel-pad-x) 6px; background: var(--panel-bg); transition: box-shadow .25s; }
.panel.sg.sg-up > h3 { box-shadow: 0 1px 0 var(--ga), 0 8px 14px -10px var(--ga); }
/* Board-Spalte: Rahmen = .col, Scrollbereich = .cards */
.col.sg { position: relative; overflow: hidden; }
.col.sg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(60% 90% at 50% 100%, var(--ga), transparent 72%), linear-gradient(transparent, var(--panel-bg) 78%); }
.col.sg.sg-down::after { opacity: 1; }
.col.sg .ch { transition: box-shadow .25s; position: relative; z-index: 1; }
.col.sg.sg-up .ch { box-shadow: 0 1px 0 var(--ga), 0 8px 14px -10px var(--ga); }
/* Lichtpunkt beim Hovern über Karten, Kalendertage und Dokumente */
.t, .cday, .dcard { transition: border-color var(--t), box-shadow .25s, transform var(--t), opacity var(--t), background-color var(--t); }
@media (hover: hover) { .t:hover, .cday:hover, .dcard:hover { border-color: color-mix(in srgb, var(--acc) 55%, var(--line));
  box-shadow: 0 0 18px -8px color-mix(in srgb, var(--acc) 60%, transparent);
  background-image: radial-gradient(180px circle at var(--mx, -300px) var(--my, -300px), color-mix(in srgb, var(--acc) 11%, transparent), transparent 70%); } }
@media (prefers-reduced-motion: reduce) { .sg, .t, .cday, .dcard { transition: none; } }
.orow { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: var(--r-s); cursor: pointer; border-left: 3px solid transparent; transition: background var(--t); min-width: 0; }
@media (hover: hover) { .orow:hover { background: var(--surf-2); } }
.orow.sel { outline: 1px solid var(--acc); outline-offset: -1px; }
.orow .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orow .m { font-size: var(--fs-micro); white-space: nowrap; }
.orow .kind { width: 16px; text-align: center; color: var(--acc); flex: none; }
.orow .prio { font-size: var(--fs-micro); } .orow .prio.dringend { color: var(--red); } .orow .prio.hoch { color: var(--yel); }
.orow.done .grow { text-decoration: line-through; color: var(--faint); }
.orow input { accent-color: var(--acc); width: 15px; height: 15px; flex: none; }
.panel .sec.tone-danger span { color: var(--red); }
.prog { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-decoration: none; color: var(--text); padding: 4px 6px; border-radius: var(--r-s); }
@media (hover: hover) { .prog:hover { background: var(--surf-2); } }
.prog .bar-prog { grid-column: 1 / -1; }
.sugg { color: var(--acc); font-size: var(--fs-meta); }

/* ---------- Kalender ---------- */
/* Aufbau: .cwds (Wochentage) + je Woche ein .cwk-Raster mit 7 .cday; mehrtägige Termine liegen als .cbars
   über der Woche, jede Zelle hält dafür mit .clanes (Höhe = Spuren × --lane-h) den Platz frei. */
.cal { display: flex; flex-direction: column; gap: 4px; --lane-h: 22px; --cal-gap: 4px; }
.cwds, .cwk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--cal-gap); }
.cwk { position: relative; }
.cwd { color: var(--faint); font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .12em; padding: 2px 8px 4px; }
.cwd.we { color: var(--dim); }
.cday { min-height: 108px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surf); padding: 6px 6px 7px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-width: 0; }
.cday.we { background: color-mix(in srgb, var(--surf-2) 85%, var(--surf)); border-color: color-mix(in srgb, var(--line) 70%, var(--surf)); }
.cday.we .cnum b { color: var(--dim); }
.cday.out { opacity: .42; }
.cday.out .cnum b { color: var(--faint); font-weight: 500; }
.cday.today { border-color: color-mix(in srgb, var(--acc) 65%, var(--line)); box-shadow: 0 0 0 1px var(--halo), 0 0 18px -8px color-mix(in srgb, var(--acc) 55%, transparent); }
.cday.today .cnum b { background: var(--acc); color: var(--on-acc); box-shadow: var(--glow); font-weight: 700; }
.cday.sel { background: var(--sel); border-color: var(--acc); }
.cday.drop { border-style: dashed; border-color: var(--acc); }
.cnum { display: flex; align-items: center; gap: 6px; height: 22px; flex: none; }
.cnum b { min-width: 22px; height: 22px; line-height: 22px; padding: 0 3px; text-align: center; border-radius: 11px; font-size: var(--fs-sm); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.ckw { font-size: var(--fs-micro); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.cdot { margin-left: auto; font-style: normal; font-size: var(--fs-micro); min-width: 16px; text-align: center; border-radius: var(--r-m); background: var(--acc); color: var(--on-acc); padding: 0 4px; display: none; }
.cdot.done { background: transparent; color: var(--faint); }
.clanes { flex: none; height: calc(var(--lanes, 0) * var(--lane-h)); }
.cbars { position: absolute; left: 0; right: 0; top: 31px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: var(--lane-h); gap: 0 var(--cal-gap); pointer-events: none; }
.cbar { pointer-events: auto; align-self: start; height: 18px; margin: 1px 5px 0; padding: 0 7px; border-radius: var(--r-s); border-left: 3px solid var(--acc);
  background: color-mix(in srgb, var(--acc) 24%, var(--surf)); color: var(--text); font-size: var(--fs-micro); line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; min-width: 0; box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 18%, transparent); transition: background var(--t); }
@media (hover: hover) { .cbar:hover { background: color-mix(in srgb, var(--acc) 36%, var(--surf)); } }
.cbar.k-geburtstag { border-left-color: var(--yel); background: color-mix(in srgb, var(--yel) 24%, var(--surf)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--yel) 18%, transparent); }
.cbar.before { margin-left: 0; border-left-width: 0; border-radius: 0 5px 5px 0; padding-left: 9px; }
.cbar.before::before { content: "‹ "; color: var(--dim); }
.cbar.after { margin-right: 0; border-radius: 5px 0 0 5px; }
.cbar.before.after { border-radius: 0; }
.cal.dragging .cbars { pointer-events: none; }
/* Gruppen in der Zelle: ganztägig · mit Uhrzeit (Termine, Wochenplan) · Tickets */
.cgrp { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cgrp + .cgrp { margin-top: 3px; padding-top: 3px; border-top: 1px dashed color-mix(in srgb, var(--line) 85%, transparent); }
.cterm, .cchip, .cfix { display: flex; align-items: baseline; gap: 5px; min-width: 0; font-size: var(--fs-micro); line-height: 1.5; border-radius: var(--r-s); }
.cterm .ct, .cchip .ct, .cfix .ct, .cbar .ct { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cterm time, .cchip time, .cfix time { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--fs-micro); }
.cterm.allday { padding: 1px 6px; border-left: 3px solid var(--acc); background: color-mix(in srgb, var(--acc) 20%, var(--surf)); color: var(--text); }
.cterm.allday.k-geburtstag { border-left-color: var(--yel); background: color-mix(in srgb, var(--yel) 20%, var(--surf)); }
.cterm.timed { padding: 0 3px; color: var(--text); }
.cterm.timed time { color: var(--acc); }
.cterm.timed.k-geburtstag time { color: var(--yel); }
.cfix { display: block; padding: 0 3px; color: var(--dim); font-size: var(--fs-micro); line-height: 1.45; overflow: hidden; }
.cfix time { color: var(--faint); font-weight: 500; white-space: nowrap; }
.cfix .sep { color: var(--faint); }
.cchip { padding: 1px 6px; border-left: 3px solid var(--faint); background: var(--bg); color: var(--text); cursor: pointer; }
.cchip time { color: var(--dim); }
@media (hover: hover) { .cchip:hover { outline: 1px solid var(--acc); } }
.cchip.st-geplant { color: var(--dim); border-style: dashed; }
.cchip.st-erledigt { color: var(--faint); }
.cchip.st-erledigt .ct { text-decoration: line-through; }
.cchip.pr-dringend { color: var(--red); } .cchip.pr-hoch { color: var(--yel); }
.cchip.overdue { background: color-mix(in srgb, var(--red) 14%, var(--bg)); }
.cmore { font: inherit; font-size: var(--fs-micro); padding: 2px 4px; margin: 0; border: 0; border-radius: var(--r-s); background: transparent; color: var(--acc); text-align: left; cursor: pointer; align-self: flex-start; }
@media (hover: hover) { .cmore:hover { background: color-mix(in srgb, var(--acc) 12%, transparent); } }
.cmore:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.cdots { display: none; }
/* Tagesliste */
.cterm-row { border-left-color: var(--acc); }
.cterm-row.k-geburtstag { border-left-color: var(--yel); }
.agenda h3 .wdn { color: var(--dim); font-weight: 400; margin-left: 8px; }
.ctoday { display: inline-block; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .08em; color: var(--on-acc); background: var(--acc); border-radius: var(--r-s); padding: 1px 6px; margin-left: 8px; vertical-align: 1px; }
.agenda .planrow .tm { min-width: 96px; }
.agenda .orow .tm { font-variant-numeric: tabular-nums; color: var(--dim); white-space: nowrap; min-width: 96px; font-size: var(--fs-meta); }
.agenda .orow.overdue .tm, .agenda .orow.overdue .faint { color: var(--red); }
.seg { flex: none; }
.seg button { white-space: nowrap; }

/* ---------- Handy: untere Leiste, Bottom-Sheet-Menü, Touch ---------- */
@media (max-width: 760px) {
  .app { height: 100vh; height: 100dvh; }
  .main { padding: 10px 10px calc(76px + env(safe-area-inset-bottom)); }
  .orow { min-height: 40px; }
  /* Kalender am Handy: 16-px-Rand, Zahl mittig, mehrtägige Termine als dünne Balken, alles andere als Punkte */
  .main.calview { padding-left: 16px; padding-right: 16px; }
  .cal { gap: 3px; --lane-h: 6px; --cal-gap: 3px; }
  .cwd { padding: 0 0 2px; text-align: center; font-size: var(--fs-micro); letter-spacing: .04em; }
  .cday { min-height: 62px; padding: 4px 2px 5px; gap: 3px; align-items: center; border-radius: var(--r-s); }
  .cnum { height: 20px; gap: 0; justify-content: center; }
  .cnum b { min-width: 20px; height: 20px; line-height: 20px; font-size: var(--fs-meta); padding: 0 2px; }
  .ckw, .cdot, .cgrp, .cmore { display: none; }
  .cbars { top: 28px; }
  .cbar { height: 4px; margin: 1px 3px 0; padding: 0; border-left: 0; border-radius: var(--r-xs); font-size: 0; background: var(--acc); box-shadow: none; }
  .cbar.k-geburtstag { background: var(--yel); }
  .cbar.before { margin-left: 0; border-radius: 0 2px 2px 0; padding: 0; }
  .cbar.after { margin-right: 0; border-radius: 2px 0 0 2px; }
  .cbar.before.after { border-radius: 0; }
  .cbar.before::before { content: none; }
  .cdots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; align-items: center; max-width: 100%; min-height: 6px; }
  .cdots i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); flex: none; }
  .cdots i.d-termin { background: var(--acc); } .cdots i.d-geburtstag { background: var(--yel); }
  .cdots i.d-ticket { background: var(--text); } .cdots i.d-overdue { background: var(--red); }
  .cdots i.d-done { background: var(--faint); opacity: .6; } .cdots i.d-plan { background: var(--faint); width: 5px; height: 5px; }
  .cdots em { font-style: normal; font-size: var(--fs-micro); line-height: 1; color: var(--faint); }
  .agenda .planrow { gap: 8px; }
  .agenda .planrow .tm, .agenda .orow .tm { min-width: 0; white-space: normal; font-size: var(--fs-meta); }
  .agenda h3 .wdn { display: block; margin: 2px 0 0; font-size: var(--fs-meta); }
  .head .seg button { padding: 6px 9px; }
  .head .row { flex-wrap: wrap; }
  .brief { display: block; position: relative; padding-right: 30px; }
  .brief .btn { position: absolute; right: 4px; top: 4px; }
  .in, select.in, textarea.in, .cmd input, .aiin textarea { font-size: 16px; }
}
.ctx-bg { position: fixed; inset: 0; z-index: 199; }
@media (hover: none) {
  .t, .cchip, .cday, .orow, .ftable tr, .dcard, .table tr { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .ch .add { opacity: 1; }
}

/* ---------- Notizen (Obsidian) ---------- */
.notes { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 12px; flex: 1; min-height: 0; }
.nside { display: flex; flex-direction: column; gap: 8px; min-height: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); padding: 8px; }
.nside .row .in { flex: 1; min-width: 0; }
.ntree { flex: 1; overflow: auto; min-height: 0; display: flex; flex-direction: column; }
.ndir { flex: none; color: var(--dim); padding: 4px 8px; cursor: pointer; border-radius: var(--r-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: none; }
@media (hover: hover) { .ndir:hover { background: var(--surf-2); color: var(--text); } }
.nitem { flex: none; display: block; color: var(--text); text-decoration: none; padding: 4px 8px; border-radius: var(--r-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .nitem:hover { background: var(--surf-2); } }
.nitem.on { background: var(--sel); color: var(--acc); }
.nitem.hit { white-space: normal; border-bottom: 1px dashed var(--line); border-radius: 0; padding: 6px 8px; }
.nitem.hit .faint { font-size: var(--fs-micro); }
.nview { overflow: auto; min-height: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: 14px 22px 30px; display: flex; flex-direction: column; gap: 10px; }
.nview > * { flex: none; }
.nbar .grow { flex: 1; min-width: 0; }
.nbar { position: sticky; top: -14px; background: var(--bg); padding: 4px 0; z-index: 2; border-bottom: 1px solid var(--line); }
.ntitle { margin: 4px 0 0; font-size: 22px; color: var(--text); }
.nmd { max-width: 820px; line-height: 1.7; }
.nmd img { max-width: 100%; border-radius: var(--r-s); }
.nmd table { border-collapse: collapse; } .nmd td, .nmd th { border: 1px solid var(--line); padding: 4px 8px; }
.nmd blockquote { border-left: 3px solid var(--acc); margin: 0; padding-left: 12px; color: var(--dim); }
.nmd pre { background: var(--surf); padding: 10px; border-radius: var(--r-s); overflow: auto; }
.nmd input[type="checkbox"] { margin-right: 6px; }
.nmd .tag { background: var(--sel); padding: 0 5px; border-radius: var(--r-s); font-size: var(--fs-meta); }
.wl-missing { color: var(--faint); border-bottom: 1px dashed var(--faint); cursor: help; }
.nmeta .pill { font-size: var(--fs-micro); }
.nback { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 3px; max-width: 820px; }
.nfoot { font-size: var(--fs-micro); }
.nedit { flex: 1; min-height: 60vh; width: 100%; font: inherit; line-height: 1.6; resize: vertical; }
@media (max-width: 760px) {
  .notes { grid-template-columns: minmax(0, 1fr); }
  .nview { padding: 10px 12px 20px; }
}
.nitem.hit { line-height: 1.35; }
.nitem.hit b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nitem.hit .faint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Befehlspalette ---------- */
.palette-ov { align-items: flex-start; padding-top: 12vh; }
.modal.palette { width: min(680px, 100%); display: flex; flex-direction: column; max-height: 70vh; }
.pin-row { padding: 10px 12px; border-bottom: 1px solid var(--line); gap: 10px; }
.pin-row .in.pin { flex: 1; border: 0; background: transparent; font-size: var(--fs-lead); padding: 4px 0; outline: 0; }
.plist { overflow-y: auto; padding: 6px; }
.pgroup { color: var(--faint); font-size: var(--fs-micro); text-transform: lowercase; padding: 8px 8px 3px; }
.pitem { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-s); cursor: pointer; min-width: 0; }
.pitem .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitem.on { background: var(--sel); }
.pitem.done .grow { color: var(--faint); }
.pitem .pico { width: 16px; text-align: center; color: var(--acc); flex: none; }
.bar .psearch { font-size: var(--fs-lead); padding: 3px 9px; }
@media (max-width: 760px) {
  .palette-ov { padding-top: 0; }
  .modal.palette { max-height: 100vh; min-height: 60vh; }
  .pitem { min-height: 44px; }
}

.panel.review .rfocus { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.panel.review { border-color: var(--acc); }

.ctx .ci.back { color: var(--acc); border-bottom: 1px solid var(--line); border-radius: 5px 5px 0 0; }

.steps { margin: 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 4px; color: var(--dim); }

.panel.body .stand { font-size: var(--fs-micro); text-align: right; }

}

/* ---------- Ziele & Gewohnheiten ---------- */
.gform .gbody { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
.gform .row .field { flex: 1; }
.planrow { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: var(--r-s); border-left: 3px solid transparent; }
.planrow .tm { font-variant-numeric: tabular-nums; color: var(--dim); white-space: nowrap; min-width: 92px; }
.planrow.past { opacity: .45; }
.planrow.now { border-left-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.planrow.now .tm { color: var(--acc); }
.planrow.next { border-left-color: var(--line); }
.planrow > .faint, .planrow > .pill { white-space: nowrap; flex: none; }
.planrow .grow { flex: 1; min-width: 0; }
.cplan { border-left: 3px solid var(--line); }
.habits-tile .auto { width: 15px; text-align: center; color: var(--grn); }

/* ---------- ~/system ---------- */
/* Zeilen, Dienste, Jobs, SSH: css/verwaltung.css */

.hiddenbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px dashed var(--yel); color: var(--yel); border-radius: var(--r-s); padding: 5px 10px; font-size: var(--fs-meta); }

.bar .files-btn { text-decoration: none; }
.nav .fav .fico { font-style: normal; color: var(--acc); margin-right: 7px; }
@media (max-width: 760px) { .bar .files-btn { display: none; } }

/* ~/sync */
.sync .qr { width: 168px; height: 168px; background: #fff; padding: 4px; border-radius: var(--r-s); image-rendering: pixelated; }
.sync .devid { display: block; margin: 8px 0; word-break: break-all; cursor: pointer; }
.sync .pending { border-top: 1px dashed var(--line, #333); padding: 8px 0; display: grid; gap: 6px; }

/* ~/woche: Körper-Wochenergebnis (FORGE) – Regeln in css/leben.css */

/* Syncthing im Datei-Manager, Speicher, Webseiten, Kachel-Reihenfolge */
.syncb { background: transparent; border: 1px solid var(--line); border-radius: var(--r-s); padding: 1px 7px; font: inherit; font-size: var(--fs-micro); color: var(--dim); cursor: pointer; white-space: nowrap; }
@media (hover: hover) { .syncb:hover { border-color: var(--acc); } }
.syncm { font-size: var(--fs-micro); }
/* Speicher-Balken, Webseiten, ~/geräte: css/verwaltung.css */

/* ---------- Seitenleiste: Shell-Optik (Martian Mono, Icons, Cursor, Scanlines) ---------- */
@font-face { font-family: "Martian Mono"; src: url("../vendor/fonts/martian-mono-latin-var.woff2") format("woff2");
  font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }
:root { --nav-font: "Martian Mono", var(--mono); }
.nav { width: 214px; padding: 12px 8px; position: relative;
  background-color: var(--surf);
  background-image: repeating-linear-gradient(to bottom, transparent 0 2px, var(--scan, transparent) 2px 3px); }
.nav a { align-items: center; gap: 8px; padding: 7px 9px 7px 10px; border-radius: var(--r-s); position: relative;
  font-family: var(--nav-font); font-size: var(--fs-meta); font-weight: 420; font-stretch: 87.5%; letter-spacing: -.01em;
  transition: color var(--t), background var(--t); }
.nav a .nl { display: flex; align-items: center; gap: 9px; min-width: 0; white-space: nowrap; overflow: hidden; }
.nav .nico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.nav a .pfx { color: var(--faint); margin-right: -9px; }
.nav a .txt { overflow: hidden; text-overflow: clip; }
.nav a:focus-visible .nico { opacity: 1; color: var(--acc); } @media (hover: hover) { .nav a:hover .nico { opacity: 1; color: var(--acc); } }
.nav a:focus-visible { outline: 1px solid var(--acc); outline-offset: -1px; }
.nav a.on { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 16%, transparent), transparent 85%);
  color: var(--text); font-weight: 560; box-shadow: inset 2px 0 0 var(--acc); text-shadow: var(--glow); }
.nav a.on .nico { opacity: 1; color: var(--acc); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--acc) 55%, transparent)); }
.nav a.on .pfx { color: var(--acc); }
.nav a.on .txt::after { content: "▌"; color: var(--acc); margin-left: 1px; animation: navblink 1.05s steps(1) infinite; }
.nav .k { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .02em; }
.nav a.on .k { color: var(--acc); }
.nav .lbl { font-family: var(--nav-font); font-stretch: 87.5%; font-size: var(--fs-micro); }
.nav .lbl::before { content: "# "; color: var(--acc); }
@keyframes navblink { 50% { opacity: 0; } }
.nav .fxch { display: inline-block; white-space: pre; animation: navfade 380ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes navfade { from { opacity: 0; filter: blur(3px); transform: translateY(2px); } to { opacity: 1; filter: blur(0); transform: none; } }
/* Klick landet immer auf dem Link selbst, auch wenn der Text-Effekt die Buchstaben gerade austauscht */
.nav a > * { pointer-events: none; }
.nav a { transition: color var(--t), background-color 180ms ease, box-shadow 220ms cubic-bezier(.2,.7,.2,1), transform 120ms ease; }
.nav a:active { transform: scale(.98); }
.nav a.on { animation: navon 260ms cubic-bezier(.2,.7,.2,1); }
@keyframes navon { from { box-shadow: inset 0 0 0 var(--acc); background-position: -60px 0; } }
.main.view-in > * { animation: viewin 240ms cubic-bezier(.2,.7,.2,1) backwards; }
.main.view-in > :nth-child(2) { animation-delay: 30ms; }
.main.view-in > :nth-child(3) { animation-delay: 60ms; }
.main.view-in > :nth-child(n+4) { animation-delay: 90ms; }
@keyframes viewin { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .nav a.on .txt::after, .nav a.on, .main.view-in > * { animation: none; } .nav a:active { transform: none; } }

/* ---------- ~/post ---------- */
.pchip { background: transparent; border: 1px solid var(--line); border-radius: var(--r-s); padding: 3px 9px; color: var(--dim); cursor: pointer; font: inherit; font-size: var(--fs-meta); white-space: nowrap; transition: border-color var(--t), color var(--t); }
@media (hover: hover) { .pchip:hover { color: var(--text); } }
.pchip.on { border-color: var(--acc); color: var(--acc); }
.post-head .filters select.in { max-width: 200px; }
.post { flex: 1; min-height: 360px; display: grid; grid-template-columns: minmax(300px, 44%) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); overflow: hidden; }
.postlist { overflow-y: auto; min-height: 0; border-right: 1px solid var(--line); }
.postlist .empty { margin: 12px; }
.prow { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 12px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; transition: background var(--t); }
/* Zeile verlässt die Liste (gelöscht/verschoben): ausblenden und zusammenklappen, die nächste rückt nach */
.prow.leaving { overflow: hidden; pointer-events: none; transition: opacity .16s ease-out, transform .16s ease-out, max-height .2s ease-in .04s, padding .2s ease-in .04s, border-bottom-width .2s ease-in .04s; }
.prow.leaving.out { opacity: 0; transform: translateX(14px); max-height: 0 !important; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; }
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="an"]) .prow.leaving { transition: none; } }
@media (hover: hover) { .prow:hover { background: var(--surf-2); } }
.prow.sel { background: var(--sel); }
.prow.cur { box-shadow: inset 2px 0 0 var(--acc); }
.prow.done { opacity: .5; }
.pdot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.prow.unread .pdot { background: var(--acc); box-shadow: var(--glow); }
.pmain { display: flex; flex-direction: column; min-width: 0; }
.pfrom, .psub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfrom { color: var(--dim); }
.prow.unread .pfrom { color: var(--text); font-weight: 600; }
.psub { color: var(--text); font-size: var(--fs-meta); }
.psub i { color: var(--faint); font-style: normal; }
.pstar { color: var(--yel); }
.pmeta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: var(--fs-micro); color: var(--faint); white-space: nowrap; }
.ptk { color: var(--grn); }
.plab { color: var(--dim); border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 5px; font-size: var(--fs-micro); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.postread { overflow-y: auto; min-height: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; color: var(--dim); }
.postread h4 { margin: 0; color: var(--text); font-size: var(--fs-body); line-height: 1.35; word-break: break-word; }
.postread .empty { margin: auto 0; }
.pfromline { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: var(--fs-meta); }
.pfromline > span:first-child { color: var(--text); word-break: break-all; }
.pacts { display: flex; flex-wrap: wrap; gap: 6px; }
.pacts .btn { padding: 3px 9px; font-size: var(--fs-meta); text-decoration: none; }
.ptext { white-space: pre-wrap; word-break: break-word; color: var(--text); line-height: 1.55; border-top: 1px dashed var(--line); padding-top: 10px; }
.ptbox { border: 1px dashed var(--line); border-radius: var(--r-s); padding: 9px 10px; display: flex; flex-direction: column; gap: 6px; }
.ptbox.ok { border-color: var(--grn); }
.ptbox .tlink { font-size: var(--fs-sm); }
.pback { display: none; align-self: flex-start; }
.pskip { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; min-width: 220px; }
.pskip textarea { width: 100%; }
.post-tile .orow .m.tone-ok { flex: none; }
@media (max-width: 799px) {
  .post { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .postlist { border-right: 0; }
  .postread { display: none; }
  .post.reading .postlist { display: none; }
  .post.reading .postread { display: flex; }
  .pback { display: inline-block; }
  .post-head .filters { gap: 6px; }
}

/* ---------- ~/finanzen ---------- */
.dot.lvl-off { background: var(--faint); }
.fin-head .row { flex-wrap: wrap; }
.fin-ampel { display: flex; flex-direction: column; gap: 6px; }
.fin-ampel .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.fin-amps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.fin-amp { border: 1px solid var(--line); border-left: 4px solid var(--lc, var(--line)); border-radius: var(--r); background: var(--surf); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fin-amp.lvl-ok { --lc: var(--grn); } .fin-amp.lvl-warn { --lc: var(--yel); } .fin-amp.lvl-crit { --lc: var(--red); }
.fin-amp-top { display: flex; align-items: center; gap: 8px; }
.fin-amp-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-state { font-size: 11px; color: var(--lc, var(--faint)); }
.fin-luft { font-size: 22px; font-weight: 600; color: var(--text); }
.fin-luft .faint { font-size: 12px; font-weight: 400; }
.fin-amp-sub { font-size: 11.5px; }
.fin-warn { color: var(--yel); font-size: 11.5px; }
.fin-amp.stale .fin-luft { opacity: .55; }
.fin-imports { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.fin-stand { font-size: 12px; }
.fin-kvs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
.fin-kv { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fin-kv span { font-size: 11px; }
.fin-kv b { font-weight: 600; }
.fin-ng { position: relative; height: 10px; border-radius: var(--r-s); background: var(--bg); border: 1px solid var(--line); margin: 6px 4px 2px; }
.fin-ng > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--acc); border-radius: var(--r-s); }
.fin-stage { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--faint); transform: translateX(-1px); }
.fin-stage.on { background: var(--grn); }
.fin-ng-sub { font-size: 11.5px; }
.fin-check { white-space: pre-wrap; word-break: break-word; color: var(--text); line-height: 1.5; }
.fin-facts summary { cursor: pointer; font-size: 11.5px; }
.fin-warns { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.fin-answer { border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.fin-pot { display: flex; flex-direction: column; gap: 4px; background: transparent; border: 1px solid transparent; border-radius: var(--r-s); padding: 6px 8px; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--t), background var(--t); }
@media (hover: hover) { .fin-pot:hover { background: var(--surf-2); } }
.fin-pot.on { border-color: var(--acc); }
.fin-pot-top { display: flex; align-items: baseline; gap: 6px; }
.fin-pot-top .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-pot-sub { font-size: 11.5px; }
.fin-bar { display: block; height: 8px; border-radius: var(--r-s); background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.fin-bar > i { display: block; height: 100%; border-radius: var(--r-s); background: var(--grn); }
.fin-bar > i.lvl-warn { background: var(--yel); } .fin-bar > i.lvl-crit { background: var(--red); }
.fin-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fin-filters .in { padding: 4px 8px; }
.fin-txs { display: flex; flex-direction: column; }
.fin-tx-row { display: grid; grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1.6fr) auto; gap: 10px; align-items: baseline; padding: 6px 4px; border-bottom: 1px dashed var(--line); cursor: pointer; border-radius: var(--r-s); outline: 0; }
.fin-tx-row:last-child { border-bottom: 0; }
.fin-tx-row:focus-visible { background: var(--surf-2); } @media (hover: hover) { .fin-tx-row:hover { background: var(--surf-2); } }
.fin-who, .fin-cat { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fin-cp, .fin-tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-tt { font-size: 11.5px; }
.fin-cat { display: block; text-align: left; justify-self: start; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-tag { color: var(--dim); } .fin-tag.unk { color: var(--yel); }
.fin-amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fin-tx-row.plus .fin-amt { color: var(--grn); }
.fin-tx-row.umb { opacity: .6; }
.fin-edit-top { display: flex; align-items: baseline; gap: 6px; }
.fin-result { min-height: 1.4em; }
.fin-tile-amps { display: flex; flex-direction: column; gap: 4px; }
.fin-tile-amp { display: flex; align-items: center; gap: 8px; }
.fin-tile-amp .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-tile-pot { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 799px) {
  .fin-amps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fin-kvs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fin-tx-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .fin-tx-row .fin-cat { grid-column: 2 / -1; grid-row: 2; }
  .fin-filters .in { flex: 1 1 120px; }
}

/* ---------- ~/finanzen: Abbuchungen als Kacheln ---------- */
.fin-abos .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
/* Treemap der Abbuchungen: dunkle Glasfläche in der Kategorie-Farbe (--fv-*), feiner Rand, Lichtkante oben, Anteil klein
   oben rechts. Namen laufen über bis zu --lines Zeilen (nie unlesbar abgeschnitten, Mindestgröße siehe lib/fin.js).
   Auftritt wie fs-go (Klasse auf .fin-map, nur mit Bewegung). */
.fin-map { position: relative; width: 100%; overflow: hidden; border-radius: var(--r-m); }
.fin-tile { --c: var(--dim); position: absolute; box-sizing: border-box; margin: 0; padding: 8px 10px 7px; overflow: hidden; border-radius: var(--r-s); text-align: left;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 3px; color: var(--text); cursor: pointer; font: inherit;
  border: 1px solid color-mix(in oklab, var(--c) 34%, var(--line));
  background: linear-gradient(180deg, color-mix(in oklab, var(--c) 17%, var(--bg)), color-mix(in oklab, var(--c) 7%, var(--bg)));
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--c) 38%, transparent);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.fin-tile:focus-visible { outline: none; z-index: 1; border-color: color-mix(in oklab, var(--c) 75%, var(--line));
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--c) 60%, transparent), 0 0 0 1px color-mix(in oklab, var(--c) 25%, transparent), 0 10px 24px -12px color-mix(in oklab, var(--c) 60%, transparent); } @media (hover: hover) { .fin-tile:hover { outline: none; z-index: 1; border-color: color-mix(in oklab, var(--c) 75%, var(--line));
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--c) 60%, transparent), 0 0 0 1px color-mix(in oklab, var(--c) 25%, transparent), 0 10px 24px -12px color-mix(in oklab, var(--c) 60%, transparent); } }
.fin-tile:active { transform: scale(.99); }
.fin-tile > * { pointer-events: none; }
.fin-tile-n { font-weight: 600; font-size: 12.5px; line-height: 15px; max-width: 100%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines, 2);
  overflow: hidden; overflow-wrap: break-word; hyphens: auto; letter-spacing: -.01em; }
.fin-tile-v { font-size: 11.5px; line-height: 15px; color: color-mix(in oklab, var(--c) 78%, var(--text)); font-family: var(--mono); font-variant-numeric: tabular-nums; display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-tile-s { position: absolute; right: 9px; top: 7px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.fin-tile.big { padding: 11px 13px 9px; gap: 4px; }
.fin-tile.big .fin-tile-n { font-size: 15px; line-height: 18px; padding-right: 34px; }
.fin-tile.big .fin-tile-v { font-size: 12.5px; }
.fin-tile.big .fin-tile-s { font-size: 12px; top: 10px; right: 12px; }
.fin-tile.mid .fin-tile-n { padding-right: 30px; }
.fin-tile.narrow .fin-tile-n { font-size: 11px; line-height: 14px; letter-spacing: -.02em; padding-right: 26px; }
.fin-tile.narrow .fin-tile-v { font-size: 10.5px; }
.fin-tile.slim { padding: 7px 8px 6px; }
.fin-tile.slim .fin-tile-n { font-size: 10px; line-height: 13px; letter-spacing: -.03em; padding-right: 0; }
.fin-tile.slim .fin-tile-s { position: static; order: -1; font-size: 9.5px; line-height: 10px; }
.fin-tile.slim .fin-tile-v { font-size: 10px; }
.fin-tile.tiny { padding: 5px 7px; gap: 0; }
.fin-tile.tiny .fin-tile-n { font-size: 10.5px; line-height: 13px; font-weight: 500; }
.fin-tile.cut { opacity: .55; }
.fin-tile.cut .fin-tile-n { text-decoration: line-through; }
.fin-tile.grp { background-image: linear-gradient(180deg, color-mix(in oklab, var(--c) 10%, var(--bg)), color-mix(in oklab, var(--c) 4%, var(--bg))),
    repeating-linear-gradient(135deg, color-mix(in oklab, var(--c) 9%, transparent) 0 1px, transparent 1px 10px); }
.fin-tile.grp .fin-tile-n { color: var(--dim); font-weight: 500; }
.fin-tile.grp .fin-tile-n::before { content: "\25A6  "; color: var(--c); }
.fin-tile-go { position: absolute; right: 9px; bottom: 6px; font-style: normal; color: var(--c); font-size: 15px; line-height: 1; }
.fin-tile.grp .fin-tile-v { padding-right: 16px; }
.fin-map.fs-go .fin-tile { animation: fv-rise .5s ease-out both; animation-delay: var(--d, 0ms); }
.fin-legend { margin-top: 2px; }
.fin-abos { display: flex; flex-direction: column; gap: 8px; }
.fin-abos-sum { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.fin-abos-back { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; letter-spacing: 0; text-transform: none; }
@media (prefers-reduced-motion: reduce) { .fin-tile { animation: none !important; transition: none; } }

/* ---------- Kachel-Brett (ui/panel-board.js, z. B. ~/finanzen) ----------
   12 Spalten wie die Startseite (.ov3); .pack = 4-px-Zeilen, der Zeilen-Span kommt aus der gemessenen Höhe (Höhe nach Inhalt).
   Jede Kachel ist eine Hülle section.pb-tile: oben rechts der Klapp-Pfeil (.pb-bar), zugeklappt wird daraus die ganze Titelzeile.
   Im Bearbeiten-Modus (.arrange) liegt eine Griffleiste (.ov-handle – gleiche Optik wie die Startseite) über jeder Kachel. */
.pb-board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: start; }
.pb-board.pack { row-gap: 0; grid-auto-rows: 4px; }
.pb-board > .g3 { grid-column: span 3; } .pb-board > .g4 { grid-column: span 4; } .pb-board > .g5 { grid-column: span 5; } .pb-board > .g6 { grid-column: span 6; }
.pb-board > .g7 { grid-column: span 7; } .pb-board > .g8 { grid-column: span 8; } .pb-board > .g9 { grid-column: span 9; } .pb-board > .g10 { grid-column: span 10; }
.pb-board > .g11 { grid-column: span 11; } .pb-board > .g12 { grid-column: 1 / -1; }
.pb-tile { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pb-tile > .panel { margin: 0; }
.pb-board > .thide { display: none; }
/* Klapp-Pfeil: klein oben rechts; die Kopfzeile des Panels lässt ihm Platz */
.pb-tile > .pb-bar { position: absolute; top: 8px; right: 8px; z-index: 2; width: 26px; height: 24px; padding: 0; border: 0; border-radius: var(--r-s); background: transparent;
  color: var(--faint); font: inherit; font-size: 13px; line-height: 1; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: color var(--t), background var(--t); }
.pb-tile > .pb-bar:focus-visible { color: var(--text); background: var(--surf-2); outline: none; } @media (hover: hover) { .pb-tile > .pb-bar:hover { color: var(--text); background: var(--surf-2); outline: none; } }
.pb-tile > .pb-bar > .pb-name { display: none; }
.pb-tile > .fin-ampel + .pb-bar, .pb-tile[data-tile="konten"] > .pb-bar { top: -3px; } /* konten hat keinen panel-rahmen: pfeil auf höhe der kopfzeile */
.pb-tile > .panel > h3, .pb-tile > .panel > .ph, .pb-tile > .fin-ampel > .ph, .pb-tile > .fin-ampel > .empty { padding-right: 30px; }
/* zugeklappt: nur die Titelzeile im Panel-Rahmen, der Pfeil wandert nach links */
.pb-tile.folded { border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); gap: 0; }
.pb-tile.folded > :not(.pb-bar, .pb-handle) { display: none; }
.pb-tile.folded > .pb-bar { position: static; width: 100%; height: auto; justify-content: flex-start; padding: 11px 12px; text-align: left; border-radius: var(--r); color: var(--faint); }
.pb-tile.folded > .pb-bar > .pb-name { display: inline; font-size: 12px; color: var(--acc); text-transform: lowercase; letter-spacing: .5px; font-weight: 600; }
@media (hover: hover) { .pb-tile.folded > .pb-bar:hover > .pb-name { text-decoration: underline; } }
/* Bearbeiten-Modus */
.pb-arrbar .grow { min-width: 200px; }
.pb-gone { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 12px; margin-bottom: 12px; border: 1px dashed var(--line); border-radius: var(--r-m); font-size: 12.5px; }
.pb-gone[hidden] { display: none; }
.pb-back { padding: 3px 10px; } .pb-back b { color: var(--grn); }
.pb-board.arrange > .pb-tile { cursor: grab; border-radius: var(--r-m); outline: 1px dashed color-mix(in srgb, var(--acc) 55%, transparent); outline-offset: 3px; }
.pb-board.arrange > .pb-tile > :not(.pb-handle) { pointer-events: none; opacity: .55; }
.pb-board.arrange > .pb-tile > .pb-bar { display: none; }
.pb-board.arrange > .pb-tile.folded { gap: 8px; padding-bottom: 8px; }
.pb-board.arrange > .pb-tile.folded > .pb-bar { display: flex; }
.pb-board.arrange > .tdim > :not(.pb-handle) { opacity: .2; }
.pb-board.arrange > .tdim { outline-style: dotted; }
.pb-board > .tdrag { opacity: .35; }
.pb-board > .tover { outline: 2px solid var(--acc); outline-offset: 3px; }
.pb-handle .pb-x { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); font-weight: 700; }
@media (hover: hover) { .pb-handle .pb-x:hover { background: color-mix(in srgb, var(--red) 18%, transparent); border-color: var(--red); } }
@media (max-width: 1100px) {
  .pb-board > .g3, .pb-board > .g4, .pb-board > .g5, .pb-board > .g6, .pb-board > .g7, .pb-board > .g8 { grid-column: span 6; }
  .pb-board > .g9, .pb-board > .g10, .pb-board > .g11 { grid-column: 1 / -1; }
}
@media (max-width: 799px) {
  /* Handy: eine Spalte in Murphys Reihenfolge, jede Kachel volle Breite, nichts ragt nach rechts hinaus */
  .pb-board, .pb-board.pack { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .pb-board > .pb-tile { width: 100%; max-width: 100%; }
  .pb-handle .ov-hg[title="breite"] { display: none; } /* breite spielt in einer spalte keine rolle */
  .pb-board.arrange > .pb-tile { cursor: default; }
}

/* ---------- ~/training: Muskel-Woche ---------- */
/* Seite und Grafiken: css/leben.css. Hier bleiben nur die Regeln der Bearbeiten-Dialoge. */
.t-rex { margin: 0; padding-left: 20px; font-size: var(--fs-sm); line-height: 1.55; }
.t-rex.edit li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.t-ord { display: inline-flex; gap: 2px; }
.t-ord .btn { padding: 2px 6px; }
.t-mboxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 10px; }
.t-mbox { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }

/* ~/finanzen: Archiv vor dem Neustart */
.fin-archiv { font-size: var(--fs-sm); margin: 0 0 8px; }
.fin-tx-row.archiv { opacity: .5; }
.fin-tx-row.archiv:focus-visible { opacity: .85; } @media (hover: hover) { .fin-tx-row.archiv:hover { opacity: .85; } }

/* ~/finanzen Geldfluss */
.fin-flow { display: flex; flex-direction: column; gap: 10px; }
.fin-flow .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fin-flow-next { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surf-2, var(--surf)); }
.fin-flow-when { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.fin-flow-when b { font-size: 24px; font-weight: 650; color: var(--text); line-height: 1.1; }
.fin-flow-when span { font-size: var(--fs-meta); }
.fin-flow-salary { flex: 1; min-width: 220px; font-size: var(--fs-sm); padding: 8px 10px; border-radius: var(--r); border-left: 4px solid var(--yel); background: var(--surf); }
.fin-flow-salary.ok { border-left-color: var(--grn); }
.fin-flow-h { font-size: var(--fs-meta); margin-bottom: 2px; }
.fin-flow-steps { display: flex; flex-direction: column; gap: 6px; }
.fin-flow-row { --lc: var(--line); display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; padding: 7px 10px; border: 1px solid var(--line); border-left: 4px solid var(--lc); border-radius: var(--r); background: var(--surf); }
.fin-flow-row.tone-ok { --lc: var(--grn); } .fin-flow-row.tone-warn { --lc: var(--yel); } .fin-flow-row.tone-crit { --lc: var(--red); }
.fin-flow-row.tone-ok .fin-flow-main { opacity: .7; }
.fin-flow-row.big .fin-flow-who, .fin-flow-row.big .fin-flow-amt { font-size: var(--fs-lead); }
.fin-flow-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fin-flow-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.fin-flow-who { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.fin-flow-amt { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fin-flow-amt.plus { color: var(--grn); }
.fin-flow-sub { font-size: var(--fs-meta); overflow-wrap: anywhere; }
.fin-flow-st { font-size: var(--fs-meta); color: var(--lc); white-space: nowrap; align-self: center; }
.fin-flow-row.tone-idle .fin-flow-st { color: var(--faint); }
.fin-flow-box { width: 22px; height: 22px; border: 2px solid var(--line); border-radius: var(--r-s); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-body); font-weight: 700; background: transparent; color: var(--grn); padding: 0; margin-top: 1px; }
button.fin-flow-box { cursor: pointer; }
@media (hover: hover) { button.fin-flow-box:hover { border-color: var(--acc); } }
.fin-flow-box.on { border-color: var(--grn); }
.fin-flow-alert { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--yel); font-size: var(--fs-sm); }
.fin-flow-alert.crit { border-color: var(--red); }
.fin-flow-alert.crit > b { color: var(--red); } .fin-flow-alert.warn > b { color: var(--yel); }
.fin-flow-all summary { cursor: pointer; font-size: var(--fs-sm); color: var(--dim); padding: 4px 0; }
.fin-flow-legend { font-size: var(--fs-meta); margin: 4px 0 8px; }
.fin-flow-day { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.fin-flow-date { font-size: var(--fs-meta); font-weight: 600; color: var(--dim); position: sticky; top: 0; background: var(--bg); padding: 2px 0; }
.fin-flow-day.today .fin-flow-date { color: var(--acc); }
.fin-flow-cfg { display: flex; flex-direction: column; gap: 6px; }
.fin-flow-cfg-row { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); }
.fin-tile-flow { font-size: var(--fs-sm); display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 560px) {
  .fin-flow-row { grid-template-columns: 24px minmax(0, 1fr); }
  .fin-flow-st { grid-column: 2; align-self: start; white-space: normal; }
}

/* ---------- Handy-Kopfzeile: Eingabe darf schrumpfen, theme nur als Symbol ---------- */
.theme .tshort { display: none; }
@media (max-width: 760px) {
  .cmd input { min-width: 0; width: 100%; text-overflow: ellipsis; }
  .bar .brand { flex: none; }
  .bar .psearch { flex: none; padding: 4px 8px; }
  .theme .tlong { display: none; }
  .theme .tshort { display: inline; font-size: 16px; line-height: 1; }
  .theme > .btn { padding: 5px 9px; }
}

/* ---------- Tablet (iPad hochkant): Seitenleiste als schmale Symbolleiste ---------- */
@media (min-width: 761px) and (max-width: 1100px) {
  .nav { width: 74px; padding: 8px 4px; }
  .nav a { flex-direction: column; justify-content: center; padding: 6px 2px; gap: 0; margin-bottom: 1px; }
  .nav a .nl, .nav .k, .nav .sep, .nav .lbl, .nav .area, .nav .navreset { display: none; }
  .nav .ns { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 100%; overflow: hidden;
    font-family: var(--nav-font); font-stretch: 87.5%; font-size: 9.5px; white-space: nowrap; text-overflow: ellipsis; }
  .nav .ns .nico { width: 20px; height: 20px; }
  .nav a.on { box-shadow: inset 2px 0 0 var(--acc); }
  .bar .dots { display: none; }
}

/* ---------- ~/finanzen · Laden (TeslaMate) ---------- */
.tes { display: flex; flex-direction: column; gap: 10px; }
.tes .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tes .ph a { text-decoration: none; font-size: var(--fs-meta); }
.tes-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr); gap: 14px; align-items: start; }
.tes-svg { width: 100%; height: auto; display: block; overflow: visible; }
.tes-base { stroke: var(--line); stroke-width: 1; }
rect.tes-ac { fill: var(--acc); opacity: .85; } rect.tes-dc { fill: var(--yel); opacity: .9; }
.tes-val { font-size: var(--fs-micro); fill: var(--dim); text-anchor: middle; font-variant-numeric: tabular-nums; }
.tes-lbl { font-size: var(--fs-micro); fill: var(--faint); text-anchor: middle; }
.tes-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-meta); color: var(--dim); margin-top: 6px; }
.tes-legend i { display: inline-block; width: 9px; height: 9px; border-radius: var(--r-xs); margin-right: 5px; vertical-align: -1px; }
.tes-legend i.tes-ac { background: var(--acc); } .tes-legend i.tes-dc { background: var(--yel); }
.tes-est { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surf-2, var(--surf)); font-size: var(--fs-sm); }
.tes-big { font-size: 26px; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tes-budget { margin-top: 4px; padding: 6px 8px; border-radius: var(--r-s); border-left: 3px solid var(--grn); background: var(--surf); }
.tes-budget.tone-warn { border-left-color: var(--yel); } .tes-budget.tone-crit { border-left-color: var(--red); color: var(--text); }
.tes-price { align-self: flex-start; font-size: var(--fs-meta); padding: 3px 6px; margin-top: 2px; }
.tes-places { display: flex; flex-direction: column; }
.tes-place { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 76px 56px; gap: 8px; align-items: center; padding: 5px 2px; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.tes-place:last-child { border-bottom: 0; }
.tes-pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tes-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tes-kind { font-size: var(--fs-micro); font-weight: 650; text-align: center; padding: 1px 4px; border-radius: var(--r-s); border: 1px solid var(--acc); color: var(--acc); }
.tes-kind.k-dc { border-color: var(--yel); color: var(--yel); }
.tes-kind.k-mix { border-color: var(--dim); color: var(--dim); }
.tes-recent summary { cursor: pointer; font-size: var(--fs-sm); color: var(--dim); padding: 4px 0; }
@media (max-width: 760px) {
  .tes-top { grid-template-columns: minmax(0, 1fr); }
  .tes-place { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .tes-place > .faint { grid-column: 2; grid-row: 2; font-size: var(--fs-micro); }
  .tes-place > .tes-num:last-child { grid-column: 3; grid-row: 2; }
}

/* ---------- Symbol-Schiene + Zahnrad (ersetzt die breite Seitenleiste) ---------- */
.nav .rail-grp, .nav .grip, .nav .rk, .nav .rail-btn { display: none; }
.gear-btn { display: inline-flex; align-items: center; justify-content: center; padding: 4px 7px; }
.gear-btn .gico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 300ms cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .gear-btn:hover .gico { transform: rotate(45deg); } }
.gear-btn.on { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 45%, transparent); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.rail-tip { position: fixed; z-index: 300; transform: translate(-4px, -50%); opacity: 0; pointer-events: none; display: flex; gap: 10px; align-items: center;
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-s); padding: 4px 9px; box-shadow: var(--shadow);
  font-family: var(--nav-font); font-stretch: 87.5%; font-size: var(--fs-micro); color: var(--text); white-space: nowrap; transition: opacity 120ms ease, transform 160ms cubic-bezier(.2,.7,.2,1); }
.rail-tip.on { opacity: 1; transform: translate(0, -50%); }
.rail-tip kbd { color: var(--faint); font-size: var(--fs-micro); }
@media (min-width: 761px) {
  .nav.rail { width: 58px; padding: 10px 0; display: flex; flex-direction: column; align-items: center; gap: 3px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
  .nav.rail a { flex: none; width: 38px; height: 38px; padding: 0; margin: 0; justify-content: center; border-radius: var(--r-m); color: var(--dim); }
  .nav.rail a .ns { display: flex; align-items: center; justify-content: center; }
  .nav.rail a .st, .nav.rail .navmore { display: none; }
  .nav.rail .nico { width: 19px; height: 19px; opacity: .8; }
  @media (hover: hover) { .nav.rail a:hover { background: var(--surf-2); color: var(--text); } }
  .nav.rail a.on { background: color-mix(in srgb, var(--acc) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 35%, transparent); color: var(--acc); animation: none; }
  .nav.rail a.on .nico { opacity: 1; color: var(--acc); }
  .nav.rail .sep { width: 22px; border-top: 1px solid var(--line); margin: 7px 0; flex: none; }
  .nav.rail a.dragover { box-shadow: inset 0 2px 0 var(--acc); }
  /* Schalter unten: ausklappen und (ausgeklappt) anordnen */
  .nav.rail { transition: width 200ms cubic-bezier(.2,.7,.2,1); }
  .nav.rail .rail-btn { display: flex; flex: none; align-items: center; justify-content: center; gap: 9px; width: 38px; height: 30px; padding: 0; border: 0; border-radius: var(--r-m);
    background: transparent; color: var(--faint); font-family: var(--nav-font); font-stretch: 87.5%; font-size: var(--fs-micro); cursor: pointer; }
  .nav.rail .rail-btn:focus-visible { background: var(--surf-2); color: var(--text); } @media (hover: hover) { .nav.rail .rail-btn:hover { background: var(--surf-2); color: var(--text); } }
  .nav.rail .rail-btn b { font-weight: 400; font-size: var(--fs-body); line-height: 1; width: 19px; text-align: center; }
  .nav.rail .rail-btn span, .nav.rail .rail-edit { display: none; }
  .nav.rail .rail-tog { margin-top: auto; }
  /* ausgeklappt: Symbol + Name + Kürzel, Gruppen mit Überschrift */
  .nav.rail.wide { width: 198px; padding: 10px 8px; align-items: stretch; }
  .nav.rail.wide a { width: auto; height: 34px; padding: 0 9px 0 10px; justify-content: flex-start; gap: 8px; }
  .nav.rail.wide a .ns { flex: 1 1 auto; min-width: 0; justify-content: flex-start; gap: 10px; }
  .nav.rail.wide a .st { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav.rail.wide a .rk { display: block; flex: none; color: var(--faint); font-family: var(--mono); font-size: var(--fs-micro); }
  .nav.rail.wide a.on .rk { color: var(--acc); }
  .nav.rail.wide .rail-grp { display: block; padding: 4px 10px 3px; color: var(--faint); font-family: var(--nav-font); font-stretch: 87.5%; font-size: var(--fs-micro); }
  .nav.rail.wide .rail-grp::before { content: "# "; color: var(--acc); }
  .nav.rail.wide .sep { width: auto; margin: 7px 4px; }
  .nav.rail.wide .rail-btn { width: auto; justify-content: flex-start; padding: 0 9px 0 10px; }
  .nav.rail.wide .rail-btn span { display: inline; }
  .nav.rail.wide .rail-edit { display: flex; margin-top: auto; }
  .nav.rail.wide .rail-tog { margin-top: 0; }
  .nav.rail .rail-edit.on { color: var(--grn); background: color-mix(in srgb, var(--grn) 12%, transparent); }
  /* Anordnen-Modus: grüne Punkte als Griff, Kürzel weichen, fremde Gruppen treten beim Ziehen zurück */
  .nav.rail.edit a { cursor: grab; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--grn) 22%, transparent); }
  .nav.rail.edit a:active { cursor: grabbing; }
  .nav.rail.edit a .grip { display: block; flex: none; width: 8px; height: 14px;
    background: radial-gradient(circle, var(--grn) 1.5px, transparent 1.8px) 0 0 / 4px 4.67px; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--grn) 60%, transparent)); }
  .nav.rail.edit a .rk { display: none; }
  .nav.rail.edit a.dragover { box-shadow: inset 0 2px 0 var(--grn); }
  .nav.rail.edit a.dragover.after { box-shadow: inset 0 -2px 0 var(--grn); }
  .nav.rail.edit .rail-grp { border-radius: var(--r-s); }
  .nav.rail.edit .rail-grp.dragover { color: var(--grn); background: color-mix(in srgb, var(--grn) 14%, transparent); }
  .nav.rail.edit .rail-grp.leer { padding: 9px 10px; border: 1px dashed color-mix(in srgb, var(--grn) 35%, transparent); }
  .nav.rail.edit .rail-grp.leer::after { content: " · leer, hierher ziehen"; }
}
@media (prefers-reduced-motion: reduce) { .nav.rail { transition: none; } }
@media (max-width: 760px) {
  .gear-btn { display: none; }
}
/* ~/dateien: Favoriten-Zeile */
.fav-strip { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: thin; padding: 0 0 8px; white-space: nowrap; }
.fav-strip .fav-it { flex: none; padding: 3px 10px; border: 1px solid var(--line); border-radius: var(--r-full); color: var(--dim); text-decoration: none; font-size: var(--fs-meta); }
@media (hover: hover) { .fav-strip .fav-it:hover { color: var(--text); border-color: var(--acc); } }

/* ---------- KI-Terminal (Übersicht) ---------- */
.term-box { display: flex; flex-direction: column; min-height: 210px; max-height: 360px; border-radius: var(--r); cursor: text;
  background: color-mix(in srgb, var(--acc) 5%, #0a0d11); color: #d6dde4;
  border: 1px solid color-mix(in srgb, var(--acc) 28%, var(--line)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), var(--glow, none);
  font-family: var(--nav-font, var(--mono)); font-stretch: 87.5%; font-size: var(--fs-meta); }
.term-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.term-dots { display: flex; gap: 5px; } .term-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.14); }
.term-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(230,237,243,.45); }
.term-box .tlink.faint { color: rgba(230,237,243,.5); }
.term-out { flex: 1; overflow-y: auto; padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 10px; }
.term-q { color: var(--acc); }
.term-ps { color: var(--acc); font-weight: 700; }
.term-a { margin: 3px 0 0 14px; white-space: pre-wrap; line-height: 1.5; }
.term-a.faint { color: rgba(230,237,243,.5); }
.term-src { margin: 4px 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-micro); }
.term-line .aiprop { margin: 6px 0 0 14px; }
.term-prompt { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px; }
.term-in { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: inherit; font: inherit; caret-color: var(--acc); }
.term-in::placeholder { color: rgba(230,237,243,.3); }
@media (prefers-reduced-motion: no-preference) { .term-in:focus { caret-shape: block; } }

/* ---------- Übersicht A: Heute, Fällig, Anstehend, Chips, Terminal ---------- */
.ov { display: flex; flex-direction: column; gap: 12px; }
.ov > .head { margin-bottom: 0; }
.ov .panel { margin: 0; }
.ov-empty { color: var(--faint); padding: 8px 6px; }
.ov-done, .ov-morgen { padding: 5px 6px; font-size: var(--fs-meta); }
.ov-morgen { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
.ov-more { align-self: flex-start; margin: 4px 0 0 2px; }
/* ~/ziele: nächster Schritt + Gewohnheiten am Ziel */
.gnext { display: flex; gap: 8px; align-items: center; padding: 6px 8px; margin: 6px 0; border: 1px solid var(--acc); border-radius: var(--r-m); cursor: pointer; font-size: var(--fs-sm); }
.gnext .grow { flex: 1; min-width: 0; }
.gnext.empty { border-style: dashed; border-color: var(--yel); cursor: default; }
.ghabits { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: 6px 0; font-size: var(--fs-meta); }
.ghabits .pill.ok { color: var(--grn, var(--acc)); }
/* Coming up: Sport, Serien, Filme */
.ov-cu { min-width: 0; }
.cu-row { color: inherit; text-decoration: none; }
.cu-row .kind { color: inherit; }
.cu-row.soon .m { color: var(--acc); font-weight: 600; }
.cu-x { background: none; border: 0; color: inherit; cursor: pointer; padding: 0 4px; margin-left: 6px; opacity: 0; font-size: 1.05em; line-height: 1; }
.cu-x:focus-visible { opacity: .55; } @media (hover: hover) { .cu-row:hover .cu-x { opacity: .55; } }
@media (hover: hover) { .cu-x:hover { opacity: 1; color: var(--red); } }
@media (hover: none) { .cu-x { opacity: .4; } }
.cu-hidden .orow { padding-top: 2px; padding-bottom: 2px; }
.cu-err { font-size: var(--fs-micro); margin-top: 6px; }
/* Wird veröffentlicht: freigegebene Beiträge aller Content-Workflows, die nächsten 60 Minuten gelb (warn) */
.ov-pub { min-width: 0; }
.pub-list { display: flex; flex-direction: column; gap: 2px; }
.pub-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 6px; border-radius: var(--r-s); border-left: 3px solid transparent; color: inherit; text-decoration: none; min-width: 0; transition: background var(--t); }
@media (hover: hover) { .pub-row:hover { background: var(--surf-2); } }
.pub-row.soon { border-left-color: var(--yel); background: color-mix(in srgb, var(--yel) 8%, transparent); }
.pub-row.stale { opacity: .75; }
.pub-when { flex: none; width: 112px; display: flex; flex-direction: column; font-size: var(--fs-meta); font-variant-numeric: tabular-nums; }
.pub-when .faint { font-size: var(--fs-micro); }
.pub-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pub-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-meta, .pub-note { font-size: var(--fs-micro); overflow: hidden; text-overflow: ellipsis; }
.pub-note { color: var(--dim); }
.pub-offen { display: inline-block; font-size: var(--fs-meta); margin: 6px 6px 0; }
.pub-hint { font-size: var(--fs-micro); padding: 6px 6px 0; }
.pub-done { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.pub-done-h { font-size: var(--fs-micro); padding: 0 6px 2px; }
.pub-row.done { opacity: .8; }
.pub-check { color: var(--grn); }
@media (max-width: 760px) { .pub-when { width: 84px; } .pub-title { white-space: normal; } }
@media (max-width: 760px) {
  .planrow .tm { min-width: 52px; }
  .ov-in { flex-wrap: wrap; }
}
.ov > div:empty { display: none; }
/* Terminal: Akzent im dunklen Kasten aufhellen (helle Themes haben dunkle Akzente), Vorschläge transparent */
.term-box .term-q, .term-box .term-ps, .term-box .tlink:not(.faint) { color: color-mix(in srgb, var(--acc) 55%, #ffffff); }
.term-line .aiprop { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: #d6dde4; }
.term-line .aiprop .faint, .term-line .aiprop .dim { color: rgba(214,221,228,.6); }

/* ~/speicher, ~/backups: css/verwaltung.css */

/* ---------- Übersicht: bündige Kanten + Terminal in Hacker-Grün ---------- */
.ov-today { display: flex; flex-direction: column; }
.ov-today .ov-morgen { margin-top: auto; }
.ov-term, .ov-term .term-box { height: 100%; }
.term-box { background: var(--term-bg); color: var(--term-ink); border: 1px solid var(--term-line); border-radius: var(--term-r);
  box-shadow: var(--term-shade);
  background-image: var(--term-scan);
  font-family: var(--mono); font-stretch: normal; font-size: var(--fs-sm); text-shadow: var(--term-glow); }
.term-bar { border-bottom: 1px solid var(--term-line-2); background: var(--term-tint); }
.term-dots i { background: var(--term-line); }
.term-title { color: var(--term-dim); }
.term-box .tlink.faint, .term-box .term-st.faint { color: var(--term-dim); }
.term-box .term-st.tone-ok { color: var(--term-hi); }
.term-box .term-q, .term-box .term-ps, .term-box .tlink:not(.faint) { color: var(--term-hi); }
.term-a { color: var(--term-ink); }
.term-a.faint { color: var(--term-faint); }
.term-in { color: var(--term-hi); caret-color: var(--term-hi); }
.term-in::placeholder { color: var(--term-ph); }
.term-in:focus { caret-shape: block; }
.term-line .aiprop { background: var(--term-tint); border-color: var(--term-line); color: var(--term-ink); }
.term-line .aiprop .faint, .term-line .aiprop .dim { color: var(--term-dim); }
.term-line .aiprop .btn { color: var(--term-hi); border-color: var(--term-ph); background: transparent; }
.term-out::-webkit-scrollbar-thumb { background: var(--term-line); }
@media (max-width: 760px) { .ov-term, .ov-term .term-box { height: auto; } }

/* Ticket „not continued“ (verworfen): grau, durchgestrichen, Marke */
.t.discarded .tt, .t.discarded .title { text-decoration: line-through; }
.t.discarded::after { content: "not continued"; position: absolute; right: 8px; bottom: 6px; font-size: var(--fs-micro); color: var(--faint); letter-spacing: .03em; }
.t.discarded { position: relative; opacity: .6; }

/* ---------- Übersicht: Fahrplan-Kachel (Stufen, nächster Schritt, Konten, nächste Tage) ---------- */
.ov-fp { gap: 12px; }
.ov-fp-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 22px; align-items: start; }
.ov-fp-main, .ov-fp-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 1000px) { .ov-fp-body { grid-template-columns: minmax(0, 1fr); } }
.ov-fp-steps { display: flex; gap: 6px; }
.ov-fp-st { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-micro); color: var(--faint); }
.ov-fp-st > i { display: block; height: 3px; border-radius: var(--r-xs); background: var(--line); }
.ov-fp-st > span { display: flex; gap: 5px; align-items: baseline; line-height: 1.3; }
.ov-fp-st b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ov-fp-st.done { color: var(--dim); }
.ov-fp-st.done > i { background: color-mix(in srgb, var(--acc) 45%, var(--line)); }
.ov-fp-st.on { color: var(--text); }
.ov-fp-st.on > i { background: var(--acc); box-shadow: 0 0 10px color-mix(in srgb, var(--acc) 55%, transparent); }
.ov-fp-st.on b { color: var(--acc); }
.ov-fp-fallen { font-size: var(--fs-meta); color: var(--dim); }
.ov-fp-fi { color: var(--yel); }
.ov-fp-hero { border: 1px solid var(--acc); border-radius: calc(var(--r) + 4px); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 8%, transparent), transparent 60%), var(--surf-2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 10%, transparent), 0 14px 40px -24px color-mix(in srgb, var(--acc) 60%, transparent); }
.ov-fp-lab { font-size: var(--fs-micro); letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }
.ov-fp-title { font-family: var(--ax-sans, var(--mono)); font-size: var(--fs-title); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--text); }
.ov-fp-text { color: var(--dim); }
.ov-fp-why { color: var(--dim); font-size: var(--fs-meta); border-left: 2px solid var(--acc); padding: 2px 0 2px 10px; }
.ov-fp-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ov-fp-konten { display: flex; flex-direction: column; gap: 5px; padding: 0 2px; }
.ov-fp-kh { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: var(--fs-meta); }
.ov-fp-kv { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ov-fp-k b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.ov-fp-cur { font-size: var(--fs-meta); }
.ov-fp .t-neg { color: var(--red); } .ov-fp .t-pos { color: var(--grn); } .ov-fp .t-idle { color: var(--dim); }
.ov-fp-days { display: flex; flex-direction: column; }
.ov-fp-day { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 7px 2px; border-bottom: 1px dashed var(--line); }
.ov-fp-day:first-child { padding-top: 0; }
.ov-fp-day:last-child { border-bottom: 0; }
.ov-fp-dl { color: var(--faint); font-size: var(--fs-meta); padding-top: 1px; white-space: nowrap; }
.ov-fp-its { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ov-fp-it { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.ov-fp-it .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ov-fp-sg { width: 14px; flex: none; text-align: center; color: var(--dim); }
.ov-fp-it.k-todo .ov-fp-sg { color: var(--acc); }
.ov-fp-it.k-erwartet { color: var(--dim); }
.ov-fp-it.k-erwartet .ov-fp-sg { color: var(--faint); }
.ov-fp-it.done { color: var(--faint); } .ov-fp-it.done .grow { text-decoration: line-through; } .ov-fp-it.done .ov-fp-amt { color: var(--faint); }
.ov-fp-tag { display: inline-block; margin-left: 7px; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--r-full); font-size: var(--fs-micro); color: var(--faint); vertical-align: 1px; }
.ov-fp-tag.erw { border-style: dashed; }
.ov-fp-tag.warn { color: var(--yel); border-color: color-mix(in srgb, var(--yel) 45%, var(--line)); }
.ov-fp-amt { flex: none; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-fp-links { display: flex; gap: 16px; flex-wrap: wrap; }
[data-theme="anthrazit"] .ov-fp-lab { font-family: var(--ax-sans); letter-spacing: .16em; }
[data-theme="anthrazit"] .ov-fp-hero { border-color: color-mix(in srgb, var(--acc) 60%, transparent); border-radius: var(--r-xl); }
/* + ausgabe, umschlag-ausgleich, täglicher abgleich */
.ov-fp-hr { display: inline-flex; gap: 12px; align-items: center; }
.ov-fp .btn.sm, .ov-st .btn.sm { padding: 3px 10px; font-size: var(--fs-meta); line-height: 1.4; }
/* ~/stellen */
.ov-st { gap: 8px; }
.ov-st-sub { font-size: var(--fs-meta); margin-top: -4px; }
.ov-st-firmen { font-size: var(--fs-meta); color: var(--dim); }
.ov-st-bonus { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: var(--fs-meta); color: var(--dim); }
.ov-st-ziel { border: 1px solid var(--line); border-radius: var(--r-full); padding: 0 7px; font-size: var(--fs-micro); color: var(--faint); }
.ov-st-ziel.ok { color: var(--grn); border-color: color-mix(in srgb, var(--grn) 45%, var(--line)); }
.ov-st-err { font-size: var(--fs-meta); color: var(--yel); }
.ov-st-list { display: flex; flex-direction: column; }
.ov-st-it { display: flex; gap: 12px; align-items: center; padding: 8px 2px; border-bottom: 1px dashed var(--line); min-width: 0; }
.ov-st-it:last-child { border-bottom: 0; }
.ov-st-it .grow { flex: 1; min-width: 0; }
.ov-st-t { display: flex; gap: 7px; align-items: baseline; flex-wrap: wrap; overflow-wrap: anywhere; }
.ov-st-t .tlink { color: var(--text); }
.ov-st-m { font-size: var(--fs-meta); overflow-wrap: anywhere; }
.ov-st-neu { font-size: var(--fs-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 50%, var(--line)); border-radius: var(--r-full); padding: 0 6px; }
.ov-st-fav { color: var(--yel); }
.ov-st-sal { flex: none; font-family: var(--mono); font-size: var(--fs-meta); color: var(--grn); white-space: nowrap; }
.ov-st-acts { display: inline-flex; gap: 4px; flex: none; }
.ov-st-acts .btn.sm { padding: 1px 8px; min-width: 30px; }
.ov-st-more { align-self: flex-start; }
.ov-af .ov-af-when { color: var(--dim); }
.ov-st-acts .btn.sm:disabled { opacity: .55; }
@media (max-width: 700px) { .ov-st-it { flex-wrap: wrap; row-gap: 2px; } .ov-st-it .grow { flex: 1 1 60%; } .ov-st-sal { order: 3; flex-basis: 100%; } }
.ov-fp-aus { letter-spacing: .02em; }
.ov-fp-um { font-size: var(--fs-meta); color: var(--yel); }
.ov-fp-chk { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--yel) 40%, var(--line)); border-radius: var(--r); }
.ov-fp-chk .ov-fp-it { align-items: center; }
.ov-fp-cb { display: inline-flex; gap: 4px; flex: none; }
.ov-fp-cb .btn.sm { padding: 1px 8px; min-width: 30px; }
.ov-aus { display: flex; flex-direction: column; gap: 10px; }
.ov-aus-f { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; font-size: var(--fs-meta); }
.ov-aus-f .in { font-size: 16px; }
.ov-aus-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ov-aus-acts { display: flex; justify-content: flex-end; }
.ov-aus-out { display: flex; flex-direction: column; gap: 8px; }
.ov-aus-out:empty { display: none; }
.ov-aus-res { padding: 8px 10px; border-left: 2px solid var(--grn); }
.ov-aus-res.neg { border-left-color: var(--yel); }
@media (max-width: 700px) {
  .ov-fp-st:not(.on) .nm { display: none; }
  .ov-fp-st.on { flex-grow: 3.5; }
  .ov-fp-hero { padding: 12px 13px; }
  .ov-fp-title { font-size: var(--fs-lead); }
  .ov-fp-day { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ~/finanzen · business */
.fin-biz { gap: 14px; }
.fin-biz .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fin-biz .t-pos { color: var(--grn); } .fin-biz .t-neg { color: var(--red); }

/* ~/finanzen · fahrplan (ganze übersicht) */
.fin-fp { gap: 14px; }
.fin-fp .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 28px; align-items: start; }
.fp-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.fp-blk { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fp-h { font-size: var(--fs-micro); letter-spacing: .14em; color: var(--faint); text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.fp-note { font-size: var(--fs-meta); color: var(--yel); }
.fp-stage { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 5px 0; color: var(--faint); }
.fp-n { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 600 11px var(--mono); }
.fp-stage.done { color: var(--dim); } .fp-stage.done .fp-n { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); color: var(--acc); }
.fp-stage.on { color: var(--text); } .fp-stage.on .fp-n { border-color: var(--acc); background: var(--acc); color: var(--surf); }
.fp-sb { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fp-sn { font-weight: 600; } .fp-cur { color: var(--acc); font-weight: 400; }
.fp-st { font-family: var(--mono); font-size: var(--fs-meta); color: var(--dim); overflow-wrap: anywhere; }
.fp-bar { display: block; height: 4px; border-radius: var(--r-s); background: var(--line); overflow: hidden; }
.fp-bar u { display: block; height: 100%; background: var(--acc); text-decoration: none; }
.fp-row { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.fp-row:last-child { border-bottom: 0; }
.fp-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.fp-line .fp-name { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.fp-sub { font-size: var(--fs-meta); color: var(--faint); }
.fp-amt { margin-left: auto; font-size: var(--fs-meta); color: var(--dim); white-space: nowrap; }
.fp-v { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text); }
.fp-done { color: var(--faint); } .fp-done .fp-name { text-decoration: line-through; } .fp-done .fp-v { color: var(--faint); }
.fp-edit { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; padding: 8px; border: 1px dashed var(--line); border-radius: var(--r-s); }
.fp-edit label, .fp-rest { display: flex; flex-direction: column; gap: 3px; font-size: var(--fs-micro); color: var(--faint); }
.fp-in { width: 112px; font-family: var(--mono); }
.fp-in[type="date"] { width: 140px; }
.fp-rest { flex-direction: row; align-items: center; gap: 6px; }
.fp-grp { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; }
.fp-gh { padding: 2px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.fp-it { padding: 3px 0 3px 10px; font-size: var(--fs-sm); }
.fp-sum { padding-top: 6px; border-top: 1px solid var(--line); font-weight: 600; }
@media (max-width: 700px) {
  .fp-grid { grid-template-columns: minmax(0, 1fr); }
  .fp-in, .fp-in[type="date"] { width: 100%; }
  .fp-rest { flex: 1 1 100%; }
  .fp-rest .fp-in { flex: 1; }
}
.ov-ts-top { display: flex; align-items: center; gap: 18px; margin: 4px 0 8px; }
.ov-ts-gauge { position: relative; width: 108px; height: 108px; flex: none; }
.ov-ts-ring, .ov-ts-ring svg { width: 100%; height: 100%; display: block; }
.ov-ts-ring.laedt circle:nth-child(2) { animation: ov-ts-puls 1.8s ease-in-out infinite; }
@keyframes ov-ts-puls { 50% { opacity: .55; } }
.ov-ts-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--text); }
.ov-ts-pct small { font-size: var(--fs-sm); margin-left: 2px; color: var(--dim); }
.ov-ts-stats { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-body); min-width: 0; }
.ov-ts-stats b { font-family: var(--mono); font-weight: 600; }
.ov-ts-st { font-size: var(--fs-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ov-ts-st.laedt { color: var(--grn); }
.ov-ts-st.online { color: var(--acc); }
.ov-ts-lab { display: flex; justify-content: space-between; font-size: var(--fs-micro); margin: 2px 0 0; }
.ov-ts-spark svg { width: 100%; height: 56px; display: block; }
.ov-ts-none { font-size: var(--fs-meta); }
@media (prefers-reduced-motion: reduce) { .ov-ts-ring.laedt circle:nth-child(2) { animation: none; } }
.ov-ct-st { font-size: var(--fs-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ov-ct-st.grn { color: var(--grn); } .ov-ct-st.yel { color: var(--yel); }
.ov-ct-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 2px 0 8px; }
.ov-ct-big b { font-family: var(--mono); font-size: 34px; font-weight: 600; color: var(--text); }
.ov-ct-big small { color: var(--dim); font-size: var(--fs-sm); }
.ov-ct-sub { font-size: var(--fs-sm); text-align: right; }
.ov-ct-bar { height: 8px; border-radius: var(--r-s); background: var(--line); overflow: hidden; margin-bottom: 8px; }
.ov-ct-bar span { display: block; height: 100%; background: var(--grn); border-radius: var(--r-s); transition: width .6s ease; }
.ov-ct-chart svg { width: 100%; height: 110px; display: block; }
.ov-ct-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-sm); margin-top: 6px; }
.ov-ct-stats b { font-family: var(--mono); font-weight: 600; }
/* ---------- Übersicht v3: Kopf, Kennzahlen, Bento-Raster ---------- */
.ov3 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
/* .pack (setzt tile-order.js, wenn ResizeObserver da ist): 4-px-Zeilen ohne Abstand, jede Kachel so hoch wie ihr Inhalt;
   tile-order.js misst und setzt grid-row span. Kürzere Kacheln lassen so Platz, die nächste rückt nach. */
.ov3.pack { row-gap: 0; grid-auto-rows: 4px; align-items: start; } /* bewusst nicht „dense“: so bleibt die Reihenfolge, die Murphy gesetzt hat, auch sichtbar die Reihenfolge */
.ov3 > * { min-width: 0; }
.ov3-foot:empty { display: none; }
/* Aufbau verstecken, dann einmal weich einblenden (tile-order.js setzt die Klassen) */
.ov3-wait { visibility: hidden; }
.ov3-reveal { animation: ov3-in .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ov3-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="an"]) .ov3-reveal { animation: none; } }
.ov3.arrange.ov3-foot:empty { display: block; min-height: 44px; border: 1px dashed var(--line); border-radius: var(--r-m); }
.ov3.arrange.ov3-foot:empty::before { content: 'fußzeile: hier landen unten angepinnte kacheln (⤓)'; display: block; padding: 12px; font-size: var(--fs-sm); color: var(--faint); font-family: var(--ui); }
/* feste Höhe (unteren Rand gezogen): Inhalt füllt die Kachel und rollt, wenn er nicht passt */
.ov3 > .tfix > :not(.ov-handle, .ov-rs, .ov-rb) { height: 100%; min-height: 0; overflow: auto; }
.ov3 > .tfix.ov-sidecol > .panel { flex: 1 1 0; height: auto; }
.ov3 > .g3 { grid-column: span 3; } .ov3 > .g4 { grid-column: span 4; } .ov3 > .g5 { grid-column: span 5; } .ov3 > .g6 { grid-column: span 6; }
.ov3 > .g7 { grid-column: span 7; } .ov3 > .g8 { grid-column: span 8; } .ov3 > .g9 { grid-column: span 9; } .ov3 > .g10 { grid-column: span 10; }
.ov3 > .g11 { grid-column: span 11; } .ov3 > .g12 { grid-column: 1 / -1; }
.ov3 > .thide { display: none; }
.ov3 > div:empty { display: none; }
.ov3 .panel { height: 100%; margin: 0; }
.ov3 > .ov-sidecol { display: flex; flex-direction: column; gap: 12px; }
.ov3 > .ov-sidecol > .ov-up { flex: 1; }
/* Kacheln anordnen: Griffleiste je Kachel, Inhalt derweil stumm; leere Kacheln bekommen trotzdem ihren Platz */
.ov-arrbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--dim); padding: 8px 12px; margin-bottom: 12px; border: 1px dashed var(--acc); border-radius: var(--r-m); }
.ov-arrbar .grow { flex: 1; min-width: 200px; }
.ov3.arrange > [data-tile] { position: relative; cursor: grab; border-radius: var(--r-m); outline: 1px dashed color-mix(in srgb, var(--acc) 55%, transparent); outline-offset: 3px; }
/* Griffleiste schwebt über dem Inhalt: die Kachel bleibt exakt so hoch wie ohne Anordnen-Modus */
.ov3.arrange > [data-tile] > .ov-handle { position: absolute; top: 6px; left: 6px; right: 6px; z-index: 3; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
/* Parkleiste: Kacheln ohne Inhalt (außerhalb des Modus unsichtbar), nur Griffleiste, Reihenfolge bleibt */
.ov3-park { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; margin-bottom: 12px; border: 1px dashed var(--line); border-radius: var(--r-m); }
.ov3-park:empty { display: none; }
.ov3-park::before { content: 'gerade ohne inhalt – außerhalb von „anordnen“ unsichtbar, platz in der reihenfolge bleibt:'; flex-basis: 100%; font-size: var(--fs-meta); color: var(--faint); font-family: var(--ui); }
.ov3.ov3-park > [data-tile] { flex: 1 1 300px; height: auto !important; min-height: 0; outline: none; }
.ov3.ov3-park > [data-tile] > .ov-handle { position: static; box-shadow: none; }
.ov3.arrange > .tdim > :not(.ov-handle, .ov-rs, .ov-rb) { opacity: .2; }
.ov3.arrange > .tdim { outline-style: dotted; }
.ov3.arrange > .tsizing { outline: 2px solid var(--acc); cursor: ew-resize; }
.ov3.arrange > .tsizingh { outline: 2px solid var(--acc); cursor: ns-resize; }
.ov-rb { position: absolute; left: 50%; transform: translateX(-50%); width: 110px; bottom: -9px; height: 18px; cursor: ns-resize; touch-action: none; display: flex; align-items: center; justify-content: center; }
.ov-rb::before { content: ''; height: 4px; width: 44px; border-radius: var(--r-s); background: color-mix(in srgb, var(--acc) 70%, transparent); transition: width var(--t), background var(--t); }
.tsizingh > .ov-rb::before { width: 80px; background: var(--acc); } @media (hover: hover) { .ov-rb:hover::before { width: 80px; background: var(--acc); } }
.ov-rs { position: absolute; top: 50%; transform: translateY(-50%); height: 110px; right: -9px; width: 18px; cursor: ew-resize; touch-action: none; display: flex; align-items: center; justify-content: center; }
.ov-rs::before { content: ''; width: 4px; height: 44px; border-radius: var(--r-s); background: color-mix(in srgb, var(--acc) 70%, transparent); transition: height var(--t), background var(--t); }
.tsizing > .ov-rs::before { height: 80px; background: var(--acc); } @media (hover: hover) { .ov-rs:hover::before { height: 80px; background: var(--acc); } }
.ov-handle .ov-hg { display: inline-flex; align-items: center; gap: 2px; }
.ov-handle .ov-span { font-family: var(--mono); font-weight: 500; font-size: var(--fs-micro); color: var(--dim); min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.ov-handle .btn.on { color: var(--acc); border-color: var(--acc); }
.ov-handle { flex: none; flex-wrap: wrap; row-gap: 4px; }
.ov-handle .ov-hval { font-family: var(--mono); font-size: var(--fs-micro); font-variant-numeric: tabular-nums; }
.ov3.arrange > [data-tile]:empty { display: block; }
.ov3.arrange > [data-tile] > :not(.ov-handle, .ov-rs, .ov-rb) { pointer-events: none; opacity: .55; }
.ov3.arrange > .ov-sidecol { gap: 12px; }
.ov-handle { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border-radius: var(--r-m); background: color-mix(in srgb, var(--acc) 14%, var(--surf)); font-family: var(--ui); font-size: var(--fs-sm); font-weight: 600; color: var(--text); user-select: none; }
.ov-handle .grip { color: var(--faint); letter-spacing: -3px; font-weight: 400; }
.ov-handle .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-handle .ghost { font-weight: 400; color: var(--faint); }
.ov-handle .btn { padding: 3px 8px; min-width: 32px; }
.ov-handle .btn:disabled { opacity: .3; cursor: default; }
.ov3 > .tdrag { opacity: .35; }
.ov3 > .tover { outline: 2px solid var(--acc); outline-offset: 3px; }
.ov3 .ov-term, .ov3 .ov-term .term-box { height: 100%; min-height: 260px; }
@media (max-width: 1100px) {
  .ov3 > .g3, .ov3 > .g4, .ov3 > .g5, .ov3 > .g6, .ov3 > .g7, .ov3 > .g8 { grid-column: span 6; }
  .ov3 > .g9, .ov3 > .g10, .ov3 > .g11 { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  /* Handy: eine Spalte, jede Kachel volle Breite (align-items: start aus .pack würde sie auf Inhaltsbreite schrumpfen
     bzw. über den Rand wachsen), feste Höhen vom PC gelten hier nicht, nichts ragt nach rechts hinaus */
  .ov3, .ov3.pack { display: flex; flex-direction: column; align-items: stretch; } /* Reihenfolge wie am Desktop: so, wie Murphy sie angeordnet hat */
  .ov3 > [data-tile] { width: 100%; max-width: 100%; min-width: 0; height: auto !important; }
  .ov3 > .tfix > :not(.ov-handle, .ov-rs, .ov-rb) { height: auto; overflow: visible; }
  .ov3 > .tfix.ov-sidecol > .panel { flex: 0 0 auto; } /* PC-Regel flex 1 1 0 (feste Höhe aufteilen) ließe die Panels ohne feste Höhe auf die Kopfzeile schrumpfen */
  .ov { overflow-x: clip; }
  .ov3 .ov-term, .ov3 .ov-term .term-box { height: auto; min-height: 0; }
  .ov-st h3 > span:first-child { white-space: nowrap; } /* Feed-Kopf: Titel bleibt eine Zeile, der Zusatz rechts bricht um */
  .ov-st h3 .ov-fp-hr { min-width: 0; } .ov-st h3 .ov-fp-hr .faint { white-space: normal; text-align: right; }
}

@keyframes ts-breathe { 50% { opacity: .55; } }
/* ---------- ~/zuhause: Home Assistant auf einen Blick ---------- */
.zh { gap: 10px; }
.zh-temps { display: flex; gap: 18px; flex-wrap: wrap; }
.zh-temp { display: flex; flex-direction: column; }
.zh-tv { font-family: var(--ui); font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.zh-tv small { font-size: var(--fs-sm); font-weight: 400; color: var(--dim); margin-left: 3px; letter-spacing: 0; }
.zh-tn { font-size: var(--fs-meta); color: var(--faint); margin-top: 4px; }
.zh-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zh-count { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-m); background: color-mix(in srgb, var(--text) 4%, transparent); color: var(--text); text-decoration: none; font-size: var(--fs-sm); transition: background var(--t); }
@media (hover: hover) { .zh-count:hover { background: color-mix(in srgb, var(--text) 8%, transparent); } }
.zh-count b { font-family: var(--ui); font-size: var(--fs-lead); font-weight: 600; }
.zh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.zh-count.on .zh-dot { background: var(--yel); box-shadow: 0 0 10px var(--yel); }
.zh-row { display: flex; flex-wrap: wrap; gap: 6px; }
.zh-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--r-full); font-size: var(--fs-meta); color: var(--dim); }
.zh-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.zh-chip.home { color: var(--text); } .zh-chip.home i { background: var(--grn); box-shadow: 0 0 8px var(--grn); }
.zh-chip.move i { background: var(--acc); animation: ts-breathe 1.6s ease-in-out infinite; }
.zh-chip.media.playing i { background: var(--grn); }
.zh-batt { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-meta); color: var(--dim); }
.zh-bat { display: inline-flex; align-items: center; gap: 6px; }
.zh-bat i { display: inline-block; width: 22px; height: 10px; border: 1px solid var(--faint); border-radius: var(--r-xs); padding: 1px; position: relative; }
.zh-bat i::after { content: ""; position: absolute; right: -4px; top: 2px; width: 2px; height: 4px; background: var(--faint); border-radius: 0 1px 1px 0; }
.zh-bat i b { display: block; height: 100%; background: var(--grn); border-radius: 1px; }
.zh-bat.low { color: var(--red); } .zh-bat.low i b { background: var(--red); }

/* ---------- ~/hören: Audiobookshelf ---------- */
.hr { gap: 10px; }
.hr-main, .hr-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; color: var(--text); text-decoration: none; border-radius: var(--r-l); transition: background var(--t); }
@media (hover: hover) { .hr-main:hover, .hr-row:hover { background: color-mix(in srgb, var(--text) 4%, transparent); } }
.hr-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 4px 6px 4px 0; }
.hr-cover { width: 84px; height: 84px; border-radius: var(--r-m); overflow: hidden; flex: none; background: var(--surf-2); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.hr-cover.sm { width: 40px; height: 40px; border-radius: var(--r-s); box-shadow: none; }
.hr-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hr-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hr-title { font-family: var(--ui); font-weight: 600; font-size: var(--fs-body); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hr-row .hr-title { font-size: var(--fs-sm); font-weight: 500; -webkit-line-clamp: 1; }
.hr-author { font-size: var(--fs-meta); }
.hr-bar { display: block; height: 4px; border-radius: var(--r-s); background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; margin-top: 2px; }
.hr-bar i { display: block; height: 100%; background: var(--acc); border-radius: var(--r-s); transition: width 1s cubic-bezier(.2,.7,.2,1); }
.hr-meta { font-size: var(--fs-meta); color: var(--dim); }
.hr-meta b { font-family: var(--mono); color: var(--text); font-weight: 600; }
.hr-pct { font-family: var(--mono); font-size: var(--fs-meta); }
.hr-rest { display: flex; flex-direction: column; border-top: 1px dashed var(--line); padding-top: 6px; }
.cplan { display: flex; flex-direction: column; }
/* ~/content: css/verwaltung.css */

/* ---------- ~/brain: Bühne als Held, Kopfzeile darüber, Detail rechts, Mini-Felder darunter ---------- */
.brain { flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: auto minmax(360px, 1fr) 150px; gap: 10px; }
.brain .grow { flex: 1; min-width: 0; }
.brain-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; z-index: 20; }
.brain-title { color: var(--dim); font-family: var(--nav-font, var(--mono)); letter-spacing: -.01em; }
.brain-title b { color: var(--text); text-shadow: var(--glow); }
.brain-search { position: relative; flex: 1 1 280px; max-width: 520px; }
.brain-search .cmd { width: 100%; }
.brain-search input:focus-visible { outline: none; } /* der Rahmen der Zeile zeigt den Fokus */
.brain-hits { position: absolute; top: calc(100% + 6px); left: 0; width: min(580px, calc(100vw - 48px)); max-height: min(62vh, 540px); overflow-y: auto;
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 6px 6px; z-index: 30; }
.brain-hg { display: flex; justify-content: space-between; padding: 9px 8px 3px; font-size: 10.5px; letter-spacing: .12em; text-transform: lowercase; color: var(--faint); border-top: 1px dashed var(--line); }
.brain-hg:first-child { border-top: 0; }
.brain-hit { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 9px; align-items: baseline; padding: 5px 8px; border-radius: 5px; cursor: pointer; }
.brain-hit.on { background: var(--sel); box-shadow: inset 2px 0 0 var(--acc); }
.brain-hit b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brain-hit small { color: var(--faint); font-family: var(--mono); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
.brain-hit .brain-open { color: var(--acc); font-family: var(--mono); font-size: 11px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px;
  padding: 1px 7px; border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent); border-radius: 999px; }
@media (hover: hover) { .brain-hit .brain-open:hover { background: color-mix(in srgb, var(--acc) 14%, transparent); } }
.brain-hit .snip { grid-column: 2 / -1; color: var(--dim); font-size: 11.5px; line-height: 1.4; }
.brain-hit mark { background: color-mix(in srgb, var(--acc) 26%, transparent); color: var(--text); border-radius: 2px; padding: 0 2px; }
.brain-none { padding: 10px 8px; }
.brain-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c, var(--dim)); box-shadow: 0 0 8px color-mix(in srgb, var(--c, var(--dim)) 70%, transparent); }
/* helle Themes: Farbpunkte ohne Schein */
.brain.light .brain-dot, .brain-detail.light .brain-dot { box-shadow: none; }
.brain-clear, .brain-sheet-bg { display: none; }
.brain-views button { display: inline-flex; align-items: center; gap: 6px; }
.brain-views kbd { font-size: 10px; color: var(--faint); }
.brain-views button.on kbd { color: var(--acc); }
.brain-drop { position: relative; }
.brain-menu { left: 0; right: auto; width: 270px; max-height: 60vh; overflow-y: auto; }
.brain-menu .it.off { opacity: .45; }
.brain-menu .it.off .brain-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c, var(--dim)); }
.brain-menu .it[aria-disabled="true"] { cursor: default; }
.brain-mh { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 6px 8px; font-size: 10.5px; letter-spacing: .12em; color: var(--faint); text-transform: lowercase; }
.brain-mh .btn { padding: 0 6px; font-size: 11px; letter-spacing: 0; }
.brain-stale { font-size: 11px; }
.brain-reload { font-variant-numeric: tabular-nums; }

.brain-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 10px; min-height: 0; }
.brain-body.nodetail { grid-template-columns: minmax(0, 1fr); }
.brain-body.nodetail .brain-detail { display: none; }
.brain-stage { position: relative; min-height: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--page); }
/* Scanlines und Rand-Vignette wie in der Seitenleiste, über dem Bild, ohne Klicks zu schlucken */
.brain-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(130% 100% at 50% 50%, transparent 62%, color-mix(in srgb, var(--page) 75%, transparent)),
              repeating-linear-gradient(to bottom, transparent 0 2px, var(--scan, transparent) 2px 3px); }
.brain-host { position: absolute; inset: 0; }
.brain-hud { position: absolute; inset: 10px; pointer-events: none; z-index: 1; opacity: .6; background-repeat: no-repeat;
  background-image: linear-gradient(var(--faint), var(--faint)), linear-gradient(var(--faint), var(--faint)), linear-gradient(var(--faint), var(--faint)), linear-gradient(var(--faint), var(--faint)),
    linear-gradient(var(--faint), var(--faint)), linear-gradient(var(--faint), var(--faint)), linear-gradient(var(--faint), var(--faint)), linear-gradient(var(--faint), var(--faint));
  background-size: 14px 1px, 1px 14px, 14px 1px, 1px 14px, 14px 1px, 1px 14px, 14px 1px, 1px 14px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%; }
.brain-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.brain-lab { position: absolute; left: 0; top: 0; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; opacity: 0; will-change: transform, opacity;
  font-family: var(--ui); font-size: 11.5px; font-weight: 500; color: var(--text); transition: opacity .28s ease-out;
  padding: 1px 5px; border-radius: 4px; background: color-mix(in srgb, var(--page) 62%, transparent);
  text-shadow: 0 0 2px var(--page), 0 0 6px var(--page); }
.brain-lab small { font-family: var(--mono); font-size: 10px; color: var(--dim); font-variant-numeric: tabular-nums; }
.brain-lab.sel { color: var(--acc); font-weight: 650; }
.brain-lab.lit { color: var(--yel); font-weight: 600; }
.brain-tip { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; display: flex; flex-direction: column; gap: 1px; max-width: 300px;
  padding: 6px 9px; background: color-mix(in srgb, var(--surf) 92%, transparent); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); font-size: 12px; }
.brain-tip b { display: flex; align-items: center; gap: 7px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brain-tip span { font-family: var(--mono); font-size: 11px; }
.brain-counts { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; gap: 26px; pointer-events: none;
  padding: 6px 12px 5px; border-radius: 8px; background: color-mix(in srgb, var(--page) 55%, transparent); }
.brain-count { display: flex; flex-direction: column; }
.brain-count b { font-family: var(--mono); font-size: 24px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; text-shadow: 0 0 14px var(--page); }
.brain-count span { font-size: 10.5px; letter-spacing: .14em; text-transform: lowercase; color: var(--dim); }
/* Warnfilter: vorn die Zahl der Treffer, der Rest tritt zurück */
.brain-counts.warn .brain-count:first-child b, .brain-counts.warn .brain-count:first-child span { color: var(--yel); }
.brain-counts.warn .brain-count:not(:first-child) { opacity: .45; }
.brain-cap { position: absolute; left: 16px; bottom: 12px; z-index: 3; pointer-events: none; font-size: 11.5px; color: var(--dim); text-shadow: 0 0 8px var(--page);
  padding: 3px 7px; border-radius: 5px; background: color-mix(in srgb, var(--page) 70%, transparent); }
.brain-cap b { color: var(--text); font-weight: 600; }
.brain-tab { position: absolute; right: 14px; top: 14px; z-index: 4; background: var(--surf); }
.brain-msg { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px; background: color-mix(in srgb, var(--page) 55%, transparent); }
.brain-msgbox { width: min(560px, 100%); max-height: 100%; overflow-y: auto; box-shadow: var(--shadow); }
.brain-srcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 18px; font-size: 12px; }
.brain-src { display: flex; align-items: center; gap: 8px; padding: 2px 0; border-bottom: 1px dashed var(--line); }
.brain-src i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); opacity: .5; flex: none; }
.brain-src.ok i { background: var(--grn); opacity: 1; }
.brain-src.err i { background: var(--red); opacity: 1; }
.brain-src.run i { background: var(--acc); opacity: 1; animation: ts-breathe 1.4s ease-in-out infinite; }
.brain-nogl { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; padding: 24px; color: var(--dim); }
.brain-nogl b { color: var(--text); font-size: 15px; }
.brain-nogl .mono { font-size: 11px; max-width: 560px; overflow-wrap: anywhere; }
.brain-nogl .btn { justify-self: center; margin-top: 8px; }
.brain-stage.nogl .brain-cap { display: none; }

.brain-detail { min-height: 0; overflow-y: auto; gap: 7px; }
.brain-detail h3 { align-items: center; }
.bd-x { padding: 0 7px; font-size: 15px; line-height: 1.4; }
.bd-hint { font-size: 12px; line-height: 1.5; }
.bd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px 1px 7px; border-radius: 999px; font-size: 11px; letter-spacing: .04em; text-transform: lowercase;
  color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.bd-chip .brain-dot { width: 6px; height: 6px; }
.bd-title { font-size: 17px; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; color: var(--text); }
.bd-crumb { font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
.bd-sub { font-size: 12px; }
.bd-id { font-size: 10.5px; overflow-wrap: anywhere; }
.bd-rows { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 3px 10px; margin: 4px 0 0; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.bd-rows dt { color: var(--faint); }
.bd-rows dd { margin: 0; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bd-sec { display: flex; flex-direction: column; gap: 1px; }
.bd-sec h4 { margin: 6px 0 3px; font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: lowercase; color: var(--faint); }
.bd-nb { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; padding: 4px 6px; border: 0; border-radius: 5px;
  background: transparent; color: var(--text); text-align: left; cursor: pointer; font-size: 12.5px; }
.bd-nb:focus-visible, .bd-nb.on { background: var(--surf-2); } @media (hover: hover) { .bd-nb:hover { background: var(--surf-2); } }
.bd-nb .faint { font-size: 11px; }
.bd-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-edge { font-family: var(--mono); font-size: 10px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--dim); white-space: nowrap; }
.bd-ico { color: var(--faint); width: 10px; text-align: center; }
.bd-file { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-left: 2px solid var(--acc); border-radius: 4px; background: color-mix(in srgb, var(--acc) 8%, transparent); }
.bd-fl { font-size: 10.5px; letter-spacing: .12em; color: var(--acc); }
.bd-file b { overflow-wrap: anywhere; }
.bd-fp { font-size: 11px; color: var(--dim); overflow-wrap: anywhere; }
.bd-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bd-acts .btn { text-decoration: none; font-size: 12px; padding: 4px 10px; }
.bd-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.brain-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 0; }
.brain-mini { min-height: 0; overflow: hidden; cursor: pointer; gap: 6px; transition: border-color .15s; }
.brain-mini:focus-visible { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); outline: none; } @media (hover: hover) { .brain-mini:hover { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); outline: none; } }
.brain-mini.on { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); box-shadow: inset 0 2px 0 var(--acc); }
.brain-mini h3 { margin: 0; }
.brain-mini .bm-side { color: var(--faint); font-weight: 400; letter-spacing: 0; font-family: var(--mono); font-size: 11px; text-transform: none; }
.brain-mini .bm-side .bad { color: var(--red); }
.brain-mini .brain-dot { width: 6px; height: 6px; }
.bm-none { font-size: 12px; }
.bm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); gap: 10px; align-items: center; min-height: 0; flex: 1; }
.bm-stats { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bm-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 6px; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; }
.bm-line b { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--text); }
.bm-line span + b { margin-left: 6px; }
.bm-st { display: inline-flex; align-items: center; gap: 3px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.bm-st.bad { color: var(--red); }
.bm-net { width: 100%; height: 72px; }
.bm-wire { stroke: var(--line); stroke-width: 1; }
.bm-bar { width: 100%; height: 10px; flex: none; border-radius: 3px; background: var(--line); }
.bm-list { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bm-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 7px; font-size: 12px; line-height: 15px; color: var(--text); }
.bm-row.f3 { grid-template-columns: auto minmax(0, 1fr) auto; }
.bm-row .bm-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-row .mono { font-size: 11px; }
.bm-row.st-error .bm-nm { color: var(--red); }
.bm-row.st-warn .bm-nm { color: var(--yel); }
/* eine Zeile: Namen, die nicht mehr passen, brechen in die (abgeschnittene) nächste um */
.bm-recent { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; height: 24px; flex: none; margin-top: auto; padding-top: 5px; border-top: 1px dashed var(--line); font-size: 12px; line-height: 18px; white-space: nowrap; overflow: hidden; }
.bm-rl { flex: none; font-size: 10.5px; letter-spacing: .1em; color: var(--faint); }
.bm-rec { flex: none; max-width: 150px; overflow: hidden; text-overflow: ellipsis; border: 0; border-radius: 4px; padding: 0 3px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.bm-rec:focus-visible { color: var(--acc); background: var(--sel); outline: none; } @media (hover: hover) { .bm-rec:hover { color: var(--acc); background: var(--sel); outline: none; } }
.bm-bad { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; height: 18px; overflow: hidden; font-size: 11.5px; line-height: 18px; white-space: nowrap; }
.bm-bad .bm-rec { color: var(--red); flex: 0 1 auto; min-width: 0; max-width: 120px; text-align: left; }
.bm-bad .bm-rec.st-warn { color: var(--yel); }
.bm-why { font-size: 11px; line-height: 15px; color: var(--dim); padding-left: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-why.st-error { color: color-mix(in srgb, var(--red) 75%, var(--text)); }
/* Auftakt: die Mini-Felder kommen zuletzt (Klassen setzt views/brain.js nur mit Bewegung) */
.brain-minis.wait .brain-mini { opacity: 0; }
.brain-minis.intro .brain-mini { animation: brain-mini-in 520ms cubic-bezier(.2,.7,.2,1) 1900ms backwards; }
.brain-minis.intro .brain-mini:nth-child(2) { animation-delay: 2020ms; }
.brain-minis.intro .brain-mini:nth-child(3) { animation-delay: 2140ms; }
@keyframes brain-mini-in { from { opacity: 0; transform: translateY(14px); } }
.bd-state { display: flex; align-items: center; gap: 6px; }
.bd-state.st-error { color: var(--red); } .bd-state.st-warn { color: var(--yel); }
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="an"]) .brain-lab { transition: none; } :root:not([data-motion="an"]) .brain-src.run i { animation: none; } }

/* ---------- ~/brain am Handy: Bühne oben (45 % der Fensterhöhe), darunter Ansichts-Streifen, Suche mit Trefferliste im
   Seitenfluss, Orte (Legende) und Warnungen zum Aufklappen, Mini-Felder untereinander; die Seite scrollt.
   Das Detail ist ein Blatt von unten (hängt am body, siehe views/brain.js). ---------- */
@media (max-width: 760px) {
  .brain { flex: none; min-height: auto; gap: 8px; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "title reload" "stage stage" "views views" "search search" "orte warn" "menu menu" "minis minis"; }
  .brain-head { display: contents; }
  .brain-head > .grow { display: none; }
  .brain-title { grid-area: title; align-self: center; font-size: 15px; }
  .brain-reload { grid-area: reload; justify-self: end; }
  .brain-body { grid-area: stage; display: block; height: 45vh; height: 45dvh; min-height: 240px; }
  .brain-stage { height: 100%; }
  .brain-views { grid-area: views; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .brain-views::-webkit-scrollbar { display: none; }
  .brain-views button { flex: 1 0 auto; justify-content: center; padding: 10px 18px; font-size: 14px; }
  .brain-views kbd, .brain-search kbd { display: none; }
  .brain-search { grid-area: search; flex: none; max-width: none; }
  .brain-search .cmd { min-height: 42px; }
  .brain-clear { display: block; flex: none; width: 34px; height: 34px; margin-right: -6px; border: 0; background: transparent; color: var(--dim); font-size: 20px; line-height: 1; cursor: pointer; }
  .brain-hits { position: static; width: auto; max-height: none; overflow: visible; margin-top: 8px; box-shadow: none; }
  .brain-hit { padding: 9px 8px; }
  .brain-hit small { max-width: 110px; }
  .brain-drop { display: contents; }
  .brain-drop > .btn { min-height: 40px; text-align: left; }
  .brain-drop.orte > .btn { grid-area: orte; }
  .brain-drop.warn > .btn { grid-area: warn; }
  .brain-menu { grid-area: menu; position: static; width: auto; max-height: none; overflow: visible; box-shadow: none; }
  .brain-menu .it { min-height: 40px; }
  .brain-minis { grid-area: minis; grid-template-columns: minmax(0, 1fr); }
  .brain-mini { overflow: visible; }
  .brain-counts { gap: 14px; left: 8px; top: 8px; padding: 4px 8px; }
  .brain-count b { font-size: 17px; }
  .brain-count span { font-size: 9.5px; letter-spacing: .08em; }
  .brain-cap { left: 8px; bottom: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brain-cap .faint, .brain-tab, .brain-tip { display: none; }
  .brain-msg { padding: 10px; }
  .brain-srcs { grid-template-columns: minmax(0, 1fr); }
  .bm-recent { height: auto; }
  .bm-rec { max-width: 44vw; padding: 5px 6px; }
  .brain-sheet { display: none; }
  .panel.brain-sheet.open { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; max-height: 58vh; max-height: 58dvh; overflow-y: auto;
    border-radius: 14px 14px 0 0; border-bottom: 0; padding: 0 14px calc(14px + env(safe-area-inset-bottom)); background: var(--surf);
    box-shadow: 0 -12px 40px rgba(0,0,0,.45); animation: sheet 180ms ease-out; }
  .panel.brain-sheet h3 { position: sticky; top: 0; z-index: 1; margin: 0; padding: 16px 0 8px; background: var(--surf); }
  .brain-sheet h3::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--faint); opacity: .6; }
  .brain-sheet .bd-x { min-width: 44px; min-height: 36px; font-size: 20px; color: var(--text); border-color: var(--line); }
  .brain-sheet .bd-nb { padding: 9px 6px; }
  .brain-sheet .bd-acts .btn { padding: 9px 14px; }
  .brain-sheet-bg { display: block; background: rgba(0,0,0,.3); }
}

/* ---------- ~/finanzen · grafiken (ui/fin-viz.js) ---------- */
/* Palette --fv-0 … --fv-9: siehe Abschnitt „palette“ weiter unten (steht auf :root, für alle Seiten) */
.fv { position: relative; overflow: hidden; }
.fv h3 { align-items: center; flex-wrap: wrap; }
.fv-sub { text-transform: none; letter-spacing: 0; }
.fv-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.fv-chips .pchip { padding: 2px 8px; font-size: 11px; }
.fv-svg { width: 100%; height: auto; display: block; overflow: visible; }
.fv-scroll { overflow-x: auto; scrollbar-width: thin; }
.fv-axis { fill: var(--faint); font-size: 10px; }
.fv-grid { stroke: var(--line); stroke-width: 1; opacity: .55; }
.fv-zero { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
.fv-avg { stroke: var(--red); stroke-width: 1; stroke-dasharray: 2 5; opacity: .55; }
.fv-cross { stroke: var(--text); stroke-width: 1; opacity: .35; pointer-events: none; }
.fv-hit { fill: transparent; cursor: crosshair; }
.fv-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 16px; font-size: 12px; color: var(--dim); }
.fv-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.fv-legend .grow { flex: 1; }
.fv-legend-lg { font-size: 12.5px; padding-top: 2px; }
.fv-stat { gap: 6px !important; font-variant-numeric: tabular-nums; }
.fv-stat b { color: var(--text); }
.fv-sw { display: inline-block; width: 10px; height: 10px; border-radius: var(--r-xs); background: var(--c, var(--acc)); flex: none; }
.fv-sw.total { background: var(--acc); }
.fv-sw.line { width: 16px; height: 2px; border-radius: 1px; }
.fv-sw.line.total { height: 3px; box-shadow: 0 0 6px color-mix(in oklab, var(--acc) 60%, transparent); }
.fv-halo { fill: none; stroke: var(--acc); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: .13; pointer-events: none; }
.fv-grid-v { opacity: .3; }
.fv-axis-m { font-size: 10.5px; letter-spacing: .06em; }
.fv-sw.in { background: var(--grn); } .fv-sw.out { background: var(--red); }
.fv-note { font-size: 11px; }
.fv-tip { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; background: color-mix(in oklab, var(--surf-2) 92%, transparent); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 7px 10px; font-size: 12px; color: var(--text); box-shadow: var(--shadow); backdrop-filter: blur(6px); max-width: 280px; }
.fv-tip[hidden] { display: none; }
.fv-tip b { display: block; color: var(--acc); margin-bottom: 2px; }
.fv-tip-l { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Hervorheben einer Kategorie über alle Grafiken */
.fv-hl .fv [data-cat] { transition: opacity .18s; }
.fv-hl .fv [data-cat]:not(.on) { opacity: .16; }
.fv-hl .fv [data-cat].on { filter: drop-shadow(0 0 6px var(--c)); }

/* Puls */
.fv-puls { display: grid; grid-template-columns: minmax(250px, 5fr) minmax(0, 8fr); gap: 18px; align-items: start; }
.fv-hero { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fv-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; }
.fv-big { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -1px;
  text-shadow: 0 0 28px color-mix(in oklab, var(--acc) 45%, transparent); }
.fv-big.neg { text-shadow: 0 0 28px color-mix(in oklab, var(--red) 45%, transparent); }
.fv-chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fv-chip { display: inline-flex; gap: 6px; align-items: baseline; border: 1px solid var(--line); border-radius: var(--r-full); padding: 3px 10px; font-size: 11.5px; background: var(--bg); }
.fv-chip.pos b { color: var(--grn); } .fv-chip.neg b { color: var(--red); }
.fv-accs { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.fv-acc { display: grid; grid-template-columns: minmax(70px, 1.1fr) 2fr auto; gap: 8px; align-items: center; font-size: 11.5px; cursor: default; }
.fv-acc-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); }
.fv-acc-v { font-variant-numeric: tabular-nums; text-align: right; }
.fv-acc.neg .fv-acc-v { color: var(--red); }
.fv-acc-track { position: relative; height: 8px; border-radius: var(--r-s); background: var(--bg); }
.fv-acc-zero { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--dim); }
.fv-acc-bar { position: absolute; top: 0; bottom: 0; border-radius: var(--r-s); background: linear-gradient(90deg, color-mix(in oklab, var(--grn) 50%, transparent), var(--grn)); box-shadow: 0 0 10px color-mix(in oklab, var(--grn) 40%, transparent); }
.fv-acc.neg .fv-acc-bar { background: linear-gradient(270deg, color-mix(in oklab, var(--red) 50%, transparent), var(--red)); box-shadow: 0 0 10px color-mix(in oklab, var(--red) 40%, transparent); }
@media (hover: hover) { .fv-acc:hover .fv-acc-n { color: var(--text); } }
.fv-verlauf { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fv-total { fill: none; stroke: var(--acc); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fv-acc-line { fill: none; stroke: var(--c); stroke-width: 1.2; opacity: .85; stroke-linejoin: round; }
.fv-dot { fill: var(--bg); stroke: var(--acc); stroke-width: 1.6; }
.fv-dot.neg { stroke: var(--red); }

/* Cashflow */
.fv-in { fill: var(--grn); opacity: .8; } .fv-out { fill: var(--red); opacity: .72; }
@media (hover: hover) { .fv-col:hover :is(.fv-in, .fv-out) { filter: brightness(1.25); } }
.fv-net { fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Ring */
.fv-ring { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); gap: 16px; align-items: center; }
.fv-ring-wrap { position: relative; }
.fv-ring-svg { width: 100%; height: auto; display: block; overflow: visible; }
.fv-ring-bg { fill: none; stroke: var(--bg); }
.fv-arc { fill: none; stroke: var(--c); cursor: pointer; transition: stroke-width .2s, opacity .18s; }
.fv-arc.on { stroke-width: 38; } @media (hover: hover) { .fv-arc:hover { stroke-width: 38; } }
.fv-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; pointer-events: none; text-align: center; }
.fv-ring-c b { font-size: 22px; font-variant-numeric: tabular-nums; }
.fv-ring-c span { font-size: 11px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-cats { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fv-cat { display: grid; grid-template-columns: 10px minmax(60px, 1fr) minmax(40px, 1.2fr) auto; gap: 8px; align-items: center; font-size: 12px; cursor: default; }
.fv-cat-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-cat-bar { height: 5px; border-radius: var(--r-xs); background: var(--bg); overflow: hidden; }
.fv-cat-bar > i { display: block; height: 100%; background: var(--c); border-radius: var(--r-xs); }
.fv-cat b { font-variant-numeric: tabular-nums; }

/* Geldstrom */
.fv-strom-svg { min-width: 680px; }
.fv-ribbon { fill: var(--c); opacity: .26; transition: opacity .2s; }
.fv-link.on .fv-ribbon { opacity: .55; } @media (hover: hover) { .fv-link:hover .fv-ribbon { opacity: .55; } }
.fv-stream { fill: none; stroke: color-mix(in oklab, var(--c) 35%, var(--text)); stroke-linecap: round; stroke-dasharray: 1.5 30; opacity: .4; pointer-events: none; }
.fv-node rect { fill: var(--c, var(--acc)); }
.fv-node.mid rect { fill: var(--acc); filter: drop-shadow(0 0 8px color-mix(in oklab, var(--acc) 70%, transparent)); }
.fv-node-lead { fill: none; stroke: var(--c, var(--dim)); stroke-width: 1; opacity: .5; }
.fv-node-t { dominant-baseline: middle; font-size: 11.5px; }
.fv-avg-t { fill: var(--red); opacity: .8; }
.fv-node-n { fill: var(--text); } .fv-node-v { fill: var(--dim); font-variant-numeric: tabular-nums; }
.fv-node.plus .fv-node-v { fill: var(--grn); } .fv-node.minus .fv-node-v { fill: var(--red); }

/* Kalender */
.fv-kal-svg { min-width: 440px; max-width: 720px; }
.fv-day { fill: var(--bg); stroke: var(--line); stroke-width: .6; }
.fv-day.l1 { fill: color-mix(in oklab, var(--acc) 28%, var(--bg)); } .fv-sw.day.l1 { background: color-mix(in oklab, var(--acc) 28%, var(--bg)); }
.fv-day.l2 { fill: color-mix(in oklab, var(--acc) 52%, var(--bg)); } .fv-sw.day.l2 { background: color-mix(in oklab, var(--acc) 52%, var(--bg)); }
.fv-day.l3 { fill: color-mix(in oklab, var(--acc) 78%, var(--bg)); } .fv-sw.day.l3 { background: color-mix(in oklab, var(--acc) 78%, var(--bg)); }
.fv-day.l4 { fill: var(--acc); filter: drop-shadow(0 0 4px var(--acc)); } .fv-sw.day.l4 { background: var(--acc); }
.fv-sw.day.l0 { background: var(--bg); border: 1px solid var(--line); }
.fv-day.today { stroke: var(--text); stroke-width: 1.4; } @media (hover: hover) { .fv-day:hover { stroke: var(--text); stroke-width: 1.4; } }

/* Empfänger */
.fv-emps { display: flex; flex-direction: column; gap: 9px; }
.fv-emp { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: center; cursor: default; }
.fv-emp-rank { font-size: 11px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
.fv-emp-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fv-emp-top { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; }
.fv-emp-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-emp-top b { font-variant-numeric: tabular-nums; }
.fv-emp-bar { height: 4px; border-radius: var(--r-xs); background: var(--bg); overflow: hidden; }
.fv-emp-bar > i { display: block; height: 100%; background: linear-gradient(90deg, color-mix(in oklab, var(--c) 40%, transparent), var(--c)); border-radius: var(--r-xs); }
.fv-emp-sub { font-size: 10.5px; }

/* Auftritt (nur mit Bewegung, Klasse fv-go) */
@keyframes fv-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fv-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fv-wide { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fv-fade { from { opacity: 0; } }
@keyframes fv-pop { from { opacity: 0; transform: scale(.2); } 60% { transform: scale(1.35); } to { opacity: 1; transform: scale(1); } }
@keyframes fv-sweep { from { stroke-dasharray: 0 var(--C); } to { stroke-dasharray: var(--len) var(--C); } }
@keyframes fv-flow { to { stroke-dashoffset: -280; } }
@keyframes fv-ribbon { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes fv-breathe { 50% { filter: drop-shadow(0 0 16px var(--acc)); } }
.fv-go :is(.fv-up, .fv-down) { transform-box: fill-box; animation: fv-up .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms); }
.fv-go .fv-up { transform-origin: 50% 100%; } .fv-go .fv-down { transform-origin: 50% 0; }
.fv-go .fv-dot { transform-box: fill-box; transform-origin: center; animation: fv-pop .5s ease-out both; animation-delay: var(--d, 0ms); }
.fv-go .fv-area { animation: fv-fade 1.4s ease-out .5s both; }
.fv-go .fv-acc { animation: fv-rise .5s ease-out both; animation-delay: var(--d); }
.fv-go .fv-acc-bar { animation: fv-wide .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d) + 150ms); }
.fv-go .fv-acc:not(.neg) .fv-acc-bar { transform-origin: 0 50%; } .fv-go .fv-acc.neg .fv-acc-bar { transform-origin: 100% 50%; }
.fv-go .fv-arc { animation: fv-sweep 1s cubic-bezier(.3,.8,.2,1) both; animation-delay: var(--d); }
.fv-go .fv-ring-c { animation: fv-fade .8s ease-out .4s both; }
.fv-go :is(.fv-cat, .fv-emp) { animation: fv-rise .45s ease-out both; animation-delay: var(--d); }
.fv-go :is(.fv-cat-bar, .fv-emp-bar) > i { transform-origin: 0 50%; animation: fv-wide .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d) + 120ms); }
.fv-go .fv-link { animation: fv-ribbon 1.1s cubic-bezier(.3,.7,.2,1) both; animation-delay: calc(var(--d) + 200ms); }
.fv-go .fv-stream { animation: fv-flow var(--sp, 9s) linear infinite; }
.fv-go .fv-node { animation: fv-fade .6s ease-out both; animation-delay: var(--d); }
.fv-go .fv-node.mid rect { animation: fv-breathe 4s ease-in-out infinite; }
.fv-go .fv-day { animation: fv-fade .5s ease-out both; animation-delay: var(--d); }
.fv-go .fv-big { animation: fv-rise .6s ease-out both; }

@media (max-width: 900px) {
  .fv-puls { grid-template-columns: minmax(0, 1fr); }
  .fv-ring { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .fv-ring-wrap { width: min(240px, 80%); }
  .fv-cats { width: 100%; }
}

/* ---------- ~/finanzen · Supervisor (E4: ui/fin-lage.js, fin-prognose.js, fin-vermoegen.js, views/finanzen.js) ----------
   Sechs Bereiche als Kacheln (.fs). Innen Karten (.fs-card) mit kleinen Überschriften (.fp-h). Zahlen tabular, Schätzungen
   gepunktet unterstrichen (.est). Auftritt nur mit Bewegung (Klasse fs-go, setzen die ui-Module). */
.fs { gap: 12px; }
.fs > h3 { align-items: center; flex-wrap: wrap; }
.fs-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fs .fp-h, .fp-part .fp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fp-h .fp-hs { letter-spacing: 0; text-transform: none; font-size: 11px; color: var(--faint); }
.fp-h .btn { padding: 1px 8px; font-size: 11px; letter-spacing: 0; text-transform: none; }
.fs-note { font-size: 11.5px; line-height: 1.45; }
.fs-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.fp-part { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fs-two > .fp-part { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: 10px 12px; }
.est { text-decoration: underline dotted; text-decoration-color: var(--yel); text-underline-offset: 3px; }
.fs-sub { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.fs-sub > summary { cursor: pointer; padding: 9px 12px; font-size: 12px; color: var(--dim); list-style: none; display: flex; gap: 6px; align-items: baseline; }
.fs-sub > summary::-webkit-details-marker { display: none; }
.fs-sub > summary::before { content: "\25B8"; color: var(--faint); margin-right: 2px; }
.fs-sub[open] > summary::before { content: "\25BE"; }
@media (hover: hover) { .fs-sub > summary:hover { color: var(--text); } }
.fs-sub-body { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.fv-sub { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fv-sub > h3 { margin: 0; font-size: 12px; color: var(--acc); text-transform: lowercase; letter-spacing: .5px; display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.fv-rangebar { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; }

/* Lage */
.fs-lage-top { display: grid; grid-template-columns: minmax(260px, 5fr) minmax(0, 7fr); gap: 16px 24px; align-items: center; }
.fs-hero { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fs-big { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; color: var(--text);
  text-shadow: 0 0 30px color-mix(in oklab, var(--acc) 40%, transparent); }
.fs-big.neg { color: var(--red); text-shadow: 0 0 calc(30px * var(--fx-glow)) color-mix(in oklab, var(--red) 45%, transparent); }
.fs-big.pos { color: var(--grn); text-shadow: 0 0 calc(30px * var(--fx-glow)) color-mix(in oklab, var(--grn) 45%, transparent); }
.fs-lage-text { font-size: 14px; line-height: 1.45; color: var(--text); }
.fs-path { display: flex; align-items: flex-start; padding: 6px 0 2px; }
.fs-node { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; flex: none; text-align: center; color: var(--faint); }
.fs-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--surf); display: grid; place-items: center; font: 700 11px var(--mono); color: var(--grn); transition: box-shadow .4s; }
.fs-node.done .fs-dot { border-color: var(--grn); }
.fs-node.on .fs-dot { border-color: var(--acc); background: var(--acc); box-shadow: 0 0 0 4px color-mix(in oklab, var(--acc) 22%, transparent), 0 0 18px color-mix(in oklab, var(--acc) 40%, transparent); }
.fs-node.on { color: var(--text); }
.fs-node.done { color: var(--dim); }
.fs-node-l { font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.fs-node-s { font-size: 10.5px; line-height: 1.2; }
.fs-node.on .fs-node-s { color: var(--acc); }
.fs-path > .fs-seg { flex: 1; height: 3px; margin-top: 10px; border-radius: var(--r-xs); background: var(--line); overflow: hidden; min-width: 14px; }
.fs-path > .fs-seg > i { display: block; height: 100%; background: linear-gradient(90deg, var(--grn), var(--acc)); border-radius: var(--r-xs); }
.fs-lage-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; align-items: start; }
.fs-jetzt { border-left: 3px solid var(--acc); }
.fs-jetzt-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.fs-jetzt-title { font-size: 15px; }
.fs-jetzt-zahl { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--acc); }
.fs-jetzt-text { font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.fs-why summary { cursor: pointer; font-size: 11.5px; color: var(--faint); }
.fs-why div { font-size: 12px; padding-top: 4px; line-height: 1.45; }
.fs-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; }
.fs-steps li::marker { color: var(--faint); font-size: 11px; }
.fs-steps li.k-crit b { color: var(--red); } .fs-steps li.k-warn b { color: var(--yel); } .fs-steps li.k-acc b { color: var(--acc); }
.fs-steps .faint { font-size: 11.5px; line-height: 1.4; }
.fs-ok { font-size: 12.5px; }

/* Konten & Prognose */
.fs-konten { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.fs-konto { --lc: var(--line); border: 1px solid var(--line); border-left: 3px solid var(--lc); border-radius: var(--r); background: var(--bg); padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fs-konto.k-ok { --lc: var(--grn); } .fs-konto.k-warn { --lc: var(--yel); } .fs-konto.k-crit { --lc: var(--red); }
.fs-konto-top { display: flex; align-items: center; gap: 7px; }
.fs-konto-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-sw { width: 9px; height: 9px; border-radius: var(--r-xs); background: var(--c, var(--acc)); flex: none; }
.fs-state { font-size: 11px; color: var(--lc); }
.fs-konto-saldo { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.15; }
.fs-konto-saldo.neg { color: var(--red); }
.fs-konto-sub { font-size: 11.5px; color: var(--dim); }
.fs-prog-scroll .fs-prog-svg { min-width: 720px; }
.fs-below { pointer-events: none; }
.fs-dispo { stroke: var(--red); stroke-width: 1; stroke-dasharray: 3 5; opacity: .5; }
.fs-dispo-t { fill: var(--red); font-size: 9.5px; letter-spacing: .03em; opacity: .85; }
.fs-end-t { fill: var(--c, var(--text)); font-size: 10px; font-variant-numeric: tabular-nums; }
.fs-end-lead { stroke: var(--c, var(--dim)); stroke-width: 1; opacity: .6; }
.fs-end-lead.dispo { stroke: var(--red); stroke-dasharray: 2 3; opacity: .5; }
.fs-line { stroke-width: 1.2; opacity: .9; }
.fs-gehalt { stroke: var(--grn); stroke-width: 1; stroke-dasharray: 2 4; opacity: .45; }
.fs-gehalt-t { fill: var(--grn); font-size: 10px; letter-spacing: .04em; }
.fs-tief-dot { fill: var(--bg); stroke: var(--c); stroke-width: 1.6; }
.fs-tief-dot.over { fill: var(--red); stroke: var(--red); }
.fs-lead { fill: none; stroke: var(--c); stroke-width: 1; stroke-dasharray: 1.5 3; opacity: .55; }
.fs-tief-t { fill: var(--dim); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.fs-tief-n { fill: var(--c); font-weight: 600; }
.fs-tief-d { fill: var(--faint); }
.fs-sum-tief { fill: var(--acc); stroke: var(--bg); stroke-width: 1.5; filter: drop-shadow(0 0 6px var(--acc)); }
.fs-cross-dot { fill: var(--acc); stroke: var(--bg); stroke-width: 1.5; }
.fs-sw-dispo { background: none; border-top: 2px dashed color-mix(in oklab, var(--red) 70%, var(--dim)); height: 0; border-radius: 0; width: 16px; }
.fs-sw-gehalt { background: none; border-left: 2px dashed var(--grn); width: 0; height: 12px; border-radius: 0; }
.fs-puls-slot { border-top: 1px dashed var(--line); padding-top: 10px; }

/* Überweisungsplan */
.fs-up-head { margin-top: 2px; }
.fs-up-rows { display: flex; flex-direction: column; gap: 6px; }
.fs-up-row { border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); }
.fs-up-row > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 22px minmax(120px, 1fr) minmax(0, 2.2fr) auto; gap: 6px 10px; align-items: center; padding: 8px 10px; font-size: 12.5px; }
.fs-up-row > summary::-webkit-details-marker { display: none; }
.fs-up-n { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 600 11px var(--mono); color: var(--faint); }
.fs-up-row.st-erhöhen .fs-up-n, .fs-up-row.st-neu .fs-up-n { border-color: var(--yel); color: var(--yel); }
.fs-up-row.st-senken .fs-up-n { border-color: var(--acc); color: var(--acc); }
.fs-up-row.st-passt .fs-up-n { border-color: var(--grn); color: var(--grn); }
.fs-up-acct { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-up-amts { font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.fs-up-da { color: var(--dim); }
.fs-up-need { color: var(--text); }
.fs-up-diff.up { color: var(--yel); } .fs-up-diff.down { color: var(--acc); }
.fs-up-btn { padding: 2px 8px; font-size: 11px; white-space: nowrap; }
.fs-up-posten { padding: 2px 10px 8px 42px; display: flex; flex-direction: column; gap: 1px; }
.fs-up-sum { font-size: 12.5px; line-height: 1.5; padding: 8px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); }
.fs-up-sum.k-warn { border-color: var(--yel); } .fs-up-sum.k-crit { border-color: var(--red); }
.fs-up-sum.k-ok > div:nth-child(3) { color: var(--grn); }
.fs-up-sum.k-warn > div:nth-child(3) { color: var(--yel); } .fs-up-sum.k-crit > div:nth-child(3) { color: var(--red); }
.fs-anlegen { border-color: color-mix(in srgb, var(--acc) 50%, var(--line)); }
.fs-an-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 7px 4px; border-bottom: 1px dashed var(--line); cursor: pointer; }
.fs-an-row:last-of-type { border-bottom: 0; }
.fs-an-row input { width: 16px; height: 16px; accent-color: var(--grn); cursor: pointer; }
.fs-an-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fs-an-top { font-size: 13px; }
.fs-an-amt { font-variant-numeric: tabular-nums; font-size: 14px; }
.fs-an-sub { font-size: 11.5px; overflow-wrap: anywhere; }
.fs-an-st { font-size: 11px; color: var(--faint); white-space: nowrap; }
.fs-an-row.done .fs-an-st { color: var(--grn); }
.fs-an-row.done .fs-an-top { color: var(--dim); }

/* Monat */
.fs-monat-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; align-items: start; }
.fs-monat-grid > .fs-col > .fv-sub { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: 10px 12px; }
.fs-pots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 10px; }
.fs-monat-viz { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px 20px; align-items: start; }

/* Vermögen & Perspektive */
.fs-nw-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px 24px; align-items: start; }
.fs-nw-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fs-split { display: flex; height: 18px; border-radius: var(--r-s); overflow: hidden; background: var(--surf-2, var(--surf)); gap: 2px; }
.fs-split > .fs-seg { display: block; height: 100%; min-width: 2px; }
.fs-seg.giro { background: var(--fv-1); } .fs-seg.kredit { background: var(--red); } .fs-seg.spar { background: var(--grn); } .fs-seg.depot { background: var(--fv-3); }
.fs-seg.neg { background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .18) 0 4px, transparent 4px 8px); }
.fs-anlagen { display: flex; flex-direction: column; }
.fs-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.fs-goal { --lc: var(--acc); display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; background: var(--surf); }
.fs-goal.k-ok { --lc: var(--grn); } .fs-goal.k-warn { --lc: var(--yel); }
.fs-ring { width: 64px; height: 64px; }
.fs-ring-bg { fill: none; stroke: var(--line); stroke-width: 6; }
.fs-ring-fg { fill: none; stroke: var(--lc); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 5px color-mix(in oklab, var(--lc) 60%, transparent)); }
.fs-ring-t { fill: var(--text); font-size: 13px; font-weight: 600; }
.fs-goal-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; }
.fs-goal-top { display: flex; align-items: baseline; gap: 4px; min-width: 0; padding-right: 26px; }
.fs-goal-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-goal-edit { position: absolute; right: -4px; top: -4px; padding: 1px 6px; }
.fs-goal-l { font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
.fs-stages { position: relative; height: 4px; border-radius: var(--r-xs); background: var(--line); margin: 4px 0 2px; }
.fs-stage { position: absolute; top: -3px; width: 2px; height: 10px; background: var(--faint); transform: translateX(-1px); }
.fs-stage.on { background: var(--grn); }
.fs-fan-chips { display: flex; gap: 14px; flex-wrap: wrap; }
.fs-rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.fs-rate { display: grid; grid-template-columns: minmax(90px, auto) minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; font-size: 12px; }
.fs-rate-v { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--acc); }
.fs-rate-q { grid-column: 2 / -1; font-size: 10.5px; letter-spacing: .02em; }
.fs-fan-none { display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; border: 1px dashed var(--line); border-radius: var(--r); font-size: 12.5px; line-height: 1.5; }
.fs-fan-none b { font-size: 14px; color: var(--text); }
.fs-fan-try { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.fs-mark-h { font-size: 10.5px; letter-spacing: .1em; color: var(--faint); }
.fs-range { width: 100%; accent-color: var(--acc); cursor: pointer; }
.fs-fan { display: flex; flex-direction: column; gap: 8px; }
.fs-fan-svg { min-width: 560px; }
.fs-band { fill: var(--acc); opacity: .11; }
.fs-fan-line { fill: none; stroke: var(--acc); stroke-width: 1; opacity: .45; stroke-dasharray: 3 3; }
.fs-paid { fill: none; stroke: var(--dim); stroke-width: 1.1; stroke-dasharray: 5 4; opacity: .7; }
.fs-mark-dot { fill: var(--bg); stroke: var(--acc); stroke-width: 1.4; }
.fs-marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.fs-mark-col { border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; background: var(--surf); }
.fs-mark-row { display: flex; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.fs-mark-v { color: var(--text); }
.fs-sw-band { background: color-mix(in oklab, var(--acc) 30%, transparent); }
.fs-sw-paid { background: none; border-top: 2px dashed var(--dim); height: 0; border-radius: 0; }
.fs-fire-top { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; line-height: 1.5; font-size: 12.5px; }
.fs-fire-ziel { font-size: 26px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; color: var(--text); text-shadow: 0 0 22px color-mix(in oklab, var(--acc) 35%, transparent); }
.fs-fire-rows { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 12.5px; }
.fs-fire-row { display: flex; gap: 6px; align-items: baseline; }
.fs-fire-row.never b { color: var(--dim); font-weight: 500; }
.fs-fire-needs { font-size: 12.5px; line-height: 1.5; }
.fs-annahmen { font-size: 11.5px; color: var(--dim); line-height: 1.6; border-top: 1px dashed var(--line); padding-top: 6px; }
.fs-annahmen .btn { padding: 0 6px; font-size: 11px; }

/* Werkzeuge */
.fs-werk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.fin-bank, .fin-biz, .fin-vertraege, .fin-tutor { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fin-bank .ph, .fin-biz .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fin-bank h3, .fin-biz h3 { margin: 0; font-size: 12px; color: var(--acc); text-transform: lowercase; letter-spacing: .5px; }

/* Verträge: ruhige Zeilen in Spalten, die die Breite füllen; Status nur farbig, wenn es brennt */
.vt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); column-gap: 28px; }
.vt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto minmax(84px, auto); gap: 4px 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.vt-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-name { color: var(--text); }
button.vt-edit { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--text); cursor: pointer; letter-spacing: 0; text-transform: none; }
button.vt-edit:focus-visible { color: var(--acc); text-decoration: underline; outline: none; } @media (hover: hover) { button.vt-edit:hover { color: var(--acc); text-decoration: underline; outline: none; } }
.vt-date { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vt-st { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.vt-row.k-warn .vt-st { color: var(--yel); font-weight: 600; } .vt-row.k-crit .vt-st { color: var(--red); font-weight: 600; }
.vt-price { font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
@media (max-width: 560px) {
  .vt-row { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
  .vt-st { grid-column: 2; white-space: normal; text-align: right; }
  .vt-date { grid-row: 2; }
  .vt-price { grid-row: 2; grid-column: 2; }
}

/* Posten je Konto + irregulär nebeneinander (keine Leerfläche neben einer langen Liste) */
.fs-posten > .fp-part { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; align-items: start; }
.fs-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fs-two-stretch { align-items: stretch; }
.fp-compact .btn { padding: 2px 9px; font-size: 11px; }
.fp-compact .fp-in { width: 82px; }
.fs-up-bank { font-size: 11px; color: var(--faint); white-space: nowrap; }
.fs-up-bank.done { color: var(--grn); }

/* Auftritt (fs-go, nur mit Bewegung) */
.fs-go .fs-node { animation: fv-rise .5s ease-out both; animation-delay: var(--d, 0ms); }
.fs-go .fs-path > .fs-seg > i { transform-origin: 0 50%; animation: fv-wide .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d, 0ms) + 150ms); }
.fs-go .fs-konto, .fs-go .fs-goal, .fs-go .fs-up-row, .fs-go .fs-card { animation: fv-rise .5s ease-out both; animation-delay: var(--d, 0ms); }
.fs-go .fs-split > .fs-seg { transform-origin: 0 50%; animation: fv-wide .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms); }
.fs-go .fs-ring-fg { animation: fv-sweep 1s cubic-bezier(.3,.8,.2,1) both .2s; }
.fs-go .fs-band { animation: fv-fade 1.2s ease-out both .3s; }
.fs-go .fs-big, .fs-go .fs-fire-ziel { animation: fv-rise .6s ease-out both; }
.fs-go .fv-area { animation: fv-fade 1.4s ease-out .4s both; }
@media (prefers-reduced-motion: reduce) { .fs-go * { animation: none !important; } }

@media (max-width: 1000px) {
  .fs-lage-top, .fs-lage-grid, .fs-monat-grid, .fs-monat-viz, .fs-nw-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .fs-two, .fs-werk-grid, .fs-rates, .fs-marks, .fs-posten > .fp-part { grid-template-columns: minmax(0, 1fr); }
  .fs-path { overflow-x: auto; padding-bottom: 6px; }
  .fs-node { width: 72px; }
  .fs-up-row > summary { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .fs-up-amts { grid-column: 2 / -1; }
  .fs-up-posten { padding-left: 12px; }
  .fs-an-row { grid-template-columns: 20px minmax(0, 1fr); }
  .fs-an-st { grid-column: 2; }
  .fs-goal { grid-template-columns: 56px minmax(0, 1fr); }
  .fs-ring { width: 56px; height: 56px; }
  .fs-rate { grid-template-columns: minmax(0, 1fr) auto; }
  .fs-rate > span:first-child, .fs-rate-q { grid-column: 1 / -1; }
  .fs-big { font-size: 34px; }
}

/* ---------- ~/finanzen · hero „geld im fluss“ (ui/fin-hero.js) ---------- */
.fh { gap: 12px; overflow: hidden; position: relative;
  background: radial-gradient(120% 90% at 20% 0%, color-mix(in oklab, var(--acc) 7%, var(--surf)) 0%, var(--surf) 55%), var(--surf); }
.fh-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 36px; align-items: end; }
.fh-date { display: grid; grid-template-columns: auto; gap: 2px; min-width: 150px; }
.fh-wd, .fh-tagn { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); }
.fh-day { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1; letter-spacing: -.5px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fh-sum { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fh-big { font-size: clamp(30px, 4.4vw, 54px); font-weight: 700; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--text); transition: color .6s ease, text-shadow .6s ease; }
.fh-big.neg { color: var(--red); text-shadow: 0 0 calc(34px * var(--fx-glow)) color-mix(in oklab, var(--red) 40%, transparent); }
.fh-big.pos { color: var(--grn); text-shadow: 0 0 calc(34px * var(--fx-glow)) color-mix(in oklab, var(--grn) 45%, transparent); }
.fh-status { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.fh-status.t-warn { color: var(--yel); } .fh-status.t-danger { color: var(--red); } /* summe im plus, aber ein konto im dispo / über dem limit */
.fh-ctl { display: flex; gap: 6px; align-items: center; align-self: center; }
.fh-play { min-width: 112px; padding: 7px 12px; font-variant-numeric: tabular-nums; }
.fh-play[hidden] { display: none; }
.fh-insights { display: flex; flex-wrap: wrap; gap: 6px; }
.fh-ins { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 8px; border: 1px solid var(--line); border-radius: var(--r-full); background: color-mix(in oklab, var(--bg) 70%, transparent);
  color: var(--text); font: inherit; font-size: 12px; cursor: pointer; text-align: left; transition: border-color var(--t), background var(--t); }
.fh-ins > i { width: 7px; height: 7px; border-radius: 50%; background: var(--lc, var(--faint)); box-shadow: 0 0 8px var(--lc, transparent); flex: none; }
.fh-ins.k-ok { --lc: var(--grn); } .fh-ins.k-warn { --lc: var(--yel); } .fh-ins.k-danger { --lc: var(--red); }
.fh-ins:focus-visible { border-color: var(--lc, var(--acc)); outline: none; } @media (hover: hover) { .fh-ins:hover { border-color: var(--lc, var(--acc)); outline: none; } }
.fh-stage { position: relative; width: 100%; min-height: 200px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 92%, var(--acc)) 0%, var(--bg) 60%); transition: border-color 1s ease; }
.fh-stage.plus { border-color: color-mix(in oklab, var(--grn) 35%, var(--line)); }
.fh-canvas { display: block; width: 100%; }
.fh-labels { position: absolute; inset: 0; pointer-events: none; }
.fh-lab { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; line-height: 1.2; padding-top: 4px; }
.fh-lab-n { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--dim); white-space: nowrap; }
.fh-sw { width: 7px; height: 7px; border-radius: var(--r-xs); background: var(--c, var(--acc)); flex: none; }
.fh-lab-a { font-size: 14px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fh-lab.topf .fh-lab-a { font-size: 12.5px; font-weight: 600; }
.fh-lab-a.neg { color: var(--red); }
.fh-lab-s { font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fh-lab-s.ok { color: var(--grn); } .fh-lab-s.over { color: var(--red); font-weight: 700; }
.fh-lab.num { font-size: 10px; color: var(--faint); }
.fh-legend { display: flex; flex-wrap: wrap; gap: 5px 18px; }
.fh-legend[hidden] { display: none; }
.fh-leg { display: inline-flex; gap: 6px; align-items: baseline; font-size: 12px; color: var(--dim); white-space: nowrap; }
.fh-leg-i { color: var(--faint); font-size: 10px; }
.fh-leg .fh-lab-a { font-size: 12.5px; font-weight: 600; }
.fh-ticker { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; min-height: 26px; font-size: 12px; }
.fh-tk-d { font-weight: 700; color: var(--text); min-width: 58px; font-variant-numeric: tabular-nums; }
.fh-tk { display: inline-flex; gap: 7px; align-items: baseline; padding: 2px 9px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--bg); color: var(--dim); max-width: 100%; }
.fh-tk-n { overflow-wrap: anywhere; }
.fh-tk b { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fh-tk.k-in { border-color: color-mix(in oklab, var(--grn) 45%, var(--line)); } .fh-tk.k-in b { color: var(--grn); }
.fh-tk.k-move { border-color: color-mix(in oklab, var(--acc) 40%, var(--line)); } .fh-tk.k-move b { color: var(--acc); }
.fh-tk-q { color: var(--faint); }
.fh-strip { position: relative; width: 100%; }
.fh-svg { display: block; overflow: visible; }
.fh-axis { fill: var(--faint); font-size: 10px; }
.fh-lane-n { fill: var(--dim); }
.fh-month { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.fh-zero { stroke: var(--text); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 2 3; }
.fh-sumline { fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linejoin: round; stroke-opacity: .85; }
.fh-gehalt { fill: var(--grn); }
.fh-run.plus { fill: var(--c, var(--acc)); opacity: .8; }
.fh-run.dispo { fill: var(--red); opacity: .38; }
.fh-run.ueber { fill: var(--red); }
.fh-head line { stroke: var(--text); stroke-width: 1.5; }
.fh-head circle { fill: var(--bg); stroke: var(--text); stroke-width: 2; }
.fh-strip:has(.fh-range:focus-visible) .fh-head circle { stroke: var(--acc); fill: var(--acc); }
.fh.playing .fh-head line, .fh.playing .fh-head circle { stroke: var(--acc); }
.fh-range { position: absolute; top: 0; margin: 0; padding: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.fh-note { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: 12px; line-height: 1.45; color: var(--dim); }
.fh-key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fh-k { width: 16px; height: 7px; border-radius: var(--r-xs); flex: none; }
.fh-k.plus { background: var(--acc); opacity: .8; } .fh-k.dispo { background: var(--red); opacity: .38; } .fh-k.ueber { background: var(--red); }
.fh-k.gehalt { width: 0; height: 0; border-radius: 0; border: 4px solid transparent; border-bottom: 7px solid var(--grn); border-top: 0; }
.fh-key-t { color: var(--faint); }
.fh-sub { text-transform: none; letter-spacing: 0; }
.fh-mark { stroke: var(--bg); stroke-width: 1.5; } .fh-mark.frei { fill: var(--grn); } .fh-mark.zurueck, .fh-mark.rein { fill: var(--red); }
.fh-probe { position: absolute; width: 0; height: 0; visibility: hidden; }
@media (max-width: 760px) {
  .fh-top { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .fh-date { min-width: 0; }
  .fh-sum { grid-column: 1 / -1; grid-row: 2; }
  .fh-ctl { grid-column: 2; grid-row: 1; align-self: start; flex-direction: column; align-items: stretch; }
  .fh-play { min-width: 0; }
  .fh-big { font-size: 34px; }
  .fh-lab-a { font-size: 12px; }
  .fh-lab-n { font-size: 10.5px; }
  .fh-lab-s { font-size: 9.5px; letter-spacing: -.2px; }
  .fh-ticker { min-height: 56px; align-content: flex-start; }
}

/* ---------- ~/finanzen · gemeinsame bildsprache der grafiken (wie der hero): bühne, licht, glaskörper, lesbare legenden ---------- */
/* --fx-glow steht auf :root (css/foundation.css): 1 in dunklen Themes, 0 bei data-mode="light" */
/* Bühne: Fläche, auf der eine Grafik steht – Tiefe über einen leisen Lichtkegel von oben */
.fx-stage { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 12px;
  background: radial-gradient(110% 80% at 25% 0%, color-mix(in oklab, var(--acc) 7%, var(--bg)) 0%, var(--bg) 60%), var(--bg); }
/* Licht: Hauptlinien und Marken leuchten in dunklen Themes in ihrer eigenen Farbe (--c), in hellen bleibt es ruhig */
.fx-glow { filter: drop-shadow(0 0 calc(7px * var(--fx-glow)) color-mix(in oklab, var(--c, var(--acc)) 60%, transparent)); }
/* Glaskörper: Balken und Segmente mit Verlauf und Lichtkante statt flacher Fläche oder Schraffur */
.fx-body { background: linear-gradient(180deg, color-mix(in oklab, var(--c, var(--acc)) 82%, white) 0%, var(--c, var(--acc)) 38%, color-mix(in oklab, var(--c, var(--acc)) 72%, black) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 calc(14px * var(--fx-glow)) color-mix(in oklab, var(--c, var(--acc)) 35%, transparent); }
/* Legende: lesbar (12 px, --dim), Farbmarke davor */
.fx-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: 12px; line-height: 1.45; color: var(--dim); }
.fx-key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fx-key > i { width: 14px; height: 7px; border-radius: var(--r-xs); background: var(--c, var(--acc)); flex: none; }
.fx-key > i.line { height: 2px; border-radius: 1px; } .fx-key > i.dash { height: 0; background: none; border-top: 2px dashed var(--c, var(--faint)); }
.fx-key > i.dot { width: 8px; height: 8px; border-radius: 50%; }
.fx-key b { color: var(--text); font-variant-numeric: tabular-nums; }
/* Fußnoten und alte Legenden: nicht mehr winzig und grau */
.fin-board .fv-legend, .fin-board .fv-note, .fin-board .fs-note { font-size: 12px; line-height: 1.45; color: var(--dim); }
/* Untertitel in der Kopfzeile bleibt in der Zeile (die Spalten-Regel .fv-sub gilt nur für Unter-Kacheln) */
.fin-board h3 .fv-sub { display: inline; }

/* ---------- ~/finanzen · abbuchungen (treemap) in der gemeinsamen bildsprache: kräftige glaskörper, lichtkante, anteil als zweite größe ---------- */
.fin-map { border-radius: var(--r-m); }
.fin-tile { padding: 7px 10px 7px; gap: 2px; justify-content: space-between; border-radius: var(--r-m); hyphens: none; overflow-wrap: normal; word-break: keep-all;
  border: 1px solid color-mix(in oklab, var(--c) 58%, var(--line));
  background: linear-gradient(168deg, color-mix(in oklab, var(--c) 50%, var(--bg)) 0%, color-mix(in oklab, var(--c) 30%, var(--bg)) 55%, color-mix(in oklab, var(--c) 22%, var(--bg)) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -22px 26px -22px rgba(0,0,0,.4), 0 0 calc(12px * var(--fx-glow, 0)) color-mix(in oklab, var(--c) 16%, transparent); }
[data-mode="light"] .fin-tile {
  border-color: color-mix(in oklab, var(--c) 70%, var(--bg));
  background: linear-gradient(168deg, color-mix(in oklab, var(--c) 46%, white) 0%, color-mix(in oklab, var(--c) 58%, white) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -20px 24px -20px color-mix(in oklab, var(--c) 55%, transparent), 0 1px 2px rgba(0,0,0,.08); }
.fin-tile:focus-visible { border-color: var(--c); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px var(--c), 0 6px 18px color-mix(in oklab, var(--c) 30%, transparent); } @media (hover: hover) { .fin-tile:hover { border-color: var(--c); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px var(--c), 0 6px 18px color-mix(in oklab, var(--c) 30%, transparent); } }
.fin-tile-n { display: flex; flex-direction: column; font-weight: 650; letter-spacing: 0; padding: 0; max-width: 100%; overflow: visible; -webkit-line-clamp: unset; color: var(--text); }
.fin-tile-n > span { white-space: nowrap; }
.fin-tile-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; min-width: 0; }
.fin-tile-v { display: inline-block; overflow: visible; text-overflow: clip; color: var(--text); line-height: 1.15; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; max-width: none; }
.fin-tile-v b { font-weight: 700; }
.fin-tile-sub { font-size: 12px; font-weight: 400; opacity: .75; }
.fin-tile-s { position: static; font-family: var(--mono); font-weight: 700; line-height: 1.15; letter-spacing: 0; color: color-mix(in oklab, var(--text) 62%, var(--c)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fin-tile-s.big { line-height: .95; letter-spacing: -1px; color: color-mix(in oklab, var(--text) 78%, var(--c)); opacity: .9; }
.fin-tile.t-small { padding: 4px 6px; justify-content: center; }
.fin-tile.t-small .fin-tile-foot { margin: 0; justify-content: center; }
.fin-tile.t-small .fin-tile-s { display: none; }
.fin-tile.t-none { padding: 0; }
.fin-tile.grp { border-style: dashed; background: linear-gradient(168deg, color-mix(in oklab, var(--c) 26%, var(--bg)) 0%, color-mix(in oklab, var(--c) 12%, var(--bg)) 100%); }
[data-mode="light"] .fin-tile.grp { background: linear-gradient(168deg, color-mix(in oklab, var(--c) 20%, white) 0%, color-mix(in oklab, var(--c) 30%, white) 100%); }
.fin-tile.grp .fin-tile-n { color: var(--text); font-weight: 600; }
.fin-tile.grp .fin-tile-n::before { content: none; }
.fin-tile.grp .fin-tile-v { padding-right: 0; }
.fin-tile-go { right: 8px; top: 5px; bottom: auto; font-size: 16px; color: var(--text); opacity: .7; }
.fin-legend { margin-top: 4px; }
.fin-legend .grow { flex: 1; }
.fin-abos-sum { font-size: 15px; }

/* ---------- ~/finanzen · saldo-chart als bühne, konto-karten, lage (paket A, bildsprache des heros) ---------- */
/* Saldo-Chart: pixelgenau gebautes SVG (lib/fin-saldo.js) – Summe als Hauptfläche, je Konto eine Zeile */
.fs-prog-chart { padding: 10px 6px 4px; overflow: hidden; }
.fs-saldo-host { width: 100%; min-height: 120px; }
.fs-saldo-svg { display: block; overflow: visible; }
.fs-sal-axis { fill: var(--faint); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.fs-sal-axis.zero { fill: var(--text); } .fs-sal-axis.limit { fill: var(--red); }
.fs-sal-grid { stroke: var(--text); stroke-opacity: .06; stroke-width: 1; }
.fs-sal-zero { stroke: var(--text); stroke-opacity: .45; stroke-width: 1; stroke-dasharray: 2 4; }
.fs-sal-month { stroke: var(--text); stroke-opacity: .09; stroke-width: 1; stroke-dasharray: 2 3; }
.fs-sal-gehalt { stroke: var(--grn); stroke-width: 1; stroke-dasharray: 2 4; opacity: .5; }
.fs-sal-gehalt-t { fill: var(--grn); font-size: 10.5px; letter-spacing: .03em; }
.fs-sal-sum { --c: var(--acc); fill: none; stroke: var(--acc); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.fs-sal-line { fill: none; stroke: var(--c); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.fs-sal-rowbg { fill: var(--text); fill-opacity: .025; }
.fs-sal-over { fill: var(--red); fill-opacity: .2; }
.fs-sal-limit { stroke: var(--red); stroke-width: 1; stroke-dasharray: 3 4; opacity: .75; }
.fs-sal-name { fill: var(--c); font-size: 12px; font-weight: 700; }
.fs-sal-rowt { fill: var(--dim); font-size: 10.5px; font-variant-numeric: tabular-nums; } .fs-sal-rowt.over { fill: var(--red); }
.fs-sal-end { fill: var(--text); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; } .fs-sal-end.neg { fill: var(--red); }
.fs-sal-t { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--bg); stroke-width: 3.5px; stroke-linejoin: round; }
.fs-sal-t.raus { fill: var(--grn); } .fs-sal-t.tief { fill: var(--text); } .fs-sal-t.tief.neg { fill: var(--red); }
.fs-sal-mark { stroke: var(--bg); stroke-width: 1.6; }
.fs-sal-mark.raus { fill: var(--grn); filter: drop-shadow(0 0 calc(7px * var(--fx-glow)) var(--grn)); }
.fs-sal-mark.back { fill: var(--red); }
.fs-sal-mark.tief { fill: var(--acc); } .fs-sal-mark.tief.neg { fill: var(--red); filter: drop-shadow(0 0 calc(7px * var(--fx-glow)) var(--red)); }
.fs-sal-mark.rowtief { fill: var(--bg); stroke: var(--c); } .fs-sal-mark.rowtief.over { fill: var(--red); stroke: var(--red); }
.fs-prog-chart .fs-cross-dot { fill: var(--acc); stroke: var(--bg); stroke-width: 1.5; pointer-events: none; }
.fs-prog-chart .fs-cross-dot.row { fill: var(--c); }
.fs-prog-chart .fv-cross { stroke-dasharray: none; opacity: .4; }
.fs-saldo-legend .tone-danger { color: var(--red); }
.fs-saldo-note { cursor: help; }

/* Konto-Karten: Tiefe statt Rahmenkästchen, Luft bis zum Limit als liegendes Gefäß */
.fs-konto { position: relative; overflow: hidden; border-left-width: 1px; padding: 12px 14px 12px 16px; gap: 3px;
  background: radial-gradient(130% 120% at 0% 0%, color-mix(in oklab, var(--c, var(--acc)) 9%, var(--bg)) 0%, var(--bg) 62%), var(--bg); }
.fs-konto::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lc);
  box-shadow: 0 0 calc(12px * var(--fx-glow)) var(--lc); }
.fs-konto-top b { font-size: 13px; letter-spacing: .02em; }
.fs-state { padding: 1px 8px; border-radius: var(--r-full); background: color-mix(in oklab, var(--lc) 14%, transparent); font-weight: 600; white-space: nowrap; }
.fs-konto-saldo { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.5px; line-height: 1.1; margin-top: 2px; }
.fs-konto-saldo.neg { text-shadow: 0 0 calc(22px * var(--fx-glow)) color-mix(in oklab, var(--red) 40%, transparent); }
.fs-konto-sub { font-size: 12px; }
.fs-luft { display: flex; flex-direction: column; gap: 4px; margin: 5px 0 4px; }
.fs-luft-track { position: relative; display: block; height: 9px; border-radius: var(--r-s); overflow: hidden; border: 1px solid color-mix(in oklab, var(--text) 16%, transparent);
  background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--red) 16%, transparent) 0 1px, transparent 1px 6px), color-mix(in oklab, var(--red) 7%, transparent); }
.fs-luft-track > i { display: block; height: 100%; border-radius: var(--r-s); --g: var(--c, var(--acc));
  background: linear-gradient(180deg, color-mix(in oklab, var(--g) 80%, white) 0%, var(--g) 45%, color-mix(in oklab, var(--g) 70%, black) 100%);
  box-shadow: 0 0 calc(10px * var(--fx-glow)) color-mix(in oklab, var(--g) 50%, transparent); }
.fs-luft.dispo .fs-luft-track > i { --g: var(--red); }
.fs-luft.ueber .fs-luft-track { border-color: var(--red); }
.fs-luft-t { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.fs-luft.plus .fs-luft-t > span:first-child { color: var(--grn); } .fs-luft.ueber .fs-luft-t > span:first-child { color: var(--red); font-weight: 700; }
.fs-luft-r { color: var(--faint); }
.fs-go .fs-luft-track > i { transform-origin: 0 50%; animation: fv-wide .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d, 0ms) + 200ms); }

/* Lage: Bühne mit Licht, große Zahl, Weg als leuchtende Bahn, „jetzt tun“ als Hauptkarte */
.fs-lage { overflow: hidden; background: radial-gradient(120% 90% at 15% 0%, color-mix(in oklab, var(--acc) 7%, var(--surf)) 0%, var(--surf) 55%), var(--surf); }
.fs-lage .fs-big { font-size: clamp(34px, 4.6vw, 56px); }
.fs-lage-text { font-size: 14.5px; line-height: 1.5; max-width: 62ch; }
.fs-lage .fs-note { max-width: 70ch; }
.fs-path { padding: 10px 0 4px; }
.fs-dot { width: 26px; height: 26px; background: var(--bg); font-size: 12px; }
.fs-node.done .fs-dot { background: color-mix(in oklab, var(--grn) 16%, var(--bg)); box-shadow: 0 0 calc(12px * var(--fx-glow)) color-mix(in oklab, var(--grn) 45%, transparent); }
.fs-node.on .fs-dot { box-shadow: 0 0 0 5px color-mix(in oklab, var(--acc) 20%, transparent), 0 0 calc(22px * var(--fx-glow)) color-mix(in oklab, var(--acc) 60%, transparent), inset 0 1px 0 rgba(255,255,255,.4); }
.fs-node-l { font-size: 12.5px; }
.fs-node-s { font-size: 11px; }
.fs-path > .fs-seg { height: 5px; margin-top: 11px; border-radius: var(--r-xs); background: color-mix(in oklab, var(--text) 9%, transparent); box-shadow: inset 0 1px 1px rgba(0,0,0,.25); }
.fs-path > .fs-seg > i { border-radius: var(--r-xs); box-shadow: 0 0 calc(10px * var(--fx-glow)) color-mix(in oklab, var(--acc) 55%, transparent); }
.fs-lage .fs-card { background: color-mix(in oklab, var(--bg) 88%, transparent); }
.fs-jetzt { position: relative; overflow: hidden; border-left-width: 1px; padding: 14px 16px 14px 18px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in oklab, var(--acc) 10%, var(--bg)) 0%, var(--bg) 60%), var(--bg) !important; }
.fs-jetzt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acc); box-shadow: 0 0 calc(14px * var(--fx-glow)) var(--acc); }
.fs-jetzt-title { font-size: 17px; line-height: 1.25; }
.fs-jetzt-zahl { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.5px; text-shadow: 0 0 calc(24px * var(--fx-glow)) color-mix(in oklab, var(--acc) 45%, transparent); }
.fs-jetzt-text { font-size: 13px; color: var(--text); opacity: .86; }
.fs-why summary { font-size: 12px; color: var(--dim); }
.fs-why div { font-size: 12.5px; }
.fs-steps { list-style: none; padding-left: 0; gap: 10px; counter-reset: fsstep; font-size: 13px; }
.fs-steps li { position: relative; padding-left: 32px; counter-increment: fsstep; --lc: var(--faint); }
.fs-steps li.k-crit { --lc: var(--red); } .fs-steps li.k-warn { --lc: var(--yel); } .fs-steps li.k-acc { --lc: var(--acc); }
.fs-steps li::before { content: counter(fsstep); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--lc); border: 1px solid color-mix(in oklab, var(--lc) 55%, transparent); background: color-mix(in oklab, var(--lc) 12%, transparent); }
.fs-steps .faint { font-size: 12px; line-height: 1.45; color: var(--dim); }
@media (max-width: 760px) {
  .fs-prog-chart { padding: 8px 2px 2px; }
  .fs-lage .fs-big { font-size: 36px; }
  .fs-node-l { font-size: 11.5px; } .fs-node-s { font-size: 10.5px; }
  .fs-jetzt-zahl { font-size: 24px; }
}

/* ---------- ~/finanzen · vermögen & perspektive in der bildsprache des heros (ui/fin-vermoegen.js) ---------- */
/* Netto-Vermögen: Waage um die Null statt schraffiertem Balken */
.fw { display: flex; flex-direction: column; gap: 6px; }
.fw-heads { display: flex; gap: 10px; font-size: 12px; color: var(--dim); }
.fw-head b { font-variant-numeric: tabular-nums; font-size: 14px; }
.fw-head.neg b { color: var(--red); } .fw-head.pos b { color: var(--grn); }
.fw-bar { display: flex; align-items: center; gap: 3px; height: 26px; }
.fw-seg { display: block; height: 20px; min-width: 4px; border-radius: var(--r-s); }
.fw-seg.giro, .fw-k.giro { --c: var(--red); } .fw-seg.kredit, .fw-k.kredit { --c: var(--fv-4); }
.fw-seg.spar, .fw-k.spar { --c: var(--grn); } .fw-seg.depot, .fw-k.depot { --c: var(--acc); }
.fw-zero { flex: none; width: 2px; height: 26px; border-radius: 1px; background: var(--text); margin: 0 2px; box-shadow: 0 0 calc(8px * var(--fx-glow)) var(--text); }
.fw-k { background: var(--c) !important; }
.fin-board .fs-nw .fv-big { font-size: clamp(34px, 4.6vw, 54px); }
/* Ziele: Ring mit Teilstrichen und Startpunkt, Karte als Bühne */
.fin-board .fs-goal { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 12px 14px;
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in oklab, var(--lc) 9%, var(--bg)) 0%, var(--bg) 62%), var(--bg); }
.fin-board .fs-ring.fr { width: 80px; height: 80px; overflow: visible; }
.fr-bg { fill: none; stroke: color-mix(in oklab, var(--lc) 14%, var(--line)); stroke-width: 7; }
.fr-ticks { fill: none; stroke: var(--bg); stroke-width: 7; opacity: .9; }
.fin-board .fr-fg { stroke-width: 7; filter: drop-shadow(0 0 calc(6px * var(--fx-glow)) color-mix(in oklab, var(--lc) 70%, transparent)); }
.fr-start { fill: var(--lc); stroke: var(--bg); stroke-width: 1.5; filter: drop-shadow(0 0 calc(5px * var(--fx-glow)) var(--lc)); }
.fr-t { fill: var(--text); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fr-u { fill: var(--dim); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; }
.fr.st-start .fr-t { fill: var(--dim); }
.fs-go .fr.st-start .fr-start { animation: fr-pulse 2.4s ease-in-out 3; transform-origin: 40px 10px; }
@keyframes fr-pulse { 50% { transform: scale(1.45); opacity: .55; } }
.fin-board .fs-goal-top b { font-size: 14px; }
.fin-board .fs-goal-l { font-size: 12.5px; }
.fin-board .fs-stages { height: 5px; border-radius: var(--r-xs); margin: 6px 0 2px; }
/* Projektion: Bühne, Sockel „eingezahlt“, Ertrag darüber, Zahlen an der Linie */
.fj-stage { padding: 8px 6px 4px; overflow: hidden; }
.fp-svg { display: block; max-width: 100%; }
.fp-axis { fill: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.fp-guide { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.fp-band { fill: var(--acc); opacity: .1; }
.fp-paid { fill: color-mix(in oklab, var(--dim) 34%, transparent); stroke: none; }
.fp-gain { stroke: none; }
.fp-edge { fill: none; stroke: var(--acc); stroke-width: 1; opacity: .4; stroke-dasharray: 2 4; }
.fp-mid { --c: var(--acc); fill: none; stroke: var(--acc); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fp-dot { fill: var(--bg); stroke: var(--acc); stroke-width: 2.2; }
.fp-val { fill: var(--text); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.fp-k-paid { background: color-mix(in oklab, var(--dim) 45%, transparent) !important; } .fp-k-gain { background: var(--acc) !important; } .fp-k-band { background: var(--acc) !important; opacity: .25; }
.fm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fm-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); min-width: 0;
  background: radial-gradient(120% 100% at 100% 0%, color-mix(in oklab, var(--acc) 8%, var(--bg)) 0%, var(--bg) 60%), var(--bg); }
.fm-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.fm-h { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.fm-r { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.fm-v { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.05; letter-spacing: -.5px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fm-span { display: grid; grid-template-columns: auto minmax(20px, 1fr) auto; gap: 8px; align-items: center; margin-top: 2px; }
.fm-end { display: flex; flex-direction: column; font-size: 10.5px; color: var(--faint); line-height: 1.25; }
.fm-end.r { align-items: flex-end; }
.fm-end b { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fm-track { position: relative; height: 4px; border-radius: var(--r-xs); background: linear-gradient(90deg, color-mix(in oklab, var(--acc) 18%, var(--line)), color-mix(in oklab, var(--acc) 60%, var(--line))); }
.fm-track > i { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--acc); transform: translate(-50%, -50%);
  box-shadow: 0 0 calc(8px * var(--fx-glow)) color-mix(in oklab, var(--acc) 70%, transparent); }
.fm-split { display: flex; gap: 2px; height: 8px; margin-top: 4px; }
.fm-split > i { display: block; height: 100%; border-radius: var(--r-xs); min-width: 3px; }
.fm-paid { background: color-mix(in oklab, var(--dim) 45%, transparent); }
.fm-gain { --c: var(--acc); }
.fm-split-l { display: flex; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--dim); }
.fm-split-l b { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fm-split-l .fm-acc { color: var(--acc); }
.fs-go .fm-card, .fs-go .ff-need { animation: fv-rise .5s ease-out both; animation-delay: var(--d, 0ms); }
.fin-board .fs-rate { font-size: 12.5px; } .fin-board .fs-rate-q { font-size: 11.5px; }
.fin-board .fs-rate-v { font-size: 14px; }
/* FIRE: Ziel, Lage als ein Satz, Weg zum Ziel, nötige Raten */
.ff { display: flex; flex-direction: column; gap: 12px; }
.ff-top { display: grid; grid-template-columns: minmax(220px, auto) minmax(0, 1fr); gap: 12px 32px; align-items: center; }
.ff-ziel { display: flex; flex-direction: column; gap: 3px; }
.fin-board .fs-fire-ziel { font-size: clamp(30px, 3.8vw, 44px); line-height: 1; white-space: nowrap; }
.ff-sub { font-size: 12px; color: var(--dim); line-height: 1.4; }
.ff-lage { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ff-satz { font-size: 15px; color: var(--text); line-height: 1.3; }
.ff-lage.never .ff-satz { color: var(--yel); }
.ff-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ff-pill { display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 10px; border: 1px solid color-mix(in oklab, var(--acc) 40%, var(--line)); border-radius: var(--r-full); font-size: 12px; color: var(--dim); background: var(--bg); white-space: nowrap; }
.ff-pill b { color: var(--text); } .ff-pill.never { border-color: var(--line); } .ff-pill.never b { color: var(--dim); font-weight: 500; }
.ff-weg { display: flex; flex-direction: column; gap: 5px; }
.ff-track { position: relative; height: 12px; border-radius: var(--r-s); background: color-mix(in oklab, var(--dim) 16%, var(--bg)); box-shadow: inset 0 0 0 1px var(--line); }
.ff-fill { --c: var(--acc); position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--r-s); min-width: 6px; }
.ff-flag { position: absolute; right: -1px; top: -5px; bottom: -5px; width: 2px; border-radius: 1px; background: var(--grn); box-shadow: 0 0 calc(8px * var(--fx-glow)) var(--grn); }
.ff-weg-l { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--dim); line-height: 1.4; }
.ff-weg-l b { color: var(--text); font-variant-numeric: tabular-nums; }
.ff-end { color: var(--grn); white-space: nowrap; }
.ff-needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ff-need { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); min-width: 0; }
.ff-need-v { font-size: 20px; font-weight: 700; letter-spacing: -.3px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ff-rate { height: 6px; border-radius: var(--r-xs); background: color-mix(in oklab, var(--dim) 16%, var(--bg)); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin-top: 2px; }
.ff-rate > i { --c: var(--acc); display: block; height: 100%; border-radius: var(--r-xs); }
.fin-board .fs-annahmen { font-size: 12px; }
@media (max-width: 760px) {
  .fm { grid-template-columns: minmax(0, 1fr); }
  .ff-top { grid-template-columns: minmax(0, 1fr); }
  .ff-needs { grid-template-columns: minmax(0, 1fr); }
  .ff-weg-l { flex-direction: column; gap: 2px; }
  .ff-end { align-self: flex-end; margin-top: -18px; }
  .fin-board .fs-goal { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; }
  .fin-board .fs-ring.fr { width: 68px; height: 68px; }
}
/* paket A, nachtrag: ampel-schild in der farbe der ampel (nicht der karte), weg am handy senkrecht statt abgeschnitten */
.fs-konto { border-left-color: var(--line); }
.fs-state { --pc: var(--faint); color: var(--pc); background: color-mix(in oklab, var(--pc) 14%, transparent); }
.fs-state.st-grün { --pc: var(--grn); } .fs-state.st-gelb { --pc: var(--yel); } .fs-state.st-rot { --pc: var(--red); }
@media (max-width: 760px) {
  .fs-path { flex-direction: column; align-items: flex-start; overflow: visible; padding: 4px 0 0; }
  .fs-node { flex-direction: row; align-items: center; width: auto; gap: 10px; text-align: left; flex-wrap: wrap; }
  .fs-node-l { font-size: 13px; } .fs-node-s { font-size: 12px; }
  .fs-path > .fs-seg { flex: none; width: 14px; min-width: 0; height: 5px; margin: 7px 0 7px 6px; transform: rotate(90deg); }
}

.ff-weg-l b, .fm-split-l span { white-space: nowrap; }
.fs-sal-name, .fs-sal-rowt, .fs-sal-end { paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }

/* ---------- ~/finanzen · grafiken (ui/fin-viz.js) in der gemeinsamen bildsprache: bühne, licht, glaskörper, pixelgenaue schrift ---------- */
.fin-tile { padding: 6px 8px; }
.fin-tile.t-big { padding: 8px 8px 7px; }
/* pixelgenaue SVGs: nie gestreckt, Schrift bleibt 11 px */
.fx-svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.fx-axis { fill: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.fx-axis.zero { fill: var(--text); }
.fx-legend .grow { flex: 1; }
.fx-stat { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fx-stat b { color: var(--text); }
.fx-key > i.total { background: var(--acc); height: 3px; box-shadow: 0 0 calc(6px * var(--fx-glow, 0)) color-mix(in oklab, var(--acc) 60%, transparent); }
.fx-key.fx-scale { gap: 4px; } .fx-key.fx-scale > i { width: 11px; height: 11px; border-radius: var(--r-xs); }
.fv .fx-stage { padding: 12px 12px 8px; }
.fv-verlauf { gap: 8px; }
/* Linien: Summe kräftig und leuchtend, Konten klar unterscheidbar */
.fv-total, .fv-net { stroke-width: 2.4; }
.fv-total.fx-glow, .fv-net.fx-glow { --c: var(--acc); }
.fv-acc-line { stroke-width: 1.5; opacity: .95; }
.fv-dot { stroke-width: 2; }
.fv-grid { opacity: .7; stroke-dasharray: 1 4; stroke-linecap: round; }
.fv-avg { stroke-width: 1.2; opacity: .7; }
/* Cashflow: Glaskörper-Balken */
.fx-bar { stroke-width: 1; }
.fx-bar.in { stroke: color-mix(in oklab, var(--grn) 70%, white); stroke-opacity: .35; filter: drop-shadow(0 0 calc(5px * var(--fx-glow, 0)) color-mix(in oklab, var(--grn) 45%, transparent)); }
.fx-bar.out { stroke: color-mix(in oklab, var(--red) 70%, white); stroke-opacity: .3; }
@media (hover: hover) { .fv-col:hover .fx-bar { filter: brightness(1.2); } }
/* Cashflow über die volle Breite, Kalender darunter (statt halbe Breite mit Mini-Schrift) */
.fs-monat .fs-sub-body.fs-two { grid-template-columns: minmax(0, 1fr); }
.fx-kal { display: flex; justify-content: center; }
/* Konten-Balken um die Null: Glaskörper */
.fv-acc { font-size: 12.5px; grid-template-columns: minmax(84px, 1.1fr) 2fr minmax(64px, auto); gap: 10px; }
.fv-acc-n { color: var(--text); }
.fv-acc-v { font-weight: 700; }
.fv-acc-track { height: 12px; border-radius: var(--r-s); background: color-mix(in oklab, var(--text) 6%, var(--bg)); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.fv-acc-zero { top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text); opacity: .55; border-radius: 1px; }
.fv-acc-bar { border-radius: var(--r-s); background: linear-gradient(180deg, color-mix(in oklab, var(--grn) 80%, white) 0%, var(--grn) 45%, color-mix(in oklab, var(--grn) 70%, black) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 calc(12px * var(--fx-glow, 0)) color-mix(in oklab, var(--grn) 40%, transparent); }
.fv-acc.neg .fv-acc-bar { background: linear-gradient(180deg, color-mix(in oklab, var(--red) 80%, white) 0%, var(--red) 45%, color-mix(in oklab, var(--red) 70%, black) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 calc(12px * var(--fx-glow, 0)) color-mix(in oklab, var(--red) 40%, transparent); }
/* Ring: Tiefe über Lichtkanten, leuchtende Bögen, große Zahl in der Mitte */
.fv-ring { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 20px; }
.fv-ring-bg { stroke: color-mix(in oklab, var(--text) 6%, var(--bg)); }
.fv-arc { filter: drop-shadow(0 0 calc(5px * var(--fx-glow, 0)) color-mix(in oklab, var(--c) 55%, transparent)); }
.fv-arc.on { stroke-width: 32; } @media (hover: hover) { .fv-arc:hover { stroke-width: 32; } }
.fx-ring-rim { fill: none; pointer-events: none; stroke-width: 1.5; }
.fx-ring-rim.out { stroke: rgba(255,255,255,.22); } .fx-ring-rim.in { stroke: rgba(0,0,0,.28); }
.fv-ring-c { gap: 3px; }
.fv-ring-c b { font-size: 28px; letter-spacing: -.5px; line-height: 1.05; }
.fv-ring-c span { font-size: 11.5px; letter-spacing: .06em; }
.fv-cats { gap: 8px; }
.fv-cat { grid-template-columns: 10px minmax(70px, 1fr) minmax(40px, 1.3fr) 38px minmax(56px, auto); font-size: 12.5px; }
.fv-cat-p { color: var(--dim); font-size: 11.5px; text-align: right; font-variant-numeric: tabular-nums; }
.fv-cat b { text-align: right; }
.fv-cat-bar { height: 8px; border-radius: var(--r-s); background: color-mix(in oklab, var(--text) 6%, var(--bg)); box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
.fv-cat-bar > i, .fv-emp-bar > i { border-radius: var(--r-s); background: linear-gradient(180deg, color-mix(in oklab, var(--c) 80%, white) 0%, var(--c) 45%, color-mix(in oklab, var(--c) 72%, black) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 calc(8px * var(--fx-glow, 0)) color-mix(in oklab, var(--c) 45%, transparent); }
/* Geldstrom */
.fv-strom-svg { min-width: 0; }
.fx-strom { padding: 14px 12px 12px; }
.fv-ribbon { opacity: .34; }
.fv-node rect { stroke: rgba(255,255,255,.3); stroke-width: .8; filter: drop-shadow(0 0 calc(5px * var(--fx-glow, 0)) color-mix(in oklab, var(--c, var(--acc)) 60%, transparent)); }
.fv-node-t { font-size: 12.5px; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.fv-node-n { font-weight: 600; } .fv-node-v { fill: var(--dim); }
.fx-saldo { font-size: 15px; font-variant-numeric: tabular-nums; }
/* Kalender */
.fv-kal-svg { min-width: 0; max-width: none; }
.fv-day { stroke-width: .8; fill: color-mix(in oklab, var(--text) 5%, var(--bg)); }
.fv-day.l3, .fv-day.l4 { stroke: color-mix(in oklab, var(--acc) 60%, white); stroke-opacity: .35; }
.fv-day.l4 { filter: drop-shadow(0 0 calc(4px * var(--fx-glow, 0)) var(--acc)); }
.fv-day.today { stroke: var(--text); stroke-width: 1.6; }
/* Empfänger */
.fv-emps { gap: 11px; }
.fv-emp { grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.fv-emp-rank { font-size: 15px; font-weight: 700; color: color-mix(in oklab, var(--c, var(--faint)) 70%, var(--dim)); text-align: center; }
.fv-emp-top { font-size: 13px; } .fv-emp-top b { font-size: 13.5px; }
.fv-emp-bar { height: 7px; border-radius: var(--r-s); background: color-mix(in oklab, var(--text) 6%, var(--bg)); box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
.fv-emp-sub { font-size: 11.5px; color: var(--dim); }
/* Karten im Monat stehen auf derselben Bühne */
.fs-monat-grid > .fs-col > .fv-sub, .fs-monat .fs-card { background: radial-gradient(110% 80% at 25% 0%, color-mix(in oklab, var(--acc) 6%, var(--bg)) 0%, var(--bg) 60%), var(--bg); }
/* Überschuss: Zahlen als erste Größe */
.fs-monat .fin-kv span { font-size: 11.5px; }
.fs-monat .fin-kv b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.fs-monat .fin-kvs { gap: 12px 14px; }
/* Töpfe: Glaskörper-Balken */
.fin-bar { height: 10px; border-radius: var(--r-s); border: 0; background: color-mix(in oklab, var(--text) 6%, var(--bg)); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.fin-bar > i { --c: var(--grn); border-radius: var(--r-s); background: linear-gradient(180deg, color-mix(in oklab, var(--c) 80%, white) 0%, var(--c) 45%, color-mix(in oklab, var(--c) 70%, black) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 calc(10px * var(--fx-glow, 0)) color-mix(in oklab, var(--c) 40%, transparent); }
.fin-bar > i.lvl-warn { --c: var(--yel); } .fin-bar > i.lvl-crit { --c: var(--red); }
.fin-pot-top b { font-size: 14px; font-variant-numeric: tabular-nums; }
.fin-pot-sub { color: var(--dim); }
@media (max-width: 900px) {
  .fv-ring { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .fv .fx-stage { padding: 10px 8px 6px; }
  .fv-cat { grid-template-columns: 10px minmax(60px, 1fr) minmax(30px, 1fr) 34px minmax(52px, auto); }
  .fv-node-t { font-size: 11.5px; }
}

.fv-acc-n { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.fs-monat .fin-kv b { font-size: 14.5px; }

/* cashflow + kalender: der bereich ist eine flex-spalte – kinder über die volle breite statt auf inhaltsbreite geschrumpft */
.fs-monat .fs-sub-body.fs-two { align-items: stretch; gap: 16px; }
.fs-monat .fs-sub-body.fs-two > .fv-sub { min-width: 0; width: 100%; }

.fv-emp-n { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.fv-emp-top b { white-space: nowrap; }

/* ---------- ~/finanzen · palette (lib/fin-colors.js): feste Farbtöne in OKLCH, Helligkeit nach Theme ---------- */
/* Vorher aus dem Akzent abgeleitet – in Themes mit grauem/einfarbigem Akzent (anthrazit, graphite, amber, terminal) fielen
   die Farben zusammen. Kein Rot: Rot gehört dem Minus. Werte = FV in lib/fin-colors.js (der Test vergleicht beide).
   Steht auf :root, damit auch andere Seiten die Palette nutzen; Helligkeit je Theme-Art über data-mode (js/theme.js). */
:root {
  --fv-l: 0.76; --fv-c: 0.13;
  --fv-0: oklch(calc(var(--fv-l) + 0) calc(var(--fv-c) * 1) 255);
  --fv-1: oklch(calc(var(--fv-l) + 0.04) calc(var(--fv-c) * 1) 85);
  --fv-2: oklch(calc(var(--fv-l) + 0) calc(var(--fv-c) * 0.9) 185);
  --fv-3: oklch(calc(var(--fv-l) + -0.03) calc(var(--fv-c) * 1.1) 305);
  --fv-4: oklch(calc(var(--fv-l) + 0.05) calc(var(--fv-c) * 1.1) 135);
  --fv-5: oklch(calc(var(--fv-l) + -0.1) calc(var(--fv-c) * 0.25) 255);
  --fv-6: oklch(calc(var(--fv-l) + 0.1) calc(var(--fv-c) * 0.55) 225);
  --fv-7: oklch(calc(var(--fv-l) + -0.06) calc(var(--fv-c) * 0.4) 70);
  --fv-8: oklch(calc(var(--fv-l) + 0.03) calc(var(--fv-c) * 0.8) 345);
  --fv-9: oklch(calc(var(--fv-l) + -0.12) calc(var(--fv-c) * 0.6) 110);
}
:root[data-mode="light"] { --fv-l: 0.56; --fv-c: 0.15; }

/* ---------- ~/finanzen · prüf-runde: treemap-liste, ziel-karte, monats-raster ---------- */
/* Geöffnetes Bündel, dessen Posten als Kacheln ihren Namen nicht tragen könnten: Liste statt stummer Kacheln */
.fin-map.as-list { height: auto !important; display: flex; flex-direction: column; gap: 4px; position: static; }
.fin-row { --c: var(--dim); display: grid; grid-template-columns: minmax(0, 5fr) minmax(40px, 4fr) auto 46px; gap: 6px 12px; align-items: center; width: 100%; text-align: left;
  padding: 8px 12px; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: var(--r-m); background: var(--bg); color: var(--text); font: inherit; cursor: pointer;
  transition: border-color var(--t); }
.fin-row:focus-visible { border-color: var(--c); outline: none; } @media (hover: hover) { .fin-row:hover { border-color: var(--c); outline: none; } }
.fin-row-n { display: flex; flex-direction: column; gap: 1px; font-weight: 600; font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.fin-row-sub { font-weight: 400; font-size: 11.5px; color: var(--dim); }
.fin-row-sub:empty { display: none; }
.fin-row-bar { height: 8px; border-radius: var(--r-s); background: color-mix(in oklab, var(--dim) 14%, var(--bg)); overflow: hidden; }
.fin-row-bar > i { display: block; height: 100%; border-radius: var(--r-s); }
.fin-row-v { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; }
.fin-row-p { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; font-size: 12px; color: var(--dim); }
.fin-row.cut .fin-row-n { text-decoration: line-through; text-decoration-color: var(--red); }
.fin-map.fs-go .fin-row { animation: fv-rise .45s ease-out both; animation-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="an"]) .fin-row { animation: none !important; } }
@media (max-width: 560px) {
  .fin-row { grid-template-columns: minmax(0, 1fr) auto 42px; }
  .fin-row-bar { grid-column: 1 / -1; grid-row: 2; height: 5px; }
}
/* Ziel-Karte: der Name bricht um, statt mit Ellipse zu enden */
.fin-board .fs-goal-top { flex-wrap: wrap; row-gap: 0; }
.fin-board .fs-goal-top b { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.fin-board .fs-goal-top > .faint { white-space: nowrap; }
/* Monat: beide Spalten gleich hoch – die letzte Karte jeder Spalte füllt den Rest, ihr Inhalt steht mittig (kein Loch unter ~/ausgaben) */
@media (min-width: 1001px) {
  .fs-monat-grid { align-items: stretch; }
  .fs-monat-grid > .fs-col > :last-child { flex: 1 1 auto; }
}
/* Monat: links überschuss + ausgaben-ring, rechts töpfe + empfänger (dort zweispaltig) – beide Spalten etwa gleich hoch */
@media (min-width: 1001px) {
  .fs-monat-grid > .fs-col:last-child .fv-emps { display: block; columns: 2; column-gap: 28px; }
  .fs-monat-grid > .fs-col:last-child .fv-emp { break-inside: avoid; margin-bottom: 11px; }
}
@media (min-width: 1001px) {
  /* Ring in der schmalen linken Spalte: kleinerer Ring, Liste ohne Balken (der Anteil steht als Zahl daneben) – nichts wird abgeschnitten */
  .fs-monat-grid > .fs-col:first-child .fv-ring { grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); gap: 14px; }
  .fs-monat-grid > .fs-col:first-child .fv-cat { grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 8px; }
  .fs-monat-grid > .fs-col:first-child .fv-cat-bar { display: none; }
  .fs-monat-grid > .fs-col:first-child .fv-cat-n { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  .fs-monat-grid > .fs-col:first-child .fv-ring-c b { font-size: 22px; }
}
@media (min-width: 1001px) and (max-width: 1279px) {
  /* schmale linke Spalte: Ring über der Liste, Liste wieder mit Balken in voller Breite */
  .fs-monat-grid > .fs-col:first-child .fv-ring { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .fs-monat-grid > .fs-col:first-child .fv-ring-wrap { width: min(220px, 70%); }
  .fs-monat-grid > .fs-col:first-child .fv-cats { width: 100%; }
  .fs-monat-grid > .fs-col:first-child .fv-cat { grid-template-columns: 10px minmax(84px, 1fr) minmax(30px, 1fr) auto auto; }
  .fs-monat-grid > .fs-col:first-child .fv-cat-bar { display: block; }
  .fs-monat-grid > .fs-col:first-child .fv-cat-n { overflow-wrap: normal; }
}

/* ---------- ~/finanzen · typografie ----------
   Die Regel „Geist für Text, Geist Mono nur für Achsen und Betragsspalten, Tabellenziffern überall“ gilt seit dem Fundament
   (css/foundation.css) für die ganze App. Hier bleibt nur: ~/finanzen steht auch in Themes mit Mono-Textschrift
   (terminal, amber, blaupause) in Geist – samt Dialogen, Menüs, Hinweisen und Tooltips, solange die Ansicht offen ist. */
.fin-head, .fin-board, body:has(.fin-board) :is(.overlay, .toast, .ctx, .fv-tip) { --ui: var(--font-ui); --mono: var(--font-mono); font-family: var(--ui); }
.fin-board svg text { font-family: var(--ui); }
:is(.fin-head, .fin-board, body:has(.fin-board) :is(.overlay, .toast, .ctx, .fv-tip)) :is(button, input, select, textarea) { font-family: inherit; }
.fin-board .mono, body:has(.fin-board) .overlay .mono { font-family: var(--mono); }
/* Geist Mono: Achsen und Betragsspalten */
.fin-board svg text[class*="axis"], .fin-board .fp-amt, .fin-board .fp-v, .fin-board .fin-tile-v, .fin-board .fin-tile-s { font-family: var(--mono); letter-spacing: -.02em; }

/* Titel: Kachel-Titel, Abschnittsköpfe, aufklappbare Zeilen */
.fin-board .panel > h3, .fin-board .fv-sub > h3 { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.fin-board h3 .fv-sub, .fin-board h3 .fh-sub { font-weight: 400; font-size: 13px; }
.fin-board .fp-h { font-size: 11px; font-weight: 600; letter-spacing: .09em; }
.fin-board .fp-h .fp-hs { font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--dim); }
.fin-board .fs-sub > summary.fs-sum-h { font-size: 14px; font-weight: 600; color: var(--text); padding: 11px 14px; align-items: baseline; flex-wrap: wrap; }
.fin-board .fs-sub > summary.fs-sum-h > span { font-weight: 400; font-size: 13px; }
.fin-board .fv-lbl { font-weight: 500; letter-spacing: .11em; }

/* Erklärtexte: lesbare Größe, ruhige Zeilen, höchstens ~80 Zeichen breit */
.fin-board :is(.fs-note, .fv-note, .fin-check, .fs-lage-text, .fs-jetzt-text, .fin-warn, .fs-why > div, .fs-up-sum, .fs-fan-none > div) { line-height: 1.55; max-width: 80ch; }
.fin-board :is(.fs-note, .fv-note) { font-size: 13px; color: var(--dim); }
.fin-board .fs-lage-text { font-size: 15px; }
.fin-board .fs-up-sum { font-size: 13.5px; max-width: none; }
.fin-board .fs-up-sum > div { max-width: 96ch; }
/* Hinweise als Liste statt Textwand: je Aussage ein Punkt, ab mittlerer Breite zweispaltig */
.fs-hints { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 28px; font-size: 13px; line-height: 1.55; color: var(--dim); }
.fs-hints > li { position: relative; padding-left: 14px; max-width: 76ch; }
.fs-hints > li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 2px; border-radius: 1px; background: var(--acc); opacity: .7; }
.fs-hints b { color: var(--text); font-weight: 600; }
@media (min-width: 900px) { .fs-hints.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Listen und Zeilen: Geist ist schmaler als Monospace – etwas mehr Größe, damit nichts dünn wirkt */
.fin-board :is(.fp-line, .fs-an-row, .fs-up-row > summary, .fin-kv, .fs-steps li) { font-size: 13.5px; }
.fin-board :is(.fs-an-sub, .fs-konto-sub, .fs-goal-l, .fp-sub) { font-size: 12.5px; }
.fin-board .btn { font-weight: 500; }
.fin-board :is(.fs-big, .fh-big, .fv-big, .fm-v, .fs-fire-ziel, .fh-day, .fs-konto-saldo, .ff-need-v) { letter-spacing: -.03em; font-feature-settings: "ss01", "cv11", "tnum"; }
body:has(.fin-board) .fv-tip { font-size: 12.5px; line-height: 1.45; }
body:has(.fin-board) .overlay .modal { font-size: 14px; line-height: 1.5; }
@media (max-width: 760px) {
  .fin-board .fs-sub > summary.fs-sum-h { font-size: 13.5px; padding: 10px 12px; }
  .fin-board .fs-lage-text { font-size: 14px; }
}
.fin-board :is(code, kbd, pre, samp), body:has(.fin-board) .overlay :is(code, kbd, pre, samp) { font-family: var(--mono); font-size: .95em; }

/* Kachel-Brett: die ganze Titelzeile klappt die Kachel (ui/panel-board.js); der Pfeil rechts zeigt mit, dass sie Ziel ist */
.pb-tile > .panel > h3, .pb-tile > .panel > .ph { cursor: pointer; user-select: none; }
.pb-tile > .panel > h3 :is(button, a, input, select, label), .pb-tile > .panel > .ph :is(button, a, input, select, label) { cursor: revert; user-select: auto; }
@media (hover: hover) { .pb-tile:has(> .panel > h3:hover, > .panel > .ph:hover) > .pb-bar { color: var(--text); background: var(--surf-2); } }
.pb-tile > .pb-bar:focus-visible { box-shadow: 0 0 0 2px var(--acc); }
.pb-board.arrange > .pb-tile > .panel > h3, .pb-board.arrange > .pb-tile > .panel > .ph { cursor: inherit; }

/* ==========================================================================
   ~/finanzen · zahltag (ui/fin-zahltag.js): Fluss-Grafik „wohin jeder euro geht“ + Checkliste A/B/C + Summenzeile.
   Dazu: Zusammensetzung je Konto im Überweisungsplan (.fs-up-mix) und das Ist-Band im Bereich „monat“ (.fs-istplan).
   Farben nur aus Theme-Tokens und --fv-0…9; Rot nur für Minus. Bewegung nur über .fs-go / .fz-go (motionOn).
   ========================================================================== */
.fs-zahltag { display: flex; flex-direction: column; gap: 12px; }
.fs-zahltag > h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.fz-prog { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dim); text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.fz-prog-bar { width: 96px; height: 6px; border-radius: var(--r-xs); background: color-mix(in oklab, var(--line) 80%, transparent); overflow: hidden; }
.fz-prog-bar > i { display: block; height: 100%; border-radius: var(--r-xs); background: var(--grn); box-shadow: 0 0 calc(8px * var(--fx-glow, 0)) var(--grn); }
.fz-status { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; font-size: 13px; line-height: 1.45; color: var(--dim); padding: 8px 12px;
  border: 1px solid var(--line); border-left: 3px solid var(--yel); border-radius: var(--r); background: color-mix(in oklab, var(--yel) 6%, var(--bg)); }
.fz-status.ok { border-left-color: var(--grn); background: color-mix(in oklab, var(--grn) 7%, var(--bg)); }
.fz-status b { color: var(--text); }

/* Fluss-Grafik */
.fz-stage { padding: 12px 12px 8px; overflow: hidden; }
.fz-host { min-width: 0; line-height: 0; }
.fz-svg { display: block; max-width: 100%; }
.fz-band { transition: opacity .2s; mix-blend-mode: normal; }
@media (hover: hover) { .fz-band:hover { opacity: .78; filter: saturate(1.3) brightness(1.15); } }
.fz-node { fill: var(--c, var(--acc)); stroke: rgba(255,255,255,.28); stroke-width: .7; }
.fz-node.c1 { stroke: rgba(255,255,255,.4); }
.fz-node.minus { fill: var(--red); --c: var(--red); }
.fz-t { font-size: 12.5px; dominant-baseline: middle; paint-order: stroke; stroke: var(--bg); stroke-width: 3.5px; stroke-linejoin: round; font-variant-numeric: tabular-nums; }
.fz-tn { fill: var(--text); } .fz-tv { fill: var(--dim); }
.fz-t.c0 .fz-tn, .fz-t.c2 .fz-tn, .fz-t.hub .fz-tn { font-weight: 650; }
.fz-t.c2 .fz-tv, .fz-t.c0 .fz-tv { fill: var(--text); }
.fz-t.head .fz-tn { fill: color-mix(in oklab, var(--c) 72%, var(--text)); letter-spacing: .02em; }
.fz-t.minus .fz-tn, .fz-t.minus .fz-tv { fill: var(--red); }
.fz-t.plus .fz-tv { fill: var(--grn); }
.fz-t.c3 { font-size: 12px; }
.fz-legend { padding: 0 2px; }
.fz-go .fz-band { animation: fv-ribbon 1s cubic-bezier(.3,.7,.2,1) both; animation-delay: calc(var(--d, 0ms) + 150ms); }
.fz-go .fz-node, .fz-go .fz-t { animation: fv-fade .7s ease-out both; }
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="an"]) .fz-go * { animation: none !important; } }

/* Checkliste */
.fz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.fz-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fz-abc { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 8px; border-radius: var(--r-s); font-size: 11px; letter-spacing: 0;
  color: var(--bg); background: var(--acc); text-transform: uppercase; }
.fs-zahltag .fp-h { align-items: center; }
.fz-row { grid-template-columns: 20px minmax(0, 1fr) auto; padding: 8px 4px; }
.fz-row input:disabled { cursor: default; opacity: .7; }
.fz-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.fz-top .fs-an-amt { font-size: 14.5px; min-width: 86px; }
.fz-nr { width: 16px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.fz-zweck { font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.fz-row.done .fz-zweck, .fz-row.done .fs-an-amt { color: var(--dim); }
.fz-row.fz-dispo .fz-zweck { color: color-mix(in oklab, var(--red) 62%, var(--text)); }
.fz-row.fz-dispo.done .fz-zweck { color: var(--dim); }
.fz-weg { display: inline-flex; align-items: center; gap: 5px; min-width: 0; flex-wrap: wrap; }
.fz-chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; border-radius: var(--r-full); font-size: 11.5px; line-height: 1.5; color: var(--text); white-space: nowrap;
  border: 1px solid color-mix(in oklab, var(--c) 45%, var(--line)); background: color-mix(in oklab, var(--c) 12%, transparent); }
.fz-chip > i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 calc(6px * var(--fx-glow, 0)) var(--c); flex: none; }
.fz-pfeil { position: relative; width: 16px; height: 8px; flex: none; }
.fz-pfeil::before { content: ""; position: absolute; left: 0; right: 2px; top: 3px; height: 2px; border-radius: 1px; background: var(--faint); }
.fz-pfeil::after { content: ""; position: absolute; right: 1px; top: 1px; width: 5px; height: 5px; border-top: 2px solid var(--faint); border-right: 2px solid var(--faint); transform: rotate(45deg); box-sizing: border-box; }
.fz-note { font-size: 12.5px; line-height: 1.5; color: var(--dim); padding: 8px 10px; border-radius: var(--r); background: color-mix(in oklab, var(--surf) 70%, transparent); border: 1px dashed var(--line); }
.fz-note b { color: var(--text); white-space: nowrap; }

/* Summenzeile */
.fz-sum { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.fz-sum-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.fz-fig { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fz-fig-l { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.fz-fig-v { font-size: clamp(19px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.3px; font-variant-numeric: tabular-nums; color: var(--text); }
.fz-fig-v.neg { color: var(--red); }
.fz-fig-s { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.fz-op { font-size: 22px; color: var(--faint); font-weight: 300; }
.fz-split { display: flex; gap: 2px; height: 10px; border-radius: var(--r-s); overflow: hidden; }
.fz-split > i { display: block; height: 100%; background: var(--c); min-width: 3px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.fz-split > i:first-child { border-radius: 5px 0 0 5px; } .fz-split > i:last-child { border-radius: 0 5px 5px 0; }
.fz-eigen { white-space: normal; flex-basis: 100%; }
.fs-go .fz-split > i { transform-origin: 0 50%; animation: fv-wide .8s cubic-bezier(.2,.8,.2,1) both; }

/* Überweisungsplan: Zusammensetzung je Konto, immer sichtbar */
.fs-up-mix { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; font-size: 12px; line-height: 1.5; color: var(--dim); font-variant-numeric: tabular-nums; }
.fs-up-part b { color: var(--text); font-weight: 600; }
.fs-up-part.ein b { color: var(--grn); }
.fs-up-names { color: var(--faint); }
.fs-up-op { color: var(--faint); }
.fs-up-bar { flex-basis: 100%; color: var(--dim); padding-left: 9px; border-left: 2px solid var(--fv-4); }
.fs-up-zt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 12.5px; color: var(--dim); padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.fs-up-zt b { color: var(--text); }

/* Monat: Ist, nicht Plan */
.fs-ist { color: var(--text); font-weight: 600; }
.fs-istplan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; line-height: 1.5; color: var(--dim); padding: 8px 12px;
  border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: var(--r); background: color-mix(in oklab, var(--acc) 5%, var(--bg)); }
.fs-istplan-tag { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); font-weight: 700; white-space: nowrap; }
.fs-istplan-t { flex: 1 1 320px; min-width: 0; }
.fs-istplan-t b { color: var(--text); font-weight: 600; }
.fs-istplan .btn { padding: 2px 10px; font-size: 11.5px; }

@media (max-width: 900px) {
  .fz-grid { grid-template-columns: minmax(0, 1fr); }
  .fz-col { display: contents; } .fz-grid .fz-c { order: 3; }
}
@media (max-width: 760px) {
  .fz-stage { padding: 10px 8px 6px; }
  .fz-row { grid-template-columns: 20px minmax(0, 1fr); }
  .fz-row .fs-an-st { grid-column: 2; }
  .fz-top .fs-an-amt { min-width: 0; }
  .fz-sum { padding: 12px; }
  .fz-sum-row { gap: 6px 14px; }
  .fz-op { display: none; }
  .fz-fig { flex: 1 1 100%; }
  .fz-prog-bar { width: 64px; }
  .fs-up-mix { grid-column: 1 / -1; }
  .fz-t { font-size: 12px; }
}
/* /zahltag */

/* ---------- ~/finanzen · feinschliff: einheitliche abstände, kartenränder, knöpfe und chips (passend zu Geist) ---------- */
.fin-board > .pb-tile > .panel { padding: 16px 18px 18px; gap: 14px; border-radius: var(--r-card); }
.fin-board > .pb-tile > .panel > h3 { margin: 0; min-height: 24px; align-items: center; }
.fin-board > .pb-tile > .pb-bar { top: 14px; right: 12px; }
.fin-board .fs-card, .fin-board .fx-stage, .fin-board .fs-sub { border-radius: var(--r-inner); }
.fin-board .fs-card { padding: 14px 16px; gap: 10px; }
.fin-board .fp-h { padding-bottom: 8px; border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent); align-items: center; }
.fin-head { padding: 2px 2px 4px; font-size: 14px; }
.fin-head .btn, .fin-board .btn { border-radius: var(--r-btn); padding: 6px 12px; font-size: var(--fs-sm); line-height: 1.3; }
.fin-board .fp-h .btn, .fin-board .fs-annahmen .btn, .fin-board .fs-goal-edit { padding: 2px 9px; font-size: var(--fs-meta); border-radius: var(--r-btn); }
.fin-board .btn.ghost { color: var(--dim); }
.fin-board :is(.pchip, .fv-chip, .fh-ins, .ff-pill) { border-radius: var(--r-chip); font-size: 12.5px; line-height: 1.35; }
.fin-board .pchip { padding: 3px 11px; }
.fin-board .fin-warn { border-radius: var(--r-m); }
.fin-board .empty { border-radius: var(--r-inner); font-size: var(--fs-sm); padding: 22px 12px; }
.fin-board .pb-tile.folded { border-radius: var(--r-card); }
.fin-board .pb-tile.folded > .pb-bar { padding: 14px 18px; }
.fin-board .pb-tile.folded > .pb-bar > .pb-name { font-size: 14px; letter-spacing: 0; }
@media (max-width: 760px) {
  .fin-board > .pb-tile > .panel { padding: 13px 12px 14px; gap: 12px; border-radius: var(--r-inner); }
  .fin-board .fs-card { padding: 12px; }
  .fin-head .btn { padding: 7px 11px; }
}
