/* HYPhone V16 Blackhole Chroma — one canonical, self-contained visual system.
   Matched to hyMail V16 tokens, liquid-glass fields, luminous one-pixel chroma edges
   and breathing accents. All functional IDs and API behavior are unchanged. */
@property --hp-angle{syntax:"<angle>";inherits:true;initial-value:0deg}
:root{color-scheme:dark}
html,body{min-width:0;min-height:100%;margin:0;background:#010205;color:#f6f9ff;font:400 14px/1.45 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*,*::before,*::after{box-sizing:border-box}
body:has(.hp-app){background:#010205;overflow-x:hidden}
.hp-app{--bg:#010205;--panel:#080e1c;--panel2:#030813;--text:#f6f9ff;--muted:#91a1bd;--line:rgba(91,132,190,.27);--accent:#35eaff;--blue:#438fff;--violet:#a657ff;--pink:#ff3fc8;--bad:#ff6688;--good:#35efb0;--warn:#ffd45f;--edge:conic-gradient(from var(--hp-angle),#ff315f,#ff34dd,#a83cff,#5f54ff,#248dff,#22dfff,#20edbd,#83f16d,#ecf35f,#ffb84b,#ff315f);position:relative;isolation:isolate;max-width:1240px;min-height:100dvh;margin:auto;color:var(--text);background:radial-gradient(670px 380px at 8% 0%,rgba(34,106,255,.14),transparent 66%),radial-gradient(720px 420px at 96% 15%,rgba(178,37,255,.10),transparent 64%),var(--bg);font:400 14px/1.45 Inter,ui-sans-serif,system-ui,sans-serif;overflow-x:clip}
.hp-app::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;background-image:linear-gradient(rgba(255,255,255,.014) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.014) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,#000,transparent 90%)}
.hp-app button,.hp-app input,.hp-app textarea,.hp-app select{font:inherit}
.hp-app button{cursor:pointer}
.hp-app :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.hp-app button:disabled{opacity:.42;cursor:not-allowed}
.hp-app [hidden]{display:none!important}
@keyframes hp-edge-spin{to{--hp-angle:360deg}}
@keyframes hp-chroma-breathe{0%,100%{opacity:.42;filter:brightness(.92)}50%{opacity:.94;filter:brightness(1.24)}}
@keyframes hp-soft-glow{0%,100%{box-shadow:0 0 12px rgba(53,234,255,.13),0 0 18px rgba(166,87,255,.08)}50%{box-shadow:0 0 22px rgba(53,234,255,.28),0 0 32px rgba(166,87,255,.20)}}
@keyframes hp-appear{from{opacity:.6;transform:translateY(7px)}to{opacity:1;transform:none}}
/* Persistent compact header */
.hp-header{position:sticky;top:0;z-index:35;display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:75px;padding:11px 22px;border-bottom:1px solid var(--line);border-radius:0 0 18px 18px;background:rgba(1,3,8,.9);backdrop-filter:blur(26px) saturate(170%);box-shadow:0 14px 38px rgba(0,0,0,.24)}
.hp-header::after{content:"";position:absolute;bottom:0;left:7%;right:7%;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,var(--accent),var(--violet),var(--pink),transparent);animation:hp-chroma-breathe 5s ease-in-out infinite}
.hp-brand{display:flex;align-items:center;gap:12px;min-width:0;flex:0 1 auto}
.hp-brand>div{min-width:0}
.hp-brand-mark{position:relative;display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;color:#041925;border-radius:14px;background:linear-gradient(125deg,#56f9f3,#6e9bff 65%,#b273ed);box-shadow:0 0 17px rgba(53,234,255,.34),inset 0 1px rgba(255,255,255,.6)}
.hp-brand-mark svg{width:22px;height:22px}
.hp-brand-eyebrow{display:block;color:var(--accent);font-size:9px;font-weight:900;letter-spacing:.22em;line-height:1.25}
.hp-brand-plus{color:var(--pink)}
.hp-brand strong{display:block;min-width:0;font-size:17px;line-height:1.2;font-weight:900;letter-spacing:-.025em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hp-brand small{display:block;color:var(--muted);font-size:10px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-head-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:7px;min-width:0}
.hp-head-actions select,.hp-top-btn,.hp-menu summary,.hp-icon-btn{height:40px;min-height:40px;padding:8px 10px;color:var(--text);background:rgba(10,20,40,.87);border:1px solid var(--line);border-radius:12px;font-size:12px;font-weight:750}
.hp-head-actions select{max-width:225px;min-width:0;overflow:hidden;text-overflow:ellipsis}
.hp-pill{display:inline-flex;align-items:center;min-height:32px;padding:5px 9px;border:1px solid var(--line);border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap;background:rgba(7,15,30,.78)}
.hp-pill.good{color:var(--good);border-color:rgba(53,239,176,.3);background:rgba(53,239,176,.07)}
.hp-pill.warn{color:var(--warn);border-color:rgba(255,212,95,.3);background:rgba(255,212,95,.065)}
.hp-pill.bad{color:var(--bad)}
.hp-icon-btn{display:grid;place-items:center;flex:0 0 40px;width:40px;padding:0;color:var(--accent)}
.hp-power-icon{font-size:23px;line-height:1}
.hp-online #hp-enable{color:var(--good);border-color:rgba(53,239,176,.42);background:rgba(53,239,176,.09)}
.hp-menu{position:relative;min-width:0}
.hp-menu summary{display:grid;place-items:center;list-style:none;white-space:nowrap;cursor:pointer}
.hp-menu summary::-webkit-details-marker{display:none}
.hp-menu-items{position:absolute;z-index:100;top:calc(100% + 8px);right:0;left:auto;display:grid;gap:3px;min-width:190px;max-width:min(250px,calc(100vw - 24px));max-height:min(70dvh,440px);padding:9px;overflow:auto;border:1px solid rgba(72,154,221,.42);border-radius:16px;background:rgba(5,12,26,.98);box-shadow:0 22px 65px rgba(0,0,0,.6);backdrop-filter:blur(24px)}
.hp-menu[open]{z-index:75}
.hp-menu-items a{display:block;padding:10px;border-radius:9px;color:var(--text);text-decoration:none;overflow-wrap:anywhere}
.hp-menu-items a:hover,.hp-menu-items a:focus-visible{background:rgba(53,234,255,.1);color:var(--accent)}
.hp-menu-title{padding:8px;color:var(--accent);font-size:12px;font-weight:800;border-bottom:1px solid var(--line)}
/* Main layout and liquid glass components */
.hp-main{padding:23px clamp(14px,3vw,34px) calc(132px + env(safe-area-inset-bottom));min-width:0}
.hp-view{display:none}
.hp-view.active{display:block;animation:hp-appear .25s ease both}
.hp-view-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}
.hp-eyebrow{color:#83b9d6;font-size:10px;font-weight:850;letter-spacing:.17em}
.hp-spark,.hp-title-period{color:var(--accent)}
.hp-view-intro h1{margin:4px 0 4px;color:var(--text);font-size:clamp(29px,3.8vw,42px);line-height:1.15;font-weight:900;letter-spacing:-.05em}
.hp-view-intro p{margin:0;color:var(--muted);font-size:12px}
.hp-intro-accent{display:flex;align-items:center;gap:6px;margin-right:22px}
.hp-intro-accent span{display:block;width:5px;height:14px;border-radius:99px;background:linear-gradient(var(--pink),var(--accent));animation:hp-chroma-breathe 3.5s ease-in-out infinite}
.hp-intro-accent span:nth-child(2),.hp-intro-accent span:nth-child(6){height:27px}
.hp-intro-accent span:nth-child(3),.hp-intro-accent span:nth-child(5){height:38px}
.hp-intro-accent span:nth-child(4){height:51px}
.hp-dial-stage{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:18px;align-items:start}
.hp-dial-workspace{position:relative;display:flex;flex-direction:column;min-width:0;gap:10px;padding:21px;border:1px solid transparent;border-radius:24px;background:linear-gradient(145deg,rgba(8,14,28,.98),rgba(1,3,8,.98)) padding-box,var(--edge) border-box;box-shadow:0 24px 60px rgba(0,0,0,.32),inset 0 1px rgba(255,255,255,.075)}
.hp-contact-card,.hp-call-status,.hp-compose,.hp-list,.hp-vm-panel,.hp-guide-card{position:relative;min-width:0;border:1px solid transparent;border-radius:18px;background:linear-gradient(145deg,rgba(8,14,28,.96),rgba(1,3,8,.96)) padding-box,var(--edge) border-box;box-shadow:0 15px 40px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.06)}
.hp-contact-card{padding:14px;margin:0}
.hp-contact-card label,.hp-compose label{display:block;margin:0 0 8px;color:var(--accent);font-size:10px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
.hp-contact-card input,.hp-compose input,.hp-compose textarea,.hp-dial-row input{display:block;width:100%;min-width:0;min-height:44px;padding:11px 13px;color:var(--text);background:rgba(1,5,13,.78);border:1px solid var(--line);border-radius:12px;outline:0}
.hp-contact-card input:focus,.hp-compose input:focus,.hp-compose textarea:focus,.hp-dial-row input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(53,234,255,.11),0 0 20px rgba(53,234,255,.11)}
.hp-contact-card input::placeholder,.hp-dial-row input::placeholder,.hp-compose input::placeholder,.hp-compose textarea::placeholder{color:var(--muted)}
.hp-selected{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:10px}
.hp-selected strong{color:var(--accent)}
.hp-selected span{color:var(--muted)}
.hp-call-status{display:grid;place-items:center;gap:5px;margin:0;padding:13px 10px;text-align:center;background:radial-gradient(260px 150px at 50% 0%,rgba(53,234,255,.09),transparent),rgba(4,11,24,.83);border-color:rgba(80,141,204,.28);box-shadow:none}
.hp-call-status-orb{position:relative;display:grid;place-items:center;width:66px;height:66px;margin-bottom:4px;border:1px solid rgba(53,234,255,.35);border-radius:50%;color:var(--accent);background:radial-gradient(circle at 36% 25%,rgba(53,234,255,.25),rgba(10,28,52,.84) 69%);box-shadow:0 0 22px rgba(53,234,255,.12)}
.hp-call-status-orb svg{width:27px;height:27px}
.hp-orb-ring{position:absolute;inset:-5px;border:1px dashed rgba(53,234,255,.25);border-radius:50%}
.hp-call-status>span{color:var(--accent);font-size:10px;font-weight:850;letter-spacing:.15em;text-transform:uppercase}
.hp-call-status strong{font-size:23px;font-weight:900;line-height:1.25;overflow-wrap:anywhere}
.hp-signal-bars{display:flex;align-items:center;gap:3px;height:12px}
.hp-signal-bars i{display:block;width:3px;height:6px;border-radius:4px;background:var(--accent);opacity:.65}
.hp-signal-bars i:nth-child(2),.hp-signal-bars i:nth-child(4){height:10px}
.hp-signal-bars i:nth-child(3){height:12px}
.hp-in-call .hp-call-status{border-color:rgba(53,239,176,.5);box-shadow:0 0 25px rgba(53,239,176,.12)}
.hp-in-call .hp-call-status-orb{color:var(--good);border-color:var(--good);animation:hp-soft-glow 2.7s ease-in-out infinite}
.hp-in-call .hp-signal-bars i{animation:hp-chroma-breathe 1.1s ease-in-out infinite}
.hp-dial-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin:0}
.hp-dial-row input{font-size:15px;text-align:center;font-variant-numeric:tabular-nums}
.hp-primary,.hp-secondary,.hp-danger,.hp-tools button,.hp-list button,#hp-refresh{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:10px 13px;border-radius:12px;font-weight:800;border:1px solid var(--line);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.hp-primary{color:#03131e;background:linear-gradient(105deg,#35eaff,#629aff);border-color:rgba(53,234,255,.54);box-shadow:0 8px 22px rgba(53,234,255,.17)}
.hp-primary svg{width:17px;height:17px}
.hp-secondary,.hp-tools button,.hp-list button,#hp-refresh{color:var(--text);background:rgba(12,22,41,.9)}
.hp-danger{color:#fff;background:linear-gradient(105deg,#91304e,#ce426b);border-color:rgba(255,102,136,.48)}
.hp-app button:not(:disabled):hover{border-color:var(--accent);box-shadow:0 0 18px rgba(53,234,255,.18)}
.hp-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;width:min(100%,350px);margin:2px auto 0}
.hp-keypad button{height:56px;min-width:0;border:1px solid var(--line);border-radius:15px;color:var(--text);background:linear-gradient(135deg,rgba(17,30,52,.95),rgba(5,13,27,.96));font-size:22px;font-weight:800;box-shadow:inset 0 1px rgba(255,255,255,.06)}
.hp-keypad button:active{transform:scale(.96);border-color:var(--accent)}
.hp-call-actions,.hp-tools{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin:0}
.hp-call-actions button{flex:1 1 90px}
.hp-tools button{min-height:38px;padding:8px 11px;font-size:11px}
.hp-dial-aside{display:grid;gap:14px;min-width:0}
.hp-guide-card{padding:19px}
.hp-guide-primary{min-height:210px;background:radial-gradient(230px 150px at 100% 0%,rgba(166,87,255,.16),transparent),rgba(8,14,28,.95)}
.hp-guide-tag{font-size:10px;font-weight:900;letter-spacing:.15em;color:var(--accent)}
.hp-guide-card h2{margin:51px 0 6px;font-size:24px;line-height:1.1;letter-spacing:-.04em}
.hp-guide-card h2 em{font-style:normal;color:var(--violet)}
.hp-guide-card p,.hp-guide-tip small{color:var(--muted);font-size:11px;line-height:1.5}
.hp-guide-art{position:absolute;top:12px;right:20px;color:var(--accent);font-size:35px}
.hp-guide-orbit{display:none}
.hp-guide-tip{display:flex;align-items:flex-start;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.hp-guide-tip:last-child{border:0}
.hp-guide-index{color:var(--accent);font-size:10px}
.hp-guide-tip strong{display:block;font-size:12px}
.hp-guide-tip small{display:block}
.hp-banner{margin:10px 14px;padding:12px;border:1px solid rgba(255,102,136,.45);border-radius:12px;background:rgba(133,20,53,.16);color:#ffcedb}
/* Fixed bottom navigation */
.hp-nav{position:fixed;z-index:45;top:auto;bottom:calc(12px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:min(660px,calc(100vw - 24px));margin:0;padding:7px;border:1px solid var(--line);border-radius:20px;background:rgba(2,6,15,.96);box-shadow:0 15px 45px rgba(0,0,0,.56);backdrop-filter:blur(24px)}
.hp-nav button{min-width:0;min-height:54px;border:1px solid transparent;border-radius:13px;background:transparent;color:var(--muted);font-size:11px;font-weight:750}
.hp-nav button span{display:grid;place-items:center;margin:0 auto 2px;pointer-events:none}
.hp-nav button svg{width:20px;height:20px}
.hp-nav button.active{color:var(--accent);border-color:rgba(53,234,255,.4);background:linear-gradient(110deg,rgba(53,234,255,.13),rgba(166,87,255,.12));box-shadow:inset 0 1px rgba(255,255,255,.1)}
/* SMS, history and voicemail share the same V16 surfaces */
.hp-compose{display:grid;gap:8px;padding:18px;margin-bottom:14px}
.hp-compose textarea{min-height:130px;resize:vertical}
.hp-compose-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.hp-compose-foot span{color:var(--muted)}
.hp-list{min-height:90px;overflow:hidden;margin:0}
.hp-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}
.hp-row{padding:13px;border-bottom:1px solid var(--line)}
.hp-row:last-child{border:0}
.hp-row-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.hp-row small,.hp-muted{color:var(--muted)}
.hp-row p{margin:6px 0;white-space:pre-wrap}
.hp-row-actions{display:flex;gap:7px;margin-top:8px}
.hp-row-actions button{min-height:35px;padding:7px 10px}
.hp-vm-bar{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:10px 0 14px;color:var(--muted);flex-wrap:wrap}
.hp-vm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hp-vm-panel{min-height:155px;padding:17px}
.hp-vm-panel h2{margin:0 0 10px;font-size:17px;color:var(--accent)}
.hp-vm-panel>div{color:var(--muted);line-height:1.6}
.hp-vm-items{display:grid;gap:8px;margin-top:10px}
.hp-vm-entry{border:1px solid var(--line);border-radius:11px;padding:10px;background:var(--panel2)}
.hp-vm-entry strong{display:block;color:var(--text)}
.hp-vm-entry small{color:var(--muted)}
.hp-vm-foot{margin:14px 0;padding:13px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:12px}
/* True breathing chroma: subtle rotating one-pixel edge, never a rainbow fill. */
.hp-app .hp-dial-workspace::before,.hp-app .hp-contact-card::before,.hp-app .hp-compose::before,.hp-app .hp-vm-panel::before{content:"";position:absolute;inset:-1px;z-index:-1;border-radius:inherit;padding:1px;background:var(--edge);pointer-events:none;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.55;animation:hp-edge-spin 14s linear infinite,hp-chroma-breathe 5s ease-in-out infinite}
.hp-app .hp-dial-workspace,.hp-app .hp-contact-card,.hp-app .hp-compose,.hp-app .hp-vm-panel{isolation:isolate}
/* Light mode is a full palette, not a dark glass surface on a white canvas. */
html[data-hp-theme=light]{color-scheme:light}
html[data-hp-theme=light] body:has(.hp-app){background:#eef5fd;color:#142a45}
html[data-hp-theme=light] .hp-app{--bg:#eef5fd;--panel:#fff;--panel2:#f4f8fe;--text:#142a45;--muted:#51647c;--line:rgba(70,110,163,.26);--accent:#0075a4;--blue:#367eda;--violet:#784ab2;--pink:#af3f9b;--good:#087d59;--warn:#95620b;background:radial-gradient(600px 350px at 0% 0%,#daeaff,transparent),#eef5fd;color:var(--text)}
html[data-hp-theme=light] .hp-header{background:rgba(250,253,255,.96);box-shadow:0 10px 35px rgba(42,85,137,.1)}
html[data-hp-theme=light] .hp-head-actions select,html[data-hp-theme=light] .hp-top-btn,html[data-hp-theme=light] .hp-icon-btn,html[data-hp-theme=light] .hp-menu summary{color:var(--text);background:#fff}
html[data-hp-theme=light] .hp-menu-items{background:#fff;box-shadow:0 18px 40px rgba(32,77,131,.2)}
html[data-hp-theme=light] .hp-menu-items a{color:var(--text)}
html[data-hp-theme=light] .hp-pill{background:#f5f9ff;color:var(--text)}
html[data-hp-theme=light] .hp-pill.good{background:#e4f8ef;color:#08704f}
html[data-hp-theme=light] .hp-pill.warn{background:#fff4dc;color:#95620b}
html[data-hp-theme=light] .hp-dial-workspace,html[data-hp-theme=light] .hp-contact-card,html[data-hp-theme=light] .hp-call-status,html[data-hp-theme=light] .hp-compose,html[data-hp-theme=light] .hp-list,html[data-hp-theme=light] .hp-vm-panel,html[data-hp-theme=light] .hp-guide-card{background:linear-gradient(145deg,#fff,#f5f9ff) padding-box,var(--edge) border-box;box-shadow:0 12px 36px rgba(45,82,137,.09)}
html[data-hp-theme=light] .hp-contact-card input,html[data-hp-theme=light] .hp-compose input,html[data-hp-theme=light] .hp-compose textarea,html[data-hp-theme=light] .hp-dial-row input{color:var(--text);background:#fff}
html[data-hp-theme=light] .hp-keypad button{color:var(--text);background:linear-gradient(135deg,#fff,#eaf3fc);box-shadow:0 4px 13px rgba(45,82,137,.08)}
html[data-hp-theme=light] .hp-secondary,html[data-hp-theme=light] .hp-tools button,html[data-hp-theme=light] .hp-list button,html[data-hp-theme=light] #hp-refresh{color:var(--text);background:#fff}
html[data-hp-theme=light] .hp-nav{background:rgba(255,255,255,.97);box-shadow:0 13px 40px rgba(45,82,137,.15)}
html[data-hp-theme=light] .hp-nav button.active{color:#006e9e;background:linear-gradient(105deg,#e1faff,#edefff)}
html[data-hp-theme=light] .hp-brand-eyebrow{color:#316e9b}
html[data-hp-theme=light] .hp-vm-entry{background:#fff}
/* Responsive size system, designed around call usability rather than stacked banners. */
@media(max-width:940px){.hp-dial-stage{grid-template-columns:1fr}.hp-dial-aside{display:none}.hp-main{max-width:770px;width:100%;margin:0 auto}}
@media(max-width:767px){
 .hp-header{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:47px auto;column-gap:7px;row-gap:4px;min-height:0;padding:8px 12px 9px;border-radius:0 0 15px 15px}
 .hp-brand{grid-area:1/1/2/3;align-self:center;gap:9px}
 .hp-brand-mark{width:38px;height:38px;flex-basis:38px;border-radius:12px}
 .hp-brand-mark svg{width:18px;height:18px}
 .hp-brand strong{font-size:15px}
 .hp-brand small{font-size:10px}
 .hp-head-actions{grid-area:2/1/3/3;display:grid;grid-template-columns:minmax(0,1fr) max-content 38px 38px 38px;grid-template-rows:38px;gap:5px;width:100%;min-width:0;justify-content:stretch}
 .hp-head-actions select{grid-area:1/1;max-width:none;width:100%;min-width:0;height:38px;min-height:38px;font-size:11px;padding:7px}
 .hp-head-actions #hp-my-extension{display:none}
 .hp-head-actions #hp-reg{grid-area:1/2;max-width:110px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
 .hp-head-actions #hp-enable{grid-area:1/3;width:38px;height:38px;min-height:38px}
 .hp-head-actions #hp-theme{grid-area:1/4;width:38px;min-height:38px;padding:0;display:grid;place-items:center}
 .hp-head-actions .hp-menu:not(.hp-profile){grid-area:1/5;justify-self:end}
 .hp-head-actions .hp-menu:not(.hp-profile) summary{width:38px;min-height:38px;padding:0;font-size:0}
 .hp-head-actions .hp-menu:not(.hp-profile) summary::before{content:"▦";font-size:19px;line-height:1;color:var(--accent)}
 .hp-head-actions .hp-profile{grid-area:1/5;justify-self:end;display:none}
 .hp-head-actions .hp-profile .hp-menu-items{display:none}
 .hp-head-actions .hp-menu-items{position:fixed;right:12px;left:auto;top:96px;width:min(236px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
 .hp-main{padding:12px 10px calc(113px + env(safe-area-inset-bottom))}
 .hp-view-intro{display:none}
 .hp-view:not([data-hp-view=dial]) .hp-view-intro{display:block;margin-bottom:12px}
 .hp-view:not([data-hp-view=dial]) .hp-view-intro h1{font-size:26px;margin:2px 0}
 .hp-view:not([data-hp-view=dial]) .hp-eyebrow{font-size:9px}
 .hp-dial-workspace{gap:7px;padding:10px;border-radius:19px}
 .hp-contact-card{padding:9px;border-radius:13px}
 .hp-contact-card label{font-size:9px;margin-bottom:5px}
 .hp-contact-card input{min-height:40px;padding:8px 11px;font-size:13px}
 .hp-call-status{display:flex;align-items:center;justify-content:center;gap:10px;min-height:42px;padding:5px 8px;border-radius:13px}
 .hp-call-status-orb{width:37px;height:37px;flex:0 0 37px;margin:0}
 .hp-call-status-orb svg{width:17px;height:17px}
 .hp-orb-ring,.hp-signal-bars{display:none}
 .hp-call-status>span{display:none}
 .hp-call-status strong{font-size:14px;line-height:1.25}
 .hp-dial-row{gap:6px}
 .hp-dial-row input{min-height:42px;padding:9px;font-size:14px}
 .hp-dial-row .hp-primary{min-height:42px;min-width:77px;padding:8px 11px}
 .hp-keypad{width:min(100%,350px);gap:6px;margin:0 auto}
 .hp-keypad button{height:50px;border-radius:13px;font-size:20px}
 .hp-call-actions{gap:6px}
 .hp-call-actions button{min-height:40px;flex:1 1 75px;padding:7px;font-size:11px}
 .hp-tools{gap:5px}
 .hp-tools button{flex:1 1 92px;min-height:35px;padding:7px 9px;font-size:10px}
 .hp-nav{bottom:calc(7px + env(safe-area-inset-bottom));width:calc(100vw - 18px);gap:3px;padding:5px;border-radius:17px}
 .hp-nav button{min-height:54px;font-size:10px;padding:7px 2px}
 .hp-nav button svg{width:19px;height:19px}
 .hp-vm-grid{grid-template-columns:1fr}
}
@media(max-width:410px){
 .hp-head-actions{grid-template-columns:minmax(0,1fr) 38px 38px 38px}
 .hp-head-actions #hp-reg{display:none}
 .hp-head-actions #hp-enable{grid-area:1/2}
 .hp-head-actions #hp-theme{grid-area:1/3}
 .hp-head-actions .hp-menu:not(.hp-profile){grid-area:1/4}
}
@media(min-width:768px) and (max-width:1023px){
 .hp-header{flex-wrap:wrap;gap:8px}
 .hp-head-actions{flex:1 1 100%;justify-content:flex-end}
}
@media(max-width:767px){.hp-app .hp-menu .hp-menu-items{max-height:65dvh}}
@media(prefers-reduced-motion:reduce){.hp-app *,.hp-app *::before,.hp-app *::after{animation:none!important;transition:none!important}}

/* Mobile command layout: two compact rows with profile kept accessible. */
@media(max-width:767px){
 .hp-header{grid-template-rows:42px 36px 36px;row-gap:2px;padding:6px 10px 8px;overflow:visible}
 .hp-brand{grid-area:1/1/2/3}
 .hp-brand-mark{width:34px;height:34px;flex-basis:34px;border-radius:11px}
 .hp-brand-eyebrow{font-size:8px}
 .hp-brand strong{font-size:15px}
 .hp-brand small{font-size:9px}
 .hp-head-actions{grid-area:2/1/4/3;display:grid;grid-template-columns:minmax(0,1fr) auto 38px;grid-template-rows:36px 36px;column-gap:6px;row-gap:2px;align-items:center}
 .hp-head-actions #hp-line-select{grid-area:1/1;width:100%;height:36px;min-height:36px;max-width:none}
 .hp-head-actions #hp-reg{grid-area:1/2;display:inline-flex;max-width:123px;min-height:29px;font-size:9px}
 .hp-head-actions #hp-enable{grid-area:1/3;width:36px;height:36px;min-height:36px}
 .hp-head-actions #hp-theme{grid-area:2/1;justify-self:start;width:36px;height:36px;min-height:36px;display:grid;place-items:center}
 .hp-head-actions > .hp-menu:not(.hp-profile){grid-area:2/2;display:block;justify-self:end}
 .hp-head-actions > .hp-profile{grid-area:2/3;display:block;justify-self:end}
 .hp-head-actions .hp-menu:not(.hp-profile) summary{width:auto;max-width:110px;height:35px;min-height:35px;padding:7px 10px;font-size:11px}
 .hp-head-actions .hp-menu:not(.hp-profile) summary::before{content:none}
 .hp-head-actions .hp-profile summary{height:35px;min-height:35px;min-width:36px;max-width:115px;font-size:10px;padding:7px 9px}
 .hp-head-actions .hp-menu-items{position:absolute;top:calc(100% + 6px);right:0;left:auto;max-width:min(230px,calc(100vw - 22px));width:max-content;min-width:190px;max-height:min(60dvh,430px)}
 .hp-head-actions .hp-profile .hp-menu-items{display:grid}
 .hp-app .hp-main{padding-top:9px}
 .hp-app .hp-dial-workspace{gap:6px}
}
@media(max-width:410px){
 .hp-head-actions{grid-template-columns:minmax(0,1fr) auto 36px}
 .hp-head-actions #hp-reg{grid-area:1/2;display:inline-flex;max-width:89px;font-size:9px;overflow:hidden;text-overflow:ellipsis}
 .hp-head-actions #hp-enable{grid-area:1/3}
 .hp-head-actions #hp-theme{grid-area:2/1}
 .hp-head-actions > .hp-menu:not(.hp-profile){grid-area:2/2}
 .hp-head-actions > .hp-profile{grid-area:2/3}
}
@media(max-width:340px){.hp-head-actions #hp-reg{max-width:67px}.hp-head-actions .hp-menu:not(.hp-profile) summary{max-width:90px;padding:7px}}
/* Match hyMail's 1px chroma glass and breathing cyan-violet energy. */
.hp-app .hp-dial-workspace,.hp-app .hp-contact-card,.hp-app .hp-compose,.hp-app .hp-vm-panel,.hp-app .hp-guide-card{animation:hp-edge-spin 13s linear infinite,hp-panel-breathe 5.4s ease-in-out infinite}
@keyframes hp-panel-breathe{0%,100%{box-shadow:0 15px 38px rgba(0,0,0,.28),0 0 9px rgba(53,234,255,.07),0 0 14px rgba(166,87,255,.06)}50%{box-shadow:0 15px 40px rgba(0,0,0,.28),0 0 20px rgba(53,234,255,.17),0 0 28px rgba(166,87,255,.12)}}
.hp-app .hp-contact-card:before,.hp-app .hp-dial-workspace:before{opacity:.62;animation:hp-chroma-breathe 4.8s ease-in-out infinite}
.hp-app .hp-brand-mark{animation:hp-mark-breathe 4.2s ease-in-out infinite}
@keyframes hp-mark-breathe{0%,100%{box-shadow:0 0 13px rgba(53,234,255,.26),0 0 14px rgba(166,87,255,.10)}50%{box-shadow:0 0 21px rgba(53,234,255,.43),0 0 28px rgba(166,87,255,.24)}}
html[data-hp-theme=light] .hp-app .hp-dial-workspace,html[data-hp-theme=light] .hp-app .hp-contact-card,html[data-hp-theme=light] .hp-app .hp-compose,html[data-hp-theme=light] .hp-app .hp-vm-panel{animation:hp-edge-spin 13s linear infinite}
html[data-hp-theme=light] .hc-autocomplete{background:#fff;color:#142a45;border-color:rgba(70,110,163,.36)}
html[data-hp-theme=light] .hc-contact-address{color:#425878}
html[data-hp-theme=light] .hc-autocomplete-option[aria-selected=true]{background:#e4f3fc}
@media(prefers-reduced-motion:reduce){.hp-app .hp-dial-workspace,.hp-app .hp-contact-card,.hp-app .hp-compose,.hp-app .hp-vm-panel,.hp-app .hp-guide-card,.hp-app .hp-brand-mark{animation:none!important}}
/* Responsive header accepts dynamically hidden selectors and text-changing power labels. */
.hp-app #hp-enable{font-size:0!important;overflow:hidden;white-space:nowrap;position:relative;flex:0 0 38px}
.hp-app #hp-enable::before{content:"⏻";display:block;font:700 23px/1 system-ui,sans-serif;color:inherit}
.hp-app #hp-enable .hp-power-icon{display:none}
@media(max-width:767px){
 .hp-app .hp-header{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:7px 10px 10px}
 .hp-app .hp-brand{width:100%;max-width:100%;flex:0 0 auto}
 .hp-app .hp-head-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:5px;width:100%;max-width:100%}
 .hp-app .hp-head-actions #hp-line-select{flex:1 1 140px;max-width:100%;min-width:0;width:auto;height:37px}
 .hp-app .hp-head-actions #hp-line-select[hidden]{display:none}
 .hp-app .hp-head-actions #hp-reg{display:inline-flex;flex:0 1 auto;max-width:140px;min-width:0;min-height:32px;padding:5px 8px;overflow:hidden;text-overflow:ellipsis;font-size:10px}
 .hp-app .hp-head-actions #hp-enable{height:38px;min-height:38px;width:38px}
 .hp-app .hp-head-actions #hp-theme{display:grid;flex:0 0 38px;width:38px;height:38px;min-height:38px;place-items:center;padding:0}
 .hp-app .hp-head-actions .hp-menu:not(.hp-profile),.hp-app .hp-head-actions .hp-profile{display:block;flex:0 0 auto;justify-self:auto}
 .hp-app .hp-head-actions .hp-menu:not(.hp-profile) summary{display:grid;place-items:center;min-height:38px;height:38px;max-width:none;padding:8px 11px;font-size:11px}
 .hp-app .hp-head-actions .hp-menu:not(.hp-profile) summary::before{display:none}
 .hp-app .hp-head-actions .hp-profile summary{min-height:38px;height:38px;min-width:0;max-width:128px;padding:8px 11px;font-size:11px}
 .hp-app .hp-head-actions .hp-menu-items{position:absolute;top:calc(100% + 7px);right:0;left:auto;min-width:190px;width:max-content;max-width:min(236px,calc(100vw - 20px))}
}
@media(max-width:410px){
 .hp-app .hp-head-actions #hp-reg{display:inline-flex;max-width:119px}
 .hp-app .hp-head-actions #hp-theme{display:grid}
}
@media(max-width:340px){
 .hp-app .hp-head-actions #hp-reg{max-width:100px}
 .hp-app .hp-head-actions .hp-menu:not(.hp-profile) summary,.hp-app .hp-head-actions .hp-profile summary{padding:7px}
}
/* Narrow-screen popup containment: menu anchors to viewport, not wrapping flex item. */
@media(max-width:410px){
 body .hp-app .hp-profile .hp-menu-items{position:fixed!important;top:126px!important;right:10px!important;left:auto!important;width:min(224px,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;min-width:0!important}
}
/* hyPhone V16 team lines and viewport-safe mobile menus.
   Ext selector fills dial pad only; line options remain permission-bound server-side. */
.hp-line-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.67fr) minmax(150px,1.15fr);gap:8px;align-items:stretch;margin-top:10px}
.hp-line-identity,.hp-extension-control{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;min-height:52px;padding:7px 10px;border:1px solid var(--line);border-radius:12px;background:rgba(1,6,17,.6)}
.hp-line-tools .hp-line-identity span,.hp-line-tools .hp-extension-control>span{color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.hp-line-identity strong{font-weight:800;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.hp-line-tools .hp-extension-control{margin:0;min-width:0;color:var(--text);font-size:inherit}
.hp-line-tools .hp-extension-control select{height:26px;min-height:26px;min-width:0;width:100%;padding:2px 21px 2px 6px;border:1px solid var(--line);border-radius:8px;color:var(--text);background:var(--panel2);font-size:11px;cursor:pointer}
.hp-line-tools .hp-extension-control select:focus-visible{border-color:var(--accent)}
/* The popup is viewport anchored on mobile, not anchored to a row that may wrap.
   This fixes the x<0 clipping seen at the 477px breakpoint. */
@media(max-width:767px){
 .hp-app{overflow:visible}
 .hp-app .hp-menu[open]{z-index:110}
 body .hp-app .hp-head-actions .hp-menu .hp-menu-items,
 body .hp-app .hp-profile .hp-menu-items{position:fixed!important;top:var(--hp-menu-top,130px)!important;left:auto!important;right:10px!important;width:min(235px,calc(100vw - 20px))!important;min-width:0!important;max-width:calc(100vw - 20px)!important;max-height:min(62dvh,400px)!important;overflow:auto;z-index:120!important;background:var(--panel2);box-shadow:0 24px 65px rgba(0,0,0,.62)}
 .hp-line-tools{grid-template-columns:minmax(0,1fr) minmax(0,.83fr);gap:6px;margin-top:8px}
 .hp-line-identity{min-height:41px;padding:6px 8px}
 .hp-line-tools .hp-line-identity span,.hp-line-tools .hp-extension-control>span{font-size:8px}
 .hp-line-identity strong{font-size:11px}
 .hp-line-tools .hp-extension-control{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;min-height:39px;gap:8px;padding:5px 8px}
 .hp-line-tools .hp-extension-control select{height:29px;min-height:29px;font-size:12px}
}
html[data-hp-theme=light] .hp-line-identity,html[data-hp-theme=light] .hp-extension-control{background:rgba(255,255,255,.85)}
html[data-hp-theme=light] .hp-line-tools .hp-extension-control select{color:var(--text);background:#fff}
html[data-hp-theme=light] .hp-app .hp-menu-items{background:#fff!important;color:var(--text)}
/* V16 Chroma: actual SIP connection-state feedback, no simulated timer. */
.hp-connection-progress{--hp-progress-accent:var(--accent);display:flex;align-items:center;gap:10px;min-height:54px;padding:9px 12px;border:1px solid rgba(79,150,208,.3);border-radius:14px;background:linear-gradient(105deg,rgba(10,30,53,.82),rgba(8,13,28,.88));box-shadow:inset 0 1px rgba(255,255,255,.045);transition:border-color .2s ease,background .2s ease}
.hp-connect-orb{position:relative;display:grid;place-items:center;width:31px;height:31px;flex:0 0 31px;border-radius:50%;background:radial-gradient(circle at 30% 25%,rgba(72,216,255,.25),rgba(16,39,69,.7));border:1px solid var(--hp-progress-accent)}
.hp-connect-orb span{width:9px;height:9px;border-radius:50%;background:var(--hp-progress-accent);box-shadow:0 0 14px var(--hp-progress-accent)}
.hp-connect-copy{display:grid;gap:1px;min-width:0;flex:1}
.hp-connect-copy strong{font-size:12px;font-weight:850;line-height:1.3;color:var(--text)}
.hp-connect-copy small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.hp-connect-steps{display:flex;gap:4px;flex:0 0 auto}
.hp-connect-steps i{width:17px;height:4px;border-radius:4px;background:rgba(122,163,198,.27);transition:background .2s ease}
.hp-connection-progress[data-phase=loading] .hp-connect-steps i:nth-child(1),
.hp-connection-progress[data-phase=connecting] .hp-connect-steps i:nth-child(-n+2),
.hp-connection-progress[data-phase=registering] .hp-connect-steps i,
.hp-connection-progress[data-phase=ready] .hp-connect-steps i{background:var(--hp-progress-accent)}
.hp-connection-progress[data-phase=loading] .hp-connect-orb,
.hp-connection-progress[data-phase=connecting] .hp-connect-orb,
.hp-connection-progress[data-phase=registering] .hp-connect-orb,
.hp-connection-progress[data-phase=reconnecting] .hp-connect-orb{animation:hp-connect-breathe 1.6s ease-in-out infinite}
.hp-connection-progress[data-phase=ready]{--hp-progress-accent:var(--good);border-color:rgba(53,239,176,.33);background:linear-gradient(110deg,rgba(16,79,58,.18),rgba(8,20,26,.7))}
.hp-connection-progress[data-phase=ready] .hp-connect-orb{box-shadow:0 0 15px rgba(53,239,176,.14)}
.hp-connection-progress[data-phase=error]{--hp-progress-accent:var(--bad);border-color:rgba(255,102,136,.4)}
.hp-connection-progress[data-phase=offline]{--hp-progress-accent:var(--muted)}
.hp-connection-progress[data-phase=reconnecting]{--hp-progress-accent:var(--warn)}
@keyframes hp-connect-breathe{0%,100%{box-shadow:0 0 0 0 rgba(53,234,255,.04);opacity:.75}50%{box-shadow:0 0 0 7px rgba(53,234,255,.09),0 0 17px rgba(53,234,255,.18);opacity:1}}
html[data-hp-theme=light] .hp-connection-progress{background:linear-gradient(105deg,#f5fbff,#e8f2ff);border-color:rgba(48,122,171,.26)}
html[data-hp-theme=light] .hp-connection-progress[data-phase=ready]{background:linear-gradient(105deg,#effcf6,#f7fffb);border-color:rgba(8,125,89,.25)}
html[data-hp-theme=light] .hp-connection-progress[data-phase=error]{background:#fff4f5}
@media(max-width:767px){.hp-connection-progress{min-height:45px;padding:6px 9px;border-radius:12px;gap:8px}.hp-connect-orb{width:27px;height:27px;flex-basis:27px}.hp-connect-copy strong{font-size:11px}.hp-connect-copy small{font-size:9px}.hp-connect-steps i{width:10px;height:3px}}
@media(prefers-reduced-motion:reduce){.hp-connection-progress,.hp-connect-orb,.hp-connect-steps i{animation:none!important;transition:none!important}}
/* hyPhone compact adaptive dialer: hero removed, one active phone viewport. */
.hp-view[data-hp-view="dial"]>.hp-dial-stage{margin-top:0}
.hp-app .hp-view[data-hp-view="dial"]{min-width:0}
.hp-app .hp-main{padding-top:clamp(9px,1.2vw,16px)}
.hp-app .hp-dial-workspace{transition:border-color .2s ease,box-shadow .25s ease}
.hp-app .hp-dial-row:focus-within{filter:drop-shadow(0 0 6px rgba(53,234,255,.14))}
.hp-app .hp-contact-card:focus-within{border-color:rgba(53,234,255,.65)}
.hp-app .hp-call-status[data-state="calling"]{border-color:var(--accent)}
.hp-app .hp-in-call .hp-call-status{box-shadow:0 0 24px rgba(53,239,176,.13)}
@media(min-width:941px){
 .hp-app .hp-dial-stage{grid-template-columns:minmax(0,1fr) minmax(230px,265px)}
 .hp-app .hp-dial-workspace{padding:19px 22px}
 .hp-app .hp-keypad{width:min(100%,370px)}
}
@media(min-width:768px) and (max-width:940px){
 .hp-app .hp-main{padding-top:14px}
 .hp-app .hp-dial-workspace{max-width:680px;width:100%;margin:0 auto;padding:18px}
}
@media(max-width:767px){
 .hp-app .hp-main{padding-top:5px!important;padding-left:7px;padding-right:7px}
 .hp-app .hp-dial-stage{display:block;margin:0}
 .hp-app .hp-dial-workspace{padding:8px;gap:5px;border-radius:17px}
 .hp-app .hp-contact-card{padding:8px;border-radius:12px}
 .hp-app .hp-line-tools{margin-top:5px;gap:5px}
 .hp-app .hp-contact-card input{min-height:37px}
 .hp-app .hp-line-identity{min-height:35px}
 .hp-app .hp-extension-control{min-height:35px}
 .hp-app .hp-connection-progress{min-height:40px;padding:5px 9px}
 .hp-app .hp-call-status{min-height:38px;padding:4px 8px}
 .hp-app .hp-call-status-orb{width:31px;height:31px;flex-basis:31px}
 .hp-app .hp-dial-row input,.hp-app .hp-dial-row .hp-primary{min-height:41px}
 .hp-app .hp-keypad{max-width:355px;gap:5px}
 .hp-app .hp-keypad button{height:clamp(43px,6.4dvh,53px);border-radius:12px}
 .hp-app .hp-call-actions button{min-height:38px}
 .hp-app .hp-tools button{min-height:34px}
}
@media(max-width:359px){
 .hp-app .hp-keypad button{height:43px;font-size:19px}
 .hp-app .hp-call-actions button{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.hp-app .hp-dial-workspace,.hp-app .hp-dial-row{transition:none!important}}
