/* 6ixx / Current — shared visual system. No network fonts or tracking assets. */
:root,:root[data-theme=light]{color-scheme:light;--ui-bg:#f3f7f8;--ui-surface:#fff;--ui-surface-alt:#edf3f4;--ui-text:#132934;--ui-muted:#5b727d;--ui-border:#dce6e9;--ui-accent:#087f83;--ui-on-accent:#fff;--ui-accent-soft:#e1f4f0;--ui-shadow:0 12px 40px #173b4810;--ui-danger:#bd3446;--background:var(--ui-bg);--surface:var(--ui-surface);--text:var(--ui-text);--muted:var(--ui-muted);--border:var(--ui-border);--accent:var(--ui-accent);--accent-light:var(--ui-accent)}
:root[data-theme=dark]{color-scheme:dark;--ui-bg:#0b131b;--ui-surface:#131f2a;--ui-surface-alt:#192a35;--ui-text:#eaf3f4;--ui-muted:#9bb0b9;--ui-border:#263a46;--ui-accent:#70e1d1;--ui-on-accent:#082d2b;--ui-accent-soft:#173b3c;--ui-shadow:0 14px 40px #0003;--ui-danger:#ff9aa5}
*{box-sizing:border-box}html{scroll-padding-top:100px}body{font-family:Inter,"Segoe UI",-apple-system,BlinkMacSystemFont,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
:root[data-theme] body{background:var(--ui-bg);color:var(--ui-text);min-height:100dvh}
:root[data-theme] body :is(h1,h2,h3,h4,label,strong,.person strong,.connection strong){color:var(--ui-text)}
h1,h2,h3{letter-spacing:-.035em}h2{font-size:23px;font-weight:650;line-height:1.3}h3{font-size:16px;font-weight:650}p{line-height:1.65}
:root[data-theme] body :is(.hint,.empty,.lede,.workspace-label,.connection>p,.person small,footer,.footer-quote){color:var(--ui-muted)}
:root[data-theme] body :is(.card,.connection,.metrics article,.network,.call-screen,.assistant-result){background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:22px;box-shadow:var(--ui-shadow)}
.card{padding:28px;margin-bottom:22px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:.18em;color:var(--ui-accent)}
:root[data-theme] body input,:root[data-theme] body select,:root[data-theme] body textarea{font-family:inherit;color:var(--ui-text);background:var(--ui-surface-alt);border:1px solid var(--ui-border);border-radius:12px;padding:13px 15px;box-shadow:none;caret-color:var(--ui-accent);transition:border-color .18s,box-shadow .18s}
:root[data-theme] body input::placeholder,:root[data-theme] body textarea::placeholder{color:var(--ui-muted);opacity:1}
:root[data-theme] body :is(input,select,textarea):focus{outline:0;border-color:var(--ui-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--ui-accent) 12%,transparent)}
:root[data-theme] body :is(button,a):focus-visible{outline:3px solid var(--ui-accent);outline-offset:3px}
:root[data-theme] body input[type=checkbox]{accent-color:var(--ui-accent)}
:root[data-theme] body button{background:var(--ui-accent);color:var(--ui-on-accent);border:1px solid transparent;border-radius:12px;font-weight:650;box-shadow:none;transition:background .18s,transform .18s,border-color .18s}
:root[data-theme] body button:hover{background:color-mix(in srgb,var(--ui-accent) 88%,var(--ui-text));box-shadow:none}
:root[data-theme] body button:active{transform:translateY(1px)}
:root[data-theme] body button:disabled{opacity:.45;transform:none;cursor:not-allowed}
:root[data-theme] body :is(button.quiet,.secondary,a.quiet){background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-border)}
:root[data-theme] body :is(button.quiet,.secondary,a.quiet):hover{background:var(--ui-surface-alt);border-color:color-mix(in srgb,var(--ui-accent) 40%,var(--ui-border))}
:root[data-theme] body .danger{background:color-mix(in srgb,var(--ui-danger) 11%,var(--ui-surface));color:var(--ui-danger);border-color:color-mix(in srgb,var(--ui-danger) 25%,var(--ui-border))}
:root[data-theme] body a{color:var(--ui-accent)}
:root[data-theme] body :is(.badge,.count-pill,.security-current){background:var(--ui-accent-soft);color:var(--ui-accent);border:0;border-radius:7px}
:root[data-theme] body :is(.dot,.connection .dot){background:var(--ui-accent);box-shadow:0 0 0 4px var(--ui-accent-soft)}
:root[data-theme] body :is(.metrics strong,#screen-time){color:var(--ui-accent)}
:root[data-theme] body :is(.rules,.transcript,.transcript-line,.assistant-result,.call-modes button){background:var(--ui-surface-alt);border-color:var(--ui-border);color:var(--ui-text)}
:root[data-theme] body .transcript-line.assistant{background:var(--ui-accent-soft)}
:root[data-theme] body :is(.transcript-line strong,.transcript-line small,th,.history summary){color:var(--ui-muted)}
:root[data-theme] body :is(.person,td,footer){border-color:var(--ui-border)}
:root[data-theme] body tbody tr:hover{background:var(--ui-surface-alt)}
:root[data-theme] body #notice:not(:empty){color:var(--ui-text);background:var(--ui-accent-soft);border:1px solid var(--ui-border);border-radius:14px;padding:14px 18px;font-size:13px}
:root[data-theme] body :is(#notice.error,.assistant-result.error){color:var(--ui-danger);background:color-mix(in srgb,var(--ui-danger) 9%,var(--ui-surface));border-color:color-mix(in srgb,var(--ui-danger) 25%,var(--ui-border))}
:root[data-theme] body dialog{background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-border);border-radius:24px;box-shadow:0 24px 100px #0006}
dialog::backdrop{backdrop-filter:blur(5px);background:#071b2580}
:root[data-theme] ::selection{background:var(--ui-accent);color:var(--ui-on-accent)}
/* A calm app shell, with a navigation rail on larger screens. */
:root[data-theme] body:not(.admin-portal)>header{height:82px;display:flex;align-items:center;gap:14px;padding:0 34px;background:var(--ui-surface);border-bottom:1px solid var(--ui-border);position:sticky;top:0;z-index:60}
:root[data-theme] body:not(.admin-portal)>header .brand{font-size:27px;font-weight:750;letter-spacing:-1.2px;display:inline-flex;align-items:center;gap:11px;color:var(--ui-text);white-space:nowrap}
:root[data-theme] body:not(.admin-portal)>header .brand-ball{width:34px;height:34px;flex-shrink:0}
:root[data-theme] body:not(.admin-portal)>header .brand span{display:inline-flex;align-items:center;font-size:8px;line-height:1;margin:0 0 0 6px;letter-spacing:.12em;font-weight:750;color:var(--ui-accent);background:var(--ui-accent-soft);border-radius:6px;padding:6px 7px}
:root[data-theme] body:not(.admin-portal)>header .theme-toggle{margin-left:auto;margin-right:0;border-radius:10px;font-size:11px;padding:10px 13px}
:root[data-theme] body:not(.admin-portal)>header #notification-bell{border-radius:12px;min-width:40px;min-height:40px;padding:9px}
:root[data-theme] body:not(.admin-portal)>header #user-signout{font-size:11px;padding:11px 14px}
body:not(.admin-portal).workspace-open main{max-width:1536px;margin:0 auto;padding:32px 36px 28px 278px}
body:not(.admin-portal).workspace-open .intro{display:none!important}
body:not(.admin-portal).workspace-open .workspace-heading{margin:0 0 28px;align-items:center}
body:not(.admin-portal).workspace-open .workspace-heading h1{font-size:36px;font-weight:700;letter-spacing:-1.4px}
body:not(.admin-portal) .workspace-heading .eyebrow{font-size:9px;letter-spacing:.18em;margin:0 0 8px;color:var(--ui-muted)}
body:not(.admin-portal) .workspace-label{font-size:11px;border:1px solid var(--ui-border);border-radius:20px;padding:8px 13px;background:var(--ui-surface)}
:root[data-theme] body:not(.admin-portal) #section-tabs{position:fixed;top:106px;bottom:26px;left:24px;width:208px;max-height:none;height:auto;display:flex;flex-direction:column;justify-content:flex-start;gap:5px;padding:24px 12px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:22px;margin:0;box-shadow:none;z-index:45}
#section-tabs::before{content:'WORKSPACE';font-size:9px;letter-spacing:.2em;font-weight:750;color:var(--ui-muted);padding:0 16px 19px}
#section-tabs::after{content:'Built for the game.';font-size:10px;line-height:1.6;color:var(--ui-muted);padding:20px 16px 4px;margin-top:auto;border-top:1px solid var(--ui-border)}
:root[data-theme] body:not(.admin-portal) #section-tabs button{flex:0 0 auto;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;height:50px;min-height:50px;padding:12px 16px;border:0;border-radius:12px;font-size:12px;font-weight:600;color:var(--ui-muted);background:transparent;box-shadow:none;position:relative}
:root[data-theme] body:not(.admin-portal) #section-tabs button:hover{background:var(--ui-surface-alt);color:var(--ui-text)}
:root[data-theme] body:not(.admin-portal) #section-tabs button[aria-selected=true]{background:var(--ui-accent-soft);color:var(--ui-accent)}
#section-tabs svg{width:21px;height:21px;stroke-width:1.75}
body:not(.admin-portal) footer{margin-top:36px;padding:22px 2px;font-size:10px}
.footer-quote{font-size:10px;font-weight:400;opacity:.7;text-align:center;margin:12px auto 28px}
/* Sign-in becomes a distinct, composed welcome screen. */
body:not(.admin-portal):not(.workspace-open) main{padding:30px 38px 0;max-width:1280px;margin:auto}
body:not(.admin-portal):not(.workspace-open) .intro{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr);gap:70px;align-items:center;max-width:none;min-height:calc(100dvh - 220px);margin:0 auto 36px}
body:not(.admin-portal):not(.workspace-open) .intro>div{text-align:left;max-width:600px;min-width:0}
body:not(.admin-portal):not(.workspace-open) .intro>div>.eyebrow{display:inline-block;color:var(--ui-accent);letter-spacing:.17em;font-size:10px;margin:0 0 22px;background:var(--ui-accent-soft);padding:8px 12px;border-radius:7px}
body:not(.admin-portal):not(.workspace-open) .intro .access-heading{font-style:normal;font-size:clamp(38px,4.7vw,65px);line-height:1.06;font-weight:750;letter-spacing:-.065em;max-width:600px;margin:0 0 22px}
.access-heading .headline-accent{color:var(--ui-accent)}
body:not(.admin-portal):not(.workspace-open) .intro .lede{display:block;font-size:15px;line-height:1.8;max-width:370px;margin:0}
body:not(.admin-portal):not(.workspace-open) .connection{width:100%;text-align:left;padding:38px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:26px;box-shadow:var(--ui-shadow)}
body:not(.admin-portal):not(.workspace-open) .connection>.dot{display:none}
body:not(.admin-portal):not(.workspace-open) .connection>strong{display:block;font-size:27px;font-weight:700;letter-spacing:-.8px;line-height:1.3}
body:not(.admin-portal):not(.workspace-open) .connection>p:not(.access-eyebrow){font-size:13px;line-height:1.7;margin:10px 0 28px;color:var(--ui-muted)}
body:not(.admin-portal):not(.workspace-open) #login label{font-size:11px;letter-spacing:0;text-transform:none;color:var(--ui-text);margin:18px 0 8px}
body:not(.admin-portal):not(.workspace-open) #login .inline{display:flex;flex-direction:column;align-items:stretch;gap:18px}
body:not(.admin-portal):not(.workspace-open) #login :is(input:not([type=checkbox]),button){font-size:13px;min-height:49px;border-radius:11px}
:root[data-theme] body:not(.admin-portal):not(.workspace-open) #login button{background:var(--ui-accent);color:var(--ui-on-accent);text-align:center;font-weight:650}
body:not(.admin-portal):not(.workspace-open) #login .check{display:flex;align-items:center;font-size:11px;font-weight:400;color:var(--ui-muted);margin:18px 0 0}
body:not(.admin-portal):not(.workspace-open) #login .check input{width:15px;height:15px;min-height:0;margin:0}
body:not(.admin-portal):not(.workspace-open) #create-account{width:100%;min-height:46px;margin-top:24px;font-size:12px;border-radius:11px}
.welcome-art{position:relative;max-width:460px;width:100%;margin-top:34px}
.welcome-art svg{display:block;width:100%;height:auto;overflow:visible}
.welcome-art .art-card{fill:var(--ui-surface);stroke:var(--ui-border)}
.welcome-art .art-soft{fill:var(--ui-accent-soft)}
.welcome-art .art-accent{fill:var(--ui-accent)}
.welcome-art .art-ink{fill:var(--ui-text)}
.welcome-art .art-line{stroke:var(--ui-border);fill:none}
.welcome-art .art-wave{stroke:var(--ui-accent);stroke-width:4;stroke-linecap:round}
.welcome-art-caption{font-size:10px;letter-spacing:.025em;color:var(--ui-muted);margin:4px 0 0 8px;display:flex;gap:16px;align-items:center}
.welcome-art-caption span+span::before{content:'·';margin-right:16px;color:var(--ui-accent)}
/* Empty pages and everyday workspace tools. */
:root[data-theme] .keypad-coming-soon{max-width:680px;min-height:430px;margin:0 auto;padding:65px 40px;text-align:center;background:var(--ui-surface);border:1px solid var(--ui-border);display:flex;flex-direction:column;align-items:center;justify-content:center}
.keypad-coming-soon .eyebrow{background:var(--ui-accent-soft);padding:7px 10px;border-radius:6px;margin:24px 0 12px}
.keypad-coming-soon h2{font-size:38px;letter-spacing:-1.5px;margin:0 0 14px}
.keypad-coming-soon .hint{font-size:13px;max-width:360px;margin:0 auto 24px}
.coming-art{width:86px;height:86px;border-radius:26px;background:var(--ui-accent-soft);display:grid;place-items:center;color:var(--ui-accent);transform:rotate(-5deg)}
.coming-art svg{width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.keypad-coming-soon [data-design-section]{padding:12px 24px;font-size:12px;min-height:44px}
body[data-account-role=admin] .keypad-coming-soon{display:none!important}
body[data-account-role=user] #panel-keypad .dialer-card{display:none!important}
:root[data-theme] .recents-filters{background:var(--ui-surface-alt);border:1px solid var(--ui-border);padding:4px}
:root[data-theme] .recents-filters button{background:transparent;color:var(--ui-muted)}
:root[data-theme] .recents-filters button[aria-pressed=true]{background:var(--ui-surface);color:var(--ui-accent);box-shadow:0 2px 7px #173b4810}
:root[data-theme] :is(.recent-avatar,.conversation-avatar){background:var(--ui-accent-soft);color:var(--ui-accent);border:0}
:root[data-theme] :is(.recent-info,.recent-info:hover){background:var(--ui-surface-alt);color:var(--ui-accent);border-color:var(--ui-border)}
:root[data-theme] .recent-details strong.missed{color:var(--ui-danger)}
:root[data-theme] :is(.recent-row,.recent-calls,.conversation-row){border-color:var(--ui-border)}
#panel-contacts .person{padding:21px 0}.person strong{font-weight:650}.person-actions button{padding:9px 12px;font-size:11px}
:root[data-theme] body .network p{color:var(--ui-muted)}
#panel-settings>.card>h2{font-size:18px;margin:0 0 14px}
#panel-settings .card{padding:26px}
:root[data-theme] .security-center{--security-line:var(--ui-border);background:var(--ui-surface)}
:root[data-theme] :is(.security-protection,.security-session){background:var(--ui-surface-alt);border-color:var(--ui-border)}
.security-help{color:var(--ui-muted);opacity:1}.security-subtitle{color:var(--ui-muted);opacity:1}
.security-indicator{color:var(--ui-accent)}
body[data-account-role=user] #panel-settings :is(.assistant-test,#block-form){display:none!important}
body[data-account-role=user] #panel-settings .metrics{display:none}
body[data-account-role=user] #panel-settings{max-width:960px}
#panel-settings .security-center{padding:0}
#panel-settings details.card>summary{font-size:14px;font-weight:600}
:root[data-theme] #notification-toast{background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-border);box-shadow:var(--ui-shadow);border-radius:16px}
:root[data-theme] :is(.notification-row,.notification-popup){background:var(--ui-surface);border-color:var(--ui-border);color:var(--ui-text)}
@media(min-width:1600px){body:not(.admin-portal).workspace-open main{padding-left:70px;margin-left:232px;max-width:1320px}}
@media(max-width:1100px){body:not(.admin-portal):not(.workspace-open) .intro{gap:36px}body:not(.admin-portal):not(.workspace-open) .connection{padding:30px}body:not(.admin-portal).workspace-open main{padding-right:24px;padding-left:258px}}
@media(max-width:960px){:root[data-theme] body:not(.admin-portal)>header{height:72px;padding:0 22px}body:not(.admin-portal).workspace-open main{padding:28px 22px 116px;max-width:1100px}body:not(.admin-portal).workspace-open .workspace-heading h1{font-size:31px}body:not(.admin-portal).workspace-open .workspace-heading{margin-bottom:24px}
 :root[data-theme] body:not(.admin-portal) #section-tabs{position:fixed;top:auto;left:18px;right:18px;bottom:max(14px,env(safe-area-inset-bottom));width:auto;height:70px;max-height:70px;min-height:0;flex-direction:row;align-items:center;gap:3px;padding:7px;border-radius:22px;box-shadow:0 6px 30px #102f4020}
 #section-tabs::before,#section-tabs::after{display:none}
 :root[data-theme] body:not(.admin-portal) #section-tabs button{flex:1;height:54px;min-height:0;min-width:0;flex-direction:column;justify-content:center;gap:5px;padding:7px 2px;font-size:10px;border-radius:15px}#section-tabs svg{width:21px;height:21px}
 body:not(.admin-portal):not(.workspace-open) main{padding:35px 26px 0}body:not(.admin-portal):not(.workspace-open) .intro{grid-template-columns:1fr 1fr;gap:30px;min-height:calc(100dvh - 210px)}body:not(.admin-portal):not(.workspace-open) .intro .access-heading{font-size:43px}.welcome-art{margin-top:24px}}
@media(max-width:700px){body:not(.admin-portal):not(.workspace-open) main{padding:28px 20px 0}body:not(.admin-portal):not(.workspace-open) .intro{display:flex;flex-direction:column;gap:30px;max-width:470px;min-height:0;margin-bottom:30px}body:not(.admin-portal):not(.workspace-open) .intro>div{width:100%}body:not(.admin-portal):not(.workspace-open) .intro>div>.eyebrow{font-size:8px;margin-bottom:16px}body:not(.admin-portal):not(.workspace-open) .intro .access-heading{font-size:42px;line-height:1.08;max-width:370px;margin-bottom:14px}body:not(.admin-portal):not(.workspace-open) .intro .lede{font-size:12px;max-width:330px}.welcome-art{display:none}body:not(.admin-portal):not(.workspace-open) .connection{padding:26px;border-radius:22px}body:not(.admin-portal):not(.workspace-open) .connection>strong{font-size:24px}body:not(.admin-portal):not(.workspace-open) .connection>p:not(.access-eyebrow){font-size:12px;margin-bottom:22px}body:not(.admin-portal):not(.workspace-open) #create-account{margin-top:20px}.welcome-art-caption{display:none}}
@media(max-width:600px){:root[data-theme] body:not(.admin-portal)>header{height:66px;padding:0 15px;gap:7px}:root[data-theme] body:not(.admin-portal)>header .brand{font-size:23px;gap:8px;flex:1;min-width:0;letter-spacing:-1px}:root[data-theme] body:not(.admin-portal)>header .brand-ball{width:27px;height:27px}:root[data-theme] body:not(.admin-portal)>header .brand span{font-size:7px;padding:5px;margin-left:0;letter-spacing:.06em}:root[data-theme] body:not(.admin-portal)>header .theme-toggle{font-size:9px;padding:9px 8px;margin-left:auto}:root[data-theme] body:not(.admin-portal)>header #notification-bell{min-height:34px;min-width:32px;padding:7px}:root[data-theme] body:not(.admin-portal)>header #user-signout{font-size:9px;padding:9px 8px}
 body:not(.admin-portal).workspace-open main{padding:23px 16px 112px}body:not(.admin-portal).workspace-open .workspace-heading{margin:0 0 22px}body:not(.admin-portal).workspace-open .workspace-heading h1{font-size:30px;letter-spacing:-1.1px}.workspace-heading .eyebrow{display:none}.workspace-label{display:none}
 :root[data-theme] body:not(.admin-portal) #section-tabs{left:10px;right:10px;height:68px;max-height:68px;bottom:max(10px,env(safe-area-inset-bottom));padding:6px;border-radius:20px}#section-tabs svg{width:20px;height:20px}:root[data-theme] body:not(.admin-portal) #section-tabs button{height:54px;font-size:9px;gap:4px}
 .card{padding:23px}.section-title h2{font-size:20px}.keypad-coming-soon h2{font-size:32px}:root[data-theme] .keypad-coming-soon{min-height:390px;padding:42px 25px;margin:0 auto}.coming-art{width:74px;height:74px;border-radius:23px}.keypad-coming-soon .hint{font-size:12px}#panel-settings .card{padding:22px}#panel-settings .security-center{padding:0}.person{align-items:flex-start}.person-actions{flex-wrap:wrap}.person-actions button{font-size:10px}.recent-row{gap:12px}.recent-side{gap:8px}.recent-side time{font-size:10px}.metrics{gap:9px}.metrics article{padding:17px}.metrics strong{font-size:26px}.footer-quote{font-size:9px}body:not(.admin-portal) footer{gap:16px;font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
[hidden]{display:none!important}
