/* 6ixx Glass — a local-only visual layer shared by app and admin. */
:root,:root[data-theme=light]{--ui-bg:#f4f6fb;--ui-surface:#fff;--ui-surface-alt:#eef1f7;--ui-text:#19243a;--ui-muted:#5c6880;--ui-border:#dce2ee;--ui-accent:#2163d6;--ui-on-accent:#fff;--ui-accent-soft:#e8efff;--ui-danger:#c9344a;--ui-shadow:0 12px 35px #233f7010;--glass:rgba(255,255,255,.82);--glass-line:rgba(255,255,255,.9);--call-green:#188447;--call-green-soft:#e4f5eb;--focus-ring:rgba(33,99,214,.18)}
:root[data-theme=dark]{--ui-bg:#0c101a;--ui-surface:#151c2a;--ui-surface-alt:#20293a;--ui-text:#f2f5ff;--ui-muted:#a6b2c9;--ui-border:#303b50;--ui-accent:#82b0ff;--ui-on-accent:#09234d;--ui-accent-soft:#203657;--ui-danger:#ff9baa;--ui-shadow:0 16px 40px #0003;--glass:rgba(21,28,42,.85);--glass-line:rgba(173,197,255,.15);--call-green:#72e1a0;--call-green-soft:#183c2c;--focus-ring:rgba(130,176,255,.2)}
:root[data-theme] body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--ui-bg);background-image:radial-gradient(ellipse at 80% 0%,var(--ui-accent-soft),transparent 48%);background-attachment:fixed;line-height:1.5}
:root[data-theme] body :is(button,input,textarea,select){font-family:inherit}
:root[data-theme] body button{border-radius:15px;transition:background .18s ease,box-shadow .18s ease,transform .2s cubic-bezier(.2,.8,.2,1)}
:root[data-theme] body button:active:not(:disabled){transform:scale(.97)}
:root[data-theme] body :is(input,textarea,select){border-radius:14px;min-height:46px;background:var(--ui-surface-alt);border-color:var(--ui-border);font-size:14px}
:root[data-theme] body :is(input,textarea,select):focus{box-shadow:0 0 0 4px var(--focus-ring)}
:root[data-theme] body :is(.card,.metrics article,.connection,.call-screen,.network){border-radius:26px;border-color:var(--ui-border);box-shadow:var(--ui-shadow)}
:root[data-theme] body :is(.badge,.count-pill){border-radius:99px;padding:5px 9px;font-weight:650}
:root[data-theme] body .eyebrow{color:var(--ui-accent);letter-spacing:.15em}
:root[data-theme] body:not(.admin-portal)>header{height:76px;padding:0 30px;background:var(--glass);border-bottom:1px solid var(--glass-line);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}
:root[data-theme] body:not(.admin-portal)>header .brand{font-size:29px;font-weight:800;letter-spacing:-1.5px}
:root[data-theme] body:not(.admin-portal)>header .brand span{background:var(--ui-accent-soft);color:var(--ui-accent);border-radius:99px;padding:7px 9px;font-size:8px;letter-spacing:.1em}
:root[data-theme] body:not(.admin-portal)>header :is(.theme-toggle,#user-signout,#notification-bell){background:var(--ui-surface);border-color:var(--ui-border);border-radius:99px;min-height:40px}
:root[data-theme] body:not(.admin-portal)>header :is(#user-signout,#notification-bell){margin-left:0;flex-shrink:0}
:root[data-theme] body:not(.admin-portal)>header #notification-bell{display:inline-flex;align-items:center;gap:6px;font-size:0;min-width:40px;justify-content:center}
#notification-bell::before{content:'';display:block;width:19px;height:19px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9ZM9 20h6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9ZM9 20h6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
#notification-count{font-size:10px}
:root[data-theme] body:not(.admin-portal) #section-tabs{left:20px;top:100px;bottom:20px;width:208px;border-radius:26px;padding:23px 12px;background:var(--glass);border:1px solid var(--glass-line);box-shadow:var(--ui-shadow);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}
#section-tabs::before{content:'YOUR SPACE';padding:0 16px 24px;letter-spacing:.18em}
#section-tabs::after{content:'6ixx Workspace';font-weight:600;opacity:.8}
:root[data-theme] body:not(.admin-portal) #section-tabs button{height:52px;border-radius:16px;padding:12px 16px;font-size:13px;gap:13px;font-weight:600}
:root[data-theme] body:not(.admin-portal) #section-tabs button[aria-selected=true]{background:var(--ui-accent);color:var(--ui-on-accent);box-shadow:0 5px 12px #2163d620}
:root[data-theme] body:not(.admin-portal) #section-tabs button svg{width:22px;height:22px;stroke-width:1.8}
:root[data-theme] body:not(.admin-portal).workspace-open .workspace-heading h1{font-size:34px;font-weight:750;letter-spacing:-1.4px}
body:not(.admin-portal).workspace-open .workspace-heading{margin-bottom:24px}
body:not(.admin-portal).workspace-open .workspace-label{font-size:11px;background:var(--glass);border-radius:99px;padding:9px 14px}
:root[data-theme] body .phone-panel:not([hidden]){animation:panel-arrive .26s cubic-bezier(.2,.7,.2,1) both}
@keyframes panel-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* Login: an editorial welcome and a floating glass sign-in card. */
body:not(.admin-portal):not(.workspace-open) main{max-width:1250px;padding:50px 42px 0}
body:not(.admin-portal):not(.workspace-open) .intro{grid-template-columns:minmax(0,1fr) minmax(340px,.85fr);gap:100px;min-height:calc(100dvh - 245px);margin-bottom:38px}
body:not(.admin-portal):not(.workspace-open) .intro>div>.eyebrow{border-radius:99px;padding:8px 13px;font-size:9px;letter-spacing:.12em;margin-bottom:24px;background:var(--ui-accent-soft);color:var(--ui-accent)}
body:not(.admin-portal):not(.workspace-open) .intro .access-heading{font-size:clamp(43px,4.8vw,68px);letter-spacing:-.065em;line-height:1.04;font-weight:780;margin-bottom:24px}
body:not(.admin-portal):not(.workspace-open) .intro .lede{font-size:15px;line-height:1.8;max-width:390px}
body:not(.admin-portal):not(.workspace-open) .welcome-art{max-width:450px;margin-top:28px;filter:drop-shadow(0 14px 25px #2163d610)}
.welcome-art .art-soft{fill:var(--ui-accent-soft)}
.welcome-art .art-accent{fill:var(--ui-accent)}
.welcome-art .art-wave{stroke:var(--ui-accent)}
.welcome-art-caption{gap:20px;font-size:10px;font-weight:550}
body:not(.admin-portal):not(.workspace-open) .connection{background:var(--glass);padding:36px;border-radius:30px;border:1px solid var(--glass-line);box-shadow:0 24px 70px #223e7214;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);position:relative;overflow:hidden}
body:not(.admin-portal):not(.workspace-open) .connection::before{content:'';display:block;width:46px;height:5px;background:var(--ui-accent);border-radius:99px;margin-bottom:26px}
body:not(.admin-portal):not(.workspace-open) .connection>strong{font-size:28px;font-weight:740;letter-spacing:-.9px}
body:not(.admin-portal):not(.workspace-open) .connection>p:not(.access-eyebrow){margin:10px 0 25px;font-size:13px}
body:not(.admin-portal):not(.workspace-open) #login :is(input:not([type=checkbox]),button){min-height:52px;font-size:14px;border-radius:15px}
:root[data-theme] body:not(.admin-portal):not(.workspace-open) #login :is(#login-username,#token){background:var(--ui-surface);border-color:var(--ui-border);color:var(--ui-text)}
body:not(.admin-portal):not(.workspace-open) #login label{font-size:12px;font-weight:600;margin:19px 0 9px}
body:not(.admin-portal):not(.workspace-open) #login .check{font-size:12px;margin-top:20px;min-height:24px}
body:not(.admin-portal):not(.workspace-open) #login .check input{width:18px;height:18px;flex-shrink:0}
body:not(.admin-portal):not(.workspace-open) #create-account{border-radius:15px;font-size:13px;min-height:48px;background:transparent}
/* Everyday pages: quieter grouped lists and clear action hierarchy. */
:root[data-theme] .recents-card{padding:28px}
:root[data-theme] .recents-filters{border-radius:99px;padding:4px}
:root[data-theme] .recents-filters button{border-radius:99px;font-size:12px;min-width:62px}
:root[data-theme] .recent-avatar{border-radius:18px;background:var(--ui-accent-soft);color:var(--ui-accent)}
:root[data-theme] body .recent-info{border-radius:50%;width:32px;height:32px;background:transparent;color:var(--ui-accent)}
:root[data-theme] .recent-row{padding:18px 0}
#panel-contacts .person{padding:23px 0;gap:18px}
#panel-contacts .person strong{font-size:15px}
#panel-contacts .person small{font-size:12px;margin-top:5px}
:root[data-theme] body .person-actions button{border-radius:99px;padding:10px 15px;font-size:12px}
:root[data-theme] body .person-actions button:not(.danger){background:var(--call-green-soft);color:var(--call-green);border:1px solid var(--ui-border)}
#panel-settings{max-width:1000px}
#panel-settings>.card{padding:27px 30px;border-radius:24px}
#panel-settings>.card>h2{font-size:19px;letter-spacing:-.5px}
#panel-settings .hint{font-size:13px;line-height:1.75}
#panel-settings .card label{font-size:13px}
:root[data-theme] .security-center{border-radius:24px}
:root[data-theme] :is(.security-protection,.security-session){border-radius:16px}
:root[data-theme] .keypad-coming-soon{max-width:720px;min-height:440px;background:linear-gradient(150deg,var(--ui-surface),var(--ui-accent-soft));border-radius:30px;border-color:var(--ui-border)}
.keypad-coming-soon .coming-art{width:92px;height:92px;border-radius:28px;transform:rotate(-8deg);box-shadow:0 12px 25px #2163d618;background:var(--ui-surface)}
.keypad-coming-soon .eyebrow{border-radius:99px}
.keypad-coming-soon h2{font-weight:750;font-size:40px}
.keypad-coming-soon [data-design-section]{border-radius:99px;min-height:48px;padding:12px 25px}
:root[data-theme] body dialog{border-radius:28px;background:var(--glass);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}
/* The separate admin portal adopts the same glass palette. */
:root[data-theme] body.admin-portal .admin-header{background:var(--glass);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);border-bottom-color:var(--glass-line)}
:root[data-theme] body.admin-portal :is(.admin-metrics article,.topology-panel,.command-stats,.admin-toolbar,.account-card,.activity-card){background:var(--ui-surface);border-color:var(--ui-border);border-radius:24px}
:root[data-theme] body.admin-portal .admin-login-story{background:linear-gradient(145deg,var(--ui-accent-soft),var(--ui-surface));color:var(--ui-accent)}
:root[data-theme] body.admin-portal .admin-login-art{color:var(--ui-accent)}
@media(min-width:1600px){body:not(.admin-portal):not(.workspace-open) .intro{min-height:740px}}
@media(max-width:1100px){body:not(.admin-portal):not(.workspace-open) .intro{gap:45px}}
@media(max-width:960px){
 :root[data-theme] body:not(.admin-portal)>header{height:70px;padding:0 22px}
 :root[data-theme] body:not(.admin-portal) #section-tabs{top:auto;left:18px;right:18px;bottom:max(14px,env(safe-area-inset-bottom));width:auto;height:76px;max-height:76px;padding:7px;border-radius:28px;flex-direction:row;gap:2px;background:var(--glass);box-shadow:0 10px 35px #182a5220}
 :root[data-theme] body:not(.admin-portal) #section-tabs button{height:60px;min-width:0;flex:1;flex-direction:column;justify-content:center;padding:7px 3px;gap:5px;font-size:10px;border-radius:21px}
 :root[data-theme] body:not(.admin-portal) #section-tabs button[aria-selected=true]{background:var(--ui-accent-soft);color:var(--ui-accent);box-shadow:none}
 #section-tabs::before,#section-tabs::after{display:none}
 body:not(.admin-portal):not(.workspace-open) main{padding:40px 28px 0}
 body:not(.admin-portal):not(.workspace-open) .intro{grid-template-columns:1fr 1fr;gap:30px;min-height:calc(100dvh - 225px)}
 body:not(.admin-portal):not(.workspace-open) .intro .access-heading{font-size:46px}
 body:not(.admin-portal):not(.workspace-open) .connection{padding:28px}
}
@media(max-width:700px){
 body:not(.admin-portal):not(.workspace-open) main{padding:29px 22px 0}
 body:not(.admin-portal):not(.workspace-open) .intro{display:flex;gap:29px;max-width:450px;min-height:0}
 body:not(.admin-portal):not(.workspace-open) .intro .access-heading{font-size:45px;margin-bottom:17px}
 body:not(.admin-portal):not(.workspace-open) .intro .lede{font-size:13px;max-width:350px;line-height:1.75}
 body:not(.admin-portal):not(.workspace-open) .intro>div>.eyebrow{font-size:8px;margin-bottom:20px}
 body:not(.admin-portal):not(.workspace-open) .connection{padding:26px;border-radius:28px}
 body:not(.admin-portal):not(.workspace-open) .connection::before{margin-bottom:20px}
 :root[data-theme] body :is(input,textarea,select){font-size:16px}
 body:not(.admin-portal):not(.workspace-open) #login input:not([type=checkbox]){font-size:16px}
 #panel-settings>.card{padding:23px}
}
@media(max-width:600px){
 :root[data-theme] body:not(.admin-portal)>header{height:66px;padding:0 16px;gap:7px}
 :root[data-theme] body:not(.admin-portal)>header .brand{font-size:25px}
 :root[data-theme] body:not(.admin-portal)>header .brand span{font-size:7px;padding:6px 7px}
 :root[data-theme] body:not(.admin-portal)>header :is(.theme-toggle,#user-signout){font-size:10px;min-height:35px;padding:8px 10px}
 :root[data-theme] body:not(.admin-portal)>header #notification-bell{min-height:35px;min-width:35px;padding:7px}
 :root[data-theme] body:not(.admin-portal) #section-tabs{left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));height:72px;max-height:72px;padding:6px;border-radius:26px}
 :root[data-theme] body:not(.admin-portal) #section-tabs button{height:58px;font-size:9px;border-radius:20px;gap:4px;padding:6px 1px}
 :root[data-theme] body:not(.admin-portal) #section-tabs button svg{width:21px;height:21px}
 :root[data-theme] body:not(.admin-portal).workspace-open .workspace-heading h1{font-size:32px}
 :root[data-theme] .recents-card{padding:22px}
 :root[data-theme] .keypad-coming-soon{padding:45px 24px;min-height:410px}
 .keypad-coming-soon h2{font-size:35px}
 #panel-contacts .person{flex-wrap:wrap;gap:12px}
 .person-actions{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){:root[data-theme] body .phone-panel:not([hidden]){animation:none}:root[data-theme] body :is(button,input,textarea,select){transition:none}}
[hidden]{display:none!important}
