*{box-sizing:border-box}
:root{
  color-scheme:dark;
  --bg:#080b09;
  --bg2:#0c110e;
  --panel:#101713;
  --panel2:#141c17;
  --panel3:#18221b;
  --line:#243129;
  --line2:#304037;
  --text:#edf4ef;
  --muted:#84938a;
  --muted2:#5e6d64;
  --green:#8ce9aa;
  --green2:#54ca7d;
  --green3:#1d4c2e;
  --red:#ff9ca4;
  --redbg:#321c21;
  --shadow:0 24px 70px rgba(0,0,0,.32);
}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:
 radial-gradient(900px 500px at 78% -10%,rgba(61,147,91,.12),transparent 65%),
 radial-gradient(700px 420px at -10% 30%,rgba(42,100,64,.08),transparent 65%),
 var(--bg);color:var(--text);font:13px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:-.01em}
body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.28;background-image:linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);background-size:36px 36px;mask-image:linear-gradient(to bottom,#000,transparent 80%)}
a{color:inherit;text-decoration:none}button,input,select{font:inherit}
svg{width:17px;height:17px;display:block;flex:none}.chevron{width:14px;height:14px;transition:transform .18s ease}.nav-dropdown[open] .chevron,.user-dropdown[open] .chevron{transform:rotate(180deg)}

.app-shell{min-height:100vh}.topbar{position:sticky;top:0;z-index:50;height:78px;display:flex;align-items:center;gap:34px;padding:0 clamp(18px,3.4vw,52px);border-bottom:1px solid rgba(55,72,61,.55);background:rgba(8,12,10,.84);backdrop-filter:blur(22px) saturate(130%);box-shadow:0 12px 35px rgba(0,0,0,.13)}
.brand{display:flex;align-items:center;gap:11px;flex:0 0 auto}.brand-mark{position:relative;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#a5f2ba 0%,#5dcc82 100%);color:#08150d;box-shadow:0 8px 28px rgba(81,205,126,.18),inset 0 1px rgba(255,255,255,.45)}.brand-mark:after{content:"";position:absolute;inset:1px;border-radius:11px;border:1px solid rgba(255,255,255,.23)}.brand-mark span{font-weight:950;font-size:17px;position:relative;z-index:1}.brand-copy b,.brand-copy small{display:block}.brand-copy b{font-size:14px;letter-spacing:-.04em}.brand-copy small{margin-top:1px;font-size:7px;color:var(--muted);font-weight:800;letter-spacing:1.7px}

.top-nav{display:flex;align-items:center;gap:3px;min-width:0}.nav-dropdown,.user-dropdown{position:relative}.nav-dropdown summary,.user-dropdown summary{list-style:none;cursor:pointer}.nav-dropdown summary::-webkit-details-marker,.user-dropdown summary::-webkit-details-marker{display:none}.nav-dropdown summary{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid transparent;border-radius:10px;color:#98a79e;font-size:11px;font-weight:750;transition:.18s ease}.nav-icon{display:grid;place-items:center;color:#6f8076}.nav-icon svg{width:15px;height:15px}.nav-dropdown summary:hover,.nav-dropdown[open] summary,.nav-dropdown.active summary{color:var(--text);background:rgba(129,228,160,.055);border-color:#26352c}.nav-dropdown[open] .nav-icon,.nav-dropdown.active .nav-icon{color:var(--green)}
.nav-menu{position:absolute;top:calc(100% + 10px);left:0;width:285px;padding:7px;border:1px solid #2b3b31;border-radius:15px;background:rgba(18,25,21,.97);box-shadow:0 25px 70px rgba(0,0,0,.48);backdrop-filter:blur(20px)}.nav-menu:before{content:"";position:absolute;top:-5px;left:23px;width:9px;height:9px;background:#121915;border-left:1px solid #2b3b31;border-top:1px solid #2b3b31;transform:rotate(45deg)}.nav-menu a{position:relative;display:grid;grid-template-columns:30px 1fr;grid-template-rows:auto auto;column-gap:7px;padding:11px;border-radius:10px;color:#cbd5ce;transition:.16s ease}.nav-menu a svg{grid-row:1/3;align-self:center;color:#789083;width:16px}.nav-menu a span{font-size:11px;font-weight:800}.nav-menu a small{margin-top:1px;color:#63736a;font-size:9px}.nav-menu a:hover{background:#1a2820;color:var(--green)}.nav-menu a:hover svg{color:var(--green)}

.topbar-right{display:flex;align-items:center;gap:15px;margin-left:auto}.server-status{display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #24352b;border-radius:999px;background:rgba(20,34,25,.58);color:#91a299;font-size:9px;font-weight:750}.server-status i{width:6px;height:6px;border-radius:50%;background:#75e69a;box-shadow:0 0 0 4px rgba(117,230,154,.08),0 0 14px rgba(117,230,154,.5)}
.user-dropdown summary{display:flex;align-items:center;gap:9px;padding:5px 7px;border:1px solid transparent;border-radius:11px}.user-dropdown summary:hover,.user-dropdown[open] summary{background:#121b16;border-color:#26352c}.avatar{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(145deg,#9bedb2,#56c97c);color:#0a1710;font-weight:900;font-size:10px;box-shadow:inset 0 1px rgba(255,255,255,.4)}.avatar.large{width:38px;height:38px}.user-meta b,.user-meta small{display:block}.user-meta b{font-size:10px}.user-meta small{font-size:8px;color:var(--muted);margin-top:1px}.user-dropdown>.chevron{color:#718178}
.dropdown-menu{position:absolute;right:0;top:calc(100% + 10px);width:245px;padding:8px;border:1px solid #2b3b31;border-radius:15px;background:rgba(18,25,21,.98);box-shadow:0 25px 70px rgba(0,0,0,.5);backdrop-filter:blur(20px)}.dropdown-profile{display:flex;align-items:center;gap:10px;padding:10px}.dropdown-profile b,.dropdown-profile small{display:block}.dropdown-profile b{font-size:11px}.dropdown-profile small{font-size:9px;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}.dropdown-divider{height:1px;background:#26342c;margin:5px 2px}.dropdown-menu a,.dropdown-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:9px;background:transparent;color:#bcc8c0;text-align:left;font-size:10px;font-weight:750;cursor:pointer}.dropdown-menu a svg,.dropdown-menu button svg{width:15px;color:#74857b}.dropdown-menu a:hover,.dropdown-menu button:hover{background:#1b2921;color:var(--green)}.dropdown-menu a:hover svg,.dropdown-menu button:hover svg{color:var(--green)}

.page-shell{width:min(1480px,100%);margin:0 auto;padding:clamp(25px,4vw,52px) clamp(17px,4vw,52px) 28px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:25px;margin-bottom:28px}.eyebrow{color:var(--green);font-size:8px;letter-spacing:2px;font-weight:900}.page h1{margin:6px 0 5px;font-size:clamp(30px,4vw,44px);line-height:1.02;letter-spacing:-.055em}.muted{margin:0;color:var(--muted);font-size:11px}.page-heading .muted{max-width:720px}.card{position:relative;margin-bottom:18px;padding:24px;border:1px solid rgba(52,67,58,.7);border-radius:17px;background:linear-gradient(145deg,rgba(18,25,21,.96),rgba(12,18,14,.96));box-shadow:0 14px 45px rgba(0,0,0,.12)}.card:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(120deg,rgba(255,255,255,.025),transparent 30%)}.card h2{margin:3px 0;font-size:17px;letter-spacing:-.035em}.card-kicker{display:flex;align-items:center;gap:7px;color:#6e8176;font-size:8px;font-weight:900;letter-spacing:1.5px}.card-kicker svg{width:13px;height:13px;color:#7fcf98}.section-head{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.stat-chip{display:flex;align-items:baseline;gap:5px;padding:7px 10px;border:1px solid #2c4033;border-radius:999px;background:#122018;color:#819188;font-size:9px}.stat-chip b{font-size:12px;color:var(--green)}

.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat-card{position:relative;overflow:hidden;min-height:145px;padding:22px;border:1px solid rgba(52,67,58,.72);border-radius:16px;background:linear-gradient(145deg,#121a15,#0d140f)}.stat-card:after{content:"";position:absolute;width:150px;height:150px;right:-65px;bottom:-75px;border-radius:50%;background:rgba(94,205,127,.08);filter:blur(2px)}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#7b8b82;font-size:9px;font-weight:800}.stat-top svg{width:17px;color:#6f987c}.stat-card strong{display:block;margin:19px 0 3px;font-size:35px;line-height:1;letter-spacing:-.06em}.stat-card small{color:#5f7066;font-size:9px}.stat-card.green-accent{border-color:#294b36}.stat-card.green-accent strong{color:#a4efb8}

.hero-card{position:relative;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);gap:25px;overflow:hidden;margin-bottom:18px;padding:31px;border:1px solid #294034;border-radius:20px;background:radial-gradient(500px 220px at 85% 30%,rgba(83,206,125,.13),transparent 70%),linear-gradient(135deg,#142019,#0c120e 70%);box-shadow:var(--shadow)}.hero-card:after{content:"";position:absolute;right:-130px;top:-160px;width:430px;height:430px;border:1px solid rgba(136,235,166,.09);border-radius:50%;box-shadow:0 0 0 45px rgba(136,235,166,.018),0 0 0 90px rgba(136,235,166,.012)}.hero-content{position:relative;z-index:1}.hero-card h2{margin:8px 0 10px;font-size:clamp(28px,4vw,42px);line-height:1;letter-spacing:-.06em}.hero-card p{max-width:620px;color:#8d9d94;font-size:12px}.hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.hero-meta{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;gap:9px;padding:16px;border:1px solid rgba(62,82,69,.65);border-radius:14px;background:rgba(7,12,9,.34)}.meta-line{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid #223027}.meta-line:last-child{border-bottom:0}.meta-line span{color:#6d7e74;font-size:9px}.meta-line b{font-size:10px}.online{color:#8ce9aa!important}

.table-wrap{width:100%;overflow:auto;border:1px solid #202d26;border-radius:12px}table{width:100%;border-collapse:collapse;min-width:680px;background:rgba(8,13,10,.25)}th{padding:12px 14px;border-bottom:1px solid #27362d;color:#68796f;text-align:left;font-size:8px;text-transform:uppercase;letter-spacing:1.2px;font-weight:900}td{padding:14px;border-bottom:1px solid #1d2a22;color:#c6d1c9;font-size:10px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:rgba(130,229,159,.025)}.table-sub{display:block;margin-top:3px;color:#68786e;font-size:9px}.empty{padding:28px;text-align:center;color:var(--muted);font-size:10px;border:1px dashed #304036;border-radius:11px}

.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid label,.form-stack label{display:block;color:#aebbb3;font-size:9px;font-weight:800}.form-grid .full{grid-column:1/-1}.input{display:block;width:100%;height:43px;margin-top:7px;padding:0 12px;border:1px solid #2a3a31;border-radius:10px;background:#0a100c;color:var(--text);outline:0;font-size:11px;transition:.18s}.input:hover{border-color:#385044}.input:focus{border-color:#65d58a;box-shadow:0 0 0 3px rgba(101,213,138,.08);background:#0c130f}.input::placeholder{color:#536159}.input option{background:#111913;color:#fff}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 13px;border:1px solid #304037;border-radius:10px;background:#18231c;color:#d4dfd7;font-size:9px;font-weight:900;cursor:pointer;transition:.18s}.btn svg{width:15px;height:15px}.btn:hover{transform:translateY(-1px);border-color:#3e5547;background:#1c2a22}.btn.primary{border-color:transparent;background:linear-gradient(135deg,#a4f0b8,#62d388);color:#07140c;box-shadow:0 8px 25px rgba(84,202,125,.13)}.btn.primary:hover{box-shadow:0 12px 30px rgba(84,202,125,.2);filter:saturate(1.05)}.btn.danger{background:#321d21;border-color:#553138;color:#ffb0b5}.btn.small{min-height:34px;padding:7px 10px}.btn.wide{width:100%;height:45px}
.form-note{display:flex;align-items:center;gap:7px;padding:10px 12px;border:1px solid #25342b;border-radius:9px;background:#0c130f;color:#728178;font-size:9px}.form-note svg{width:14px;color:#78a488}.form-actions{display:flex;justify-content:flex-end;padding-top:3px}

.alert{display:flex;align-items:center;gap:9px;padding:11px 13px;border:1px solid #304036;border-radius:10px;background:#121a15;color:#c7d2cb;font-size:10px;box-shadow:0 10px 30px rgba(0,0,0,.12)}.alert>span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#183124;color:var(--green);font-weight:900}.alert.error{border-color:#543138;background:#25171a;color:#ffb7bc}.alert.error>span{background:#3b2025;color:#ffabb2}.flash-stack{display:grid;gap:8px;margin-bottom:18px}

.profile-grid{display:grid;grid-template-columns:minmax(320px,.75fr) minmax(0,1.6fr);gap:18px}.profile-card{min-width:0}.profile-hero{display:flex;align-items:center;gap:14px;margin:20px 0 18px}.profile-avatar{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:linear-gradient(145deg,#a5f1b9,#54c97d);color:#07150c;font-size:17px;font-weight:950;box-shadow:0 10px 35px rgba(83,201,125,.15)}.profile-hero h2{margin:0 0 3px;font-size:19px}.profile-hero p{margin:0 0 8px;color:#738178;font-size:10px}.card-divider{height:1px;background:#243129;margin:0 0 20px}
.devices-card{min-width:0}.device-create{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px;border:1px solid #27372e;border-radius:13px;background:#0d1510;margin-bottom:18px}.device-create h3{margin:3px 0;font-size:12px}.mini-label,.secret-label{color:#6e8a79;font-size:7px;letter-spacing:1.5px;font-weight:950}.device-create-form{display:grid;grid-template-columns:minmax(150px,1.5fr) 125px auto;gap:8px;min-width:470px}.device-create-form .input{margin:0}
.device-list{display:grid;gap:8px}.device-row{display:grid;grid-template-columns:40px minmax(180px,1fr) minmax(160px,.75fr) auto;padding:12px;border:1px solid #25342b;border-radius:13px;background:rgba(12,18,14,.7);transition:.18s}.device-row:hover{border-color:#344a3d;background:#101a14}.device-row.revoked{opacity:.62}.device-symbol{width:38px;height:38px;display:grid;place-items:center;border:1px solid #2c4034;border-radius:11px;background:#142018;color:#77c58f}.device-title{display:flex;align-items:center;gap:8px}.device-title b{font-size:11px}.device-meta{display:flex;align-items:center;gap:6px;margin-top:4px;color:#65756b;font-size:8px}.device-status{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid #29372f;border-radius:999px;background:#111a15;color:#718078;font-size:7px;font-weight:900;letter-spacing:.25px}.device-status i{width:5px;height:5px;border-radius:50%;background:#66756c}.device-status.online{border-color:#28583a;background:#10291a;color:#8ee7a8}.device-status.online i{background:#78e39a;box-shadow:0 0 9px rgba(120,227,154,.7)}.device-last-seen{min-width:155px;padding:0 10px;border-left:1px solid #243229}.device-last-seen span,.device-last-seen b{display:block}.device-last-seen span{color:#5f7066;font-size:7px;text-transform:uppercase;letter-spacing:.8px}.device-last-seen b{margin-top:3px;color:#a8b5ad;font-size:9px;font-weight:750}.device-meta i{width:3px;height:3px;border-radius:50%;background:#405047}.device-key{min-width:0}.table-key-button{display:flex;align-items:center;gap:7px;width:100%;padding:0;border:0;background:transparent;color:#8fdca5;text-align:left;cursor:pointer}.table-key-button code{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-key-button svg{width:14px}.masked-key{display:flex;align-items:center;gap:7px;color:#526159}.masked-key svg{width:13px}.device-actions{display:flex;align-items:center;gap:6px}.device-actions form{margin:0}.icon-btn{width:34px;height:34px;display:grid;place-items:center;border:1px solid #2d3d33;border-radius:9px;background:#131d17;color:#84958b;cursor:pointer;transition:.18s}.icon-btn svg{width:15px}.icon-btn:hover{border-color:#4a6754;color:var(--green);background:#18261e}.icon-btn.danger:hover{border-color:#6a3b43;color:#ffabb2;background:#291a1e}.pill{display:inline-flex;align-items:center;width:max-content;padding:4px 7px;border-radius:999px;background:#253029;color:#aab8b0;font-size:7px;font-weight:900;letter-spacing:.4px}.pill.green{background:#12301e;color:#8de6a6}.pill.red{background:#351e23;color:#ffabb1}
.secret-card{position:relative;overflow:hidden;margin:0 0 18px;padding:19px;border:1px solid #326746;border-radius:15px;background:radial-gradient(420px 170px at 90% 20%,rgba(73,196,114,.12),transparent 70%),linear-gradient(135deg,#112117,#0d1510)}.secret-head{display:flex;justify-content:space-between;gap:18px}.secret-head h3{margin:4px 0 3px;font-size:17px}.secret-head p{margin:0;color:#78887e;font-size:9px;max-width:600px}.secret-icon{display:grid;place-items:center;width:40px;height:40px;border:1px solid #315640;border-radius:12px;color:#8fe7a8;background:#13281a}.secret-icon svg{width:18px}.token-button{display:flex;align-items:center;gap:10px;width:100%;margin-top:15px;padding:0;border:0;background:transparent;text-align:left;color:#8fe7a8;cursor:pointer}.token-button code{display:block;flex:1;min-width:0;padding:11px 12px;border:1px solid #2d4d38;border-radius:10px;background:#09110c;color:#9cebb2;overflow-wrap:anywhere;font:10px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace}.token-button svg{width:18px}.secret-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.secret-warning{display:flex;align-items:center;gap:7px;margin-top:12px;color:#8a9b91;font-size:8px}.secret-warning svg{width:14px;color:#78a789}.empty-state{display:grid;place-items:center;gap:4px;padding:42px 20px;border:1px dashed #2c3c33;border-radius:13px;color:#75857b;text-align:center}.empty-state b{font-size:11px;color:#b1bdb5}.empty-state span{font-size:9px}.empty-icon{display:grid;place-items:center;width:43px;height:43px;margin-bottom:7px;border-radius:13px;background:#142019;color:#6f9a7d}.empty-icon svg{width:20px}

.qr-dialog{width:min(430px,calc(100% - 28px));padding:20px}.modal[hidden]{display:none}.modal{position:fixed;inset:0;z-index:100}.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(9px)}.modal-dialog{position:relative;margin:5vh auto 0;border:1px solid #314238;border-radius:19px;background:#101713;box-shadow:0 35px 120px rgba(0,0,0,.65)}.modal-close{position:absolute;right:13px;top:10px;width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:#6f8077;font-size:25px;cursor:pointer}.modal-close:hover{background:#1b2820;color:#fff}.qr-topline{display:flex;align-items:center;gap:11px;padding-right:35px}.qr-brand{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#173023;color:#8ee6a8}.qr-topline h2{margin:3px 0 0;font-size:18px;letter-spacing:-.04em}.qr-stage{display:grid;place-items:center;min-height:255px;margin:14px 0;padding:12px;border:1px solid #29382f;border-radius:15px;background:#0a100c}.qr-render{display:grid;place-items:center;width:235px;height:235px;max-width:100%;padding:10px;border-radius:14px;background:#fff;box-shadow:0 18px 50px rgba(0,0,0,.28);overflow:hidden}.qr-render canvas,.qr-render img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;image-rendering:auto}.qr-loading{display:grid;place-items:center;gap:8px;text-align:center;color:#93a199}.qr-loading[hidden],.qr-render[hidden]{display:none!important}.qr-loading b{font-size:11px}.qr-loading small{font-size:9px;color:#5f7067}.spinner{width:26px;height:26px;border:2px solid #26372d;border-top-color:#8ce9aa;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.qr-details{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:8px}.qr-details div{padding:8px;border:1px solid #26362d;border-radius:9px;background:#0c130f}.qr-details span,.qr-details b{display:block}.qr-details span{font-size:7px;color:#65756c;text-transform:uppercase;letter-spacing:.9px}.qr-details b{margin-top:3px;font-size:9px}.qr-code-line{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:7px;padding:8px 9px;border:1px solid #26372d;border-radius:9px;background:#0b110d}.qr-code-line>span{font-size:8px;color:#6d7c73}.qr-code-line code{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8fdba4;font:9px ui-monospace,SFMono-Regular,Consolas,monospace}.qr-error{margin-top:10px;padding:12px;border:1px solid #553039;border-radius:9px;background:#27181c;color:#ffb2b8;font-size:9px}.modal-actions{display:flex;justify-content:flex-end;margin-top:14px}body.modal-open{overflow:hidden}

.test-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.test-link{display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;column-gap:10px;padding:15px;border:1px solid #27372e;border-radius:12px;background:#0d1510;transition:.18s}.test-link svg{grid-row:1/3;align-self:center;width:17px;color:#719681}.test-link b{font-size:10px}.test-link small{margin-top:2px;color:#617168;font:8px ui-monospace,Consolas,monospace}.test-link:hover,.test-link.active{border-color:#3b5c47;background:#142219}.test-link:hover svg,.test-link.active svg{color:var(--green)}.test-state{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.test-state div{padding:13px;border:1px solid #26362d;border-radius:10px;background:#0c130f}.test-state span,.test-state b{display:block}.test-state span{font-size:8px;color:#63736a}.test-state b{margin-top:4px;font:10px ui-monospace,Consolas,monospace;color:#a5b3ab}

.login-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(800px 500px at 75% 20%,rgba(69,181,104,.13),transparent 68%),radial-gradient(650px 450px at 5% 90%,rgba(38,91,57,.12),transparent 65%),#080b09}.login-shell{width:min(1180px,calc(100% - 34px));min-height:calc(100vh - 34px);display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:7vw;padding:28px 5vw;border:1px solid #1f2c25;border-radius:24px;background:linear-gradient(145deg,rgba(14,21,17,.9),rgba(9,13,10,.86));box-shadow:0 30px 100px rgba(0,0,0,.42);backdrop-filter:blur(18px)}.login-brand{position:absolute;top:28px;display:flex;align-items:center;gap:11px}.login-brand b,.login-brand small{display:block}.login-brand b{font-size:14px}.login-brand small{font-size:7px;color:var(--muted);letter-spacing:1.6px;margin-top:2px}.login-copy-block{padding-top:50px}.login-copy-block .eyebrow{margin-bottom:8px}.login-content h1{max-width:600px;margin:0 0 16px;font-size:clamp(42px,5.5vw,70px);line-height:.98;letter-spacing:-.065em}.login-content h1 em{font-style:normal;color:var(--green)}.login-copy{max-width:540px;color:#7f9086;font-size:13px}.login-features{display:flex;flex-wrap:wrap;gap:8px;margin-top:25px}.login-feature{display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #24342b;border-radius:999px;color:#84938a;font-size:8px}.login-feature svg{width:13px;color:#79ba8d}.login-card{width:100%;padding:25px;border:1px solid #2b3b31;border-radius:18px;background:rgba(16,23,19,.92);box-shadow:0 25px 80px rgba(0,0,0,.28)}.login-card h2{margin:5px 0 3px;font-size:22px;letter-spacing:-.045em}.login-card>.muted{font-size:10px}.form-stack{display:grid;gap:16px;margin-top:21px}.secure-note{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:16px;color:#617168;font-size:8px}.secure-note span{width:5px;height:5px;border-radius:50%;background:#76dc95}.login-foot{position:absolute;bottom:26px;color:#4e5d54;font-size:7px;letter-spacing:1.5px}

.toast-stack{position:fixed;right:22px;bottom:22px;z-index:200;display:grid;gap:8px}.toast{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #34483b;border-radius:10px;background:#152019;color:#cdd8d1;box-shadow:0 15px 45px rgba(0,0,0,.4);font-size:9px;opacity:0;transform:translateY(8px);transition:.2s}.toast.show{opacity:1;transform:none}.toast-mark{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#173323;color:#8de8a6;font-size:9px;font-weight:900}

.app-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:38px;padding:18px 2px 4px;border-top:1px solid #1d2922;color:#4e5d54;font-size:7px;letter-spacing:1.2px}.app-footer>div{display:flex;align-items:center;gap:7px}.footer-mark{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#173022;color:#82d99d;font-size:8px;font-weight:950}

@media(max-width:1050px){.topbar{gap:16px}.server-status{display:none}.profile-grid{grid-template-columns:1fr}.device-create{align-items:stretch;flex-direction:column}.device-create-form{min-width:0}.hero-card{grid-template-columns:1fr}.hero-meta{max-width:520px}}
@media(max-width:800px){.topbar{height:auto;min-height:70px;flex-wrap:wrap;padding:11px 15px}.top-brand{margin-right:auto}.top-nav{order:3;width:100%;overflow-x:auto;padding-bottom:1px}.top-nav::-webkit-scrollbar{display:none}.nav-dropdown summary{padding:8px 9px}.brand-copy{display:none}.page-shell{padding:25px 15px 22px}.page-heading{margin-bottom:21px}.stats-grid{grid-template-columns:1fr}.device-row{grid-template-columns:40px 1fr auto}.device-key{grid-column:2/3}.device-actions{grid-column:3/4;grid-row:1/3}.device-create-form{grid-template-columns:1fr 1fr}.device-create-form .btn{grid-column:1/-1}.login-shell{display:block;min-height:calc(100vh - 20px);padding:32px 24px}.login-brand{position:static;margin-bottom:80px}.login-copy-block{padding:0}.login-content h1{font-size:47px}.login-card{margin-top:35px}.login-foot{position:static;margin-top:30px}.login-features{display:none}}
@media(max-width:560px){.topbar-right{margin-left:0}.user-meta{display:none}.nav-menu{position:fixed;left:10px;right:10px;top:112px;width:auto}.nav-menu:before{display:none}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.form-actions{justify-content:stretch}.form-actions .btn{width:100%}.device-create-form{grid-template-columns:1fr}.device-create-form .btn{grid-column:auto}.device-row{grid-template-columns:36px minmax(0,1fr) auto;gap:10px}.device-symbol{width:36px;height:36px}.device-meta{flex-wrap:wrap}.device-key{grid-column:2/4}.device-actions{grid-column:3;grid-row:1}.secret-actions .btn{flex:1}.qr-details{grid-template-columns:1fr}.qr-stage{min-height:240px}.qr-stage img{width:215px;height:215px}.test-links,.test-state{grid-template-columns:1fr}.hero-card{padding:23px}.hero-card h2{font-size:31px}.app-footer{align-items:flex-start;flex-direction:column}.login-shell{width:calc(100% - 18px);border-radius:18px;padding:26px 18px}.login-brand{margin-bottom:65px}.login-content h1{font-size:40px}.login-card{padding:20px}.toast-stack{left:12px;right:12px;bottom:12px}.toast{justify-content:center}}


/* 1.0.6 — Project workspace home */
.welcome-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(350px,.85fr);min-height:590px;overflow:hidden;margin-bottom:42px;border:1px solid rgba(73,111,83,.42);border-radius:25px;background:radial-gradient(650px 400px at 82% 55%,rgba(77,190,111,.17),transparent 72%),radial-gradient(500px 300px at 5% 5%,rgba(95,167,115,.10),transparent 70%),linear-gradient(125deg,#111b14 0%,#0b110d 65%,#101b13 100%);box-shadow:0 30px 90px rgba(0,0,0,.30)}
.welcome-hero:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.23;background-image:linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(110deg,#000,transparent 85%)}
.welcome-hero:after{content:"";position:absolute;z-index:-1;right:9%;top:9%;width:400px;height:400px;border:1px solid rgba(133,229,157,.08);border-radius:50%;box-shadow:0 0 0 38px rgba(133,229,157,.018),0 0 0 78px rgba(133,229,157,.012),inset 0 0 80px rgba(133,229,157,.025)}
.welcome-glow{position:absolute;z-index:-1;right:9%;bottom:-210px;width:520px;height:390px;border-radius:50%;background:rgba(67,198,109,.15);filter:blur(90px)}
.welcome-copy{position:relative;z-index:2;align-self:center;padding:58px 0 75px 58px;max-width:730px}
.eyebrow-dot{display:inline-block;width:6px;height:6px;margin:0 7px 1px 0;border-radius:50%;background:var(--green);box-shadow:0 0 12px rgba(130,230,160,.8)}
.welcome-greeting{margin-top:28px;color:#b9c9bf;font-size:13px;font-weight:700;letter-spacing:.01em}
.welcome-copy h1{margin:10px 0 18px;font-size:clamp(43px,5.3vw,69px);line-height:.98;letter-spacing:-.075em;font-weight:850}
.welcome-copy h1 em{font-style:normal;color:#91e9a9;text-shadow:0 0 35px rgba(103,222,140,.16)}
.welcome-copy>p{max-width:480px;color:#82938a;font-size:12px;line-height:1.85}
.welcome-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:29px}
.welcome-actions .btn{min-height:44px;padding:0 17px}
.welcome-status{display:flex;align-items:center;gap:8px;color:#718279;font-size:9px;font-weight:750}
.welcome-status i{width:6px;height:6px;border-radius:50%;background:#7de69d;box-shadow:0 0 12px rgba(125,230,157,.7)}
.welcome-mascot-wrap{position:relative;z-index:1;display:flex;align-items:flex-end;justify-content:center;align-self:stretch;min-width:0;min-height:590px;padding:12px 20px 0}
.welcome-mascot-wrap:before{content:"";position:absolute;z-index:-1;left:12%;right:8%;bottom:4%;height:35%;border-radius:50%;background:radial-gradient(ellipse,rgba(90,208,125,.17),transparent 70%);filter:blur(20px)}
.welcome-mascot{display:block;width:auto;height:auto;max-width:100%;max-height:610px;object-fit:contain;object-position:center bottom;align-self:flex-end;filter:drop-shadow(0 22px 32px rgba(0,0,0,.42))}
.mascot-caption{position:absolute;right:23px;bottom:26px;display:flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid rgba(95,136,105,.35);border-radius:12px;background:rgba(9,16,11,.78);backdrop-filter:blur(15px);box-shadow:0 12px 35px rgba(0,0,0,.22)}
.mascot-caption-dot{width:7px;height:7px;border-radius:50%;background:#8ce9a8;box-shadow:0 0 12px #8ce9a8}
.mascot-caption b,.mascot-caption small{display:block}.mascot-caption b{font-size:10px}.mascot-caption small{margin-top:2px;color:#75877b;font-size:8px}
.welcome-bottomline{position:absolute;left:58px;right:28px;bottom:20px;z-index:3;display:flex;justify-content:space-between;color:#53665a;font-size:7px;font-weight:900;letter-spacing:1.6px}
.projects-section{margin-top:4px}
.projects-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}
.projects-heading h2{margin:6px 0 5px;font-size:30px;letter-spacing:-.06em}
.projects-heading .muted{max-width:620px;line-height:1.7}
.project-create-dropdown{position:relative;flex:none}
.project-create-dropdown>summary{list-style:none;cursor:pointer}.project-create-dropdown>summary::-webkit-details-marker{display:none}
.project-create-dropdown[open]>summary{box-shadow:0 0 0 3px rgba(130,230,160,.09)}
.project-create-popover{position:absolute;z-index:30;top:calc(100% + 12px);right:0;width:min(420px,calc(100vw - 34px));padding:19px;border:1px solid #34483a;border-radius:17px;background:rgba(17,25,20,.98);box-shadow:0 25px 80px rgba(0,0,0,.6);backdrop-filter:blur(22px)}
.project-popover-head{margin-bottom:15px}.project-popover-head b,.project-popover-head small{display:block}.project-popover-head b{font-size:14px}.project-popover-head small{margin-top:3px;color:#75867b;font-size:9px}
.project-create-form{display:grid;gap:12px}.project-create-form label{display:block;color:#aebbb3;font-size:9px;font-weight:800}.project-textarea{height:auto;min-height:78px;padding:10px 12px;resize:vertical}.project-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.project-create-form .btn{margin-top:3px}
.active-project-strip{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding:12px 15px;border:1px solid #2b4835;border-radius:13px;background:linear-gradient(100deg,rgba(26,54,35,.72),rgba(13,21,16,.75))}
.active-project-mark{display:grid;place-items:center;width:36px;height:36px;border:1px solid color-mix(in srgb,var(--project-accent) 45%,transparent);border-radius:11px;background:color-mix(in srgb,var(--project-accent) 12%,#0c140f);color:var(--project-accent);font-size:18px}
.active-project-info{min-width:0}.active-project-info span,.active-project-info b{display:block}.active-project-info span{color:#789080;font-size:7px;font-weight:900;letter-spacing:1.3px}.active-project-info b{margin-top:2px;font-size:11px}.active-project-type{margin-left:auto;color:#819188;font-size:9px}
.active-project-check{display:flex;align-items:center;gap:6px;padding-left:13px;border-left:1px solid #2b3e31;color:#8fe7a8;font-size:8px;font-weight:850}.active-project-check svg{width:13px}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.project-card{position:relative;display:flex;flex-direction:column;min-height:226px;overflow:hidden;padding:18px;border:1px solid #29382f;border-radius:16px;background:linear-gradient(145deg,rgba(19,27,22,.98),rgba(11,17,13,.98));transition:transform .2s,border-color .2s,box-shadow .2s}
.project-card:before{content:"";position:absolute;top:0;left:18px;right:18px;height:2px;background:linear-gradient(90deg,var(--project-accent),transparent);opacity:.65}
.project-card:after{content:"";position:absolute;top:-70px;right:-70px;width:180px;height:180px;border-radius:50%;background:var(--project-accent);opacity:.045;filter:blur(12px);pointer-events:none}
.project-card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--project-accent) 42%,#29382f);box-shadow:0 18px 45px rgba(0,0,0,.2)}
.project-card.selected{border-color:color-mix(in srgb,var(--project-accent) 58%,#29382f);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--project-accent) 14%,transparent),0 15px 40px rgba(0,0,0,.16)}
.project-card-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between}
.project-type-icon{display:grid;place-items:center;width:39px;height:39px;border:1px solid color-mix(in srgb,var(--project-accent) 32%,#29382f);border-radius:12px;background:color-mix(in srgb,var(--project-accent) 9%,#101811);color:var(--project-accent);font-size:19px}
.project-selected-badge{display:flex;align-items:center;gap:6px;color:#8ee7a7;font-size:7px;font-weight:900;letter-spacing:.7px;text-transform:uppercase}.project-selected-badge i{width:5px;height:5px;border-radius:50%;background:#83e6a0;box-shadow:0 0 9px #83e6a0}
.project-card-id{color:#5f7066;font:7px ui-monospace,Consolas,monospace;letter-spacing:1px}
.project-card h3{position:relative;z-index:1;margin:18px 0 5px;font-size:16px;letter-spacing:-.04em}
.project-card>p{position:relative;z-index:1;min-height:33px;margin:0 0 15px;color:#78887e;font-size:9px;line-height:1.7}
.project-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding:11px 0 10px;border-top:1px solid #202d25;color:#65756b;font-size:7px}
.project-card form{position:relative;z-index:1}
.project-open-button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:9px 11px;border:1px solid #304137;border-radius:9px;background:#142019;color:#b8c9be;font-size:8px;font-weight:850;cursor:pointer;transition:.18s}
.project-open-button svg{width:13px}.project-open-button:hover{border-color:var(--project-accent);color:var(--project-accent);background:color-mix(in srgb,var(--project-accent) 7%,#142019)}
.project-open-button.is-selected{border-color:#315a3d;background:#14271a;color:#8fe6a7;cursor:default}
.project-add-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:226px;border:1px dashed #34473a;border-radius:16px;background:rgba(12,19,14,.45);color:#9caf9f;cursor:pointer;transition:.2s}
.project-add-card:hover{border-color:#69c987;background:rgba(26,52,34,.24);color:#a5efb8}
.project-add-plus{display:grid;place-items:center;width:42px;height:42px;margin-bottom:3px;border:1px solid #344b3a;border-radius:13px;background:#15231a;color:#8ee6a7}.project-add-plus svg{width:18px}
.project-add-card b{font-size:10px}.project-add-card small{color:#64756a;font-size:8px}
.projects-empty{display:grid;justify-items:center;gap:8px;padding:50px 20px;border:1px dashed #34473a;border-radius:17px;background:rgba(12,19,14,.5);text-align:center}
.projects-empty-icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:5px;border:1px solid #2d4836;border-radius:16px;background:#14231a;color:#8ee6a7}.projects-empty-icon svg{width:22px}
.projects-empty h3{margin:0;font-size:16px}.projects-empty p{margin:0 0 8px;color:#77877d;font-size:10px}
.workspace-footnote{display:flex;align-items:center;gap:12px;margin-top:27px;padding:14px 16px;border:1px solid #24332a;border-radius:13px;background:rgba(13,20,15,.65)}
.workspace-footnote-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#15251a;color:#80d99a}.workspace-footnote-icon svg{width:16px}
.workspace-footnote>div:nth-child(2){display:grid;gap:2px}.workspace-footnote b{font-size:9px}.workspace-footnote span{color:#718178;font-size:8px}.workspace-version{margin-left:auto!important;color:#526258!important;font:8px ui-monospace,Consolas,monospace!important;letter-spacing:1px}

/* Branded 403 / 404 / 500 pages */
.error-body{min-height:100vh;background:radial-gradient(800px 500px at 78% 45%,rgba(68,172,99,.12),transparent 70%),#080d0a}
.error-shell{width:min(1320px,calc(100% - 44px));min-height:100vh;margin:0 auto;display:flex;flex-direction:column}
.error-top{display:flex;align-items:center;justify-content:space-between;padding:25px 0;border-bottom:1px solid #1e2b23}
.error-top-label{display:flex;align-items:center;gap:8px;color:#63746a;font-size:8px;font-weight:900;letter-spacing:1.7px}.error-top-label i{width:6px;height:6px;border-radius:50%;background:#82e6a0;box-shadow:0 0 10px #82e6a0}
.error-main{display:grid;grid-template-columns:minmax(320px,.95fr) minmax(0,1.05fr);align-items:center;gap:clamp(25px,5vw,75px);flex:1;padding:40px 4%}
.error-visual{position:relative;display:grid;place-items:center;min-width:0}
.error-visual-glow{position:absolute;width:80%;height:70%;border-radius:50%;background:rgba(80,191,111,.13);filter:blur(65px)}
.error-visual img{position:relative;display:block;width:min(100%,480px);max-height:500px;object-fit:contain;filter:drop-shadow(0 24px 40px rgba(0,0,0,.35))}
.error-copy{max-width:560px}.error-code{margin:8px 0 15px;color:#8ce7a5;font:900 8px/1.4 ui-monospace,Consolas,monospace;letter-spacing:2px;text-shadow:0 0 22px rgba(111,226,145,.12)}
.error-copy h1{margin:0 0 13px;font-size:clamp(28px,4vw,43px);line-height:1.05;letter-spacing:-.06em}.error-copy>p{max-width:480px;color:#819187;font-size:12px;line-height:1.85}
.error-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:24px}.error-actions .btn{min-height:43px;padding:0 15px}
.error-footnote{display:flex;align-items:center;gap:9px;margin-top:38px;padding-top:17px;border-top:1px solid #1e2b23;color:#63746a;font-size:9px}
.error-footnote-mark{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#183022;color:#91e6a8;font-size:10px;font-weight:950}
.error-footer{display:flex;justify-content:space-between;gap:12px;padding:17px 0;border-top:1px solid #1e2b23;color:#4e5e53;font-size:7px;font-weight:850;letter-spacing:1.5px}

@media(max-width:1050px){
 .welcome-hero{grid-template-columns:minmax(0,1fr) minmax(280px,.75fr);min-height:520px}
 .welcome-copy{padding-left:36px}.welcome-mascot-wrap{min-height:520px}.welcome-mascot{max-height:540px}
 .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .error-main{padding-left:0;padding-right:0}
}
@media(max-width:760px){
 .welcome-hero{grid-template-columns:1fr;min-height:0}
 .welcome-copy{padding:35px 28px 5px}
 .welcome-greeting{margin-top:20px}.welcome-copy h1{font-size:clamp(39px,9vw,57px)}
 .welcome-mascot-wrap{min-height:400px;height:400px;padding:0 10px}
 .welcome-mascot{max-height:430px;max-width:100%}
 .mascot-caption{right:15px;bottom:17px}
 .welcome-bottomline{left:28px;right:22px;bottom:13px}
 .projects-heading{align-items:flex-start;flex-direction:column}
 .project-create-dropdown{align-self:stretch}.project-create-dropdown>summary{width:100%}
 .project-create-popover{left:0;right:auto}
 .error-main{grid-template-columns:1fr;gap:10px;padding:25px 0 35px}
 .error-visual img{width:min(100%,350px);max-height:350px}
 .error-copy{margin:0 auto;width:100%;text-align:center}
 .error-actions{justify-content:center}.error-footnote{justify-content:center;margin-top:25px}
}
@media(max-width:540px){
 .welcome-copy{padding:30px 20px 0}
 .welcome-copy h1{font-size:39px}.welcome-copy>p{font-size:10px}
 .welcome-mascot-wrap{height:350px;min-height:350px}
 .welcome-mascot{max-height:370px}
 .welcome-bottomline{left:20px;font-size:6px}
 .project-grid{grid-template-columns:1fr}
 .project-card,.project-add-card{min-height:205px}
 .project-form-row{grid-template-columns:1fr}
 .active-project-type{display:none}.active-project-check{margin-left:auto}
 .workspace-footnote{align-items:flex-start}.workspace-version{display:none}
 .error-shell{width:calc(100% - 28px)}
 .error-top{padding:18px 0}.error-top-label{font-size:6px}
 .error-main{padding:18px 0 28px}
 .error-visual img{width:min(100%,290px);max-height:290px}
 .error-copy h1{font-size:28px}.error-copy>p{font-size:10px}
 .error-actions{flex-direction:column}.error-actions .btn{width:100%}
 .error-footer{font-size:6px}
}


/* 1.0.7 — Device list: five explicit regions, no accidental wrapping */
.device-row{
 display:grid;
 grid-template-columns:42px minmax(160px,1.25fr) minmax(165px,.9fr) minmax(145px,.78fr) auto;
 grid-template-areas:"symbol main seen key actions";
 align-items:center;
 gap:12px;
 min-width:0;
 padding:13px 14px;
}
.device-symbol{grid-area:symbol}
.device-main{grid-area:main;min-width:0}
.device-last-seen{grid-area:seen;min-width:0;padding:2px 13px;border-left:1px solid #26352c}
.device-key{grid-area:key;min-width:0;max-width:100%}
.device-actions{grid-area:actions;justify-self:end;white-space:nowrap}
.device-title{min-width:0;flex-wrap:wrap;row-gap:5px}
.device-title>b{min-width:0;overflow-wrap:anywhere}
.device-meta{min-width:0;flex-wrap:wrap;row-gap:4px;line-height:1.5}
.device-last-seen b{line-height:1.45;overflow-wrap:anywhere}
.masked-key{min-width:0;max-width:100%;overflow:hidden}
.masked-key code{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.table-key-button{min-width:0}
.table-key-button code{min-width:0}
.key-copy-label{font-size:8px;color:#6f9b7c;white-space:nowrap}
.device-row .icon-btn{flex:none}
@media(max-width:980px){
 .device-row{
  grid-template-columns:40px minmax(130px,1fr) minmax(140px,.85fr) auto;
  grid-template-areas:"symbol main seen actions" "symbol key key actions";
  row-gap:9px;
 }
 .device-last-seen{padding-left:11px}
 .device-key{align-self:start}
}
@media(max-width:800px){
 .device-row{
  grid-template-columns:38px minmax(0,1fr) auto;
  grid-template-areas:"symbol main actions" "symbol seen actions" "symbol key actions";
  gap:7px 11px;
  padding:12px;
 }
 .device-symbol{align-self:start}
 .device-last-seen{padding:0;border:0}
 .device-last-seen span{font-size:7px}
 .device-last-seen b{font-size:9px}
 .device-key{max-width:100%}
 .device-actions{align-self:center;display:flex}
}
@media(max-width:560px){
 .device-row{
  grid-template-columns:36px minmax(0,1fr) auto;
  grid-template-areas:"symbol main actions" "symbol seen actions" "symbol key actions";
  gap:7px 9px;
  padding:11px;
 }
 .device-symbol{width:36px;height:36px}
 .device-title{gap:6px}
 .device-title>b{font-size:10px}
 .device-meta{font-size:7px}
 .device-last-seen span{font-size:6px}
 .device-last-seen b{font-size:8px}
 .device-actions{gap:5px}
 .device-actions .icon-btn{width:31px;height:31px}
 .device-key code{font-size:8px}
 .key-copy-label{display:none}
}

.device-last-seen small{display:block;margin-top:3px;color:#627369;font-size:7px;line-height:1.4}
@media(max-width:560px){.device-last-seen small{font-size:6px}}




/* 1.0.9 — Mascot becomes the first project tile */
.dashboard-page{width:min(1560px,100%);padding:clamp(18px,2.5vh,28px) clamp(18px,2.7vw,42px) 12px}
.dashboard-page .projects-section{margin:0}
.dashboard-page .projects-heading{align-items:center;margin-bottom:14px;gap:15px}
.dashboard-page .projects-heading h2{margin:3px 0 2px;font-size:clamp(21px,2vw,25px);letter-spacing:-.055em}
.dashboard-page .projects-heading .muted{font-size:9px;line-height:1.45}
.dashboard-page .projects-heading .eyebrow{font-size:7px;letter-spacing:1.6px}
.dashboard-page .project-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;align-items:stretch}
.dashboard-page .project-card,
.dashboard-page .project-add-card{min-height:154px;height:154px;padding:13px;border-radius:14px}
.dashboard-page .project-card:before{left:13px;right:13px}
.dashboard-page .project-type-icon{width:31px;height:31px;border-radius:9px;font-size:15px}
.dashboard-page .project-card h3{margin:9px 0 3px;font-size:12px;line-height:1.25}
.dashboard-page .project-card>p{min-height:0;margin:0 0 7px;font-size:8px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.dashboard-page .project-card-footer{padding:7px 0 6px;font-size:6px}
.dashboard-page .project-open-button{padding:7px 9px;font-size:7px;border-radius:7px}
.dashboard-page .project-selected-badge,.dashboard-page .project-card-id{font-size:6px}

/* Welcome tile shares the exact card footprint and remains first in DOM order. */
.dashboard-page .mascot-project-card{--project-accent:#82e6a0;isolation:isolate;justify-content:center;padding:12px 13px;overflow:hidden;border-color:#31523b;background:radial-gradient(170px 130px at 88% 55%,rgba(92,218,128,.17),transparent 75%),linear-gradient(145deg,#17251b 0%,#101812 68%,#0d140f 100%)}
.dashboard-page .mascot-project-card:before{left:13px;right:13px;background:linear-gradient(90deg,#8ce9aa,rgba(140,233,170,0));opacity:.85}
.dashboard-page .mascot-project-card:after{top:auto;right:20px;bottom:-75px;width:150px;height:150px;background:#82e6a0;opacity:.08;filter:blur(28px)}
.dashboard-page .mascot-card-copy{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:70%;height:100%;min-width:0}
.dashboard-page .mascot-card-kicker{display:flex;align-items:center;gap:6px;color:#83a28d;font-size:6px;font-weight:950;letter-spacing:1.15px;white-space:nowrap}
.dashboard-page .mascot-card-kicker i{width:5px;height:5px;border-radius:50%;background:#8ce9aa;box-shadow:0 0 8px rgba(140,233,170,.75)}
.dashboard-page .mascot-card-copy h3{margin:10px 0 4px;color:#eaf4ed;font-size:clamp(12px,1.05vw,15px);line-height:1.22;letter-spacing:-.045em;overflow-wrap:anywhere}
.dashboard-page .mascot-card-copy h3 em{color:#91e9a9;font-style:normal}
.dashboard-page .mascot-card-copy p{margin:0;color:#a0b2a5;font-size:8px;line-height:1.35}
.dashboard-page .mascot-card-status{display:flex;align-items:center;gap:5px;margin-top:10px;color:#73877a;font-size:6px;font-weight:750;white-space:nowrap}
.dashboard-page .mascot-card-status i{width:5px;height:5px;border-radius:50%;background:#8ce9aa;box-shadow:0 0 7px rgba(140,233,170,.65)}
.dashboard-page .mascot-card-image{position:absolute;z-index:1;right:2px;bottom:0;display:block;width:auto;height:calc(100% - 2px);max-width:43%;object-fit:contain;object-position:right bottom;filter:drop-shadow(0 8px 12px rgba(0,0,0,.42));pointer-events:none}
.dashboard-page .mascot-card-index{position:absolute;z-index:2;right:10px;top:10px;color:rgba(161,193,170,.45);font:6px ui-monospace,Consolas,monospace;letter-spacing:1px}

.dashboard-page .project-create-dropdown{position:relative;min-width:0}
.dashboard-page .project-add-card{display:flex;align-items:stretch;justify-content:center;position:relative;overflow:visible;border:1px dashed #3a5041;background:rgba(12,19,14,.58);color:#9caf9f;cursor:pointer;transition:.2s}
.dashboard-page .project-add-card:hover,.dashboard-page .project-add-card[open]{border-color:#69c987;background:rgba(26,52,34,.28);color:#a5efb8}
.dashboard-page .project-add-summary{display:flex;flex:1;min-height:0;flex-direction:column;align-items:center;justify-content:center;gap:6px;list-style:none;cursor:pointer;text-align:center}
.dashboard-page .project-add-summary::-webkit-details-marker{display:none}
.dashboard-page .project-add-summary>b{font-size:9px}
.dashboard-page .project-add-summary>small{color:#64756a;font-size:7px}
.dashboard-page .project-add-plus{display:grid;place-items:center;width:34px;height:34px;margin-bottom:1px;border:1px solid #344b3a;border-radius:10px;background:#15231a;color:#8ee6a7}
.dashboard-page .project-add-plus svg{width:15px}
.dashboard-page .project-create-popover{top:calc(100% + 10px);right:0;z-index:40}
.dashboard-page .workspace-footnote{margin-top:14px;padding:9px 12px;border-radius:10px;gap:9px}
.dashboard-page .workspace-footnote-icon{width:28px;height:28px;border-radius:8px}
.dashboard-page .workspace-footnote-icon svg{width:13px}
.dashboard-page .workspace-footnote b{font-size:8px}
.dashboard-page .workspace-footnote span{font-size:7px}
.dashboard-page .app-footer{margin-top:12px;padding:8px 2px 0;font-size:6px}
.dashboard-page .footer-mark{width:16px;height:16px;font-size:7px}

@media (min-width:801px) and (max-height:900px){
 .dashboard-page{padding-top:clamp(10px,1.8vh,17px);padding-bottom:7px}
 .dashboard-page .projects-heading{margin-bottom:10px}
 .dashboard-page .project-grid{gap:9px}
 .dashboard-page .project-card,.dashboard-page .project-add-card{height:clamp(122px,17vh,145px);min-height:122px;padding:10px}
 .dashboard-page .mascot-card-copy h3{margin-top:7px;font-size:12px}
 .dashboard-page .mascot-card-status{margin-top:7px}
 .dashboard-page .project-card h3{margin-top:7px}
 .dashboard-page .project-card-footer{padding:5px 0}
 .dashboard-page .project-open-button{padding:6px 8px}
 .dashboard-page .workspace-footnote{margin-top:9px;padding:7px 10px}
 .dashboard-page .app-footer{margin-top:8px;padding-top:5px}
}
@media (min-width:801px) and (max-width:1100px){
 .dashboard-page .project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:801px) and (max-height:760px){
 .dashboard-page .project-card,.dashboard-page .project-add-card{height:112px;min-height:112px;padding:8px}
 .dashboard-page .mascot-card-copy h3{margin:5px 0 3px;font-size:11px}
 .dashboard-page .mascot-card-copy p{font-size:7px}
 .dashboard-page .mascot-card-status{margin-top:5px;font-size:5px}
 .dashboard-page .project-card h3{margin:5px 0;font-size:11px}
 .dashboard-page .project-card>p,.dashboard-page .project-card-footer{display:none}
 .dashboard-page .project-open-button{margin-top:5px;padding:6px 7px}
 .dashboard-page .workspace-footnote{display:none}
 .dashboard-page .app-footer{margin-top:5px;padding-top:5px}
}
@media(max-width:800px){
 .dashboard-page{padding:18px 15px 20px}
 .dashboard-page .projects-heading{align-items:flex-start;margin-bottom:12px}
 .dashboard-page .project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .dashboard-page .project-card,.dashboard-page .project-add-card{height:150px;min-height:150px;padding:11px}
 .dashboard-page .mascot-card-copy{width:72%}
 .dashboard-page .mascot-card-image{max-width:42%}
 .dashboard-page .mascot-card-copy h3{font-size:13px}
 .dashboard-page .workspace-footnote{display:flex}
 .dashboard-page .app-footer{margin-top:18px;padding-top:12px}
}
@media(max-width:540px){
 .dashboard-page .project-grid{grid-template-columns:1fr}
 .dashboard-page .project-card,.dashboard-page .project-add-card{height:142px;min-height:142px}
 .dashboard-page .mascot-card-copy{width:74%}
 .dashboard-page .mascot-card-image{max-width:38%}
 .dashboard-page .mascot-card-copy h3{font-size:14px}
 .dashboard-page .mascot-card-kicker{font-size:7px}
 .dashboard-page .mascot-card-status{font-size:7px}
}


/* 1.1.0 — Larger, more readable workspace tiles */
.dashboard-page .project-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:15px;
}
.dashboard-page .project-card,
.dashboard-page .project-add-card{
    height:clamp(190px,22vh,230px);
    min-height:190px;
    padding:18px;
    border-radius:17px;
}
.dashboard-page .project-card:before,
.dashboard-page .mascot-project-card:before{
    left:18px;
    right:18px;
}
.dashboard-page .project-type-icon{
    width:43px;
    height:43px;
    border-radius:13px;
    font-size:20px;
}
.dashboard-page .project-card h3{
    margin:15px 0 6px;
    font-size:18px;
    line-height:1.25;
}
.dashboard-page .project-card>p{
    min-height:30px;
    margin:0 0 11px;
    font-size:10px;
    line-height:1.55;
    -webkit-line-clamp:2;
}
.dashboard-page .project-card-footer{
    padding:9px 0 8px;
    font-size:8px;
}
.dashboard-page .project-open-button{
    padding:9px 11px;
    border-radius:9px;
    font-size:9px;
}
.dashboard-page .project-open-button svg{
    width:15px;
}
.dashboard-page .project-selected-badge,
.dashboard-page .project-card-id{
    font-size:7px;
}
.dashboard-page .mascot-project-card{
    padding:16px 18px;
}
.dashboard-page .mascot-project-card:before{
    left:18px;
    right:18px;
}
.dashboard-page .mascot-card-copy{
    width:66%;
}
.dashboard-page .mascot-card-kicker{
    font-size:7px;
    letter-spacing:1.35px;
}
.dashboard-page .mascot-card-copy h3{
    margin:13px 0 7px;
    font-size:clamp(17px,1.35vw,21px);
    line-height:1.18;
}
.dashboard-page .mascot-card-copy p{
    font-size:10px;
    line-height:1.5;
}
.dashboard-page .mascot-card-status{
    margin-top:13px;
    font-size:8px;
}
.dashboard-page .mascot-card-image{
    right:3px;
    height:calc(100% - 3px);
    max-width:43%;
}
.dashboard-page .mascot-card-index{
    right:12px;
    top:12px;
    font-size:7px;
}
.dashboard-page .project-add-summary{
    gap:9px;
}
.dashboard-page .project-add-plus{
    width:46px;
    height:46px;
    border-radius:13px;
}
.dashboard-page .project-add-plus svg{
    width:19px;
}
.dashboard-page .project-add-summary>b{
    font-size:12px;
}
.dashboard-page .project-add-summary>small{
    font-size:9px;
}
.dashboard-page .workspace-footnote{
    margin-top:15px;
    padding:10px 13px;
}
.dashboard-page .workspace-footnote b{
    font-size:9px;
}
.dashboard-page .workspace-footnote span{
    font-size:8px;
}

/* Keep the larger tiles readable even on shorter desktop viewports. */
@media (min-width:801px) and (max-height:760px){
    .dashboard-page .project-card,
    .dashboard-page .project-add-card{
        height:176px;
        min-height:176px;
        padding:13px;
    }
    .dashboard-page .mascot-project-card{
        padding:12px 14px;
    }
    .dashboard-page .mascot-card-copy h3{
        margin:8px 0 5px;
        font-size:16px;
    }
    .dashboard-page .mascot-card-status{
        margin-top:8px;
    }
    .dashboard-page .project-card h3{
        margin-top:10px;
        font-size:15px;
    }
    .dashboard-page .project-card-footer{
        padding:6px 0;
    }
    .dashboard-page .workspace-footnote{
        display:flex;
        margin-top:8px;
        padding:7px 10px;
    }
}

/* Two columns on compact desktop/tablet, one on phones. */
@media (min-width:801px) and (max-width:1100px){
    .dashboard-page .project-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media (max-width:800px){
    .dashboard-page .project-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:12px;
    }
    .dashboard-page .project-card,
    .dashboard-page .project-add-card{
        height:190px;
        min-height:190px;
        padding:14px;
    }
    .dashboard-page .mascot-card-copy{
        width:68%;
    }
    .dashboard-page .mascot-card-copy h3{
        font-size:16px;
    }
    .dashboard-page .mascot-card-image{
        max-width:42%;
    }
}
@media (max-width:560px){
    .dashboard-page .project-grid{
        grid-template-columns:1fr;
    }
    .dashboard-page .project-card,
    .dashboard-page .project-add-card{
        height:184px;
        min-height:184px;
    }
    .dashboard-page .mascot-card-copy{
        width:72%;
    }
    .dashboard-page .mascot-card-copy h3{
        font-size:18px;
    }
}


/* 1.1.1 — Project workspace */
.project-workspace{max-width:1440px;margin:0 auto}
.project-breadcrumbs{display:flex;align-items:center;gap:9px;margin:0 0 19px;color:#65756b;font-size:9px;font-weight:750}
.project-breadcrumbs a{display:flex;align-items:center;gap:7px;color:#91a197;transition:color .18s}
.project-breadcrumbs a:hover{color:var(--green)}
.project-breadcrumbs a svg{width:13px;height:13px}
.project-breadcrumbs>span:last-child{max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b7c4bc}
.project-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:25px}
.project-page-title{min-width:0}
.project-page-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:10px}
.project-type-pill{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid color-mix(in srgb,var(--project-accent) 32%,#29382f);border-radius:999px;background:color-mix(in srgb,var(--project-accent) 8%,#101713);color:var(--project-accent);font-size:8px;font-weight:850}
.project-type-pill i{font-style:normal;font-size:12px}
.project-number{color:#65756b;font:8px ui-monospace,Consolas,monospace;letter-spacing:1.1px}
.project-current-pill{display:inline-flex;align-items:center;gap:6px;color:#8ce9aa;font-size:8px;font-weight:850}
.project-current-pill i{width:6px;height:6px;border-radius:50%;background:#8ce9aa;box-shadow:0 0 10px rgba(140,233,170,.65)}
.project-page-title h1{margin:0 0 8px;font-size:clamp(28px,3.2vw,42px);line-height:1.06;letter-spacing:-.06em;overflow-wrap:anywhere}
.project-page-title>p{max-width:780px;margin:0;color:#84938a;font-size:11px;line-height:1.7}
.project-page-actions{display:flex;align-items:center;gap:8px;flex:none}
.project-page-actions form{margin:0}
.project-page-actions .btn{white-space:nowrap}
.project-overview-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:14px;margin-bottom:30px}
.project-overview-card{position:relative;min-height:220px;overflow:hidden;padding:23px;border:1px solid color-mix(in srgb,var(--project-accent) 28%,#29382f);border-radius:17px;background:radial-gradient(450px 240px at 100% 0%,color-mix(in srgb,var(--project-accent) 12%,transparent),transparent 70%),linear-gradient(145deg,#141e17,#0d130f)}
.project-overview-kicker{position:relative;z-index:1;color:var(--project-accent);font-size:8px;font-weight:900;letter-spacing:1.7px}
.project-overview-main h2{position:relative;z-index:1;margin:14px 0 7px;font-size:21px;letter-spacing:-.045em}
.project-overview-main>p{position:relative;z-index:1;max-width:520px;margin:0;color:#87968d;font-size:10px;line-height:1.7}
.project-overview-dates{position:absolute;z-index:1;left:23px;right:23px;bottom:20px;display:flex;gap:35px}
.project-overview-dates div{display:grid;gap:4px}
.project-overview-dates span{color:#68796e;font-size:8px}
.project-overview-dates b{color:#c6d2ca;font-size:9px;font-weight:750}
.project-overview-watermark{position:absolute;right:25px;top:4px;color:var(--project-accent);opacity:.055;font-size:170px;font-weight:900;line-height:1}
.project-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.project-metric-card{display:flex;flex-direction:column;justify-content:center;min-height:104px;padding:16px;border:1px solid #25342b;border-radius:14px;background:linear-gradient(145deg,#121a15,#0d130f)}
.project-metric-card span{color:#8b9a91;font-size:9px;font-weight:750}
.project-metric-card b{margin:4px 0 0;color:#e6f0e9;font-size:27px;line-height:1;letter-spacing:-.06em}
.project-metric-card small{margin-top:6px;color:#627168;font-size:8px}
.project-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:14px}
.project-section-heading h2{margin:5px 0 4px;font-size:23px;letter-spacing:-.045em}
.project-section-heading .muted{font-size:10px}
.project-structure-count{padding:7px 10px;border:1px solid #2a3b30;border-radius:999px;color:#8b9a91;background:#101812;font-size:8px;font-weight:800;white-space:nowrap}
.project-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.project-module-card{position:relative;min-width:0;overflow:hidden;padding:17px;border:1px solid #27372e;border-radius:15px;background:linear-gradient(145deg,rgba(18,26,21,.96),rgba(11,16,13,.98))}
.project-module-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--project-accent);opacity:.55}
.project-module-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.project-module-icon{display:grid;place-items:center;width:33px;height:33px;border:1px solid #2b4032;border-radius:10px;background:#142019;color:var(--green);font-size:15px}
.project-status{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:7px;font-weight:850;white-space:nowrap}
.project-status.done{background:#173324;color:#8fe8a9}
.project-status.progress{background:#18302c;color:#82d9c9}
.project-status.planned{background:#24291e;color:#c8c38a}
.project-status.idea{background:#20232b;color:#aeb7d3}
.project-module-card h3{margin:12px 0 5px;font-size:15px;letter-spacing:-.025em}
.project-module-card>p{min-height:31px;margin:0;color:#7d8d83;font-size:9px;line-height:1.6}
.project-feature-list{display:grid;gap:0;margin-top:14px;border-top:1px solid #243129}
.project-feature-row{display:grid;grid-template-columns:7px minmax(0,1fr) auto;align-items:start;gap:9px;padding:10px 0;border-bottom:1px solid rgba(36,49,41,.65)}
.project-feature-row:last-child{border-bottom:0;padding-bottom:1px}
.project-feature-marker{width:6px;height:6px;margin-top:4px;border-radius:50%;background:#78857c}
.project-feature-marker.done{background:#8ce9aa;box-shadow:0 0 8px rgba(140,233,170,.3)}
.project-feature-marker.progress{background:#82d9c9}
.project-feature-marker.planned{background:#c8c38a}
.project-feature-marker.idea{background:#aeb7d3}
.project-feature-copy{display:grid;gap:3px;min-width:0}
.project-feature-copy b{color:#c8d3cb;font-size:9px;font-weight:750}
.project-feature-copy small{color:#6e7d73;font-size:8px;line-height:1.5}
.project-feature-status{padding-left:5px;color:#75857a;font-size:7px;white-space:nowrap}
.project-structure-empty{display:flex;align-items:center;gap:14px;padding:22px;border:1px dashed #304137;border-radius:15px;background:rgba(13,20,15,.55)}
.project-structure-empty-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#15251a;color:#85dfa0}
.project-structure-empty-icon svg{width:19px;height:19px}
.project-structure-empty b{font-size:11px}
.project-structure-empty p{margin:3px 0 0;color:#738278;font-size:9px}
.project-danger-zone{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:28px;padding:17px 19px;border:1px solid #432c30;border-radius:14px;background:linear-gradient(100deg,rgba(47,25,29,.42),rgba(16,17,15,.6))}
.project-danger-kicker{color:#d48b91;font-size:7px;font-weight:900;letter-spacing:1.6px}
.project-danger-zone h2{margin:4px 0;font-size:12px}
.project-danger-zone p{margin:0;color:#8f777a;font-size:8px;line-height:1.6}
.project-danger-zone form{flex:none}
.project-danger-zone .btn{min-height:36px;font-size:9px}
.project-danger-zone .btn svg{width:14px;height:14px}

@media(max-width:1050px){
    .project-overview-grid{grid-template-columns:1fr}
    .project-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
    .project-overview-card{min-height:190px}
}
@media(max-width:800px){
    .project-page-heading{align-items:flex-start;flex-direction:column}
    .project-page-actions{width:100%;flex-wrap:wrap}
    .project-page-actions .btn{min-height:38px}
    .project-module-grid{grid-template-columns:1fr}
    .project-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
    .project-metric-card{padding:12px;min-height:95px}
    .project-metric-card b{font-size:23px}
}
@media(max-width:560px){
    .project-metrics{grid-template-columns:1fr 1fr}
    .project-overview-dates{gap:16px;flex-wrap:wrap}
    .project-overview-card{min-height:220px;padding:18px}
    .project-overview-dates{left:18px;right:18px;bottom:17px}
    .project-section-heading{align-items:flex-start;flex-direction:column}
    .project-danger-zone{align-items:flex-start;flex-direction:column}
    .project-danger-zone form,.project-danger-zone .btn{width:100%}
    .project-feature-row{grid-template-columns:7px minmax(0,1fr)}
    .project-feature-status{grid-column:2}
}
