/* IBEX Phone V5 — refined native-iOS-inspired product surfaces.
   Brand tokens: actual IBEX logo navy #00235A, bright accent #F58220.
   Preview interactions are non-networked. No iOS system chrome is spoofed. */
:root{--v5-ink:#00235A;--v5-orange:#F58220;--v5-subtle:#7A899D;--v5-divider:#E9EEF4;--v5-bg:#F7F8FB;--v5-elevated:#FFF;--v5-glass:rgba(255,255,255,.86)}
html{color-scheme:light}
body{background:#f7f8fb}
button{transition:transform .15s ease,background-color .15s ease,box-shadow .15s ease,border-color .15s ease}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid rgba(245,130,32,.58);outline-offset:3px}
/* Unified app header and graphic hierarchy */
.top-brand{gap:13px}
.top-brand img{max-height:39px;object-fit:contain}
.topbar{box-shadow:0 1px 0 rgba(0,35,90,.03)}
.page-intro h1{letter-spacing:-1.7px}
.page-intro p{letter-spacing:-.12px}
.preview-note{border:1px solid #E9EEF4;background:#fff;color:#8290a3;box-shadow:0 4px 13px rgba(9,35,72,.025)}
.preview-note .icon{color:#ec8b35}
/* Selected tabs: semantically local, never imply calling enabled */
.contact-segments{display:flex;gap:5px;max-width:400px;background:#F1F3F8;padding:5px;border-radius:15px;margin:1px 0 15px}
.contact-segment{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;background:transparent;border:0;border-radius:11px;padding:10px 8px;font-size:12px;font-weight:720;color:#7E8BA0}
.contact-segment .icon{width:15px;height:15px}
.contact-segment.selected{background:#fff;color:#092E69;box-shadow:0 3px 14px rgba(0,35,90,.08)}
.contact-segment #favorite-count{display:inline-grid;place-items:center;font-size:10px;min-width:18px;height:18px;background:#fff1e5;color:#A85E1D;border-radius:50%;padding:0 4px}
.favorite-action{border:0;background:transparent;color:#B7C2D2;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex:0 0 36px}
.favorite-action .icon{width:19px;height:19px;stroke-width:1.8;fill:none}
.favorite-action[aria-pressed="true"]{color:#F58220;background:#FFF3E8}
.favorite-action[aria-pressed="true"] .icon{fill:#F58220;stroke:#F58220}
.favorite-action:hover{background:#F1F4F8}
/* Voicemail: elegant inbox with expandable messages */
.voicemail-bubble{margin-left:auto;background:#fff1e6;color:#B5661B;border:1px solid #F8DEC7;border-radius:999px;padding:9px 14px;font-size:11px;font-weight:780;white-space:nowrap}
.voicemail-feature{display:flex;gap:20px;align-items:center;color:#fff;padding:23px 28px;border-radius:25px;background:radial-gradient(circle at 100% 0%,rgba(245,130,32,.30),transparent 48%),linear-gradient(125deg,#0F4387 0%,#00235A 80%);box-shadow:0 16px 38px rgba(1,37,83,.17);margin:19px 0 25px}
.voicemail-feature-icon{flex:none;width:54px;height:54px;display:grid;place-items:center;border-radius:17px;background:rgba(255,255,255,.17);border:1px solid rgba(255,255,255,.12)}
.voicemail-feature-icon .icon{width:27px;height:27px}
.voicemail-feature small{display:block;font-size:10px;letter-spacing:1.6px;font-weight:800;color:#BED6F3}
.voicemail-feature strong{display:block;font-size:21px;letter-spacing:-.45px;margin:5px 0}
.voicemail-feature p{color:#C2D4EB;font-size:12px;line-height:1.6;margin:5px 0 0}
.voicemail-list{display:flex;flex-direction:column}
.voicemail-entry{border-bottom:1px solid #EFF2F6}
.voicemail-entry:last-child{border-bottom:none}
.voicemail-entry-main{width:100%;display:flex;gap:14px;align-items:center;border:0;background:transparent;padding:18px 0;text-align:left;color:var(--v5-ink)}
.voicemail-entry-main:hover{background:#FAFBFD}
.voicemail-icon{width:44px;height:44px;border-radius:15px;background:#EDF2F8;color:#0B3C7E;display:grid;place-items:center;flex:0 0 44px}
.voicemail-icon .icon{width:21px;height:21px}
.voicemail-entry-details{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.voicemail-entry-details strong{font-size:14px;font-weight:770;letter-spacing:-.1px}
.voicemail-entry-details small{font-size:11px;color:#8C99A8;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.voicemail-entry-time{color:#9CA8B7;font-size:10px;font-weight:600;white-space:nowrap}
.voicemail-unread{width:8px;height:8px;border-radius:50%;background:#F58220;flex:0 0 8px}
.voicemail-unread[hidden]{display:none}
.voicemail-entry.listened .voicemail-entry-details strong{font-weight:610;color:#49617E}
.voicemail-transcript{background:#F6F8FC;border:1px solid #E9EEF5;border-radius:17px;padding:18px 20px;margin:0 0 17px 57px;animation:reveal .2s ease}
.voicemail-transcript-title{color:#929FB0;font-size:10px;font-weight:800;letter-spacing:1.2px}
.voicemail-transcript p{font-size:13px;color:#43536D;line-height:1.7;margin:10px 0 16px}
.voicemail-actions{display:flex;gap:10px}
.voicemail-actions button{border:1px solid #DCE5F0;border-radius:11px;padding:9px 14px;font-size:12px;font-weight:720;color:#00235A;background:#fff;display:flex;align-items:center;gap:8px}
.voicemail-actions button:first-child{background:#00235A;color:#fff;border-color:#00235A}
.voicemail-actions .icon{width:15px;height:15px}
@keyframes reveal{from{opacity:.3;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
/* Reassuring grouped preferences */
.preference-panel{align-self:start}
.preference-row{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:17px 0;border-bottom:1px solid #EDF0F5;cursor:pointer}
.preference-row>span:first-child{min-width:0;flex:1}
.preference-row strong{display:block;color:#16345C;font-size:13px;font-weight:740}
.preference-row small{display:block;color:#93A0B2;font-size:11px;margin-top:5px;line-height:1.45}
.preference-row input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}
.ios-switch{height:29px;width:51px;flex:none;background:#D5DCE6;border-radius:19px;position:relative;transition:background .15s}
.ios-switch:before{content:"";width:25px;height:25px;border-radius:50%;position:absolute;left:2px;top:2px;background:white;box-shadow:0 1px 4px rgba(0,0,0,.13);transition:transform .15s}
.preference-row input:checked+.ios-switch{background:#F58220}
.preference-row input:checked+.ios-switch:before{transform:translateX(22px)}
.preference-row input:focus-visible+.ios-switch{outline:3px solid rgba(245,130,32,.65);outline-offset:3px}
.preference-note{font-size:11px;line-height:1.6;color:#98A3B2;margin:17px 0 0}
/* Simulated in-call mini-player: the timer continues while you inspect other tabs */
.call-mini{position:fixed;z-index:68;bottom:24px;left:50%;transform:translateX(-50%);width:min(520px,calc(100vw - 32px));border:1px solid rgba(255,255,255,.18);background:rgba(0,35,90,.96);color:white;box-shadow:0 20px 50px rgba(1,25,68,.26);border-radius:19px;display:flex;align-items:center;gap:4px;padding:7px 9px 7px 12px;backdrop-filter:blur(18px)}
.call-mini[hidden]{display:none}
.call-mini-body{display:flex;align-items:center;gap:13px;border:0;background:transparent;color:white;flex:1;text-align:left;padding:4px;min-width:0}
.call-mini-icon{width:38px;height:38px;border-radius:13px;background:rgba(255,255,255,.14);display:grid;place-items:center;flex:none}
.call-mini-icon .icon{height:20px;width:20px}
.call-mini-info{flex:1;min-width:0}
.call-mini-info small{display:block;font-size:9px;letter-spacing:1.2px;color:#BFD0E8;font-weight:850}
.call-mini-info strong{display:block;color:white;font-size:13px;margin-top:3px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.call-mini-body time{font-variant-numeric:tabular-nums;color:#D8E7F9;font-size:12px}
.call-mini-body>.icon{width:15px;height:15px;transform:rotate(180deg);opacity:.8}
.call-mini-end{background:#E94C4C;border:0;color:white;width:39px;height:39px;flex:none;border-radius:13px;display:grid;place-items:center}
.call-mini-end .icon{width:20px;height:20px}
.minimize-call{height:35px;width:35px;flex:none;display:grid;place-items:center;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.11);color:#fff;border-radius:50%}
.minimize-call .icon{width:20px;height:20px}
.call-head{gap:13px}
.call-head img{margin:auto}
.call-head .minimize-call{margin-right:-35px;z-index:2}
/* Richer menu hit targets, restrained shadows */
.mobile-nav button{min-width:0}
.mobile-nav .mobile-selected .icon{stroke-width:2.15}
@media(max-width:740px){
 .topbar{background:rgba(248,249,252,.84)}
 .main{padding-bottom:calc(120px + env(safe-area-inset-bottom))}
 .preview-note{font-size:10.5px;padding:8px 11px;border-radius:13px;margin:11px 0 9px}
 .page-intro h1{font-weight:760}
 .contact-segments{max-width:100%;margin:1px 0 14px}
 .contact-segment{font-size:12px}
 .favorite-action{width:37px;height:37px}
 .contacts-grid{background:#fff}
 .voicemail-feature{border-radius:24px;padding:21px;gap:14px;margin:8px 0 20px}
 .voicemail-feature strong{font-size:19px;line-height:1.2}
 .voicemail-feature p{font-size:11px}
 .voicemail-feature-icon{width:43px;height:43px;border-radius:14px}
 .voicemail-feature-icon .icon{width:22px;height:22px}
 .voicemail-panel{padding:20px 16px;margin-top:10px}
 .voicemail-entry-main{padding:17px 1px;gap:10px}
 .voicemail-entry-time{font-size:10px;max-width:87px;text-align:right;white-space:normal;line-height:1.45}
 .voicemail-icon{width:40px;height:40px;border-radius:13px;flex-basis:40px}
 .voicemail-transcript{margin-left:0;padding:15px}
 .voicemail-transcript p{font-size:12px}
 .preference-panel{margin-top:17px}
 .call-mini{bottom:calc(88px + env(safe-area-inset-bottom));width:calc(100vw - 24px);border-radius:19px;padding:7px 8px}
 .call-head{display:flex;align-items:center;justify-content:space-between}
 .call-head .minimize-call{margin-right:0}
 .call-head img{max-width:85px;margin:auto}
 .call-head span{font-size:8.5px;letter-spacing:.6px;padding:6px 8px}
 #page-dialer .dialer-panel{box-shadow:0 12px 45px rgba(8,31,74,.065);padding:18px 18px 21px}
 .mobile-nav{box-shadow:0 14px 35px rgba(6,30,75,.15)}
}
@media(max-width:390px){
 .main{padding-left:12px;padding-right:12px}
 .voicemail-bubble{font-size:10px;padding:7px 10px}
 .keypad{row-gap:12px}
 .key{height:65px;width:65px;min-width:65px}
 .dial-button#start-call{width:68px;height:68px;min-height:68px}
}
@media(prefers-reduced-motion:reduce){*{animation-duration:0s!important;transition-duration:0s!important}}
/* Route visibility must win over the legacy mobile dialer display override. */
.page[hidden],#page-dialer[hidden],#page-contacts[hidden],#page-history[hidden],#page-voicemail[hidden],#page-settings[hidden],#page-siren[hidden],#page-account[hidden]{display:none!important}

/* Keep the entire dial control surface visible above the tab bar on smaller iPhones. */
@media(max-width:740px){
 .main{padding-top:6px}
 #page-dialer .page-intro{margin:0 2px 5px}
 #page-dialer .page-intro h1{font-size:33px;line-height:1.15}
 #page-dialer .page-intro p{font-size:12px;margin-top:4px}
 #page-dialer .preview-note{padding:7px 9px;margin:5px 0 7px;min-height:31px}
 #page-dialer .preview-note span{font-size:10px;line-height:1.25}
 #page-dialer .dialer-panel{padding:11px 15px 14px;border-radius:26px}
 #page-dialer .line-picker{height:49px;padding:6px 10px;border-radius:16px}
 #page-dialer .line-picker-icon{width:30px;height:30px;border-radius:10px}
 #page-dialer .line-picker-label strong{font-size:12px}
 #page-dialer .line-picker-label small{font-size:8px}
 #page-dialer .number-field{margin:8px auto 1px;min-height:57px}
 #page-dialer .number-field input{height:57px;font-size:28px}
 #page-dialer .number-field input::placeholder{font-size:22px}
 #page-dialer .keypad{max-width:288px;column-gap:13px;row-gap:9px;margin:1px auto 9px}
 #page-dialer .key{width:62px;height:62px;min-width:62px;box-shadow:0 8px 17px rgba(12,31,67,.055),inset 0 1px 0 #fff}
 #page-dialer .key strong{font-size:27px;line-height:28px}
 #page-dialer .key small{font-size:8px}
 #page-dialer .dial-actions{margin-top:5px}
 #page-dialer .dial-button#start-call{width:62px;height:62px;min-height:62px;box-shadow:0 10px 20px rgba(245,130,32,.22)}
 #page-dialer .call-action-hint{margin-top:4px;font-size:11px}
 #page-dialer .dialer-foot{margin-top:7px;font-size:9px}
}
