:root {
  --green: #1F5C4A;
  --green-dark: #133F32;
  --gold: #D4A72C;
  --gold-dark: #9c7a1c;
  --bg: #f5f2ea;
  --surface: #ffffff;
  --surface-2: #eef2ef;
  --text: #1c2420;
  --text-muted: #5c665f;
  --border: #dfe4de;
  --placeholder: #b3452f;
  --sidebar-w: 230px;
  color-scheme: light dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121613; --surface: #1a201c; --surface-2: #212822;
    --text: #e9ede9; --text-muted: #9aa59d; --border: #2c352e; --placeholder: #e2846b;
  }
}
:root[data-theme="dark"] {
  --bg: #121613; --surface: #1a201c; --surface-2: #212822;
  --text: #e9ede9; --text-muted: #9aa59d; --border: #2c352e; --placeholder: #e2846b;
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Flama", "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }

/* Layout: sidebar + content */
.app { display: flex; min-height: 100vh; }
aside.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--green-dark); color: #fff;
  padding: calc(18px + env(safe-area-inset-top,0px)) 14px 18px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
aside.sidebar .brand { font-size: 12.5px; color: #bcd6cb; margin: 0 0 2px; letter-spacing: .02em; }
aside.sidebar .brand2 { font-size: 15.5px; font-weight: 800; margin: 0 0 22px; }
.tile {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: #eef5f1;
  padding: 13px 14px; border-radius: 12px; margin-bottom: 8px; cursor: pointer; font-size: 13.6px; font-weight: 600;
  transition: background .15s ease;
}
.tile .n { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink:0; }
.tile:hover { background: rgba(255,255,255,0.12); }
.tile.active { background: var(--gold); color: #2b2205; border-color: var(--gold); }
.tile.active .n { background: rgba(0,0,0,0.18); }

@media (max-width: 860px) {
  .app { flex-direction: column; }
  aside.sidebar { width: 100%; height: auto; position: sticky; top:0; z-index: 40;
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 12px; align-items:center; }
  aside.sidebar .brand, aside.sidebar .brand2 { display:none; }
  .tile { margin-bottom: 0; white-space: nowrap; }
}

main.content { flex: 1; min-width: 0; padding: 26px 30px 90px; max-width: 1180px; }
section.view { display: none; }
section.view.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from{opacity:0; transform:translateY(4px);} to{opacity:1; transform:none;} }

h1.page-title { font-size: 24px; margin: 0 0 4px; color: var(--green); font-weight: 800; }
p.page-sub { color: var(--text-muted); font-size: 14px; margin: 0 0 22px; max-width: none; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; margin-bottom: 22px; }
.card h2 { margin: 0 0 8px; font-size: 18.5px; color: var(--green); }
.card p.lead { color: var(--text-muted); font-size: 13.8px; margin: 0 0 12px; }

/* ---------- HERO / TITLE ---------- */
.hero {
  background: linear-gradient(120deg, var(--green-dark), var(--green) 60%, #2b7a61 100%);
  border-radius: 18px; padding: 34px 34px; display: flex; align-items: center; gap: 30px;
  color: #fff; margin-bottom: 26px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 20%, rgba(212,167,44,0.35), transparent 45%);
}
.hero .txt { flex: 1; position: relative; z-index: 1; }
.hero .eyebrow { font-size: 13px; color: #cfe8de; margin: 0 0 4px; }
.hero h1 { font-family: inherit; font-size: clamp(22px,3.4vw,32px); margin: 0 0 8px; font-weight: 800; }
.hero p.desc { color: #e3f1ea; font-size: 14px; max-width: none; margin: 0; }
.hero .plant { width: 150px; height: 150px; border-radius: 50%; border: 4px solid var(--gold);
  box-shadow: 0 8px 26px rgba(0,0,0,0.35); flex-shrink: 0; position: relative; z-index: 1; object-fit: cover; }
@media (max-width: 620px) { .hero { flex-direction: column; text-align:center; } .hero .plant{width:110px;height:110px;} }

/* ---------- VISION TAB ---------- */
.slides-grid { display: grid; gap: 18px; }
.slide-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.slide-card img { display:block; width: 100%; height: auto; }

/* ---------- WACHSTUM GRAPHIC ---------- */
.growth-heading { font-size: 15px; font-weight: 800; color: var(--green); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .03em; }
.growth-card { padding: 18px; }
.growth-card img { width: 100%; border-radius: 10px; display:block; }

/* ---------- KATALOG LEVEL BLOCKS ---------- */
.level-block { margin-bottom: 20px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.level-head { background: var(--gold); color: #2b2205; padding: 13px 18px; display: flex; align-items: center; gap: 12px; }
.level-head .lvl-title { font-weight: 800; font-size: 15.5px; }
.level-head .lvl-count { margin-left: auto; font-size: 12px; opacity: .8; white-space:nowrap; }
table.katalog { width: 100%; border-collapse: collapse; font-size: 13.2px; }
table.katalog th { text-align:left; background: var(--surface-2); color: var(--text-muted); font-size: 10.8px;
  text-transform: uppercase; letter-spacing:.04em; padding: 8px 12px; border-bottom: 1px solid var(--border); }
table.katalog td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.katalog tr:last-child td { border-bottom: none; }
table.katalog td.schritt { font-weight: 700; }
table.katalog input[type="date"], table.katalog input[type="text"] {
  width: 100%; border: 1px solid var(--border); border-radius: 7px; padding: 6px 8px; font-size: 12.6px;
  background: var(--bg); color: var(--text); font-family: inherit;
}
.muted { color: var(--text-muted); }

/* ---------- DIMENSIONS / WIE WIR LEITEN ---------- */
.dims-top { display: grid; grid-template-columns: 190px 1fr; gap: 26px; align-items: center; margin-bottom: 6px; }
.dims-top img { width: 100%; border-radius: 8px; }
.dims-top ul { list-style:none; margin:0; padding:0; }
.dims-top li { margin: 9px 0; font-size: 13.6px; }
.dims-top li b { color: var(--green); }
.dims-top li span.d { color: var(--text-muted); font-style: italic; display:block; font-size: 12px; margin-top:2px; }
@media (max-width: 700px) { .dims-top { grid-template-columns: 1fr; } }

.dim-block { border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-top: 14px; background: var(--surface-2); }
.dim-block h3 { margin: 0 0 10px; font-size: 15px; color: var(--green); }
.dim-block ol { margin: 0 0 12px; padding-left: 20px; }
.dim-block ol li { font-size: 13.4px; margin: 4px 0; }
.dim-block textarea {
  width: 100%; min-height: 64px; border: 1px solid var(--border); border-radius: 8px; padding: 10px;
  font-family: inherit; font-size: 13.2px; background: var(--surface); color: var(--text); resize: vertical;
}

/* ---------- ICF VISION PILLARS ---------- */
.vision-graphic { text-align:center; margin: 4px 0 16px; }
.vision-graphic img { width: 100%; max-width: 680px; border-radius: 10px; }
.pillars-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 12px; margin-top: 6px; }
.pillar-row { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface-2); }
.pillar-row b { display:block; font-size: 13.4px; color: var(--green); margin-bottom: 6px; }
.pillar-row input { width: 100%; border: 1px solid var(--border); border-radius: 7px; padding: 7px 9px; font-size: 12.6px;
  background: var(--surface); color: var(--text); font-family: inherit; }

/* ---------- FÜNFJAHRESPLAN ---------- */
.testi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.testi { text-align: center; }
.testi .ph {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 10px; background: var(--surface-2);
  border: 2px dashed var(--border); display:flex; align-items:center; justify-content:center;
  color: var(--text-muted); font-size: 11px; text-align:center; padding: 6px;
}
.testi blockquote { font-size: 12.8px; font-style: italic; color: var(--text-muted); margin: 0 0 6px; }
.testi .name { font-size: 12.3px; font-weight: 700; color: var(--green); }
@media (max-width: 700px) { .testi-row { grid-template-columns: 1fr; } }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.calc-field { display:flex; flex-direction:column; gap:6px; }
.calc-field label { font-size: 12.5px; color: var(--text-muted); font-weight:600; }
.calc-field input { padding: 9px 11px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 14px; }
@media (max-width:600px){ .calc-grid{grid-template-columns:1fr;} }

table.plan { width:100%; border-collapse: collapse; font-size: 13.4px; margin-top: 10px; }
table.plan th { background: var(--green); color:#fff; padding: 9px 12px; text-align:left; font-size: 11.5px; text-transform:uppercase; letter-spacing:.03em; }
table.plan td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
table.plan tr:last-child td { border-bottom:none; font-weight: 800; background: var(--surface-2); }

/* ---------- JÜNGERSCHAFTSSTRUKTUR ---------- */
.fs-toolbar { display:flex; gap:10px; align-items:center; margin-bottom: 12px; flex-wrap:wrap; }
.fs-toolbar input[type="search"] { flex:1; min-width:220px; padding: 11px 14px; border-radius:10px; border:1px solid var(--border);
  background: var(--surface); color: var(--text); font-size:14.5px; }
.fs-toolbar button.util { border:1px solid var(--border); background:var(--surface); color:var(--text);
  padding: 10px 14px; border-radius:10px; font-size:13.4px; cursor:pointer; }
.fs-toolbar button.util:hover { background: var(--surface-2); }
.fs-count { font-size:12.3px; color:var(--text-muted); margin: 0 0 14px; }
.fs-note { font-size: 12.5px; color: var(--gold-dark); background: #fbf1d8; border: 1px solid #eddca4; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
@media (prefers-color-scheme: dark) { .fs-note { background: #2c2712; border-color: #4a3f18; color: #e8c869; } }

#match-panel { display:none; border:1px solid var(--border); border-radius:12px; padding:16px 18px; margin-bottom:18px; background: var(--surface-2); }
#match-panel h3 { margin:0 0 10px; font-size:14.5px; color:var(--green); }
#match-panel .grp { margin-bottom:10px; }
#match-panel .grp .lbl { font-size:11.5px; text-transform:uppercase; letter-spacing:.03em; color:var(--text-muted); margin-bottom:4px; }
#match-panel .chip { display:inline-block; background: var(--surface); border:1px solid var(--border); border-radius: 999px; padding:4px 10px; font-size:12.4px; margin: 2px 4px 2px 0; }

ul.tree, ul.tree ul { list-style:none; margin:0; padding-left:0; }
ul.tree ul { padding-left: 22px; border-left: 1px dashed var(--border); margin-left: 9px; }
ul.tree li { margin: 3px 0; }
.node { display:flex; align-items:baseline; gap:10px; padding:7px 10px; border-radius:8px; background: var(--surface); border:1px solid var(--border); cursor: pointer; }
.node:hover { border-color: var(--gold); }
.node.root { background: var(--green); color:#fff; border-color: var(--green-dark); }
.node.l1 { background: var(--surface-2); font-weight:700; }
.node .name { font-weight:600; }
.node.root .name { font-weight:800; }
.node .role { color: var(--text-muted); font-size:12.3px; }
.node.root .role { color:#d8ece3; }
.node .id { margin-left:auto; font-size:10.3px; color:var(--text-muted); font-variant-numeric:tabular-nums; }
.node.root .id { color:#cfe8de; }
.ph-name { color: var(--placeholder); }
details > summary { cursor:pointer; list-style:none; }
details > summary::-webkit-details-marker { display:none; }
details > summary .twisty { display:inline-block; width:14px; transition: transform .15s ease; color: var(--text-muted); font-size:11px; }
details[open] > summary .twisty { transform: rotate(90deg); }
li.hidden { display:none; }

/* person catalog modal */
.modal-backdrop { display:none; position: fixed; inset:0; background: rgba(10,14,12,0.55); z-index: 100; align-items:flex-start; justify-content:center; padding: 40px 16px; overflow-y:auto; }
.modal-backdrop.open { display:flex; }
.modal { background: var(--surface); border-radius: 16px; max-width: 760px; width:100%; padding: 26px 28px; position:relative; }
.modal .close-x { position:absolute; top:14px; right:16px; border:none; background:var(--surface-2); width:30px; height:30px; border-radius:50%; cursor:pointer; font-size:15px; color: var(--text); }
.modal h2 { margin: 0 4px 4px; color: var(--green); }
.modal p.role { margin: 0 4px 18px; color: var(--text-muted); font-size:13.4px; }

/* ---------- POTENTIELLE LEITER ---------- */
.pl-toolbar { display:flex; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
.pl-toolbar select, .pl-toolbar input[type="search"] { padding:9px 12px; border-radius:9px; border:1px solid var(--border); background:var(--surface); color:var(--text); font-size:13.6px; }
.pl-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 14px; }
.pl-card { border:1px solid var(--border); border-radius:12px; padding: 14px 16px; background: var(--surface); }
.pl-card .nm { font-weight:800; font-size:14.5px; margin-bottom:2px; }
.pl-card .tel { font-size:12px; color: var(--text-muted); margin-bottom:8px; }
.pl-card .stat { display:flex; gap:5px; flex-wrap:wrap; margin-bottom:8px; }
.pl-badge { font-size:10.6px; padding:3px 8px; border-radius:999px; font-weight:700; }
.pl-badge.open { background:#eef2ef; color:#4b5a52; }
.pl-badge.declined { background:#fbe3df; color:#a8402a; }
.pl-badge.invited { background:#e6f0ea; color:#1F5C4A; }
.pl-badge.choose { background:#fdf3d6; color:#8a6a12; }
:root[data-theme="dark"] .pl-badge.open, @media (prefers-color-scheme: dark) { .pl-badge.open{background:#25302a;color:#b7c4bc;} .pl-badge.declined{background:#3c241f;color:#e2846b;} .pl-badge.invited{background:#1c332a;color:#8fd6b6;} .pl-badge.choose{background:#3a2f12;color:#e8c869;} }
.pl-card .bem { font-size:12.4px; color: var(--text-muted); border-top: 1px dashed var(--border); padding-top:8px; margin-top: 4px;}
.pl-card .zust { font-size:11.5px; color: var(--gold-dark); font-weight:700; }

/* ---------- ZAHLEN ---------- */
table.zahlen { width:100%; border-collapse: collapse; font-size: 13.2px; }
table.zahlen th { background: var(--green); color:#fff; padding: 8px 10px; font-size: 11px; text-transform: uppercase; }
table.zahlen td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align:center; }
table.zahlen td:first-child, table.zahlen th:first-child { text-align:left; font-weight:700; }
table.zahlen input { width: 52px; text-align:center; border:1px solid var(--border); border-radius:6px; padding:5px 3px; background:var(--bg); color:var(--text); font-size:12.6px; }
.zahlen-wrap { overflow-x:auto; }

footer.note { margin-top: 20px; color: var(--text-muted); font-size: 11.6px; }

/* ---------- Sidebar logo ---------- */
.sidebar-logo { background:#fff; border-radius: 10px; padding: 8px 10px; display:inline-block; margin-bottom: 14px; }
.sidebar-logo img { display:block; height: 20px; width:auto; }

/* ---------- Katalog tile distinct color ---------- */
.tile.katalog-tile { background: rgba(255,255,255,0.06); border: 1px dashed rgba(255,255,255,0.3); margin-top: 14px; }
.tile.katalog-tile.active { background: #4a4370; color: #fff; border-color: #4a4370; }
.tile.katalog-tile .n { background: rgba(255,255,255,0.14); }

/* ---------- Drag and drop rows (katalog) ---------- */
tr.kat-row { cursor: grab; }
tr.kat-row.dragging { opacity: .35; }
tr.kat-row td.drag-handle { width: 22px; color: var(--text-muted); cursor: grab; user-select:none; text-align:center; }
tr.kat-row.drop-target td { border-top: 2px solid var(--gold); }
button.row-del { border:none; background:transparent; color: var(--placeholder); cursor:pointer; font-size:15px; padding:2px 6px; }
button.row-add { border:1px dashed var(--border); background: var(--surface-2); color: var(--green); cursor:pointer;
  font-size:12.6px; padding: 8px 12px; border-radius: 8px; margin: 8px 0 0; }

/* ---------- Struktur drag and drop ---------- */
.node.drag-over { outline: 2px dashed var(--gold); outline-offset: 2px; }
.node.dragging-src { opacity: .4; }

/* ---------- Baptism droplet ---------- */
.drop-icon { display:inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); vertical-align: middle; }
.drop-icon.baptized { background: #6ec3e6; }
.drop-icon.prep { background: #e6a23c; }
.drop-icon.none { background: #d9564a; }

/* ---------- Integrieren tab ---------- */
.integ-toolbar { display:flex; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
.integ-toolbar select, .integ-toolbar input { padding:9px 12px; border-radius:9px; border:1px solid var(--border); background:var(--surface); color:var(--text); font-size:13.6px; }
.integ-row { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 12.8px; align-items:center; }
.integ-row.head { font-weight:800; font-size:11px; text-transform:uppercase; color:var(--text-muted); background:var(--surface-2); border-radius:8px 8px 0 0; }
.integ-row .step-tag { display:inline-block; background:#fbe3df; color:#a8402a; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:700; }
:root[data-theme="dark"] .integ-row .step-tag { background:#3c241f; color:#e2846b; }
.integ-row .upcoming span { display:inline-block; background: var(--surface-2); border:1px solid var(--border); border-radius:999px; padding:2px 7px; font-size:10.8px; margin:1px 3px 1px 0; }
@media (max-width: 780px) { .integ-row { grid-template-columns: 1fr; } }

/* ---------- Dark row for Disciple-Group Leader steps in Zahlen ---------- */
tr.zeile-dark td:first-child { background: #37403c; color: #fff; font-weight:700; }
:root[data-theme="dark"] tr.zeile-dark td:first-child { background: #0d1310; }
tr.zeile-dark td { background: #eef1ee; }

/* ---------- Zahlen: big stat tiles ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 6px; }
.stat-tile { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; border-radius: 14px;
  padding: 20px 22px; text-align:center; box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.stat-tile:nth-child(3) { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color:#2b2205; }
.stat-num { font-size: 40px; font-weight: 800; line-height:1; margin-bottom: 6px; }
.stat-label { font-size: 12.6px; opacity: .92; }
@media (max-width: 700px) { .stat-tiles { grid-template-columns: 1fr; } }


/* ---------- Gruppen-Grösse / freie Plätze ---------- */
.node.has-room { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 8px rgba(212,167,44,0.2); }
.grp-badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.grp-badge.ok { background: #e3f1ea; color: #1F5C4A; }
.grp-badge.room { background: #fbf1d8; color: #8a6a12; border: 1px solid var(--gold); }
.node.root .grp-badge { background: rgba(255,255,255,0.18); color: #fff; border: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .grp-badge.ok { background: #1c332a; color: #8fd6b6; }
  :root:not([data-theme="light"]) .grp-badge.room { background: #3a2f12; color: #e8c869; }
  :root:not([data-theme="light"]) .node.root .grp-badge { background: rgba(255,255,255,0.18); color: #fff; }
}
:root[data-theme="dark"] .grp-badge.ok { background: #1c332a; color: #8fd6b6; }
:root[data-theme="dark"] .grp-badge.room { background: #3a2f12; color: #e8c869; }
.grp-bar { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; font-size: 13px; color: var(--text-muted); }
.grp-bar input[type="number"] { width: 58px; padding: 5px 7px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.grp-swatch { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--gold); border-radius: 4px; vertical-align: middle; margin-right: 4px; }
.grp-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.grp-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; text-align: center; }
.grp-chip b { display: block; font-size: 24px; color: var(--green); line-height: 1.1; }
.grp-chip span { font-size: 11.5px; color: var(--text-muted); }
.grp-chip.gold { border: 1px solid var(--gold); }
.grp-chip.gold b { color: var(--gold-dark); }


/* ---------- Zahlen: Jahres-Aufklapper ---------- */
.prog-bar { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:12px; font-size:13px; color:var(--text-muted); }
.prog-bar select { padding:6px 9px; border-radius:8px; border:1px solid var(--border); background:var(--surface); color:var(--text); }
details.prog-year { border:1px solid var(--border); border-radius:10px; margin-bottom:10px; background:var(--surface); }
details.prog-year > summary { cursor:pointer; padding:10px 14px; font-weight:800; color:var(--green); }
details.prog-year[open] > summary { border-bottom:1px solid var(--border); }
details.prog-year .zahlen-wrap, details.prog-year > p { padding:10px 12px 12px; margin:0; }
.prog-count { font-weight:400; font-size:12px; color:var(--text-muted); margin-left:8px; }

/* ---------- Bar chart ---------- */
.chart-card svg text { font-family: inherit; fill: var(--text); }
.chart-legend { display:flex; gap:16px; font-size:12.4px; margin-top:8px; color: var(--text-muted); }
.chart-legend .sw { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:5px; vertical-align:middle; }
