/* Studio: presentation only. Existing actions, permissions and API contracts are preserved. */
body.studio-theme{
 --ink:#1b3642;--muted:#5d737c;--navy:#0b365d;--dark:#102c43;--green:var(--navy);
 --cyan:#00b4cf;--cyan-ink:#007789;--mint:#e8f6f5;--paper:#f5f6f2;
 --surface:#fff;--surface-soft:#f5f8f7;--line:#dfe6e4;--border:var(--line);
 --radius:20px;--radius-control:10px;--shadow:0 2px 6px #163c3b03,0 8px 24px #163c3b03;
 background:var(--paper);color:var(--ink);font-size:14px;
}
.studio-theme h1,.studio-theme h2,.studio-theme h3{font-weight:650}
.studio-theme .page-heading h1{font-size:32px;letter-spacing:-1.1px;line-height:1.2;margin:8px 0 12px;text-wrap:balance}
.studio-theme .page-heading{margin-bottom:28px}
.studio-theme .eyebrow{color:var(--cyan-ink);font-weight:650;letter-spacing:1.25px;font-size:11px}
.studio-theme .primary{background:var(--navy);border-color:var(--navy);box-shadow:none}
.studio-theme .primary:hover{background:#144d75;border-color:#144d75}
.studio-theme .secondary{color:var(--navy);border-color:#c9d8d7;background:var(--surface)}
.studio-theme .secondary:hover{background:#edf6f5;border-color:#a3bebd}
.studio-theme .text-button{color:var(--cyan-ink)}
.studio-theme .text-button:hover{background:#e8f5f4;color:#005e6c}
.studio-theme .primary,.studio-theme .secondary{min-height:42px;border-radius:10px;font-size:12px;padding:10px 16px;font-weight:650}
.studio-theme .primary.danger,.studio-theme .reject{background:var(--danger);border-color:var(--danger)}
.studio-theme .secondary.danger,.studio-theme .text-button.danger{color:var(--danger);border-color:#efd2da;background:#fff7f8}
.studio-theme .primary:disabled,.studio-theme .secondary:disabled{box-shadow:none}
.studio-theme .card,.studio-theme .tenant-card,.studio-theme .stat{border-color:var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.studio-theme .card-header{padding:20px 24px;min-height:68px;background:var(--surface);border-color:var(--line)}
.studio-theme .card-header h3{font-size:15px;font-weight:650;color:var(--ink)}
.studio-theme table{font-variant-numeric:tabular-nums}
.studio-theme th{text-transform:none;letter-spacing:0;font-size:12px;font-weight:600;padding:14px 20px;background:#f6f8f6;color:#526a73;border-color:var(--line)}
.studio-theme td{padding:16px 20px;border-color:#e8eeeb}
.studio-theme td strong{color:var(--ink);font-weight:600}
.studio-theme td small{color:var(--muted)}
.studio-theme tbody tr:hover{background:#f4faf8}
.studio-theme code{color:#2e5569;background:#f0f5f3;border-color:#e1e9e5}
.studio-theme .badge{width:fit-content;max-width:100%;border-radius:7px;font-size:11px;font-weight:600}
.studio-theme .stat{background:var(--surface);padding:24px}
.studio-theme .stat:before{display:none}
.studio-theme .stat p{font-size:12px;color:var(--muted);font-weight:500}
.studio-theme .stat strong{font-size:34px;font-weight:600;color:var(--navy);letter-spacing:-1.1px;margin:12px 0 8px}
.studio-theme .stat small{font-size:11px}
.studio-theme .stats{gap:20px;margin:24px 0 28px}
.studio-theme .tenant-grid{gap:24px}
.studio-theme .tenant-card{padding:24px}
.studio-theme .tenant-card:hover{border-color:#b5d2d0;box-shadow:0 8px 28px #173f3e09}
.studio-theme .tenant-symbol{background:#e6f5f3;border-color:#cce6e2;color:var(--cyan-ink);border-radius:12px}
.studio-theme .welcome-card{background:linear-gradient(115deg,#e8f4f1,#f0f8f5);color:var(--ink);border:1px solid #d7e8e2;padding:28px;border-radius:var(--radius);box-shadow:none;overflow:hidden}
.studio-theme .welcome-card h2{color:var(--navy);font-weight:650;font-size:26px;letter-spacing:-.8px}
.studio-theme .welcome-card p{color:#4b6d74}
.studio-theme .welcome-card .eyebrow{color:var(--cyan-ink)}
.studio-theme .welcome-card .secondary{background:#fff;color:var(--navy);border-color:#bdd7d1}
.studio-theme .welcome-card:before,.studio-theme .welcome-card:after{opacity:.16;border-color:#2faaa7}
.studio-theme .detail-item{border-color:#e5eeea}
.studio-theme .detail-item strong{font-weight:600}
.studio-theme .activity-dot{background:var(--cyan-ink)}
.studio-theme .notice{background:#eef7f6;border-color:#cfe4e0;color:#355e66}
.studio-theme .notice.error{background:var(--danger-soft);color:#9e2b44;border-color:#efd1da}
.studio-theme .op-warnings{background:var(--warning-soft);color:var(--warning);border-color:#ecdba9}
.studio-theme .form-help{font-size:12px;line-height:1.65}
.studio-theme label{font-size:12px;color:#405e68;font-weight:600}
.studio-theme input:not([type=checkbox]):not([type=radio]):not([type=range]),.studio-theme select,.studio-theme textarea{border-color:#b8cac9;background:#fff;color:var(--ink);border-radius:10px;min-height:44px}
.studio-theme input::placeholder,.studio-theme textarea::placeholder{color:#6d8289}
.studio-theme input:focus,.studio-theme select:focus,.studio-theme textarea:focus{border-color:var(--cyan-ink);box-shadow:0 0 0 3px #00778922}
.studio-theme input:disabled,.studio-theme select:disabled,.studio-theme textarea:disabled{background:#edf2ef;color:#667e83}
.studio-theme dialog{border-color:var(--line);border-radius:20px;box-shadow:0 28px 100px #123a3b30}
.studio-theme dialog::backdrop{background:#0f313966;backdrop-filter:blur(4px)}
.studio-theme .modal-head{background:#f7faf8;border-color:var(--line);padding:24px}
.studio-theme .modal-head h2{font-weight:650;font-size:20px;color:var(--ink)}
.studio-theme .modal-body{padding:24px}
.studio-theme .close{border-color:#cdddda;color:#536e78}
.studio-theme .modal-actions{border-color:var(--line);gap:12px;margin-top:24px}
.studio-theme .monthly-usage-stat,.studio-theme .metric-card,.studio-theme .blocked-map-card{border-color:var(--line);border-radius:20px;box-shadow:var(--shadow)}
.studio-theme .metric-heading h3,.studio-theme .metric-reading strong{color:var(--navy);font-weight:650}
.studio-theme .metric-header,.studio-theme .metric-footer{border-color:var(--line)}
.studio-theme .chart-grid{stroke:#e1e9e5}
.studio-theme .incoming-flow{--if-navy:var(--navy);--if-cyan:var(--cyan-ink);--if-line:#d5e4df;--if-paper:#f5f9f7;border-color:var(--line);border-radius:20px;box-shadow:var(--shadow)}
.studio-theme .if-top{padding:24px 28px 16px}
.studio-theme .if-top h2{font-size:24px;font-weight:650;letter-spacing:-.7px}
.studio-theme .if-canvas{background:#f6faf8;border-color:#e2ece7}
.studio-theme .if-node{border-color:#d6e6df;border-radius:12px}
.studio-theme .if-entry>summary{background:#edf8f4}
.studio-theme .if-heading strong{font-weight:600;color:var(--navy)}
.studio-theme .if-footer{border-color:var(--line);background:#fff;color:var(--muted)}
.studio-theme .portal-grid{gap:24px}
.studio-theme.personal-portal .topbar{background:#fff;border-color:var(--line)}
.studio-theme.personal-portal .card{border-radius:20px;border-color:var(--line)}
.studio-theme.personal-portal .phone-panel{border-top-color:var(--cyan-ink)}
.studio-theme.personal-portal .keypad button{background:#f1f7f4;border-color:#dfebe4;color:var(--navy);border-radius:12px}
.studio-theme.personal-portal .keypad button:hover{background:#e3f4ef;border-color:#b8d9d0}
.studio-theme.login-page .login-art{background:linear-gradient(145deg,#e9f5f0,#e4f2f1 65%,#d8eee9);color:var(--navy)}
.studio-theme.login-page .login-art h1{color:var(--navy);font-weight:650}
.studio-theme.login-page .login-art p,.studio-theme.login-page .login-art small{color:#4c6c76}
.studio-theme.login-page .login-art .eyebrow{color:var(--cyan-ink)}
.studio-theme.login-page .login-art .brand{background:#fff;border-color:#c9e3dc;box-shadow:none}
.studio-theme.login-page .signal-art span{background:var(--cyan-ink);opacity:.35}
.studio-theme.login-page .login-form{background:#fff}
.studio-theme.login-page .login-form h2{font-weight:650;color:var(--navy)}
.studio-theme.login-page.account-page .login-form>div{border-color:var(--line);border-radius:24px;box-shadow:var(--shadow)}
/* The same navigation nodes and selectors are retained; only their placement changes. */
.studio-shell .scope{margin:0;display:flex;align-items:center;gap:12px;min-width:0}
.studio-shell .topbar .scope small{color:var(--muted);font-size:10px;letter-spacing:1px;white-space:nowrap}
.studio-shell .topbar .scope select{width:260px;max-width:100%;margin:0;background:#fff;color:var(--ink);border-color:#c2d6d0;padding:8px 36px 8px 12px;font-size:12px;min-height:40px}
.studio-shell .scope select option{background:var(--surface);color:var(--ink)}
.studio-shell .workspace{margin-left:0;min-width:0}
.studio-shell .topbar{border-color:var(--line);background:#fbfdfa;backdrop-filter:none;padding:12px 32px;gap:20px;min-height:64px;height:auto}
.studio-shell #breadcrumb{margin-left:auto;font-size:12px}
.studio-shell .user-chip{border-color:#d6e3dd;background:#fff;padding:4px 12px 4px 4px;border-radius:20px}
.studio-shell .avatar{background:#e7f5ef;border-color:#d4e8df;color:var(--cyan-ink);border-radius:50%}
.studio-shell main{max-width:1680px;margin:0 auto;padding:32px 32px 48px;min-height:calc(100dvh - 224px)}
.studio-shell footer{max-width:1680px;margin:0 auto;padding:20px 32px;background:transparent;border-color:var(--line);color:var(--muted)}
@media(min-width:1200px){
 .studio-shell .sidebar{position:sticky;inset:auto;top:0;width:100%;height:88px;padding:12px 24px;display:grid;grid-template-columns:144px minmax(0,1fr) auto;align-items:center;gap:20px;background:#fff;color:var(--ink);border-right:0;border-bottom:1px solid var(--line);box-shadow:none;z-index:35;overflow:visible}
 .studio-shell .sidebar .brand{width:144px;max-width:none;margin:0;padding:0;border:0;background:#fff;border-radius:0;box-shadow:none}
 .studio-shell .sidebar .brand img{display:block;width:144px;height:auto}
 .studio-shell .sidebar nav{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:2px;overflow:visible;max-height:none;padding:0}
 .studio-shell .sidebar .nav-group{position:relative;flex:0 0 auto}
 .studio-shell .sidebar .nav-item{display:flex;align-items:center;justify-content:flex-start;width:auto;min-height:44px;padding:10px 10px;font-size:12px;gap:8px;white-space:nowrap;color:#4c6876;border-radius:9px;font-weight:500;background:transparent;box-shadow:none;border:0}
 .studio-shell .sidebar .nav-item:hover:not(.active){color:var(--navy);background:#edf6f2}
 .studio-shell .sidebar .nav-item.active{color:var(--cyan-ink);background:#eaf6f1;box-shadow:none;font-weight:650}
 .studio-shell .sidebar .nav-group-toggle.has-active{background:transparent;color:var(--cyan-ink)}
 .studio-shell .sidebar .nav-group-toggle[aria-expanded=true]{background:#edf6f2;color:var(--navy)}
 .studio-shell .sidebar .nav-group-toggle.has-active:after{content:'';height:2px;background:var(--cyan-ink);position:absolute;left:12px;right:12px;bottom:0}
 .studio-shell .sidebar .nav-chevron{margin-left:0;font-size:16px;transform:rotate(90deg);line-height:1}
 .studio-shell .sidebar .nav-children{position:absolute;left:0;top:calc(100% + 12px);margin:0;padding:8px;width:max-content;min-width:232px;max-width:320px;max-height:calc(100dvh - 132px);overflow:auto;background:#fff;color:var(--ink);border:1px solid #cbded5;border-radius:14px;box-shadow:0 16px 40px #0c3a3622;z-index:40}
 .studio-shell .sidebar .nav-group:last-child .nav-children{left:auto;right:0}
 .studio-shell .sidebar .nav-children .nav-item{width:100%;padding:10px 12px;font-size:13px;min-height:40px;gap:12px;border-radius:8px}
 .studio-shell .sidebar .nav-icon{width:16px;flex-basis:16px}
 .studio-shell .sidebar .nav-icon svg{width:16px;height:16px}
 .studio-shell .sidebar-bottom{margin:0;padding:0;border:0;display:block;white-space:nowrap}
 .studio-shell .sidebar-bottom>span,.studio-shell .sidebar-bottom>.system-dot{display:none}
 .studio-shell .sidebar-bottom .logout{padding:8px 0;min-height:44px;font-size:11px;color:#526e78;white-space:nowrap}
 .studio-shell .topbar{position:sticky;top:88px;z-index:25}
 .studio-shell .nav-toggle,.studio-shell .nav-close,.studio-shell .nav-scrim{display:none!important}
}
@media(min-width:1200px) and (max-width:1439px){
 .studio-shell .sidebar{grid-template-columns:132px minmax(0,1fr) auto;gap:12px;padding:12px 20px}
 .studio-shell .sidebar .brand,.studio-shell .sidebar .brand img{width:132px}
 .studio-shell .sidebar .nav-item{font-size:11px;padding:10px 8px;gap:6px}
 .studio-shell .sidebar .nav-group-toggle>.nav-icon,.studio-shell .sidebar nav>.nav-item>.nav-icon{display:none}
}
@media(max-width:1199px){
 .studio-shell .sidebar{position:fixed;inset:0 auto 0 0;width:min(300px,calc(100vw - 48px));height:100dvh;max-height:none;padding:28px 16px 20px;display:flex;flex-direction:column;transform:translateX(-105%);transition:transform .2s ease;overflow-y:auto;z-index:50;background:#fff;color:var(--ink);border-right:1px solid var(--line);box-shadow:12px 0 40px #123d3222}
 .studio-shell.nav-open .sidebar{transform:translateX(0)}
 .studio-shell .sidebar .brand{width:180px;max-width:calc(100% - 24px);padding:0;margin:0 8px 24px;border:0;box-shadow:none;background:#fff}
 .studio-shell .sidebar .brand img{width:180px}
 .studio-shell .sidebar nav{flex:1;max-height:none;overflow-y:auto;gap:6px}
 .studio-shell .sidebar .nav-item{width:100%;min-height:44px;padding:12px;color:#506d79;font-size:13px;gap:12px;border-radius:10px}
 .studio-shell .sidebar .nav-item:hover:not(.active){color:var(--navy);background:#f0f7f3}
 .studio-shell .sidebar .nav-item.active{background:#e7f6ef;color:var(--cyan-ink);box-shadow:inset 3px 0 var(--cyan-ink)}
 .studio-shell .sidebar .nav-group-toggle.has-active{background:#f4f9f6;color:var(--navy)}
 .studio-shell .sidebar .nav-children{margin:4px 0 12px 20px;padding-left:8px;border-color:#dbe9e1}
 .studio-shell .sidebar .nav-children .nav-item{font-size:12px;padding:10px;min-height:42px}
 .studio-shell .sidebar-bottom{display:block;padding:16px 8px 0;border-color:var(--line);color:var(--muted)}
 .studio-shell .sidebar-bottom .logout{color:var(--navy);font-size:12px}
 .studio-shell .topbar{position:sticky;top:0;padding:12px 20px;min-height:72px;gap:16px;z-index:25}
 .studio-shell .nav-toggle{display:inline-grid;place-items:center;flex-shrink:0;height:44px;width:44px;padding:0;border:1px solid #c9dad3;border-radius:10px;background:#fff;color:var(--navy)}
 .studio-shell .nav-toggle svg,.studio-shell .nav-close svg{height:18px;width:18px}
 .studio-shell .nav-close{display:grid;place-items:center;position:absolute;right:12px;top:10px;width:32px;height:32px;border:0;background:#eff7f2;color:#4c6a74;border-radius:8px;padding:0}
 .studio-shell .nav-scrim{position:fixed;inset:0;width:100%;height:100dvh;border:0;border-radius:0;background:#103b3b66;backdrop-filter:blur(2px);z-index:40;padding:0}
 .studio-shell.nav-open .nav-scrim{display:block}
 .studio-shell.nav-open{overflow:hidden}
 .studio-shell main{padding:28px 24px 40px;min-height:calc(100dvh - 144px)}
 .studio-shell .topbar .scope small{display:none}
 .studio-shell .topbar .scope select{width:240px}
}
@media(max-width:760px){
 .studio-theme .page-heading h1{font-size:27px}
 .studio-theme .page-actions{max-width:none;padding:0}
 .studio-theme .page-actions .primary,.studio-theme .page-actions .secondary{font-size:12px;padding:10px 14px}
 .studio-theme .primary,.studio-theme .secondary{min-height:42px;white-space:nowrap}
 .studio-theme .stats{gap:12px}.studio-theme .stat{padding:20px 16px}.studio-theme .stat strong{font-size:28px}
 .studio-theme .card-header{padding:18px}.studio-theme td{padding:14px 16px}.studio-theme th{padding:12px 16px;font-size:11px}
 .studio-theme .modal-head,.studio-theme .modal-body{padding:20px 18px}
 .studio-theme .modal-head h2{font-size:18px}.studio-theme .form-help{font-size:11px}
 .studio-theme .welcome-card{padding:24px}.studio-theme .welcome-card h2{font-size:23px}
 .studio-shell main{padding:24px 16px 36px}.studio-shell footer{padding:20px 16px}
 .studio-theme .if-top{padding:24px 18px 16px}
}
@media(max-width:600px){
 .studio-shell .topbar{padding:12px 16px;gap:12px;flex-wrap:wrap}
 .studio-shell .nav-toggle{order:0}.studio-shell .scope{order:1;flex:1}.studio-shell .topbar .scope select{width:100%;min-width:0}
 .studio-shell .user-chip{order:2;margin-left:auto}.studio-shell #breadcrumb{order:3;flex-basis:100%;margin:0;font-size:11px;line-height:1.4}
 .studio-shell .user-chip>span:last-child{display:none}
 .studio-shell .user-chip{padding:4px}.studio-shell .avatar{height:30px;width:30px}
}
@media(prefers-reduced-motion:reduce){.studio-shell .sidebar{transition:none}}
@media print{.studio-shell .sidebar,.studio-shell .topbar,.studio-shell footer{display:none!important}.studio-shell main{padding:0;max-width:none}.studio-shell .workspace{margin:0}.studio-theme{background:#fff}}
