/* LOTSE112 Geräte – App-Styles. Dunkles Cockpit, 4 Farbschemas via [data-scheme] auf <html>.
   Status-Ampel (grün/gelb/rot) bleibt schema-übergreifend gleich. */
:root {
  --bg: #17191c; --elev: #202228; --elev2: #2a2d34; --line: #343841;
  --fg: #eceef1; --muted: #9aa1ac; --brand: #d8392e; --brand-rgb: 216,57,46;
  --ok: #33b06f; --warn: #e2b02f; --bad: #ef5a4d; --ext: #6a86c0;
  --radius: 18px; --safe-b: env(safe-area-inset-bottom, 0px);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --sh-1: 0 1px 2px rgba(0,0,0,.18), 0 10px 24px -14px rgba(0,0,0,.5);
  --sh-2: 0 2px 6px rgba(0,0,0,.2), 0 22px 48px -18px rgba(0,0,0,.6);
  --railbg: color-mix(in srgb, var(--bg) 82%, #000);   /* dunkles Cockpit: Schiene dunkler als Seite */
}
html[data-scheme="blaulicht"] { --bg: #121722; --elev: #1b2334; --elev2: #26314a; --line: #33415e; --fg: #eaf0f8; --muted: #93a0b8; --brand: #3f7bd4; --brand-rgb: 63,123,212; }
html[data-scheme="gruen"]     { --bg: #14201a; --elev: #1b2b24; --elev2: #223730; --line: #2c433a; --fg: #ecf4ef; --muted: #93a99e; --brand: #2e9560; --brand-rgb: 46,149,96; }
html[data-scheme="petrol"]    { --bg: #121a1a; --elev: #1b2828; --elev2: #243838; --line: #2f4747; --fg: #e9f2f1; --muted: #90a7a4; --brand: #0f9d8f; --brand-rgb: 15,157,143; }

:root { color-scheme: dark; }

/* Heller Modus. Ohne data-mode folgt die App automatisch der Systemeinstellung
   (wie LOTSE112 Einsatzleitung); "Hell"/"Dunkel" in den Einstellungen erzwingen ihn.
   Akzentfarbe bleibt jeweils vom Farbschema. */
html[data-mode="light"] {
  --bg: #f3f4f6; --elev: #ffffff; --elev2: #eceef1; --line: #d7dbe0;
  --fg: #191b1e; --muted: #64707d;
  --ok: #1c874f; --warn: #a9760a; --bad: #cf3a2b; --ext: #3d5fb0;
  --sh-1: 0 1px 2px rgba(20,24,31,.08), 0 8px 20px -14px rgba(20,24,31,.22);
  --sh-2: 0 2px 6px rgba(20,24,31,.1), 0 20px 44px -18px rgba(20,24,31,.28);
  --railbg: #ffffff;
  color-scheme: light;
}
html[data-mode="light"] .tag.r { color: #bf2618; background: rgba(207,58,43,.12); }
html[data-mode="light"] .tag.y { color: #8a6208; background: rgba(169,118,10,.15); }
html[data-mode="light"] .tag.g { color: #176c3f; background: rgba(28,135,79,.13); }
html[data-mode="light"] .tag.x { color: #33509b; background: rgba(61,95,176,.14); }
html[data-mode="light"] .tag.n { color: var(--muted); background: var(--elev2); }
html[data-mode="light"] .overlay { background: rgba(20,24,31,.32); }

@media (prefers-color-scheme: light) {
  html:not([data-mode="dark"]):not([data-mode="light"]) {
    --bg: #f3f4f6; --elev: #ffffff; --elev2: #eceef1; --line: #d7dbe0;
    --fg: #191b1e; --muted: #64707d;
    --ok: #1c874f; --warn: #a9760a; --bad: #cf3a2b; --ext: #3d5fb0;
    --sh-1: 0 1px 2px rgba(20,24,31,.08), 0 8px 20px -14px rgba(20,24,31,.22);
    --sh-2: 0 2px 6px rgba(20,24,31,.1), 0 20px 44px -18px rgba(20,24,31,.28);
    --railbg: #ffffff;
    color-scheme: light;
  }
  html:not([data-mode="dark"]):not([data-mode="light"]) .tag.r { color: #bf2618; background: rgba(207,58,43,.12); }
  html:not([data-mode="dark"]):not([data-mode="light"]) .tag.y { color: #8a6208; background: rgba(169,118,10,.15); }
  html:not([data-mode="dark"]):not([data-mode="light"]) .tag.g { color: #176c3f; background: rgba(28,135,79,.13); }
  html:not([data-mode="dark"]):not([data-mode="light"]) .tag.x { color: #33509b; background: rgba(61,95,176,.14); }
  html:not([data-mode="dark"]):not([data-mode="light"]) .tag.n { color: var(--muted); background: var(--elev2); }
  html:not([data-mode="dark"]):not([data-mode="light"]) .overlay { background: rgba(20,24,31,.32); }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--fg);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
sup { font-size: 0.6em; vertical-align: super; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ---- Splash (Aufbau/Choreografie wie LOTSE112 Einsatzleitung; Schwarzton = Geräte) ---- */
/* Splash ist immer dunkel (wie Einsatzleitung), unabhängig von Hell/Dunkel-Modus. */
#splash {
  position: fixed; inset: 0; z-index: 100;
  background: #17191c; color: #eceef1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: opacity .45s; text-align: center; padding: 20px;
}
#splash.out { opacity: 0; pointer-events: none; }
#splash .strip { display: flex; gap: 6px; margin-bottom: 36px; }
#splash .strip span { width: 34px; height: 6px; border-radius: 3px; }
#splash .mark {
  width: 92px; height: 92px; border-radius: 22px; background: var(--brand); color: #fff;
  display: grid; place-items: center; margin-bottom: 24px;
  box-shadow: 0 10px 40px rgba(var(--brand-rgb), .35);
}
#splash .mark svg { width: 56px; height: 56px; }
#splash h1 {
  margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: .06em; line-height: 1.05;
}
#splash h1 .wm-a, #splash h1 .wm-b { display: inline-block; }
#splash h1 .wm-a { color: var(--brand); }
#splash h1 .wm-b { color: #eceef1; }
#splash .tag { color: #9aa1ac; font-size: .85rem; letter-spacing: .24em; text-transform: uppercase; margin-top: 10px; }
#splash .ug {
  margin-top: 26px; border: 1.5px solid #343841; border-radius: 999px;
  padding: 10px 26px; font-weight: 750; font-size: .95rem; letter-spacing: .3em;
  text-transform: uppercase; color: #eceef1; background: rgba(255, 255, 255, .02);
  position: relative; overflow: hidden;
}
#splash .copy { color: #6f7681; font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-top: 16px; }
#splash .load { width: min(260px, 60vw); height: 4px; border-radius: 2px; background: #343841; margin-top: 44px; overflow: hidden; }
#splash .load i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 2px; animation: splashload 5s linear forwards; }
@keyframes splashload { to { width: 100%; } }
#splash .skip { color: #6f7681; font-size: .78rem; margin-top: 14px; }

/* Choreografie: „LOTSE" fliegt von links, „112" von rechts ein – Puls beim Zusammentreffen */
@keyframes splash-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
#splash .strip { animation: splash-in .5s ease-out both; }
#splash .mark { animation: splash-in .55s .1s ease-out both; }
@keyframes wm-a-in { 0% { opacity: 0; transform: translateX(-110px); filter: blur(3px); } 70% { opacity: 1; transform: translateX(8px); filter: blur(0); } 100% { opacity: 1; transform: none; } }
@keyframes wm-b-in { 0% { opacity: 0; transform: translateX(110px); filter: blur(3px); } 70% { opacity: 1; transform: translateX(-8px); filter: blur(0); } 100% { opacity: 1; transform: none; } }
@keyframes join-pulse { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.06); } }
#splash h1 .wm-a { animation: wm-a-in .75s .35s cubic-bezier(.2, .8, .3, 1) both; }
#splash h1 .wm-b { animation: wm-b-in .75s .35s cubic-bezier(.2, .8, .3, 1) both; }
#splash h1 { animation: join-pulse .32s 1.08s ease; }
#splash .tag { animation: splash-in .55s 1.2s ease-out both; }
#splash .copy { animation: splash-in .6s 1.5s ease-out both; }
#splash .load, #splash .skip { animation: splash-in .6s 1.7s ease-out both; }
@keyframes ug-in { 0% { opacity: 0; letter-spacing: 1em; transform: translateY(12px) scale(.96); filter: blur(4px); } 55% { opacity: 1; filter: blur(0); } 100% { opacity: 1; letter-spacing: .3em; transform: none; } }
@keyframes ug-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0); border-color: var(--line); } 50% { box-shadow: 0 0 26px 3px rgba(var(--brand-rgb), .4); border-color: var(--brand); } }
#splash .ug { animation: ug-in 1s 1.35s cubic-bezier(.2, .7, .2, 1) both, ug-glow 2.2s 2.5s ease-in-out 2; }
#splash .ug::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .22) 50%, transparent 68%); transform: translateX(-130%); animation: ug-sheen 1.1s 2.45s ease both; }
@keyframes ug-sheen { to { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) {
  #splash .load i { animation: none; width: 100%; }
  #splash .strip, #splash .mark, #splash h1, #splash h1 .wm-a, #splash h1 .wm-b,
  #splash .tag, #splash .load, #splash .skip, #splash .ug, #splash .copy { animation: none; }
  #splash .ug::after { animation: none; }
}

/* ---- App shell ---- */
#app { min-height: 100vh; display: flex; }
.rail { display: none; }
.hdbrand { display: none; }
[data-act="splash"] { cursor: pointer; }
.mainpane { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 11px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar .back { width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line); background: var(--elev); color: var(--fg); display: none; place-items: center; cursor: pointer; flex: none; }
.topbar .back svg { width: 17px; height: 17px; }
.brandmark { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); display: grid; place-items: center; flex: none; }
.brandmark svg { width: 22px; height: 22px; }
.topbar h1 { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 1.28rem; margin: 0; flex: 1; letter-spacing: .02em; }
.topbar h1 .sub { display: block; font-family: "Barlow"; font-weight: 500; font-size: .7rem; color: var(--muted); }
.iconbtn { width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line); background: var(--elev); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn:hover { color: var(--fg); }
.iconbtn.on { color: var(--brand); border-color: var(--brand); background: rgba(var(--brand-rgb), .12); }
.userchip { display: inline-flex; align-items: center; gap: 8px; background: var(--elev); border: 1px solid var(--line); border-radius: 999px; padding: 4px 5px; cursor: pointer; flex: none; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 50%, #000)); display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; font-family: "Barlow Semi Condensed"; flex: none; }
.userchip .un { font-size: .72rem; font-weight: 600; padding-right: 4px; display: none; }

#view { flex: 1; padding: 16px; padding-bottom: calc(100px + var(--safe-b)); max-width: 960px; width: 100%; margin: 0 auto; }
.foot { color: var(--muted); font-size: .72rem; text-align: center; padding: 10px 16px calc(14px + var(--safe-b)); }

/* ---- Ampel ---- */
.ampel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 4px 0; }
.amp { border-radius: var(--radius); padding: 15px 10px 13px; text-align: center; background: var(--elev); border: 1px solid var(--line); position: relative; overflow: hidden; cursor: pointer; }
.amp::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.amp.r::before { background: var(--bad); } .amp.y::before { background: var(--warn); } .amp.g::before { background: var(--ok); }
.amp .n { font-family: "Barlow Semi Condensed"; font-weight: 700; font-size: 2.1rem; line-height: 1; }
.amp.r .n { color: var(--bad); } .amp.y .n { color: var(--warn); } .amp.g .n { color: var(--ok); }
.amp .l { color: var(--muted); font-size: .72rem; margin-top: 5px; font-weight: 500; }

.sectlabel { font-family: "Barlow Semi Condensed"; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--muted); margin: 22px 3px 9px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sectlabel a { color: var(--brand); text-decoration: none; font-family: "Barlow"; letter-spacing: 0; text-transform: none; font-weight: 600; font-size: .78rem; cursor: pointer; }

/* ---- Rows ---- */
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; background: var(--elev); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; position: relative; overflow: hidden; }
.row:hover { border-color: color-mix(in srgb, var(--line) 60%, var(--fg)); }
.row .stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.row.r .stripe { background: var(--bad); } .row.y .stripe { background: var(--warn); } .row.g .stripe { background: var(--ok); } .row.x .stripe { background: var(--ext); } .row.n .stripe { background: var(--muted); }
.row .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--elev2); display: grid; place-items: center; flex: none; color: var(--muted); }
.row .ic svg { width: 21px; height: 21px; }
.row .mid { flex: 1; min-width: 0; }
.row .t { font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.row .s { font-size: .76rem; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row .chev { color: var(--muted); flex: none; } .row .chev svg { width: 18px; height: 18px; display: block; }
.row .col { display: none; font-size: .8rem; color: var(--muted); flex: none; }

.tag { font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; letter-spacing: .02em; text-transform: uppercase; font-family: "Barlow Semi Condensed"; white-space: nowrap; }
.tag.r { color: #ffd9d6; background: rgba(239,90,77,.18); } .tag.y { color: #f6e3b0; background: rgba(226,176,47,.16); }
.tag.g { color: #b9ecd2; background: rgba(51,176,111,.16); } .tag.n { color: var(--muted); background: var(--elev2); }
.tag.x { color: #cfd7f5; background: rgba(106,134,192,.2); }

.card { background: var(--elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; }
.empty { color: var(--muted); text-align: center; padding: 26px 12px; font-size: .9rem; line-height: 1.5; }
.infoline { font-size: .8rem; color: var(--muted); line-height: 1.5; margin: 3px 0; display: flex; gap: 8px; }
.infoline svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--brand); }
.infoline b { color: var(--fg); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font: inherit; font-weight: 600; font-size: .96rem; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--elev); color: var(--fg); cursor: pointer; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); border-color: rgba(239,90,77,.4); }
.btn.small { width: auto; font-size: .82rem; padding: 8px 12px; }
.btn svg { width: 18px; height: 18px; }
.btn.small svg { width: 15px; height: 15px; }
.btn:active { transform: scale(.99); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn:focus-visible, .row:focus-visible, .amp:focus-visible, .chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; }
.field label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-family: "Barlow Semi Condensed"; font-weight: 700; }
.field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--fg); font: inherit; font-size: .92rem; padding: 10px 12px; width: 100%; }
.field textarea { resize: vertical; min-height: 60px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field .hint, .hint { font-size: .72rem; color: var(--muted); line-height: 1.4; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field.two > div { display: flex; flex-direction: column; gap: 5px; }

.chips { display: flex; gap: 7px; overflow-x: auto; padding: 4px 0 10px; }
.chips::-webkit-scrollbar { height: 0; }
.chip { flex: none; font: inherit; font-size: .78rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; cursor: pointer; background: var(--elev); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.on { background: rgba(var(--brand-rgb), .16); border-color: var(--brand); color: var(--fg); }

/* ---- Detail / device head ---- */
.devhead { background: var(--elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; display: flex; gap: 13px; align-items: center; }
.devhead .di { width: 46px; height: 46px; border-radius: 12px; background: rgba(var(--brand-rgb), .16); color: var(--brand); display: grid; place-items: center; flex: none; }
.devhead .di svg { width: 25px; height: 25px; }
.devhead .dt { font-family: "Barlow Semi Condensed"; font-weight: 700; font-size: 1.15rem; }
.devhead .dm { font-size: .76rem; color: var(--muted); margin-top: 2px; }

.prueferline { display: flex; align-items: center; gap: 10px; background: var(--elev); border: 1px solid var(--line); border-radius: 13px; padding: 10px 13px; margin-bottom: 10px; }
.prueferline .k { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-family: "Barlow Semi Condensed"; font-weight: 700; }
.prueferline .nm { font-weight: 600; font-size: .92rem; }
.prueferline select { margin-left: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; color: var(--fg); font: inherit; font-size: .85rem; padding: 6px 8px; }

/* ---- Prüf-Flow ---- */
.progress { display: flex; align-items: center; gap: 10px; margin: 15px 3px 12px; }
.progress .bar { flex: 1; height: 7px; background: var(--elev2); border-radius: 99px; overflow: hidden; }
.progress .fill { height: 100%; width: 0; background: var(--ok); border-radius: 99px; transition: width .3s ease; }
.progress .txt { font-size: .76rem; color: var(--muted); font-weight: 600; font-family: "IBM Plex Mono"; }
.crit { background: var(--elev); border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; margin-bottom: 9px; }
.crit.ok { border-color: rgba(51,176,111,.5); } .crit.bad { border-color: rgba(239,90,77,.55); }
.crit .ctxt { font-size: .91rem; line-height: 1.35; }
.crit .cnorm { font-size: .7rem; color: var(--muted); margin-top: 3px; }
.seg { display: flex; gap: 6px; margin-top: 11px; }
.seg button { flex: 1; font: inherit; font-weight: 600; font-size: .82rem; padding: 9px; border-radius: 10px; cursor: pointer; background: var(--elev2); border: 1px solid var(--line); color: var(--muted); }
.seg button.okbtn.sel { background: rgba(51,176,111,.9); border-color: var(--ok); color: #06140d; }
.seg button.badbtn.sel { background: rgba(239,90,77,.92); border-color: var(--bad); color: #1a0605; }
.seg.modeseg button.on { background: rgba(var(--brand-rgb), .14); border-color: var(--brand); color: var(--brand); }
.mangelbox { margin-top: 11px; display: none; }
.crit.bad .mangelbox { display: block; }
.fotorow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 9px; }
.fotothumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.fotothumbs .fotodel { color: var(--brand); font-weight: 600; font-size: .78rem; cursor: pointer; }
.camov { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; }
.camview { flex: 1; width: 100%; min-height: 0; object-fit: cover; background: #000; }
.cambar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 26px calc(20px + var(--safe-b)); background: #000; }
.camshot { width: 66px; height: 66px; border-radius: 50%; background: #fff; border: 4px solid rgba(255,255,255,.4); cursor: pointer; flex: none; }
.camshot:active { transform: scale(.92); }
.cambtn { background: none; border: none; color: #fff; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; padding: 8px; opacity: .92; min-width: 64px; }
.camhint { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: #fff; font-size: .92rem; padding: 0 26px; pointer-events: none; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.scanov .camhint { top: auto; bottom: calc(120px + var(--safe-b)); transform: none; }
.scanframe { position: absolute; left: 50%; top: 44%; transform: translate(-50%,-50%); width: min(78vw, 340px); height: 120px; border: 2px solid rgba(255,255,255,.9); border-radius: 12px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); pointer-events: none; }
.scanframe::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.fotothumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; background: var(--elev2); }
.mgl-liste { margin: 4px 0 0; padding-left: 18px; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.mess { margin-top: 11px; display: flex; align-items: center; gap: 9px; }
.mess input { width: 100px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--fg); font: inherit; font-family: "IBM Plex Mono"; font-size: .92rem; padding: 8px 10px; text-align: right; }
.mess .unit { color: var(--muted); font-size: .86rem; font-family: "IBM Plex Mono"; }
.mess .soll { margin-left: auto; font-size: .72rem; color: var(--muted); }
.signpad { height: 74px; border: 1px dashed var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--muted); font-size: .82rem; margin-top: 6px; font-style: italic; }
.sigwrap { position: relative; margin-top: 6px; }
.sigpad { width: 100%; height: 140px; display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; touch-action: none; cursor: crosshair; box-shadow: var(--sh-1); }
.sighint { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: #9a9a9a; font-size: .8rem; font-style: italic; pointer-events: none; }
.sigthumb { display: block; margin-top: 8px; max-height: 46px; max-width: 200px; background: #fff; border-radius: 6px; padding: 3px 6px; }
.nwsign { display: none; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 11px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: .82rem; cursor: pointer; }
.nwsign svg { width: 20px; height: 20px; flex: none; }
.crit.ok .nwsign { display: flex; }
.nwsign.signed { border-style: solid; border-color: var(--ok); color: var(--ok); }
.rp-tbl td .rp-sigmini { max-height: 34px; max-width: 130px; background: #fff; }

/* ---- History timeline ---- */
.tl { position: relative; margin-left: 6px; padding-left: 22px; border-left: 2px solid var(--line); }
.tlitem { position: relative; padding-bottom: 16px; }
.tlitem .av { position: absolute; left: -34px; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; font-size: .6rem; font-weight: 700; color: #06140d; border: 2px solid var(--bg); }
.tlitem.bad .av { background: var(--warn); color: #1a0605; }
.tlitem.fix .av { background: var(--ok); color: #06140d; }
.tlitem.fix .av svg { width: 13px; height: 13px; }
.tlitem .d { font-family: "IBM Plex Mono"; font-size: .73rem; color: var(--muted); }
.tlitem .h { font-weight: 600; font-size: .92rem; margin: 2px 0; } .tlitem .m { font-size: .8rem; color: var(--muted); }
.tlitem .who { color: var(--fg); font-weight: 600; }

.bigpruef { margin: 14px 0 4px; padding: 15px 16px; font-size: 1.02rem; border-radius: 14px; box-shadow: 0 10px 26px -12px rgba(var(--brand-rgb), .7); }
.bigpruef svg { width: 20px; height: 20px; }
.crumb { display: flex; align-items: center; gap: 7px; font-size: .84rem; margin: -2px 0 14px; flex-wrap: wrap; }
.crumb a { color: var(--brand); font-weight: 600; cursor: pointer; }
.crumb a::before { content: "‹ "; }
.crumb .sep { color: var(--muted); }
.crumb .cur { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- bottom nav ---- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--bg); border-top: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-around; padding: 8px 4px calc(6px + var(--safe-b)); }
.nav button { background: none; border: none; color: var(--muted); font: inherit; font-size: .58rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; padding: 4px 2px; flex: 1 1 0; min-width: 0; }
.nav button svg { width: 21px; height: 21px; } .nav button.on { color: var(--brand); }
.navbadge { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .62rem; font-weight: 700; line-height: 1; }
.navbadge[hidden] { display: none; }
.nav button.navm-badge { position: relative; }
.nav button .navbadge { position: absolute; top: 2px; left: 50%; margin-left: 4px; }

/* ---- Modal / sheet ---- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 60; display: none; align-items: flex-end; }
.overlay.show { display: flex; }
.sheet { width: 100%; max-width: 640px; margin: 0 auto; background: var(--elev); border-radius: 24px 24px 0 0; padding: 22px 18px calc(26px + var(--safe-b)); border-top: 1px solid var(--line); max-height: 92vh; overflow-y: auto; }
.sheet.center { border-radius: 24px; margin: auto; text-align: center; }
.overlay.center { align-items: center; padding: 16px; }
#confirm { z-index: 80; }
#confirm .sheet { max-width: 400px; }
#confirm p { color: var(--muted); margin: 0 0 4px; line-height: 1.45; font-size: .92rem; }
.sheet h3 { font-family: "Barlow Semi Condensed"; font-weight: 700; font-size: 1.3rem; margin: 0 0 12px; }
/* Rechtstexte im Dialog */
.rechts-kurz p { margin: 0 0 10px; font-size: .92rem; line-height: 1.5; }
.rechts-kurz p:last-child { margin-bottom: 0; }
.rechts-scroll { max-height: 56vh; overflow-y: auto; margin: 0 -4px 4px; padding: 0 4px; color: var(--muted); font-size: .86rem; line-height: 1.55; -webkit-overflow-scrolling: touch; }
.rechts-scroll h4 { font-size: .9rem; font-weight: 700; color: var(--fg); margin: 14px 0 4px; }
.rechts-scroll h4:first-child { margin-top: 0; }
.rechts-scroll p { margin: 0 0 8px; }
.rechts-scroll ul { margin: 0 0 8px; padding-left: 20px; }
.rechts-scroll li { margin: 3px 0; }
.rechts-scroll a { color: var(--brand); }
.sheet .big { width: 64px; height: 64px; border-radius: 50%; background: rgba(51,176,111,.16); color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.sheet .big svg { width: 33px; height: 33px; }
.sheet .acts { display: grid; gap: 9px; margin-top: 14px; }

/* ---- Segment-Umschalter (Liste/Kalender) ---- */
.segbar { display: flex; gap: 4px; background: var(--elev2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; margin-bottom: 12px; }
.segbar button { flex: 1; font: inherit; font-weight: 600; font-size: .85rem; padding: 8px; border-radius: 8px; border: none; background: none; color: var(--muted); cursor: pointer; }
.segbar button.on { background: var(--brand); color: #fff; }

/* ---- Kalender ---- */
.calbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.calbar button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--elev); color: var(--fg); font-size: 1.1rem; cursor: pointer; flex: none; }
.calbar .calm { font-family: "Barlow Semi Condensed"; font-weight: 700; font-size: 1.1rem; flex: 1; text-align: center; }
.calbar .calheute { width: auto; padding: 0 12px; font-size: .8rem; font-weight: 600; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 560px; }
.calwd { text-align: center; font-size: .68rem; font-weight: 700; color: var(--muted); padding: 4px 0; text-transform: uppercase; letter-spacing: .04em; }
.calcell { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 9px; background: var(--elev); padding: 5px 6px; display: flex; flex-direction: column; }
.calcell.empty { border: none; background: none; }
.calcell.has { cursor: pointer; }
.calcell .cald { font-size: .78rem; font-weight: 600; color: var(--muted); }
.calcell.has .cald { color: var(--fg); }
.calcell .caln { margin-top: auto; align-self: flex-start; font-size: .68rem; font-weight: 700; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.calcell.has.r { border-color: rgba(239,90,77,.55); } .calcell.has.r .caln { background: var(--bad); color: #1a0605; }
.calcell.has.y { border-color: rgba(226,176,47,.5); } .calcell.has.y .caln { background: var(--warn); color: #1a0605; }
.calcell.has.g .caln { background: var(--elev2); color: var(--muted); }
.calcell.today { outline: 2px solid var(--brand); outline-offset: -1px; }
.calcell.sel { background: rgba(var(--brand-rgb), .14); }

.schemepick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sch { cursor: pointer; border: 2px solid var(--line); border-radius: 12px; padding: 8px; background: var(--elev); text-align: center; }
.sch.on { border-color: var(--brand); }
.sch .sw { height: 40px; border-radius: 8px; margin-bottom: 7px; border: 1px solid rgba(255,255,255,.06); }
.sch .nm { font-size: .72rem; font-weight: 600; }
.setrow { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.setrow:last-of-type { border-bottom: none; }
.setrow .nm { font-weight: 600; font-size: .9rem; } .setrow .rl { font-size: .73rem; color: var(--muted); }
.setrow .act { margin-left: auto; color: var(--brand); font-weight: 600; font-size: .8rem; cursor: pointer; }
.setrow .act ~ .act { margin-left: 0; }
.setrow.istaus .nm { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.updbanner { border-color: rgba(226,176,47,.5) !important; cursor: pointer; margin-bottom: 12px; }
.updbanner .infoline svg { color: var(--warn); }
.addline { display: flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 600; font-size: .88rem; cursor: pointer; padding: 12px 0 2px; }
.addline svg { width: 18px; height: 18px; }
.checkrow { display: flex; gap: 9px; align-items: flex-start; padding: 7px 2px; font-size: .87rem; line-height: 1.35; cursor: pointer; }
.checkrow input { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: var(--brand); }
.switchrow { position: relative; display: flex; align-items: flex-start; gap: 14px; justify-content: space-between; padding: 6px 2px; cursor: pointer; }
.switchrow .sw-label { flex: 1; font-size: .9rem; line-height: 1.35; }
.switchrow input.switch { position: absolute; right: 2px; top: 6px; width: 44px; height: 26px; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch-track { flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--elev2); border: 1px solid var(--line); position: relative; transition: background .15s, border-color .15s; margin-top: 1px; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch:checked ~ .switch-track { background: rgba(var(--brand-rgb), .30); border-color: var(--brand); }
.switch:checked ~ .switch-track::after { transform: translateX(18px); background: var(--brand); }
.switch:focus-visible ~ .switch-track { outline: 2px solid var(--brand); outline-offset: 2px; }
.pindots { display: flex; justify-content: center; gap: 15px; margin: 6px 0 24px; }
.pindots .pd { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--muted); transition: background .15s, border-color .15s, transform .15s; }
.pindots .pd.on { background: var(--brand); border-color: var(--brand); transform: scale(1.12); }
.pindots.shake { animation: pinshake .4s; }
@keyframes pinshake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 264px; margin: 0 auto 8px; }
.pinkey { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); background: var(--elev2); color: var(--fg); font: inherit; font-size: 1.5rem; font-weight: 500; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; transition: transform .08s ease, background .12s, color .12s; }
.pinkey:active { transform: scale(.93); background: var(--brand); color: #fff; border-color: var(--brand); }
.pinkey.del { background: transparent; border-color: transparent; }
.pinkey.del:active { background: transparent; color: var(--brand); transform: scale(.93); }
.pinkey.del svg { width: 26px; height: 26px; }
.stepbar { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 18px; }
.stepbar .stp { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .82rem; background: var(--elev2); color: var(--muted); border: 1px solid var(--line); flex: none; }
.stepbar .stp.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.stepbar .stp.done { background: rgba(51,176,111,.9); color: #06140d; border-color: var(--ok); }
.stepbar .stpline { flex: 1; max-width: 44px; height: 2px; background: var(--line); }
body.insetup .nav, body.insetup nav.rail .navitem, body.insetup nav.rail .spacer, body.insetup nav.rail .railscan, body.insetup .topbar .userchip, body.insetup .topbar #btnSettings { display: none !important; }
.lbar { height: 7px; background: var(--elev2); border-radius: 99px; overflow: hidden; }
.lfill { height: 100%; width: 0; background: var(--ok); border-radius: 99px; transition: width .45s var(--ease-out); }
.lfill.warn { background: var(--warn); } .lfill.bad { background: var(--bad); }
.taglist { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
.tag.tapp { cursor: pointer; }
.wappen { height: 34px; width: auto; max-width: 54px; object-fit: contain; border-radius: 7px; background: #fff; padding: 3px; flex: none; }
.logorow { display: flex; gap: 12px; align-items: center; margin: 4px 0 6px; }
.logoprev { width: 56px; height: 56px; border-radius: 10px; object-fit: contain; background: #fff; padding: 4px; flex: none; border: 1px solid var(--line); }
.logoprev.empty { display: grid; place-items: center; background: var(--elev2); color: var(--muted); font-size: .6rem; text-align: center; padding: 2px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + var(--safe-b)); background: var(--elev2); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: .86rem; font-weight: 600; z-index: 70; box-shadow: 0 8px 24px rgba(0,0,0,.4); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* ---- Desktop ---- */
@media (min-width: 900px) {
  #app { max-width: none; }
  /* Schmale Navi-Schiene (wie LOTSE112 Einsatzleitung): Icon + Text darunter.
     Hintergrund-Schwarzton bleibt der von Geräte (bg 82% + Schwarz). */
  .rail { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; flex: none; background: var(--railbg); border-right: 1px solid var(--line); padding: 14px 8px calc(14px + var(--safe-b)); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .rail .rail-brand { width: 100%; min-height: 64px; border-radius: 12px; margin: 0 0 10px; flex: none; background: var(--brand); display: grid; place-items: center; }
  .rail .rail-brand svg { width: 34px; height: 34px; }
  .navitem { position: relative; width: 100%; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 2px; border-radius: 12px; color: var(--muted); font-weight: 650; font-size: .7rem; letter-spacing: .03em; text-align: center; line-height: 1.1; cursor: pointer; }
  .navitem svg { width: 24px; height: 24px; flex: none; }
  .navitem:hover { background: var(--elev); }
  /* Aktiver Punkt: Symbol + Text in Akzentfarbe + zarter Tint (wie Einsatzleitung) */
  .navitem.on { color: var(--brand); background: rgba(var(--brand-rgb), .10); }
  .navitem .navbadge { position: absolute; top: 8px; right: 16px; margin: 0; }
  .rail .spacer { flex: 1; }
  .rail .railscan { width: 100%; min-height: 64px; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 2px; border-radius: 12px; background: var(--brand); color: #fff; font: inherit; font-size: .7rem; font-weight: 700; letter-spacing: .03em; }
  .rail .railscan svg { width: 24px; height: 24px; }
  .rail .railscan:hover { filter: brightness(1.06); }
  .topbar .back, .topbar .brandmark, .topbar #hdWappen { display: none !important; }
  /* Wortmarke in der Kopfzeile, rechts neben der Schiene – gleiche Typo + Höhe wie
     die Marken-Kachel (64px) und identisch zu LOTSE112 Einsatzleitung. */
  .hdbrand { display: flex; flex-direction: column; justify-content: center; flex: none; height: 64px; }
  .hdbrand h2 { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; line-height: 1.15; }
  .hdbrand h2 .wm-a { color: var(--brand); }
  .hdbrand h2 .wm-b { color: var(--fg); }
  .hdbrand-claim { font-size: .72rem; font-weight: 700; color: var(--brand); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
  .hdbrand-ug { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
  /* Ansichtstitel oben ausblenden – die Wortmarke ist der Kopf (wie Einsatzleitung) */
  .topbar #hdTitle { display: none; }
  .topbar #userChip { margin-left: auto; }
  .topbar { padding: 10px 24px; }
  .userchip .un { display: inline; }
  .nav { display: none; }
  .bigpruef { display: none; }
  #view { padding: 22px 28px calc(28px + var(--safe-b)); }
  .dgrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
  .amp .n { font-size: 2.5rem; }
  .row .col.show-desk { display: block; }
  .narrow { max-width: 620px; }
  /* Dialoge am Desktop mittig statt als Bottom-Sheet unten */
  .overlay { align-items: center; padding: 24px; }
  .sheet { border-radius: 22px; margin: auto; max-height: 88vh; padding-bottom: 22px; }
  .row:hover { transform: translateY(-1px); }
}

/* ============ Politur: Material, Tiefe, Bewegung (Apple-Stil) ============ */
.topbar {
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom-color: color-mix(in srgb, var(--line) 60%, transparent);
}
.topbar h1 { letter-spacing: .01em; font-size: 1.32rem; }

.nav {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(22px);
  backdrop-filter: saturate(1.8) blur(22px);
  border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  height: calc(66px + var(--safe-b)); padding: 8px 2px var(--safe-b); align-items: center;
}
.nav button { transition: color .15s, transform .15s var(--ease-spring); }
.nav button.on { transform: translateY(-1px); }
.foot { padding-bottom: calc(84px + var(--safe-b)); }

.card, .devhead, .prueferline { box-shadow: var(--sh-1); }
.row { box-shadow: var(--sh-1); transition: transform .18s var(--ease-spring), border-color .15s, box-shadow .2s; }
.row:active { transform: scale(.985); }
.amp { box-shadow: var(--sh-1); transition: transform .18s var(--ease-spring), box-shadow .2s; }
.amp:active { transform: scale(.97); }
.chip { transition: transform .15s var(--ease-spring), background .15s, border-color .15s, color .15s; }
.chip:active { transform: scale(.94); }

.btn { transition: transform .12s var(--ease-spring), filter .15s, box-shadow .2s; }
.btn:active { transform: scale(.96); }
.btn.primary { box-shadow: 0 8px 22px -8px rgba(var(--brand-rgb), .65); }
.btn.primary:active { filter: brightness(.95); }

.avatar { box-shadow: 0 4px 12px -4px rgba(var(--brand-rgb), .55); }
.brandmark { box-shadow: 0 8px 24px -8px rgba(var(--brand-rgb), .6); }

/* Sheet: Backdrop weichzeichnen, Grabber, Federung */
.overlay { background: rgba(0,0,0,.5); }
.overlay.show {
  animation: ovfade .22s var(--ease-out);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.sheet { position: relative; box-shadow: var(--sh-2); animation: sheetup .42s var(--ease-spring); }
.sheet::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 5px; border-radius: 99px; background: var(--line);
}
.sheet h3 { padding-top: 6px; }

/* View-Wechsel: sanftes Einblenden des Inhalts */
#view > div { animation: viewin .34s var(--ease-out); }

@keyframes ovfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetup { from { transform: translateY(14%); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
@keyframes viewin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============ Berichte / Druckansicht ============ */
.rp-bar { display: flex; gap: 8px; margin-bottom: 14px; }
.rp-bar .btn { width: auto; flex: 1; }
.report {
  background: #fff; color: #1a1a1a; border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 30px; max-width: 1080px; margin: 0 auto;
  font-size: 13px; line-height: 1.5; box-shadow: var(--sh-1);
}
.report .rp-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; border-bottom: 2px solid #1a1a1a; padding-bottom: 14px; margin-bottom: 18px; }
.report .rp-head .rp-org { order: 1; }
.rp-logo { order: 2; max-height: 64px; max-width: 110px; object-fit: contain; flex: none; }
.rp-wehr { font-size: 1.15rem; font-weight: 700; }
.rp-orgline { font-size: 11px; color: #555; margin-top: 1px; }
.rp-title { font-size: 1rem; font-weight: 600; margin-top: 6px; }
.rp-meta { font-size: 11px; color: #666; margin-top: 4px; }
.report h3.rp-h { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 20px 0 7px; color: #333; }
.rp-kv { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.rp-kv th { text-align: left; width: 210px; vertical-align: top; padding: 4px 10px 4px 0; color: #555; font-weight: 600; }
.rp-kv td { padding: 4px 0; vertical-align: top; }
.rp-tbl { width: 100%; border-collapse: collapse; margin: 4px 0 8px; }
.rp-tbl th, .rp-tbl td { border: 1px solid #cfcfcf; padding: 6px 8px; text-align: left; vertical-align: top; }
.rp-tbl thead th { background: #f0f0f0; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.rp-list { margin: 4px 0 8px; padding-left: 20px; }
.rp-fotos { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.rp-fotos img { width: 30%; max-width: 220px; border: 1px solid #cfcfcf; border-radius: 4px; object-fit: cover; }
.rp-mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .92em; }
.rp-dim { color: #888; }
.rp-ok { color: #1c7a43; } .rp-bad { color: #c02617; } .rp-warn { color: #9a6b06; }
.rp-sum { font-size: 13px; margin: 6px 0 14px; }
.rp-sign { margin-top: 26px; max-width: 340px; }
.rp-sigbox { height: 70px; border-bottom: 1px solid #1a1a1a; display: flex; align-items: flex-end; }
.rp-sigbox img { max-height: 66px; max-width: 100%; }
.rp-sigcap { font-size: 11px; color: #555; margin-top: 4px; }
.rp-foot { margin-top: 22px; padding-top: 10px; border-top: 1px solid #ddd; font-size: 10px; color: #999; text-align: center; }

@media print {
  .topbar, .nav, .fab, nav.rail, .foot, #splash, .overlay, .toast, .rp-bar, .camov, .no-print { display: none !important; }
  html, body { background: #fff !important; }
  #app, .mainpane, #view { display: block !important; max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
  #view > div { animation: none !important; }
  .report { border: none !important; box-shadow: none !important; border-radius: 0 !important; max-width: none !important; padding: 0 !important; font-size: 11pt; }
  .rp-tbl th, .rp-tbl td { border-color: #999 !important; }
  .rp-fotos img { width: 45%; }
  @page { margin: 15mm; }
}
/* Zentrierte Desktop-Dialoge: kein Grabber, kein Hochschieben */
@media (min-width: 900px) {
  .sheet::before { display: none; }
  .sheet { animation: viewin .28s var(--ease-out); }
  .foot { padding-bottom: calc(14px + var(--safe-b)); }
}
