/* User-supplied realistic art; bitmap alpha is preserved, themes color accents only. */
/* One continuous, theme-aware surface for the device and its availability checks. */
.device-summary{position:relative;isolation:isolate;overflow:hidden;margin-bottom:14px;border:1px solid var(--border-normal);border-radius:16px;background:radial-gradient(ellipse at 18% 60%,color-mix(in srgb,var(--hero-tint) 38%,transparent),transparent 46%),radial-gradient(ellipse at 100% 0%,color-mix(in srgb,var(--hero-tint) 22%,transparent),transparent 58%),var(--surface-solid);container-type:inline-size}
.device-summary:before{content:'';position:absolute;z-index:-1;inset:25% -20% -85% 10%;border:1px solid color-mix(in srgb,var(--accent) 25%,transparent);border-radius:50%;transform:rotate(-7deg);pointer-events:none}
.device-summary .device-hero{margin:0;padding:18px 20px 0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}
.device-summary .device-hero-main{grid-template-columns:180px minmax(0,1fr) auto;min-height:138px;gap:22px}
.device-summary .device-hero-art{width:180px;height:138px;grid-template: minmax(0,1fr) / minmax(0,1fr);background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
.device-summary .device-hero-art>.device-illustration{min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain}
.device-summary .device-hero-art .device-raster{width:100%;height:100%}
.device-summary .device-metadata{margin-top:16px}
.device-summary .device-checks{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:10px;padding:12px 20px 18px;margin:0;border-top:1px solid var(--border-subtle)}
.device-summary .device-probe{min-width:0;background:color-mix(in srgb,var(--surface-solid) 38%,transparent);border:1px solid var(--border-subtle);border-radius:12px;box-shadow:none;backdrop-filter:none}
.device-summary .device-probe.last-check{grid-column:auto}
.device-summary .device-protocols{gap:10px;padding-top:2px}
.device-summary .device-protocols .device-connect-action{position:relative;display:grid;grid-template-columns:38px minmax(62px,1fr);align-items:center;justify-content:stretch;gap:10px;min-width:132px;min-height:60px;padding:8px 13px;border-radius:13px;border-color:color-mix(in srgb,var(--accent) 68%,var(--border-normal));background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 20%,var(--surface-solid)),color-mix(in srgb,var(--accent) 7%,var(--surface-solid)));color:var(--text-primary);box-shadow:0 8px 22px color-mix(in srgb,var(--accent) 10%,transparent);text-align:left;transition:transform 150ms,box-shadow 150ms,border-color 150ms,background 150ms}
.device-summary .device-protocols .device-connect-action:hover,.device-summary .device-protocols .device-connect-action:focus-visible{transform:translateY(-2px);border-color:var(--accent);background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 28%,var(--surface-solid)),color-mix(in srgb,var(--accent) 12%,var(--surface-solid)));box-shadow:0 12px 28px color-mix(in srgb,var(--accent) 20%,transparent)}
.device-connect-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:color-mix(in srgb,var(--accent) 18%,transparent);color:var(--accent)}
.device-connect-icon svg{width:21px;height:21px}
.device-connect-copy{min-width:0;line-height:1.15}.device-connect-copy strong,.device-connect-copy small{display:block}.device-connect-copy strong{font-size:13px;color:var(--text-primary)}.device-connect-copy small{margin-top:4px;font-size:10px;color:color-mix(in srgb,var(--text-primary) 50%,var(--text-secondary));white-space:nowrap}
.device-connect-action>.dot{position:absolute;right:9px;top:9px;width:7px;height:7px;margin:0;box-shadow:0 0 0 4px color-mix(in srgb,var(--surface-solid) 58%,transparent)}
.device-connect-action[data-protocol=ssh] .device-connect-icon{color:var(--purple);background:color-mix(in srgb,var(--purple) 15%,transparent)}.device-connect-action[data-protocol=vnc] .device-connect-icon{color:var(--cyan);background:color-mix(in srgb,var(--cyan) 14%,transparent)}
.device-summary .device-protocols .device-connect-action[data-protocol-state=green]{border-color:color-mix(in srgb,var(--success) 68%,var(--border-normal))}.device-summary .device-protocols .device-connect-action[data-protocol-state=green] .device-connect-icon{color:var(--success);background:var(--success-bg)}
.device-summary .device-protocols .device-edit-action{min-height:44px;padding-inline:14px;border-radius:11px;align-self:center}
.device-summary-compact .device-hero-main{min-height:148px;padding-bottom:12px}
.device-summary-compact .device-hero-art{align-self:center}
.device-hero-copy-compact{align-self:center}
.device-hero-facts{display:grid;grid-template-columns:repeat(2,minmax(120px,max-content));gap:11px 28px;max-width:430px;margin:14px 0 10px;padding:0}
.device-hero-fact{min-width:0}
.device-hero-fact dd{display:flex;align-items:center;gap:10px;min-width:0;margin:0;color:var(--text-primary)}
.device-hero-fact strong{min-width:0;font-size:13px;font-weight:680;line-height:1.25;overflow-wrap:anywhere}
.device-hero-fact-icon{display:grid;place-items:center;width:25px;height:25px;flex:none;color:var(--text-secondary)}
.device-hero-fact-icon>svg{width:23px;height:23px}
.device-hero-fact-icon .device-os-icon{width:23px;height:23px}
.device-summary .device-checks-compact{grid-template-columns:repeat(var(--device-check-count),minmax(240px,1fr));gap:0;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
.device-summary .device-checks-compact:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.device-summary .device-checks-compact .device-probe.compact{grid-template-columns:42px minmax(95px,1fr)}
.device-summary .device-checks-compact .device-probe.last-check.compact{grid-template-columns:42px minmax(100px,1fr) auto}
@container(max-width:1080px){.device-summary-compact .device-hero-main{grid-template-columns:140px minmax(0,1fr);gap:16px;min-height:0}.device-summary-compact .device-hero-art{width:140px;height:120px}.device-summary-compact .device-protocols{grid-column:1/-1;justify-content:flex-start;padding:0 0 6px}.device-summary-compact .device-hero-facts{max-width:none}}
@container(max-width:850px){.device-summary .device-hero-main{grid-template-columns:140px minmax(0,1fr);gap:16px}.device-summary .device-hero-art{width:140px;height:120px}.device-summary .device-protocols{grid-column:1/-1;justify-content:flex-start;padding:0 0 6px}.device-summary .device-metadata{grid-template-columns:repeat(2,minmax(0,1fr))}.device-summary .device-metadata>div:nth-child(2n){border-right:0}.device-summary-compact .device-hero-main{display:grid;min-height:0}.device-hero-facts{max-width:none}}
@container(max-width:480px){.device-summary .device-hero{padding:14px 12px 0}.device-summary .device-hero-main{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px}.device-summary .device-hero-art{width:96px;height:98px}.device-summary .device-hero h1{font-size:21px}.device-summary .device-metadata{grid-template-columns:minmax(0,1fr)}.device-summary .device-metadata>div{border-right:0;padding:10px 4px}.device-summary .device-checks{padding:12px}.device-summary .device-protocols{flex-wrap:wrap}.device-summary .device-protocols .device-connect-action{flex:1 1 126px;min-width:0}.device-summary .device-protocols .device-edit-action{flex:1 1 100%}.device-hero-facts{grid-template-columns:minmax(0,1fr);gap:8px;margin-top:10px}.device-hero-fact strong{font-size:12px}}
:root{--device-art-filter:hue-rotate(190deg) saturate(.82) brightness(1.08)}
:root[data-theme-mode=light]{--device-art-filter:hue-rotate(190deg) saturate(.78) brightness(1.18)}
:root[data-theme=coffee-light]{--device-art-filter:saturate(.68) brightness(1.16)}
:root[data-theme=coffee-dark]{--device-art-filter:saturate(.9) brightness(1.06)}
.device-hero-art .device-illustration.device-raster{width:88%;height:88%;filter:var(--device-art-filter) drop-shadow(0 5px 5px #0003);overflow:hidden}
.device-hero-art[data-visual=unknown] .device-raster{filter:grayscale(1) var(--device-art-filter) drop-shadow(0 5px 5px #0003)}
.device-os-value{display:inline-flex;align-items:center;gap:9px}
.device-os-icon{width:24px;height:24px;flex:none;color:var(--text-primary)}
.device-os-icon[data-os=windows]{color:var(--accent)}
.device-os-icon .os-body{fill:var(--text-primary)}
.device-os-icon .os-belly{fill:var(--surface-solid);stroke:none}
.device-os-icon .os-feet{fill:var(--accent);stroke:var(--accent)}
.device-hero-summary{display:flex;align-items:baseline;gap:8px}
.device-hero-summary>.dot{flex:none;margin:0}
.device-hero-summary>span{min-width:0;overflow-wrap:anywhere}
.device-probe[data-probe-state=green] .device-probe-icon{color:var(--success);background:var(--success-bg)}
.device-probe[data-probe-state=red] .device-probe-icon{color:var(--danger);background:var(--danger-bg)}
.device-probe[data-probe-state=amber] .device-probe-icon{color:var(--warning);background:var(--warning-bg)}
.device-probe[data-probe-state=muted] .device-probe-icon{color:var(--text-muted);background:var(--surface-3)}
.device-probe .dot.unverified{background:var(--warning)}
.device-metadata>div{display:flex;align-items:center;gap:12px}
.device-metadata-icon{display:flex;align-items:center;justify-content:center;width:26px;height:28px;flex:none;color:var(--text-secondary)}
.device-metadata-icon svg{width:25px;height:25px}
.device-metadata-copy{min-width:0}
.device-topology-preview{min-width:0}
.device-mini-topology{display:grid;grid-template-columns:minmax(0,1fr) 76px minmax(0,1.12fr) 76px minmax(0,1fr);align-items:center;min-height:190px;padding:16px 8px 6px;border-radius:12px;background:color-mix(in srgb,var(--surface-3) 55%,transparent)}
.device-mini-edge{position:relative;display:block;min-width:0;width:100%;height:130px;padding:0;border:0;background:transparent;color:var(--text-secondary)}
.device-mini-edge .device-mini-link{width:100%;height:100%}
.device-mini-link-label{position:absolute;left:50%;top:28%;transform:translateX(-50%);max-width:100%;width:max-content;box-sizing:border-box;padding:3px 5px;border:1px solid var(--border-subtle);border-radius:6px;background:var(--surface-solid);font-size:10px;line-height:1.3;white-space:normal;overflow-wrap:normal;text-align:center}
button.device-mini-edge:hover .device-mini-link-label,button.device-mini-edge:focus-visible .device-mini-link-label{color:var(--accent);border-color:var(--accent)}
.device-mini-node{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:118px;padding:12px 6px;border:1px solid var(--border-subtle);border-radius:11px;background:var(--topology-node-bg);color:var(--text-primary);text-align:center;box-shadow:none}
.device-mini-node.selected{transform:translateY(-12px);min-height:136px;border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 12%,transparent)}
.device-mini-node:hover{border-color:var(--accent)}
.device-mini-node svg{width:23px;height:23px;flex:none}
.device-mini-node strong{font-size:10px;line-height:1.35;max-width:100%;overflow-wrap:anywhere}
.device-mini-node small{font-size:9px;line-height:1.3;max-width:100%;overflow-wrap:anywhere}
.device-mini-state{display:flex;align-items:center;justify-content:center;gap:5px}
.device-mini-state .dot{margin:0;flex:none;width:6px;height:6px}
.device-mini-link{width:100%;height:130px;overflow:visible;fill:none;stroke:var(--topology-line);stroke-width:1.6}
.device-mini-link path{vector-effect:non-scaling-stroke}
.device-mini-link circle{fill:var(--topology-line);stroke:none}
.device-mini-missing{font-size:10px;color:var(--text-muted);text-align:center;line-height:1.5;padding:8px}
.device-mini-navigation{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:8px;font-size:10px;color:var(--text-secondary)}
.device-mini-navigation .button{min-height:28px;width:28px;padding:0;font-size:18px}
@media(max-width:620px){.device-mini-topology{grid-template-columns:minmax(0,1fr) 48px minmax(0,1.12fr) 48px minmax(0,1fr);padding:12px 0}.device-mini-node{padding:9px 4px}.device-mini-node strong{font-size:9px}.device-mini-node small{font-size:8px}.device-mini-missing{padding:2px;font-size:9px}}
