/* IBEX Phone V8 — direct-call actions, refined icons and Siren conversation detail. */
:root{--v8-sheet:#fff;--v8-sheet-ink:#112A50;--v8-sheet-muted:#7787A1;--v8-sheet-line:#e5eaf2;--v8-sheet-soft:#f5f7fb;--v8-sheet-shadow:0 22px 75px rgba(0,22,62,.24)}
/* A unified, compact handset silhouette for every action to make a call. */
.icon.handset-icon{fill:currentColor;stroke:none;stroke-width:0;width:21px;height:21px}
.dial-button#start-call .handset-icon{width:29px!important;height:29px!important;transform:rotate(-6deg)}
.mini-call .handset-icon{width:17px;height:17px;transform:rotate(-6deg)}
.voicemail-direct-call .handset-icon{width:19px;height:19px;transform:rotate(-6deg)}
/* More iOS-consistent, simplified star glyph and state. */
.favorite-action{width:38px;height:38px;border-radius:50%;color:#8293A9;transition:background .18s,color .18s,transform .18s}
.favorite-action .star-icon{width:19px;height:19px;stroke-width:1.8;stroke-linejoin:round;fill:transparent}
.favorite-action[aria-pressed="true"]{color:#F58220;background:rgba(245,130,32,.09)}
.favorite-action[aria-pressed="true"] .star-icon{fill:currentColor;stroke:currentColor}
.favorite-action:active,.mini-call:active,.voicemail-direct-call:active{transform:scale(.92)}
.mini-call{display:grid;place-items:center;min-width:35px;min-height:35px}
/* One-touch callback is visible on each voicemail, even before expanding transcript. */
.voicemail-entry-head{display:flex;align-items:center;gap:6px;width:100%;min-width:0}
.voicemail-entry-head>.voicemail-entry-main{flex:1;min-width:0;width:auto!important}
.voicemail-direct-call{display:grid;place-items:center;flex:0 0 40px;height:40px;margin-right:9px;border:1px solid rgba(0,35,90,.07);border-radius:50%;background:#eef2f8;color:#00235A;box-shadow:none}
.voicemail-direct-call:hover{background:#e5edf7}
.voicemail-actions button:first-child{display:inline-flex;align-items:center;gap:8px}
/* Clear selection feedback in the Siren inbox. */
#siren-list .siren-record{display:flex;gap:12px;align-items:center;width:100%;text-align:left;border:0!important;border-bottom:1px solid #edf0f5!important;background:transparent!important;padding:17px 12px;border-radius:12px;transition:background .16s,box-shadow .16s;position:relative;cursor:pointer}
#siren-list .siren-record .siren-row-text{display:flex;flex-direction:column;flex:1;min-width:0}
#siren-list .siren-record .siren-row-text strong{font-size:14px;letter-spacing:-.15px}
#siren-list .siren-record .siren-row-text small{font-size:11px;margin-top:5px;color:#7f8fa4}
#siren-list .siren-record .siren-row-chevron{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(0,35,90,.05);color:#466287;transition:background .16s,color .16s}
#siren-list .siren-record .siren-row-chevron .icon{width:16px;height:16px}
#siren-list .siren-record.siren-row-selected{background:#f1f5fb!important;box-shadow:inset 3px 0 0 #F58220}
#siren-list .siren-record:hover .siren-row-chevron,#siren-list .siren-row-selected .siren-row-chevron{background:#00235a;color:white}
#siren-list .siren-record:last-child{border-bottom:0!important}
/* The sheet is an actual foreground detail view, not a far-below page section. */
.siren-conversation-overlay{position:fixed;inset:0;z-index:160;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(6,19,44,.54);-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}
.siren-conversation-overlay[hidden]{display:none!important}
.siren-detail-open{overflow:hidden!important}
.siren-conversation-dialog{width:min(540px,100%);max-height:min(800px,92dvh);display:flex;flex-direction:column;overflow:hidden;border-radius:26px;background:var(--v8-sheet);color:var(--v8-sheet-ink);box-shadow:var(--v8-sheet-shadow);border:1px solid rgba(255,255,255,.12);animation:v8Open .22s cubic-bezier(.22,1,.36,1)}
@keyframes v8Open{from{opacity:.65;transform:translateY(22px) scale(.98)}to{opacity:1;transform:none}}
.siren-conversation-header{height:65px;min-height:65px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--v8-sheet-line);background:var(--v8-sheet)}
.siren-back-button{display:flex;gap:3px;align-items:center;border:0;background:none;color:#00235A;font-size:13px;font-weight:700;padding:10px 0}
.siren-back-button .icon{width:16px;height:16px;transform:rotate(90deg)}
.siren-dialog-label{font-size:11px;letter-spacing:1.6px;font-weight:850;color:#A17F65}
.siren-dialog-close{border:0;background:var(--v8-sheet-soft);color:#526781;height:32px;width:32px;border-radius:50%;display:grid;place-items:center}
.siren-dialog-close .icon{width:16px;height:16px}
.siren-conversation-scroll{padding:28px 30px 32px;overflow-y:auto;overscroll-behavior:contain}
.siren-dialog-intro{margin-bottom:23px}
.siren-dialog-category{display:inline-block;padding:7px 10px;border-radius:100px;background:rgba(245,130,32,.1);color:#B9651B;font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase}
.siren-dialog-intro h2{color:var(--v8-sheet-ink);font-size:26px;line-height:1.17;letter-spacing:-.7px;margin:14px 0 9px;font-weight:780}
.siren-dialog-byline{font-size:12px;color:var(--v8-sheet-muted);line-height:1.6}
.siren-dialog-section{padding:20px 0;border-top:1px solid var(--v8-sheet-line)}
.siren-dialog-section-title{font-size:10px;font-weight:850;letter-spacing:1.5px;color:var(--v8-sheet-muted);margin-bottom:11px}
.siren-dialog-summary{font-size:14px;color:var(--v8-sheet-ink);line-height:1.75;margin:0}
.siren-dialog-metadata{border-radius:14px;overflow:hidden;background:var(--v8-sheet-soft);padding:4px 15px}
.siren-dialog-meta-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:13px 0;border-bottom:1px solid var(--v8-sheet-line);font-size:12px}
.siren-dialog-meta-row:last-child{border:0}
.siren-dialog-meta-row span{color:var(--v8-sheet-muted)}
.siren-dialog-meta-row strong{text-align:right;color:var(--v8-sheet-ink);font-weight:680;max-width:60%}
.siren-dialog-followup{border-radius:17px;background:#fff4e8;border:1px solid #f7d8b8;padding:20px}
.siren-dialog-followup .siren-dialog-section-title{color:#A9631E}
.siren-dialog-followup p{font-size:14px;line-height:1.6;margin:0;color:#653A13;font-weight:560}
.siren-dialog-demo-label{font-size:10px;color:var(--v8-sheet-muted);text-align:center;margin-top:20px}
/* V7's single-surface dark system applied consistently to new components. */
html[data-theme="dark"]{--v8-sheet:#161F2D;--v8-sheet-ink:#F1F5FA;--v8-sheet-muted:#B2BFD0;--v8-sheet-line:#2E3C50;--v8-sheet-soft:#202B3B;--v8-sheet-shadow:0 28px 70px rgba(0,0,0,.42)}
html[data-theme="dark"] .favorite-action{color:#B1C1D5}
html[data-theme="dark"] .favorite-action[aria-pressed="true"]{color:#FFB26D;background:rgba(245,130,32,.12)}
html[data-theme="dark"] .favorite-action[aria-pressed="true"] .star-icon{fill:currentColor;stroke:currentColor}
html[data-theme="dark"] .voicemail-direct-call{background:#263347;color:#F1F5FA;border:1px solid #34445a}
html[data-theme="dark"] .voicemail-direct-call:hover{background:#33445c}
html[data-theme="dark"] #siren-list .siren-record{border-bottom-color:var(--night-line)!important;color:var(--night-text)}
html[data-theme="dark"] #siren-list .siren-record.siren-row-selected{background:#202B3B!important;box-shadow:inset 3px 0 0 #F58220}
html[data-theme="dark"] #siren-list .siren-record .siren-row-chevron{background:#263347;color:#D6E2F4}
html[data-theme="dark"] #siren-list .siren-record:hover .siren-row-chevron{background:#35455e;color:white}
html[data-theme="dark"] .siren-dialog-category{background:rgba(245,130,32,.14);color:#FFB26D}
html[data-theme="dark"] .siren-back-button{color:#E2ECFB}
html[data-theme="dark"] .siren-dialog-label{color:#AEBFD6}
html[data-theme="dark"] .siren-dialog-close{background:#263347;color:#F1F5FA}
html[data-theme="dark"] .siren-dialog-followup{background:rgba(245,130,32,.11);border-color:rgba(245,130,32,.25)}
html[data-theme="dark"] .siren-dialog-followup .siren-dialog-section-title{color:#FFC18B}
html[data-theme="dark"] .siren-dialog-followup p{color:#F4D0AD}
@media(max-width:740px){
  .siren-conversation-overlay{padding:0;align-items:stretch;background:var(--v8-sheet)}
  .siren-conversation-dialog{width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;box-shadow:none}
  .siren-conversation-header{height:calc(58px + env(safe-area-inset-top));min-height:calc(58px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 18px 0}
  .siren-conversation-scroll{padding:27px 22px calc(40px + env(safe-area-inset-bottom))}
  .siren-dialog-intro h2{font-size:30px}
  .siren-dialog-label{font-size:10px}
  #siren-list .siren-record{border-radius:10px;padding:17px 8px}
  .voicemail-direct-call{flex-basis:42px;height:42px;margin-right:3px}
}
@media(prefers-reduced-motion:reduce){.siren-conversation-dialog{animation:none}}
