:root {
  --blech: #f2f3f1;
  --feld: #fafaf9;
  --feld-2: #ffffff;
  --mulde: #e9ebe8;
  --mulde-2: #dfe2df;
  --tinte: #161a19;
  --tinte-2: #454e4b;
  --tinte-3: #6f7875;
  --tinte-4: #9fa7a4;
  --kante: rgba(22, 26, 25, .09);
  --kante-2: rgba(22, 26, 25, .15);
  --kante-3: rgba(22, 26, 25, .30);
  --signal: #2059cf;
  --signal-2: #1a4bb3;
  --signal-tinte: #ffffff;
  --signal-hauch: rgba(32, 89, 207, .10);
  --warn: #b4530a;
  --gefahr: #c2362f;
  --gefahr-hauch: rgba(194, 54, 47, .10);

  --c-blau: #2460c8;   --c-blau-h: #dde8fb;
  --c-gruen: #1c8a55;  --c-gruen-h: #d9f0e3;
  --c-gelb: #d9a900;   --c-gelb-h: #faf0c6;  --c-gelb-t: #8a6a00;
  --c-orange: #d96a12; --c-orange-h: #fbe5d1;
  --c-rot: #c93a34;    --c-rot-h: #fadedc;
  --c-lila: #7448c9;   --c-lila-h: #e9e0fb;
  --c-grau: #68716e;   --c-grau-h: #e4e7e5;
  --c-tuerkis: #0f8a94; --c-tuerkis-h: #d3eff1;

  --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Cascadia Code", Consolas, "DejaVu Sans Mono", Menlo, monospace;

  --r1: 4px; --r2: 6px; --r3: 10px;
  --schweb: 0 0 0 1px var(--kante-2), 0 2px 4px rgba(22, 26, 25, .05), 0 12px 28px -6px rgba(22, 26, 25, .18);
  --aus: cubic-bezier(.23, 1, .32, 1);
  --nav-w: 252px;
  color-scheme: light;
}

:root[data-theme="dunkel"] {
  --blech: #121514;
  --feld: #181c1b;
  --feld-2: #202524;
  --mulde: #0d100f;
  --mulde-2: #262b2a;
  --tinte: #e8ebe9;
  --tinte-2: #b4bbb8;
  --tinte-3: #848d8a;
  --tinte-4: #5c6562;
  --kante: rgba(232, 235, 233, .08);
  --kante-2: rgba(232, 235, 233, .13);
  --kante-3: rgba(232, 235, 233, .28);
  --signal: #6d9df4;
  --signal-2: #8db3f7;
  --signal-tinte: #0c1220;
  --signal-hauch: rgba(109, 157, 244, .14);
  --warn: #e9a35a;
  --gefahr: #f07a72;
  --gefahr-hauch: rgba(240, 122, 114, .13);

  --c-blau: #6ea0f5;   --c-blau-h: #1b2b49;
  --c-gruen: #52c48c;  --c-gruen-h: #153328;
  --c-gelb: #e3bb3a;   --c-gelb-h: #383012;  --c-gelb-t: #e3bb3a;
  --c-orange: #f0934a; --c-orange-h: #3f270f;
  --c-rot: #f07a72;    --c-rot-h: #421f1c;
  --c-lila: #ab8bf2;   --c-lila-h: #2b2247;
  --c-grau: #98a19e;   --c-grau-h: #292e2d;
  --c-tuerkis: #4cc3cc; --c-tuerkis-h: #113538;

  --schweb: 0 0 0 1px var(--kante-2), 0 14px 32px -6px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: pan-x pan-y; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
@media screen { body { position: fixed; inset: 0; width: 100%; overscroll-behavior: none; } }
body {
  margin: 0; background: var(--blech); color: var(--tinte);
  font: 13px/1.45 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow: hidden;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.ic { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); font-size: .94em; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
kbd {
  font: 10.5px/1 var(--mono); padding: 3px 5px; border-radius: 3px; color: var(--tinte-3);
  box-shadow: inset 0 0 0 1px var(--kante-2); background: var(--feld);
}
:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
::selection { background: var(--signal-hauch); }

.band { font: 500 10.5px/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--tinte-3); }

.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border: 0; border-radius: var(--r1); background: var(--feld-2); color: var(--tinte);
  box-shadow: inset 0 0 0 1px var(--kante-2); font-weight: 500; white-space: nowrap;
  transition: background-color .12s, box-shadow .12s, transform .1s var(--aus);
}
.btn:hover { background: var(--mulde); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn .ic { margin-left: -2px; color: var(--tinte-2); }
.btn kbd { margin-right: -4px; }
.btn.primary { background: var(--signal); color: var(--signal-tinte); box-shadow: none; }
.btn.primary .ic { color: inherit; }
.btn.primary:hover { background: var(--signal-2); }
.btn.danger { background: var(--gefahr); color: #fff; box-shadow: none; }
:root[data-theme="dunkel"] .btn.danger { color: #1a0b0a; }
.btn.danger:hover { filter: brightness(.93); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--tinte-2); }
.btn.ghost:hover { background: var(--kante); color: var(--tinte); }
.btn.btn-icon { width: 30px; padding: 0; justify-content: center; }
.btn.btn-icon .ic { margin: 0; }
.btn.sm { height: 26px; padding: 0 8px; font-size: 12px; }
.btn.sm.btn-icon { width: 26px; padding: 0; }
.btn.on { background: var(--signal-hauch); color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.btn.on .ic { color: inherit; }

.inp {
  width: 100%; height: 30px; padding: 0 9px; border: 0; border-radius: var(--r1);
  background: var(--mulde); box-shadow: inset 0 0 0 1px var(--kante);
  transition: box-shadow .12s, background-color .12s;
}
textarea.inp { height: auto; padding: 7px 9px; resize: vertical; line-height: 1.45; }
select.inp { padding-right: 24px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--tinte-3) 50%), linear-gradient(135deg, var(--tinte-3) 50%, transparent 50%);
  background-position: calc(100% - 13px) 13px, calc(100% - 9px) 13px; background-size: 4px 4px; background-repeat: no-repeat; }
.inp::placeholder { color: var(--tinte-4); }
.inp:hover { box-shadow: inset 0 0 0 1px var(--kante-2); }
.inp:focus { outline: 0; background: var(--feld-2); box-shadow: inset 0 0 0 1.5px var(--signal); }

.search { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 8px; color: var(--tinte-3); pointer-events: none; }
.search .inp { padding-left: 28px; }

.seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: var(--r2); background: var(--mulde); box-shadow: inset 0 0 0 1px var(--kante); }
.seg button {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 0; border-radius: var(--r1);
  background: transparent; color: var(--tinte-2); font-weight: 500; transition: background-color .12s, color .12s;
}
.seg button:hover { color: var(--tinte); }
.seg button.on { background: var(--feld-2); color: var(--tinte); box-shadow: 0 0 0 1px var(--kante-2); }
.seg-n { font: 11px var(--mono); color: var(--tinte-3); font-variant-numeric: tabular-nums; }

