/* ===========================================================================
   ElbConcept Aufgaben -- Gestaltung
   Hell, mobil zuerst. Ab 900px Breite wandert die Navigation nach links.
   =========================================================================== */

:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --surface-3: #eef2f5;
  --border: #e3e8ee;
  --border-strong: #cbd5e1;
  --text: #182230;
  --text-muted: #556274;
  --text-faint: #68748a;   /* 4.6:1 auf Weiss -- auch Kleintext bleibt lesbar */
  --accent: #0f766e;
  --accent-text: #ffffff;
  --accent-soft: #e0f2f0;
  --success: #15803d;
  --success-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --cleaning: #0369a1;
  --cleaning-soft: #e0f2fe;
  --repair: #c2410c;
  --repair-soft: #ffedd5;
  --other: #475569;
  --other-soft: #e2e8f0;
  --shadow: 0 1px 2px rgba(24, 34, 48, .05), 0 6px 20px rgba(24, 34, 48, .06);
  --shadow-lg: 0 16px 48px rgba(24, 34, 48, .22);
  --radius: 16px;
  --radius-sm: 11px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.35rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .6em; }
a { color: var(--accent); }
button { font: inherit; }

/* --- Laden ---------------------------------------------------------------- */
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--text-muted); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Grundlayout ---------------------------------------------------------- */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; padding-top: calc(10px + var(--safe-t));
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title .sub { font-size: .78rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 14px 14px calc(96px + var(--safe-b)); }

/* --- Navigation ----------------------------------------------------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); padding-bottom: var(--safe-b);
}
.tabbar a {
  flex: 1; display: grid; justify-items: center; gap: 2px;
  padding: 8px 2px 7px; font-size: .66rem; font-weight: 600;
  color: var(--text-faint); text-decoration: none;
}
.tabbar a svg { width: 23px; height: 23px; stroke-width: 1.8; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar .brand { display: none; }
.tabbar a.admin-only { display: none; }
.is-admin .tabbar a.admin-only { display: grid; }
@media (min-width: 900px) {
  .shell { flex-direction: row; }
  .tabbar {
    position: sticky; top: 0; bottom: auto; height: 100dvh; width: 230px; flex: 0 0 230px;
    flex-direction: column; gap: 3px; padding: 16px 10px; border-top: none; border-right: 1px solid var(--border);
  }
  .tabbar .brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; font-weight: 700; }
  .tabbar .brand img { width: 28px; height: 28px; border-radius: 8px; }
  .tabbar a { flex: 0 0 auto; grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .93rem; }
  .tabbar a[aria-current="page"] { background: var(--accent-soft); }
  .shell > .col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .main { padding: 24px 28px 48px; }
}

/* --- Schwebender Plus-Knopf ------------------------------------------------- */
.fab {
  position: fixed; right: 16px; bottom: calc(74px + var(--safe-b)); z-index: 35;
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 18px 0 14px; border-radius: 26px; border: none;
  background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: .95rem;
  box-shadow: 0 8px 24px rgba(15, 118, 110, .35); cursor: pointer;
}
.fab svg { width: 22px; height: 22px; stroke-width: 2.4; }
@media (min-width: 900px) { .fab { bottom: 28px; right: 28px; } }

