:root {
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --grid: #e4e7eb; /* validated chart palette (light) */
  --bg: #f3f4f6; --surface: #ffffff; --text: #111418; --muted: #5d6573; --line: #dde1e7;
  --accent: #0b5fff; --go: #12814a; --red: #d92d20; --amber: #b54708; --amber-bg: #fff4e5;
}
@media (prefers-color-scheme: dark) {
  :root { --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --grid: #2a313b; /* dark steps, validated */
    --bg: #0e1115; --surface: #181d24; --text: #eef1f5; --muted: #98a2b3; --line: #2a313b; --accent: #5b93ff; --go: #2fb872; --red: #ff6b5e; --amber: #f7a54a; --amber-bg: #3a2a12; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 8px 14px; min-height: 40px; }
button.go { background: var(--go); border-color: var(--go); color: #fff; font-weight: 700; }
button.ghost { background: transparent; }
button.big { font-size: 20px; font-weight: 700; padding: 14px 26px; min-height: 56px; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 28px 0 10px; }

.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand span { color: var(--muted); }
.conn { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--line); }
.conn.ok { background: color-mix(in srgb, var(--go) 18%, transparent); color: var(--go); }
.conn.bad { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button, .tabs a { border: 0; background: none; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.tabs [aria-selected="true"] { background: var(--bg); color: var(--text); }
.count { background: var(--red); color: #fff; border-radius: 99px; padding: 0 8px; font-size: 12px; }
.bar-actions { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.banner { padding: 10px 16px; background: var(--red); color: #fff; font-weight: 600; }
.banner.warn { background: var(--amber-bg); color: var(--amber); }

main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.list { display: grid; gap: 10px; }
.empty { color: var(--muted); }
.req { display: flex; gap: 16px; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 12px; padding: 14px 16px; }
.req.urgent { border-left-color: var(--red); }
.req.onway { border-left-color: var(--go); opacity: .85; }
.req-room { font-size: 22px; font-weight: 800; }
.req-item { font-size: 17px; font-weight: 600; }
.req-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; color: var(--muted); }
.age { font-variant-numeric: tabular-nums; font-weight: 700; }
.req-note { margin-top: 6px; font-style: italic; }
.thumb { margin-top: 8px; max-height: 90px; border-radius: 8px; border: 1px solid var(--line); }
.req-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--bg); color: var(--muted); margin-left: 4px; }
.tag.red { background: var(--red); color: #fff; }
.tag.amber { background: var(--amber-bg); color: var(--amber); }
.tag.onway, .tag.done { background: color-mix(in srgb, var(--go) 18%, transparent); color: var(--go); }
.done-row { display: grid; grid-template-columns: 110px 140px 1fr auto; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.done-row strong { color: var(--text); }
@media (max-width: 640px) {
  .req { flex-direction: column; align-items: stretch; }
  .done-row { grid-template-columns: 1fr 1fr; }
}

.filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filters input, .filters select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-height: 40px; }
.filters input { flex: 1; min-width: 200px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--muted); }
.tile .num { font-size: 30px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 56px; gap: 10px; align-items: center; }
.bar-track { background: var(--line); border-radius: 4px; height: 12px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--series-1); border-radius: 4px; }
.bar-n { text-align: right; font-variant-numeric: tabular-nums; }
ol.top li { margin-bottom: 4px; }

/* alerts: strips stacked along the bottom (owner, 2026-11-20: the full-screen alarm was too flashy).
   Red = urgent, orange = technical problem, blue = material. Urgent first, then oldest. New, unseen strips glow
   calmly in their own colour (urgent faster); the rest of the screen stays usable. */
.alert { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; padding: 10px 6px 6px; }
.alert-wrap { display: grid; gap: 8px; min-width: 0; }
.alert-top { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.alert-head { font-size: 13px; font-weight: 700; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.all-seen { min-height: 30px; padding: 3px 12px; font-size: 13px; font-weight: 700; border-radius: 99px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.alert-grid { display: grid; gap: 8px; }
.atile { --c: #c4540a; position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 4px 18px; align-items: center; min-width: 0;
  background: var(--c); color: #fff; border-radius: 14px; padding: 12px 14px 12px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.28);
  animation: slidein .45s cubic-bezier(.2, .8, .2, 1) both, glow 1.6s ease-in-out .5s infinite; }
.atile.urgent { --c: #d92d20; animation-duration: .45s, .9s; }
.atile.material { --c: #2f63b8; }
@keyframes slidein { from { transform: translateY(40px); opacity: 0; } }
@keyframes glow { 50% { box-shadow: 0 10px 30px rgba(0,0,0,.28), 0 0 0 8px color-mix(in srgb, var(--c) 40%, transparent); } }
@media (prefers-reduced-motion: reduce) { .atile { animation: none; } }
.atile-head { display: grid; justify-items: start; gap: 2px; }
.atile-n { background: #fff; color: #111; font-weight: 900; border-radius: 99px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: 13px; }
.alert-kind { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .95; }
.atile .age { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.atile-body { min-width: 0; }
.alert-room { font-size: 26px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.alert-item { font-size: 16px; font-weight: 600; }
.alert-who { font-size: 14px; opacity: .92; }
.alert-note { font-size: 14px; font-style: italic; opacity: .95; margin-top: 2px; overflow-wrap: anywhere; }
.alert-photo { display: block; max-height: 72px; max-width: 160px; margin-top: 6px; border-radius: 8px; border: 2px solid #fff; }
.alert-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.alert-actions button { min-height: 44px; font-weight: 700; border: 2px solid rgba(255,255,255,.75); background: transparent; color: #fff; }
.alert-actions button.go { background: #fff; color: #111; border-color: #fff; }
main { padding-bottom: calc(var(--strips-h, 0px) + 24px); } /* the strips never hide the last card */
@media (max-width: 640px) {
  .alert { left: 8px; right: 8px; bottom: 8px; }
  .atile { grid-template-columns: minmax(0, 1fr); }
  .atile-head { display: flex; gap: 10px; align-items: baseline; }
  .alert-actions { justify-content: stretch; } .alert-actions button { flex: 1; }
}

/* login */
body.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; width: 100%; max-width: 360px; display: grid; gap: 12px; }
.login-card h1 { margin: 0; }
.login-card p { margin: 0; color: var(--muted); }
.login-card label { display: grid; gap: 6px; font-weight: 600; }
.login-card input { font: inherit; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.login-card button { background: var(--accent); color: #fff; border: 0; font-weight: 700; }
.err { color: var(--red); }

button.danger { color: var(--red); border-color: var(--red); background: transparent; font-weight: 600; }
button.danger:disabled { opacity: .4; cursor: default; }
button.del { min-width: 40px; padding: 8px 10px; }
#hist td:first-child, #hist th:first-child { width: 32px; }
#hist input[type=checkbox] { width: 18px; height: 18px; }

/* manual cases */
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.tag.manual { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
dialog#addCase, dialog#solDlg, dialog#pushDlg { border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(460px, calc(100vw - 32px)); background: var(--surface); color: var(--text); }
dialog#addCase::backdrop, dialog#solDlg::backdrop, dialog#pushDlg::backdrop { background: rgba(0,0,0,.45); }
.ac-form { display: grid; gap: 12px; padding: 20px; }
.ac-form h2 { margin: 0; font-size: 20px; text-transform: none; letter-spacing: 0; color: var(--text); }
.ac-hint { margin: 0; color: var(--muted); font-size: 14px; }
.ac-form label { display: grid; gap: 4px; font-weight: 600; }
.ac-form select, .ac-form textarea { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-height: 40px; }
.ac-form .ac-check { display: flex; gap: 8px; align-items: center; }
.ac-status { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: grid; gap: 6px; }
.ac-status legend { font-weight: 600; padding: 0 4px; }
.ac-status label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.ac-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ac-actions button { white-space: nowrap; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-weight: 600; z-index: 30; }
#hist td.sol { min-width: 160px; }
#hist td.sol span { margin-right: 6px; }
button.edit { min-height: 30px; padding: 2px 8px; font-size: 14px; }

/* "kein Defekt" */
.ac-sub { font-weight: 400; color: var(--muted); font-size: 13px; }
.tag.nd { background: var(--bg); color: var(--muted); border: 1px dashed var(--muted); }
.bar-track { display: flex; }
.bar-fill.nd { background: var(--series-2); margin-left: 2px; } /* 2px surface gap between segments */
.bar-fill.mat { background: var(--series-3); margin-left: 2px; }
.bar-track > .bar-fill:first-child { margin-left: 0; }
.legend .key.mat { background: var(--series-3); }
.bar-n { white-space: nowrap; }
.nd-n { color: var(--muted); font-size: 13px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.legend-item { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; } /* marker never wraps away from its name */
.legend .key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.legend .key.real { background: var(--series-1); }
.legend .key.nd { background: var(--series-2); }

/* charts */
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 10px; margin-top: 16px; }
.chart-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.chart-head h2 { margin: 0 auto 0 0; }
.chart-head select { max-width: 100%; min-width: 0; font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-height: 36px; }
.chart { position: relative; }
.chart svg { display: block; overflow: visible; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; }
.chart .grid line.base { stroke: var(--muted); }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; cursor: default; outline: none; }
.chart .hit:focus-visible { stroke: var(--accent); stroke-width: 2; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.15); min-width: 160px; z-index: 2; }
.tip-title { font-weight: 700; margin-bottom: 4px; }
.tip-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; color: var(--muted); }
.tip-row strong { color: var(--text); font-variant-numeric: tabular-nums; }
.tip-row.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.tip-row .sw { width: 10px; height: 10px; border-radius: 3px; }
.chart-empty { position: absolute; inset: 0 0 26px 30px; display: grid; place-items: center; color: var(--muted); font-size: 14px; pointer-events: none; }
.chart-table summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0; }
.tl-table { font-size: 13px; margin-top: 6px; }
.tl-table td, .tl-table th { padding: 4px 8px; text-align: right; }
.tl-table td:first-child, .tl-table th:first-child { text-align: left; }

.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .end-label { fill: var(--text); font-size: 12px; }

/* phone push setup */
.push-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.push-topic { display: flex; gap: 8px; align-items: center; margin: 6px 0 2px; }
.push-topic code { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-size: 14px; overflow-wrap: anywhere; user-select: all; }
.push-qr summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.push-qr svg { width: 180px; height: auto; background: #fff; padding: 6px; border-radius: 8px; margin-top: 6px; }
.push-steps ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-weight: 400; }
dialog#pushDlg { max-height: calc(100vh - 32px); overflow-y: auto; }

/* off-duty switch: filled green dot while on duty, hollow amber ring while off (no emoji glyphs) */
button.duty { border-color: var(--go); color: var(--go); }
button.duty::before { content: '● '; }
button.duty.off { border-color: var(--amber); color: var(--amber); background: var(--amber-bg); }
button.duty.off::before { content: '○ '; }
.banner.duty-banner { background: var(--amber-bg); color: var(--amber); }

/* who asked (optional name or role from the guest) */
.alert-who { font-size: 20px; font-weight: 700; opacity: .95; }
.alert.multi .alert-who { font-size: 16px; }
.req-who { font-size: 13px; font-weight: 600; }
.hist-hint { margin: -4px 0 12px; }

/* settings: request catalog */
.cat-list { display: grid; gap: 8px; margin: 12px 0; }
.cat-row { display: grid; grid-template-columns: auto 56px 1fr 1fr auto auto auto; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.cat-row input:not([type=checkbox]), .cat-row select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-height: 40px; min-width: 0; }
.cat-row .cat-icon { display: grid; place-items: center; padding: 4px; cursor: pointer; }
.cat-row .cat-icon svg, .icon-pick svg { width: 24px; height: 24px; }
svg.i { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.with-icon { display: inline-flex; align-items: center; gap: 6px; }
.with-icon svg { width: 18px; height: 18px; flex: none; }
button.del svg { width: 18px; height: 18px; vertical-align: middle; }
.icon-dlg { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); max-width: 560px; }
.icon-dlg h3 { margin: 0 0 12px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.icon-pick { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; font: inherit; font-size: 12px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.icon-pick.on { border-color: var(--accent); outline: 2px solid var(--accent); }
.set-brand { display: grid; gap: 6px; font-size: 14px; }
.set-brand-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.set-brand label.color { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.set-brand input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; }
.cat-row.hidden-item { opacity: .6; }
.cat-row .cat-subs { grid-column: 2 / -1; font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-height: 40px; resize: vertical; }
.cat-move { display: flex; gap: 2px; }
.cat-vis { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
@media (max-width: 900px) {
  .cat-row { grid-template-columns: auto 56px 1fr; }
  .cat-row .cat-en, .cat-row select { grid-column: 2 / -1; }
  .cat-row .cat-vis { grid-column: 2; }
  .cat-row button.primary { grid-column: 3; justify-self: end; }
}
.cat-row button:disabled { opacity: .35; cursor: default; }

/* settings: rooms */
.room-list { display: grid; gap: 8px; margin: 12px 0; }
.room-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.room-row .room-name { flex: 1 1 180px; font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-height: 40px; min-width: 0; }
.room-row.paused { border-color: var(--amber); }
.room-row .room-label { flex: 1; font-weight: 600; }
.room-row button:disabled { opacity: .35; cursor: default; }
.room-add { display: flex; gap: 8px; flex-wrap: wrap; }
.room-add input { flex: 1 1 220px; font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-height: 40px; }
.room-archived { margin: 8px 0 20px; }
a.btn-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; }
.warn-box { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--amber-bg); color: var(--amber); }
#rotDlg input:not([type=radio]) { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-height: 40px; width: 100%; }

/* settings: general + push */
.set-form { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 12px 0 20px; }
.set-form label, .set-logo { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.set-form input:not([type=file]) { font: inherit; font-weight: 400; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-height: 40px; min-width: 0; }
.set-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.set-logo-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-weight: 400; }
.set-logo-row img { height: 40px; max-width: 240px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
.set-logo-row label.btn-link { cursor: pointer; }

/* sound still blocked by the browser: slim bar instead of a full-screen prompt */
.banner.sound-bar { cursor: pointer; }
.banner.sound-bar .sub { display: block; font-weight: 400; font-size: 13px; opacity: .9; }
#notifAsk { cursor: pointer; }

/* setup wizard (first start) */
.setup-card { max-width: 520px; }
.setup-card fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 8px; }
.setup-card textarea { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); width: 100%; }
.setup-card .ok { color: var(--go); font-weight: 600; }
.set-brand .set-label { font-weight: 600; }
button.edit svg { width: 16px; height: 16px; vertical-align: middle; }

/* ---------- backlog (follow-up work, 2026-11-21) ---------- */
.count.bl { background: var(--muted); }
.count.bl.stale { background: var(--amber); }
.bl-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.bl-head .ac-hint { flex: 1 1 280px; }
.req.bl { border-left-color: var(--muted); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.req.bl .req-actions { flex-wrap: nowrap; } /* own column: the buttons stay put when "Verlauf" opens */
@media (max-width: 640px) { .req.bl { grid-template-columns: minmax(0, 1fr); } .req.bl .req-actions { flex-wrap: wrap; } }
.req.bl.stale { border-left-color: var(--amber); }
.req.bl.bl-done { opacity: .75; border-left-color: var(--go); }
.bl-title { font-size: 18px; overflow-wrap: anywhere; }
.bl-room { color: var(--text); }
.tag.bl-part, .tag.bl-vendor { background: var(--amber-bg); color: var(--amber); }
.tag.bl-done { background: color-mix(in srgb, var(--go) 18%, transparent); color: var(--go); }
.bl-device { font-size: 13px; overflow-wrap: anywhere; }
.bl-log { margin-top: 8px; }
.bl-log summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.bl-log ol { margin: 6px 0; padding-left: 20px; display: grid; gap: 4px; }
.bl-log li { overflow-wrap: anywhere; }
.bl-when { color: var(--muted); font-size: 13px; }
.bl-note { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.bl-note-in { flex: 1 1 220px; min-width: 0; }
.bl-note-in, .bl-state, #blForm input, #blForm select, #blForm textarea, #solBlTitle, #acBlTitle { font: inherit; font-weight: 400; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-height: 40px; min-width: 0; }
.bl-done { margin-top: 16px; }
.bl-done summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.req-bl { margin-top: 6px; font-size: 14px; color: var(--amber); font-weight: 600; overflow-wrap: anywhere; }
.alert-bl { font-size: 14px; font-weight: 700; margin-top: 4px; overflow-wrap: anywhere; }
dialog#blDlg { border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--text); }
dialog#blDlg::backdrop { background: rgba(0,0,0,.45); }
#blForm .set-row { gap: 12px; }
.req.bl .req-meta > .tag:first-child { margin-left: 0; }
