﻿:root{
  --ink:#162033;--muted:#66758a;--soft:#f5f9ff;--bg:#eaf2fb;--panel:#ffffff;--line:#d5e1f1;
  --blue:#1c73ff;--blue2:#7aa8ff;--cyan:#0aa7bd;--orange:#ff8b22;--green:#17a36b;--red:#d63a42;
  --shadow:0 14px 34px rgba(55,84,125,.14);--radius:16px;
}
*{box-sizing:border-box} body{margin:0;min-height:100vh;color:var(--ink);font-family:"Microsoft YaHei UI","Segoe UI",sans-serif;background:linear-gradient(180deg,#f7fbff 0,#e7f0fb 54%,#dfeaf7 100%)}
button,input,select{font:inherit} a{color:var(--blue);text-decoration:none} button{border:0;border-radius:10px;padding:10px 16px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--cyan));box-shadow:0 8px 18px rgba(28,115,255,.2);cursor:pointer;font-weight:700}button:disabled{opacity:.42;cursor:not-allowed;box-shadow:none}.ghost,.tab,.level-item{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 6px 16px rgba(85,111,145,.08)}.danger{background:linear-gradient(135deg,#ef5656,#bd2832)}.success{background:linear-gradient(135deg,#22b576,#0c8f8f)}
input,select{border:1px solid var(--line);border-radius:10px;padding:11px 13px;background:#fbfdff;min-width:0;box-shadow:inset 0 1px 3px rgba(90,112,139,.06)}
.login-page{display:grid;place-items:center;padding:34px;background:radial-gradient(circle at 16% 12%,#dff8ff 0,#eef6ff 34%,#f9fbff 68%)}.login-box{width:min(980px,100%);min-height:420px;display:grid;grid-template-columns:1.1fr 430px;background:#fff;border:1px solid var(--line);border-radius:28px;overflow:hidden;box-shadow:0 28px 80px rgba(54,78,108,.18)}.login-copy{padding:62px 58px;color:#fff;background:linear-gradient(145deg,#0c334f 0,#0d75a0 62%,#0ab0aa 100%)}.client-copy{background:linear-gradient(145deg,#173e50,#127f9b 60%,#18b393)}.login-copy h1{margin:10px 0 14px;font-size:42px;letter-spacing:.02em}.eyebrow{margin:0;color:var(--orange);font-size:12px;letter-spacing:.18em;font-weight:900;text-transform:uppercase}.login-form{display:grid;gap:18px;align-content:center;padding:46px}.login-form label,.upload-form label{display:grid;gap:7px;color:var(--muted);font-weight:800;font-size:13px}.form-message{min-height:22px;color:var(--red)}
.shell{display:grid;grid-template-columns:218px 1fr;min-height:100vh}.rail{padding:18px 14px;background:rgba(247,251,255,.78);border-right:1px solid #d7e3f3;backdrop-filter:blur(10px);display:flex;flex-direction:column;gap:8px}.brand{display:flex;align-items:center;gap:10px;padding:8px 8px 18px}.logo{width:34px;height:34px;border-radius:50%;background:conic-gradient(from 40deg,#1a73ff,#00b7a9,#55d260,#ff9d22,#1a73ff);box-shadow:inset 0 0 0 6px #fff,0 6px 16px rgba(28,115,255,.22)}.brand strong{font-size:24px;letter-spacing:.02em}.brand span{display:block;color:var(--muted);font-size:12px}.nav-btn,.rail a,.rail button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:6px;color:#39506c;background:#eef5ff;border:1px solid #dce8f7;border-radius:9px;box-shadow:none}.nav-btn.active,.rail a.active{color:#0b52cf;background:#dbe9ff}.rail-spacer{flex:1;border-bottom:1px solid #cfdced}.main{padding:18px 22px 28px;display:grid;gap:16px;align-content:start}.topbar{height:58px;margin:-18px -22px 0;padding:10px 24px;display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.82);border-bottom:1px solid #d8e4f1;backdrop-filter:blur(10px)}h1,h2,h3{margin:0}h1{font-size:25px}h2{font-size:18px}.panel{background:rgba(255,255,255,.88);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.grid.two{display:grid;grid-template-columns:1.05fr .95fr;gap:16px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.metric{background:linear-gradient(180deg,#fff,#f5f9ff);border:1px solid var(--line);border-radius:14px;padding:15px}.metric span{color:var(--muted);font-size:12px;font-weight:800}.metric strong{display:block;margin-top:6px;font-size:26px}.list,.table{display:grid;gap:10px}.row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fbfdff}.row small{color:var(--muted)}.row-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.hint{color:var(--muted);font-size:13px;line-height:1.7}.tabs,.level-choices{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-start}.tab,.level-item{padding:10px 18px;border-radius:10px;color:#32445e}.tab.active,.level-item.active{color:#fff;border-color:#3e82ff;background:linear-gradient(135deg,#3d82ff,#8bb2ff);box-shadow:0 10px 22px rgba(61,130,255,.22)}.level-item.disabled{opacity:.42;pointer-events:none}.badge{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;padding:5px 10px;color:#52657d;background:#fff;font-size:12px;font-weight:800}.status{color:var(--green);font-weight:900}.status.offline{color:var(--muted)}
.upload-form{display:grid;grid-template-columns:120px 1fr;gap:12px;align-items:end}.drop-zone{grid-column:1/-1;position:relative;min-height:138px;border:2px dashed #9dbbeb;border-radius:16px;background:linear-gradient(135deg,#f7fbff,#eef6ff);display:grid;place-items:center;text-align:center;padding:18px;color:#55708f;transition:.16s}.drop-zone.dragover{border-color:#1c73ff;background:rgba(28,115,255,.08);transform:scale(1.01)}.drop-zone input{position:absolute;inset:0;opacity:0;cursor:pointer}.progress{height:12px;background:#dfe9f6;border-radius:999px;overflow:hidden}.progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#1c73ff,#0bb5a5);transition:width .16s}.upload-status{grid-column:1/-1;color:var(--muted);font-size:13px}.material-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:14px}.material-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;display:grid;box-shadow:0 8px 22px rgba(73,98,128,.08)}.preview{aspect-ratio:16/9;background:#e8eef6;display:grid;place-items:center;overflow:hidden}.preview video,.preview img{width:100%;height:100%;object-fit:cover}.material-body{padding:12px;display:grid;gap:8px}.device-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:12px}.device-card{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff;display:grid;gap:9px;box-shadow:0 8px 22px rgba(73,98,128,.08)}.device-card.selected{border-color:var(--blue);box-shadow:0 0 0 4px rgba(28,115,255,.12)}.device-card.blocked{opacity:.62}.log{background:#101b2a;color:#d9f4ff;border-radius:14px;padding:14px;min-height:116px;max-height:250px;overflow:auto;line-height:1.55}.split-log{display:grid;grid-template-columns:1fr 1fr;gap:14px}dialog{border:0;border-radius:18px;padding:0;box-shadow:0 28px 80px rgba(0,0,0,.24)}.dialog-form{min-width:380px;padding:22px;display:grid;gap:12px}menu{display:flex;justify-content:flex-end;gap:10px;padding:0;margin:0}.hidden-tip{font-size:11px;color:#9aa8bb;text-align:center}.preview-wide .material-grid{grid-template-columns:repeat(auto-fill,minmax(380px,1fr))}
@media(max-width:980px){.shell,.login-box,.grid.two{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,1fr)}.rail{position:static}.upload-form{grid-template-columns:1fr}.topbar{margin:0}.split-log{grid-template-columns:1fr}.material-grid{grid-template-columns:1fr}}
.account-device-grid{grid-template-columns:1fr 1fr}.account-row{cursor:pointer;transition:.16s}.account-row:hover,.selected-row{border-color:#74a7ff;background:linear-gradient(135deg,#f8fbff,#edf5ff);box-shadow:0 0 0 4px rgba(28,115,255,.08)}.danger-badge{border-color:#ffd1d1;color:#b8212d;background:#fff1f1}.ok-badge{border-color:#cbeedc;color:#08784d;background:#effcf6}.batch-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:12px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(135deg,#f8fbff,#eef6ff)}.checkline{display:flex!important;align-items:center;gap:8px;color:#40546f!important;font-weight:800}.checkline input{width:16px;height:16px;min-width:16px}.selectable-grid .material-card{position:relative}.select-corner{position:absolute;z-index:2;top:10px;left:10px;display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.9);border:1px solid var(--line);box-shadow:0 6px 18px rgba(35,58,88,.14);font-size:12px;font-weight:800}.selected-card{border-color:#1c73ff;box-shadow:0 0 0 4px rgba(28,115,255,.14),0 12px 28px rgba(73,98,128,.12)}.hidden-admin-hint{margin:0;color:#a2aec0;font-size:12px}.login-copy{position:relative;overflow:hidden}.login-copy:after{content:"";position:absolute;right:-90px;bottom:-90px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.11)}.panel{background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(250,253,255,.9))}.material-card:hover{transform:translateY(-2px);transition:.18s}.nav-btn,.rail a,.rail button{transition:.16s}.rail a:hover,.rail button:hover{transform:translateX(2px)}
:root{--ink:#1d1d1f;--muted:#6e6e73;--line:#d2d2d7;--blue:#0071e3;--cyan:#00a6a6;--shadow:0 18px 46px rgba(0,0,0,.08);--radius:20px}body{font-family:"SF Pro Display","PingFang SC","Microsoft YaHei UI","Segoe UI",sans-serif;background:linear-gradient(180deg,#f5f7fb,#edf3fa 48%,#e9eff7)}button{border-radius:999px;background:#0071e3;box-shadow:none;letter-spacing:.01em;transition:transform .16s,background .16s,box-shadow .16s}button:hover{background:#147ce5;transform:translateY(-1px);box-shadow:0 10px 24px rgba(0,113,227,.18)}.ghost,.tab,.level-item{background:rgba(255,255,255,.72);backdrop-filter:blur(18px);border:1px solid rgba(0,0,0,.08);box-shadow:none}.danger{background:#ff3b30}.success{background:#34c759}input,select{border-radius:14px;background:rgba(255,255,255,.78);border:1px solid rgba(0,0,0,.12);box-shadow:none}.login-box{border-radius:34px;border:1px solid rgba(255,255,255,.72);box-shadow:0 30px 80px rgba(21,31,45,.16)}.login-copy{background:linear-gradient(145deg,#111827,#075985 60%,#0f9f9a);padding:68px 60px}.login-copy h1{font-size:46px;font-weight:800;letter-spacing:-.04em}.login-copy p:not(.eyebrow){font-size:16px;line-height:1.8;opacity:.92}.login-form{gap:20px}.password-wrap{position:relative;display:block}.password-wrap input{width:100%;padding-right:58px}.eye-btn{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:42px;height:34px;padding:0;border-radius:999px;background:rgba(0,0,0,.05);color:#1d1d1f;box-shadow:none}.eye-btn:hover{background:rgba(0,0,0,.08);transform:translateY(-50%)}.subtle-link{justify-self:center;color:#6e6e73;font-size:13px}.rail{background:rgba(255,255,255,.62);backdrop-filter:blur(22px);border-right:1px solid rgba(0,0,0,.08)}.rail a,.rail button{border-radius:14px;background:transparent;border:0;color:#3f4654;justify-content:flex-start;padding-left:16px}.rail a.active{background:rgba(0,113,227,.1);color:#0066cc}.logo{box-shadow:inset 0 0 0 7px #fff,0 8px 20px rgba(0,113,227,.18)}.topbar{height:64px;background:rgba(255,255,255,.72);border-bottom:1px solid rgba(0,0,0,.08)}.panel{border-radius:22px;border:1px solid rgba(255,255,255,.72);box-shadow:var(--shadow);background:rgba(255,255,255,.74);backdrop-filter:blur(18px)}.metric{border-radius:20px;border:1px solid rgba(255,255,255,.75);background:rgba(255,255,255,.72);box-shadow:0 10px 30px rgba(0,0,0,.05)}.metric strong{font-weight:800;letter-spacing:-.03em}.row,.device-card,.material-card{border-radius:18px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.78);box-shadow:none}.material-card{overflow:hidden}.preview{background:#f2f2f7}.tab.active,.level-item.active{background:#0071e3;border-color:#0071e3;box-shadow:none}.batch-bar,.drop-zone{border-radius:20px;background:rgba(255,255,255,.62);border-color:rgba(0,0,0,.1)}.log{border-radius:20px;background:#1d1d1f;color:#f5f5f7}.badge{border-color:rgba(0,0,0,.08);background:rgba(255,255,255,.72);color:#515154}.hidden-admin-hint{display:none!important}
.lookup-box{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:10px;align-items:center;margin:0 0 14px;padding:14px;border:1px solid rgba(0,0,0,.08);border-radius:20px;background:rgba(255,255,255,.62);box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.lookup-box .hint{grid-column:1/-1;margin:0}
@media(max-width:760px){.lookup-box{grid-template-columns:1fr}.lookup-box button{width:100%;justify-content:center}}
.device-progress{display:grid;gap:6px;margin-top:8px;padding:9px 10px;border-radius:14px;background:rgba(0,113,227,.06);border:1px solid rgba(0,113,227,.1)}
.device-progress.empty{background:rgba(110,110,115,.06);border-color:rgba(110,110,115,.1)}
.device-progress small{color:#3f4654;line-height:1.45}
.progress.mini{height:7px;border-radius:999px;background:rgba(0,0,0,.08);overflow:hidden}
.progress.mini span{display:block;height:100%;width:0;background:linear-gradient(90deg,#0071e3,#34c759);transition:width .2s ease}
/* Client console v2 layout */
.app-shell-v2{grid-template-columns:240px 1fr;background:linear-gradient(120deg,#f7f9fc 0%,#edf3f9 48%,#e8eef6 100%)}
.app-rail-v2{padding:22px 16px;background:rgba(255,255,255,.72);box-shadow:inset -1px 0 rgba(0,0,0,.06);gap:18px}
.app-brand{padding:8px 8px 16px;border-bottom:1px solid rgba(0,0,0,.06)}
.side-nav{display:grid;gap:8px;margin-top:4px}
.side-nav .nav-item{justify-content:flex-start;width:100%;padding:13px 14px;border-radius:16px;color:#424b5f;background:transparent;border:1px solid transparent;box-shadow:none;font-weight:800}
.side-nav .nav-item:hover{background:rgba(0,113,227,.07);transform:translateX(2px);box-shadow:none}
.side-nav .nav-item.active{color:#005ecb;background:linear-gradient(135deg,rgba(0,113,227,.14),rgba(52,199,89,.08));border-color:rgba(0,113,227,.12)}
.nav-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;color:#0071e3;background:rgba(0,113,227,.1);font-size:10px}.nav-item.active .nav-icon{color:#fff;background:#0071e3}
.app-main-v2{padding:0 24px 28px;gap:18px}.app-topbar-v2{position:sticky;top:0;z-index:5;margin:0 -24px;padding:14px 24px;height:78px;background:rgba(247,249,252,.82);backdrop-filter:blur(24px)}
.top-actions{display:flex;align-items:center;gap:10px}.top-actions .ghost{color:#1d1d1f}.top-actions .danger{background:#1d1d1f;color:#fff}.top-actions .danger:hover{background:#333336;box-shadow:0 10px 24px rgba(0,0,0,.12)}
.page-view{display:none;gap:18px;animation:fadeInPage .18s ease}.page-view.active{display:grid}@keyframes fadeInPage{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.hero-panel{overflow:hidden;position:relative}.hero-panel:before{content:"";position:absolute;right:-80px;top:-90px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(0,113,227,.13),transparent 68%);pointer-events:none}
.profile-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px}.profile-card{padding:18px;border-radius:20px;background:rgba(255,255,255,.72);border:1px solid rgba(0,0,0,.08)}.profile-card span{display:block;color:#6e6e73;font-size:13px;font-weight:800}.profile-card strong{display:block;margin-top:8px;font-size:20px;letter-spacing:-.02em}.client-shell .rail-spacer{border-bottom:0}.client-shell .hidden-tip{opacity:.45;line-height:1.6}
@media(max-width:980px){.app-shell-v2{grid-template-columns:1fr}.app-rail-v2{position:sticky;top:0;z-index:10;display:block}.side-nav{grid-template-columns:repeat(4,1fr)}.side-nav .nav-item{justify-content:center}.profile-grid{grid-template-columns:1fr 1fr}.app-topbar-v2{margin:0 -16px}.app-main-v2{padding:0 16px 24px}}
@media(max-width:640px){.top-actions{gap:6px}.top-actions button{padding:9px 12px}.profile-grid{grid-template-columns:1fr}.side-nav{grid-template-columns:1fr}.lookup-box{grid-template-columns:1fr}}
/* Folder material browser */
.browser-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 12px}
.browser-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0;padding:10px 12px;border-radius:18px;background:rgba(255,255,255,.62);border:1px solid rgba(0,0,0,.08)}
.browser-toolbar.compact{padding:10px 12px}
.browser-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.browser-actions.compact button,.browser-toolbar.compact button{padding:9px 14px}
.browser-pathbar{display:grid;grid-template-columns:1fr minmax(260px,420px);gap:12px;align-items:center;margin:0 0 16px;padding:12px;border-radius:18px;background:rgba(255,255,255,.82);border:1px solid rgba(0,0,0,.08)}
.breadcrumbs{display:flex;gap:6px;flex-wrap:wrap}.android-crumbs{align-items:center;min-height:42px}.crumb{padding:8px 12px;background:rgba(255,255,255,.92);color:#1d1d1f;border:1px solid rgba(0,0,0,.08);box-shadow:none}.crumb.current{background:rgba(0,113,227,.1);border-color:rgba(0,113,227,.18);color:#005ecb}.crumb-sep{color:#8b95a1;font-weight:900}.path-jump{display:grid;grid-template-columns:1fr auto;gap:8px}.path-jump input{width:100%}
.file-browser{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:14px}
.browser-tile{position:relative;display:grid;gap:8px;align-content:start;padding:10px;border-radius:18px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.84);box-shadow:0 10px 24px rgba(0,0,0,.05);transition:transform .16s,box-shadow .16s,border-color .16s}
.browser-tile:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(0,0,0,.08)}
.browser-tile.selected{border-color:#0071e3;box-shadow:0 0 0 4px rgba(0,113,227,.12),0 12px 26px rgba(0,0,0,.06)}
.browser-tile.folder{min-height:154px;place-items:center;text-align:center;cursor:pointer}
.folder-launch{display:grid;justify-items:center;gap:10px;width:100%;background:none!important;border:0;box-shadow:none;padding:0;color:#1d1d1f;cursor:pointer}
.folder-launch:hover{transform:none;background:none!important;box-shadow:none}
.folder-name{font-weight:800;font-size:16px;line-height:1.25}
.folder-sub{font-size:12px;color:#6e6e73;line-height:1.4}
.file-tile{min-height:192px}
.file-tile .file-thumb{width:100%;aspect-ratio:1/1;border-radius:18px;border:1px solid rgba(0,0,0,.08);background:#f2f2f7}
.file-tile .file-thumb img{width:100%;height:100%;object-fit:cover}
.tile-name{font-weight:800;font-size:13px;line-height:1.3;max-height:34px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tile-meta{font-size:12px;color:#6e6e73}
.tile-actions{display:flex;gap:8px;justify-content:center}
.tile-actions button{padding:8px 12px;font-size:12px}
.folder-hero{display:grid;place-items:center;width:92px;height:92px;border-radius:24px;background:linear-gradient(180deg,#fff3b0,#ffd24e);box-shadow:inset 0 -10px 18px rgba(173,113,0,.12),0 12px 24px rgba(218,148,34,.16)}
.folder-hero .file-icon{transform:scale(1.25)}
.folder-hero.level-v1{background:linear-gradient(180deg,#dff2ff,#8fd8ff)}
.folder-hero.level-v2{background:linear-gradient(180deg,#e8f7de,#95e17d)}
.folder-hero.level-v3{background:linear-gradient(180deg,#ffe5dc,#ffb193)}
.folder-hero.group-active{background:linear-gradient(180deg,#ffeaa0,#ffbf2f)}
.browser-tile.folder-empty:not(.level-folder) .folder-hero{filter:saturate(.76);background:linear-gradient(180deg,#fff5c8,#ffe59a)}
.browser-tile.level-folder.folder-empty .folder-hero{filter:none;opacity:1}
.browser-tile.folder-has-materials .folder-hero{position:relative;box-shadow:inset 0 -10px 18px rgba(173,113,0,.16),0 14px 28px rgba(255,149,0,.2)}
.hover-tip{position:absolute;inset:0}
.hover-tip[title]{cursor:help}
.file-thumb{aspect-ratio:16/9;background:#2c2c2e;display:grid;place-items:center;overflow:hidden}.file-thumb img{width:100%;height:100%;object-fit:cover}.video-poster{width:100%;height:100%;display:grid;place-items:center;color:#fff;background:radial-gradient(circle at 50% 45%,rgba(255,255,255,.12),transparent 35%),linear-gradient(135deg,#2c2c2e,#111)}.video-poster span{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:rgba(255,255,255,.18);backdrop-filter:blur(10px);font-size:24px}.video-poster small{color:rgba(255,255,255,.7)}.preview-dialog{position:relative;width:min(980px,92vw);padding-top:26px}.preview-close{position:absolute;right:18px;top:16px;z-index:2;display:grid;place-items:center;width:34px;height:34px;padding:0;border-radius:50%;background:rgba(0,0,0,.06);color:#1d1d1f;border:1px solid rgba(0,0,0,.08);box-shadow:none;font-size:24px;line-height:1}.preview-close:hover{background:rgba(255,59,48,.1);color:#ff3b30;box-shadow:none;transform:translateY(-1px)}.preview-body{display:grid;place-items:center;min-height:300px;background:#111;border-radius:18px;overflow:hidden}.preview-body video,.preview-body img{max-width:100%;max-height:72vh}.top-link{display:inline-flex;align-items:center;padding:10px 16px;border-radius:999px;color:#1d1d1f}.admin-shell .metrics{margin-top:0}
/* Stable CSS folder icon and async video thumbnails */
.file-icon{position:relative;display:block;width:48px;height:36px;border-radius:9px;background:linear-gradient(180deg,#ffd66b,#f2aa24);box-shadow:inset 0 -8px 14px rgba(148,92,0,.12),0 10px 20px rgba(218,148,34,.18);font-size:0}.file-icon:before{content:"";position:absolute;left:5px;top:-8px;width:22px;height:12px;border-radius:7px 7px 0 0;background:linear-gradient(180deg,#ffe08a,#f7bd3e)}.video-poster{background-size:cover;background-position:center;transition:filter .18s}.video-poster.thumb-ready,.video-poster.static-poster{place-items:center;padding:10px}.video-poster.thumb-ready span,.video-poster.static-poster span,.video-poster.thumb-failed span{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.18);backdrop-filter:blur(10px);font-size:20px}.video-poster.thumb-ready small,.video-poster.static-poster small,.video-poster.thumb-failed small{align-self:end;justify-self:start;padding:5px 9px;border-radius:999px;background:rgba(0,0,0,.42);backdrop-filter:blur(8px)}.video-poster.thumb-failed small{color:rgba(255,255,255,.55)}.file-thumb.playable{cursor:pointer}.file-thumb.playable:hover .video-poster small,.file-thumb.playable:hover .video-poster span{transform:none}.danger-lite{color:#ff3b30!important;border-color:rgba(255,59,48,.2)!important;background:rgba(255,59,48,.08)!important}.select-corner{width:22px!important;height:22px!important;padding:0!important}.select-corner input{width:18px;height:18px;min-width:18px}
.browser-toolbar{align-items:center}.batch-bar.compact{padding:10px 12px}.batch-bar label{display:flex;align-items:center;gap:8px;font-size:13px;color:#4a5568;font-weight:700}.batch-bar input,.batch-bar select{min-width:120px}.select-corner{position:absolute;top:8px;right:8px;z-index:2;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:8px;background:rgba(255,255,255,.9);border:1px solid rgba(0,0,0,.08)}
.single-column{grid-template-columns:1fr}
.upload-dialog-form{min-width:520px}
.upload-results{display:grid;gap:7px;max-height:190px;overflow:auto}.upload-result{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 10px;border-radius:12px;background:#f5f7fa;border:1px solid rgba(0,0,0,.06)}.upload-result-mark{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#d8dee8;color:#fff;font-size:12px;font-weight:900}.upload-result.pending .upload-result-mark:after{content:"…"}.upload-result.uploading .upload-result-mark{background:#0071e3}.upload-result.uploading .upload-result-mark:after{content:"↑"}.upload-result.done{background:rgba(52,199,89,.08);border-color:rgba(52,199,89,.2)}.upload-result.done .upload-result-mark{background:#34c759}.upload-result.done .upload-result-mark:after{content:"✓"}.upload-result.failed,.upload-result.canceled{background:rgba(255,59,48,.06);border-color:rgba(255,59,48,.16)}.upload-result.failed .upload-result-mark,.upload-result.canceled .upload-result-mark{background:#ff3b30}.upload-result.failed .upload-result-mark:after{content:"!"}.upload-result.canceled .upload-result-mark:after{content:"×"}.upload-result-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:800}.upload-result small{color:#667085;white-space:nowrap}
@media(max-width:980px){.browser-pathbar{grid-template-columns:1fr}.browser-hero{display:grid}.file-browser{grid-template-columns:repeat(auto-fill,minmax(118px,1fr))}}
/* Compact data tables for many accounts/devices */
.table-wrap{width:100%;overflow:auto;border:1px solid rgba(0,0,0,.08);border-radius:18px;background:rgba(255,255,255,.78)}
.compact-table{width:100%;border-collapse:separate;border-spacing:0;min-width:920px;font-size:13px}.compact-table th{position:sticky;top:0;z-index:1;background:rgba(245,247,251,.96);color:#6e6e73;text-align:left;font-size:12px;font-weight:900;padding:10px 12px;border-bottom:1px solid rgba(0,0,0,.08);white-space:nowrap}.compact-table td{padding:10px 12px;border-bottom:1px solid rgba(0,0,0,.055);vertical-align:middle;white-space:nowrap}.compact-table tr:last-child td{border-bottom:0}.compact-table tr:hover td{background:rgba(0,113,227,.045)}.compact-table strong{display:block;color:#1d1d1f;font-size:13px;max-width:260px;overflow:hidden;text-overflow:ellipsis}.compact-table small{display:block;color:#6e6e73;max-width:280px;overflow:hidden;text-overflow:ellipsis}.compact-table code{font-family:"SF Mono","Consolas",monospace;background:#f2f2f7;border-radius:8px;padding:4px 6px}.table-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}.table-actions button{padding:7px 11px;font-size:12px}.file-placeholder{display:grid;place-items:center;width:100%;height:100%;color:#8e8e93;font-weight:900;letter-spacing:.12em;background:linear-gradient(135deg,#f2f2f7,#e5e5ea)}.static-poster small{padding:5px 9px;border-radius:999px;background:rgba(0,0,0,.35)}

/* 2026-05-29 compact Android-style management views */
.account-device-grid{grid-template-columns:minmax(360px,.92fr) minmax(420px,1.08fr);align-items:start}
.account-stack,.device-relation-list,.client-device-list,.update-progress-list{display:grid;gap:10px}
.account-card,.device-relation-card,.client-device-card,.update-progress-card{display:grid;gap:9px;padding:12px;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:rgba(255,255,255,.78);box-shadow:none}
.account-card{cursor:pointer}.account-card.selected,.client-device-card.selected{border-color:#0071e3;box-shadow:0 0 0 3px rgba(0,113,227,.12)}
.account-card-main,.client-device-head,.device-card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.account-card-main strong,.device-relation-card strong,.client-device-card strong,.update-progress-card strong{display:block;font-size:14px;line-height:1.35}
.account-card-main small,.device-relation-card small,.client-device-card small,.update-progress-card small{display:block;color:#6e6e73;font-size:12px;line-height:1.45;word-break:break-all}
.account-card-actions,.device-card-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.account-card-actions button,.device-card-actions button,.client-device-card button{padding:7px 11px;font-size:12px}
.account-meta-line{display:flex;flex-wrap:wrap;gap:6px;color:#4b5563;font-size:12px}
.account-meta-line span,.relation-device,.empty-relation,.device-relation-grid span{border:1px solid rgba(0,0,0,.06);border-radius:10px;padding:5px 8px;background:rgba(247,249,252,.82)}
.relation-list{display:grid;gap:6px}.relation-device{display:grid;gap:2px}.relation-device span,.empty-relation{color:#6e6e73;font-size:12px}
.device-relation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;color:#4b5563;font-size:12px}
.device-relation-grid span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.browser-hero{align-items:stretch}.browser-toolbar{flex:1;min-width:min(460px,100%)}.browser-actions.material-action-row{justify-content:flex-end;max-width:100%}
.material-action-row .badge{margin-right:auto}.material-action-row button{padding:8px 12px;font-size:13px}
.file-browser{grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:12px}
.file-tile{min-height:152px;padding:9px}.file-tile .file-thumb{border-radius:12px}.tile-name{font-size:13px;max-height:36px}.tile-meta,.tile-actions{display:none}
.folder-hero{width:82px;height:82px;border-radius:14px}.browser-tile.folder{min-height:138px}
.device-grid{grid-template-columns:1fr}.client-device-list{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.client-device-card{align-content:start}.device-check{display:flex;align-items:center;gap:7px;font-weight:800;color:#1d1d1f}.device-check input{width:18px;height:18px;min-width:18px}
.client-device-card .device-progress{margin:0}.update-dialog-form{width:min(620px,92vw)}.update-summary{padding:10px 12px;border-radius:12px;background:rgba(0,113,227,.08);color:#005ecb;font-weight:800}
.update-progress-card{grid-template-columns:1fr auto;align-items:center}.update-progress-card .progress{grid-column:1/-1}
.app-main-v2{gap:12px}.metrics{gap:10px}.metric{padding:12px}.metric strong{font-size:24px}.panel{padding:16px}.panel-title{margin-bottom:10px}
.password-wrap{position:relative;display:block;width:100%}.dialog-form .password-wrap input{width:100%;padding-right:56px}.dialog-form .eye-btn{right:7px}
.named-logs{align-items:start}.log-panel{background:rgba(255,255,255,.78);border:1px solid rgba(0,0,0,.08);border-radius:16px;padding:14px;box-shadow:0 10px 30px rgba(0,0,0,.05)}
.log-list{display:grid;gap:8px;max-height:none;overflow:visible;color:#1d1d1f;background:transparent;border-radius:0;padding:0}
.log-entry{display:grid;gap:3px;padding:10px 12px;border-radius:12px;background:rgba(247,249,252,.9);border:1px solid rgba(0,0,0,.06)}
.log-entry strong{font-size:13px;line-height:1.45}.log-entry small{font-size:12px;color:#6e6e73;line-height:1.45}
.device-relation-list{max-height:none;overflow:visible}.account-stack{max-height:none;overflow:visible}
.folder-sub{font-weight:800;color:#3f4654}.folder-name{font-size:15px}
.path-state{display:none}
.page-view[data-page="clients"]{min-height:calc(100vh - 108px);grid-template-rows:1fr}.page-view[data-page="clients"] .account-device-grid{min-height:calc(100vh - 238px)}.page-view[data-page="clients"] .panel{height:100%;align-content:start}
.page-view[data-page="materials"]{min-height:calc(100vh - 92px)}
.material-workspace{min-height:calc(100vh - 116px);display:grid;grid-template-rows:auto 1fr;align-content:start;padding-top:10px;overflow:visible}
.browser-hero{position:sticky;top:78px;z-index:4;display:grid;gap:10px;margin:0 0 12px;width:100%;justify-self:stretch;box-sizing:border-box;padding:8px 0 10px;background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(255,255,255,.78));backdrop-filter:blur(18px);border-bottom:1px solid rgba(0,0,0,.06)}
.browser-path-row{display:flex;align-items:center;gap:9px;width:100%;box-sizing:border-box;padding:0 2px 4px;background:transparent;border:0}
.browser-path-row #browserUpBtn.icon-back{display:grid;place-items:center;width:38px;height:38px;padding:0;border-radius:50%;background:linear-gradient(135deg,#5da5ff,#3478e5);color:#fff;border:0;font-size:22px;line-height:1}
.android-crumbs{min-height:34px;align-items:center}.crumb{padding:4px 5px;border-radius:9px;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;color:#344154;font-size:14px;font-weight:800;letter-spacing:0}.crumb.library{color:#0066cc}.crumb.current-path{font-weight:900;color:#d26b00}.crumb:hover{background:rgba(0,113,227,.08)!important;border-color:rgba(0,113,227,.12)!important;transform:scale(1.08);box-shadow:none!important}.crumb.current-path:hover{background:rgba(255,159,28,.12)!important;border-color:rgba(255,159,28,.2)!important}.crumb-sep{color:#a4acb8;font-weight:900;padding:0 3px}
.material-action-row{display:flex;align-items:center;justify-content:space-between;gap:32px;width:100%;min-height:42px;box-sizing:border-box;padding:2px 0;background:transparent;border:0}
.material-action-left,.material-action-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.material-action-left{justify-content:flex-start;margin-right:auto}.material-action-right{justify-content:flex-end;margin-left:auto}.hidden-folder-command{display:none!important}
.selection-info{display:inline-flex;align-items:center;min-height:34px;color:#465568;font-size:13px;font-weight:900}.material-action-row button{padding:8px 12px;font-size:13px}.material-action-row button:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}.upload-strong{background:linear-gradient(135deg,#ff9f1c,#ff6b35);color:#fff;border:0;box-shadow:0 10px 22px rgba(255,107,53,.22)}
.upload-strong:hover{background:linear-gradient(135deg,#ffad33,#ff7847)}
.material-workspace .file-browser{grid-template-columns:repeat(auto-fill,minmax(152px,1fr));gap:14px;align-content:start;padding-bottom:18px;user-select:none}
.material-workspace .file-tile{min-height:178px;padding:10px}.material-workspace .file-tile .file-thumb{border-radius:14px}.material-workspace .tile-name{font-size:14px;line-height:1.25}
.browser-tile.folder{min-height:190px;padding:12px 12px 38px}.folder-launch{gap:8px}.folder-hero{width:88px;height:88px;border-radius:14px}.folder-name{font-size:15px;letter-spacing:.02em}.folder-sub{font-size:11px;color:#667085;font-weight:800}.folder-mini-actions{position:absolute;left:12px;right:12px;bottom:10px;z-index:3;display:flex;justify-content:space-between;gap:8px}.folder-icon-btn{display:grid;place-items:center;width:30px;height:28px;padding:0;border-radius:9px;background:rgba(255,255,255,.9);color:#1d1d1f;border:1px solid rgba(0,0,0,.08);box-shadow:0 6px 16px rgba(0,0,0,.08);font-size:15px}.folder-icon-btn:hover{background:#fff;transform:translateY(-1px);box-shadow:0 8px 18px rgba(0,0,0,.1)}.folder-icon-btn.danger-lite{color:#ff3b30!important}.drag-select-box{position:fixed;z-index:9999;pointer-events:none;border:1px dashed #0071e3;background:rgba(0,113,227,.12);border-radius:8px}.browser-tile.drag-hit{border-color:#0071e3;box-shadow:0 0 0 4px rgba(0,113,227,.12),0 12px 26px rgba(0,0,0,.06)}
@media(max-width:980px){.account-device-grid{grid-template-columns:1fr}.material-action-row{align-items:flex-start;flex-direction:column;gap:10px}.material-action-left,.material-action-right{justify-content:flex-start;margin:0}.client-device-list{grid-template-columns:1fr}}
@media(max-width:640px){.device-relation-grid{grid-template-columns:1fr}.account-card-main,.client-device-head,.device-card-actions{align-items:flex-start;flex-direction:column}.file-browser{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))}}
.client-material-workspace{min-height:calc(100vh - 116px)}
.client-material-workspace .browser-hero{position:sticky;top:78px;z-index:4}
.client-material-workspace .file-browser{grid-template-columns:repeat(auto-fill,minmax(152px,1fr));gap:14px;align-content:start;padding-bottom:18px}
.client-material-workspace .file-tile{min-height:178px;padding:10px}
.client-material-workspace .file-tile .file-thumb{border-radius:14px}
.client-material-workspace .tile-name{font-size:14px;line-height:1.25}
.client-material-workspace .browser-tile.folder{min-height:190px;padding:12px}
.client-shell .preview-dialog,.client-shell .preview-body{width:min(980px,92vw)}
.target-picker{display:grid;gap:8px}
.target-picker input{width:100%;box-sizing:border-box}
.target-dir-panel{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px;width:100%;box-sizing:border-box;padding:10px;border:1px solid rgba(0,0,0,.08);border-radius:14px;background:rgba(247,249,252,.86)}
.target-dir-panel button{width:100%;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.9);color:#1d1d1f;border:1px solid rgba(0,0,0,.08);box-shadow:none;font-size:13px;text-align:center}
.target-dir-panel button:hover{background:rgba(0,113,227,.08);color:#005ecb;box-shadow:none}
.target-empty{color:#8a94a6;font-size:12px}
.target-path-row{display:grid;grid-template-columns:auto 92px minmax(150px,1fr);gap:10px;align-items:center}
.target-path-row span{color:#4b5563;font-weight:900}
.target-path-row select{width:100%;min-width:0}
.hidden-target-input{display:none!important}
.target-new-input{display:none;width:100%;box-sizing:border-box}

/* Client/account and device management redesign */
.client-overview-view,.device-admin-view{display:grid;gap:14px;min-height:calc(100vh - 104px);align-content:start}
.client-summary-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.client-summary-cards article{padding:18px 20px;border-radius:22px;background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(239,247,255,.9));border:1px solid rgba(0,113,227,.08);box-shadow:0 16px 40px rgba(26,52,90,.08)}
.client-summary-cards span,.client-summary-cards small{display:block;color:#667085;font-weight:800}.client-summary-cards strong{display:block;margin:7px 0 3px;font-size:28px;letter-spacing:.02em;color:#16181d}
.client-account-panel{min-height:calc(100vh - 238px)}.client-panel-title{align-items:flex-start}
.account-roster{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px}
.account-card-v2{min-height:178px;padding:16px;border-radius:20px;background:linear-gradient(180deg,#fff,rgba(248,251,255,.95));border:1px solid rgba(18,35,60,.08);box-shadow:0 14px 34px rgba(37,56,88,.08);cursor:default}
.account-card-v2.selected{border-color:#0071e3;box-shadow:0 0 0 3px rgba(0,113,227,.12),0 16px 40px rgba(37,56,88,.1)}
.account-count-badge{min-width:92px;text-align:right}.account-count-badge strong{display:block;font-size:26px}.account-count-badge small{color:#667085}
.account-compact-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.account-compact-summary span{padding:7px 10px;border-radius:999px;background:rgba(245,248,252,.96);color:#344154;font-size:12px;font-weight:900}
.account-device-preview{display:grid;gap:6px;min-height:34px}.account-device-preview span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 9px;border-radius:11px;background:rgba(0,113,227,.06);color:#344154;font-size:12px;font-weight:800}
.account-card-v2 .account-card-actions{margin-top:auto;justify-content:flex-end}
.account-card-v2{min-height:0}
.account-card-v2 .account-card-actions{margin-top:8px}
.account-inline-config{display:grid;gap:12px}
.account-inline-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.account-inline-head h3{margin:2px 0 0;font-size:18px}
.account-inline-grid{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(150px,.7fr) auto auto;gap:10px;align-items:end}
.account-inline-grid label{display:grid;gap:6px;color:#344154;font-size:12px;font-weight:900}
.account-inline-grid input{width:100%;height:42px}
.account-inline-checks{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-bottom:2px}
.account-inline-checks .checkline{white-space:nowrap}
.account-inline-grid>button{height:42px;white-space:nowrap}
.device-admin-view[hidden],.client-overview-view[hidden]{display:none!important}
.device-manager-head{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(237,246,255,.92));border:1px solid rgba(0,0,0,.06);box-shadow:0 16px 40px rgba(35,57,88,.08)}
.device-manager-head h2{margin:0;font-size:24px}.device-manager-head .hint{margin:3px 0 0}.device-manager-head .badge{margin-left:auto}
.device-manager-grid{display:grid;grid-template-columns:minmax(680px,1fr) minmax(390px,430px);gap:14px;align-items:start}
.device-list-panel,.device-detail-panel{min-height:calc(100vh - 222px)}
.device-admin-list{display:grid;gap:10px}
.device-list-card{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;padding:13px;border-radius:18px;background:rgba(255,255,255,.88);border:1px solid rgba(0,0,0,.07);box-shadow:0 10px 26px rgba(37,56,88,.06);cursor:pointer}
.device-list-card.active{border-color:#0071e3;box-shadow:0 0 0 3px rgba(0,113,227,.12),0 12px 28px rgba(37,56,88,.08)}
.device-list-card strong{display:block;font-size:14px;line-height:1.3}.device-list-card small{display:block;margin-top:4px;color:#667085;font-size:12px;line-height:1.35;word-break:break-all}
.device-select-line{display:grid;place-items:center;gap:7px}.device-select-line input{width:20px;height:20px;min-width:20px}.status-dot{width:9px;height:9px;border-radius:50%;background:#10b981;box-shadow:0 0 0 4px rgba(16,185,129,.12)}.status-dot.offline{background:#9ca3af;box-shadow:0 0 0 4px rgba(156,163,175,.14)}
.device-detail-panel{display:grid;align-content:start;gap:14px}.device-detail-card,.device-update-card{display:grid;gap:14px;padding:16px;border-radius:20px;background:rgba(255,255,255,.9);border:1px solid rgba(0,0,0,.07);box-shadow:0 12px 32px rgba(37,56,88,.06)}
.device-detail-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.device-detail-title h3{margin:0;font-size:20px}.device-detail-title p{margin:4px 0 0;color:#667085;word-break:break-all}
.device-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.device-info-grid span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:10px 12px;border-radius:12px;background:rgba(247,249,252,.94);border:1px solid rgba(0,0,0,.06);font-size:13px;color:#344154;font-weight:800}
.device-update-card h3{margin:0}.update-route-grid{display:grid;grid-template-columns:130px minmax(180px,1fr) minmax(170px,220px);gap:10px}.update-route-grid label{display:grid;gap:6px;color:#344154;font-weight:900}.update-route-grid select{width:100%}
.update-route-actions{display:flex;align-items:center;gap:12px;justify-content:flex-end}.update-route-actions .hint{margin:0}
.client-device-console{display:grid;grid-template-columns:minmax(360px,1.35fr) minmax(300px,.65fr);gap:14px;align-items:start}
.client-device-pane,.client-update-pane{min-height:360px}.client-log-row{margin-top:14px}
.client-device-list{grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:12px}.client-device-card{border-radius:18px;padding:14px;background:rgba(255,255,255,.9);box-shadow:0 12px 30px rgba(37,56,88,.07)}
.client-device-title strong{font-size:15px}.client-device-title small{margin-top:4px}.client-device-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
.client-update-pane .level-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.client-update-pane .level-item{min-height:54px;border-radius:15px}
@media(max-width:1100px){.client-summary-cards,.device-manager-grid,.client-device-console{grid-template-columns:1fr}.device-list-panel,.device-detail-panel{min-height:auto}.account-roster{grid-template-columns:1fr}.update-route-grid{grid-template-columns:1fr}.client-device-facts{grid-template-columns:1fr}}

/* Client device workspace v3 */
.client-home-grid{display:grid;gap:14px;align-content:start;min-height:calc(100vh - 110px)}
.client-summary-cards.compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.client-bind-panel .panel-title{align-items:flex-start}.lookup-box.clean{margin:0;grid-template-columns:minmax(260px,1fr) auto auto}
.client-device-console.refined{grid-template-columns:minmax(520px,1.5fr) minmax(360px,.75fr);align-items:stretch}
.client-device-console.refined .panel{min-height:calc(100vh - 330px)}
.client-device-pane{display:grid;grid-template-rows:auto 1fr}.client-device-list{align-content:start}
.client-device-card{position:relative;min-height:190px;border-radius:22px;padding:16px;background:linear-gradient(180deg,#fff,rgba(247,251,255,.94));border:1px solid rgba(18,35,60,.08)}
.client-device-card.selected{border-color:#0071e3;box-shadow:0 0 0 4px rgba(0,113,227,.13),0 16px 40px rgba(37,56,88,.1)}
.client-device-head{align-items:flex-start}.client-device-title strong{font-size:16px;letter-spacing:.01em}.client-device-title small{font-family:ui-monospace,Consolas,monospace;color:#667085}
.client-device-facts span{padding:8px 9px;background:rgba(245,248,252,.96)}
.client-device-actions{display:flex;gap:8px;justify-content:flex-end;align-items:center;margin-top:auto}.client-device-actions button{min-width:86px}
.client-update-pane{position:sticky;top:86px;align-self:start}.client-route-grid{display:grid;gap:12px;margin:16px 0}.client-route-grid label{display:grid;gap:7px;color:#344154;font-weight:900}.client-route-grid select{width:100%;min-height:48px;font-weight:900}
.hidden-level-choices{display:none!important}.selected-update-preview{margin-top:14px;padding:14px;border-radius:16px;background:rgba(0,113,227,.07);border:1px solid rgba(0,113,227,.12);color:#344154;font-size:13px;line-height:1.7}.selected-update-preview strong{color:#005ecb}
.client-records-row{min-height:calc(100vh - 118px);align-items:start}.client-records-row .log-panel{min-height:calc(100vh - 148px)}
.client-records-row .log-list{max-height:none;overflow:visible}
@media(max-width:1100px){.client-summary-cards.compact,.client-device-console.refined{grid-template-columns:1fr}.client-device-console.refined .panel{min-height:auto}.client-update-pane{position:static}.lookup-box.clean{grid-template-columns:1fr}.lookup-box.clean button{width:100%;justify-content:center}}

/* Client update refinements: keep the page full-width and make progress visible. */
.client-home-grid{width:100%;max-width:none}
.client-summary-cards.compact{grid-template-columns:repeat(3,minmax(180px,260px));justify-content:start;gap:10px}
.client-summary-cards.compact article{padding:12px 16px;min-height:92px}
.client-summary-cards.compact strong{font-size:24px;margin:4px 0 2px}
.client-device-console.refined{grid-template-columns:minmax(0,1fr) minmax(390px,430px);width:100%;gap:16px}
.client-device-console.refined .panel{min-width:0}
.client-device-list{grid-template-columns:repeat(auto-fill,minmax(430px,1fr));gap:14px}
.client-device-card{min-width:0}
.client-device-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
.client-device-facts span{white-space:normal;overflow:visible;text-overflow:clip;word-break:break-all;line-height:1.35}
.client-update-title{align-items:flex-start}
.client-update-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.client-update-actions button{padding:9px 14px}
.selected-update-preview{display:grid;gap:10px}
.selected-update-head{display:grid;gap:4px}
.selected-update-head span{color:#667085;font-weight:900}
.selected-update-head strong{font-size:14px;color:#005ecb;word-break:break-all}
.selected-update-head small{color:#667085;font-weight:800}
.selected-progress-list{display:grid;gap:8px;max-height:260px;overflow:auto;padding-right:2px}
.selected-progress-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:center;padding:10px;border-radius:14px;background:rgba(255,255,255,.82);border:1px solid rgba(0,0,0,.07)}
.selected-progress-card strong{display:block;font-size:13px;line-height:1.35}
.selected-progress-card small{display:block;color:#667085;font-size:12px;word-break:break-all}
.selected-progress-card span{font-size:12px;font-weight:900;color:#344154}
.selected-progress-card .progress{grid-column:1/-1}
.inline-progress-empty{margin:0}
@media(max-width:1300px){.client-device-console.refined{grid-template-columns:1fr}.client-update-pane{position:static}.client-device-list{grid-template-columns:repeat(auto-fill,minmax(360px,1fr))}}
@media(max-width:720px){.client-summary-cards.compact{grid-template-columns:1fr}.client-device-list{grid-template-columns:1fr}.client-device-facts{grid-template-columns:1fr}.client-update-actions{justify-content:flex-start}}

/* Client update flow: device cards are for selection, progress lives in the dialog. */
.client-update-workbench{grid-template-columns:minmax(620px,1fr) minmax(380px,430px);align-items:start}
.client-update-workbench .panel{min-height:0}
.client-update-workbench .client-device-pane{min-width:0;min-height:0}
.device-list-wide{display:grid;grid-template-columns:1fr;gap:10px;max-height:calc(100vh - 430px);min-height:0;overflow:auto;padding-right:4px}
.wide-device-card{display:grid;grid-template-columns:auto minmax(190px,.9fr) minmax(360px,1.3fr) auto auto;gap:10px;align-items:center;padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.94)}
.wide-device-card.compact-device-row{min-height:auto;padding:12px 16px}
.wide-device-card .device-check-box{display:grid;place-items:center;margin:0}
.wide-device-card .device-check-box input{width:18px;height:18px}
.wide-device-card .client-device-title{min-width:0}
.wide-device-card .client-device-title strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wide-device-card .client-device-title small{display:block;color:#667085;word-break:break-all}
.compact-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.compact-facts span{display:flex;align-items:center;min-height:36px;padding:7px 10px;border-radius:12px;background:rgba(245,248,252,.95);font-size:12px;line-height:1.25;white-space:normal;overflow:visible;text-overflow:clip;word-break:break-word}
.wide-device-card .client-device-actions{display:flex;gap:7px;justify-content:flex-end;white-space:nowrap}
.route-warning,.danger-text{color:#f04438;font-weight:800}
.route-warning{font-size:12px;margin-left:6px}
.route-section{margin:8px 0;padding:8px;border:1px solid rgba(148,163,184,.14);border-radius:16px;background:rgba(255,255,255,.58)}
.route-section-primary{border-color:rgba(0,113,227,.28);background:linear-gradient(135deg,rgba(0,113,227,.1),rgba(20,184,166,.08));box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}
.route-section-title{display:flex;align-items:center;gap:8px;margin:0 0 7px;color:#1d2b44;font-size:12px;font-weight:900}
.route-section-title span{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:999px;color:#fff;background:linear-gradient(135deg,#0071e3,#14b8a6);font-size:11px}
.delivery-mode-switch,.update-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.delivery-mode-switch label,.update-mode-switch label{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid rgba(0,0,0,.08);border-radius:14px;background:rgba(255,255,255,.9);font-weight:900;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.delivery-mode-switch label{min-height:56px;align-items:flex-start}
.delivery-mode-switch label span{display:grid;gap:4px}.delivery-mode-switch label b{font-size:15px}.delivery-mode-switch label small{color:#667085;font-size:12px;font-weight:800;line-height:1.3}
.delivery-mode-switch label:has(input:checked),.update-mode-switch label:has(input:checked){border-color:rgba(0,113,227,.55);background:linear-gradient(135deg,rgba(0,113,227,.13),rgba(52,199,89,.11));box-shadow:0 10px 24px rgba(0,113,227,.12);color:#006edb}
.delivery-mode-switch label:has(input:checked) small{color:#1f6f7b}
.client-route-grid label[hidden]{display:none!important}
.client-route-grid,.device-detail-panel .update-route-grid{min-height:246px;align-content:start}
.client-route-grid .folder-route-field[hidden],.device-detail-panel .update-route-grid .admin-folder-route-field[hidden]{display:grid!important;visibility:hidden;pointer-events:none}
.clean-preview{box-shadow:none;border:1px solid rgba(0,0,0,.06);background:rgba(246,249,252,.9)}
.scope-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:10px}
.scope-actions button{width:100%;justify-content:center}
.progress-dialog-form{position:relative;width:min(780px,94vw);max-height:86vh;padding-top:28px}
.update-dialog-close{right:18px;top:18px}
.dialog-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.progress-summary{display:grid;gap:4px}
.progress-summary strong{font-size:15px}
.progress-summary small{color:#667085}
.progress-message{margin:8px 0 0;padding:10px 12px;border-radius:14px;background:rgba(0,113,227,.08);color:#0057b8;font-size:13px;font-weight:800}
.active-update-notice{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin:12px 0 0;padding:12px;border-radius:16px;background:linear-gradient(135deg,rgba(0,113,227,.1),rgba(52,199,89,.08));border:1px solid rgba(0,113,227,.18)}
.active-update-notice[hidden]{display:none!important}
.active-update-notice strong{display:block;color:#005ecb;font-size:13px}
.active-update-notice small{display:block;color:#526070;font-size:12px;line-height:1.45}
.active-update-notice .progress{grid-column:1/-1;height:7px;background:rgba(0,0,0,.08)}
.active-update-notice .progress span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0071e3,#34c759)}

/* Client project manager */
.project-update-workbench{grid-template-columns:minmax(680px,1fr) minmax(390px,430px)}
.project-manager-pane{display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0}
.project-list{display:grid;gap:12px;align-content:start;max-height:calc(100vh - 270px);overflow:auto;padding-right:4px}
.project-card{display:grid;gap:10px;padding:12px;border-radius:20px;background:linear-gradient(180deg,#fff,rgba(247,251,255,.96));border:1px solid rgba(22,35,58,.08);box-shadow:0 14px 34px rgba(37,56,88,.07)}
.project-card.active{border-color:rgba(0,113,227,.42);box-shadow:inset 4px 0 0 #0071e3,0 14px 34px rgba(37,56,88,.08)}
.project-card-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center}
.project-toggle{width:34px;height:34px;padding:0;border-radius:50%;font-size:18px;background:#e8f3ff;color:#0066cc;border:1px solid rgba(0,113,227,.22);box-shadow:none}
.project-toggle:hover{background:#d8ebff;color:#0057b8;transform:none;box-shadow:none}
.project-title-button{justify-content:flex-start;text-align:left;background:transparent;border:none;box-shadow:none;padding:2px 0;color:#111827}
.project-title-button:hover,.project-title-button:focus-visible,.project-title-button:active{background:transparent;color:#111827;transform:none;box-shadow:none}
.project-title-button strong{display:block;font-size:17px;color:#111827}
.project-title-button small{display:block;margin-top:4px;color:#667085;font-size:12px}
.project-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.project-actions button{padding:8px 11px}
.lan-group{display:grid;gap:7px;padding:8px;border-radius:17px;background:rgba(246,249,252,.78);border:1px solid rgba(0,0,0,.06);border-left:5px solid var(--lan-color,#0071e3)}
.lan-group.color-1{--lan-color:#0071e3}.lan-group.color-2{--lan-color:#34c759}.lan-group.color-3{--lan-color:#ff9500}.lan-group.color-4{--lan-color:#af52de}.lan-group.color-5{--lan-color:#00a7b5}.lan-group.color-6{--lan-color:#ff3b30}
.lan-group-head{display:flex;align-items:center;gap:8px;min-width:0}
.lan-dot{width:10px;height:10px;border-radius:50%;background:var(--lan-color,#0071e3);box-shadow:0 0 0 4px color-mix(in srgb,var(--lan-color,#0071e3) 16%,transparent)}
.lan-group-head strong{font-size:13px;color:#263548;word-break:break-all}
.lan-group-head small{margin-left:auto;color:#667085;font-size:12px;white-space:nowrap}
.lan-device-list{display:grid;gap:8px}
.project-device-row{display:grid;grid-template-columns:auto minmax(210px,1fr) minmax(300px,1.6fr) auto auto;gap:8px;align-items:center;padding:7px 10px;border-radius:15px;background:rgba(255,255,255,.92);border:1px solid rgba(0,0,0,.06)}
.project-device-row.selected{border-color:#0071e3;box-shadow:0 0 0 3px rgba(0,113,227,.12)}
.compact-device-title strong{font-size:15px}
.compact-device-title small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-device-facts{display:flex!important;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.project-device-facts span{display:inline-flex;align-items:center;min-height:24px;max-width:210px;padding:4px 8px;border-radius:999px;background:rgba(245,248,252,.95);font-size:12px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-device-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
button.tiny{padding:6px 9px;font-size:12px}
.device-overview-panel{min-height:calc(100vh - 150px)}
.device-overview-head{align-items:flex-start}
.device-filter-bar{display:grid;grid-template-columns:minmax(260px,1.5fr) repeat(5,minmax(130px,.7fr));gap:9px;margin:14px 0 16px}
.device-filter-bar input,.device-filter-bar select{width:100%;height:44px}
.device-overview-list{display:grid;gap:10px}
.device-overview-row{display:grid;grid-template-columns:minmax(260px,1.1fr) minmax(420px,2fr) minmax(120px,.55fr) auto;gap:12px;align-items:center;padding:13px 14px;border-radius:18px;background:rgba(255,255,255,.9);border:1px solid rgba(22,35,58,.08);box-shadow:0 12px 30px rgba(37,56,88,.06)}
.device-overview-row.online{border-left:5px solid #34c759}.device-overview-row.offline{border-left:5px solid #c9d3df}.device-overview-row.updating{border-left:5px solid #0071e3}.device-overview-row.failed{border-left:5px solid #ff3b30}
.device-overview-main{display:flex;align-items:center;gap:10px;min-width:0}
.device-overview-main>div{min-width:0}
.device-overview-main strong{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.device-overview-main small{display:block;color:#667085;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.device-overview-tags{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.device-overview-tags span{max-width:220px;padding:6px 9px;border-radius:999px;background:rgba(245,248,252,.95);font-size:12px;color:#344154;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.device-overview-tags span.warn{color:#b45309;background:#fff7ed}
.device-overview-code{display:grid;gap:3px;justify-items:start}
.device-overview-code small{color:#667085;font-size:11px;font-weight:900}
.copy-pill{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:5px 10px;border-radius:999px;border:1px solid rgba(0,113,227,.18);background:#eef6ff;color:#005ecb;font-size:12px;font-weight:900;box-shadow:none}
.copy-pill:hover{background:#dfefff;transform:none;box-shadow:none}
.device-overview-actions{display:flex;justify-content:flex-end}
.device-info-dialog{position:relative;width:min(760px,94vw);padding-top:30px}
.device-info-body{display:grid;gap:12px}
.device-info-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;border-radius:14px;background:linear-gradient(135deg,rgba(0,113,227,.08),rgba(52,199,89,.07))}
.device-info-summary span:not(.status){padding:5px 9px;border-radius:999px;background:#fff;color:#40546f;font-size:12px;font-weight:900}
.device-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.device-info-grid span{display:grid;gap:4px;min-height:52px;padding:9px 11px;border-radius:13px;background:rgba(246,249,252,.95);font-size:13px;color:#243044;word-break:break-word}
.device-info-grid b{font-size:11px;color:#667085}
.device-full-id{display:grid;gap:6px;color:#667085;font-weight:900;font-size:12px}
.device-full-id textarea{min-height:58px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}
.admin-account-project-preview{display:block}
.admin-project-tree{display:grid;gap:8px}
.admin-project-tree.compact{max-height:260px;overflow:auto;padding-right:4px}
.admin-project-device-list{display:grid;gap:10px;max-height:calc(100vh - 330px);overflow:auto;padding-right:4px}
.admin-project-node{border:1px solid rgba(22,35,58,.08);border-radius:15px;background:rgba(248,251,255,.78);overflow:hidden}
.admin-project-node>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 10px;cursor:pointer;list-style:none}
.admin-project-node>summary::-webkit-details-marker{display:none}
.admin-project-node>summary strong{min-width:0;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-project-node>summary small{color:#667085;font-size:12px;white-space:nowrap}
.project-toggle-lite{display:grid;place-items:center;width:24px;height:24px;border-radius:999px;background:rgba(0,113,227,.1);color:#0071e3;font-weight:900;transition:transform .18s ease}
.admin-project-node:not([open]) .project-toggle-lite{transform:rotate(-90deg)}
.admin-lan-list{display:grid;gap:7px;padding:0 10px 10px}
.admin-lan-chip{display:grid;gap:6px;padding:8px;border-radius:13px;background:#fff;border:1px solid rgba(0,0,0,.06);border-left:4px solid var(--lan-color,#0071e3)}
.admin-lan-chip.color-1{--lan-color:#0071e3}.admin-lan-chip.color-2{--lan-color:#34c759}.admin-lan-chip.color-3{--lan-color:#ff9500}.admin-lan-chip.color-4{--lan-color:#af52de}.admin-lan-chip.color-5{--lan-color:#00a7b5}.admin-lan-chip.color-6{--lan-color:#ff3b30}
.admin-lan-head,.admin-mini-device{display:flex;align-items:center;gap:8px;min-width:0}
.admin-lan-head strong{font-size:12px;word-break:break-all}
.admin-lan-head small{margin-left:auto;color:#667085;font-size:11px;white-space:nowrap}
.admin-mini-device{padding:7px;border-radius:11px;background:rgba(246,249,252,.9)}
.admin-mini-device>div{min-width:0}
.admin-mini-device strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-mini-device small{display:block;color:#667085;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-project-select-row{grid-template-columns:auto minmax(190px,.75fr) minmax(300px,1.35fr) auto auto}
.device-detail-panel{min-height:0}
.device-list-panel{min-height:calc(100vh - 330px)}
.admin-route-only{position:sticky;top:86px}
.device-info-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.client-update-workbench.project-update-workbench{align-items:start}
.client-update-workbench.project-update-workbench .client-update-pane{align-self:start;height:auto;min-height:0!important;position:sticky;top:86px}
.client-update-workbench.project-update-workbench .project-manager-pane{min-height:0}
.client-update-workbench.project-update-workbench .project-list{max-height:calc(100vh - 270px)}
.project-device-dialog{width:min(560px,94vw)}
.project-lookup-box{grid-template-columns:minmax(0,1fr) auto;margin:12px 0}
.project-lookup-result,.lan-candidate-list{display:grid;gap:8px}
.project-lookup-device,.lan-candidate{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:10px 12px;border-radius:14px;background:rgba(246,249,252,.95);border:1px solid rgba(0,0,0,.06)}
.project-lookup-device strong,.lan-candidate strong{display:block;font-size:13px}
.project-lookup-device small,.lan-candidate small{display:block;color:#667085;font-size:12px;word-break:break-all}
.lan-candidate span{font-size:12px;font-weight:900;color:#0071e3}
.lan-candidate.blocked{opacity:.68}.lan-candidate.blocked span{color:#f04438}
.lan-auto-bind{display:flex;align-items:center;gap:8px;margin:10px 0;padding:10px 12px;border-radius:14px;background:rgba(0,113,227,.07);font-weight:900;color:#344154}
@media(max-width:1300px){.project-update-workbench,.device-manager-grid{grid-template-columns:1fr}.project-list{max-height:none}.project-device-row{grid-template-columns:auto minmax(0,1fr) auto}.project-device-facts{grid-column:2/-1}.project-device-actions{grid-column:2/-1;justify-content:flex-start}.device-filter-bar{grid-template-columns:1fr 1fr 1fr}.device-overview-row{grid-template-columns:minmax(220px,1fr) minmax(320px,1.4fr) auto}.admin-route-only,.client-update-workbench.project-update-workbench .client-update-pane{position:static}.account-inline-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.project-card-head,.project-device-row{grid-template-columns:1fr}.project-actions,.project-device-actions{justify-content:flex-start}.project-device-facts span{max-width:100%}.lan-group-head{flex-wrap:wrap}.lan-group-head small{margin-left:0}.device-filter-bar,.device-overview-row,.device-info-grid{grid-template-columns:1fr}.device-overview-actions{justify-content:flex-start}}
.update-progress-scroll{display:grid;gap:10px;max-height:52vh;overflow:auto;padding-right:3px}
.task-progress-card{grid-template-columns:minmax(0,1fr) auto}
.task-progress-card .progress-detail{grid-column:1/-1;color:#667085;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.task-progress-card .progress-detail span{display:inline-flex;align-items:center;min-height:20px;padding:2px 7px;border-radius:999px;background:rgba(248,250,252,.92)}
.task-status-text{font-weight:900}
.task-status-master .task-status-text{color:#f04438}
.task-status-master .progress span{background:linear-gradient(90deg,#ff3b30,#ff9500)}
.task-status-peer .task-status-text{color:#006edb}
.task-status-peer .progress span{background:linear-gradient(90deg,#0071e3,#14b8a6)}
.task-status-waiting .task-status-text{color:#d97706}
.task-status-completed .task-status-text{color:#079455}
.task-status-failed .task-status-text{color:#f04438}

/* Commercial device/project layout polish */
.device-admin-view .device-manager-head{display:none}
.account-inline-title{display:flex;align-items:center;gap:10px;min-width:0}
.device-manager-grid{align-items:stretch}
.device-list-panel,.device-detail-panel{height:calc(100vh - 332px);min-height:540px;overflow:hidden}
.device-list-panel{display:grid;grid-template-rows:auto minmax(0,1fr)}
.device-detail-panel{display:grid;align-content:start;overflow:auto}
.device-detail-panel .admin-route-panel-flat{padding:0;border:0;background:transparent;box-shadow:none;min-width:0}
.device-detail-panel .panel-title{align-items:flex-start}
.device-detail-panel .update-mode-switch{grid-template-columns:1fr}
.device-detail-panel .update-route-grid{grid-template-columns:1fr;gap:12px}
.device-detail-panel .selected-update-head{padding:12px;border-radius:14px}
.device-detail-panel .update-route-actions{justify-content:stretch}
.device-detail-panel .update-route-actions button{width:100%;justify-content:center}
.admin-route-only{position:static}
.project-update-workbench{grid-template-columns:minmax(720px,1fr) minmax(360px,430px)}
.client-update-workbench.project-update-workbench{align-items:stretch}
.client-update-workbench.project-update-workbench .project-manager-pane{height:calc(100vh - 240px);min-height:560px;max-height:calc(100vh - 150px)}
.client-update-workbench.project-update-workbench .client-update-pane{height:auto;min-height:0;max-height:none}
.client-update-workbench.project-update-workbench .project-manager-pane{overflow:hidden}
.client-update-workbench.project-update-workbench .client-update-pane{align-self:start;position:sticky;top:86px;overflow:visible}
.client-update-workbench.project-update-workbench #deviceList{min-height:0;overflow:hidden}
.client-update-workbench.project-update-workbench .project-list{height:100%;max-height:none;overflow:auto;align-content:start;padding-right:6px}
.project-manager-title{align-items:flex-start;gap:12px}
.project-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.project-search-box{display:grid;grid-template-columns:minmax(210px,300px) auto;gap:8px;align-items:center}
.project-search-box input{height:42px;min-width:0}
.project-search-box button{height:42px}
.project-device-row,.project-device-row.compact-project-device,.admin-project-select-row{grid-template-columns:auto minmax(180px,1.15fr) minmax(150px,.75fr) auto auto;min-height:54px}
.project-device-row{gap:10px;padding:8px 10px}
.project-device-row .device-check{align-self:center}
.compact-device-title strong{font-size:15px;line-height:1.2}
.compact-device-title small{margin-top:3px}
.project-device-facts span{max-width:180px}
.local-ip-link{color:#006edb;font-weight:900;text-decoration:none}
.local-ip-link:hover{text-decoration:underline}
.muted-ip{color:#98a2b3;font-weight:800}
.device-info-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}

@media(max-width:1300px){
  .client-update-workbench.project-update-workbench .project-manager-pane,
  .client-update-workbench.project-update-workbench .client-update-pane,
  .device-list-panel,.device-detail-panel{height:auto;min-height:0;max-height:none}
  .client-update-workbench.project-update-workbench .client-update-pane{position:static}
}

@media(max-width:900px){
  .project-header-actions,.project-search-box{width:100%;grid-template-columns:1fr}
  .project-device-row,.project-device-row.compact-project-device,.admin-project-select-row{grid-template-columns:auto minmax(0,1fr) auto}
  .project-device-facts{grid-column:2/-1}
  .project-device-actions{grid-column:2/-1;justify-content:flex-start}
}

/* Project hierarchy refinement */
.project-card.active{border-color:rgba(22,35,58,.1);box-shadow:0 14px 34px rgba(37,56,88,.06)}
.project-card.active:focus-within{border-color:rgba(0,113,227,.28)}
.project-card-head{grid-template-columns:auto minmax(0,1fr) auto}
.project-card-head .project-actions{grid-column:auto;justify-content:flex-start;gap:6px}
.project-card-head .project-actions button{padding:5px 9px;font-size:12px;min-height:30px}
.lan-group{border-left-color:#d9e1ec!important;background:rgba(248,250,253,.72)}
.lan-dot{background:#c8d2df!important;box-shadow:0 0 0 4px rgba(148,163,184,.14)!important}
.lan-group-head strong{color:#6b7788;font-size:12px}
.lan-group-head small{color:#8a96a8}
.project-device-actions [data-device-info]{color:#005ecb!important;background:rgba(0,113,227,.07)!important;border-color:rgba(0,113,227,.16)!important}
.project-device-actions [data-device-info]:hover{background:rgba(0,113,227,.12)!important}
.icon-remark-btn{width:30px;min-width:30px;height:30px;padding:0!important;border-radius:10px!important;color:#475467!important;background:rgba(244,247,251,.9)!important;border-color:rgba(22,35,58,.1)!important;font-size:15px!important;line-height:1}
.icon-remark-btn:hover{color:#005ecb!important;background:rgba(0,113,227,.08)!important}
.inline-remark-input{width:100%;height:34px;padding:6px 10px;border-radius:10px;border:1px solid rgba(0,113,227,.32);background:#fff;color:#111827;font-size:14px;font-weight:800;box-shadow:0 0 0 3px rgba(0,113,227,.08);outline:none}
@media(max-width:1200px){.client-update-workbench{grid-template-columns:1fr}.device-list-wide{max-height:none}.wide-device-card{grid-template-columns:auto minmax(180px,1fr) auto}.compact-facts{grid-column:2/-1;grid-template-columns:repeat(2,minmax(0,1fr))}.wide-device-card .client-device-actions{grid-column:2/-1;justify-content:flex-start}}
@media(max-width:720px){.wide-device-card{grid-template-columns:auto 1fr}.wide-device-card>.status{grid-column:2}.compact-facts,.wide-device-card .client-device-actions{grid-column:1/-1;grid-template-columns:1fr}.update-mode-switch,.scope-actions{grid-template-columns:1fr}}

/* Device naming confirmation flow */
.project-card-head{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
.project-title-area{min-width:0}
.project-title-line{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.project-title-button{min-width:0;max-width:260px}
.project-title-button strong{color:#3d6c9f;font-size:17px;letter-spacing:.01em}
.project-head-right{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.project-meta{justify-self:end;color:#98a2b3;font-size:12px;font-weight:800;white-space:nowrap}
.project-card-head .project-actions{grid-column:auto;margin-left:2px}
.project-card-head .project-actions button{padding:4px 8px;min-height:28px;font-size:12px}
.project-add-primary{min-height:34px;padding:7px 14px!important;border-radius:999px!important;border:1px solid rgba(0,113,227,.22)!important;background:linear-gradient(135deg,#0a84ff,#34c759)!important;color:#fff!important;font-size:13px!important;font-weight:900!important;box-shadow:0 10px 24px rgba(0,113,227,.2)!important;white-space:nowrap}
.project-add-primary:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(0,113,227,.26)!important}
.project-toggle,.project-toggle-lite{font-size:22px!important;font-weight:900;line-height:1}
.project-toggle{background:#eef6ff;color:#1677d2}
.project-toggle-lite{color:#1677d2}
.project-device-row,.project-device-row.compact-project-device,.admin-project-select-row{grid-template-columns:auto minmax(220px,1fr) minmax(460px,1.85fr) auto}
.device-name-cell{display:flex;align-items:center;gap:8px;min-width:0}
.device-name-cell .device-name-text{display:block;min-width:0;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.device-name-cell .inline-remark-input{flex:0 1 260px;max-width:260px}
.inline-remark-tools{display:flex;align-items:center;gap:4px;flex:0 0 auto}
.icon-remark-btn.success-lite{color:#079455!important;background:#ecfdf3!important;border-color:rgba(7,148,85,.18)!important}
.icon-remark-btn.danger-lite{color:#f04438!important;background:#fff1f0!important;border-color:rgba(240,68,56,.18)!important}
.project-device-facts{justify-content:center;text-align:center;gap:7px;padding:0 10px}
.project-device-facts span{max-width:160px;border:1px solid rgba(22,35,58,.06);background:rgba(247,249,252,.96)}
.project-device-facts .level-meta{color:#005ecb;background:rgba(0,113,227,.08);border-color:rgba(0,113,227,.12)}
.project-device-facts .ip-meta{max-width:210px}
.project-device-facts .meta-status{max-width:80px;color:#0f9f6e;background:rgba(16,185,129,.08);border-color:rgba(16,185,129,.16)}
.project-device-facts .meta-status.offline{color:#98a2b3;background:rgba(148,163,184,.1);border-color:rgba(148,163,184,.16)}
.project-device-actions{flex-wrap:nowrap;justify-content:center}
@media(max-width:900px){
  .project-card-head{grid-template-columns:auto minmax(0,1fr)}
  .project-head-right{grid-column:2;justify-content:flex-start;flex-wrap:wrap}
  .project-meta{justify-self:start}
  .project-device-row,.project-device-row.compact-project-device,.admin-project-select-row{grid-template-columns:auto minmax(0,1fr) auto}
  .project-device-facts{grid-column:2/-1;justify-content:flex-start}
  .device-name-cell .inline-remark-input{max-width:100%}
}

/* Password, project tree and batch binding polish */
.eye-btn{font-size:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;color:#1d2939!important}
.eye-btn::before{content:"";width:18px;height:12px;border:2px solid currentColor;border-radius:75% 75% 75% 75% / 70% 70% 70% 70%;opacity:.9}
.eye-btn::after{content:"";position:absolute;left:50%;top:50%;width:5px;height:5px;border-radius:50%;background:currentColor;transform:translate(-50%,-50%)}
.eye-btn.is-visible{background:rgba(0,113,227,.1)!important;color:#005ecb!important}
.project-card.active{border-color:rgba(0,113,227,.18)!important;box-shadow:0 14px 34px rgba(37,56,88,.06)!important}
.project-toggle,.project-toggle-lite{display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:0!important;line-height:1!important;border-radius:999px!important}
.project-toggle{width:34px!important;height:34px!important;background:#eef6ff!important;border:1px solid rgba(0,113,227,.18)!important;color:#1677d2!important}
.project-toggle-lite{width:24px!important;height:24px!important;background:rgba(0,113,227,.08)!important;color:#1677d2!important;transform:none!important}
.project-toggle::before,.project-toggle-lite::before{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .16s ease}
.project-toggle.collapsed::before,.admin-project-node:not([open]) .project-toggle-lite::before{transform:rotate(-45deg)}
.account-panel-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.account-panel-actions input{height:42px;min-width:260px}
.account-display-name{font-size:18px!important;color:#16233a}
.account-id-line,.account-pass-line{margin-top:2px;color:#667085!important;font-size:12px!important}
.account-pass-line{color:#344054!important}
.lan-auto-bind{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 8px}
.lan-auto-bind span{display:block;grid-column:2;color:#667085;font-size:12px;font-weight:700}
.lan-candidate{grid-template-columns:auto minmax(0,1fr) auto}
.lan-candidate-check{display:grid;place-items:center;margin:0}
.lan-candidate-check input{width:16px;height:16px}
.lan-candidate.blocked .lan-candidate-check{opacity:.45}
input,textarea,select{color:#111827;caret-color:#0071e3}
input::placeholder,textarea::placeholder{color:#98a2b3;opacity:1}
input:-webkit-autofill,input:-webkit-autofill:focus{box-shadow:0 0 0 1000px #fff inset;-webkit-text-fill-color:#111827}
.project-select-all-btn{min-height:34px;padding:7px 12px!important;font-size:12px!important;font-weight:900!important;color:#005ecb!important;background:rgba(0,113,227,.07)!important;border-color:rgba(0,113,227,.16)!important}
.project-select-all-btn:hover{background:rgba(0,113,227,.12)!important}
.log-download-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.log-download-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;text-decoration:none;font-size:12px;font-weight:900;color:#1d1d1f}.material-card:hover,.browser-tile:hover,.file-tile:hover{transform:none!important}.browser-tile:hover{border-color:rgba(0,113,227,.22);box-shadow:0 12px 26px rgba(0,0,0,.08)}.material-card:hover,.file-tile:hover{border-color:rgba(0,113,227,.2);box-shadow:0 10px 24px rgba(0,0,0,.06)}.file-thumb.playable:hover .video-poster{filter:brightness(1.06)}
.project-select-all-btn:disabled{opacity:.42!important;color:#98a2b3!important;background:rgba(148,163,184,.08)!important}
.project-lookup-device{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px}
.project-lookup-device small{grid-column:1;color:#667085}
.lookup-state{grid-row:1/3;grid-column:2;align-self:center;padding:6px 10px;border-radius:999px;background:rgba(0,113,227,.08);color:#005ecb;font-size:12px;font-weight:900;white-space:nowrap}
.lan-candidate-check.muted::before{content:"";width:8px;height:8px;border-radius:50%;background:#d0d7e2;display:block}
.lan-relay-group{border-color:rgba(0,113,227,.28)!important;background:linear-gradient(180deg,rgba(0,113,227,.035),rgba(255,255,255,.86))!important}
.lan-group-check{display:inline-grid;place-items:center;margin:0}.lan-group-check input{width:16px;height:16px}
.lan-master-state{margin-left:auto;color:#d97706!important;font-weight:900!important}
.lan-master-state.ready{color:#079455!important}.lan-master-state.pending{color:#f04438!important}
.lan-master-device{border-color:rgba(0,113,227,.7)!important;background:linear-gradient(90deg,rgba(0,113,227,.06),rgba(255,255,255,.94))!important}
.lan-master-pick{display:inline-flex;align-items:center;gap:4px;margin-right:8px;padding:4px 8px;border-radius:999px;background:rgba(100,116,139,.08);color:#475569;font-size:12px;font-weight:900;white-space:nowrap}
.lan-master-pick input{width:13px;height:13px}.lan-master-pick.active{background:rgba(0,113,227,.14);color:#005ecb}
.lan-relay-group.locked .lan-master-pick,.lan-relay-group.locked .lan-group-check{opacity:.55;cursor:not-allowed}
.lan-relay-group.locked .lan-master-pick input,.lan-relay-group.locked .lan-group-check input{cursor:not-allowed}