.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch {
  position: relative; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: var(--sw, var(--c-grau)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  transition: transform .1s var(--aus);
}
.swatch::after { content: ""; position: absolute; inset: -9px; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { outline: 2px solid var(--tinte); outline-offset: 2px; }
.swatch[data-c="blau"] { --sw: var(--c-blau); } .swatch[data-c="gruen"] { --sw: var(--c-gruen); }
.swatch[data-c="gelb"] { --sw: var(--c-gelb); } .swatch[data-c="orange"] { --sw: var(--c-orange); }
.swatch[data-c="rot"] { --sw: var(--c-rot); } .swatch[data-c="lila"] { --sw: var(--c-lila); }
.swatch[data-c="grau"] { --sw: var(--c-grau); } .swatch[data-c="tuerkis"] { --sw: var(--c-tuerkis); }
.swatch[data-c="tinte"] { --sw: var(--tinte); } .swatch[data-c="weiss"] { --sw: var(--feld-2); }
.swatch[data-c=""], .swatch[data-c="keine"] {
  --sw: var(--feld-2);
  background-image: linear-gradient(to top right, transparent calc(50% - 1px), var(--gefahr) calc(50% - 1px), var(--gefahr) calc(50% + 1px), transparent calc(50% + 1px));
}

.vtag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px 0 8px; border-radius: 3px;
  font: 600 11px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--tinte);
  background: var(--mulde-2); box-shadow: inset 3px 0 0 var(--z, var(--c-grau)); white-space: nowrap;
}
.vtag[data-z="office"] { --z: var(--c-gruen); } .vtag[data-z="ot"] { --z: var(--c-blau); }
.vtag[data-z="dmz"] { --z: var(--c-rot); } .vtag[data-z="mgmt"] { --z: var(--c-gelb); }
.vtag.lg { height: 26px; padding: 0 9px 0 12px; font-size: 15px; border-radius: 4px; box-shadow: inset 4px 0 0 var(--z, var(--c-grau)); }

.ip { font: 12.5px/1.2 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }
.ip i { font-style: normal; color: var(--tinte-4); }
.ip b { font-weight: 600; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: 9px;
  font-size: 11px; font-weight: 500; color: var(--tinte-2); background: var(--mulde-2); white-space: nowrap;
}
.chip.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.chip.dhcp { color: var(--c-gelb-t); background: var(--c-gelb-h); }
.dot { width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--c-grau)); flex: none; }

.menu {
  position: fixed; z-index: 80; min-width: 190px; max-width: 320px; max-height: calc(100vh - 16px); overflow: auto;
  padding: 4px; border-radius: var(--r2); background: var(--feld-2); box-shadow: var(--schweb); outline: 0;
  opacity: 0; transform: scale(.96);
}
.menu.in { opacity: 1; transform: none; transition: opacity .14s var(--aus), transform .14s var(--aus); }
.menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 28px; padding: 0 8px; border: 0; border-radius: var(--r1);
  background: transparent; text-align: left; white-space: nowrap;
}
.menu-item .ic { color: var(--tinte-3); }
.menu-item:hover, .menu-item:focus-visible { background: var(--mulde); outline: 0; }
.menu-item:disabled { opacity: .4; pointer-events: none; }
.menu-item.danger, .menu-item.danger .ic { color: var(--gefahr); }
.menu-item.danger:hover { background: var(--gefahr-hauch); }
.menu-l { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.menu-gap { width: 15px; flex: none; }
.menu-sep { height: 1px; margin: 4px -4px; background: var(--kante); }
.menu-head { padding: 6px 8px 3px; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tinte-3); }

.tip {
  position: fixed; z-index: 90; pointer-events: none; padding: 6px 8px; border-radius: var(--r1);
  background: var(--tinte); color: var(--blech); font-size: 12px; line-height: 1.35; max-width: 280px;
}
.tip .ip i { color: inherit; opacity: .55; }
.tip-sub { display: block; opacity: .7; }

.toasts { position: fixed; z-index: 100; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r2); pointer-events: auto;
  background: var(--tinte); color: var(--blech); font-weight: 500; max-width: min(520px, 92vw);
  animation: toast-in .22s var(--aus);
}
.toast.err { background: var(--gefahr); color: #fff; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .16s, transform .16s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }

.dlg {
  padding: 0; border: 0; border-radius: var(--r3); background: var(--feld-2); color: var(--tinte); box-shadow: var(--schweb);
  max-height: calc(100vh - 48px); overflow: hidden;
}
.dlg[open] { display: flex; flex-direction: column; animation: dlg-in .2s var(--aus); }
.dlg::backdrop { background: rgba(16, 20, 19, .42); animation: fade .2s; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 8px 18px; }
.dlg-head h2 { font-size: 15px; letter-spacing: -.01em; }
.dlg-body { padding: 4px 18px 16px; overflow: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--kante); background: var(--feld); }
.dlg-text { color: var(--tinte-2); line-height: 1.5; text-wrap: pretty; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 5px; grid-column: 1 / -1; align-content: start; }
.field.half { grid-column: auto; }
.field-l { font-size: 12px; font-weight: 500; color: var(--tinte-2); }
.field-h { font-size: 11.5px; color: var(--tinte-3); line-height: 1.4; }
.form-err { grid-column: 1 / -1; padding: 8px 10px; border-radius: var(--r1); background: var(--gefahr-hauch); color: var(--gefahr); font-weight: 500; }

