/* The signed-in shell shares the room, glass and type of the approved preview. */
body:has(#workspace:not([hidden])) {
  display: grid; place-items: center;
  background: linear-gradient(120deg,#23222522,#16161905 55%,#24222542), #565557 url('/smoke-room.webp') center / cover no-repeat;
}
#workspace.modern-ui[data-page] {
  --glass: linear-gradient(125deg,#ffffff18,#ffffff06 65%),rgba(36,36,38,.35);
  --glass-shadow: inset 0 1px #ffffff15,0 5px 13px #0a0b0c12;
  --ui-ink: #f6f5f3; --ui-card-ink: #f6f5f3; --ui-sidebar-title: white;
  --ui-muted: #d1cecb; --ui-card-muted: #d1cecb; --ui-sidebar-ink: #e4e0dc;
  --ui-sidebar: #383739; --ui-sidebar-hover: #ffffff24;
  --ui-soft: #535154; --ui-soft-strong: #666467; --ui-softest: #403f42;
  --ui-accent: #c3e3d0; --ui-accent-ink: #202b26; --ui-accent-hover: #daeddf; --ui-accent-text: #c7e9d6;
  --ui-bg: #363538; --ui-line: #ffffff36; --surface: #403e40; --green: #d7ebdf;
  --ink: var(--ui-ink); --muted: var(--ui-muted); --line: var(--ui-line);
  --dash-font: "NAS Huninn","Microsoft JhengHei",sans-serif;
  --page-gutter: clamp(15px,2.5vw,40px);
  color: var(--ui-ink); color-scheme: dark; font-family: var(--dash-font);
  position: relative; isolation: isolate; display: flex;
  --frame-width: calc(100vw - 2 * clamp(10px, 1.5vw, 32px));
  --frame-height: calc(100dvh - 2 * clamp(6px, 1.6dvh, 24px));
  width: var(--frame-width); height: var(--frame-height); margin: 0; min-width: 0; min-height: 0;
  border: 1px solid #ffffff61; border-radius: 27px;
  background: transparent; box-shadow: inset 0 1px #ffffff30,0 25px 75px #15141954;
}
#workspace.modern-ui[hidden] { display: none; }
#workspace.modern-ui[data-page]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(120deg,rgba(48,47,50,.56),rgba(48,47,51,.43) 49%,rgba(30,31,34,.57)),color-mix(in srgb,var(--glass-tint,transparent) 26%,transparent);
  backdrop-filter: blur(10px) saturate(.52);
}
#workspace.modern-ui[data-page] .main-shell { width: auto; flex: 1; margin: 0; height: 100%; background: transparent; }
#workspace.modern-ui[data-page] .main-shell>.topbar {
  background: transparent; border-bottom: 1px solid #ffffff26;
  height: clamp(46px,6.6vh,64px); flex: 0 0 clamp(46px,6.6vh,64px); min-height: 0;
}
#workspace.modern-ui[data-page] .topbar .workspace-crumb { display: inline; margin-right: auto; }
#workspace.modern-ui[data-page] #home-brand { display: none; }
#workspace.modern-ui[data-page] #home-search-toggle { display: inline-flex; align-items: center; gap: 6px; width: auto; height: 32px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 30px; color: var(--ink); background: #ffffff16; }
#home-search-toggle::after { content: '搜尋功能'; font: 13px var(--dash-font); }
#workspace.modern-ui .topbar .avatar { border: 1px solid var(--line); border-radius: 50%; background-color: #d3c9be; color: #393637; }
#workspace.modern-ui .sidebar .brand-mark { background: transparent; filter: grayscale(1) brightness(1.25); }
#workspace.modern-ui[data-page] main { padding: clamp(12px,2.4vh,26px) var(--page-gutter) 0; }
#workspace.modern-ui[data-page] .topbar .status { background: transparent; color: #eeeae5; }
#workspace.modern-ui[data-page] .account-menu, #workspace.modern-ui[data-page] :is(#settings-subnav,#apps-subnav) {
  background: #403e40; color: var(--ink); border-color: var(--line);
}
#workspace.modern-ui .sidebar .nav-sub-link { color: var(--ink); }
@media(min-width:761px) {
  #workspace.modern-ui[data-page]>.sidebar {
    position: relative; inset: auto; width: 71px; height: 100%; flex: 0 0 71px; zoom: 1;
    padding: 16px 8px; border: 0; border-right: 1px solid #ffffff30; border-radius: 26px 0 0 26px;
    background: color-mix(in srgb,var(--rail-tint,#1f1e20) 40%,transparent); box-shadow: none; overflow: visible;
  }
  #workspace.modern-ui[data-page] .sidebar .nav-link { width: 48px; height: 45px; padding: 8px; color: var(--ui-sidebar-ink); }
  #workspace.modern-ui[data-page] .sidebar .nav-link>span { display: none; }
  #workspace.modern-ui[data-page] .sidebar .nav-link:is(.active,.section-active,[aria-expanded=true]) { color: white; background: #ffffff2f; }
  #workspace.modern-ui .sidebar nav { width: 100%; margin-top: clamp(10px,3vh,34px); }
  #workspace.modern-ui[data-page=overview] #content { zoom: 1; }
}
@media(max-width:760px) {
  #workspace.modern-ui[data-page] { --frame-width: calc(100vw - 12px); --frame-height: calc(100dvh - 12px); border-radius: 18px; }
  #workspace.modern-ui[data-page]>.sidebar { background: #363537; }
  #workspace.modern-ui[data-page] .topbar { padding-inline: 12px; }
  #workspace.modern-ui[data-page] .top-actions { gap: 7px; }
  #home-search-toggle::after { display: none; }
  #workspace.modern-ui[data-page] :is(#settings-subnav,#apps-subnav) { background: transparent; }
}
@media(max-height:650px) {
  #workspace.modern-ui[data-page] { --frame-height: calc(100dvh - 12px); }
  #workspace.modern-ui[data-page] .main-shell>.topbar { height: 40px; flex-basis: 40px; }
}

/* Keep feature pages on their original live views and form controls. */
#workspace.modern-ui #content :is(.panel,.app-card,.metric-card,.file-manager-page),
#workspace.modern-ui #general-pane-network .network-flow-board>.panel {
  background: var(--glass); border: 1px solid var(--line); color: var(--ink);
  border-radius: 20px; box-shadow: var(--glass-shadow);
}
#workspace.modern-ui #content :is(h2,h3,h4,h5,dt,dd,label,th,td,.file-name,.folder-open,.metric-value,.network-map-interface) { color: var(--ink); }
#workspace.modern-ui #content :is(.muted,.subtle-text,.eyebrow,.metric-top,.file-status,.file-reason) { color: var(--muted); }
#workspace.modern-ui #content :is(.secondary,.network-map-interface,.network-map-tools button,.system-network-card,.file-toolbar,th,.general-symbol,.network-flow-card,.file-table-wrap,.file-tree-node.active,.file-tree,.file-action-menu,.file-select-toolbar,.file-transfer,.settings-input-unit,.general-field,.app-top>svg) { background-color: var(--ui-softest); color: var(--ink); border-color: var(--line); }
#workspace.modern-ui #content :is(button.secondary,.general-tab,.network-tab,.file-tree-node):hover { background: #565457; color: white; }
#workspace.modern-ui #content :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea) { color: var(--ink); background: #333235; border-color: var(--line); }
#workspace.modern-ui #content :is(input,textarea)::placeholder { color: #c7c2c1; }
#workspace.modern-ui #content :is(.link-button,.file-breadcrumb button) { color: #c5e8d4; }
#workspace.modern-ui #settings-sections .network-tab[aria-current=page],
#workspace.modern-ui #settings-sections .general-tab[aria-selected=true] { color: #29282a; background: #ece8e4; }
#workspace.modern-ui #content .primary { background: var(--ui-accent); color: var(--ui-accent-ink); }
#workspace.modern-ui :focus-visible, #home-detail-dialog :focus-visible { outline: 2px solid #c2e7ff; outline-offset: 2px; }
#workspace.modern-ui #overview-board.dashboard-home, #home-detail-dialog {
  --ink: #f6f5f3; --muted: #d1cecb; --line: #ffffff36;
}
#workspace.modern-ui[data-page=overview] #content { overflow: auto; }
#workspace.modern-ui #overview-board.dashboard-home {
  display: flex; flex-direction: column; min-height: 100%; height: 100%; padding: 0 0 9px; gap: clamp(8px,1.3vh,17px);
}
.dash-title h1 { font-size: clamp(25px,2.15vw,36px); }
.smoke-board { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); grid-template-rows: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(10px,1.3vw,20px); flex: 1; min-height: 0; }
.smoke-board>.dash-card {
  border-radius: clamp(17px,1.55vw,23px); padding: clamp(14px,1.5vw,28px);
  border: 1px solid #ffffff3b; background: var(--glass); box-shadow: var(--glass-shadow);
  display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 7px;
}
#overview-board .dash-card h2 { font-size: clamp(16px,1.3vw,22px); }
#overview-board .dash-card .round-link {
  display: grid; place-items: center; flex: none; width: 27px; height: 27px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; background: #ffffff0c;
}
.smoke-board>.smoke-host { grid-column: span 5; position: relative; overflow: hidden; justify-content: center; align-items: flex-start; background: radial-gradient(ellipse at 86% 15%,#dad4ca33,transparent 58%),linear-gradient(145deg,#ffffff1c,#ffffff06),#181a1c6e; }
.smoke-host img { position: absolute; width: 54%; height: 83%; inset: 10% 2% auto auto; object-fit: contain; filter: drop-shadow(3px 11px 8px #0005); }
.smoke-host>div { position: relative; max-width: 55%; }
#overview-board .smoke-host h2 { margin: 10px 0 3px; font: 580 clamp(25px,2.7vw,45px)/1.1 "Segoe UI",sans-serif; letter-spacing: -.05em; overflow-wrap: anywhere; }
.smoke-host [data-host-status] { display: inline-block; color: #d5f4e1; border: 1px solid #ffffff30; background: #172b2457; padding: 2px 8px; border-radius: 20px; }
.smoke-host [data-host-status]::before { content: '●'; color: #b3eac9; margin-right: 5px; }
.is-metrics-stale .smoke-host [data-host-status]::before { color: #e8c99a; }
.smoke-host a { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; background: #f1eeea; color: #303032; text-decoration: none; padding: 7px 12px; font-size: 13px; margin-top: clamp(8px,2vh,20px); }
#overview-board .smoke-host a svg { width: 16px; height: 16px; }
.smoke-board>.dash-storage { grid-column: span 4; justify-content: space-between; }
#overview-board .dash-free { display: block; }
.dash-free b { font: 350 clamp(33px,3.6vw,58px)/1.15 "Segoe UI",sans-serif; letter-spacing: -.055em; }
.dash-meter,.dash-cap .dash-meter { background: #deddd83d; }
.dash-meter i,.dash-cap .dash-meter i { background: #bce9ca; }
.dash-cap .dash-meter { height: clamp(10px,2.3vh,24px); mask-image: repeating-linear-gradient(to right,#000 0 5px,transparent 5px 8px); }
#overview-board .smoke-detail { align-self: flex-start; padding: 2px 0; border: 0; color: var(--muted); background: transparent; font-size: 12px; text-align: left; }
.smoke-board>.dash-presence { grid-column: span 3; }
.smoke-peers { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; margin: 0; padding: 0; list-style: none; }
.smoke-peers li { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 5px 0; overflow-wrap: anywhere; }
.smoke-peers li+li { border-top: 1px solid #ffffff20; }
.smoke-peers li b,.dash-presence>small b { font-size: 13px; font-weight: 500; }
.smoke-board>.dash-monitor { grid-column: span 7; }
.dash-toggle,.dash-views { background: #18171953; border: 1px solid #ffffff28; border-radius: 30px; }
.dashboard-home :is(.dash-toggle,.dash-views) button { border-radius: 30px; }
.dashboard-home :is(.dash-toggle,.dash-views) button[aria-pressed=true] { background: #eeedea; color: #262628; }
.dash-metrics { display: flex; gap: clamp(20px,4vw,65px); margin-top: 2px; }
.dash-metrics>div+div { border: 0; padding: 0; }
.dash-metrics small::before { content:''; display:inline-block; width:12px; height:3px; border-radius:3px; background:#b9ebce; margin-right:5px; vertical-align:middle; }
.dash-metrics>div+div small::before { background: #abc2e7; }
.dash-metrics strong { font: 400 clamp(23px,2.3vw,38px)/1.1 "Segoe UI",sans-serif; letter-spacing:-.05em; }
#workspace.modern-ui #overview-board.dashboard-home .chart .home-line-0 { stroke: #b9ebce; }
#workspace.modern-ui #overview-board.dashboard-home .chart .home-line-1 { stroke: #abc2e7; }
#workspace.modern-ui #overview-board .dash-graph line { stroke: #ffffff3d; }
#overview-board .dash-graph text { fill: #d1cecb; }
.dash-io { font-size: 10px; padding-top: 3px; } .dash-io b { font-size: 10px; font-weight: 500; }
.smoke-board>.dash-quick { grid-column: span 5; }
.dash-quick nav { flex: 1; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 8px; }
#overview-board .dash-tool {
  flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
  padding: 8px 12px; border-radius: 12px; background: linear-gradient(118deg,#ffffff12,#ffffff07); border: 1px solid #ffffff26; color: var(--ink); text-align: left;
}
#overview-board .dash-tool:hover { background: #ffffff20; }
.dash-tool>span { position: absolute; top: 7px; right: 9px; color: var(--muted); }
.dash-tool b { font-size: 15px; } .dash-tool small { font-size: 12px; }
#overview-board .dash-tool .dash-icon { border-radius: 7px; padding: 4px; width: 25px; height: 25px; background: #c6b1e41f; color: #d8d0eb; }
#overview-board .dash-tool:nth-child(2) .dash-icon { color: #c6d9f1; background: #afc9ef20; }
#overview-board .dash-tool:nth-child(3) .dash-icon { color: #f2d9af; background: #d1b48220; }
#overview-board .dash-tool:nth-child(4) .dash-icon { color: #c2e2cf; background: #a7d1ba20; }
#overview-board .dash-tool svg { width: 16px; height: 16px; }
.dash-dialog,#home-detail-dialog { color-scheme: dark; color: #f6f5f3; background: #3c3a3cee; border: 1px solid #ffffff52; backdrop-filter: blur(20px); }
.dash-dialog::backdrop,#home-detail-dialog::backdrop { background: #18171a67; backdrop-filter: blur(3px); }
.dash-dialog :is(header button,.dash-pages button),#home-search-input { background: #565457; color: white; border: 1px solid #ffffff38; }
#home-detail-dialog { width: min(520px,calc(100vw - 30px)); height: auto; max-height: 80dvh; padding: 20px; }
.dash-dialog :is(a,small),#home-detail-dialog :is(h2,a,small,.home-search-hint) { color: #e4e0dc; }
.dash-dialog .dash-volumes { padding: 12px 0; gap: 12px; }
.dash-dialog .home-search-results a:hover { background: #ffffff20; }
#overview-board .dash-views { display: none; }

@media (max-width:880px),(max-height:670px) {
  #workspace.modern-ui #overview-board.dashboard-home { height: auto; gap: 10px; }
  #overview-board .dash-views { display: inline-flex; align-self: flex-start; }
  .smoke-board { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; }
  .smoke-board>.dash-card { display: none; grid-column: auto; padding: 14px; }
  .dashboard-home[data-view=host] :is(.smoke-host,.dash-storage),
  .dashboard-home[data-view=monitor] :is(.dash-monitor,.dash-presence),
  .dashboard-home[data-view=tools] .dash-quick { display: flex; }
  .smoke-host { min-height: clamp(145px,23vh,210px) !important; }
  .dash-monitor .dash-graph { min-height: clamp(80px,15vh,165px); }
  .dash-quick .dash-tool { min-height: 62px; }
}
@media (min-width:600px) and (max-height:670px) {
  .smoke-board { grid-template-columns: 1fr 1fr; }
  .smoke-board>.dash-quick { grid-column: 1/-1; }
  .dash-quick nav { grid-template: auto / repeat(4,minmax(0,1fr)); }
}
@media (max-width:599px) and (min-height:810px) {
  .dashboard-home[data-view=host] .dash-quick { display: flex; }
}
/* Earlier desktop zoom rules target :has(#content) and otherwise extend beyond the frame. */
#workspace.modern-ui:has(#content) { height: var(--frame-height); }
#workspace.modern-ui:has(#content) .main-shell { height: 100%; }
/* Give the larger canvas the same desktop reading size as the management pages. */
@media (min-width:1200px) and (min-height:760px) and (hover:hover) and (pointer:fine) {
  #workspace.modern-ui[data-page=overview] #content { zoom: var(--reading-scale,1); }
  #workspace.modern-ui #overview-board.dashboard-home .dash-dialog { zoom: 1; }
  #workspace.modern-ui[data-page]>.sidebar { zoom: var(--display-scale,1); height: auto; align-self: stretch; }
}
#workspace.modern-ui[data-page=overview] .workspace-crumb { display: inline; }
#workspace.modern-ui[data-page=overview] .top-actions { margin-left: auto; }
@media (min-width:761px) {
  #workspace.modern-ui[data-page=overview] .sidebar .nav-link>span:not(.nav-chevron) { display: none; }
}
#overview-board .dash-tool #home-lamp-state { position: static; font-size: 12px; color: var(--muted); white-space: normal; }
.dash-dialog .home-search-results a { background: #ffffff0e; border-color: #ffffff30; }
#workspace.modern-ui[data-page=overview] .workspace-crumb:has(#breadcrumb) { display: inline; }
#workspace #navigation-toggle, #workspace #navigation-close { background: #ffffff14; color: #f6f5f3; border-color: var(--line); }
#workspace .sidebar .brand-mark { width: 33px; height: 33px; border-radius: 9px; }
#workspace.modern-ui #content :is(.network-map-node,.lights-switch,.printer-card,.printer-job-window,.settings-disk-tools,.lights-empty,.rb-computer-info,.file-tree,.file-table,.file-breadcrumb,.file-statusbar) { background-color: #3d3b3e; color: var(--ink); border-color: var(--line); }
#workspace.modern-ui #content .lights-switch[data-state=on] { background: #394f48; border-color: #96c5ae; }
#workspace.modern-ui #content .lights-buttons button[aria-pressed=true] { background: #c6e5d2; color: #223028; }
#workspace.modern-ui #content :is(.lights-access-note,.lights-device-footer,.general-card-heading p,.general-input-unit>span,.lights-setup p,.printer-device-info) { color: var(--muted); }
#workspace.modern-ui #content :is(.access-error,.folder-delete-warning,.folder-delete,.account-delete):not(:disabled) { color: #ffbdb2; }
#workspace.modern-ui #content .general-field { background: transparent; }
#workspace.modern-ui #settings-sections :is(.general-tabs,.network-tabs) { gap: 4px; padding: 3px; }
#workspace.modern-ui #settings-sections :is(.general-tab,.network-tab) { min-height: 32px; padding: 6px 11px; }
#workspace.modern-ui[data-page=settings] :is(#page-kicker,#page-description) { display: none; }
#workspace.modern-ui[data-page=settings] .page-heading { margin-bottom: 8px; }
#workspace.modern-ui .page-heading #page-title { font-family: var(--dash-font); }
#overview-board[data-narrow=true] .dash-quick h2 { display: block; }
#workspace.modern-ui #appearance-dialog { background: #3c3a3e; color: #f6f5f3; }
#workspace.modern-ui #appearance-dialog input[type=text] { background: #333235; color: white; }
.dash-dialog .presence-list li,.dash-dialog .presence-list b { color: #f6f5f3; }
.dash-dialog .presence-list .presence-avatar { background: #514f52; color: white; }
#workspace.modern-ui #content :is(.settings-disk-tools summary,.printer-jobs-empty) { color: var(--muted); }

/* The connection diagram and the status overview share navigation and a single page scroll. */
#workspace[data-network-console=true] #network-tabs { display:none; }
#lan-workspace {
  --lan-mint:#bce5cb; --lan-edge:#ffffff29; --lan-muted:#cfcbc9;
  display:grid; grid-template-columns:minmax(108px, 140px) minmax(0,1fr);
  align-items:start; gap:12px 20px; container:lan / inline-size;
}
#lan-workspace [hidden] { display:none !important; }
.lan-nav { position:sticky; top:0; display:grid; gap:3px; grid-row:1 / span 3; padding:7px; }
#lan-workspace .lan-nav a { display:flex; align-items:center; gap:6px; padding:8px 11px; border-radius:8px; color:var(--lan-muted); text-decoration:none; font-size:14px; font-weight:600; }
#lan-workspace .lan-nav a:not(:first-child):not(:last-child) { margin-left:10px; }
#lan-workspace .lan-nav a:last-child { border-top:1px solid var(--lan-edge); margin-top:7px; border-radius:0; }
#lan-workspace .lan-nav a[aria-current], #lan-workspace .lan-nav a:hover { color:#f5fff8; background:#ffffff16; }
.lan-nav svg,.lan-card header svg,.lan-port svg { width:20px; height:20px; flex:none; color:var(--lan-mint); }
#lan-warning,#lan-map,#lan-workspace #network-connections { min-width:0; grid-column:2; }
#lan-workspace #network-connections { display:grid; gap:16px; height:auto; overflow:visible; }
#lan-map,.lan-block { background:linear-gradient(140deg,#302f32e8,#27292be6); border:1px solid var(--lan-edge); color:#f7f5f3; border-radius:16px; }
#lan-map { padding:clamp(10px,1.4cqi,20px); }
.lan-toolbar,.lan-layout,.lan-map-note,.lan-block>header,.lan-card header { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.lan-toolbar,.lan-map-note,.lan-block>header { justify-content:space-between; }
#lan-map .lan-toolbar button { border:1px solid var(--lan-edge); border-radius:99px; padding:5px 13px; min-height:30px; background:#37383a; color:#e9e8e7; font:inherit; font-size:13px; cursor:pointer; }
#lan-map .lan-toolbar button[aria-pressed=true] { color:#163427; background:var(--lan-mint); }
.lan-stage { position:relative; isolation:isolate; border-radius:12px; margin:10px 0; padding:clamp(12px,1.5cqi,24px);
  background:radial-gradient(ellipse at 50% 46%,#75968c12,transparent 65%),radial-gradient(#c8dbd222 .8px, transparent 1px); background-size:auto,18px 18px;
  border:1px solid #ffffff12; }
.lan-wires { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.lan-wires path,.lan-wires .lan-trace { fill:none; stroke:#93baaf; stroke-width:1.6; }
.lan-wires .lan-wire-service { stroke:#83a3b4; }
.lan-wires .lan-trace { stroke:#c5ffe7; stroke-width:2.8; stroke-dasharray:1; }
.lan-nodes { position:relative; display:grid; justify-items:center; align-content:center; gap:clamp(16px,3.4cqi,45px); min-block-size:clamp(260px,31svh,420px); }
.lan-nodes>* { min-width:0; }
.lan-crown { width:100%; }
.lan-lower { width:100%; display:grid; grid-template-columns:repeat(var(--branches),minmax(0,1fr)); gap:22px 12px; }
.lan-branch { min-width:0; display:flex; flex-direction:column; align-items:center; gap:clamp(14px,2cqi,28px); }
.lan-stage[data-layout=radial] .lan-upper { flex-direction:column-reverse; }
.lan-leaves { width:100%; display:flex; flex-wrap:wrap; align-items:start; justify-content:center; gap:7px; }
#lan-workspace .lan-node { box-sizing:border-box; display:flex; justify-content:center; align-items:center; gap:9px; text-decoration:none; text-align:start;
  color:#f8f6f3; border:1px solid #ffffff36; border-radius:11px; padding:7px 13px; max-width:100%; overflow-wrap:anywhere; background:linear-gradient(135deg,#47494a,#343638); box-shadow:0 3px 10px #0003; }
#lan-workspace .lan-node:hover:is(a),#lan-workspace .lan-node:focus-visible { border-color:#c0f1d6; background:#424d49; }
.lan-node strong,.lan-node small { display:block; line-height:1.28; }
.lan-node strong { font-size:clamp(14px,1.5cqi,20px); }
.lan-node small { color:var(--lan-muted); font-size:clamp(11px,1.05cqi,14px); }
#lan-workspace .lan-host { grid-column:1/-1; border-color:#a5ccb38a; background:linear-gradient(120deg,#4c5551,#333a38); }
.lan-host img { object-fit:contain; width:clamp(38px,5cqi,68px); height:clamp(36px,4.5cqi,55px); border-radius:6px; }
.lan-node .lan-purpose { color:var(--lan-mint); }
#lan-workspace .lan-service { padding:5px 10px; background:#30363a; border-color:#9eb7c14f; }
.lan-service strong { font-size:clamp(12px,1.25cqi,16px); }
.lan-offline { border-style:dashed !important; }
.lan-stage[data-layout=tree] .lan-nodes { grid-template-columns:repeat(var(--tree-columns,1),minmax(0,1fr)); align-items:start; }
.lan-stage[data-layout=tree] .lan-host { grid-row:1; }
.lan-stage[data-layout=tree] .lan-crown,.lan-stage[data-layout=tree] .lan-lower { display:contents; }
.lan-stage[data-layout=tree] .lan-branch { width:100%; }
.lan-empty,.lan-map-note,.lan-block small,.lan-block>p,.lan-reason,.lan-card dt { color:var(--lan-muted); }
.lan-map-note,.lan-block small,.lan-block>p,.lan-reason { font-size:12px; }
.lan-map-note .lan-live { color:var(--lan-mint); }
.lan-block { padding:clamp(12px,1.6cqi,22px); scroll-margin:8px; }
.lan-block>header { margin-bottom:12px; }
.lan-block h3,.lan-card h4 { margin:0; color:inherit; }
.lan-block h3 { font-size:19px; }
.lan-card h4 { font-size:16px; }
.lan-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:9px; }
.lan-card { min-width:0; padding:12px; background:#ffffff08; border:1px solid var(--lan-edge); border-radius:10px; overflow-wrap:anywhere; }
.lan-card header { margin-bottom:8px; }
.lan-state { margin-inline-start:auto; color:var(--lan-mint); font-size:12px; }
.lan-card dl { display:grid; gap:4px; margin:8px 0; font-size:14px; }
.lan-card dl>div { display:grid; grid-template-columns:5.1em 1fr; gap:5px; }
.lan-card dd { margin:0; font-weight:600; }
.lan-card .network-port-toggle { margin:3px 6px 3px 0; }
.lan-card .chart-summary { flex-wrap:wrap; gap:8px; color:#dedbd8; font-size:13px; }
.lan-card .chart-summary b { color:#f9f7f3; }
.lan-card .chart-axis { color:var(--lan-muted); }
#lan-traffic #network-activity-state { background:transparent; color:var(--lan-mint); }
#lan-traffic #network-activity-state.is-stale { color:#f0cf99; }
.lan-card [data-flow-chart] { min-width:0; overflow:hidden; }
.lan-card [data-flow-chart] svg { width:100%; }
.lan-service-list { overflow-x:auto; }
.lan-service-list table { border-collapse:collapse; width:100%; color:inherit; font-variant-numeric:tabular-nums; font-size:14px; }
.lan-service-list :is(th,td) { text-align:start; padding:8px; border-bottom:1px solid var(--lan-edge); overflow-wrap:anywhere; }
.lan-service-list thead th { color:var(--lan-muted); }
#lan-workspace .lan-picked,#lan-workspace :focus-visible { outline:2px solid var(--lan-mint); outline-offset:-2px; }
@container lan (max-width:780px) {
  #lan-workspace .lan-nav { grid-column:1/-1; grid-row:auto; position:static; display:flex; flex-wrap:wrap; padding:0; }
  #lan-workspace .lan-nav a { margin:0 !important; border:0 !important; padding:5px 8px; }
  #lan-warning,#lan-map,#lan-workspace #network-connections { grid-column:1/-1; }
}
@container lan (max-width:475px) {
  .lan-nodes { gap:18px; }
  .lan-lower { gap:16px 6px; }
  #lan-workspace .lan-node { padding:5px 6px; gap:4px; }
  .lan-port svg { display:none; }
  .lan-stage { padding:10px 5px; }
  .lan-leaves { gap:4px; }
  .lan-service-list :is(th,td) { padding:5px 3px; font-size:12px; }
  .lan-layout,.lan-toolbar { gap:3px; }
  #lan-map .lan-toolbar button { padding:4px 8px; }
}
