/* Familiar phone chrome. App shortcuts live on the home screen, never inside apps. */
.phone-device{--phone-blue:#0067d8;--phone-neutral:#f2f2f7;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.phone-device button:focus-visible{outline-color:var(--phone-blue)}
.phone-device .phone-status-bar{font-size:14px;font-weight:650;height:38px;min-height:38px;padding:0 22px}
.phone-status-icons>svg{width:17px;height:17px}
.phone-status-icons{gap:5px}
.phone-device .phone-bottom-bar{display:block;background:#fff;border:0;flex:none}
.phone-device .phone-home-button{width:100%;min-height:38px;padding:10px 20px 8px;gap:4px;touch-action:none}
.phone-device .phone-home-indicator{width:120px;height:4px;background:#17191c}
.phone-device .phone-home-button-label{font-size:9px;color:#66717c}
.phone-at-home .phone-status-bar,.phone-at-home .phone-bottom-bar{background:#5276a4;color:white}
.phone-at-home .phone-battery{border-color:white}.phone-at-home .phone-battery:before,.phone-at-home .phone-battery:after{background:white}
.phone-at-home .phone-home-indicator{background:white}.phone-at-home .phone-home-button-label{color:#fff}
.phone-at-home .phone-home-button:hover{background:#ffffff14}
.phone-device .phone-screen-home{background:radial-gradient(ellipse at 80% 5%,#a6ceec55 0 26%,transparent 27%),radial-gradient(ellipse at 10% 90%,#91bfe95c 0 35%,transparent 36%),linear-gradient(155deg,#5276a4,#729ed0 50%,#244269)}
.phone-device .phone-home{padding:20px 20px 12px;gap:24px;min-height:100%}
.phone-home-widgets{display:grid;grid-template-columns:1fr 1fr;gap:14px;flex:none}
.phone-date-widget,.phone-clock-widget{height:128px;padding:15px;border-radius:22px;display:flex;flex-direction:column;box-shadow:0 5px 16px #162b441c}
.phone-date-widget{background:#fffcf9;color:#202124}
.phone-date-widget>span{font-size:11px;color:#e24747;font-weight:600}.phone-date-widget>strong{font-size:49px;line-height:1.2;font-weight:400}.phone-date-widget>small{font-size:12px;color:#68717b}
.phone-clock-widget{background:#193652b5;color:#fff;justify-content:center;text-align:center}
.phone-clock-widget>strong{font-size:31px;line-height:1.5;font-weight:400;letter-spacing:-1px}.phone-clock-widget>span{font-size:11px;line-height:1.5;color:#e5effa}
.phone-device .phone-notification{min-height:0;background:#f8faffdf;padding:13px 15px;border:0;border-radius:19px;backdrop-filter:blur(16px);gap:5px}
.phone-device .phone-notification-label{font-size:10px}.phone-device .phone-notification-label>svg{height:18px;width:18px;padding:3px}.phone-device .phone-notification>strong{font-size:14px}.phone-device .phone-notification>span:not(:first-child){font-size:12px}
.phone-device .phone-home-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 8px}
.phone-device .phone-app-icon{font-size:11px!important;gap:6px;line-height:1.3}
.phone-device .phone-icon-tile{height:58px;width:58px;border-radius:15px}
.phone-device .phone-icon-tile>svg{width:36px;height:36px}
.phone-device .phone-icon-blue{background:#fff;color:#1597df}
.phone-device .phone-icon-mail-blue{background:linear-gradient(#48b6f5,#087ffc);color:white}
.phone-device .phone-icon-folder{background:#fff;color:#199ce8}
.phone-device .phone-icon-gray{background:#e2d5c3;color:#6f655e}
.phone-home-spacer{flex:1;min-height:12px}
.phone-home-dock{flex:none;display:flex;justify-content:space-evenly;gap:20px;padding:16px 20px 13px;border:1px solid #ffffff38;border-radius:28px;background:#dce8f633;backdrop-filter:blur(20px)}
.phone-home-dock .phone-app-icon{flex:none;min-width:74px}
.phone-device .phone-app-bar{min-height:60px;padding:10px 16px;background:#f8f8fbd9;border-bottom:1px solid #dedee5;backdrop-filter:blur(18px)}
.phone-device .phone-app-bar h2{font-size:26px;font-weight:720}.phone-device .phone-app-bar p{font-size:12px}
.phone-device .phone-back{font-size:14px!important;color:var(--phone-blue)!important;max-width:110px;min-height:44px;padding:4px 0}
.phone-device .phone-back>span{max-width:none}.phone-device .phone-back svg{width:22px;height:22px}
.phone-device .phone-conversation-header{min-height:100px;justify-content:center;padding:6px 12px}
.phone-conversation-header>.phone-back{position:absolute;left:12px;top:12px;max-width:100px}
.phone-contact-identity{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;padding:3px 4px 3px 100px;max-width:100%;min-height:82px}
.phone-device .phone-contact-identity>.phone-avatar{height:34px;width:34px;background:linear-gradient(#a9aeb8,#858c99);color:#fff;font-size:17px}
.phone-contact-identity>strong{font-size:13px;line-height:1.4;max-width:200px;font-weight:600}.phone-contact-identity>strong>span{color:#9b9da4;padding-left:4px}
.phone-contact-identity>small{font-size:10px;color:var(--phone-blue)}
.phone-device .phone-chat{background:#fff;padding:16px 14px 22px;gap:9px;min-height:calc(100% - 100px)}
.phone-device .phone-chat-date{font-size:10px;color:#86868e;margin:2px 0 12px;letter-spacing:0;font-weight:500}
.phone-device .phone-bubble{border:0;background:#e9e9eb;box-shadow:none;border-radius:19px 19px 19px 5px;font-size:15px;line-height:1.45;padding:11px 14px;max-width:89%;color:#17171b}
.phone-device .phone-request{max-width:89%;width:auto}
.phone-device .phone-link-button{background:transparent!important;color:#0064d5!important;border-radius:0;padding:2px 0;min-height:44px;text-decoration:underline;text-underline-offset:3px;line-height:1.5;font-size:15px!important;gap:8px}
.phone-device .phone-link-button svg{width:16px;height:16px;flex:none}
.phone-device .phone-link-details{font-size:12px;color:#425f82;padding:2px 0;min-height:36px}
.phone-device .phone-detail{background:#f2f2f7;border:1px solid #dcdce3;border-radius:14px;padding:16px;max-width:100%}
.phone-device .phone-detail>strong{font-size:14px;line-height:1.5;margin:8px 0}
.phone-detail-close{background:transparent;border:0;color:var(--phone-blue)!important;font-size:13px!important;min-height:44px;padding:5px 0}
.phone-device .phone-chat .message-game-footer{border:1px solid #d9dfe7;border-radius:14px;background:#fff;padding:12px 14px;width:100%;margin-top:12px;align-items:stretch}
.phone-device .phone-chat .message-game-footer>p{font-size:13px;line-height:1.5;color:#27354a;font-weight:650;margin:0 0 6px}
.phone-device .phone-chat .message-game-footer .button-row{display:flex;flex-direction:column;gap:0}
.phone-device .phone-chat .message-game-footer button{border:0;border-bottom:1px solid #e8ebf0;border-radius:0;background:transparent;box-shadow:none;color:var(--phone-blue);font-size:15px;min-height:46px;padding:10px 0;text-decoration:none;justify-content:flex-start;flex:none;gap:8px}
.phone-device .phone-chat .message-game-footer button:last-child{border-bottom:0}
.phone-device .phone-chat .message-game-footer button svg{display:block;width:17px;height:17px}
.phone-device .phone-conversation{padding:17px 16px;min-height:88px;background:#fff}
.phone-device .phone-conversation-copy>strong{font-size:15px}.phone-device .phone-conversation-copy>span{font-size:13px}.phone-device .phone-conversation-copy time{font-size:11px}
.phone-device .phone-unread:before{width:7px;height:7px;background:var(--phone-blue)}
.phone-device .phone-email-chat{gap:15px}.phone-device .phone-email-chat>.phone-bubble{background:transparent;border-radius:0;max-width:100%;padding:0;font-size:15px;line-height:1.6}
.phone-device .phone-browser-chrome{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:6px;padding:10px 12px;background:#f8f8fbe8;backdrop-filter:blur(18px);border-bottom:1px solid #dedee5}
.phone-device .phone-url-bar{margin:0;flex:1;border-radius:12px;min-height:44px;padding:9px 12px;background:#e9e9ee;font-size:12px;color:#343844}
.phone-bookmarks{border:0;background:transparent;color:var(--phone-blue)!important;width:44px;height:44px;display:grid;place-items:center;flex:none}
.phone-device .phone-browser-page{padding:24px 16px}.phone-device .phone-browser-page>h3{font-size:27px}
.phone-device .phone-favorite{background:#f4f4f8;border:0}.phone-device .phone-favorite-logo{background:white;color:#3682c7}.phone-device .phone-favorite strong{font-size:14px}.phone-device .phone-favorite small{font-size:11px}
.phone-my-card{padding:20px 16px;display:flex;align-items:center;gap:14px;border-bottom:1px solid #e5e5eb}.phone-my-card strong,.phone-my-card small{display:block}.phone-my-card strong{font-size:18px}.phone-my-card small{font-size:12px;color:#8e8e93;margin-top:3px}
.phone-device .phone-contacts-list{padding:0 16px;border:0}
.phone-device .phone-contact-row{padding:16px 0;min-height:64px;border-bottom:1px solid #e5e5eb}.phone-device .phone-contact-row>span:first-child{flex:1}.phone-device .phone-contact-row strong{font-size:16px}.phone-device .phone-contact-row small{font-size:12px}
.phone-device .phone-contact-profile{padding:24px 16px;background:#f2f2f7}
.phone-device .phone-avatar-large{height:76px;width:76px;font-size:30px;background:linear-gradient(#a9aeb8,#858c99);color:white}
.phone-device .phone-contact-profile>h3{font-size:28px;font-weight:500;margin-bottom:6px}.phone-device .phone-contact-profile>p{font-size:13px;margin-bottom:22px}
.phone-contact-number-card{background:#fff;border-radius:12px;padding:15px;text-align:left;margin:14px 0}.phone-contact-number-card>span{font-size:12px;color:#45454f}
.phone-device .phone-contact-number{color:var(--phone-blue);font-size:18px;margin:6px 0 0;font-weight:450}
.phone-device .phone-call-button{width:max-content;max-width:100%;margin:0 auto;min-height:48px;background:white;color:var(--phone-blue)!important;border:1px solid #e4e4eb;padding:12px 25px;font-size:14px!important}
.phone-device .phone-call-response{margin-top:22px;background:#fff;border:1px solid #e4e4eb;color:#363642}.phone-device .phone-call-response>p{font-size:14px;color:#363642}.phone-device .phone-call-response .phone-label{font-size:10px;color:#737382}
/* Files shows either a folder list or a document preview, as on a phone. */
.phone-files-app>.iv-documents>.iv-folder-header,.phone-files-app .iv-reader-empty{display:none}
.phone-files-app .iv-document-layout{display:block;min-height:0}
.phone-files-app .iv-file-list{max-height:none;overflow:visible;border:0;padding:0 16px}
.phone-files-app .iv-file{min-height:78px;margin:0;border-radius:0;border:0;border-bottom:1px solid #e5e5eb;padding:14px 0;background:#fff;gap:12px}
.phone-files-app .iv-file>svg{color:var(--phone-blue)}
.phone-files-app .iv-file-text strong{font-size:14px}.phone-files-app .iv-file-type,.phone-files-app .iv-file-status,.phone-files-app .iv-file-text>span:last-child{font-size:11px}
.phone-files-app:not(.phone-file-open) .iv-document-reader{display:none}
.phone-files-app.phone-file-open .iv-file-list{display:none}
.phone-files-app.phone-file-open .iv-document-reader{border:0;min-height:0}
.phone-files-app .iv-reader-header .iv-close{display:none}
.phone-files-app .iv-reader-header{padding:20px 16px;background:#f2f2f7}.phone-files-app .iv-reader-header h3{font-size:22px}.phone-files-app .iv-document-body{padding:20px 16px}.phone-files-app .iv-document-body p{font-size:15px;line-height:1.7}
@media(max-width:360px){.phone-device .phone-home{padding:16px 14px 10px;gap:18px}.phone-date-widget,.phone-clock-widget{height:110px;padding:12px}.phone-clock-widget>strong{font-size:27px}.phone-device .phone-icon-tile{height:52px;width:52px}.phone-device .phone-contact-identity{padding-left:86px}.phone-device .phone-back{font-size:12px!important;max-width:90px}}
@media(orientation:landscape) and (max-height:500px){.immersive-simulator .phone-device .phone-status-bar{height:24px;min-height:24px}.immersive-simulator .phone-device .phone-home{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 18px;align-content:start}.phone-home-widgets,.phone-home-spacer{display:none}.phone-device .phone-home-dock{padding:12px 20px;border-radius:22px}.phone-device .phone-home-grid{align-items:center}.immersive-simulator .phone-device .phone-home-button{width:100%;min-height:30px;padding:6px 20px}.phone-device .phone-conversation-header{min-height:84px}.phone-device .phone-contact-identity{min-height:70px}.phone-device .phone-app-bar{min-height:50px;padding-block:4px}}
@media(prefers-reduced-motion:no-preference){.phone-screen{animation:phone-open .15s ease-out}@keyframes phone-open{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:none}}}

.phone-contact-notes{padding:18px 16px;background:#f2f2f7}
.phone-contact-notes>h3{font-size:14px;margin:0 0 10px;color:#71717a;font-weight:500}
.phone-contact-notes>.iv-documents{background:#fff;border-radius:12px;overflow:hidden}
.phone-contact-notes .iv-folder-header,.phone-contact-notes .iv-reader-empty{display:none}
.phone-contact-notes .iv-document-layout{display:block;min-height:0}
.phone-contact-notes .iv-file-list{max-height:none;padding:0;border:0}
.phone-contact-notes .iv-file{border:0;border-bottom:1px solid #e5e5eb;border-radius:0;margin:0;min-height:68px;background:#fff;padding:14px;gap:10px}
.phone-contact-notes .iv-file-text strong{font-size:13px}.phone-contact-notes .iv-file-type,.phone-contact-notes .iv-file-status,.phone-contact-notes .iv-file-text>span:last-child{font-size:10px}
.phone-contact-notes .iv-document-reader{min-height:0;border:0}.phone-contact-notes .iv-reader-header{padding:14px}.phone-contact-notes .iv-reader-header h3{font-size:18px}.phone-contact-notes .iv-document-body{padding:14px}

/* Explicit Android-style Back and Home controls, separate from application tools. */
.phone-device .phone-system-navigation{display:flex;align-items:center;justify-content:space-evenly;gap:20px;padding:3px 28px max(3px,env(safe-area-inset-bottom));border-top:1px solid #dedee5;background:#f8f8fb;min-height:52px}
.phone-device .phone-system-navigation>button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:44px;width:100px;padding:3px 10px;border:0;border-radius:8px;background:transparent;color:#263549;font-size:10px;line-height:1.25;touch-action:manipulation}
.phone-device .phone-system-navigation>button svg{width:22px;height:22px;flex:none}
.phone-device .phone-system-navigation>button:hover{background:#e7ecf3}
.phone-device .phone-system-navigation>button:disabled{opacity:.35;cursor:default}
.phone-device.phone-at-home .phone-system-navigation{border-top-color:#ffffff28;background:#5276a4}
.phone-device.phone-at-home .phone-system-navigation>button{color:white}
.phone-device.phone-at-home .phone-system-navigation>button:hover{background:#ffffff14}
@media(orientation:landscape) and (max-height:500px){.phone-device .phone-system-navigation{min-height:44px;padding-block:0}.phone-device .phone-system-navigation>button{min-height:44px;flex-direction:row;gap:6px}.phone-device .phone-system-navigation>button svg{height:20px;width:20px}}
/* On shorter screens, keep the useful apps and notification without large widgets. */
@media(max-height:740px) and (orientation:portrait){
 .phone-device .phone-home{padding:12px 16px 10px;gap:12px}
 .phone-home-widgets{display:none}
 .phone-home-spacer{min-height:0}
 .phone-device .phone-home-dock{padding:10px 16px;border-radius:22px}
 .phone-device .phone-icon-tile{width:50px;height:50px}
 .phone-device .phone-app-icon{font-size:10px!important;gap:4px}
 .phone-device .phone-notification{padding:12px}
}

.phone-avatar-unknown{background:#a9b0bb!important;color:#fff}.phone-avatar-unknown svg{width:62%;height:62%}
