/* Shared in-phone call presentation: one visual layer for scripted and ordinary calls. */
.tel-call-screen{
 background:radial-gradient(ellipse 90% 80% at 50% 8%,#535860 0%,#30333c 45%,#11151d 100%);
 color:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:center;
 box-sizing:border-box;padding:clamp(65px,11vh,120px) 25px max(50px,env(safe-area-inset-bottom,0px));
 text-align:center;gap:20px;
}
.tel-call-identity{width:100%;max-width:360px;min-height:0}
.tel-call-identity small{display:block;color:#e5e7eccc;font-size:15px;font-weight:400;letter-spacing:.2px}
.tel-call-identity h1{font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;font-size:clamp(30px,8vw,40px);font-weight:400;line-height:1.2;letter-spacing:-.8px;margin:17px 0 8px;overflow-wrap:anywhere}
.tel-call-identity p{font-size:16px;color:#dee1e5c9;margin:0}
.tel-call-caption{width:min(100%,340px);min-height:100px;margin:auto 0;line-height:1.7}
.tel-call-caption small{font-size:14px;color:#dee1e5c9}
.tel-call-caption p{font-size:20px;margin:8px 0 0;overflow-wrap:anywhere}
.tel-call-bottom{display:flex;flex-direction:column;gap:18px;align-items:center;width:100%;margin-top:auto}
.tel-call-actions{display:flex;justify-content:space-around;align-items:center;gap:48px;width:min(100%,310px)}
.tel-call-action{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:88px;border:0;padding:4px;background:transparent;color:white;cursor:pointer;touch-action:manipulation}
.tel-call-action>span{width:74px;height:74px;border-radius:50%;display:grid;place-items:center;font:32px/1 -apple-system,BlinkMacSystemFont,Arial,sans-serif}
.tel-call-action.is-answer>span{background:#34c759;color:#fff}
.tel-call-action.is-decline>span{background:#ff3b30;color:#fff}
.tel-call-action.is-secondary>span{background:#60646b;color:#fff}
.tel-call-action small{font-size:15px;color:#fff;letter-spacing:.2px}
.tel-call-action.is-decline svg{transform:rotate(135deg)}
.tel-call-action svg{display:block}
.tel-call-action:active>span{filter:brightness(1.2);transform:scale(.96)}
.tel-call-action:focus-visible,.tel-call-resume:focus-visible{outline:2px solid #fff;outline-offset:3px}
.tel-call-auto{min-height:18px;font-size:12px;color:#cad0d5;letter-spacing:.1px;margin:0}
.tel-call-resume{border:1px solid #ffffff69;background:#ffffff18;border-radius:25px;color:#fff;min-height:45px;padding:10px 25px;font-size:15px;cursor:pointer}
.tel-call-island{color:#8cf2ab;background:#0b2018;border:1px solid #2c8350;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-size:13px;min-width:108px;min-height:32px;pointer-events:auto;border-radius:22px}
.tel-call-record-dot{display:inline-block;width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#ff453a;box-shadow:0 0 8px #ff453a80;animation:tel-record-blink 1s step-end infinite}
@keyframes tel-record-blink{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.tel-call-record-dot{animation:none}}
.mc-voice-avatar{align-items:center!important;min-height:34px}
.mc-voice-avatar .mc-avatar{margin:1px 0}
.mc-session-divider.is-terminal-status{color:#a3e6bb;font:12px/1.7 monospace;letter-spacing:.2px;text-align:left;padding:9px 12px;white-space:pre-wrap}
@media(max-height:640px){.tel-call-screen{padding-top:50px;padding-bottom:38px}.tel-call-action>span{width:66px;height:66px}.tel-call-actions{gap:32px}}
.tel-green-screen{background:#056b2e;animation:none;padding:0}.tel-green-screen:after{display:none}.mc-session-divider{display:block;text-align:center;color:#8eb8a1;font:10px monospace;letter-spacing:2px;padding:24px 0;clear:both}.mc-wallet-list button{width:100%;text-align:left;display:flex;justify-content:space-between;gap:15px;padding:20px;color:#c3d4c9;border:1px solid #42634c;background:#091d12;margin:12px 0}.mc-wallet-list small{display:block;color:#789782}.mc-wallet-state{color:#b59e73;font-size:12px}.mc-wallet-bind .mc-login-panel{margin-top:40px}.mc-wallet-transfer-confirm{margin:20px 0;padding:20px;border:1px solid #365440}.mc-wallet-transfer-confirm button{margin:10px 10px 0 0}@keyframes tel-green-pulse{from{background-color:#043d17}to{background-color:#0c642a}}@media(prefers-reduced-motion:reduce){.tel-green-screen{animation:none}}

#day-transition-layer:has(.tel-green-screen){background:#06120a}.tel-green-screen{inset:0}

/* Authored Phone calls use the iOS contact / two-row call-control hierarchy. */
.tel-native-call{isolation:isolate;overflow:hidden;background:#25252a;padding:68px 26px max(28px,env(safe-area-inset-bottom));gap:0;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif}
.tel-native-backdrop{position:absolute;inset:0;z-index:-1;overflow:hidden;background:radial-gradient(ellipse at 50% 0,#64616a,#3d3b45 44%,#29282f 100%);pointer-events:none}
.tel-native-backdrop:after{content:"";position:absolute;inset:0;background:linear-gradient(#25232a38,#17171cb3 68%,#17171cd9)}
.tel-native-minimize{position:absolute;top:22px;left:20px;width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:50%;background:#ffffff15;color:#fff;cursor:pointer;touch-action:manipulation}
.tel-native-minimize svg{width:22px;height:22px}
.tel-native-identity{flex:0 0 auto;display:flex;flex-direction:column;align-items:center}
.tel-native-portrait{width:80px;height:80px;border-radius:50%;overflow:hidden;display:flex;align-items:end;justify-content:center;background:linear-gradient(#a9a6ae,#74717b);color:#e2dfe6}
.tel-native-portrait svg{width:72%;height:83%;display:block}
.tel-native-identity h1{font-size:34px;font-weight:400;letter-spacing:.1px;line-height:1.2;margin:17px 0 7px}
.tel-native-identity p{font-size:16px;line-height:1.3;font-variant-numeric:tabular-nums;color:#ffffffa8}
.tel-native-caption{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0;width:100%;max-width:326px;min-height:84px;padding:20px 0 26px;box-sizing:border-box}
.tel-native-caption small{font-size:13px;line-height:1.4;color:#ffffff85;letter-spacing:.2px}
.tel-native-caption p{font-size:21px;font-weight:400;line-height:1.55;letter-spacing:.1px;margin:7px 0 0;text-wrap:pretty;color:#fff}
.tel-native-bottom{flex:0 0 auto;width:100%;display:flex;flex-direction:column;align-items:center;gap:15px}
.tel-native-tools{width:100%;max-width:306px;display:grid;grid-template-columns:repeat(3,1fr);column-gap:20px;row-gap:20px}
.tel-native-tool{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:start;gap:8px;padding:0;border:0;background:transparent;color:#fff;min-width:0;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.tel-native-tool>span{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:#ffffff26;box-shadow:inset 0 0 0 .5px #ffffff09}
.tel-native-tool svg{width:29px;height:29px;display:block}
.tel-native-tool small{font-size:13px;font-weight:400;line-height:1.3;white-space:nowrap;color:inherit}
.tel-native-tool:disabled{cursor:default;color:#ffffff57}
.tel-native-tool:disabled>span{background:#ffffff10}
.tel-native-tool.is-selected>span{color:#17171c;background:#fff}
.tel-native-tool.is-end>span{background:#ff3b30;box-shadow:none}
.tel-native-tool.is-end svg{width:36px;height:36px}
.tel-native-tool.is-answer>span{background:#30d158;box-shadow:none}
.tel-native-tool.is-answer svg{transform:rotate(-135deg);width:36px;height:36px}
.tel-native-tool:not(:disabled):active>span{opacity:.75}
.tel-native-minimize:focus-visible,.tel-native-tool:focus-visible{outline:2px solid #fff;outline-offset:5px}
.tel-native-incoming{display:flex;width:100%;max-width:286px;justify-content:space-between;padding-bottom:12px}
.tel-native-call:not(.is-connected) .tel-native-portrait{width:96px;height:96px}
.tel-native-call:not(.is-connected) .tel-native-identity{margin-top:30px}
@media(max-height:700px){.tel-native-call{padding-top:54px;padding-bottom:23px}.tel-native-portrait{width:58px;height:58px}.tel-native-identity h1{font-size:30px;margin-top:13px}.tel-native-caption{padding:16px 0 20px}.tel-native-caption p{font-size:19px}.tel-native-tool>span{width:62px;height:62px}.tel-native-tools{max-width:286px;row-gap:15px}.tel-native-minimize{top:14px;width:34px;height:34px}}
@media(max-width:350px){.tel-native-call{padding-left:19px;padding-right:19px}.tel-native-tools{column-gap:13px}.tel-native-caption p{font-size:19px}.tel-native-tool>span{width:64px;height:64px}}


/* Native iPhone layout for standard calls; cinematic calls keep .tel-native-call. */
.tel-call-screen.tel-standard-call{
 position:absolute;inset:0;width:100%;height:100%;
 isolation:isolate;overflow:hidden;box-sizing:border-box;
 justify-content:flex-start;align-items:center;gap:0;text-align:center;
 padding:0 24px max(35px,env(safe-area-inset-bottom,0px));
 background:#292a32;color:#fff;
 font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",sans-serif;
}
.tel-standard-backdrop{
 position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:radial-gradient(ellipse 88% 75% at 50% 12%,#777983 0%,#575963 34%,#333640 69%,#161a24 100%);
}
.tel-standard-backdrop:after{
 content:"";position:absolute;inset:0;
 background:linear-gradient(180deg,#ffffff0c 0%,transparent 29%,#12151e80 100%);
}
.tel-standard-back{
 position:absolute;left:14px;top:18px;z-index:1;
 display:flex;align-items:center;gap:2px;min-height:44px;
 padding:6px 9px;border:0;background:transparent;color:#f7f7fa;
 font:400 16px/1.1 -apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif;
 cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;
}
.tel-standard-back svg{width:23px;height:23px;opacity:.9}
.tel-standard-identity{
 display:flex;flex-direction:column;align-items:center;
 width:100%;min-height:0;margin-top:clamp(97px,16vh,158px);
 padding:0 10px;box-sizing:border-box;
}
.tel-standard-identity .tel-standard-overline{
 font-size:15px;line-height:1.35;color:#f3f3f6b8;margin-bottom:13px;
}
.tel-standard-identity h1{
 margin:0;font-size:clamp(34px,9vw,43px);font-weight:400;
 line-height:1.2;letter-spacing:-.7px;color:#fff;overflow-wrap:anywhere;
}
.tel-standard-identity p{
 margin:13px 0 0;color:#eeeff4b8;font-size:16px;
 font-weight:400;font-variant-numeric:tabular-nums;line-height:1.35;
}
.tel-standard-voice{
 display:flex;align-items:center;justify-content:center;gap:4px;
 height:20px;margin:22px auto 0;color:#ffffffb8;
}
.tel-standard-voice i{
 display:block;width:3px;height:7px;border-radius:3px;background:currentColor;
 animation:tel-standard-voice-pulse .72s ease-in-out infinite alternate;
}
.tel-standard-voice i:nth-child(2){height:11px;animation-delay:-.48s}
.tel-standard-voice i:nth-child(3){height:17px;animation-delay:-.2s}
.tel-standard-voice i:nth-child(4){height:12px;animation-delay:-.55s}
.tel-standard-voice i:nth-child(5){height:8px;animation-delay:-.3s}
@keyframes tel-standard-voice-pulse{from{transform:scaleY(.45);opacity:.5}to{transform:scaleY(1.1);opacity:1}}
.tel-standard-bottom{
 width:100%;display:flex;flex-direction:column;align-items:center;
 gap:16px;box-sizing:border-box;margin-top:auto;
 padding-bottom:clamp(24px,8vh,72px);
}
.tel-standard-actions{
 display:flex;align-items:start;justify-content:center;
 gap:clamp(64px,17vw,120px);width:100%;
}
.tel-standard-action{
 appearance:none;border:0;box-shadow:none;background:transparent;
 display:flex;flex-direction:column;align-items:center;gap:11px;
 min-width:82px;padding:4px;color:#fff;font-family:inherit;cursor:pointer;
 touch-action:manipulation;-webkit-tap-highlight-color:transparent;
}
.tel-standard-action>span{
 display:grid;place-items:center;width:78px;height:78px;border-radius:50%;
 background:#5c606a;color:#fff;
}
.tel-standard-action.is-end>span{background:#ff3b30}
.tel-standard-action.is-answer>span{background:#34c759}
.tel-standard-action svg{display:block;width:36px;height:36px;stroke-width:2.4}
.tel-standard-action.is-end svg{transform:rotate(135deg)}
.tel-standard-action small{font-size:14px;line-height:1.3;color:#fff;font-weight:400}
.tel-standard-action:active>span{opacity:.72;transform:scale(.96)}
.tel-standard-action:focus-visible,.tel-standard-back:focus-visible{
 outline:2px solid white;outline-offset:4px;border-radius:12px;
}
@media(max-height:670px){
 .tel-standard-identity{margin-top:80px}
 .tel-standard-bottom{padding-bottom:14px}
 .tel-standard-action>span{width:68px;height:68px}
}
@media(prefers-reduced-motion:reduce){.tel-standard-voice i{animation:none}}

/* One system-phone surface: bypass the centered desktop mockup for incoming calls. */
body:has(#phone .tel-standard-call){display:block;background:#151923}
#phone:has(.tel-standard-call){
 position:fixed;inset:0;width:100vw;width:100dvw;height:100vh;height:100dvh;
 min-height:0;max-width:none;margin:0;border-radius:0;box-shadow:none;
}
#phone:has(.tel-standard-call) #day-transition-layer{inset:0;z-index:80} /* Phone must cover message banners (z=60–62). */
.tel-standard-call .tel-standard-identity{margin-top:clamp(98px,15dvh,160px)}
.tel-standard-call .tel-standard-identity h1{font-size:clamp(36px,10vw,48px);font-weight:400;letter-spacing:-1.2px}
.tel-standard-call .tel-standard-bottom{padding-bottom:clamp(27px,8dvh,85px)}
.tel-standard-call .tel-standard-actions{gap:clamp(60px,16vw,132px)}
@media(max-height:680px){.tel-standard-call .tel-standard-identity{margin-top:65px}.tel-standard-call .tel-standard-bottom{padding-bottom:15px}}
