:root {
  --bg: #d5e3e1;
  --ink: #1b1f24;
  --muted: #4e5c64;
  --line: rgba(27, 47, 52, 0.12);
  --line-strong: rgba(27, 47, 52, 0.16);
  --petrol: #0a6b67;
  --petrol-dark: #085651;
  --petrol-soft: rgba(10, 107, 103, 0.12);
  --card: rgba(255, 255, 255, 0.58);
  --danger: #8e1d16;
  --danger-soft: rgba(253, 236, 235, 0.85);
  --shadow: 0 18px 40px rgba(16, 40, 42, 0.12);
  --glass: rgba(255, 255, 255, 0.34);
  --glass-strong: rgba(255, 255, 255, 0.46);
  --blur: blur(18px) saturate(1.35);
  --radius: 16px;
  --font: "Segoe UI Variable", "Segoe UI", "Helvetica Neue", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 55% 46% at 0% -8%, rgba(255, 255, 255, 0.75), transparent 58%),
    radial-gradient(ellipse 48% 42% at 100% 0%, rgba(8, 92, 96, 0.55), transparent 62%),
    radial-gradient(ellipse 42% 48% at 78% 108%, rgba(10, 107, 103, 0.5), transparent 64%),
    radial-gradient(ellipse 36% 40% at 6% 100%, rgba(186, 222, 226, 0.95), transparent 66%),
    linear-gradient(155deg, #9ec9c4 0%, #d7ebe8 42%, #7fb0ae 100%);
  font-size: 14px;
  line-height: 1.45;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(28px);
}

body::before {
  width: 460px;
  height: 460px;
  top: -120px;
  left: 28%;
  background: rgba(255, 255, 255, 0.72);
}

body::after {
  width: 420px;
  height: 420px;
  right: -40px;
  bottom: -120px;
  background: rgba(6, 78, 82, 0.35);
}

button, input, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

.app {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 14px 16px 12px;
  background: transparent;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 22px;
  min-height: 68px;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  padding: 12px 0 12px 14px;
  border-left: 3px solid var(--petrol);
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 16px;
  padding: 14px 16px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 28px rgba(16, 40, 42, 0.08);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.search {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 0 12px;
  min-height: 36px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.search:focus-within {
  border-color: var(--petrol);
  outline: 2px solid rgba(10, 107, 103, 0.18);
  outline-offset: 0;
}

.search svg { color: var(--muted); flex: none; }

.search input {
  border: 0;
  width: 100%;
  padding: 8px 0;
  background: transparent;
  outline: none;
}

.filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.filter span {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter select,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 10px;
  padding: 8px 10px;
  outline: none;
  min-height: 36px;
}

.filter select:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--petrol);
  outline: 2px solid rgba(10, 107, 103, 0.18);
  outline-offset: 0;
}

.count {
  margin: 0 0 8px auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  font-size: 13px;
  white-space: nowrap;
}

.list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 0 24px;
}

.loading, .empty {
  margin: 8vh auto 0;
  text-align: center;
  max-width: 460px;
  padding: 28px 22px;
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.empty h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 650;
}

.empty p, .loading { color: var(--muted); }

.empty .btn { margin-top: 8px; }

.table-wrap {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  margin: 0;
  min-width: 920px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  overflow: clip;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th:first-child,
td:first-child { min-width: 200px; }

th:nth-child(2),
td:nth-child(2),
th:nth-child(4),
td:nth-child(4) { white-space: nowrap; }

th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 14px;
  white-space: nowrap;
}

td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  vertical-align: top;
}

tbody tr { cursor: pointer; }

tbody tr:hover td { background: rgba(255, 255, 255, 0.38); }

tbody tr:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: -2px;
}

tbody tr:last-child td { border-bottom: 0; }

.cell-title {
  display: block;
  font-weight: 650;
  color: var(--ink);
}

.cell-sub,
span.cell-muted {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

span.cell-muted { margin-top: 0; }

td.is-empty { color: var(--muted); }

.mono {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}

.col-flag { white-space: nowrap; }

.flag-yes {
  color: var(--petrol);
  font-weight: 650;
}

.flag-no { color: var(--muted); }

.col-actions {
  width: 84px;
  text-align: right;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 2px;
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.65); color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }

.icon-btn:focus-visible, .btn:focus-visible, .text-btn:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 2px;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: var(--glass);
  color: var(--muted);
  font-size: 12.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 28px rgba(16, 40, 42, 0.08);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.statusbar p { margin: 0; }

