/* ShadowLatch 3.0 Manage: the Signal brand (docs/brand/README.md). Light by default, dark by the
   system setting. Corners: 6 px surfaces, 4 px controls. The mark is the padlock-and-SL PNG tinted
   with the text color; the wordmark is the SHADOWLATCH(TM) asset (outlines), never typed text. */

/* Owner 11-19: "cursors need to change to pointer if its clickable". Every control the person can click shows the hand; a disabled one
   shows not-allowed; plain text keeps the default arrow. Zero weight (:where()), so a page's own cursor for a reason (a drag grip, a busy
   button) still wins; tools/gate-checks.mjs's cursor rule checks every clickable control in every capture. The same list is CLICKABLE there. */
:where(a[href], button, summary, select, label[for], input:is([type=checkbox], [type=radio], [type=submit], [type=button], [type=reset]), [role=button], [role=tab], [role=link], [role=menuitem], [role=switch], [role=checkbox], [role=radio], [role=option], [onclick], .clickable) { cursor: pointer; }
:where(:disabled, [aria-disabled="true"], fieldset:disabled *) { cursor: not-allowed; }
:root {
  --bg: #f2f3f5; --card: #ffffff; --panel-soft: #eceef1; --line: #e1e4e8; --text: #1b1c1d; --muted: #686c70;
  --accent: #4f792c; --button-bg: #c2fa84; --button-text: #1b2b11;
  --good: #24654a; --good-bg: rgba(36, 101, 74, .08); --warn: #815715; --warn-bg: rgba(129, 87, 21, .08); --bad: #a63431; --bad-bg: rgba(166, 52, 49, .07); --info: #4a5a52; --info-bg: rgba(74, 90, 82, .07);
  --mono: ui-monospace, Consolas, monospace; /* --font comes from tokens.css (DM Sans): a system stack here overrode it on every page */
  color-scheme: light dark;
  /* The marketing splash (store-site signal-tokens.css). */
  /* --field, --accent-soft and --logo-tint come from tokens.css */ --glow: rgba(79, 121, 44, .16); --border-subtle: #e3e8e0;
  --splash-center: #ffffff; --splash-mid: #f2f3f5; --splash-glow: rgba(0, 0, 0, 0); --shadow-md: 0 12px 36px rgba(17, 19, 24, .07);
}
/* Dark: by the system setting unless the person chose Light, or when they chose Dark (data-theme, the theme switch): the same guard as tokens.css. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f0f; --card: #161718; --panel-soft: #1d1f20; --line: #2a2d2f; --text: #eef0ee; --muted: #9a9f9c;
    --glow: rgba(194, 250, 132, .16); --border-subtle: rgba(255, 255, 255, .07);
    --splash-center: #161718; --splash-mid: #0e0f0f; --splash-glow: rgba(0, 0, 0, 0); --shadow-md: 0 16px 44px rgba(0, 0, 0, .28);
    --accent: #c2fa84; --good: #8fd3ad; --good-bg: rgba(143, 211, 173, .10); --warn: #e6c07a; --warn-bg: rgba(230, 192, 122, .10); --bad: #ff9f97; --bad-bg: rgba(255, 159, 151, .10); --info: #b7c6bd; --info-bg: rgba(183, 198, 189, .08);
  }
}
:root[data-theme="dark"] {
    --bg: #0e0f0f; --card: #161718; --panel-soft: #1d1f20; --line: #2a2d2f; --text: #eef0ee; --muted: #9a9f9c;
    --glow: rgba(194, 250, 132, .16); --border-subtle: rgba(255, 255, 255, .07);
    --splash-center: #161718; --splash-mid: #0e0f0f; --splash-glow: rgba(0, 0, 0, 0); --shadow-md: 0 16px 44px rgba(0, 0, 0, .28);
    --accent: #c2fa84; --good: #8fd3ad; --good-bg: rgba(143, 211, 173, .10); --warn: #e6c07a; --warn-bg: rgba(230, 192, 122, .10); --bad: #ff9f97; --bad-bg: rgba(255, 159, 151, .10); --info: #b7c6bd; --info-bg: rgba(183, 198, 189, .08);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); letter-spacing: -0.006em; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none; border-radius: 6px; } /* owner row 37: the logo goes to the root ("./": the bundle is served at "/", decision 89) */
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.brand .mark { width: 22px; height: 20px; background-color: var(--text); -webkit-mask: url("./assets/mark.png") center / contain no-repeat; mask: url("./assets/mark.png") center / contain no-repeat; }
/* wordmark.svg is 206.79 x 15 */
.brand .wm { height: 12px; width: 165.4px; background-color: var(--text); -webkit-mask: url("./assets/wordmark.svg") center / contain no-repeat; mask: url("./assets/wordmark.svg") center / contain no-repeat; }
main { max-width: 560px; margin: 0 auto; padding: 32px 16px 56px; display: flex; flex-direction: column; gap: 14px; }
main.wide { max-width: 960px; }
h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
.p { margin: 0; color: var(--muted); font-size: 14px; }
.note { margin: 0; color: var(--muted); font-size: 13px; }
/* GW-03 (#5847): the Lower assurance label in the warning tone on every page that lists devices (Devices, the Gateway page), not only where .tone-warn is scoped. */
.note.gw-assure { color: var(--warn); font-weight: 600; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius, 10px); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.card.center { align-items: center; }
.code { font: 600 34px var(--mono); letter-spacing: .12em; }
.btn { font: 600 14px var(--font); border-radius: 4px; padding: 9px 14px; border: 1px solid var(--line); background: var(--panel-soft); color: var(--text); align-self: flex-start; cursor: pointer; }
.btn.pri { background: var(--button-bg); color: var(--button-text); border-color: var(--button-bg); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link { color: var(--accent); font: inherit; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; align-self: flex-start; text-decoration: underline; text-underline-offset: 3px; }
.pill { font-size: 12px; font-weight: 600; border-radius: 4px; padding: 2px 10px; }
.pill.good, .banner.good { background: var(--good-bg); color: var(--good); }
.pill.warn, .banner.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad, .banner.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info, .banner.info { background: var(--info-bg); color: var(--info); }
.banner { border-radius: 4px; padding: 10px 12px; font-size: 13px; }
.banner b { display: block; }
/* A closable notice (2.x: a quiet close on the title line, top right): 44 px tap target, the banner's own colour. */
.banner.sl-closable { position: relative; padding-right: 52px; }
.banner .sl-close { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; opacity: .75; cursor: pointer; }
.banner .sl-close:hover, .banner .sl-close:focus-visible { opacity: 1; }
.banner .sl-close .ms { font-size: 20px; line-height: 1; }
.steps { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.steps .wait { color: var(--muted); }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
input { font: 14px var(--font); padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--text); }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
/* "Seen by the Gateway": seven columns, so the table scrolls inside its own box at phone width (the policy view's .tblwrap is another thing) */
.seen-wrap { max-width: 100%; overflow-x: auto; }
.seen-wrap table { min-width: 560px; }
/* Devices seen / agentless lists: one card per device whenever the CARD is narrow, not only on a phone (owner 11-17 at ~920 px with the menu open: every cell broke a word per line). */
.seen-wrap { container-type: inline-size; }
@container (max-width: 860px) {
  .seen-wrap table, .seen-wrap tbody, .seen-wrap tr { display: block; min-width: 0; width: 100%; }
  .seen-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .seen-wrap tr { padding: 10px 0; border-top: 1px solid var(--line); }
  .seen-wrap td { display: grid; grid-template-columns: minmax(110px, 28%) minmax(0, 1fr); gap: 10px; padding: 4px 0; border: 0; overflow-wrap: break-word; word-break: normal; }
  .seen-wrap td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; }
}
.seen-wrap .acts { display: flex; flex-wrap: wrap; gap: 6px; }   /* New devices row actions: whole buttons wrap, never a label (build2 22:34Z: "Block" broke over 2 lines at 1108) */
.seen-wrap .btn.btn.btn { white-space: nowrap; overflow-wrap: normal; min-width: max-content; }   /* every button in the New devices table (row actions AND the decision form's Allow / Block). (0,4,0) beats net2x.css's .net2x :is(... button ...) { white-space: normal; overflow-wrap: anywhere } (0,3,1), which broke "Block" mid-word inside Devices at 1108 */
/* Wrap pass 11-19, cause B (New devices / Devices seen): no one-word last lines.
   Table (card wider than 860 px): short facts stay on one line, dates break only into two even halves, the main note column takes the leftover width, the Device column keeps room for its note. */