.empty { display: grid; justify-items: center; gap: 6px; padding: 56px 24px; text-align: center; color: var(--tinte-3); }
.empty-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 10px; background: var(--mulde); color: var(--tinte-2); }
.empty h3 { color: var(--tinte); font-size: 14px; }
.empty p { max-width: 380px; text-wrap: pretty; }
.empty .btn { margin-top: 10px; }

.boot { display: grid; place-items: center; height: 100%; }
.boot-mark { display: grid; grid-template-columns: repeat(4, 10px); gap: 4px; }
.boot-mark i { width: 10px; height: 10px; border-radius: 2px; background: var(--mulde-2); animation: port 1.1s infinite; }
.boot-mark i:nth-child(2) { animation-delay: .08s; } .boot-mark i:nth-child(3) { animation-delay: .16s; }
.boot-mark i:nth-child(4) { animation-delay: .24s; } .boot-mark i:nth-child(5) { animation-delay: .32s; }
.boot-mark i:nth-child(6) { animation-delay: .4s; } .boot-mark i:nth-child(7) { animation-delay: .48s; }
.boot-mark i:nth-child(8) { animation-delay: .56s; }
@keyframes port { 0%, 60%, 100% { background: var(--mulde-2); } 30% { background: var(--signal); } }

.gate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); height: 100%; }
.gate-art { position: relative; overflow: hidden; background: #0f1211; color: #f2f3f1; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.gate-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.gate-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 13, 12, .96) 0, rgba(11, 13, 12, .7) 34%, rgba(11, 13, 12, 0) 62%), linear-gradient(to bottom, rgba(11, 13, 12, .7) 0, rgba(11, 13, 12, 0) 22%); }
.gate-art > .logo, .gate-art > .gate-claim { z-index: 1; }
.gate-art > * { position: relative; }
.gate-claim { max-width: 440px; }
.gate-claim h1 { font-size: 30px; line-height: 1.12; letter-spacing: -.025em; }
.gate-claim p { margin-top: 12px; font-size: 14px; line-height: 1.5; opacity: .72; text-wrap: pretty; }
.gate-form { display: grid; align-content: center; padding: 40px clamp(24px, 5vw, 56px); background: var(--feld); border-left: 1px solid var(--kante); overflow: auto; }
.gate-form form { display: grid; gap: 14px; }
.gate-form h2 { font-size: 20px; letter-spacing: -.02em; }
.gate-form .sub { color: var(--tinte-3); margin: -8px 0 6px; text-wrap: pretty; }
.gate-form .inp { height: 36px; }
.gate-form .btn { height: 36px; justify-content: center; }
.gate-form .check { display: flex; gap: 8px; align-items: flex-start; color: var(--tinte-2); line-height: 1.4; }
.gate-form .check input { margin: 2px 0 0; accent-color: var(--signal); }
.logo { display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--sans); letter-spacing: -.01em; }
.logo-mark { display: grid; grid-template-columns: repeat(3, 5px); gap: 2px; padding: 5px; border-radius: 6px; background: var(--tinte); }
.logo-mark i { width: 5px; height: 5px; border-radius: 1px; background: var(--blech); opacity: .3; }
.logo-mark i.a { opacity: 1; } .logo-mark i.b { opacity: 1; background: #5b93ff; } .logo-mark i.c { opacity: 1; background: #f5a524; }
.gate-art .logo-mark { background: rgba(255, 255, 255, .12); }
@media (max-width: 820px) { .gate { grid-template-columns: 1fr; } .gate-art { display: none; } .gate-form { border: 0; } }

.app { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); height: 100%; }
.app.slim { --nav-w: 52px; }
.nav { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--kante); background: var(--blech); }
.nav-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 52px; padding: 0 10px 0 14px; flex: none; }
.nav-site { font: 500 10.5px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--tinte-3); }
.nav-find {
  display: flex; align-items: center; gap: 8px; height: 30px; margin: 0 10px 10px; padding: 0 8px; border: 0; border-radius: var(--r1);
  background: var(--mulde); box-shadow: inset 0 0 0 1px var(--kante); color: var(--tinte-3); text-align: left; flex: none;
}
.nav-find span { flex: 1; }
.nav-find:hover { box-shadow: inset 0 0 0 1px var(--kante-2); color: var(--tinte-2); }
.nav-main { display: grid; gap: 1px; padding: 0 8px; flex: none; }
.nav-link {
  display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: var(--r1); color: var(--tinte-2); font-weight: 500;
  transition: background-color .1s;
}
.nav-link .ic { color: var(--tinte-3); }
.nav-link:hover { background: var(--kante); color: var(--tinte); }
.nav-link.on { background: var(--feld-2); color: var(--tinte); box-shadow: 0 0 0 1px var(--kante-2); }
.nav-link.on .ic { color: var(--signal); }
.nav-link span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link em { font: normal 11px var(--mono); color: var(--tinte-3); font-variant-numeric: tabular-nums; }
.nav-sec { display: flex; align-items: center; justify-content: space-between; padding: 16px 10px 4px 16px; flex: none; }
.nav-scroll { flex: 1; min-height: 0; overflow: auto; padding: 0 8px 12px; scrollbar-width: thin; }
.nav-zone { padding: 10px 8px 3px; font-size: 11px; font-weight: 600; color: var(--tinte-3); }
.nav-vlan {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) 30px; align-items: center; gap: 8px; height: 28px; padding: 0 8px 0 6px;
  border-radius: var(--r1); color: var(--tinte-2);
}
.nav-vlan .vtag { justify-self: start; }
.nav-vlan-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-vlan:hover { background: var(--kante); color: var(--tinte); }
.nav-vlan.on { background: var(--feld-2); color: var(--tinte); box-shadow: 0 0 0 1px var(--kante-2); font-weight: 500; }
.meter { display: flex; height: 4px; border-radius: 2px; overflow: hidden; background: var(--mulde-2); }
.meter i { display: block; height: 100%; background: var(--tinte-2); }
.meter i.d { background: var(--c-gelb); }
.nav-foot { display: flex; align-items: center; gap: 4px; padding: 8px; border-top: 1px solid var(--kante); flex: none; }
.nav-user { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px; border: 0; border-radius: var(--r1); background: transparent; text-align: left; }
.nav-user:hover { background: var(--kante); }
.avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tinte); color: var(--blech); font: 600 10.5px var(--mono); flex: none; }
.nav-user-n { display: grid; line-height: 1.2; min-width: 0; }
.nav-user-n b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-n small { font-size: 11px; color: var(--tinte-3); }

