/* Manage Devices list: the 2.x network-v3.css rules at be62ac329 (copied rule by rule: .v-dlist .v-drow .v-dcell .v-bub .v-pill .v-dfold .v-dcard ...), tokens mapped to tokens.css; .dev-ic from portal.html L16449. Wrapper: class "nv3". Not copied: column-header, drag-sort and mesh rules (no source data yet). */
.nv3{--chip-radius:var(--radius-sm);--surface-radius:var(--radius);--border-strong:var(--line-strong);--border-subtle:var(--line);--border-default:var(--line);--panel:var(--card);--accent-hover:var(--accent);--button-text:var(--btn-t)}
.nv3{--v-bg:var(--bg);--v-card:var(--card);--v-card2:var(--card);--v-sunk:var(--bg-soft);--v-line:var(--border-subtle);--v-line2:var(--border-default);--v-line3:var(--border-strong);--v-text:var(--text);--v-soft:color-mix(in srgb,var(--text) 80%,var(--muted));--v-muted:var(--muted);--v-faint:var(--muted);--v-accent:var(--accent);--v-accent2:var(--accent-hover);--v-accent-ink:var(--button-text);--v-sel:var(--accent-soft);--v-island:var(--card);--v-away:repeating-linear-gradient(135deg,var(--card) 0 12px,var(--bg-soft) 12px 24px);--v-offsite:color-mix(in srgb,#4c9dff 9%,var(--card));--v-offsite-line:color-mix(in srgb,#4c9dff 38%,var(--border-default));--v-ok-bg:var(--good-bg);--v-ok:var(--good);--v-ok-line:color-mix(in srgb,var(--good) 45%,var(--border-default));--v-warn-bg:var(--warn-bg);--v-warn:var(--warn);--v-warn-line:color-mix(in srgb,var(--warn) 45%,var(--border-default));--v-bad-bg:var(--bad-bg);--v-bad:var(--bad);--v-bad-line:color-mix(in srgb,var(--bad) 45%,var(--border-default));--v-mute-bg:var(--bg-soft);--v-mute:var(--muted);--v-wait:var(--warn);--v-pause:var(--bad);--v-nogroup:var(--border-strong);--v-na:#8b7ff0;--v-vpn-bg:color-mix(in srgb,#8b7ff0 16%,var(--card));--v-vpn:#8b7ff0;--v-vpn-line:color-mix(in srgb,#8b7ff0 45%,var(--border-default))}
.nv3{color:var(--v-text);display:flex;flex-direction:column;gap:18px}
.nv3 .v-pill{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:2px 10px;border-radius:var(--chip-radius);font-size:12.5px;font-weight:600;white-space:nowrap;border:1px solid transparent}
.nv3 .v-pill .pdot{width:7px;height:7px;border-radius:50%;background:currentColor}
.nv3 .is-ok{background:var(--v-ok-bg);color:var(--v-ok);border-color:var(--v-ok-line)}
.nv3 .is-warn{background:var(--v-warn-bg);color:var(--v-warn);border-color:var(--v-warn-line)}
.nv3 .is-bad{background:var(--v-bad-bg);color:var(--v-bad);border-color:var(--v-bad-line)}
.nv3 .is-mute{background:var(--v-mute-bg);color:var(--v-mute);border-color:var(--v-line2)}
.nv3 .is-vpn{background:var(--v-vpn-bg);color:var(--v-vpn);border-color:var(--v-vpn-line)}
.nv3 .v-card{box-sizing:border-box;border-radius:var(--surface-radius);background:var(--v-card);border:1px solid var(--v-line)}
.nv3 .v-count{font-size:11.5px;font-weight:700;color:var(--v-muted);background:var(--v-sunk);border:1px solid var(--v-line);border-radius:var(--chip-radius);padding:0 7px;min-width:18px;text-align:center}
.nv3 .v-bub{display:inline-flex;align-items:center;gap:0;max-width:100%;padding:3px 10px 3px 3px;border-radius:var(--chip-radius);border:1px solid var(--dc-bd,var(--v-line2));background:var(--dc-bg,var(--v-sunk));color:var(--dc-fg,var(--v-text));font-weight:600;line-height:1.3}
.nv3 .v-cardtag{margin-left:6px;padding:0 6px;border:1px solid var(--v-line2);border-radius:var(--chip-radius);font-size:11.5px;color:var(--v-muted)}
.nv3 .v-chev{width:9px;height:9px;margin-top:-5px;border-right:2px solid var(--v-faint);border-bottom:2px solid var(--v-faint);transform:rotate(45deg);transition:transform .15s}
.nv3 .v-dpillrow{display:flex;min-width:0}
.nv3 .v-dpill{gap:4px;max-width:100%;padding:2px 3px 2px 10px;background:var(--v-sel);border-color:var(--v-accent);color:var(--v-accent2)}
/* Filter and group sheet: 2.x network-v3.css .v-dfsheet / .v-dfopt / .v-x-mini at be62ac329 (rows with a count and a tick, Show and Group by side by side),
   drawn in the page instead of 2.x's modal. Buttons here set every box property: Manage has no global button style, so a bare button is the browser's grey. */
.nv3 .v-dfsheet{padding:16px 18px 18px}
.nv3 .v-dfhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.nv3 .v-dfhead h3{margin:0;font-size:16px;font-weight:700;color:var(--v-text)}
.nv3 .v-dfclose{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;margin:0;padding:0;border:1px solid transparent;border-radius:var(--chip-radius);background:transparent;color:var(--v-muted);box-shadow:none;cursor:pointer}
.nv3 .v-dfclose:hover,.nv3 .v-dfclose:focus-visible{background:var(--v-sel);color:var(--v-text)}
.nv3 .v-dfclose .ms{font-size:20px}
.nv3 .v-dfbody{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px}
.nv3 .v-dfsec{display:flex;flex-direction:column;gap:8px;min-width:0}
.nv3 .v-dfsec h4{margin:0;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--v-muted)}
.nv3 .v-dfopts{display:flex;flex-direction:column;gap:4px}
.nv3 .v-dfopt{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;margin:0;padding:6px 8px 6px 12px;border:1px solid transparent;border-radius:var(--chip-radius);background:transparent;color:var(--v-text);font:inherit;font-size:14px;font-weight:500;text-align:left;box-shadow:none;cursor:pointer}
.nv3 .v-dfopt:hover,.nv3 .v-dfopt:focus-visible{background:var(--v-sel)}
.nv3 .v-dfopt.is-on{border-color:color-mix(in srgb,var(--v-accent) 55%,transparent);background:var(--v-sel);color:var(--v-text);font-weight:600}
.nv3 .v-dflabel{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.nv3 .v-dfcount{font-size:12.5px;font-weight:600;color:var(--v-muted);font-variant-numeric:tabular-nums}
.nv3 .v-dfopt.is-on .v-dfcount{color:inherit}
.nv3 .v-dftick{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px}
.nv3 .v-dfopt.is-on .v-dftick::after{content:"";width:5px;height:10px;margin-top:-3px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.nv3 .v-x-mini{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin:0 0 0 2px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;box-shadow:none;cursor:pointer;flex:0 0 auto}
.nv3 .v-x-mini .ms{font-size:14px}
.nv3 .v-x-mini:hover,.nv3 .v-x-mini:focus-visible{background:var(--v-line2)}
@media (max-width:640px){.nv3 .v-dfbody{grid-template-columns:minmax(0,1fr);gap:16px}.nv3 .v-dfopt{min-height:44px}}
.nv3 .v-dlist{padding:0;overflow:hidden}
.nv3 .v-drow{display:grid;grid-template-columns:var(--v-dcols,minmax(0,1.45fr) minmax(0,1fr) minmax(0,.85fr) minmax(0,1.3fr) minmax(0,1.25fr));align-items:center;gap:14px;width:100%;padding:9px 14px;border:0;border-top:1px solid var(--v-line);border-radius:0;background:transparent;color:var(--v-text);text-align:left;cursor:pointer}
.nv3 .v-drow:hover{background:var(--v-sel)}
/* P6: one line per device under its row, "Follows <profile>, from group <group>"; the profile is a link into that profile (the row itself is a link, so the line sits outside it). */
.nv3 .v-dfollow{margin-top:-6px;padding:0 14px 9px;color:var(--v-muted);overflow-wrap:anywhere}
.nv3 .v-dfollow-link{color:var(--v-text);font-weight:600;text-decoration:underline;text-decoration-color:var(--v-line3);text-underline-offset:2px}
.nv3 .v-dfollow-link:hover,.nv3 .v-dfollow-link:focus-visible{text-decoration-color:currentColor}
@media (max-width:1099px){.nv3 .v-dfollow{margin-top:-4px;padding:0 12px 10px}}
.nv3 .v-drow.is-sel{background:var(--v-sel);box-shadow:inset 2px 0 0 var(--v-accent)}
.nv3 .v-drow.is-off .v-bub{opacity:.75}
.nv3 .v-dcell{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;min-width:0;overflow:hidden}
.nv3 .v-dcell>*{flex:0 0 auto}
.nv3 .v-dcell>.v-dtext,.nv3 .v-dcell>.v-bub,.nv3 .v-dcell>.v-pill{flex:0 1 auto;min-width:0;max-width:100%}
.nv3 .v-dtext,.nv3 .v-bubname,.nv3 .v-pill .v-ptext{min-width:0;overflow-wrap:anywhere}
.nv3 .v-dcell .v-bub>*:not(.v-bubname){flex:0 0 auto}
.nv3 .v-dgrp{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 14px 8px;font-size:13px;font-weight:700;border-top:1px solid var(--v-line)}
.nv3 .v-dtag{display:inline-flex;align-items:center;font-size:11px;font-weight:700;padding:1px 6px;border-radius:var(--chip-radius);border:1px solid var(--v-line2);color:var(--v-soft);white-space:nowrap}
.nv3 .v-dtag.is-relay{color:#9cbeff;border-color:#34507a}
.nv3 .v-dtag.is-warn{color:var(--v-warn,#edc478);border-color:#6d5521}
.nv3 .v-dcard .v-dtag{margin-left:6px}
.nv3 .v-dempty{margin:0;padding:18px 14px}
.nv3 .v-dfold{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:8px 14px;border:0;border-top:1px solid var(--v-line);border-radius:0;background:transparent;color:var(--v-soft);font:inherit;font-size:13px;text-align:left;cursor:pointer}
.nv3 .v-dfold:hover,.nv3 .v-dfold:focus-visible{background:var(--v-sel);color:var(--v-text)}
.nv3 .v-dfold .v-chev{flex:0 0 auto;margin:0 3px 0 1px;transform:rotate(-45deg)}
.nv3 .v-dfold[aria-expanded="true"] .v-chev{margin-top:-4px;transform:rotate(45deg)}
.nv3 .v-dfoldlabel{flex:0 0 auto;font-weight:700;color:var(--v-text)}
.nv3 .v-dfold>.v-count,.nv3 .v-dfoldneed{flex:0 0 auto}
.nv3 .v-dfold.is-long{padding-left:30px;font-size:12.5px}
.nv3 .v-dfold.is-long .v-dfoldlabel{font-weight:600;color:var(--v-soft)}
.nv3 .v-bubid{margin-left:6px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11.5px;font-weight:500;opacity:.8;white-space:nowrap}
.nv3 .v-drow.has-rm>.v-dcell:last-child{padding-right:86px}
.nv3 .v-dtags:empty{display:none}
.nv3 .v-dcard .v-pill{max-width:100%;min-width:0}
.nv3 .v-dcard{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border:0;border-top:1px solid var(--v-line);border-radius:0;background:transparent;color:var(--v-text);text-align:left;cursor:pointer}
.nv3 .v-dcard.is-sel{background:var(--v-sel)}
.nv3 .v-dcard.is-off .v-bub{opacity:.75}
.nv3 .v-dctext{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.nv3 .v-dcbub{display:contents}
.nv3 .v-dcard .v-bub{flex:0 1 auto}
.nv3 .v-dtag.is-gw{background:var(--v-accent);border-color:var(--v-accent);color:var(--v-accent-ink)}
.nv3 .dev-ic{--st:#8a948c;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:18px;height:18px;margin:0 6px 0 0;border-radius:50%;vertical-align:middle;background:var(--panel);color:var(--st);box-shadow:inset 0 0 0 1.5px var(--st)}
.nv3 .dev-ic svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* Device icons (owner 2026-11-17 "Let's go B"): the shipped Material Symbol for the device's type, plain, in the status colour; no ring. */
.nv3 .dev-ic.is-sym{width:20px;height:20px;margin:0 6px 0 3px;border-radius:0;background:transparent;box-shadow:none}
.nv3 .dev-ic.is-sym .ms{font-size:20px;color:var(--st)}
/* Option C from the same sample (a solid status badge): add class "dev-ic-badge" to the .nv3 wrapper to switch every icon. */
.nv3.dev-ic-badge .dev-ic.is-sym{width:22px;height:22px;margin:0 7px 0 0;border-radius:5px;background:var(--st)}
.nv3.dev-ic-badge .dev-ic.is-sym .ms{font-size:16px;color:var(--v-card)}
.nv3 .dev-ic[data-conn="online"]{--st:#1e8a4c}.nv3 .dev-ic[data-conn="degraded"]{--st:#b86e00}.nv3 .dev-ic[data-conn="offline"],.nv3 .dev-ic[data-conn="revoked"]{--st:#c63b33}.nv3 .dev-ic[data-conn="waiting"]{--st:#b8960c}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .nv3 .dev-ic[data-conn="online"]{--st:#4cc97f}:root:not([data-theme="light"]) .nv3 .dev-ic[data-conn="degraded"]{--st:#f0a63a}:root:not([data-theme="light"]) .nv3 .dev-ic[data-conn="offline"],:root:not([data-theme="light"]) .nv3 .dev-ic[data-conn="revoked"]{--st:#f06a62}:root:not([data-theme="light"]) .nv3 .dev-ic[data-conn="waiting"]{--st:#e3c34c}}
:root[data-theme="dark"] .nv3 .dev-ic[data-conn="online"]{--st:#4cc97f}:root[data-theme="dark"] .nv3 .dev-ic[data-conn="degraded"]{--st:#f0a63a}:root[data-theme="dark"] .nv3 .dev-ic[data-conn="offline"],:root[data-theme="dark"] .nv3 .dev-ic[data-conn="revoked"]{--st:#f06a62}:root[data-theme="dark"] .nv3 .dev-ic[data-conn="waiting"]{--st:#e3c34c}
/* The 2.x rows were buttons; here a row is a link to the detail page, so it keeps the button look (no underline, the row's color). */
.nv3 a.v-drow,.nv3 a.v-dcard{text-decoration:none;color:var(--v-text)}
/* Owner row 29: every row is one template; an agent computer's chip is the link to its own page */
.nv3 .v-dchiplink{display:inline-flex;align-items:center;gap:6px;min-width:0;text-decoration:none;color:var(--v-text)}
.nv3 .v-dchiplink .v-bub{color:var(--v-text)} /* the pale-tint chip reads in the page's text colour (owner 11-17), never the solid chip's --dc-fg (white on pale at 412 light) */
.nv3 a.v-drow .v-bub,.nv3 a.v-dcard .v-bub{color:var(--dc-fg,var(--v-text))}
@media (max-width:1279px){ /* device-list.mjs CARDS_AT (tablets get the card too: the table's device cell was cut off and a health tag could not be seen) and GATEWAY_CARDS_AT */
  /* Owner row 33: one card template that never wraps a part onto its own line. Chip | pill | chevron in fixed columns, the "IP · Network" line under them;
     a long name wraps inside the chip column only. */
  .nv3 .v-dcard{display:grid;grid-template-columns:minmax(0,1fr) auto 40px;grid-template-areas:"chip pill more" "text text text";column-gap:10px;row-gap:2px;align-items:center}
  .nv3 .v-dcard .v-dcbub{grid-area:chip;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px}
  .nv3 .v-dcard .v-dcbub .v-bub,.nv3 .v-dcard .v-dcbub .v-dchiplink{min-width:0;max-width:100%}
  .nv3 .v-dcard .v-dchiplink{min-height:44px} /* an agent's chip is a link: a phone tap target is at least 44 px high (relgate cd3ec222f) */
  .nv3 .v-dcard .v-bubname{white-space:normal}
  .nv3 .v-dcard .v-dctext{grid-area:text;min-width:0;padding-left:2px}
  .nv3 .v-dcard .v-dctag{display:flex;align-items:center;min-height:22px} /* a computer's tag has its place from the start: a tag that arrives later moves nothing and takes no width from the address */
  .nv3 .v-dcard .v-dctag .v-dtag{margin-left:0}
  .nv3 .v-dcard .v-pill{grid-area:pill;justify-self:end}
  .nv3 .v-dcard .v-dmore{grid-area:more;justify-self:end}
}
@media (max-width:1099px){
  .nv3 .v-dfold{padding:8px 12px}
  .nv3 .v-dfold.is-long{padding-left:26px}
}
@media (max-width:760px){.nv3 .v-dcport{display:none}} /* a phone's card keeps its address line as it was */
.nv3 .v-dcmesh{overflow-wrap:anywhere}
/* Device detail (2.x devPanelBody: header avatar, rows, folds), same file, same rules. */
.nv3 .eyebrow{font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--v-faint);margin:0}
.nv3 .v-av{position:relative;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--v-card2);box-sizing:border-box;flex:0 0 auto;box-shadow:inset 0 0 0 2px var(--ring,var(--v-nogroup))}
.nv3 .v-av .ic{width:14px;height:14px}
.nv3 .v-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid var(--v-line)}
.nv3 .v-row:first-of-type{border-top:0}
.nv3 .v-row.is-top{align-items:flex-start}
.nv3 .v-pav{width:52px;height:52px;border-radius:50%}
.nv3 .v-fold{border-top:1px solid var(--v-line);padding-top:10px}
.nv3 .v-fold>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;min-height:30px}
.nv3 .v-fold>summary::-webkit-details-marker{display:none}
.nv3 .v-fold>summary::after{content:'';margin-left:auto;width:8px;height:8px;border-right:2px solid var(--v-faint);border-bottom:2px solid var(--v-faint);transform:rotate(-45deg);transition:transform .15s}
.nv3 .v-fold[open]>summary::after{transform:rotate(45deg)}
.nv3 .v-foldbody{padding-top:4px}
.nv3 .v-rowk{flex:0 0 auto;white-space:nowrap}
.nv3 .v-rowv{min-width:0;overflow-wrap:anywhere}
.nv3 .v-pav.is-gw .ic{width:28px;height:28px}
.nv3 .v-pav.is-gw{background:color-mix(in srgb,var(--v-accent) 14%,var(--v-card));box-shadow:inset 0 0 0 2px var(--v-accent);border-radius:12px;color:var(--v-text)}
.nv3 .v-dcdetail{padding:16px 18px;display:flex;flex-direction:column;gap:14px}
.nv3 .v-dhdr{display:flex;align-items:center;gap:12px}
.nv3 .v-dhtxt{display:flex;flex-direction:column;min-width:0}
.nv3 .v-dhtxt h2{margin:0;font-size:18px}
/* Column heading row (2.x v-dhead). */
.nv3 .v-dhead{cursor:default;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--v-muted);border-top:0;padding-top:5px;padding-bottom:5px}
.nv3 .v-dhead:hover{background:transparent}
.nv3 .v-dhcell{position:relative;display:flex;align-items:center;min-width:0}
.nv3 .v-dhlabel{min-width:0;overflow-wrap:anywhere}
.nv3 .v-dhcell.is-sorted .v-dhbtn{color:var(--v-text)}
.nv3 .v-dhead.is-dragging .v-dhbtn{cursor:grabbing}
.nv3 .v-dhcell.is-drag{z-index:2}
.nv3 .v-dhcell.is-drag .v-dhbtn{background:color-mix(in srgb,var(--v-accent) 16%,var(--v-card));color:var(--v-text);box-shadow:0 0 0 1px var(--v-accent),0 6px 16px rgba(0,0,0,.35)}
.nv3 .v-dhcell.is-drop-before::before,.nv3 .v-dhcell.is-drop-after::after{content:'';position:absolute;z-index:3;top:0;bottom:0;width:3px;border-radius:2px;background:var(--v-accent)}
.nv3 .v-dhcell.is-drop-before::before{left:-8px}
.nv3 .v-dhcell.is-drop-after::after{right:-8px}
/* Page head (2.x #page-devices, network-v3 head): the title icon, tight counts, actions at the right; Add device is the green main button. */
.nv3 .sl-title-icon{display:inline-flex;font-size:28px;color:var(--sl-teal,var(--mint))}
.nv3 .sl-title-icon .ms{font-size:28px}
.nv3 .devices-counts{margin:4px 0 0}
.nv3 .devices-page-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.nv3 .devices-filter-wrap{flex:1 1 260px;min-width:0;width:min(420px,40vw)}
.nv3 .devices-add-primary{display:inline-flex;align-items:center;gap:6px;width:auto;height:var(--ctl-h);padding:0 14px;border:0;border-radius:var(--chip-radius);background:var(--btn);color:var(--btn-t);font-weight:700;cursor:pointer;white-space:nowrap}
.nv3 .devices-add-primary .ms{font-size:20px;color:inherit}
.nv3 .nf-refresh{position:relative}
.nv3 .nf-refresh b{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:var(--surface-radius);background:var(--sl-teal,var(--mint));color:var(--bg);font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.nv3 .nf-refresh b[hidden]{display:none}
/* Devices toolbar (owner 2026-11-17: the filter and refresh buttons "look stupid, icons are oddly small"): as 2.x, Filter and Refresh are square icon buttons the same
   height as Add device, with a normal-size icon. The page sets its own size here instead of inheriting one from a shared button rule (:not(#_) outranks those). */
.nv3{--dev-ctl:38px}
.nv3 .devices-page-actions .nf-refresh:not(#_):not(#__){flex:none;display:inline-flex;align-items:center;justify-content:center;width:var(--dev-ctl);min-width:var(--dev-ctl);height:var(--dev-ctl);min-height:var(--dev-ctl);padding:0;border:1px solid var(--line-strong);border-radius:var(--chip-radius);background:var(--soft);color:var(--text);cursor:pointer}
.nv3 .devices-page-actions .nf-refresh:not(#_):not(#__):hover{background:var(--v-sel)}
.nv3 .devices-page-actions .nf-refresh .ms:not(#_){font-size:20px;line-height:1;width:1em}
.nv3 .devices-page-actions .devices-add-primary:not(#_){height:var(--dev-ctl);min-height:var(--dev-ctl)}
.nv3 .devices-page-actions .nf-search:not(#_){height:var(--dev-ctl);min-height:var(--dev-ctl)}
.nv3 .devices-page-actions .nf-search .ms:not(#_){font-size:20px;line-height:1;flex:none}
@media (max-width:760px){.nv3{--dev-ctl:44px}}
/* The device chip is bolder and larger in 2.x rows (name 16px bold). */
.nv3 .v-drow .v-bub,.nv3 .v-dcard .v-bub{font-size:16px;font-weight:700}
.nv3 .v-dc-device{flex-direction:column;align-items:flex-start;gap:3px}
.nv3 .v-dc-device>.v-dtext{max-width:100%}
@media (max-width:760px){.nv3 .devices-page-actions{width:100%}.nv3 .devices-filter-wrap{width:auto}}
.nv3 .small{font-size:12.5px}
.nv3 .muted{color:var(--v-muted)}
@media (max-width:760px){.nv3 .devices-filter-wrap{flex:1 1 0;width:auto}.nv3 .devices-page-actions>*{flex:0 0 auto}.nv3 .devices-page-actions>.devices-filter-wrap{flex:1 1 0}.nv3 .sl-page-head{align-items:stretch}}
/* 2.x sets border-box on everything (portal.html); the frame here does not, so rows with width:100% plus padding overflowed. */
.nv3 *,.nv3 *::before,.nv3 *::after{box-sizing:border-box}
.nv3 .devices-add-primary .plus{font-size:22px;line-height:1;font-weight:600}
/* The device color picker (device-color-picker.mjs): ten swatches and the reset button. No rule styled them, so a swatch (an empty button) collapsed to a thin line
   (seq 3 walk 12:45Z, finding 3). 2.x: round 28px swatches in a wrapping row, the pressed one ringed. */
.nv3 .dcolorbox h3{margin:0 0 8px;font-size:14px}
.nv3 .dcolor{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.nv3 .dswatch{width:28px;height:28px;min-width:28px;padding:0;border-radius:50%;border:2px solid var(--v-line2);cursor:pointer;flex:0 0 28px}
.nv3 .dswatch[disabled]{cursor:not-allowed;opacity:.7}
.nv3 .dswatch.is-on{outline:2px solid var(--v-text);outline-offset:2px}
.nv3 .dswatch:focus-visible{outline:2px solid var(--v-text);outline-offset:2px}
.nv3 .dreset{margin-left:4px}
/* Android walk #28, #30: the default-color button is the shared secondary button, on its own line under a 5 x 2 grid of swatches. */
.nv3 .dcolor{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;justify-items:center}
.nv3 .dcolor .dreset{grid-column:1/-1;justify-self:start;margin-left:0}
/* Android walk #27: the way back is a styled link in the theme's link colour, not the browser's purple underlined default. */
.nv3 > p > a[href="#devices"]{color:var(--accent);text-decoration:none;font-weight:600}
.nv3 > p > a[href="#devices"]:hover{text-decoration:underline}
/* #31: the fold is already headed COLOR (the group keeps its aria-label). #30 and the phone tap rule: a swatch is a 44 px round target. */
.nv3 .v-foldbody .dcolorbox h3{display:none}
@media (max-width:600px){.nv3 .dswatch{width:44px;height:44px;min-width:44px;flex-basis:44px}}
/* Toolbar buttons stay on one line at every width (375 included): the label never wraps, the search box is what shrinks. */
.nv3 .devices-page-actions button,.nv3 .devices-page-actions .btn,.nv3 .sl-toolbar button,.nv3 .sl-toolbar .btn{white-space:nowrap;flex:0 0 auto;min-width:max-content}
.nv3 .devices-add-primary .add-label{white-space:nowrap}
/* Device colors (owner 2026-11-17, 2.x is the reference): the name chip keeps the 2.x devBubble look, filled in the device's color (.v-bub above).
   The Android 60 #23 override that made it plain text with a dot is gone: its dot drew the chip's text color (near black or white), so no device showed a color. */
/* Android 60 #27: the back link is a styled quiet button in the theme's text colour, never a browser-purple underlined link. */
.nv3 a.dev-back{text-decoration:none;color:var(--accent);padding:0 10px 0 0;min-height:34px}
@media (max-width:760px){.nv3 .devices-add-primary{height:44px;min-width:44px}}
/* TF-1 (2.x port): mesh address in mono with its Relay / Gateway tag; phone card lines (the Offline fold keeps no names: android 60 #24); Add device is "+" only on a phone (2.x 375), so the search keeps its words. */
.nv3 .v-mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12.5px}
.nv3 .v-dmesh{gap:6px}
.nv3 .v-dtag{flex:0 0 auto;padding:0 6px;border:1px solid var(--v-line2);border-radius:4px;font-size:11px;font-weight:600;line-height:18px;white-space:nowrap;color:var(--v-muted)}
.nv3 .v-dtag.is-gw{background:var(--btn);border-color:var(--btn);color:var(--btn-t)}
.nv3 .v-dcline{display:block}
@media (max-width:480px){.nv3 .devices-page-actions{flex-wrap:wrap}.nv3 .devices-page-actions>.devices-filter-wrap{flex:1 1 100%}} /* android-ssh b81: the search gets its own row on a phone so "Search devices" is not cut; the Add device label stays (android 60) */
/* Edit device (C7): a native dialog on the device page; the profile picker and this device's overrides, graphite tokens. */
dialog.dev-edit{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);color:var(--text)}
dialog.dev-edit::backdrop{background:rgba(0,0,0,.45)}
.dev-edit-head{display:flex;align-items:baseline;gap:10px;padding:16px 18px 8px}.dev-edit-head h2{margin:0;font-size:18px}
.dev-edit-body{display:flex;flex-direction:column;gap:16px;padding:8px 18px 12px;overflow:auto}
.dev-edit-sec h3{margin:0 0 2px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--muted)}
.dev-edit-profile{min-height:40px;width:100%;max-width:320px;margin-top:6px}
.dev-edit-list{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.dev-edit-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 10px;border:1px solid var(--line);border-radius:var(--radius-sm)}
.dev-edit-row.is-cleared{opacity:.8;border-style:dashed}
.dev-edit-key{flex:1 1 180px;min-width:0;font-family:var(--mono,ui-monospace,monospace);font-size:12.5px;overflow-wrap:anywhere}
.dev-edit-seg{display:inline-flex;border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden}
.dev-edit-segbtn{min-height:32px;padding:0 12px;border:0;background:transparent;color:var(--text);font:inherit;font-size:13px;cursor:pointer}
.dev-edit-segbtn[aria-pressed="true"]{background:var(--accent-soft);font-weight:700}
.dev-edit-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px 16px;border-top:1px solid var(--line)}
.v-dhdr .dev-edit-open{margin-left:auto;width:auto}
@media (max-width:480px){.dev-edit-foot{flex-direction:column-reverse}.dev-edit-foot .btn{width:100%;min-height:44px}.dev-edit-segbtn{min-height:44px}}

/* The name chip as 2.x drew it (owner 11-17: the solid full-colour blocks "look dumb"): a pale tint of the device's colour with a border in it, the page's text colour, 14 px (a long name wraps inside the chip; nothing is cut off, owner rule 11-07), in both themes. */
.nv3 .v-bub{background:color-mix(in srgb,var(--dc-raw,var(--v-sunk)) 20%,var(--v-card));border-color:color-mix(in srgb,var(--dc-raw,var(--v-line2)) 60%,var(--v-line2));color:var(--v-text);max-width:min(100%,240px);padding:2px 10px 2px 3px}
.nv3 a.v-drow .v-bub,.nv3 a.v-dcard .v-bub{color:var(--v-text)}
.nv3 .v-drow .v-bub,.nv3 .v-dcard .v-bub{font-size:14px;font-weight:650}
.nv3 .v-bubname{overflow-wrap:break-word}
/* Owner 11-21 (3.0.0.65): one row under the title: the tabs, "2 devices · 1 online" right after them, then search and the controls at the right. The row
   carries the tab line; on a phone the controls wrap under the tabs. */
.nv3.devices .devices-bar{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin:0 0 14px;padding:0 0 6px}
.nv3.devices .devices-bar .pm-tabs{border-bottom:0;flex:0 0 auto}
.nv3.devices .devices-bar .devices-counts{margin:0;white-space:nowrap}
.nv3.devices .devices-bar-gap{flex:1 1 0}
.nv3.devices .devices-bar .devices-page-actions{display:flex;align-items:center;gap:8px;flex:0 1 auto;min-width:0}
@media (max-width:760px){.nv3.devices .devices-bar-gap{display:none}.nv3.devices .devices-bar .devices-page-actions{flex:1 1 100%}}
/* 2.x network-v3.css (master, L537-541): the heading button that sorts, and its arrow. The label wraps (owner rule: never an ellipsis). */
.nv3 .v-dhbtn{display:inline-flex;align-items:center;gap:4px;width:auto;max-width:calc(100% + 12px);min-height:30px;margin:0 -6px;padding:4px 6px;border:0;border-radius:var(--chip-radius);background:transparent;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;text-align:left;box-shadow:none;cursor:pointer;user-select:none;-webkit-user-select:none}
.nv3 .v-dhbtn:hover,.nv3 .v-dhbtn:focus-visible{background:var(--v-sel);color:var(--v-text)}
.nv3 .v-dsort{flex:0 0 auto;font-size:13px;line-height:1;color:var(--v-accent)}
/* 2.x keyboard row highlight (owner 11-21): the row Up/Down moves to looks like 2.x's selected row. */
.nv3 a.v-drow:focus-visible,.nv3 a.v-dcard:focus-visible{outline:0;background:var(--v-sel);box-shadow:inset 2px 0 0 var(--v-accent)}
/* Devices > Seen by your Gateway (gateways/devices-tab.mjs; moved from gateways.css 11-21: only the Gateway page loads that sheet; owner 11-20, samples lanes/gw-devices-seen-redo/): a 2.x-style table, one line per device, details behind an expand.
   Search and filters above it; on a phone the filters fold behind one "Filters" button and rows go to two lines. Text never overflows its card. */
.gw-devices .gd-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.gw-devices .gd-head h2 { margin: 0; font-size: 17px; font-weight: 650; }
.gw-devices .gd-count { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; line-height: 20px; }
.gw-devices .gd-info { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.gw-devices .gd-info .ms { font-size: 18px; }
.gw-devices .gd-about { margin: -4px 0 12px; }
.gw-devices .gd-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; min-width: 0; }
.gw-devices .gd-search { flex: 1 1 220px; min-width: 0; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--btn-radius, 8px); background: var(--field, transparent); color: var(--muted); }
.gw-devices .gd-search .ms { font-size: 18px; flex: 0 0 auto; }
.gw-devices .gd-q { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; }
.gw-devices .gd-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.gw-devices .gd-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--btn-radius, 8px); overflow: hidden; height: 36px; }
.gw-devices .gd-seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; padding: 0 12px; cursor: pointer; white-space: nowrap; }
.gw-devices .gd-seg button + button { border-left: 1px solid var(--line); }
.gw-devices .gd-seg button[aria-pressed="true"] { background: var(--soft); color: var(--text); font-weight: 600; }
.gw-devices .gd-select { height: 36px; max-width: 100%; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--btn-radius, 8px); background: var(--field, transparent); color: var(--text); font: inherit; font-size: 13px; }
.gw-devices .gd-filters { display: none; }
.gw-devices .gd-table { border: 1px solid var(--line); border-radius: var(--radius, 10px); overflow: hidden; }
.gw-devices .gd-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, .95fr) minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, .9fr) 28px; align-items: center; gap: 12px; padding: 0 14px; min-height: 48px; border-top: 1px solid var(--line); font-size: 13.5px; }
.gw-devices .gd-row.gd-th { border-top: 0; min-height: 36px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--soft); }
.gw-devices .gd-row.is-open { background: color-mix(in srgb, var(--soft) 55%, transparent); }
.gw-devices .gd-row.is-off .gd-name, .gw-devices .gd-row.is-off .gd-mono { color: var(--muted); }
.gw-devices .gd-dev { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gw-devices .gd-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); }
.gw-devices .gd-dot.off { background: var(--muted); box-shadow: none; opacity: .6; }
.gw-devices .gd-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--soft); flex: 0 0 28px; color: var(--text); }
.gw-devices .gd-ic .ms { font-size: 17px; }
.gw-devices .gd-nm { min-width: 0; display: flex; flex-direction: column; }
.gw-devices .gd-name { font-weight: 600; overflow-wrap: anywhere; }
.gw-devices .gd-sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.gw-devices .gd-sub.m { display: none; }
.gw-devices .gd-sub.gd-tag { font-size: 11px; letter-spacing: .02em; }
.gw-devices .gd-sub.gd-tag.old { color: var(--muted); font-style: italic; opacity: .85; }
.gw-devices .gd-mono { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.gw-devices .gd-net { overflow-wrap: anywhere; }
.gw-devices .gd-tr { font-size: 12.5px; white-space: nowrap; color: var(--text); }
.gw-devices .gd-tr .a { color: var(--muted); margin-right: 2px; }
.gw-devices .gd-tr .gap { display: inline-block; width: 10px; }
.gw-devices .gd-seen { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.gw-devices .gd-x { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.gw-devices .gd-x .ms { font-size: 20px; transition: transform .15s; }
.gw-devices .gd-row.is-open .gd-x .ms { transform: rotate(180deg); }
.gw-devices .gd-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 24px; margin: 0; padding: 4px 14px 16px 66px; background: color-mix(in srgb, var(--soft) 55%, transparent); font-size: 12.5px; overflow-wrap: anywhere; }
.gw-devices .gd-more dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-top: 8px; }
.gw-devices .gd-more dd { margin: 2px 0 0; }
.gw-devices .gd-more .gd-wide { grid-column: 1 / -1; }
.gw-devices .gd-more ul { margin: 2px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 12px; }
.gw-devices .gd-more li { padding: 1px 0; }
.gw-devices .gd-none { margin: 0; padding: 14px; }
@media (max-width: 760px) {
  .gw-devices .gd-tools { flex-wrap: wrap; }
  .gw-devices .gd-search { flex: 1 1 0; }
  .gw-devices .gd-filters { display: inline-flex; height: 36px; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--btn-radius, 8px); background: transparent; color: var(--text); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
  .gw-devices .gd-filters .ms { font-size: 18px; }
  .gw-devices .gd-filters .n { color: var(--muted); }
  .gw-devices .gd-pick { display: none; flex: 1 1 100%; }
  .gw-devices .gd-pick.is-shown { display: flex; }
  .gw-devices .gd-row.gd-th { display: none; }
  .gw-devices .gd-row { grid-template-columns: minmax(0, 1fr) auto 44px; gap: 4px 8px; padding: 6px 8px 6px 12px; border-top: 1px solid var(--line); }
  .gw-devices .gd-body > .gd-row:first-child { border-top: 0; }
  .gw-devices .gd-row > .c-ip, .gw-devices .gd-row > .c-mac, .gw-devices .gd-row > .c-net, .gw-devices .gd-row > .c-seen { display: none; }
  .gw-devices .gd-row .gd-sub.m { display: block; }
  .gw-devices .gd-tr { text-align: right; font-size: 12px; }
  .gw-devices .gd-tr .gap { display: block; width: 0; height: 0; }
  .gw-devices .gd-more { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 4px 12px 14px 12px; }
  /* 44 px tap targets on a phone (11-21, light reviewer on #6347; the #6379 pattern): the info icon, the row expand, Filters, and the Seen buttons. */
  .gw-devices .gd-info:not(#_), .gw-devices .gd-x:not(#_) { min-width: 44px; min-height: 44px; }
  .gw-devices .gd-filters:not(#_) { min-height: 44px; }
  .gw-devices .gd-seg:not(#_) { height: 44px; display: flex; flex: 1 1 100%; }
  .gw-devices .gd-seg:not(#_) button { flex: 1 1 0; min-height: 44px; }
  .gw-devices .gd-select:not(#_) { min-height: 44px; flex: 1 1 auto; }
}
/* The sortable headings look like 2.x's plain column labels, not buttons: graphite's button rule outranks .v-dhbtn, so the reset carries
   :not(#_):not(#__) (as the page's other toolbar rules do). */
.nv3 .v-dhead .v-dhbtn:not(#_):not(#__){border:0;background:transparent;box-shadow:none;font:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;width:auto;height:auto;min-height:30px;margin:0 -6px;padding:4px 6px}
.nv3 .v-dhead .v-dhbtn:not(#_):not(#__):hover,.nv3 .v-dhead .v-dhbtn:not(#_):not(#__):focus-visible{background:var(--v-sel);color:var(--v-text)}
.nv3 .v-dhead .v-dhcell.is-sorted .v-dhbtn:not(#_):not(#__){color:var(--v-text)}
/* Owner 11-21: the tabs, the counts and the controls on ONE row on a wide screen; the search gives way first. */
@media (min-width:761px){
  .nv3.devices .devices-bar{flex-wrap:nowrap}
  .nv3.devices .devices-bar .devices-page-actions{flex:1 1 auto;justify-content:flex-end;min-width:0}
  .nv3.devices .devices-bar .devices-filter-wrap{flex:1 1 200px;width:auto;max-width:420px;min-width:140px}
}
/* Devices as ONE list (owner P0 11-21, samples v2): the plain Agent tag beside the chip, and the All / Agent / Online chips beside search. */
.nv3 .v-dc-device{display:flex;align-items:center;gap:8px;min-width:0}
.nv3 .v-dtag.is-agent{background:var(--accent);border-color:transparent;color:var(--bg,#fff)}
.nv3 .v-dchips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.nv3 .v-dchip{min-height:34px;padding:0 16px;border:1px solid var(--v-line2,var(--line));border-radius:999px;background:var(--card);color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.nv3 .v-dchip:hover{border-color:var(--text)}
.nv3 .v-dchip.is-on{background:var(--accent);border-color:transparent;color:var(--bg,#fff)}
@media (max-width:760px){.nv3 .v-dchip{min-height:44px}}
/* A Gateway-seen device's details, opened in place (samples v2): label over value in three columns, the actions under them. */
.nv3 .v-dc-more{display:flex;justify-content:flex-end}
.nv3 .v-dmore{display:inline-grid;place-items:center;width:32px;height:32px;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}
.nv3 .v-dmore:hover{color:var(--text);background:color-mix(in srgb,var(--text) 8%,transparent)}
.nv3 .v-dpanel{padding:12px 16px 14px;border-top:1px solid var(--v-line2,var(--line));background:color-mix(in srgb,var(--text) 3%,transparent)}
.nv3 .v-dpgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px}
.nv3 .v-dpkv{display:flex;flex-direction:column;gap:3px;min-width:0}
.nv3 .v-dpk{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.nv3 .v-dpv{overflow-wrap:anywhere}
.nv3 .v-dpacts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
@media (max-width:760px){.nv3 .v-dpgrid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media (max-width:1099px){.nv3 .v-dmore{width:44px;height:44px}} /* the card's chevron is a touch target wherever the card is drawn */
/* v2: the chip and its tags on one line, from the left (the older cell rule stacked them in a column). */
.nv3 .v-drow .v-dc-device{flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px 8px}
/* Owner 11-26: a warning is always fully visible, and the row stays one line at one height. The tags keep their width; the name takes what room is left, and a cut name
   fades at its edge (device-list.mjs marks it), never an ellipsis and never a second line. */
.nv3 .v-drow .v-dc-device{flex-wrap:nowrap}
.nv3 .v-drow .v-dc-device>.v-dchiplink{flex:0 1 auto;min-width:0;max-width:100%}
.nv3 .v-drow .v-dc-device .v-bub{flex:0 1 auto;min-width:0}
.nv3 .v-drow .v-dc-device .v-bubname{flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:clip}
.nv3 .v-drow .v-dc-device .v-bubname.is-cut{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 20px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 20px),transparent)}
.nv3 .v-drow .v-dc-device .v-dtag{flex:0 0 auto}
.nv3 .v-drow .v-dc-port .v-dtext{white-space:nowrap} /* a port id is one value: its column is wide enough for it (device-list.mjs) */
.nv3 .v-dtag.is-bad{color:var(--bad);border-color:color-mix(in srgb,var(--bad) 45%,transparent)}

/* owner 11-23 (2.x grouped the list by Location): a Gateway heads the devices only it sees. One row high like a fold; its online dot; its networks; the count. */
.nv3 .v-dgw{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:8px 14px;border:0;border-top:1px solid var(--v-line);border-radius:0;background:color-mix(in srgb,var(--v-text) 3%,transparent);color:var(--v-text);font:inherit;font-weight:600;text-align:left;cursor:pointer}
.nv3 .v-dgw:hover,.nv3 .v-dgw:focus-visible{background:var(--v-sel)}
.nv3 .v-dgw .v-chev{transition:transform .15s}
.nv3 .v-dgw[aria-expanded="false"] .v-chev{transform:rotate(-90deg)}
.nv3 .v-dgwdot{width:8px;height:8px;border-radius:50%;background:var(--v-soft,var(--muted));flex:none}
.nv3 .v-dgwdot.is-on{background:var(--good)}
.nv3 .v-dgwdot.is-off{background:var(--bad)}
.nv3 .v-dgwname{min-width:0;overflow-wrap:anywhere}
.nv3 .v-dgwnets{font-weight:400;min-width:0;overflow-wrap:anywhere}
.nv3 .v-dgw .v-count{margin-left:auto}
@media (prefers-reduced-motion:reduce){.nv3 .v-dgw .v-chev{transition:none}}

/* owner 11-23: the device opens as a modal over Devices (owner modal rules: a ✕, an outside click only nudges, the page behind never scrolls, no layout jump) */
.dev-modal{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.55);overscroll-behavior:contain}
.dev-modal-panel{box-sizing:border-box;width:min(760px,100%);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;background:var(--card,var(--panel));color:var(--text);border:1px solid var(--line);border-radius:6px;box-shadow:0 24px 64px rgba(0,0,0,.35);overflow:hidden}
.dev-modal-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--text) 4%,var(--card,var(--panel)))}
.dev-modal-head h2{margin:0;font-size:18px}
.dev-modal-x{flex:none;width:36px;height:36px;display:inline-grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--muted);font-size:16px;cursor:pointer}
.dev-modal-x:hover{color:var(--text)}
.dev-modal-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:12px 14px}
.dev-modal-body .v-card.v-dcdetail{border:0;box-shadow:none;padding:0;background:transparent}
@keyframes dev-nudge{0%,100%{transform:none}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.dev-nudge{animation:dev-nudge .25s}
@media (prefers-reduced-motion:reduce){.dev-nudge{animation:none}}
@media (max-width:760px){.dev-modal-x{width:var(--tap-min);height:var(--tap-min)}}
/* an Offline group inside a Gateway's group (owner 11-24): indented under its Gateway head */
.nv3 .v-dfold.is-in{padding-left:30px}
/* LR3 on #6952: the update-first line inside Edit device keeps the body's side padding at every width */
.dev-edit .update-first{margin:0;padding:0 18px 12px}
/* The device summary (owner-approved sample 11-26), in the shared details dialog (graphite.css sl-dlg). */
.nv3 .dv.v-card{border:0;box-shadow:none;padding:0;background:transparent}
.dv-sum,.dv-editview{display:flex;flex-direction:column;gap:12px;min-width:0}
/* as the approved sample: the button icons, a dot in the state pill, a blue first marker (the console's own --info is grey) */
.dv-head .dv-editbtn,.dv-links .dv-link{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.dv-editbtn .ms,.dv-link .ms{font-size:16px}
.sl-dlg .dv-head .dv-editbtn:not(#_),.sl-dlg .dv-links .dv-link:not(#_){border-radius:8px}
.sl-dlg .dv-links .dv-link:not(#_){background:var(--soft);border:1px solid var(--line)}
.sl-dlg .dv-links .dv-link:not(#_):hover{border-color:var(--muted)}
.dv-pill::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:6px;vertical-align:1px}
.sl-dlg .dv-about.sl-dlg-sec:not(#_){--sl-tone:#245cb3}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .sl-dlg .dv-about.sl-dlg-sec:not(#_){--sl-tone:#9cbeff}}
:root[data-theme="dark"] .sl-dlg .dv-about.sl-dlg-sec:not(#_){--sl-tone:#9cbeff}
.sl-dlg .dv-warn.sl-dlg-facts:not(#_){margin-top:8px}
/* tamper reporting 3.0: the removal a device reported, a red marker above its facts */
.sl-dlg .dv-removal p:not(#_){margin:0;font-size:13px}.sl-dlg .dv-removal p.small:not(#_){margin-top:4px;font-size:12px}
.dv-removal h4 .sl-i{display:inline-flex;align-items:center;height:14px;margin-left:6px;vertical-align:middle}
.dev-modal.sl-dlg .dev-modal-body{scrollbar-gutter:auto}
@media (max-width:560px){.sl-dlg .dv-head .dv-editbtn:not(#_){min-height:46px}.dev-modal.sl-dlg .sl-dlg-panel.dev-modal-panel:not(#_){border:0;border-radius:0;box-shadow:none}.dv-links .dv-link:not(#_){min-height:44px}}
.dv-sum[hidden],.dv-editview[hidden]{display:none}
.dv-page .dv-pagebody{padding:14px 18px 18px}
.dv-head .dv-av{position:relative;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:2px solid var(--ring,var(--line));color:var(--ring,var(--muted));background:color-mix(in srgb,var(--ring,var(--muted)) 16%,var(--card))}
.dv-head .dv-av .ms{font-size:22px;color:inherit}
.dv-av[data-conn]::after{content:"";position:absolute;right:-1px;bottom:-1px;width:12px;height:12px;border-radius:50%;border:2px solid var(--card);background:var(--muted)}
.dv-av[data-conn="online"]::after{background:var(--good)}.dv-av[data-conn="offline"]::after,.dv-av[data-conn="revoked"]::after{background:var(--bad)}.dv-av[data-conn="waiting"]::after{background:var(--warn)}
.dv-titles{min-width:0}.dv-titles h3{overflow-wrap:anywhere}
/* gap walk D1: the rename pencil right of the name (gateways/rename-dialog.mjs), on the name's line */
.dv-namerow{display:flex;align-items:center;gap:6px;min-width:0}.dv-namerow h3{margin:0;min-width:0}
.dv-sub{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:4px;color:var(--muted);font-size:12.5px}
.dv-pill{padding:2px 9px;border-radius:4px;background:var(--soft);font-weight:600;font-size:12px;color:var(--muted)}
.dv-pill[data-conn="online"]{background:var(--good-bg);color:var(--good)}.dv-pill[data-conn="offline"],.dv-pill[data-conn="revoked"]{color:var(--bad)}.dv-pill[data-conn="waiting"]{color:var(--warn)}
.dv-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 34px;align-items:start}
.dv-two .sl-dlg-facts dd{overflow-wrap:anywhere}
.dv-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.dv .dv-bar h4:not(#_){margin:0}
.dv-seg{display:inline-flex;border:1px solid var(--line);border-radius:4px;overflow:hidden}
.dv-seg .dv-segbtn:not(#_){min-height:32px;padding:0 12px;border:0;border-radius:0;background:transparent;color:var(--muted);font:600 12.5px var(--font);cursor:pointer}
.dv-seg .dv-segbtn+.dv-segbtn:not(#_){border-left:1px solid var(--line)}
.dv-seg .dv-segbtn[aria-pressed="true"]:not(#_){background:var(--soft);color:var(--text)}
.dv-act-body{min-height:260px;display:flex;flex-direction:column;gap:12px}
.dv-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dv-stat{background:var(--soft);border-radius:4px;padding:8px 12px}.dv-stat small{display:block;color:var(--muted);font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.dv-stat b{font:600 28px/1.15 var(--font-head,var(--font))}.dv-stat.dv-blocked b{color:var(--bad)}
.dv-list{display:flex;flex-direction:column;min-width:0}.dv .dv-list h5{margin:0 0 4px;font-size:12px}
.dv-item{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid var(--line);font-size:12.5px;min-width:0}
.dv-item-name{min-width:0;white-space:nowrap;overflow-x:auto;scrollbar-width:thin}.dv-item-n{flex:none;color:var(--muted);white-space:nowrap}.dv-item-n em{font-style:normal;color:var(--bad)}
.dv-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.dv-editview .dev-edit-open{align-self:flex-start}
@media (max-width:560px){
.dev-modal.sl-dlg{padding:0}.dev-modal.sl-dlg .dev-modal-panel{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}
.dv-head .sl-dlg-tools{display:contents}.dv-head .dv-editbtn{grid-column:1/-1;grid-row:2;min-height:44px}.dv-head .sl-dlg-tools .sl-dlg-x:not(#_){grid-column:3;grid-row:1}
.dv-two{grid-template-columns:minmax(0,1fr);gap:12px}.dv-about .dv-two{gap:0}.dv-seg .dv-segbtn:not(#_){min-height:44px}.dv-editview .dev-edit-open{align-self:stretch;min-height:44px}.dv-links .dv-link{min-height:44px}
}
/* the health read failed: a quiet note at the chips' right end; its (i) keeps its tap size without making the row taller */
.nv3 .devices-health-unread{display:inline-flex;align-items:center;margin-left:auto;white-space:nowrap;font-size:12.5px;color:var(--v-muted)}
.nv3 .devices-health-unread .sl-i-btn{margin:-8px -6px -8px 0}
.nv3 .devices-health-unread .hu-short{display:none}
/* a narrow phone: the words that fit beside the three chips; the full words stay for assistive tech and in the (i) */
@media (max-width:399px){.nv3 .devices-health-unread .hu-long{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.nv3 .devices-health-unread .hu-short{display:inline}}
/* owner row 95: while the loading lock shows, nothing sits under it */
.net2x.devices[data-wait] ~ * { display: none !important; }