@container (min-width: 861px) {
  .seen-wrap td { vertical-align: top; }
  .seen-wrap td.sw-fact { white-space: nowrap; }
  .seen-wrap td.sw-how { text-wrap: balance; }
  .seen-wrap td.sw-date { text-wrap: balance; min-width: 10em; }
  /* New devices' Attempts (11-21, light reviewer on #6347): its own minimum, so "at least 412 attempts" and "203.0.113.66 · tcp 22 · 380" never wrap a
     character at a time beside the State column (both used to be sw-main, width 100%). */
  .seen-wrap td.sw-att { min-width: 16em; }
  .seen-wrap td.sw-main { width: 100%; }
  .seen-wrap td:first-child { min-width: 13em; }
}
.seen-wrap td, .seen-wrap .note, .seen-wrap li { text-wrap: pretty; }   /* notes and destination lines ("203.0.113.66 · tcp 22 · 380") never end on one word */
/* Cards (narrow card or phone): a labelled cell keeps everything in its value column (a note used to drop into the 84-110 px label column: 4 lines for "By its hardware address (hashed)"); an unlabelled New devices cell stacks full width. */
@container (max-width: 860px) {
  .seen-wrap td[data-label] > * { grid-column: 2; }
  .seen-wrap td:not([data-label]) { display: block; }
}
@media (max-width: 760px) {
  .seen-wrap td[data-label] > * { grid-column: 2; }
  .seen-wrap td:not([data-label]) { display: block; }
}
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
/* the full-page access gate (decisions §Y): its own layout, never Manage behind an overlay */
main.gate { max-width: 640px; gap: 16px; }
.sec { margin-top: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: var(--text); padding: 14px 16px; min-height: 64px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); cursor: pointer; }
.opt b { font-size: 15.5px; }
.opt span { font-size: 13.5px; color: var(--muted); }
.opt.pri { border-color: var(--button-bg); box-shadow: inset 4px 0 0 var(--button-bg); }
.opt.fact { background: var(--panel-soft); border-style: dashed; cursor: default; }
.gmark { width: 12px; height: 12px; border-radius: 50%; }
.gmark.warn { background: var(--warn); } .gmark.bad { background: var(--bad); }
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-auto-flow: dense; gap: 10px; }
.pl { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--text); text-decoration: none; }
.pl b { font-size: 14.5px; } .pl .act { font-size: 13.5px; font-weight: 600; color: var(--accent); } .pl small { font-size: 12px; color: var(--muted); }
.pl.na { background: var(--panel-soft); } .pl.na .act { color: var(--muted); }
.pl.big { grid-column: span 2; grid-row: span 2; justify-content: center; padding: 18px 20px; } .pl.big b { font-size: 18px; } .pl.big .act { font-size: 16px; }
.gfoot { padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 400px) { .top { padding: 12px 16px; } .brand .wm { height: 10px; width: 137.9px; } }
form.signin { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 440px; }
form.signin label.field, form.signin .banner { align-self: stretch; }
form.signin .with-info { align-self: stretch; display: flex; align-items: center; gap: 8px; }
form.signin .with-info input { flex: 1; min-width: 0; }
dialog.info-modal { max-width: 360px; border: 1px solid var(--line); border-radius: var(--radius, 10px); background: var(--card); color: var(--text); padding: 18px 20px; }
dialog.info-modal::backdrop { background: rgb(0 0 0 / .5); }
dialog.info-modal .p { color: var(--text); margin-bottom: 14px; }
/* "Still there?" (idle-signout.mjs): Manage's info-modal, a little wider for its sentence; the title, the line, then the two buttons at the end. */
dialog.idle-warn { width: min(420px, calc(100vw - 32px)); max-width: 420px; }
dialog.idle-warn h3 { margin: 0 0 8px; font-size: 17px; }
dialog.idle-warn p { margin: 0 0 16px; color: var(--text); line-height: 1.45; }
.idle-warn-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
dialog.add-modal { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius, 10px); background: var(--card); color: var(--text); padding: 18px 20px; }
dialog.add-modal::backdrop { background: rgb(0 0 0 / .5); }
dialog.add-modal .ad-foot { display: flex; justify-content: flex-end; margin-top: 14px; position: sticky; bottom: -18px; padding: 10px 0 2px; background: var(--card); } /* Close stays in view on a short screen */
dialog.add-modal .add-computer { border: 0; box-shadow: none; padding: 0; margin: 0; } /* the dialog is the frame: no second border */
.add-computer ol.addsteps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.add-computer .plat { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; gap: 4px; }
.add-computer .plat h3 { margin: 0; font-size: 13px; }
.add-computer .cmd { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; min-width: 0; }
.add-computer .cmd .k { font-size: 12px; font-weight: 600; color: var(--muted); }
.add-computer .cmd code { font: 13px ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; min-width: 0; }
a.btn { text-decoration: none; display: inline-block; text-align: center; }

