/* SmartCloud: driftsværktøj. Rolig, tæt informationsdesign; søjler i topmenuen, status som form + farve. */
:root {
  --bg: #f4f6f9; --surface: #ffffff; --surface2: #eef1f5; --fg: #17202b; --muted: #5d6b7b; --line: #d9dfe6;
  --accent: #2557c7; --accent-fg: #ffffff; --accent-soft: #e3ebfb;
  --ok: #1f8a4c; --ok-soft: #dff3e7; --warn: #a86400; --warn-soft: #fbeed6; --bad: #c0362c; --bad-soft: #fbe2df;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141a; --surface: #161d25; --surface2: #1d2630; --fg: #e4e9ef; --muted: #8b98a7; --line: #2a3541;
    --accent: #6f9cff; --accent-fg: #0b1220; --accent-soft: #1c2b4a;
    --ok: #4cc283; --ok-soft: #133324; --warn: #e6a84a; --warn-soft: #3a2a10; --bad: #f07a6f; --bad-soft: #3d1a17;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.5 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0 0 4px; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 17px; margin: 0; }
h3 { font-size: 13px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lede { color: var(--muted); margin: 0 0 18px; max-width: 72ch; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 600; color: var(--fg); }
.mono { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.boot { display: grid; place-items: center; height: 100%; color: var(--muted); }

/* shell */
.shell { min-height: 100%; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 28px; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  height: 56px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fg); font-size: 16px; }
.brand:hover { text-decoration: none; }
.brand.big { font-size: 22px; margin-bottom: 4px; }
.mark { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, var(--accent) 0 50%, var(--ok) 50% 100%); }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.whoname { font-weight: 600; }
.whoscope { color: var(--muted); font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
.body { flex: 1; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.main { min-width: 0; width: 100%; max-width: 1280px; padding: 24px max(16px, env(safe-area-inset-right)) 48px 28px; }
.menubtn { display: none; font-size: 16px; padding: 4px 10px; }

/* sidemenu */
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 14px 10px 24px; position: sticky; top: 56px;
  height: calc(100vh - 56px); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.ssec { margin-top: 10px; }
.shead { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; text-align: left; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 6px 10px; border-radius: 6px; }
.shead:hover { color: var(--fg); background: var(--surface2); }
.chev { display: inline-block; width: 12px; font-size: 14px; line-height: 1; transition: transform .15s; }
.chev.open { transform: rotate(90deg); }
.sitem.parent { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; text-align: left; font: inherit; font-weight: 500; color: var(--fg); }
.soon { font-size: 10px; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 1px 6px; border-radius: 999px; background: var(--surface2); }
.sitem { display: block; padding: 7px 10px; border-radius: 6px; color: var(--fg); font-weight: 500; }
.sitem:hover { background: var(--surface2); text-decoration: none; }
.sitem.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sitem.top { font-weight: 600; }
.schildren { margin: 2px 0 4px 12px; border-left: 2px solid var(--line); padding-left: 6px; }
.sitem.child { font-size: 13px; padding: 5px 10px; font-weight: 500; }
.sitem.child.on { background: transparent; color: var(--accent); font-weight: 600; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.crumb { margin: 0 0 6px; color: var(--muted); font-size: 13px; }

/* controls */
button { font: inherit; cursor: pointer; }
.primary { background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 7px; padding: 9px 16px; font-weight: 600; }
.primary:disabled { opacity: .6; cursor: progress; }
.ghost { background: transparent; border: 1px solid var(--line); color: var(--fg); border-radius: 7px; padding: 5px 12px; }
.ghost:hover { background: var(--surface2); }
.link { background: none; border: 0; color: var(--accent); padding: 0; }
input { font: inherit; width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--fg); }

/* login */
.login { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.loginbox { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.loginbox label { font-weight: 600; font-size: 13px; margin-top: 8px; }
.loginbox .primary { margin-top: 14px; }

/* status */
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.protos { display: flex; gap: 6px; flex-wrap: wrap; }
.proto { font-family: var(--mono); font-size: 11.5px; padding: 2px 7px; border-radius: 5px; border-left: 3px solid; background: var(--surface2); white-space: nowrap; }
.proto.ok { border-color: var(--ok); }
.proto.bad { border-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
.proto.none { border-color: var(--line); color: var(--muted); }
.err { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: 8px; margin: 10px 0; }
.note { padding: 10px 12px; border-radius: 8px; margin: 10px 0; }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.empty { border: 1px dashed var(--line); border-radius: 10px; padding: 28px; text-align: center; color: var(--muted); }
.empty.big { padding: 56px 24px; }
.empty p { margin: 4px 0; }

/* cards + grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.span2 { grid-column: 1 / -1; }
.pillargrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.pcard { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; color: var(--fg); }
.pcard:hover { border-color: var(--accent); text-decoration: none; }
.pcard.dim { opacity: .72; }
.pcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.pcard p { margin: 0; }
.vendors { display: flex; gap: 6px; margin-top: auto; }
.stats { display: flex; gap: 24px; margin: 4px 0; }
.stats dt { color: var(--muted); font-size: 12px; }
.stats dd { margin: 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.svcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* tables */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.sel td { background: var(--accent-soft); }
table.compact td, table.compact th { padding: 6px 8px; }
.sub { margin-top: 3px; color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: center; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 12px 0 16px; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tab.on { color: var(--fg); border-bottom-color: var(--accent); }
.raw { font-family: var(--mono); font-size: 12px; background: var(--surface2); border-radius: 8px; padding: 12px; overflow: auto; max-height: 560px; margin: 0; white-space: pre; }

/* topologi */
.topo { overflow-x: auto; }
.topo svg { width: 100%; min-width: 620px; height: auto; display: block; }
.lnk { stroke-width: 3; }
.lnk.up { stroke: var(--ok); }
.lnk.down { stroke: var(--bad); stroke-dasharray: 6 5; }
.lnklabel { fill: var(--muted); font: 11px var(--mono); }
.tnode { cursor: pointer; }
.nodebox { fill: var(--surface); stroke-width: 2; }
.nodebox.ok { stroke: var(--ok); }
.nodebox.bad { stroke: var(--bad); }
.tnode:hover .nodebox, .tnode:focus .nodebox { fill: var(--accent-soft); }
.nodename { fill: var(--fg); font: 600 13px var(--font); }
.nodesub { fill: var(--muted); font: 11px var(--mono); }

@media (max-width: 900px) {
  .body { grid-template-columns: minmax(0, 1fr); }
  .menubtn { display: inline-block; }
  .side { display: none; position: fixed; top: 56px; left: 0; bottom: 0; width: min(280px, 85vw); height: auto; z-index: 6;
    box-shadow: 0 8px 24px rgba(0,0,0,.25); padding-left: max(10px, env(safe-area-inset-left)); }
  .menu-open .side { display: flex; }
  .main { padding-left: max(16px, env(safe-area-inset-left)); }
  .pillargrid, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .top { gap: 12px; }
  .whoscope, .whoname { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* tjeneste-tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--fg); }
.tile:hover { border-color: var(--accent); }
.tile.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.tile-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tile-num { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile-sub { font-size: 12px; color: var(--muted); }
.clickrow { cursor: pointer; }
.clickrow:hover td { background: var(--surface2); }
.detailrow > td { background: var(--surface2); padding: 8px 16px 14px; }
.stats { flex-wrap: wrap; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* compute */
.search { max-width: 420px; margin: 4px 0 12px; }
.tile.static { cursor: default; }
.tile.static:hover { border-color: var(--line); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ghost.danger { color: var(--bad); border-color: var(--bad); }
.confirm { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--warn-soft); border: 1px solid var(--warn); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.mt { margin-top: 16px; }
.formgrid { display: grid; grid-template-columns: max-content minmax(0, 340px); gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.formgrid .contents { display: contents; }
select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--fg); max-width: 100%; }
.formrow { display: flex; gap: 10px; flex-wrap: wrap; }
.formrow input { flex: 1 1 200px; width: auto; }
.bar { display: flex; align-items: center; gap: 8px; }
.bar progress { width: 120px; height: 8px; accent-color: var(--ok); }
.bar.warn progress { accent-color: var(--warn); }
.bar.bad progress { accent-color: var(--bad); }
@media (max-width: 600px) { .formgrid { grid-template-columns: minmax(0, 1fr); } }

/* konsol */
.btnlink { display: inline-flex; align-items: center; text-decoration: none; }
.btnlink:hover { text-decoration: none; background: var(--surface2); }
.console { width: 100%; height: calc(100vh - 230px); min-height: 420px; background: #000; border-radius: 10px; overflow: hidden; }
.console:fullscreen { height: 100vh; border-radius: 0; }
.console-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; }
.clip { display: flex; flex-direction: column; gap: 8px; }
.clip textarea { font: 12.5px var(--mono); width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--fg); resize: vertical; }
.clip h3 { margin: 0; }
@media (max-width: 900px) { .console-wrap { grid-template-columns: minmax(0, 1fr); } }

/* mappetræ */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 4px 0 12px; }
.toolbar .search { margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { background: var(--surface); border: 0; padding: 7px 14px; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--accent-soft); color: var(--accent); }
.tree td { padding-top: 7px; padding-bottom: 7px; }
.folderrow { cursor: pointer; background: var(--surface2); }
.folderrow:hover td { background: var(--accent-soft); }
.folderrow td { display: table-cell; }
.indent { display: inline-block; }
.indent.d0 { width: 0; } .indent.d1 { width: 18px; } .indent.d2 { width: 36px; } .indent.d3 { width: 54px; }
.indent.d4 { width: 72px; } .indent.d5 { width: 90px; } .indent.d6 { width: 108px; } .indent.d7 { width: 126px; }
.foldericon { display: inline-block; width: 14px; height: 11px; margin: 0 8px 0 4px; border-radius: 2px; background: var(--warn); opacity: .8; vertical-align: -1px; }
.pill.tenant { margin-left: 8px; background: var(--accent-soft); color: var(--accent); }
.badge.sp { margin-left: 8px; }

/* relationer (vCloud/AWS-inspireret) */
.relpath { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.relpath .sep { color: var(--line); }
.relgrp { display: inline-flex; gap: 6px; align-items: center; }
.relnode { padding: 1px 8px; border-radius: 999px; background: var(--surface2); color: var(--fg); }
.relnode.tenant { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.relnode.vm { font-weight: 600; }
.relmap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.2fr); gap: 10px; align-items: center; margin-bottom: 16px; }
.relcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.relcard.main { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.relstack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rellabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.relval { font-weight: 600; overflow-wrap: anywhere; }
.relsub { font-size: 12px; color: var(--muted); }
.relarrow { color: var(--muted); font-size: 18px; }
@media (max-width: 900px) { .relmap { grid-template-columns: minmax(0, 1fr); } .relarrow { transform: rotate(90deg); justify-self: center; } }

.mb { margin-bottom: 14px; }
.chk { width: auto; justify-self: start; }

/* mappetræ i sidemenu */
.foldernav { margin: 2px 0 6px 8px; border-left: 2px solid var(--line); padding-left: 2px; max-height: 50vh; overflow-y: auto; }
.fitem { display: flex; align-items: center; border-radius: 6px; }
.fitem:hover { background: var(--surface2); }
.fitem.on { background: var(--accent-soft); }
.fitem.on .flabel { color: var(--accent); font-weight: 600; }
.findent { display: inline-block; flex: none; }
.findent.d0 { width: 0; } .findent.d1 { width: 12px; } .findent.d2 { width: 24px; } .findent.d3 { width: 36px; } .findent.d4 { width: 48px; } .findent.d5 { width: 60px; }
.fchev { flex: none; width: 18px; height: 26px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--muted); padding: 0; }
.flabel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; background: none; border: 0; text-align: left; padding: 5px 6px 5px 0;
  font: inherit; font-size: 13px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcount { margin-left: auto; padding-left: 6px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.foldernav .foldericon { margin: 0 6px 0 0; }

.sp { margin-left: 8px; }

/* vSphere-tags */
.tag { display: inline-block; margin-left: 6px; font: 600 11px var(--mono); padding: 1px 7px; border-radius: 4px;
  background: var(--ok-soft); color: var(--ok); border: 1px solid transparent; }
.tag.inh { background: transparent; border-color: var(--ok); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tags .tag { margin-left: 0; }

/* global søgning */
.gsearch { position: relative; flex: 1; max-width: 520px; }
.gsearch input { padding: 7px 12px; background: var(--surface2); border-color: transparent; }
.gsearch input:focus { background: var(--surface); border-color: var(--accent); outline: none; }
.gresults { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.18); max-height: 70vh; overflow-y: auto; z-index: 20; padding: 6px; }
.ghead { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 8px 4px; }
.ghit { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 7px 8px;
  border-radius: 6px; color: var(--fg); font: inherit; }
.ghit.on { background: var(--accent-soft); }
.gtitle { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.gempty { padding: 12px; color: var(--muted); }
@media (max-width: 900px) { .gsearch { max-width: none; } .gsearch input::placeholder { color: transparent; } }

/* L3VPN livscyklus + tags */
tr.deleted td { color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 8px, var(--surface2) 8px 16px); }
tr.deleted .strong { color: var(--muted); text-decoration: line-through; }
.countdown { font: 600 12px var(--mono); color: var(--warn); margin-left: 6px; }
.warnbox { border-color: var(--bad); background: var(--bad-soft); margin-bottom: 16px; }
.warnbox h3 { color: var(--bad); text-transform: none; letter-spacing: 0; font-size: 16px; }
.warnbox ul { margin: 6px 0 12px; padding-left: 20px; }
.warnbox li { margin: 3px 0; }
.primary.danger-fill { background: var(--bad); }
.primary.small, .ghost.small { padding: 3px 9px; font-size: 12px; }
.tags.inline { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: middle; }
.tags.inline .tag { margin-left: 0; }
.tagedit { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tagedit input { width: 150px; padding: 3px 8px; font-size: 12px; }
.tagx { background: none; border: 0; color: inherit; margin-left: 4px; padding: 0; cursor: pointer; font-weight: 700; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.checks .chk { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; }

/* kapacitet */
.sechead { font-size: 16px; margin: 0 0 10px; }
.capgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cap { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cap-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cap-bar { height: 8px; background: var(--surface2); border-radius: 999px; overflow: hidden; }
.cap-bar span { display: block; height: 100%; border-radius: 999px; background: var(--ok); }
.cap-bar.warn span { background: var(--warn); }
.cap-bar.bad span { background: var(--bad); }
.capcounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.capcount { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; }
@media (max-width: 900px) { .capgrid { grid-template-columns: minmax(0, 1fr); } .capcounts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tablewrap { overflow-x: auto; }
.nodecap td { vertical-align: middle; min-width: 120px; }
.nc { display: flex; flex-direction: column; gap: 4px; }
.nc .cap-bar { height: 6px; }

button.sm { padding: 3px 10px; font-size: 12px; }
.pwask { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.dhcpbox { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: var(--surface); }
.dhcpbox h4 { margin: 0 0 2px; font-size: 14px; }