/* --- Karten und Listen ------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
.card.tight { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { flex: 1; min-width: 0; }
.section-title { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin: 20px 4px 8px; display: flex; align-items: center; gap: 8px; }
.section-title:first-child { margin-top: 0; }
.section-title .count { background: var(--surface-3); color: var(--text-muted); border-radius: 999px; padding: 0 8px; font-size: .7rem; letter-spacing: 0; }
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border: none; border-bottom: 1px solid var(--border);
  background: none; text-align: left; color: inherit; cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: var(--surface-2); }
.list-item .body { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.list-item .meta { font-size: .78rem; color: var(--text-faint); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.list-item .meta svg { width: 13px; height: 13px; stroke-width: 2.2; vertical-align: -2px; }
.list-item .trail { flex: 0 0 auto; text-align: right; display: grid; gap: 4px; justify-items: end; }
.list-item.done .title { color: var(--text-faint); text-decoration: line-through; }
a.list-item { text-decoration: none; }
.empty { padding: 26px 16px; text-align: center; color: var(--text-faint); font-size: .92rem; }
.empty svg { width: 36px; height: 36px; stroke-width: 1.5; margin-bottom: 6px; color: var(--border-strong); }

/* --- Aufgaben-Kennzeichnung ------------------------------------------------- */
.kind-bar { width: 4px; align-self: stretch; border-radius: 2px; flex: 0 0 auto; }
.kind-cleaning { background: var(--cleaning); }
.kind-repair { background: var(--repair); }
.kind-other { background: var(--other); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; background: var(--surface-3); color: var(--text-muted); white-space: nowrap; line-height: 1.5; }
.chip svg { width: 12px; height: 12px; stroke-width: 2.4; }
.chip.cleaning { background: var(--cleaning-soft); color: var(--cleaning); }
.chip.repair { background: var(--repair-soft); color: var(--repair); }
.chip.other { background: var(--other-soft); color: var(--other); }
.chip.open { background: var(--surface-3); color: var(--text-muted); }
.chip.in_progress { background: var(--accent-soft); color: var(--accent); }
.chip.done { background: var(--success-soft); color: var(--success); }
.chip.cancelled { background: var(--danger-soft); color: var(--danger); }
.chip.overdue { background: var(--danger-soft); color: var(--danger); }
.chip.today { background: var(--warn-soft); color: var(--warn); }
.chip.running { background: var(--success-soft); color: var(--success); }
.chip.high { background: var(--danger-soft); color: var(--danger); }
.chip.prio-1 { background: var(--danger); color: #fff; }
.chip.prio-2 { background: var(--surface-3); color: var(--text-muted); }
.chip.prio-3 { background: transparent; color: var(--text-faint); box-shadow: inset 0 0 0 1px var(--border-strong); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; display: inline-block; }

/* --- Avatare -------------------------------------------------------------- */
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .76rem; font-weight: 700; color: #fff; flex: 0 0 auto; border: none; padding: 0; text-decoration: none; }
.avatar.sm { width: 26px; height: 26px; font-size: .64rem; }
.avatar.xs { width: 21px; height: 21px; font-size: .56rem; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { margin-left: -6px; border: 2px solid var(--surface); }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* --- Knoepfe -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: .93rem; cursor: pointer; text-decoration: none;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; stroke-width: 2.1; }
.btn-primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.btn-success { background: var(--success); color: #fff; border-color: transparent; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 56px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-sm { min-height: 34px; padding: 5px 11px; font-size: .84rem; }
.btn-icon { padding: 8px; min-height: 40px; width: 40px; }
.btn-icon svg { width: 20px; height: 20px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row.end { justify-content: flex-end; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: var(--radius-sm); padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; }
.seg button { border: none; background: transparent; color: var(--text-muted); padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: .85rem; white-space: nowrap; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* --- Formulare ------------------------------------------------------------ */
.field { margin-bottom: 12px; }
.field > label, .field-label { display: block; font-size: .8rem; font-weight: 650; color: var(--text-muted); margin-bottom: 5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], input[type="month"], input[type="search"], input[type="datetime-local"], select, textarea {
  width: 100%; padding: 10px 12px; min-height: 46px; font: inherit; font-size: 16px;
  color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); appearance: none;
}
textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b97a8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 34px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hint { font-size: .78rem; color: var(--text-faint); margin-top: 4px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; cursor: pointer; border-bottom: 1px solid var(--border); }
.check-row:last-of-type { border-bottom: none; }
.check-row input[type="checkbox"] { width: 24px; height: 24px; flex: 0 0 auto; accent-color: var(--accent); margin: 0; }
.check-row span { flex: 1; }
.check-row.done span { color: var(--text-faint); text-decoration: line-through; }
.people-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.people-pick button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: .86rem; cursor: pointer; color: var(--text); }
.people-pick button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-faint); stroke-width: 2; }
.search input { padding-left: 40px; }

