.hub-fleet{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:20px}
.hub-card{border:1px solid var(--line,#e2e4e9);border-radius:24px;background:#fff;padding:24px;min-width:0;max-width:680px}
.hub-card-title{display:flex;align-items:center;gap:16px}
.hub-card-title>.icon{width:44px;height:44px;padding:10px;box-sizing:content-box;border-radius:18px;background:#fff2e5;color:#a4550d;flex-shrink:0}
.hub-card-title h2{margin:0 0 8px;overflow-wrap:anywhere;font-size:22px}
.hub-device-count{margin:14px 0 0;color:var(--muted,#777);font-size:14px}
.hub-card-title>div,.hub-workspace-heading>div{min-width:0}
.hub-space{margin:8px 0 0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.hub-space-controls{margin-top:20px;padding-top:16px;border-top:1px solid var(--line,#e2e4e9);display:grid;gap:12px}
.hub-space-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.hub-space-row>span{min-width:0;overflow-wrap:anywhere}
.hub-space-row>button{flex:none;min-height:44px}
.hub-space-picker{display:grid;gap:8px;font-size:13px;color:var(--muted,#68686e)}
.hub-space-picker>div{display:flex;gap:8px;min-width:0}
.hub-space-picker select{min-width:0;width:100%;flex:1;border:1px solid var(--line,#e2e4e9);border-radius:12px;background:#fbfbfd;padding:10px 12px;font:inherit;font-size:16px;min-height:44px}
.hub-space-picker .btn{flex:none;min-height:44px}
.hub-card-footer{margin-top:28px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.hub-card-footer .btn{text-decoration:none}
@media(max-width:480px){.hub-card{padding:20px}.hub-card-title h2{font-size:20px}.primary-nav button{min-width:0}}
.hub-workspace{min-width:0;display:flex;flex-direction:column;gap:16px}
.hub-workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.hub-workspace-heading h1{font-size:27px;letter-spacing:-.9px;margin:10px 0 0;overflow-wrap:anywhere}
.hub-back{display:inline-flex;align-items:center;gap:7px;font-size:13px}
.hub-back .icon{width:16px;height:16px}
.hub-manager-frame{display:block;width:100%;height:max(580px,calc(100dvh - 260px));border:0;background:transparent;border-radius:22px;min-width:0}
.hub-devices-open .footer{display:none}
.hub-manager-mount{min-width:0}
.hub-manager-host{position:static;inset:auto;width:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:visible;color:inherit}
.hub-manager-host:modal{position:fixed;inset:0;width:100%;height:100dvh;max-width:100%;max-height:100dvh;border-radius:0;overflow:hidden;background:var(--surface,#fff)}
.hub-manager-host:modal[style]{border-radius:18px}
/* A modest tint only. The iframe sits on an opaque surface so the embedded list is
   dimmed once by its own dialog backdrop instead of twice. */
.hub-manager-host:modal::backdrop{background:rgba(20,27,43,.22);backdrop-filter:none}
.hub-manager-host:modal>.hub-manager-frame{border-radius:inherit}
.hub-install-steps{padding-left:22px;line-height:1.8}.hub-install-steps li+li{margin-top:12px}.hub-install-command{white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f8fa;border:1px solid var(--line);padding:16px;border-radius:12px;font-size:13px;line-height:1.7}.hub-install-existing{margin-top:12px;width:100%;text-align:left}
.hub-lan-candidate{display:flex!important;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:14px;min-width:0}.hub-lan-candidate input{width:20px;flex:none}.hub-lan-candidate span{display:grid;gap:5px;min-width:0}.hub-lan-candidate small{color:var(--muted);overflow-wrap:anywhere}.hub-card .danger-text{color:#c7362d;min-height:44px}
@media(max-width:760px){.hub-manager-frame{height:max(480px,calc(100dvh - 285px));border-radius:16px}.hub-workspace{gap:12px}.hub-workspace-heading h1{font-size:23px}}

.st-device-list{margin-top:20px}.st-device-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0;border-top:1px solid var(--line,#e5e8ee)}.st-device-row>div{min-width:0}.st-device-row strong,.st-device-row small{display:block;overflow-wrap:anywhere}.st-device-row small{margin-top:6px;color:var(--muted,#75808f)}.st-device-row details{margin-top:8px;font-size:13px}.st-device-row code{overflow-wrap:anywhere}.st-device-row>.btn{flex-shrink:0}.hub-action-row label{min-width:0;display:grid;gap:6px}.hub-action-row small{grid-column:1/-1}.hub-action-row select{max-width:100%}
@media(max-width:480px){.st-device-row{align-items:flex-start;gap:10px}.st-device-row>.btn{padding:10px;font-size:13px}.hub-action-row{display:grid;grid-template-columns:1fr}.hub-action-row>label{width:100%}}