.app.slim .nav-brand { justify-content: center; padding: 0; }
.app.slim .nav-brand .logo > span:last-child, .app.slim .nav-site, .app.slim .nav-find span, .app.slim .nav-find kbd,
.app.slim .nav-link span, .app.slim .nav-link em, .app.slim .nav-sec, .app.slim .nav-scroll > *, .app.slim .nav-user-n,
.app.slim .nav-foot .btn { display: none; }
.app.slim .nav-find { justify-content: center; padding: 0; margin: 0 11px 10px; }
.app.slim .nav-link { justify-content: center; padding: 0; }
.app.slim .nav-user { justify-content: center; padding: 0; }
.app.slim .nav-foot { padding: 8px 9px; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--feld); }
.top { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 20px; border-bottom: 1px solid var(--kante); flex: none; }
.top-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.top-title h1 { font-size: 16px; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-sub { color: var(--tinte-3); white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; }
.tabs { display: none; }
.page { flex: 1; min-height: 0; overflow: auto; padding: 0 20px 28px; scrollbar-gutter: stable; }
.page-in { padding-top: 20px; }
.page-in { max-width: 1280px; margin: 0 auto; }

.kpis { display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: flex-end; padding: 4px 0 20px; }
.kpi { display: grid; gap: 3px; }
.kpi b { font: 600 26px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi.lead b { font-size: 40px; }
.kpi small { font-size: 12px; color: var(--tinte-3); }
.kpi-bar { flex: 1 1 260px; min-width: 200px; display: grid; gap: 6px; padding-bottom: 3px; }
.kpi-bar .meter { height: 8px; border-radius: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--tinte-3); font-size: 11.5px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .dot.frei { background: var(--mulde); box-shadow: inset 0 0 0 1px var(--kante-2); }
.legend .dot.dhcp { background: var(--c-gelb-h); box-shadow: inset 0 0 0 1px var(--c-gelb); }
.legend .dot.res { background: repeating-linear-gradient(45deg, var(--tinte-4) 0 1.5px, transparent 1.5px 3px); box-shadow: inset 0 0 0 1px var(--kante-2); }

.finds { margin: 0 0 22px; border-radius: var(--r2); box-shadow: inset 0 0 0 1px var(--kante-2); background: var(--feld-2); }
.finds > summary { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; cursor: pointer; font-weight: 500; list-style: none; }
.finds > summary::-webkit-details-marker { display: none; }
.finds > summary .ic:first-child { color: var(--warn); }
.finds > summary .ic:last-child { margin-left: auto; color: var(--tinte-3); transition: transform .15s var(--aus); }
.finds[open] > summary .ic:last-child { transform: rotate(180deg); }
.find { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 7px 12px; border-top: 1px solid var(--kante); }
.find-t { color: var(--tinte-2); min-width: 220px; }
.find a { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: var(--r1); background: var(--mulde); }
.find a:hover { background: var(--mulde-2); }

.zone { margin-bottom: 26px; }
.zone-h { display: flex; align-items: baseline; gap: 10px; padding: 0 0 8px; border-bottom: 1px solid var(--kante-2); }
.zone-h h2 { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.zone-h .dot { width: 9px; height: 9px; }
.zone-h small { color: var(--tinte-3); font-size: 12px; }
.vpanel {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 8px;
  border-bottom: 1px solid var(--kante); border-radius: var(--r1); transition: background-color .1s;
}
.vpanel:hover { background: var(--feld-2); }
.vpanel-meta { display: grid; gap: 5px; min-width: 0; }
.vpanel-name { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.vpanel-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpanel-sub { display: flex; gap: 10px; color: var(--tinte-3); font-size: 12px; white-space: nowrap; }
.vpanel-sub b { color: var(--tinte); font-weight: 600; font-variant-numeric: tabular-nums; }
.raster { display: block; max-width: 100%; }
.raster.pick { cursor: pointer; }

.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-bottom: 16px; }
.fact { display: grid; gap: 3px; }
.fact > span:last-child { font-weight: 500; }
.vraster { display: grid; gap: 10px; padding: 14px; margin-bottom: 16px; border-radius: var(--r2); background: var(--blech); box-shadow: inset 0 0 0 1px var(--kante); overflow-x: auto; }
.vraster-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.vbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; background: var(--feld); }
.vbar .search { flex: 1 1 200px; max-width: 320px; }
.vbar-r { margin-left: auto; display: flex; gap: 6px; }

.grid { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.grid th {
  position: sticky; top: 46px; z-index: 4; height: 28px; padding: 0 8px; text-align: left; background: var(--feld);
  font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tinte-3);
  border-bottom: 1px solid var(--kante-2); white-space: nowrap; user-select: none;
}
.grid th.sort { cursor: pointer; }
.grid th.sort:hover { color: var(--tinte); }
.grid th.sort.up::after { content: " ↑"; } .grid th.sort.dn::after { content: " ↓"; }
.grid.flat th { top: 0; }
.grid td { height: 31px; padding: 0 8px; border-bottom: 1px solid var(--kante); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.grid tr.row:hover td { background: var(--feld-2); }
.grid tr.row.sel td { background: var(--signal-hauch); }
.grid tr.flash td { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background: var(--signal-hauch); } }
.grid td.c-ip { cursor: pointer; }
.grid td.c-ip > .ip { display: inline-flex; align-items: center; gap: 7px; }
.grid td.c-ip .mk { width: 3px; height: 16px; border-radius: 2px; background: transparent; flex: none; margin-left: -4px; }
.grid td.edit { cursor: text; }
.grid td.edit:hover { box-shadow: inset 0 0 0 1px var(--kante-2); }
.grid td.editing { padding: 0; overflow: visible; box-shadow: inset 0 0 0 1.5px var(--signal); background: var(--feld-2) !important; }
.grid td.editing input { width: 100%; height: 30px; padding: 0 8px; border: 0; background: transparent; outline: 0; }
.grid td.muted, .grid .muted { color: var(--tinte-3); }
.grid td.c-name { font-weight: 500; }
.grid td .cell-ic { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.grid td .cell-ic span { overflow: hidden; text-overflow: ellipsis; }
.grid td .cell-ic .ic { color: var(--c, var(--tinte-3)); }
.grid td.c-act { padding: 0 2px; text-align: right; overflow: visible; }
.grid td.c-act .btn { opacity: 0; }
.grid tr:hover td.c-act .btn, .grid td.c-act .btn:focus-visible { opacity: 1; }
.grid tr.free td { color: var(--tinte-4); }
.grid tr.free td.c-ip .ip b { font-weight: 500; color: var(--tinte-3); }
.grid tr.gap td { height: 26px; color: var(--tinte-3); font-size: 12px; background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--kante) 6px 7px); cursor: pointer; }
.grid tr.gap:hover td { color: var(--tinte); }
.grid tr.gap .gap-in { display: inline-flex; align-items: center; gap: 10px; padding: 1px 8px 1px 0; background: var(--feld); }
.grid tr.rng td { height: 28px; padding-left: 0; border-bottom-color: var(--kante-2); background: var(--blech); }
.rng-in { display: flex; align-items: center; gap: 10px; padding-left: 8px; border-left: 3px solid var(--c, var(--c-grau)); height: 28px; font-weight: 600; font-size: 12px; }
.rng-in .ip, .rng-in small { font-weight: 400; color: var(--tinte-3); font-size: 12px; }

[data-c="blau"] { --c: var(--c-blau); --ch: var(--c-blau-h); } [data-c="gruen"] { --c: var(--c-gruen); --ch: var(--c-gruen-h); }
[data-c="gelb"] { --c: var(--c-gelb); --ch: var(--c-gelb-h); } [data-c="orange"] { --c: var(--c-orange); --ch: var(--c-orange-h); }
[data-c="rot"] { --c: var(--c-rot); --ch: var(--c-rot-h); } [data-c="lila"] { --c: var(--c-lila); --ch: var(--c-lila-h); }
[data-c="grau"] { --c: var(--c-grau); --ch: var(--c-grau-h); } [data-c="tuerkis"] { --c: var(--c-tuerkis); --ch: var(--c-tuerkis-h); }
.grid td.c-ip .mk[data-c] { background: var(--c); }

.drawer {
  position: absolute; z-index: 20; top: 0; right: 0; bottom: 0; width: min(380px, 100%); display: flex; flex-direction: column;
  background: var(--feld-2); box-shadow: var(--schweb); animation: drawer-in .22s var(--aus);
}
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 14px 10px 12px 18px; border-bottom: 1px solid var(--kante); }
.drawer-head .ip { font-size: 18px; }
.drawer-head small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; color: var(--tinte-3); font-size: 12px; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 18px; }
.drawer-foot { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--kante); background: var(--feld); }
.drawer-foot .btn.primary { margin-left: auto; }
.drawer-sec { margin: 18px 0 8px; }
.hist { display: grid; gap: 8px; font-size: 12px; color: var(--tinte-2); }
.hist-i { display: grid; gap: 1px; padding-left: 10px; border-left: 2px solid var(--kante-2); }
.hist-i small { color: var(--tinte-3); }
.hist-i del { color: var(--tinte-3); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 12px; }
.filters .search { flex: 1 1 240px; max-width: 360px; }
.filters select.inp { width: auto; min-width: 130px; max-width: 200px; }
.filters .count { margin-left: auto; color: var(--tinte-3); font-variant-numeric: tabular-nums; }

