/* WaldFund Verwaltung (admin.waldfund.com). Light, calm cards on a grey ground,
   as in the approved design (2026-10-22). No inline style attributes: the
   security policy forbids them; dynamic sizes are set through the CSSOM. */

:root {
  --ground: #ECEEF1;
  --card: #FFFFFF;
  --tile: #F4F6F8;
  --line: #EEF0F2;
  --track: #EEF0F2;
  --border: #DDE1E6;
  --ink: #101215;
  --ink-soft: #2A2F36;
  --muted: #5B616B;
  --faint: #6B717B;
  --lime: #9CCB3B;
  --lime-light: #B6DC64;
  --lime-soft: #F2F8E6;
  --lime-text: #2E5A0B;
  --lime-deep: #44612A;
  --yellow: #F4D35E;
  --orange: #F2A65A;
  --orange-strong: #E8892B;
  --orange-soft: #FDF0E1;
  --orange-text: #B45309;
  --sage: #6E8B74;
  --grey-bar: #C9CED5;
  --positive: #2E7D32;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --radius-card: 28px;
  --radius-tile: 18px;
  --font: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Inter Tight', Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45; }
[hidden] { display: none !important; }
a { color: var(--ink); }
a:hover { color: var(--lime-text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 13px; }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.positive { color: var(--positive); font-weight: 600; }
.warning-text { color: var(--orange-text); font-weight: 600; }
.danger-text { color: var(--danger); }

/* ── Shell ───────────────────────────────────────────────────────────── */
.shell { max-width: 1440px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.side { flex: 1 1 240px; max-width: 272px; }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.main:focus { outline: none; }
@media (max-width: 760px) {
  .shell { padding: 16px; gap: 16px; }
  .side { max-width: none; }
}

.sidebar { min-height: 860px; background: var(--card); border-radius: var(--radius-card); padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 760px) { .sidebar { min-height: 0; } }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 12px 24px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand-sub { font-size: 13px; color: var(--muted); }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 14px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.nav-link:hover { background: #F1F3F5; color: var(--ink); }
.nav-link[aria-current='page'] { background: var(--ink); color: #FFFFFF; }
.nav-link span.label { flex-grow: 1; }
.nav-section { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--faint); padding: 20px 14px 6px; }
.badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #E9F5D0; color: var(--lime-text); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.badge.attention { background: var(--orange); color: var(--ink); }
.nav-link[aria-current='page'] .badge { background: var(--ink-soft); color: #FFFFFF; }
.nav-link[aria-current='page'] .badge.attention { background: var(--orange); color: var(--ink); }
.side-spacer { flex-grow: 1; min-height: 24px; }
.launch-card { display: flex; flex-direction: column; gap: 8px; margin: 0 4px 12px; padding: 16px; border-radius: 20px; background: var(--tile); text-decoration: none; color: var(--ink); }
.launch-card:hover { color: var(--ink); background: #EEF1F4; }
.launch-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: var(--orange-strong); flex-shrink: 0; }
.dot.ok { background: #5BA319; }
.dot.warn { background: var(--orange-strong); }
.dot.bad { background: var(--danger); }
.nav-button { border: 0; background: transparent; width: 100%; text-align: left; }

/* ── Page head ───────────────────────────────────────────────────────── */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 8px 4px 0; }
.page-head .eyebrow { font-size: 14px; color: var(--muted); }
.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 40px; letter-spacing: -0.02em; line-height: 1.15; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 760px) { .page-head h1 { font-size: 32px; } }

.pill { height: 44px; padding: 0 18px; border: 0; border-radius: 22px; background: var(--card); font-size: 14px; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.pill.dark { background: var(--ink); color: #FFFFFF; }
.pill.soft { background: var(--tile); }
.pill.small { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 18px; }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill[aria-pressed='true'] { background: var(--ink); color: #FFFFFF; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 22px; background: var(--card); font-size: 14px; color: var(--ink-soft); }
.link-chip { font-size: 13px; font-weight: 500; text-decoration: none; padding: 8px 14px; border-radius: 16px; background: var(--tile); border: 0; color: var(--ink); white-space: nowrap; }
.link-chip:hover { background: #E9ECEF; }

/* ── Grids and cards ─────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid.kpis { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 1180px) { .span-2 { grid-column: auto; } }
@media (max-width: 760px) { .grid { gap: 16px; } }

.card { min-width: 0; background: var(--card); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.card.compact { padding: 24px 28px; gap: 6px; text-decoration: none; color: var(--ink); }
a.card:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--border) inset; }
.card.dark { background: var(--ink); color: #FFFFFF; }
.card.dark .muted, .card.dark .faint { color: #C3C8CF; }
.card.lime { background: var(--lime); }
.card.lime .muted { color: #1F3A08; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.stack.loose { gap: 14px; }
.column { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-head h2, .card h2 { font-size: 18px; font-weight: 600; }
.kpi-label { font-size: 14px; color: var(--muted); }
.kpi-number { font-family: var(--font-display); font-weight: 600; font-size: 44px; letter-spacing: -0.02em; line-height: 1.1; }
.kpi-number.medium { font-size: 40px; }
.hero-number { font-family: var(--font-display); font-weight: 600; font-size: 56px; letter-spacing: -0.03em; line-height: 1; }
.kpi-sub { font-size: 13px; color: var(--muted); }
.kpi-sub.positive { color: var(--positive); }
.baseline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: var(--tile); border-radius: var(--radius-tile); padding: 16px; min-width: 0; }
.tile .value { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.2; }
.tile .value.small-value { font-size: 18px; }
.tile .label { font-size: 13px; color: var(--muted); }
.tiles.three .tile { padding: 10px; text-align: center; border-radius: 14px; }

.rows { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row .value { font-weight: 600; text-align: right; }
.row .value.muted { font-weight: 400; color: var(--muted); }

.meter { display: flex; flex-direction: column; gap: 6px; }
.meter-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.meter-head .value { color: var(--muted); text-align: right; }
.track { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; display: flex; }
.track.thick { height: 10px; border-radius: 5px; }
.fill { border-radius: inherit; background: var(--lime); min-width: 4px; }
.fill.mittel { background: var(--yellow); }
.fill.hoch, .fill.kritisch { background: var(--orange-strong); }
.fill.cost { background: var(--orange); }

.banner { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-tile); background: var(--lime-soft); }
.banner .icon { width: 36px; height: 36px; border-radius: 18px; background: var(--lime); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.banner .title { font-weight: 600; font-size: 15px; }
.banner .text { font-size: 13px; color: var(--lime-deep); }
.banner.warn { background: var(--orange-soft); align-items: flex-start; }
.banner.warn .text { color: #7A4A12; }
.banner.bad { background: var(--danger-soft); align-items: flex-start; }
.banner.bad .text { color: #7A1F17; }
.banner .sev { width: 10px; height: 10px; margin-top: 6px; border-radius: 5px; flex-shrink: 0; background: var(--orange-strong); }
.banner.bad .sev { background: var(--danger); }

.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }

.seg-bar { display: flex; gap: 4px; height: 36px; }
.seg-bar.tall { height: 40px; }
.seg-bar span { border-radius: 10px; min-width: 6px; }
.seg-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.seg-list .item { display: flex; align-items: center; gap: 10px; }
.seg-list .item .name { flex-grow: 1; }
.seg-list .item .share { width: 48px; text-align: right; color: var(--muted); }
.seg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 24px; font-size: 14px; }

/* ── Charts ──────────────────────────────────────────────────────────── */
.chart { display: flex; flex-direction: column; gap: 8px; }
.chart-bars { height: 200px; display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid #E4E7EB; }
.chart-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 0 2px; border: 0; border-radius: 10px 10px 0 0; background: transparent; }
.chart-col[aria-pressed='true'] { background: var(--tile); }
.chart-col:hover { background: #F7F8FA; }
.chart-bar { width: 42%; max-width: 18px; border-radius: 6px 6px 2px 2px; background: var(--lime); }
.chart-bar.single { width: 70%; max-width: 28px; border-radius: 8px 8px 3px 3px; background: var(--ink); }
.chart-bar.second { background: var(--grey-bar); }
.chart-bar.zero { background: var(--track); }
.chart-col[aria-pressed='true'] .chart-bar.first:not(.zero) { background: repeating-linear-gradient(135deg, var(--lime) 0 6px, var(--lime-light) 6px 12px); }
.chart-col[aria-pressed='true'] .chart-bar.second:not(.zero) { background: var(--ink); }
.chart-labels { display: flex; gap: 8px; }
.chart-labels span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; }
@media (max-width: 760px) { .chart-labels span:nth-child(even) { visibility: hidden; } }
.inspect { background: var(--tile); border-radius: 14px; padding: 10px 14px; font-size: 13px; line-height: 1.5; min-width: 190px; }
.inspect .line { display: flex; justify-content: space-between; gap: 16px; }
.inspect .line span:last-child { font-weight: 600; }
.gauge { position: relative; display: flex; justify-content: center; padding-top: 8px; }
.gauge-text { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; }
.gauge-text .value { font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: -0.02em; }
.line-chart { width: 100%; height: auto; }
.line-chart .grid-line { stroke: var(--line); stroke-width: 1; }
.line-chart .axis { fill: var(--faint); font-size: 12px; font-family: var(--font); }
.line-chart .series-a { stroke: var(--orange-strong); fill: none; stroke-width: 3; }
.line-chart circle.series-a { fill: var(--orange-strong); stroke: #FFFFFF; stroke-width: 2; }
.line-chart .series-b { stroke: var(--lime); fill: none; stroke-width: 3; }
.line-chart circle.series-b { fill: var(--lime); stroke: #FFFFFF; stroke-width: 2; }

/* ── Tabs, lists, entries ────────────────────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; background: var(--card); padding: 6px; border-radius: 26px; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 20px; font-size: 14px; font-weight: 500; background: transparent; color: var(--ink-soft); }
.tab[aria-selected='true'] { background: var(--ink); color: #FFFFFF; }
.tab .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; background: var(--track); color: var(--muted); }
.tab[aria-selected='true'] .count { background: var(--ink-soft); color: #FFFFFF; }
.tab .count.attention { background: var(--orange); color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.entries { display: flex; flex-direction: column; gap: 16px; }
.entry { background: var(--card); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.entry-title { font-weight: 600; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; padding: 6px 10px; border-radius: 12px; background: var(--tile); color: var(--ink-soft); }
.chip.lime { background: #E9F5D0; color: var(--lime-text); font-weight: 600; }
.chip.orange { background: var(--orange-soft); color: var(--orange-text); font-weight: 600; }
.chip.red { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.entry-body { display: flex; gap: 16px; flex-wrap: wrap; }
.entry-body .text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.shot { width: 120px; flex-shrink: 0; border-radius: 16px; overflow: hidden; background: var(--tile); display: block; }
.shot img { width: 100%; height: auto; display: block; }
.assessment { font-size: 13px; line-height: 1.5; color: var(--muted); background: var(--tile); border-radius: 14px; padding: 12px; }
.assessment b { color: var(--ink); }
details summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.original { white-space: pre-wrap; font-size: 13px; color: var(--ink-soft); background: var(--tile); border-radius: 14px; padding: 12px; margin-top: 8px; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.photo-card { background: var(--card); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.photo-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--tile); }
.photo-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.input, .field input, .field select, .field textarea { height: 44px; border: 1px solid var(--border); border-radius: 14px; padding: 0 14px; font-size: 14px; color: var(--ink); background: #FFFFFF; width: 100%; }
.field textarea { height: auto; min-height: 72px; padding: 12px 14px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .form-grid { grid-template-columns: minmax(0, 1fr); } .tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.inline-form .field { min-width: 240px; flex: 1 1 240px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.status-line { font-size: 13px; color: var(--muted); min-height: 18px; }
.status-line.error { color: var(--danger); }

.switch { width: 48px; height: 28px; padding: 3px; border: 0; border-radius: 14px; display: inline-flex; justify-content: flex-start; background: var(--border); flex-shrink: 0; }
.switch[aria-checked='true'] { justify-content: flex-end; background: var(--lime); }
.switch .knob { width: 22px; height: 22px; border-radius: 11px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(16, 18, 21, .2); }

.table-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 500; padding: 10px 12px; white-space: nowrap; }
td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.wide { min-width: 720px; }
.avatar { width: 36px; height: 36px; border-radius: 18px; background: #E9F5D0; color: var(--lime-text); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.who { display: flex; align-items: center; gap: 10px; }

.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 0; border-radius: var(--radius-tile); background: var(--tile); text-align: left; color: var(--ink); width: 100%; }
.check-item[aria-checked='true'] { background: var(--lime-soft); }
.check-item .box { flex-shrink: 0; width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--grey-bar); display: flex; align-items: center; justify-content: center; }
.check-item[aria-checked='true'] .box { border: 0; background: var(--lime); }
.check-item .title { font-weight: 600; font-size: 14px; }
.check-item .detail { font-size: 12px; color: var(--muted); }
.check-item:disabled { opacity: 1; cursor: default; }
.mini-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.mini-list .item { display: flex; align-items: center; gap: 10px; }
.ring { width: 18px; height: 18px; border-radius: 9px; border: 2px solid var(--grey-bar); flex-shrink: 0; }
.ring.done { border: 0; background: var(--lime); }

.hatch { background: repeating-linear-gradient(135deg, #EEF0F2 0 8px, #F6F7F9 8px 16px); }
.ghost-chart { position: relative; height: 220px; display: flex; align-items: flex-end; gap: 12px; border-bottom: 1px solid #E4E7EB; }
.ghost-chart .bar { flex: 1 1 0; min-width: 0; border-radius: 10px 10px 4px 4px; }
.ghost-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; }
.ghost-note span { background: #FFFFFF; border-radius: 16px; padding: 12px 18px; font-size: 14px; color: var(--muted); box-shadow: 0 2px 12px rgba(16, 18, 21, .06); }
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.funnel .step { display: flex; flex-direction: column; gap: 10px; }
.funnel .pillar { height: 160px; border-radius: 18px; background: var(--tile); display: flex; align-items: flex-end; overflow: hidden; }
.funnel .pillar span { width: 100%; border-radius: 18px; background: var(--lime); }
.funnel .pillar span.hatched { background: repeating-linear-gradient(135deg, var(--lime) 0 8px, var(--lime-light) 8px 16px); }

/* ── States ──────────────────────────────────────────────────────────── */
.skeleton { border-radius: 12px; background: linear-gradient(90deg, #EEF0F2 0%, #F6F7F9 50%, #EEF0F2 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.skeleton.line { height: 14px; }
.skeleton.block { height: 160px; border-radius: var(--radius-card); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.error-card { background: var(--card); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ── Login ───────────────────────────────────────────────────────────── */
.login { min-height: 100vh; padding: 24px; display: flex; align-items: center; justify-content: center; }
.login-wrap { width: 100%; max-width: 1040px; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.login-brand { flex: 1 1 360px; min-height: 520px; background: var(--ink); color: #FFFFFF; border-radius: 32px; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.login-brand .mark { width: 44px; height: 44px; border-radius: 14px; background: #C5E86C; display: flex; align-items: center; justify-content: center; }
.login-brand h1 { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; }
.login-brand p { font-size: 15px; line-height: 1.6; color: #C3C8CF; max-width: 380px; }
.login-brand .chips span { padding: 8px 12px; border-radius: 14px; background: #1E2228; color: #C3C8CF; font-size: 13px; }
.login-form { flex: 1 1 360px; background: var(--card); border-radius: 32px; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.login-form h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.login-form .input { height: 52px; border-radius: 16px; font-size: 15px; padding: 0 16px; }
.login-form .code { height: 64px; font-family: var(--font-display); font-size: 30px; letter-spacing: .3em; text-align: center; border-radius: 18px; }
.login-form .primary { height: 52px; border: 0; border-radius: 26px; background: var(--ink); color: #FFFFFF; font-size: 15px; font-weight: 500; }
.login-form .secondary { height: 44px; border: 0; border-radius: 22px; background: var(--tile); font-size: 14px; }
.steps { display: flex; gap: 8px; }
.steps span { height: 6px; flex: 1 1 0; border-radius: 3px; background: #E4E7EB; }
.steps span.on { background: var(--ink); }
.qr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr img { width: 168px; height: 168px; border-radius: 16px; border: 1px solid var(--line); background: #FFFFFF; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--tile); border-radius: 12px; padding: 10px 12px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .login-brand { min-height: 0; padding: 28px; } .login-form { padding: 28px; } .login-brand h1 { font-size: 34px; } }
.login-brand .brand { padding: 0; }
.photo-missing { aspect-ratio: 1; }
/* Text on coloured cards keeps 4.5:1. */
.card.lime .kpi-label, .card.lime .kpi-sub { color: #1F3A08; }
.card.dark .row { border-color: #2A2F36; }
.card.dark .row .value.muted { color: #C3C8CF; }
.card.dark .status-pill { background: #2A2F36; color: #FFFFFF; }

/* Links that are figures: a tile or a row that leads to its details. */
a.tile { display: block; color: inherit; text-decoration: none; }
a.tile:hover { background: #E8EBEF; color: inherit; }
a.tile.attention .value { color: var(--warn-text, #B45309); }
a.link-row { display: flex; justify-content: space-between; gap: 12px; color: inherit; text-decoration: none; }
a.link-row:hover { color: var(--ink); background: var(--tile); }
a.chip { text-decoration: none; }

/* When the page last read its numbers; it reads them again every 30 seconds. */
.live-status { margin: 0 14px 10px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.live-status.stale { color: var(--warn-text, #B45309); }

/* Total costs: variable and fixed side by side, stacked on a phone. */
.cost-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.cost-head { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line, #EEF0F2); }
.cost-head .push { margin-left: auto; }
.stack.tight { gap: 2px; }
.fixed-row { display: grid; grid-template-columns: minmax(140px, 2fr) minmax(90px, 1fr) minmax(110px, 1fr) minmax(130px, 1fr) auto; gap: 8px; align-items: center; }
@media (max-width: 760px) { .fixed-row { grid-template-columns: 1fr 1fr; } }