.status-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn, .text-btn {
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 8px 12px;
  background: transparent;
  line-height: 1.2;
}

.btn-primary {
  background: var(--petrol);
  color: #fff;
  border-color: var(--petrol-dark);
  font-weight: 650;
  min-height: 36px;
}

.btn-primary:hover { background: var(--petrol-dark); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.72);
  min-height: 36px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.68); }

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: #721710;
  font-weight: 650;
}

.btn-danger:hover { background: #721710; }

.text-btn {
  color: var(--petrol-dark);
  font-weight: 650;
  padding: 4px 2px;
}

.text-btn:hover { text-decoration: underline; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(18, 36, 38, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 28px;
}

.sheet {
  width: min(880px, 100%);
  max-height: min(920px, calc(100vh - 56px));
  background: rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

.sheet-head, .sheet-foot {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
}

.sheet-foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.28);
}

.sheet-head h2 {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.sheet-sub {
  margin: 4px 0 0;
  color: var(--muted);
}

.sheet-body {
  overflow: auto;
  padding: 8px 24px 22px;
  background: transparent;
}

.confirm-text {
  margin: 12px 0 4px;
  font-size: 15px;
}

.form-grid, .detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.span-2 { grid-column: span 2; }

.zentrale-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zentrale,
.key-card,
.order-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.38);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.zentrale-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.zentrale-name { flex: 1; min-width: 0; }

.zentrale-head .text-btn { margin-bottom: 8px; }

.key-card .zentrale-head,
.order-card .zentrale-head { align-items: center; }

.key-card .text-btn,
.order-card .text-btn { margin-bottom: 0; }

.key-title,
.order-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.order-pdf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.order-pdf a,
.order-pdf-link {
  color: var(--petrol);
  font-weight: 650;
}

.order-pdf-link { display: inline-block; margin-top: 8px; }

.zentrale-title,
.panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.panel-card {
  margin-top: 12px;
  padding: 12px 14px 4px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.38);
  border-radius: 14px;
}

.panel-empty { margin: 12px 0 0; }

.cell-line,
.stack-line { display: block; }

.cell-line + .cell-line,
.stack-line + .stack-line { margin-top: 10px; }

span.is-empty { color: var(--muted); }

.section-label {
  margin: 18px 0 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #243038;
}

.field { display: flex; flex-direction: column; gap: 5px; }

.field label, .kv dt {
  font-size: 12px;
  font-weight: 650;
  color: #3c474f;
}

.req { color: var(--danger); }

.field textarea { resize: vertical; min-height: 84px; }

.hint, .field-error, .warn {
  margin: 0;
  font-size: 12px;
}

.hint { color: var(--muted); font-weight: 500; }

.field-error { color: var(--danger); min-height: 1em; }

.field.has-error input { border-color: var(--danger); }

.warn {
  color: #7a4b08;
  background: rgba(255, 248, 238, 0.72);
  border: 1px solid rgba(234, 215, 178, 0.9);
  border-radius: 10px;
  padding: 8px 10px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.check-line input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--petrol);
}

.keep-creating {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}

.discard {
  flex: 1 1 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: rgba(255, 248, 238, 0.72);
  border: 1px solid rgba(234, 215, 178, 0.9);
  border-radius: 10px;
  padding: 8px 10px;
}

.discard p { margin: 0; }

.kv {
  display: grid;
  grid-template-columns: 13.5rem 1fr;
  gap: 9px 16px;
  margin: 12px 0 0;
}

.kv dt { color: var(--muted); }

.kv dd { margin: 0; overflow-wrap: anywhere; }

.kv a {
  color: var(--petrol-dark);
  font-weight: 650;
  text-decoration: none;
}

.kv a:hover { text-decoration: underline; }

.notes {
  white-space: pre-wrap;
  margin: 10px 0 0;
}

.secret {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}

.secret-actions {
  display: inline-flex;
  gap: 12px;
  white-space: nowrap;
}

.secret-value {
  font-family: Consolas, "Cascadia Mono", monospace;
  letter-spacing: 0.03em;
}

.muted { color: var(--muted); }

.timestamps {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.push-left { margin-right: auto; }

.toast-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1b242c;
  color: #fff;
  border-radius: 2px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  max-width: min(420px, calc(100vw - 32px));
}

.toast button {
  background: transparent;
  color: #b7e4e1;
  border: 0;
  font-weight: 700;
  padding: 0;
}

