/* Pop-up telefônico Akbar: compacto, acessível e distinto da escola. */
.akbarPhoneDialog{position:fixed;margin:auto;border:1px solid #8b4d5f;border-radius:23px;padding:0;background:linear-gradient(155deg,#27212b,#101219);color:#fff;width:min(440px,95vw);max-height:min(85vh,720px);overflow-y:auto;box-shadow:0 15px 70px #000c;font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
.akbarPhoneDialog::backdrop{background:#000b;backdrop-filter:blur(7px)}
.akbarPhoneTop{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:19px 21px 8px}
.akbarPhoneMark{font-size:11px;letter-spacing:.13em;color:#ff96a9;font-weight:800}
.akbarPhoneTop h2{margin:5px 0;font-size:23px;letter-spacing:-.03em}
.akbarPhoneClose{background:#3a303d;border-radius:50%;min-height:42px;min-width:42px;padding:0;font:inherit;color:#fff;cursor:pointer}
#akbarPhoneContent{padding:12px 21px 25px;display:grid;gap:15px}
#akbarPhoneContent input{box-sizing:border-box;width:100%;min-height:46px;font:inherit;font-size:16px;color:white;background:#0d1016;border:1px solid #73606b;border-radius:13px;padding:12px}
.akbarPhoneHelp{margin:0;color:#d1c5cc;font-size:14px}
.akbarPhoneStatus{margin:0;font-size:13px;color:#ffb8c4}
.akbarPhoneContacts{display:grid;gap:9px;max-height:310px;overflow:auto}
.akbarPhoneContact{display:flex;align-items:center;gap:6px;padding:11px;background:#201b24;border-radius:13px}
.akbarPhoneContact strong{min-width:0;overflow-wrap:anywhere;flex:1;font-size:14px}
.akbarPhoneAudio,.akbarPhoneVideo,.akbarPhoneHangup,.akbarPhoneEmail{border:0;border-radius:12px;min-height:44px;padding:10px 12px;font:inherit;font-size:13px;font-weight:750;background:#ac2c4b;color:#fff;cursor:pointer}
.akbarPhoneAudio{background:#2f725c}.akbarPhoneHangup{background:#ae253f}
.akbarPhoneAnswer{display:flex;justify-content:center;gap:12px}
.akbarPhoneStage{position:relative;min-width:0;min-height:100px;background:#09090d;border-radius:14px;overflow:hidden;isolation:isolate}
.akbarPhoneRemote{display:block;width:100%;aspect-ratio:4/3;background:#09090d;object-fit:contain}
.akbarPhoneWaiting{position:absolute;inset:0;margin:0;display:grid;place-items:center;padding:15px 36% 15px 15px;font-size:13px;color:#d1c5cc;pointer-events:none}
.akbarPhoneSelf{position:absolute;top:10px;right:10px;width:clamp(64px,25%,104px);border:2px solid #fff9;border-radius:11px;overflow:hidden;background:#100c13;box-shadow:0 3px 12px #0008;pointer-events:none}
.akbarPhoneLocal{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;transform:scaleX(-1)}
.akbarPhoneSelf span{display:block;text-align:center;padding:2px;font-size:11px;background:#15101c}
.akbarPhoneCameraStatus{margin:0;font-size:12px;color:#d1c5cc}
.akbarPhoneStage [hidden]{display:none}
#akbarPhoneContent a{color:#fff}
.akbarPhoneDialog :focus-visible{outline:3px solid white;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.akbarPhoneDialog::backdrop{backdrop-filter:none}}

/* Call notification never opens a modal over the student or pauses a player. */
.akbarPhoneInvite{position:fixed;top:calc(env(safe-area-inset-top,0px) + 67px);right:12px;z-index:130;display:flex;align-items:center;gap:9px;flex-wrap:wrap;max-width:min(480px,calc(100vw - 24px));padding:12px;border:1px solid #b25974;background:#1e1724;color:white;border-radius:17px;box-shadow:0 9px 26px #0008;font:14px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
.akbarPhoneInvite span{flex:1;min-width:125px;font-weight:650}
.akbarPhoneInvite button{font:inherit;min-height:40px}
.akbarPhoneFooter{text-align:center;padding:0 18px 18px;font-size:13px}
.akbarPhoneFooter a{color:#ffd0dd;text-decoration:underline}
.akbarPhoneAppHint{font-size:12px;color:#d1c5cc;border-top:1px solid #ffffff20;padding-top:10px}
.akbarPhoneAppHint p{margin:0 0 7px}
.akbarPhoneDismissHint{margin-left:12px;border:0;background:transparent;color:#fff;font:inherit;min-height:44px;text-decoration:underline;cursor:pointer}
@media(max-width:620px){.akbarPhoneInvite{left:12px;right:12px;top:calc(env(safe-area-inset-top,0px) + 64px)}}

/* Optional browser-notification permission, visible only inside the phone dialog. */
.akbarPhoneNotifyOptIn{display:block;margin:12px auto 0;padding:4px 6px;border:0;background:transparent;color:#fbc6d3;text-decoration:underline;font:inherit;font-size:12px;cursor:pointer;max-width:100%}

.akbarPhoneContact{flex-wrap:wrap;gap:8px}
.akbarPhoneAvatar{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:0 0 40px}
.akbarPhoneName{min-width:100px;overflow-wrap:anywhere;flex:1 1 100px}
.akbarPhoneClasses{padding:10px;color:inherit;text-decoration:underline}


/* Identidade acima; comandos compactos não comprimem o nome. */
.akbarPhoneDialog .akbarPhoneContact{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;border-radius:0}
.akbarPhoneDialog .akbarPhoneIdentity{display:flex;align-items:center;gap:10px;min-width:0}
.akbarPhoneDialog .akbarPhoneIdentity strong{flex:1 1 auto;min-width:0;font-size:15px;word-break:normal;overflow-wrap:break-word}
.akbarPhoneDialog .akbarPhoneContactActions{display:flex;flex-flow:row nowrap;gap:6px;overflow-x:auto;min-width:0}
.akbarPhoneDialog .akbarPhoneContactActions>*{flex:0 0 auto;min-height:44px;padding:6px 10px;font-size:13px;white-space:nowrap;border-radius:0}

/* ✧ Telephone directory reads beside each square portrait, then below it. */
.akbarPhoneDialog {border-radius:0;max-height:calc(100dvh - 24px);width:min(500px,calc(100vw - 24px))}
.akbarPhoneTop {padding:10px 12px 4px;align-items:center}
.akbarPhoneTop h2 {font-size:19px;margin:0}
#akbarPhoneContent {padding:8px 12px 14px;gap:8px}
.akbarPhoneDialog .akbarPhoneContact {display:flow-root;padding:7px;border:0;background:#161b21}
.akbarPhoneDialog .akbarPhoneIdentity,
.akbarPhoneDialog .akbarPhoneContactActions {display:contents}
.akbarPhoneDialog .akbarPhoneAvatar {float:inline-start;width:44px;height:44px;border-radius:0;margin-inline:0 8px;object-fit:cover}
.akbarPhoneDialog .akbarPhoneIdentity strong {display:inline;font-size:14px;overflow-wrap:anywhere}
.akbarPhoneDialog .akbarPhoneContactActions>* {display:inline-flex;align-items:center;vertical-align:middle;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;padding:3px 5px;margin-inline:3px;border:0;background:transparent}
.akbarPhoneDialog .akbarPhoneContactActions .akbarPhoneAudio {color:#9bf1bb}
.akbarPhoneDialog .akbarPhoneContactActions .akbarPhoneVideo {color:#ffadc9}
.akbarPhoneDialog .akbarPhoneClose {min-height:44px;min-width:44px;border-radius:0}

/* 29/10 P0 · Discador de mesa vintage, mantendo a chamada WebRTC original. */
.akbarPhoneDialog:has(.akbarRetroTelephone){
 border:5px solid #745039!important;
 background:linear-gradient(130deg,#74432c,#b47d4b 22%,#5d3324 52%,#a8764c)!important;
 box-shadow:inset 0 0 0 3px #d1a365,0 18px 54px #000d!important;
 color:#fff3ce!important;border-radius:22px!important;
 width:min(440px,calc(100vw - 14px));max-height:min(96dvh,790px);
}
.akbarPhoneDialog:has(.akbarRetroTelephone) .akbarPhoneTop{
 background:linear-gradient(90deg,#3b281e,#70472e);
 padding:9px 11px;border-bottom:2px solid #bb8a47;
}
.akbarPhoneDialog:has(.akbarRetroTelephone) .akbarPhoneTop h2{
 font:700 20px/1.12 Georgia,serif;color:#fff0cf;
}
.akbarPhoneDialog:has(.akbarRetroTelephone) .akbarPhoneClose{
 background:#331e19;color:#f4dfbc;border:1px solid #d4ad71;border-radius:4px;
}
.akbarPhoneDialog:has(.akbarRetroTelephone) #akbarPhoneContent{
 padding:6px 7px 12px;gap:5px;
}
.akbarRetroTelephone{
 background:linear-gradient(145deg,#f6e7be,#ddc290 55%,#bd975c);
 border:3px solid #815933;border-radius:24px 24px 12px 12px;
 box-shadow:inset 0 2px 6px #fff9,inset 0 -6px 10px #593d2f66,0 4px 12px #28181288;
 color:#38291d;text-align:center;padding:7px 12px 12px;
 display:grid;justify-items:stretch;gap:6px;min-width:0;
}
.akbarRetroHandset{
 height:56px;line-height:52px;justify-self:center;
 font-size:55px;color:#201b18;letter-spacing:0;
 filter:drop-shadow(2px 3px 1px #523e3377);
}
.akbarRetroMark{font:800 12px/1.3 Georgia,serif;letter-spacing:.2em;color:#6c4727}
.akbarPhoneDialog #akbarPhoneContent .akbarRetroVisor{
 background:linear-gradient(#35493f,#142e30);border:5px ridge #ab8251;border-radius:5px;
 box-shadow:inset 0 2px 7px #071616aa;
 padding:2px 4px;
}
.akbarPhoneDialog #akbarPhoneContent .akbarRetroVisor input{
 color:#c6ffe3;background:transparent;border:0!important;border-radius:0!important;
 font:600 19px/1.2 'Courier New',monospace;min-height:42px;padding:5px 7px;
 outline-offset:3px;
}
.akbarRetroVisor input::placeholder{color:#9cbcae;opacity:1}
.akbarRetroKeys{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 width:min(100%,265px);margin:auto;gap:5px;justify-items:stretch;
 padding:7px;border:4px solid #a68155;border-radius:24px;
 background:linear-gradient(130deg,#76563b,#c5a175 54%,#806045);
 box-shadow:inset 1px 2px 7px #48301b88;
}
.akbarPhoneDialog .akbarRetroKey{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 width:100%;min-width:0;min-height:45px;padding:2px;
 border:2px solid #786650;border-radius:50%;
 color:#211e1b;background:radial-gradient(circle at 37% 25%,#fff7db,#d7c399 65%,#a99365);
 font:800 21px/1 Georgia,serif;box-shadow:1px 3px 2px #4e3929bb;
 cursor:pointer;
}
.akbarRetroKey small{font:700 8px/1.15 system-ui,sans-serif;letter-spacing:.06em}
.akbarPhoneDialog .akbarRetroKey:active{transform:translateY(2px);box-shadow:none}
.akbarPhoneDialog .akbarRetroTelephone .akbarPhoneHelp{
 color:#5b422b;font-size:12px;line-height:1.3;
}
.akbarPhoneDialog .akbarRetroTelephone .akbarPhoneStatus{color:#654129;font-size:12px}
.akbarPhoneDialog .akbarRetroTelephone .akbarPhoneContacts{
 display:grid;gap:5px;max-height:225px;overflow:auto;
}
.akbarPhoneDialog .akbarRetroTelephone .akbarPhoneContact{
 background:#efe0bf;color:#30271f;border:1px solid #aa814e;
}
.akbarPhoneDialog .akbarRetroTelephone .akbarPhoneContactActions .akbarPhoneAudio{
 color:#155b3b;font-weight:850;text-decoration:underline;
}
.akbarPhoneDialog .akbarRetroTelephone .akbarPhoneContactActions .akbarPhoneVideo{
 color:#8e1e3d;font-weight:850;text-decoration:underline;
}
.akbarPhoneDialog .akbarRetroTelephone .akbarPhoneEmail{background:#6c4f35;color:#fff4d8}
.akbarPhoneDialog .akbarPhoneFooter{padding:6px 12px 12px;color:#fff0cf}
.akbarPhoneDialog .akbarPhoneFooter a{color:#fff4ca}
@media(max-height:700px){
 .akbarRetroHandset{height:40px;line-height:39px;font-size:40px}
 .akbarPhoneDialog .akbarRetroKey{min-height:44px}
 .akbarRetroKeys{gap:3px;padding:4px}
}
@media(prefers-reduced-motion:reduce){.akbarRetroKey{transition:none!important}}

/* ✦ 29/10 P0 · Cidade antiga à noite; cabine a gás; tela vermelha.
   Fullphone mantém o WebRTC, escuta e busca existentes, sem outro engine. */
.akbarPhoneDialog[open]:has(.akbarRetroTelephone){
 position:fixed!important;inset:0!important;margin:0!important;padding:0!important;
 display:flex!important;flex-direction:column!important;
 width:100%!important;max-width:100%!important;
 height:100dvh!important;max-height:100dvh!important;min-height:0!important;
 overflow:hidden!important;isolation:isolate;
 border:0!important;border-radius:0!important;color:#ffe6b8!important;
 background:
 radial-gradient(ellipse 15% 17% at 12% 25%,#f8ac595c,transparent 78%),
 radial-gradient(ellipse 15% 17% at 88% 25%,#f8ac595c,transparent 78%),
 repeating-linear-gradient(90deg,transparent 0 56px,#16151d99 58px 70px,transparent 72px 105px),
 linear-gradient(180deg,#050710,#0e1622 46%,#191b20 73%,#05070e)!important;
 box-shadow:inset 0 0 0 3px #1e1618!important;
}
.akbarPhoneDialog[open]:has(.akbarRetroTelephone)::before{
 content:"";position:absolute;inset:13% 0 0;pointer-events:none;z-index:0;
 background:
 linear-gradient(#070b13,#070b13) 0% 75%/10% 32% no-repeat,
 linear-gradient(#090d14,#090d14) 10% 56%/10% 48% no-repeat,
 linear-gradient(#080b11,#080b11) 20% 80%/12% 26% no-repeat,
 linear-gradient(#090d13,#090d13) 67% 68%/11% 40% no-repeat,
 linear-gradient(#080a11,#080a11) 79% 54%/9% 51% no-repeat,
 linear-gradient(#090d14,#090d14) 89% 73%/11% 35% no-repeat,
 repeating-linear-gradient(90deg,transparent 0 22px,#e6ae5b2c 24px 26px,transparent 28px 57px) 0 35%/100% 35% no-repeat;
}
.akbarPhoneDialog[open]:has(.akbarRetroTelephone)::after{
 content:"";position:absolute;pointer-events:none;z-index:0;
 inset:9% max(3%,calc((100vw - 590px)/2 - 22px)) 0;
 border:8px double #b0844b;border-bottom:0;
 background:linear-gradient(90deg,#7f512850,transparent 18%,#e7b45b15 50%,transparent 83%,#7f512850);
 box-shadow:0 0 40px 4px #f2b45b35,inset 0 0 35px #e7b45b33;
}
.akbarPhoneDialog[open]:has(.akbarRetroTelephone) .akbarPhoneTop{
 flex:0 0 auto;min-height:49px;z-index:3;padding:5px 13px!important;
 background:linear-gradient(90deg,#1c1418,#49352c,#1b1519)!important;
 border-bottom:2px solid #c89a59!important;
}
.akbarPhoneDialog[open]:has(.akbarRetroTelephone) .akbarPhoneMark{color:#ffe0a4!important}
.akbarPhoneDialog[open]:has(.akbarRetroTelephone) .akbarPhoneTop h2{
 color:#ffe5ae!important;font:800 18px/1.2 Georgia,serif!important;
}
.akbarPhoneDialog[open]:has(.akbarRetroTelephone) .akbarPhoneClose{
 background:#241714!important;color:#f7dbaf!important;
 border:1px solid #b89058!important;border-radius:0!important;
}
.akbarPhoneDialog[open]:has(.akbarRetroTelephone) #akbarPhoneContent{
 position:relative;z-index:2;display:flex!important;flex:1 1 auto!important;
 flex-direction:column!important;justify-content:flex-end!important;
 min-height:0;overflow:hidden!important;gap:0!important;padding:0 6px!important;
}
.akbarPhoneDialog[open]:has(.akbarRetroTelephone) .akbarRetroTelephone{
 position:relative;flex:0 1 auto;min-height:0;overflow:visible!important;
 width:100%;max-width:540px;margin:auto auto 0!important;
 padding:7px clamp(8px,2vw,16px) max(7px,env(safe-area-inset-bottom))!important;
 display:flex!important;flex-direction:column!important;justify-content:flex-end!important;
 gap:4px!important;border:7px ridge #a17b48!important;border-bottom:0!important;
 border-radius:0!important;color:#563a27!important;
 background:linear-gradient(96deg,#a67547,#f9e8b9 13%,#f8e3b2 52%,#d6af77 91%,#906238)!important;
 box-shadow:0 0 35px #f3b65b55,inset 0 0 0 4px #be8f56,11px 2px 19px #000b!important;
}
.akbarPhoneDialog .akbarRetroHandset{
 flex:0 0 auto;height:clamp(33px,7dvh,61px)!important;
 font:900 clamp(34px,7dvh,60px)/1 Georgia,serif!important;
 margin:auto!important;color:#171b1c!important;
 filter:drop-shadow(3px 3px 2px #a67b4d);
}
.akbarPhoneDialog .akbarRetroMark{
 flex:0 0 auto;text-align:center;margin:0!important;
 color:#613d28!important;letter-spacing:.19em!important;
 font:800 clamp(12px,3.3vw,20px)/1.2 Georgia,serif!important;
}
.akbarRetroInstruction{
 flex:0 0 auto;text-align:center;margin:1px 0!important;
 color:#5c3c29;font:800 clamp(12px,3vw,16px)/1.3 Georgia,serif;
}
.akbarPhoneDialog .akbarRetroDialBody{
 position:relative;display:flex;flex:0 1 auto;min-height:0;flex-direction:column;
 gap:4px;width:100%;padding:6px!important;
 border:3px solid #a1794a!important;
 background:linear-gradient(125deg,#d3a972,#f1dbaa 58%,#ce9e64)!important;
 box-shadow:0 2px 10px #60432677;
}
.akbarPhoneDialog .akbarRetroDisplay{position:relative;z-index:5;overflow:visible!important;min-width:0}
.akbarPhoneDialog #akbarPhoneContent .akbarRetroVisor{
 position:relative;z-index:2;min-height:clamp(68px,12dvh,100px)!important;
 padding:2px 5px!important;margin:0!important;
 border:6px ridge #ab773f!important;border-radius:0!important;
 background:linear-gradient(150deg,#0d171a,#070f13 60%,#172628)!important;
 box-shadow:inset 0 0 22px #000,0 2px 5px #5e422488!important;
}
.akbarPhoneDialog #akbarPhoneContent .akbarRetroVisor input{
 width:100%!important;min-height:clamp(60px,10dvh,90px)!important;
 padding:8px 10px!important;border:0!important;border-radius:0!important;
 color:#ff4544!important;background:transparent!important;
 font:800 clamp(23px,6vw,39px)/1.2 'Courier New',monospace!important;
 letter-spacing:.03em;text-shadow:0 0 3px #f43a39,0 0 12px #d32120,0 0 20px #c3202055;
 caret-color:#ff8482!important;
}
.akbarPhoneDialog #akbarPhoneContent .akbarRetroVisor input::placeholder{
 color:#e29089!important;opacity:.9!important;text-shadow:0 0 8px #ca242467;
}
.akbarPhoneDialog .akbarRetroTelephone .akbarPhoneContacts{
 position:absolute!important;left:0;right:0;bottom:calc(100% + 9px);
 z-index:9;display:flex!important;flex-direction:column-reverse!important;gap:5px!important;
 max-height:min(36dvh,315px)!important;padding:3px!important;margin:0!important;
 overflow-y:auto!important;overscroll-behavior:contain;background:transparent!important;
 box-shadow:none!important;
}
.akbarPhoneDialog .akbarRetroTelephone .akbarPhoneContacts:empty{display:none!important}
.akbarPhoneDialog .akbarRetroTelephone .akbarPhoneContact{
 min-height:48px;padding:7px!important;border:2px solid #9e7446!important;
 border-radius:0!important;color:#2c241e!important;
 background:linear-gradient(125deg,#f9ebca,#d5b27c)!important;
 box-shadow:0 4px 12px #000b!important;
}
.akbarPhoneDialog .akbarRetroTelephone .akbarPhoneAvatar{width:46px;height:46px;border-radius:0!important}
.akbarPhoneDialog .akbarRetroTelephone .akbarRetroKeys{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 width:100%!important;max-width:none!important;gap:5px!important;margin:0!important;
 padding:6px!important;border:4px ridge #987149!important;border-radius:0!important;
 background:linear-gradient(145deg,#825e3e,#b08953,#74543a)!important;
}
.akbarPhoneDialog .akbarRetroTelephone .akbarRetroKey{
 min-height:clamp(35px,7.3dvh,70px)!important;padding:2px!important;
 font:800 clamp(20px,5dvh,35px)/1 Georgia,serif!important;
 border:2px solid #876545!important;border-radius:0!important;
 background:linear-gradient(135deg,#fff5d7,#e5cea3 60%,#b48f5c)!important;
 box-shadow:2px 3px 2px #4a2c1d99!important;
}
.akbarPhoneDialog .akbarRetroTelephone .akbarRetroKey small{
 font:800 clamp(9px,1.7dvh,12px)/1.1 system-ui,sans-serif!important;
}
.akbarPhoneDialog .akbarRetroToolbar{display:flex!important;justify-content:center!important}
.akbarPhoneDialog .akbarRetroEnter{
 width:100%;min-height:44px;cursor:pointer;padding:7px 15px;
 background:linear-gradient(130deg,#315f4e,#143d32);
 border:2px ridge #ab854f;border-radius:0;color:#fff0c4;
 font:800 18px/1.2 Georgia,serif;
 box-shadow:0 3px 7px #543b2688;
}
.akbarPhoneDialog .akbarRetroTelephone .akbarPhoneStatus{
 margin:2px 0!important;color:#583920!important;
 font:700 12px/1.2 system-ui,sans-serif!important;
 max-height:45px;overflow-y:auto;
}
.akbarPhoneDialog .akbarRetroTelephone .akbarPhoneHelp{
 color:#543b24!important;font:500 11px/1.2 system-ui,sans-serif!important;
 margin:1px 0!important;
}
/* No footer below keypad: the dial physically touches bottom. Call-screen footer remains. */
.akbarPhoneDialog[open]:has(.akbarRetroTelephone) .akbarPhoneFooter{display:none!important}
@media(max-height:650px){
 .akbarPhoneDialog .akbarRetroHandset{height:27px!important;font-size:35px!important}
 .akbarPhoneDialog .akbarRetroTelephone .akbarRetroKey{min-height:34px!important}
 .akbarPhoneDialog #akbarPhoneContent .akbarRetroVisor input{min-height:53px!important;font-size:24px!important}
 .akbarPhoneDialog .akbarRetroTelephone .akbarPhoneHelp{display:none!important}
}
@media(prefers-reduced-motion:reduce){.akbarPhoneDialog .akbarRetroKey{transition:none!important}}

/* ✦ 29/10 · Cursor vermelho como lampião de gás; algarismos, nomes e
   e-mails bem distinguíveis no visor da cabine. Sem segundo cursor em foco. */
.akbarPhoneDialog .akbarRetroVisor{position:relative!important;isolation:isolate}
.akbarPhoneDialog #akbarPhoneContent .akbarRetroVisor input{
 font-family:Consolas,'DejaVu Sans Mono','Liberation Mono',monospace!important;
 font-variant-numeric:slashed-zero tabular-nums!important;
 font-feature-settings:'zero' 1,'tnum' 1!important;
 font-kerning:none!important;
 font-size:clamp(23px,5.7vw,38px)!important;
 line-height:1.25!important;
 letter-spacing:.065em!important;
 font-weight:800!important;
 text-transform:none!important;direction:ltr!important;text-align:start!important;
 white-space:nowrap!important;overflow-x:auto!important;
 color:#ff4c4c!important;
 caret-color:#ff2c2c!important;
 text-shadow:0 0 3px #ff2626,0 0 12px #bb1717,0 0 19px #b8181866!important;
}
.akbarPhoneDialog .akbarRetroVisor input::-webkit-search-cancel-button{filter:sepia(1) saturate(9) hue-rotate(310deg)}
.akbarPhoneDialog .akbarRetroIdleCursor{
 display:none;position:absolute;left:14px;top:50%;z-index:5;
 width:3px;height:clamp(25px,6dvh,45px);
 transform:translateY(-50%);pointer-events:none;
 background:#ff3030;box-shadow:0 0 5px #ff3030,0 0 13px #f91b1b,0 0 23px #de161688;
 animation:akbarNightPhoneCursor 1s steps(1,end) infinite;
}
.akbarPhoneDialog .akbarRetroVisor:has(input:placeholder-shown):not(:focus-within)>.akbarRetroIdleCursor{
 display:block!important;
}
.akbarPhoneDialog .akbarRetroVisor:focus-within>.akbarRetroIdleCursor,
.akbarPhoneDialog .akbarRetroVisor:has(input:not(:placeholder-shown))>.akbarRetroIdleCursor{
 display:none!important;
}
@keyframes akbarNightPhoneCursor{
 0%,48%{opacity:1}50%,100%{opacity:0}
}
@media(prefers-reduced-motion:reduce){
 .akbarPhoneDialog .akbarRetroIdleCursor{animation:none!important;opacity:1!important}
}

/* ✦ 29/10 · Call TO Email, above the glowing red visor; native Android IME.
   No new route, no duplicate on-screen letter keyboard. */
.akbarPhoneDialog .akbarRetroEmailMode{
 display:inline-flex!important;align-items:center;justify-content:center;align-self:stretch;
 min-height:48px!important;max-width:100%;width:100%;
 margin:0 0 3px!important;padding:7px 12px!important;
 border:2px solid #e3b279!important;border-bottom:3px solid #78432e!important;
 border-radius:0!important;
 background:linear-gradient(125deg,#44221d,#713726 48%,#43201c)!important;
 color:#ffcfb4!important;font:800 clamp(15px,3.5vw,20px)/1.25 Georgia,serif!important;
 letter-spacing:.035em!important;text-shadow:0 0 7px #ff726b7a;
 box-shadow:inset 0 0 0 1px #d59d5999,0 0 8px #e3a4568a,0 3px 4px #553b2690!important;
 cursor:pointer;touch-action:manipulation;
}
.akbarPhoneDialog .akbarRetroEmailMode:hover,
.akbarPhoneDialog .akbarRetroEmailMode:focus-visible{
 color:#fff3e0!important;background:linear-gradient(125deg,#67342a,#94452e,#67342a)!important;
 outline:2px solid #ffe2a8;outline-offset:2px;
}
.akbarPhoneDialog .akbarRetroEmailMode:active{transform:translateY(1px);box-shadow:0 1px 2px #37231c!important}
@media(max-height:650px){
 .akbarPhoneDialog .akbarRetroEmailMode{min-height:44px!important;padding:4px 8px!important}
}

/* The actual answer action is highlighted while an incoming invitation is live. */
@media (prefers-reduced-motion: no-preference) {
 .akbarPhoneAnswerPulse {animation:akbarPhoneAnswerPulse 1.25s ease-in-out infinite alternate}
 @keyframes akbarPhoneAnswerPulse {
  from {box-shadow:0 0 0 0 #78f7ab00}
  to {box-shadow:0 0 0 7px #78f7ab73}
 }
}

/* The directory uses the same three-slot header as the Marketplace. */
.akbarPhoneDialog .akbarPhoneTop:has(.akbarPhoneContext) { padding: 4px !important; }
.akbarPhoneDialog .akbarPhoneContext {
 display: grid !important;
 grid-template-columns: auto minmax(0, 1fr) auto !important;
 direction: ltr;
 align-items: center;
 width: 100%;
 gap: 6px;
}
.akbarPhoneContext .brand { color: #fff; text-decoration: none; white-space: nowrap; }
.akbarPhoneContext .brandMark svg { width: 26px; height: 23px; }
.akbarPhoneContext input { width: 100%; min-width: 0; min-height: 44px; padding: 7px; }
.akbarPhoneContextCall { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.akbarPhoneContextCall img { width: 25px; height: 25px; object-fit: contain; }
.akbarPhoneContactChoice { cursor: pointer; text-align: start; }
.akbarPhoneContactChoice[aria-pressed="true"] { outline: 2px solid #ffd580; }
.akbarPhoneDialog[open]:has(.akbarPhoneContext) .akbarPhoneContacts:not(:empty) {
 position: relative !important; inset: auto; max-height: min(32dvh,240px) !important;
}
html[dir=rtl] .akbarPhoneContext input { direction: rtl; }
.akbarPhoneDialog .akbarPhoneTop > [hidden] { display: none !important; }
@media (max-width: 360px) {
 .akbarPhoneContext .brandName {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
 }
}


/* 21/11/2026 — Akbar Telefone · chat and call log, dark WhatsApp-like geometry.
   Scoped exclusively to the new messenger view. Existing WebRTC dialer stays intact. */
.akbarPhoneDialog[open]:has(.akbarMessenger){
 display:flex!important;flex-direction:column!important;
 position:fixed!important;inset:0!important;margin:0!important;
 padding:0!important;border:0!important;border-radius:0!important;
 width:100vw!important;max-width:100vw!important;height:100dvh!important;
 max-height:100dvh!important;overflow:hidden!important;
 color:#e9edef!important;background:#0b141a!important;
 box-shadow:none!important;font-family:system-ui,Roboto,Arial,sans-serif!important;
}
.akbarPhoneDialog:has(.akbarMessenger) .akbarPhoneTop,
.akbarPhoneDialog:has(.akbarMessenger) .akbarPhoneFooter,
.akbarPhoneDialog:has(.akbarMessenger) #akbarPhoneProgress{display:none!important}
.akbarPhoneDialog:has(.akbarMessenger) #akbarPhoneContent{
 padding:0!important;margin:0!important;gap:0!important;
 display:flex!important;flex:1 1 auto;min-height:0;
 width:100%;background:#0b141a!important;
}
.akbarPhoneDialog .akbarMessenger{
 --msg-bg:#0b141a;--msg-bar:#111b21;--msg-in:#202c33;--msg-out:#144d3b;
 --msg-green:#25d366;--msg-ink:#e9edef;--msg-muted:#97a6ac;
 display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;
 width:100%;height:100%;color:var(--msg-ink);
 background:var(--msg-bg);font-size:15px;line-height:1.35;
}
.akbarPhoneDialog .akbarMessenger *{box-sizing:border-box}
.akbarPhoneDialog .akbarMessenger button,
.akbarPhoneDialog .akbarMessenger input,
.akbarPhoneDialog .akbarMessenger textarea{
 font:inherit;color:inherit;
}
.akbarPhoneDialog .akbarMessenger button{cursor:pointer}
.akbarPhoneDialog .akbarMessenger button:focus-visible,
.akbarPhoneDialog .akbarMessenger input:focus-visible,
.akbarPhoneDialog .akbarMessenger textarea:focus-visible{
 outline:2px solid var(--msg-green);outline-offset:2px;
}
.akbarPhoneDialog .akbarMessengerHeader{
 display:flex!important;align-items:center!important;gap:8px!important;
 width:100%!important;min-width:0;min-height:66px;
 padding:9px 10px!important;margin:0!important;
 background:#0b141a!important;border:0!important;border-bottom:1px solid #243037!important;
 position:relative!important;inset:auto!important;z-index:2;
 color:var(--msg-ink);box-shadow:none!important;
}
.akbarPhoneDialog .akbarMessengerHeader .akbarMessengerTitle{
 flex:1 1 auto;min-width:0;font-size:21px;font-weight:550;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.akbarPhoneDialog .akbarMessengerIcon{
 border:0;background:transparent!important;color:#e9edef!important;
 min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;
 padding:6px!important;border-radius:50%!important;font-size:28px!important;
}
.akbarPhoneDialog .akbarMessengerIcon:active,
.akbarPhoneDialog .akbarMessengerNavItem:active{background:#27343c!important}
.akbarPhoneDialog .akbarMessengerWork{
 flex:1;overflow:auto;overscroll-behavior:contain;min-height:0;
 background:#0b141a;padding:8px 13px 12px;
}
.akbarPhoneDialog .akbarMessenger .akbarMessengerSearch{
 display:block;width:100%!important;min-height:47px!important;
 padding:10px 16px!important;margin:4px 0 8px!important;
 border:0!important;border-radius:25px!important;
 background:#202c33!important;color:#f1f4f6!important;
 font-size:16px!important;box-shadow:none!important;
}
.akbarPhoneDialog .akbarMessengerSearch::placeholder{color:#93a2aa!important}
.akbarPhoneDialog .akbarMessengerSection{
 font-size:25px;line-height:1.2;font-weight:530;
 margin:18px 0 12px;color:#f2f5f7;
}
.akbarPhoneDialog .akbarMessengerRow{
 display:flex;align-items:center;gap:3px;min-height:77px;
 border-bottom:1px solid #202b32;padding:3px 0;
}
.akbarPhoneDialog .akbarMessengerRowMain{
 min-width:0;flex:1;display:flex;align-items:center;gap:11px;
 text-align:start;border:0;background:transparent!important;
 padding:5px 0!important;min-height:70px;
}
.akbarPhoneDialog .akbarMessengerAvatar{
 display:grid;place-items:center;overflow:hidden;flex:0 0 49px;
 width:49px;height:49px;border-radius:50%;
 color:#f2dfc5;background:#3a3028;font-size:25px;
}
.akbarPhoneDialog .akbarMessengerAvatar img{
 display:block;width:100%;height:100%;object-fit:cover;
}
.akbarPhoneDialog .akbarMessengerRowCopy{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.akbarPhoneDialog .akbarMessengerRowCopy strong{
 font-size:18px;font-weight:510;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.akbarPhoneDialog .akbarMessengerRowCopy small{
 color:var(--msg-muted);font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.akbarPhoneDialog .akbarMessengerCallIcon{
 display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;
 padding:0!important;border:0;border-radius:50%;
 background:transparent;color:#e9edef;font-size:26px;
}
.akbarPhoneDialog .akbarMessengerUnread{
 display:grid;place-items:center;background:#25d366;color:#052d1d;
 width:23px;height:23px;border-radius:50%;font-size:12px
}
.akbarPhoneDialog .akbarMessengerEmpty{color:#a4afb6;text-align:center;padding:16px 10px;margin:0}
.akbarPhoneDialog .akbarMessengerSearchResults:not(:empty){border-bottom:1px solid #3b494f}
.akbarPhoneDialog .akbarMessengerCallActions{
 display:flex;gap:7px;justify-content:space-between;flex-wrap:wrap;
 margin:8px 0 16px;
}
.akbarPhoneDialog .akbarMessengerRoundAction{
 min-height:48px;flex:1 1 110px;border:0;border-radius:23px;
 background:#202a30;color:#e7ecef;padding:8px 12px!important;font-weight:550;
}
.akbarPhoneDialog .akbarMessengerAction{
 display:block;width:100%;min-height:48px;text-align:start;
 border:0;border-bottom:1px solid #24333c;background:transparent;padding:12px;
}
.akbarPhoneDialog .akbarMessengerNav{
 flex:0 0 auto;display:flex;justify-content:space-around;gap:3px;
 padding:6px 4px calc(7px + env(safe-area-inset-bottom,0px));
 background:#0b141a;border-top:1px solid #202d35;
}
.akbarPhoneDialog .akbarMessengerNavItem{
 display:flex;align-items:center;justify-content:center;flex-direction:column;
 flex:1;min-width:0;min-height:60px;padding:4px 1px!important;
 gap:3px;border:0;background:transparent!important;
 color:#e9edef;font-size:12px!important;
}
.akbarPhoneDialog .akbarMessengerNavItem b{
 display:grid;place-items:center;width:57px;height:36px;font-size:27px;
 border-radius:22px;font-weight:400;
}
.akbarPhoneDialog .akbarMessengerNavItem[aria-current=true] b{background:#263033!important}
.akbarPhoneDialog .akbarMessengerNavItem[aria-current=true] span{font-weight:800}
.akbarPhoneDialog .akbarMessengerTimeline{
 flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;
 align-items:stretch;gap:6px;padding:13px 11px 24px;
 overscroll-behavior:contain;scrollbar-width:thin;background-color:#0b141a;
 background-image:
  radial-gradient(circle at 13px 17px,#24343b52 1px,transparent 2px),
  radial-gradient(circle at 66px 50px,#26343b4a 2px,transparent 3px),
  linear-gradient(35deg,transparent 47%,#1b2a3350 48%,transparent 49%);
 background-size:90px 85px,145px 128px,190px 165px;
}
.akbarPhoneDialog .akbarMessengerBubble{
 position:relative;align-self:flex-start;max-width:min(85%,460px);
 padding:7px 10px 5px;display:flex;flex-direction:column;gap:2px;
 background:#202c33;color:#e9edef;border-radius:10px;
 font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere;
 box-shadow:0 1px 2px #0005;
}
.akbarPhoneDialog .akbarMessengerBubble.sent{
 background:#144d3b;align-self:flex-end;
 border-start-end-radius:3px;
}
.akbarPhoneDialog .akbarMessengerBubble.received{border-start-start-radius:3px}
.akbarPhoneDialog .akbarMessengerStamp{
 font-size:11px;color:#c4cfd0b7;text-align:end;align-self:flex-end;line-height:1.25;padding-inline-start:17px;
}
.akbarPhoneDialog .akbarMessengerBubble.sent .akbarMessengerStamp{color:#9fcbbe}
.akbarPhoneDialog .akbarMessengerPhoto{
 display:block;max-width:100%;width:auto;max-height:360px;
 object-fit:contain;border-radius:4px;background:#122923;
}
.akbarPhoneDialog .akbarMessengerQueued{opacity:.75;border:1px dashed #9fcbbe}
.akbarPhoneDialog .akbarMessengerRetry{
 padding:5px 2px!important;min-height:36px;text-decoration:underline;
 text-align:start;color:#e1f7ee;background:transparent;border:0;
}
.akbarPhoneDialog .akbarMessengerStatus{
 margin:0;min-height:0;max-height:54px;overflow:auto;
 background:#101c22;color:#aad6bb;font-size:12px;padding:0 9px;
}
.akbarPhoneDialog .akbarMessengerStatus:empty{display:none}
.akbarPhoneDialog .akbarMessengerComposer{
 display:flex;align-items:flex-end;gap:5px;
 background:#0b141a;padding:7px 9px calc(8px + env(safe-area-inset-bottom,0px));
}
.akbarPhoneDialog .akbarMessengerTyping{
 flex:1;min-width:0;min-height:45px;max-height:130px;
 border:0!important;border-radius:24px!important;
 background:#202c33!important;color:#e9edef!important;
 padding:11px 14px!important;font-size:16px!important;resize:vertical;
}
.akbarPhoneDialog .akbarMessengerSend{
 display:grid;place-items:center;flex:0 0 45px;
 width:45px;height:45px;min-height:45px;
 border:0;border-radius:50%!important;background:#25d366;color:#062f1e!important;
 font-size:23px!important;padding:0!important;
}
.akbarPhoneDialog .akbarMessengerFile{display:none!important}
.akbarPhoneDialog .akbarMessenger[dir=rtl] .akbarMessengerRowMain{text-align:right}
.akbarPhoneDialog .akbarMessenger[dir=rtl] .akbarMessengerBubble.sent{align-self:flex-start}
.akbarPhoneDialog .akbarMessenger[dir=rtl] .akbarMessengerBubble.received{align-self:flex-end}
@media(min-width:750px){
 .akbarPhoneDialog[open]:has(.akbarMessenger){
  width:min(650px,100vw)!important;height:min(900px,100dvh)!important;
  inset:0!important;margin:auto!important;box-shadow:0 20px 80px #000a!important;
 }
}
@media(prefers-reduced-motion:reduce){
 .akbarPhoneDialog .akbarMessenger *{animation:none!important;scroll-behavior:auto!important}
}

.akbarPhoneDialog .akbarMessengerSchedule{
 display:flex;align-items:stretch;gap:7px;flex-wrap:wrap;
 padding:10px;margin:0 0 7px;border:1px solid #365d4e;
 background:#15252a;border-radius:10px;
}
.akbarPhoneDialog .akbarMessengerSchedule label{flex:1 1 100%;color:#d8e9df;font-size:14px}
.akbarPhoneDialog .akbarMessengerSchedule input{
 flex:1 1 140px;min-height:44px;color:#e9edef!important;
 background:#202c33!important;border:1px solid #405d58!important;
 padding:7px;border-radius:6px;font-size:14px;
}
.akbarPhoneDialog .akbarMessengerSchedule button{
 flex:0 1 180px;border-radius:7px;color:#0c281e!important;background:#25d366!important;
 text-align:center;min-height:44px;
}

/* Messenger history stays inside the chat, accessible without changing views. */
.akbarPhoneDialog .akbarMessengerLoadMore{
  align-self:center;min-height:44px;margin:4px auto 14px;
  padding:8px 16px;border:1px solid #315b4d;border-radius:24px;
  background:#18272b;color:#9bf2c7;font-weight:700;
}
.akbarPhoneDialog .akbarMessengerLoadMore:hover{
 background:#254237;color:#effff8;
}
.akbarPhoneDialog .akbarMessengerLoadMore:focus-visible{
 outline:3px solid #25d366;outline-offset:2px;
}

/* P2P attachments — same dark Akbar messenger palette, no global menu changes. */
.akbarPhoneDialog .akbarP2PTray{
 flex:0 0 auto;max-height:min(45dvh,370px);overflow-y:auto;min-height:0;
 background:#0d1c21;border-block:1px solid #233c36;
}
.akbarPhoneDialog .akbarP2PDetails{margin:0;padding:0 12px}
.akbarPhoneDialog .akbarP2PDetails summary{
 display:flex;align-items:center;min-height:44px;padding:9px 5px;
 color:#b9e4d1;font-size:13px;font-weight:650;cursor:pointer;
}
.akbarPhoneDialog .akbarP2PDetails[open] summary{border-bottom:1px solid #30453d}
.akbarPhoneDialog .akbarP2PList{display:grid;gap:8px;padding:8px 0 10px}
.akbarPhoneDialog .akbarP2PRow{
 background:#192a2e;border-radius:10px;padding:10px;display:flex;
 align-items:center;flex-wrap:wrap;gap:10px;overflow:hidden;
}
.akbarPhoneDialog .akbarP2PInfo{display:grid;min-width:150px;flex:1;gap:4px}
.akbarPhoneDialog .akbarP2PInfo strong{font-size:14px;overflow-wrap:anywhere}
.akbarPhoneDialog .akbarP2PInfo small{color:#a1b0b3;font-size:12px}
.akbarPhoneDialog .akbarP2PProgress{height:7px;width:100%;accent-color:#25d366}
.akbarPhoneDialog .akbarP2PCaption{color:#9fd5b6!important}
.akbarPhoneDialog .akbarP2PActions{display:flex;gap:6px;flex-wrap:wrap}
.akbarPhoneDialog .akbarP2PButton{
 border:1px solid #527e6e!important;border-radius:16px!important;
 background:#194838!important;color:#f1fffa!important;
 padding:7px 11px!important;min-height:42px!important;font-size:12px!important;
 font-weight:650!important;
}
.akbarPhoneDialog .akbarP2PButton:focus-visible{
 outline:2px solid #25d366!important;outline-offset:2px!important;
}
.akbarPhoneDialog .akbarP2PNotice{
 margin:0;padding:4px 5px;color:#b7e1c4;font-size:12px;
 overflow-wrap:anywhere;
}
.akbarPhoneDialog .akbarP2PNotice:empty{display:none}
.akbarPhoneDialog .akbarP2PInput{display:none!important}
.akbarPhoneDialog .akbarMessengerComposer .akbarMessengerIcon[disabled]{
 opacity:.35;cursor:not-allowed;
}

/* Direct phone attachments are received without a confirmation gate. */
.akbarPhoneDialog .akbarP2PPreviewHost{max-height:37dvh;overflow-y:auto}
.akbarPhoneDialog .akbarP2PLocalPreview{
 border-radius:10px;background:#0b141a;border:1px solid #355647;
 padding:8px;margin:8px 0;display:grid;gap:8px;
}
.akbarPhoneDialog .akbarP2PLocalPreview :is(video,img,audio){
 display:block;width:100%;max-height:30dvh;object-fit:contain;
}
.akbarPhoneDialog .akbarP2PLocalPreview a{color:#81d9b0;overflow-wrap:anywhere}
.akbarPhoneDialog .akbarP2PRow{max-width:100%}
.akbarPhoneDialog .akbarMessengerHeader .akbarMessengerIcon:disabled{
 opacity:.3;cursor:not-allowed;
}
.akbarPhoneDialog .akbarMessengerComposer :is(button,textarea):disabled{
 opacity:.5;cursor:not-allowed;
}
