/* Sculpted personal home. Shared IMC and restricted SOS-only screens unchanged. */
.mobile:has(.refined-home){background:#161b20;--gold:#ceae5e}
.mobile:has(.refined-home) .mobile-top{background:#161b20;border:0;display:grid;grid-template-columns:44px 1fr 44px;padding-top:12px;padding-bottom:12px}
.mobile:has(.refined-home) .mobile-top .logo{justify-self:center;width:145px;max-width:145px;height:45px}
.mobile:has(.refined-home) .mobile-top button{border:0;color:#d7d9d9;margin:0;padding:8px}
.mobile-wrap:has(.refined-home){max-width:480px;padding:14px 22px 28px}
.refined-welcome{margin-bottom:24px}.refined-welcome>.eyebrow{font-size:10px;letter-spacing:1.6px}
.refined-welcome h1{font:27px/1.2 Georgia,serif;letter-spacing:-.6px;margin:8px 0 15px}
.refined-welcome .home-ghost{flex-direction:row;justify-content:flex-end;font-size:11px;gap:10px}
.refined-welcome .ghost-mode-toggle{min-height:26px;height:26px;width:46px;padding:3px}
.refined-welcome .ghost-mode-thumb{width:18px;height:18px}
.refined-home .home-arena{position:relative;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:150px 90px 150px;gap:0 20px;transition:grid-template-rows .42s cubic-bezier(.22,1,.36,1)}
.refined-home .personal-shortcuts,.refined-home .personal-response-controls{display:contents}
.refined-home .personal-shortcut{position:relative;z-index:2;justify-content:center;gap:12px;padding:18px 8px;color:#f4f3ee;border:1px solid #383f43;background:linear-gradient(145deg,#252b2f,#161b20);border-radius:26px;box-shadow:0 8px 20px #0003;font-size:15px;min-width:0;transition:border-radius .42s,margin .42s,padding .42s}
.refined-home .personal-shortcut strong{font-weight:450}
.refined-home .personal-shortcuts .personal-shortcut:nth-child(1){grid-column:1;grid-row:1;border-bottom-right-radius:68px}
.refined-home .personal-shortcuts .personal-shortcut:nth-child(2){grid-column:2;grid-row:1;border-bottom-left-radius:68px}
.refined-home .personal-response-controls>.personal-shortcut:first-child{grid-column:1;grid-row:3;border-top-right-radius:68px}
.refined-home .personal-response-controls>.personal-shortcut:last-child{grid-column:2;grid-row:3;border-top-left-radius:68px}
.refined-home .shortcut-orb{width:48px!important;height:48px!important;border:0;background:transparent;box-shadow:none;color:var(--gold)}
.refined-home .shortcut-orb .icon,.refined-home .shortcut-orb svg{width:42px;height:42px}
.refined-home .personal-shortcut:hover{background:#252c30;border-color:#847044}
.refined-home .optional-home-map{grid-row:2;grid-column:1 / -1;height:90px!important;border-radius:18px;z-index:1;transition:height .42s}
.refined-home .home-map-reveal{border:0;background:transparent}
.refined-home .home-map-reveal::after{content:'••••';position:absolute;bottom:3px;left:0;right:0;color:#9f9580;font-size:12px;letter-spacing:7px}
.refined-home .shield-action{position:absolute;z-index:3;top:120px;left:50%;transform:translateX(-50%);transition:top .42s}
.refined-home .arma-sos.discreet-connect{background:#161b20;border:0;box-shadow:none;width:110px;height:116px;border-radius:50%}
.refined-home .arma-sos.holding{box-shadow:none!important}
.refined-home .arma-shield{width:88px;height:96px}
.refined-home.map-expanded .home-arena{grid-template-rows:76px 300px 104px;gap:12px 16px}
.refined-home.map-expanded .optional-home-map{height:300px!important}
.refined-home.map-expanded .personal-shortcut{border-radius:20px!important;padding:10px 6px;gap:6px;font-size:13px}
.refined-home.map-expanded .personal-shortcuts .personal-shortcut{flex-direction:row}
.refined-home.map-expanded .personal-response-controls>.personal-shortcut:first-child{margin-right:40px}
.refined-home.map-expanded .personal-response-controls>.personal-shortcut:last-child{margin-left:40px}
.refined-home.map-expanded .shield-action{top:399px}
.refined-home .optional-home-map .operations-map-panel{height:300px}
.refined-home .optional-home-map #operations-map{height:260px}
.refined-home .home-map-actions button{font-size:11px;padding:5px 9px;min-height:36px}
.journey-preview{display:flex;width:100%;align-items:center;gap:17px;text-align:left;border:1px solid #394045;border-radius:20px;background:#1b2125;padding:18px;margin-top:28px;color:#f4f3ee}
.journey-preview>.icon{color:#a5abad;width:28px;height:28px}.journey-preview>span:nth-child(2){flex:1;min-width:0}.journey-preview .eyebrow{display:block;font-size:9px;letter-spacing:1.3px}
.journey-route{display:block;font-size:17px;margin:5px 0;overflow-wrap:anywhere}.journey-route>span{color:#a3a7a9;margin:0 5px}.journey-detail{display:block;font-size:11px;color:#a8adb0}.journey-chevron{font-size:26px;color:#b8babc}
.protection-contact{display:flex;justify-content:space-between;color:#d8dbdd;text-decoration:none;padding:20px 4px;margin-top:20px;border-top:1px solid #394045;font-size:13px}.protection-contact>span:last-child{color:var(--gold);font-size:19px}
@media(max-width:360px){.mobile-wrap:has(.refined-home){padding-left:16px;padding-right:16px}.refined-welcome h1{font-size:24px}.refined-home .home-arena{column-gap:16px}}
@media(prefers-reduced-motion:reduce){.refined-home *{transition:none!important}}
.refined-home.map-compact .home-arena{grid-template-rows:130px 130px 130px}
.refined-home.map-compact .optional-home-map{height:130px!important;overflow:visible}
.refined-home.map-compact .shield-action{top:100px}
.refined-home.map-compact .home-map-reveal{position:absolute;bottom:0;left:calc(50% - 40px);width:80px;height:44px;min-height:44px}
.refined-home.map-compact .home-map-reveal::after{bottom:12px}
/* Approved concept: concave tile silhouettes and tighter editorial hierarchy. */
.mobile:has(.refined-home){background:#111719;--gold:#d3b36d}
.mobile:has(.refined-home) .mobile-top{background:#111719;padding:12px 18px 5px}
.mobile:has(.refined-home) .mobile-top .logo{width:124px;max-width:124px;height:38px;background:transparent;mix-blend-mode:lighten}
.mobile:has(.refined-home) .mobile-top .account-trigger{visibility:hidden}
.mobile-wrap:has(.refined-home){padding:18px 18px 20px;max-width:450px}
.refined-welcome{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;margin:0 4px 30px}
.refined-welcome>.eyebrow{grid-column:1 / -1;font-size:9px;letter-spacing:1.4px;margin-bottom:5px}
.refined-welcome h1{font:23px/1.25 Georgia,serif;font-weight:400!important;letter-spacing:-.8px;margin:0}
.refined-welcome .home-ghost{font-size:9px;gap:6px;white-space:nowrap}
.refined-welcome .ghost-mode-toggle{width:38px;min-width:38px;height:23px;min-height:23px;padding:2px}
.refined-welcome .ghost-mode-thumb{width:17px;height:17px}
.refined-home.map-compact .home-arena{grid-template-rows:164px 48px 164px;column-gap:18px}
.refined-home .sculpted-tile{border:0!important;background:none!important;box-shadow:none;padding:24px 8px;overflow:visible;isolation:isolate;border-radius:0!important;gap:14px}
.tile-surface{position:absolute;inset:0;width:100%;height:100%;z-index:-1;filter:drop-shadow(0 7px 9px #0005);pointer-events:none}.tile-surface path{fill:#1b2226;stroke:#424a4d;stroke-width:.7}
.tile-1 .tile-surface{transform:scaleX(-1)}.tile-2 .tile-surface{transform:scaleY(-1)}.tile-3 .tile-surface{transform:scale(-1)}
.refined-home .sculpted-tile strong{font-weight:400!important;font-size:16px}
.refined-home.map-compact .shortcut-orb,.refined-home.map-compact .shortcut-orb svg{width:52px!important;height:52px!important}
.refined-home.map-compact .tile-0,.refined-home.map-compact .tile-1{padding-bottom:36px}
.refined-home.map-compact .tile-2,.refined-home.map-compact .tile-3{padding-top:36px}
.refined-home.map-compact .optional-home-map{height:48px!important;overflow:visible;z-index:4;pointer-events:none}
.refined-home.map-compact .shield-action{top:134px}
.refined-home .arma-sos.discreet-connect{background:transparent;width:112px;height:116px}
.refined-home .arma-shield{width:94px;height:104px}
.refined-home.map-compact .home-map-reveal{pointer-events:auto;top:86px;bottom:auto;width:70px;left:calc(50% - 35px);height:32px;min-height:32px}
.refined-home.map-compact .home-map-reveal::after{bottom:4px;font-size:12px;letter-spacing:5px;color:#7a8588}
.journey-preview{margin-top:38px;border-radius:18px;padding:16px 18px;min-height:78px;gap:20px;background:#171e21;position:relative}
.journey-preview::before{content:'';position:absolute;left:0;right:0;top:-20px;border-top:1px solid #3a4143}
.journey-preview>svg{width:30px;height:30px;flex-shrink:0;color:#9ba3a7}.journey-preview>span:nth-child(2){flex:1}
.journey-preview .eyebrow{font-size:8px;letter-spacing:1.1px}.journey-route{font-size:16px}.journey-detail{font-size:10px}.journey-chevron{font-weight:200;font-size:26px}
.protection-contact{margin-top:18px;padding:18px 4px 4px;font-size:12px}.contact-phone svg{width:21px;height:21px;color:var(--gold)}
.refined-home.map-expanded .home-arena{grid-template-rows:56px min(38dvh,330px) 84px;gap:8px 14px}
.refined-home.map-expanded .optional-home-map{height:min(38dvh,330px)!important;border-radius:0;margin-left:-8px;margin-right:-8px}
.refined-home.map-expanded .optional-home-map .operations-map-panel,.refined-home.map-expanded .optional-home-map #operations-map{height:100%!important;border:0;border-radius:0}
.refined-home.map-expanded #operations-map-status,.refined-home.map-expanded .safe-controls{display:none}
.refined-home.map-expanded .tile-surface{display:none}
.refined-home.map-expanded .sculpted-tile{border:1px solid #343d40!important;background:#1b2226!important;border-radius:18px!important}
.refined-home.map-expanded .sculpted-tile strong{font-size:13px}
.refined-home.map-expanded .shortcut-orb,.refined-home.map-expanded .shortcut-orb svg{width:30px!important;height:30px!important}
.refined-home.map-expanded .shield-action{top:calc(64px + min(38dvh,330px) - 8px)}
.refined-home.map-expanded .arma-sos.discreet-connect{width:92px;height:96px;border:1px solid #3b4447;border-radius:50%;background:#141b1e}
.refined-home.map-expanded .arma-shield{width:62px;height:70px}
.refined-home .home-map-actions button:first-child{border-radius:50%;font-size:23px;width:34px;height:34px;min-height:34px;padding:0}
.refined-home .home-map-actions button+button{display:none}
.refined-home.map-expanded .journey-preview{margin-top:18px}.refined-home.map-expanded .journey-preview::before{display:none}
@media(max-width:360px){.refined-welcome h1{font-size:20px}.refined-welcome .home-ghost{font-size:8px}}

/* Discreet home: larger original shield and latest nearby risk. */
.refined-home .home-map-reveal::after{content:none}
.refined-home.map-compact .shield-action{top:120px}
.refined-home.map-compact .discreet-connect{width:136px;height:144px}
.refined-home.map-compact .arma-shield{width:120px;height:132px}
.refined-home.map-expanded .arma-shield{width:76px;height:84px}
.latest-risk-preview .journey-route{display:block;line-height:1.35;white-space:normal}
.latest-risk-preview .journey-detail{display:block;line-height:1.5;margin-top:5px;white-space:normal}

/* Edge-to-edge native canvas with an explicit, separate map control. */
html:has(body.mobile .refined-home){background:#111719;min-height:100%}
body.mobile:has(.refined-home){background:#111719;min-height:100dvh;width:100%;padding-bottom:0}
body.mobile:has(.refined-home) #app{min-height:calc(100dvh - env(safe-area-inset-top))}
.mobile-wrap:has(.refined-home){max-width:none;padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right));padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.refined-welcome h1{grid-column:1 / -1}
.home-display-controls{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px}
.home-map-toggle{display:flex;align-items:center;gap:7px;min-height:44px;padding:8px 12px;border-color:#424a4d;border-radius:12px;color:#d3b36d;font-size:12px}
.home-map-toggle svg{width:18px;height:18px}
.refined-home .home-map-reveal,.refined-home .home-map-actions{display:none}

.home-map-toggle{width:44px;height:44px;padding:10px;justify-content:center;border-radius:50%;border-color:transparent;color:#a8afb0}
.home-map-toggle svg{width:22px;height:22px}
.home-map-toggle[aria-expanded="true"]{color:#d3b36d;border-color:#424a4d}


/* Keep the app proportions on larger browser windows. */
body.mobile .mobile-wrap:has(.refined-home){width:100%;max-width:520px;margin-inline:auto}
body.mobile:has(.refined-home) .mobile-top .mode-switch{display:none}