.login {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.login-card h1 { font-size: 26px; }

.login-lead {
  margin: 0;
  color: var(--muted);
}

.login-card .btn { align-self: flex-start; }

.who {
  color: var(--muted);
  font-size: 13px;
  align-self: center;
}

.user-list-title { margin: 22px 0 10px; }

.user-empty {
  margin: 0;
  color: var(--muted);
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.1fr) auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-meta strong { font-size: 14px; }

.user-meta span {
  color: var(--muted);
  font-size: 12px;
}

.user-pass {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.user-pass input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 10px;
  padding: 8px 10px;
  min-height: 36px;
}

.user-pass input:focus {
  border-color: var(--petrol);
  outline: 2px solid rgba(10, 107, 103, 0.18);
  outline-offset: 0;
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.noscript { padding: 24px; }

datalist { display: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1100px) {
  .app {
    height: 100dvh;
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }
  .top-actions { justify-content: flex-start; }
  .search { flex-basis: 240px; }
  .filter { flex: 1 1 160px; min-width: 0; }
  .table-wrap { min-width: 0; }
  table { min-width: 760px; }
  th:nth-child(2),
  td:nth-child(2),
  th:nth-child(4),
  td:nth-child(4) { white-space: normal; }
  .sheet { max-height: calc(100dvh - 32px); }
  .user-row { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .app { padding: 10px; }
  .topbar, .toolbar, .statusbar { padding-left: 14px; padding-right: 14px; }
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .top-actions { width: 100%; }
  .top-actions .btn { flex: 1 1 calc(50% - 8px); }
  .toolbar { align-items: stretch; }
  .search, .filter { flex: 1 1 100%; }
  .count { margin: 0; }
  .form-grid, .detail-grid, .kv, .zentrale, .key-card, .order-card, .user-row { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .field input,
  .field textarea,
  .field select,
  .search input,
  .filter select,
  .user-pass input,
  .login-card input { font-size: 16px; }
  .btn, .icon-btn { min-height: 44px; }
  .icon-btn { width: 44px; }
  .backdrop {
    padding:
      max(8px, env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
    align-items: end;
  }
  .sheet {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 16px 16px 12px 12px;
  }
  .sheet-head, .sheet-body, .sheet-foot { padding-left: 14px; padding-right: 14px; }
  .sheet-foot .btn { flex: 1 1 140px; }
  .discard { flex-direction: column; align-items: stretch; }
  .login { padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
  .login-card .btn { align-self: stretch; width: 100%; }
  .table-wrap {
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  table { min-width: 0; }
  th:first-child,
  td:first-child { min-width: 0; }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  table, tbody, tr, td { display: block; width: auto; }
  tbody tr {
    margin: 0 0 12px;
    background: var(--glass-strong);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), var(--shadow);
    overflow: hidden;
  }
  td {
    display: grid;
    grid-template-columns: 7.4rem minmax(0, 1fr);
    gap: 2px 10px;
    align-items: start;
    min-width: 0;
    padding: 9px 12px;
    white-space: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  }
  td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
  }
  td:first-child {
    display: block;
    padding-top: 12px;
    background: rgba(255, 255, 255, 0.28);
  }
  td:first-child::before { content: none; }
  td:first-child .cell-title { font-size: 16px; }
  td.col-actions {
    display: flex;
    justify-content: flex-end;
    border-bottom: 0;
    padding-top: 4px;
    padding-bottom: 8px;
  }
  td.col-actions::before { content: none; }
  .col-flag { white-space: normal; }
  .mono { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar, .toolbar, .statusbar, .table-wrap, .sheet, .search, .empty, .loading, .zentrale, .panel-card, .btn-ghost {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media print {
  body { background: white; }
  body::before, body::after { display: none; }
  .topbar, .toolbar, .statusbar, .table-wrap, .sheet, .zentrale, .key-card, .order-card, .panel-card {
    background: white;
    box-shadow: none;
    backdrop-filter: none;
  }
  .no-print, .col-actions, .row-actions { display: none !important; }
  .app { display: block; height: auto; }
  .list { overflow: visible; padding: 0; }
  .table-wrap { min-width: 0; border: 0; }
  tbody tr { break-inside: avoid; }
  body:has(.backdrop) .app { display: none !important; }
  body:has(.backdrop) .backdrop {
    position: static;
    display: block;
    background: white;
    padding: 0;
  }
  body:has(.backdrop) .sheet {
    box-shadow: none;
    max-height: none;
    overflow: visible;
    width: 100%;
    border: 0;
  }
}