/* The sign-in screen (the graphite lock) lives in signin-lock.css; door.mjs and lock3d.mjs drive it. */
.mnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.mlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--text); font: 600 14px var(--font); text-decoration: none; }
.mlink[aria-current="page"] { border-color: var(--button-bg); box-shadow: inset 0 -3px 0 var(--button-bg); }
.mbox { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gs-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gs-modal { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; align-items: flex-start; padding: 8vh 16px 16px; background: rgba(0,0,0,.45); }
.gs-modal[hidden] { display: none; }
/* Owner 11-23: one fixed width, centred at the same place every time; typing never changes its width or position, and the results grow downward only. */
.gs-panel { flex: none; width: min(640px, calc(100vw - 32px)); max-height: 80vh; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.3)); overflow: hidden; }
.gs-head { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.gs-head input { flex: 1; min-width: 0; min-height: 44px; font: 16px var(--font); padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-soft); color: var(--text); }
.gs-close { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--text); font: 600 14px var(--font); cursor: pointer; }
.gs-body { overflow-y: auto; padding: 8px 12px; }
.gs-eyebrow { margin: 10px 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gs-row { display: flex; align-items: center; gap: 8px; border-radius: 6px; }
.gs-row.is-active { background: var(--panel-soft); box-shadow: inset 3px 0 0 var(--button-bg); }
.gs-main { flex: 1; min-width: 0; min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 1px; text-align: left; font: inherit; color: var(--text); background: none; border: 0; padding: 4px 10px; cursor: pointer; }
.gs-title { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; } .gs-sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.gs-pill { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.gs-empty { margin: 12px 4px; color: var(--muted); }
.gs-foot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* Seen by the Gateway / Agentless devices on a phone: one card per device, label and value rows, nothing cut off (lab lane's 412 render). The desktop table is unchanged. */
@media (max-width: 760px) {
  .seen-wrap { overflow-x: visible; }
  .seen-wrap table, .seen-wrap tbody, .seen-wrap tr { display: block; min-width: 0; width: 100%; }
  .seen-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .seen-wrap tr { padding: 10px 0; border-top: 1px solid var(--line); }
  .seen-wrap td { display: grid; grid-template-columns: minmax(84px, 30%) minmax(0, 1fr); gap: 8px; padding: 4px 0; border: 0; overflow-wrap: anywhere; }
  .seen-wrap td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; }
  .seen-wrap td[colspan] { display: block; }
}

/* Help icons (help-topics.mjs; 2.x support-page.css .help-i): a small "?" beside a setting's title. */
.help-i{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;margin-left:6px;border:1px solid var(--line);border-radius:var(--chip-radius, 999px);background:transparent;color:var(--muted);font-size:11px;font-weight:700;line-height:1;cursor:pointer;box-shadow:none;vertical-align:middle;flex:none}
.help-i:hover,.help-i:focus-visible{color:var(--accent);border-color:var(--accent)}
dialog.help-topic h3{margin:0 0 8px;font-size:16px}
/* Update now (update-now.mjs): one row on the Gateway page and in a device's Updates section */
.un-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.un-text{display:grid;gap:2px;min-width:0;flex:1 1 240px}
.un-row .un-now{white-space:nowrap;flex:0 0 auto}
.un-note:empty{display:none}
.un-dialog p{max-width:52ch}

/* Exposure page (exposure.mjs, protection 6): the 2.x Exposure modal's list rows, on the console tokens. */
.exp-title { overflow-wrap: anywhere; }
.exp .exp-guard { margin: 0 0 14px; color: var(--muted); }
.exp .exp-section + .exp-section { margin-top: 18px; }
.exp .exp-section h4 { margin: 0 0 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.exp .exp-section h4 small { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.exp .exp-summary { margin: 0 0 8px; font-size: 13px; }
.exp .exp-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.exp .exp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; padding: 10px 12px; align-items: center; }
.exp .exp-row + .exp-row { border-top: 1px solid var(--line); }
.exp .exp-main { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; }
.exp .exp-main b { font-variant-numeric: tabular-nums; }
.exp .exp-main span { color: var(--muted); overflow-wrap: anywhere; }
.exp .exp-main code { overflow-wrap: anywhere; }
.exp .exp-side { text-align: right; font-size: 13px; color: var(--muted); }
.exp .exp-side { align-self: start; }
.exp .exp-side button { width: auto; min-height: 0; padding: 4px 10px; font-size: 13px; line-height: 1.3; }
.exp .exp-sub { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.exp .exp-row.is-open .exp-sub { color: var(--warn, #e0b44c); }
.exp .exp-main.exp-warning { display: block; overflow-wrap: anywhere; }
.exp .exp-why { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* The one Audit comment step (owner row 39; audit-comment.mjs): a small window on any page, the change in its own box, an empty comment. */
.audit-dlg { width: min(520px, calc(100vw - 32px)); box-sizing: border-box; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--card-radius, 10px); background: var(--card); color: var(--text); }
.audit-dlg::backdrop { background: rgba(0, 0, 0, .5); }
.audit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.audit-head h2 { margin: 0; font-size: 18px; display: inline-flex; align-items: center; gap: 6px; }
.audit-body { display: flex; flex-direction: column; gap: 8px; }
.audit-change { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--sunk, var(--bg)); white-space: pre-wrap; overflow-wrap: anywhere; }
.audit-body label { font-weight: 600; margin-top: 6px; }
.audit-note { width: 100%; box-sizing: border-box; min-height: 84px; resize: vertical; font: inherit; }
.audit-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.audit-actions .btn, .audit-x { min-height: 44px; }

/* The rename dialog on any page (gateways/rename-dialog.mjs; Activity's device detail opens it on the document body, where gateways.css and its .gw
   scope don't reach): the same frame as the Gateway page's dialog (gateways.css .gw .nv3.v-dialog), title and ✕ on one line, the actions in a row. */
.gw-rndlg { width: min(520px, calc(100vw - 32px)); box-sizing: border-box; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--card-radius, 10px); background: var(--card); color: var(--text); }
.gw-rndlg::backdrop { background: rgba(0, 0, 0, .5); }
.gw-rndlg .v-dlghead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gw-rndlg .v-dlghead h2 { margin: 0; font-size: 18px; text-align: left; }
.gw-rndlg .v-x { min-width: 40px; justify-content: center; padding: 8px; }
.gw-rndlg .gw-dlgbody { display: flex; flex-direction: column; gap: 8px; }
.gw-rndlg label { font-weight: 600; font-size: 13px; }
.gw-rndlg .v-input { min-height: 40px; width: 100%; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--chip-radius, 8px); background: var(--card); color: var(--text); font: 14px var(--font, inherit); }
.gw-rndlg .muted.small { margin: 0; }
.gw-rndlg .gw-dlgactions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.gw-rndlg .gw-dlgactions > :first-child { margin-right: auto; }
@media (max-width: 480px) { .gw-rndlg { padding: 18px 16px; } .gw-rndlg .gw-dlgactions > :first-child { flex-basis: 100%; margin-right: 0; } }