.log { display: grid; }
.log-i { display: grid; grid-template-columns: 128px 96px 160px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 8px 4px; border-bottom: 1px solid var(--kante); }
.log-i time { color: var(--tinte-3); font: 12px var(--mono); font-variant-numeric: tabular-nums; }
.log-i .who { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-what { display: grid; gap: 3px; min-width: 0; }
.log-what b { font-weight: 500; }
.log-ch { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12px; color: var(--tinte-2); }
.log-ch span { display: inline-flex; gap: 5px; align-items: baseline; }
.log-ch i { font: normal 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tinte-3); }
.log-ch del { color: var(--tinte-3); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pcard { display: grid; border-radius: var(--r2); background: var(--feld-2); box-shadow: 0 0 0 1px var(--kante-2); overflow: hidden; transition: box-shadow .15s; }
.pcard:hover { box-shadow: 0 0 0 1px var(--kante-3); }
.pcard-view { display: block; aspect-ratio: 16 / 10; background: var(--blech); border-bottom: 1px solid var(--kante); overflow: hidden; }
.pcard-view svg { width: 100%; height: 100%; display: block; }
.pcard-foot { display: flex; align-items: center; gap: 8px; padding: 9px 6px 9px 12px; }
.pcard-foot div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pcard-foot b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-foot small { color: var(--tinte-3); font-size: 11.5px; }
.pcard.neu { place-items: center; align-content: center; gap: 8px; min-height: 180px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--kante-2); color: var(--tinte-2); font-weight: 500; }
.pcard.neu:hover { background: var(--feld-2); color: var(--tinte); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.box { padding: 16px; border-radius: var(--r2); box-shadow: inset 0 0 0 1px var(--kante-2); background: var(--feld-2); display: grid; gap: 10px; }
.box h3 { font-size: 13px; }
.box p { color: var(--tinte-2); text-wrap: pretty; }
.box .btn { justify-self: start; }
.box.alarm { box-shadow: inset 0 0 0 1px var(--gefahr); background: var(--gefahr-hauch); }
.sec-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sec-h h2 { font-size: 14px; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }

.pal { padding: 0; border: 0; border-radius: var(--r3); background: var(--feld-2); color: var(--tinte); box-shadow: var(--schweb);
  width: min(600px, calc(100vw - 32px)); margin-top: 12vh; max-height: 70vh; overflow: hidden; }
.pal[open] { display: flex; flex-direction: column; }
.pal::backdrop { background: rgba(16, 20, 19, .32); }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-bottom: 1px solid var(--kante); flex: none; }
.pal-in input { flex: 1; height: 100%; border: 0; background: transparent; outline: 0; font-size: 15px; }
.pal-in .ic { color: var(--tinte-3); }
.pal-list { overflow: auto; padding: 6px; }
.pal-g { padding: 8px 8px 4px; }
.pal-i { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 4px 8px; border: 0; border-radius: var(--r1); background: transparent; text-align: left; }
.pal-i.on { background: var(--mulde); }
.pal-i .ic { color: var(--c, var(--tinte-3)); }
.pal-t { display: grid; min-width: 0; line-height: 1.3; }
.pal-t b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-t small { color: var(--tinte-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-r { display: flex; align-items: center; gap: 8px; color: var(--tinte-3); }
.pal-none { padding: 28px; text-align: center; color: var(--tinte-3); }

.led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mulde-2); box-shadow: inset 0 0 0 1px var(--kante-2); flex: none; }
.led.on { background: var(--c-gruen); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-gruen) 22%, transparent); }
.legend .dot.led { border-radius: 50%; background: var(--c-gruen); width: 7px; height: 7px; }
.legend .dot.unk { background: var(--c-orange-h); box-shadow: inset 0 0 0 1.5px var(--c-orange); }
.grid tr.found td { background: color-mix(in srgb, var(--c-orange-h) 45%, transparent); }
.grid tr.found td.c-act .btn, .grid td.c-act.show .btn { opacity: 1; }
.grid td.c-act.show { padding-right: 6px; }
.kpi b .led { width: 10px; height: 10px; margin-right: 9px; vertical-align: 4px; }
a.kpi:hover small { color: var(--tinte); }
.scanbox { display: grid; gap: 8px; padding: 10px 12px; margin-bottom: 14px; border-radius: var(--r2); background: var(--blech); box-shadow: inset 0 0 0 1px var(--kante); }
.scanbox-h { display: flex; align-items: center; gap: 8px; }
.scanbox-h b { font-weight: 600; flex: 1; }
.scanbox-d { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--tinte-2); font-size: 12px; }
.scanbox .btn { justify-self: start; }
.uptime { display: grid; gap: 4px; }
.uptime-bar { display: flex; height: 10px; border-radius: 3px; overflow: hidden; background: var(--mulde-2); }
.uptime-bar i { display: block; min-width: 1px; flex-basis: 0; }
.uptime-bar i.on { background: var(--c-gruen); }
.uptime-bar i.off { background: var(--tinte-4); }
.uptime-bar i.none { background: transparent; }
.uptime-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--tinte-3); }
.uptime-l span:nth-child(2) { color: var(--tinte-2); font-weight: 500; }
.nethist { display: grid; gap: 10px; }
.nethist:empty { display: none; }
.scan-hint { margin-bottom: 22px; }
.log-i.ev { grid-template-columns: 128px 150px 220px minmax(0, 1fr); }
.log-i.ev .who:hover { text-decoration: underline; }
.fz { margin-bottom: 32px; }
.fz-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 16px; }
.fz-title { display: flex; align-items: center; gap: 12px; }
.fz-title .ic { color: var(--c-blau); }
.fz-title h2 { font-size: 20px; letter-spacing: -.02em; }
.fz-title small, .fz-ap-h small { color: var(--tinte-3); font-size: 12px; }
.fz-sec { padding: 16px 0 4px; border-top: 1px solid var(--kante-2); margin-bottom: 14px; }
.fz-sec .sec-h h3 { font-size: 13px; }
.fz-sec .facts { padding-bottom: 6px; }
.fz-wlans { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fz-wlan { gap: 6px; }
.fz-wlan.off { background: var(--feld); }
.fz-wlan.off .fz-wlan-h { color: var(--tinte-3); }
.fz-wlan-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fz-wlan-h b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.fz-wlan-h .ic { color: var(--c-blau); }
.fz-wlan p { font-size: 12px; color: var(--tinte-3); }
.fz-wlan-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--tinte-2); }
.fz-ap { margin-bottom: 14px; border-radius: var(--r2); box-shadow: inset 0 0 0 1px var(--kante-2); background: var(--feld-2); overflow: hidden; }
.fz-ap-h { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.fz-ap-h > div { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.fz-ap-h b { font-weight: 600; }
.fz-ap-h .ic { color: var(--c-blau); }
.fz-clients { border-top: 1px solid var(--kante); }
.fz-clients td { height: 28px; font-size: 12.5px; }
.fz-clients tr:last-child td { border-bottom: 0; }
.fz-clients a:hover { text-decoration: underline; }
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sig i { width: 3px; border-radius: 1px; background: var(--mulde-2); }
.sig i:nth-child(1) { height: 4px; } .sig i:nth-child(2) { height: 6px; } .sig i:nth-child(3) { height: 9px; } .sig i:nth-child(4) { height: 12px; }
.sig[data-b="1"] i:nth-child(-n+1), .sig[data-b="2"] i:nth-child(-n+2), .sig[data-b="3"] i:nth-child(-n+3), .sig[data-b="4"] i { background: var(--tinte-2); }
.sig[data-b="1"] i:nth-child(1) { background: var(--c-rot); }
.scanbox .in-btns { margin-top: 2px; }
.ports { display: flex; flex-wrap: wrap; gap: 4px; }
.chip.port { font-family: var(--mono); font-size: 10.5px; }
a.chip.port { color: var(--signal); background: var(--signal-hauch); }
a.chip.port:hover { text-decoration: underline; }
a.btn:hover { text-decoration: none; }
.weblink { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r1); color: var(--signal); vertical-align: middle; flex: none; }
.weblink:hover { background: var(--signal-hauch); }
td.c-name .weblink, td.muted .weblink { margin-left: 4px; }
.grid td.c-act .weblink { margin-right: 2px; }
.field.watch { margin-bottom: 14px; }
.alerts { display: grid; }
.alert { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 4px; border-bottom: 1px solid var(--kante); }
.alert-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--c-orange-h); color: var(--c-orange); }
.alert[data-k="ausfall"] .alert-ic { background: var(--c-rot-h); color: var(--c-rot); }
.alert[data-k="zurueck"] .alert-ic { background: var(--c-gruen-h); color: var(--c-gruen); }
.alert[data-k="port.neu"] .alert-ic { background: var(--c-blau-h); color: var(--c-blau); }
.alert.seen { opacity: .62; }
.alert.seen .alert-ic { background: var(--mulde-2); color: var(--tinte-3); }
.alert-t { display: grid; gap: 2px; min-width: 0; }
.alert-t b { font-weight: 600; }
.alert-t small { color: var(--tinte-2); font-size: 12px; overflow-wrap: anywhere; }
.alert-t time { color: var(--tinte-3); font: 11px var(--mono); }
.alert .in-btns { justify-content: flex-end; }
.push-box .in-btns { margin-top: 2px; }
@media (max-width: 700px) { .alert { grid-template-columns: 30px minmax(0, 1fr); } .alert .in-btns { grid-column: 2; justify-content: flex-start; } }
.scan-sec { margin-bottom: 28px; }
.scan-sec .sec-h h2 { display: flex; align-items: baseline; gap: 8px; }
.scan-n { font: normal 12px var(--mono); color: var(--tinte-3); }
.scan-sub { color: var(--tinte-3); margin: -4px 0 10px; max-width: 640px; text-wrap: pretty; }
.scan-sec > .btn { margin-top: 12px; }
.scan-agents { flex: 1 1 260px; display: grid; gap: 8px; justify-items: end; align-self: center; }
.scan-agent { display: flex; align-items: center; gap: 10px; min-width: 0; }
.scan-agent div { display: grid; line-height: 1.3; min-width: 0; flex: 1; }
.scan-agent b { font-weight: 600; }
.scan-agent small { color: var(--tinte-3); font-size: 11.5px; }
.scan-nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .grid-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
  .grid-wrap .grid { min-width: 860px; }
  .grid th { position: static; }
  .vbar { position: static; }
  .kpis { gap: 8px 24px; }
  .kpi.lead b { font-size: 32px; }
  .facts { gap: 10px 20px; }
  .top-actions .btn:not(.btn-icon) span { display: none; }
  .top-actions .btn:not(.btn-icon) { width: 30px; padding: 0; justify-content: center; }
  .top-actions .btn:not(.btn-icon) .ic { margin: 0; }
  .nav { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 264px; transform: translateX(-100%); transition: transform .22s var(--aus); box-shadow: var(--schweb); }
  .app.nav-open .nav { transform: none; }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(16, 20, 19, .35); }
  .nav-toggle { display: inline-flex; }
  .top { padding: 8px 12px; }
  .page { padding: 0 16px 24px; }
  .page-in { padding-top: 16px; }
  .vpanel { grid-template-columns: 1fr; gap: 8px; }
  .log-i { grid-template-columns: 1fr 1fr; }
  .log-i .log-what { grid-column: 1 / -1; }
  .top-sub { display: none; }
}
@media (max-width: 760px) {
  .app { grid-template-rows: minmax(0, 1fr) auto; }
  .app.slim { --nav-w: 264px; }
  .tabs {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--kante); background: var(--blech);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); padding-left: calc(4px + env(safe-area-inset-left)); padding-right: calc(4px + env(safe-area-inset-right));
  }
  .app.slim .tabs { display: none; }
  .tab {
    display: grid; justify-items: center; gap: 2px; min-height: 48px; padding: 5px 2px 3px; border: 0; border-radius: var(--r2); background: transparent;
    color: var(--tinte-3); font: 500 10.5px/1.2 var(--sans); user-select: none; -webkit-user-select: none;
  }
  .tab > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab.on { color: var(--tinte); }
  .tab.on .ic { color: var(--signal); }
  .tab:active { background: var(--kante); }
  .tab-ic { position: relative; display: grid; }
  .tab-ic em { position: absolute; top: -4px; left: 14px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--c-rot); color: #fff; font: 600 10px/16px var(--mono); text-align: center; box-shadow: 0 0 0 2px var(--blech); }
  .nav-toggle { display: none; }
  .app.slim .nav-toggle { display: inline-flex; }
  .nav { width: min(300px, 86vw); padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); padding-left: env(safe-area-inset-left); }
  .app.slim .nav-brand { justify-content: space-between; padding: 0 10px 0 14px; }
  .app.slim .nav-brand .logo > span:last-child, .app.slim .nav-site, .app.slim .nav-find span, .app.slim .nav-link span, .app.slim .nav-user-n { display: revert; }
  .app.slim .nav-link em, .app.slim .nav-sec, .app.slim .nav-foot .btn { display: flex; }
  .app.slim .nav-scroll > * { display: grid; }
  .app.slim .nav-scroll > .nav-zone { display: block; }
  .app.slim .nav-find, .app.slim .nav-link, .app.slim .nav-user { justify-content: flex-start; padding: 0 8px; }
  .app.slim .nav-find { margin: 0 10px 10px; }
  .nav-link { height: 42px; font-size: 14px; }
  .nav-vlan { height: 40px; }
  .nav-find { height: 40px; font-size: 14px; }
  .nav-find kbd { display: none; }

  .top { min-height: 52px; padding: 6px 10px 6px 16px; padding-top: calc(6px + env(safe-area-inset-top)); gap: 8px; }
  .top-title h1 { font-size: 18px; }
  .top-actions { gap: 2px; }
  .top-actions .btn, .top-actions .btn:not(.btn-icon) { width: 40px; height: 40px; box-shadow: none; background: transparent; }
  .top-actions .btn.primary { background: var(--signal); color: var(--signal-tinte); border-radius: 50%; width: 36px; height: 36px; margin-left: 4px; }
  .page { padding: 0 16px 28px; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: auto; -webkit-overflow-scrolling: touch; }

  .btn { height: 38px; padding: 0 13px; font-size: 14px; }
  .btn.sm { height: 34px; padding: 0 10px; font-size: 13px; }
  .btn.btn-icon, .btn.sm.btn-icon { width: 38px; padding: 0; justify-content: center; }
  .inp, .search input, .pal-in input, .grid td.editing input, input, select, textarea { font-size: 16px; }
  .inp { height: 42px; }
  textarea.inp { height: auto; }
  .seg button, .tabsw button { min-height: 36px; }
  .menu { min-width: 220px; }
  .menu-item { min-height: 42px; font-size: 14px; }
  .dlg { width: calc(100vw - 24px); max-width: none; max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(72px + env(safe-area-inset-bottom)); width: calc(100vw - 32px); }
  .pal { width: calc(100vw - 16px); margin-top: calc(8px + env(safe-area-inset-top)); max-height: 80dvh; }
  .pal-in kbd { display: none; }

  .grid-wrap { overflow: visible; margin: 0; padding: 0; }
  .grid-wrap .grid { min-width: 0; }
  .grid, .grid tbody { display: block; width: 100%; }
  .grid colgroup, .grid thead { display: none; }
  .grid tr { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; min-height: 46px; padding: 7px 2px; border-bottom: 1px solid var(--kante); }
  .grid tr.row::before { content: ""; order: 4; flex: 0 0 100%; height: 0; }
  .grid td, .grid tr.gap td, .grid tr.rng td { display: block; order: 5; height: auto; min-width: 0; max-width: 100%; padding: 0; border: 0; background: none; font-size: 12px; color: var(--tinte-3); }
  .grid td:empty { display: none; }
  .grid td:first-child, .grid td.c-name, .grid td.c-act { order: 0; font-size: 14px; color: var(--tinte); }
  .grid td.c-name { flex: 1 1 0; }
  .grid td:first-child:not(.c-ip):not(.c-name) { flex: 0 0 auto; font-size: 13px; }
  .grid td.c-ip { flex: 0 0 auto; font-size: 13px; }
  .grid td.c-act { order: 1; flex: none; margin-left: auto; }
  .grid td.c-act.show { order: 6; }
  .grid td.c-act .btn { opacity: 1; }
  .grid td:last-child:not(.c-act):not(:first-child):not(.c-name) { margin-left: auto; }
  .grid tr.row:hover td { background: none; }
  .grid tr.row:active { background: var(--feld-2); }
  .grid tr.row.sel { background: var(--signal-hauch); }
  .grid tr.row.sel td { background: none; }
  .grid td.edit { cursor: pointer; }
  .grid td.edit:hover { box-shadow: none; }
  .grid tr.gap, .grid tr.rng { min-height: 0; padding: 0; }
  .grid tr.gap { background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--kante) 6px 7px); }
  .grid tr.gap td, .grid tr.rng td { flex: 1 1 100%; order: 0; }
  .grid tr.gap .gap-in { min-height: 36px; font-size: 13px; }
  .grid tr.rng { background: var(--blech); }
  .rng-in { height: 34px; }
  .fz-ap .grid tr { padding-left: 12px; padding-right: 12px; }
  .fz-ap .grid tr:last-child { border-bottom: 0; }

  .vbar { gap: 8px; }
  .vbar .search { flex: 1 1 100%; max-width: none; order: 2; }
  .vbar-r { margin-left: auto; }
  .vraster { margin-left: -16px; margin-right: -16px; border-radius: 0; padding: 14px 16px; }
  .sec-h { flex-wrap: wrap; gap: 6px 12px; }
  .scan-agents { justify-items: start; flex-basis: 100%; }
  .log-i, .log-i.ev { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 2px; }
  .log-i time { grid-column: 1 / -1; font-size: 11px; }
  .log-i .log-what { grid-column: 1 / -1; }
  .drawer { width: 100%; box-shadow: none; }
  .drawer-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .cards { grid-template-columns: 1fr; }
  .gate-form { padding-top: calc(40px + env(safe-area-inset-top)); padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .alert { padding: 14px 0; }
  .fz-wlans { grid-template-columns: 1fr; }
  .fz-ap-h { flex-wrap: wrap; row-gap: 6px; }
  .fz-ap-h > div { flex-basis: calc(100% - 40px); }
  .fz-ap-h .chip { margin-left: 32px; }
  .fz-ap-h .scan-n { margin-left: auto; }
  .rng-in { overflow: hidden; white-space: nowrap; }
  .weblink { width: 36px; height: 36px; }
  .kpi.lead b { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