/* --- Laufende Uhr ----------------------------------------------------------- */
.running-card { background: linear-gradient(140deg, #0f766e, #115e59); color: #fff; border: none; }
.running-card .where { font-size: 1.12rem; font-weight: 700; }
.running-card .since { opacity: .85; font-size: .84rem; }
.running-card .timer { font-size: 2.7rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin: 6px 0 4px; }
.running-card .btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }
.running-card .btn-primary { background: #fff; color: #0f766e; border-color: transparent; }
.running-card input { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }

/* --- Statistik ------------------------------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.stat .k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); }
.stat .v { font-size: 1.6rem; font-weight: 750; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat .s { font-size: .78rem; color: var(--text-faint); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--border); }
table.data th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); font-weight: 700; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: none; }
table.data tfoot td { font-weight: 700; border-top: 2px solid var(--border-strong); }
.table-wrap { overflow-x: auto; }
.bar { height: 7px; border-radius: 4px; background: var(--accent); min-width: 3px; }

/* --- Bogen (Modal) ---------------------------------------------------------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(24, 34, 48, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .16s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 94dvh; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: rise .22s cubic-bezier(.2,.8,.3,1); }
@keyframes rise { from { transform: translateY(28px); opacity: .6; } }
@media (min-width: 700px) { .sheet-backdrop { align-items: center; padding: 24px; } .sheet { border-radius: 20px; max-height: 90dvh; } }
.sheet > header { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--border); background: var(--surface); border-radius: 20px 20px 0 0; }
.sheet > header h2 { flex: 1; min-width: 0; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .sheet-body { padding: 16px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet .sheet-foot { display: flex; gap: 8px; padding: 12px 16px; padding-bottom: calc(12px + var(--safe-b)); border-top: 1px solid var(--border); background: var(--surface); }
.sheet .sheet-foot .btn { flex: 1; }
.sheet .sheet-foot .btn-icon { flex: 0 0 auto; }

/* --- Aufgabendetail ---------------------------------------------------------- */
.task-hero { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.task-hero h2 { font-size: 1.2rem; flex: 1; min-width: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; align-items: center; }
.kv dt { color: var(--text-faint); font-size: .8rem; font-weight: 650; }
.kv dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: none; }
.comment .body { flex: 1; min-width: 0; }
.comment .who { font-size: .78rem; color: var(--text-faint); display: flex; gap: 8px; }
.comment .text { white-space: pre-wrap; word-break: break-word; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.photo-tile { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.photo-tile .rm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(24,34,48,.7); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.photo-tile .rm svg { width: 14px; height: 14px; stroke-width: 2.4; }
.photo-add { display: grid; place-items: center; gap: 4px; aspect-ratio: 1; border-radius: var(--radius-sm); border: 2px dashed var(--border-strong); background: none; color: var(--text-faint); font-size: .72rem; font-weight: 650; cursor: pointer; }
.photo-add svg { width: 22px; height: 22px; stroke-width: 1.9; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10, 14, 20, .94); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.time-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.time-row:last-child { border-bottom: none; }
.time-row .body { flex: 1; min-width: 0; }
.time-row .dur { font-weight: 700; font-variant-numeric: tabular-nums; }
.time-row .faint { font-size: .78rem; }

/* --- Anmeldung ------------------------------------------------------------- */
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 28px 22px; }
.auth-card .logo { width: 56px; height: 56px; margin: 0 auto 14px; display: block; border-radius: 16px; }
.auth-card h1 { text-align: center; margin-bottom: 4px; }
.auth-card .lead { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; }
.alert { padding: 10px 12px; border-radius: var(--radius-sm); font-size: .86rem; margin-bottom: 12px; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-info { background: var(--accent-soft); color: var(--accent); }
.alert-ok { background: var(--success-soft); color: var(--success); }

/* --- Kurzmeldung ------------------------------------------------------------ */
.toast-root { position: fixed; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
@media (min-width: 900px) { .toast-root { bottom: 28px; } }
.toast { background: #182230; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: .87rem; font-weight: 600; box-shadow: var(--shadow-lg); animation: rise .18s ease; }
.toast.err { background: var(--danger); }

/* --- Tooltip (Erklaertext hinter einem kleinen i) ------------------------------ */
.tip { position: relative; display: inline-flex; align-items: center; vertical-align: middle; }
.tip-btn {
  width: 22px; height: 22px; border-radius: 50%; padding: 0; line-height: 1;
  border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text-muted);
  font: 700 .72rem/1 Georgia, "Times New Roman", serif; font-style: italic;
  display: inline-grid; place-items: center; cursor: help;
}
.tip-btn:hover, .tip.open .tip-btn { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.tip-text {
  position: absolute; z-index: 70; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: min(300px, 82vw);
  background: #182230; color: #fff; font-size: .8rem; font-weight: 500; line-height: 1.45; text-align: left;
  padding: 9px 11px; border-radius: 9px; box-shadow: var(--shadow-lg);
  visibility: hidden; opacity: 0; pointer-events: none; white-space: normal;
  transition: opacity .12s ease, visibility 0s linear .12s;
}
.tip-text.below { bottom: auto; top: calc(100% + 8px); }
/* sichtbar bei Maus-Hover, per Antippen (open) oder Tastaturfokus -- nicht nach einem Mausklick haengen bleiben */
.tip:hover .tip-text, .tip.open .tip-text, .tip:has(.tip-btn:focus-visible) .tip-text {
  visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s;
}
.label-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.label-row label { display: inline; margin: 0; font-size: .8rem; font-weight: 650; color: var(--text-muted); }

/* --- Kleinkram --------------------------------------------------------------- */
.spacer { flex: 1; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.mb0 { margin-bottom: 0; }
.hidden { display: none !important; }
.desc { white-space: pre-wrap; word-break: break-word; color: var(--text-muted); font-size: .93rem; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .86em; background: var(--surface-3); padding: 1px 5px; border-radius: 5px; }
.offline-banner { position: fixed; top: calc(var(--safe-t)); left: 0; right: 0; z-index: 100; background: var(--warn); color: #fff; text-align: center; font-size: .8rem; font-weight: 600; padding: 4px; }
