
/* AI HOMES Mobile Application UI – isolated, reversible preview, 2026-11-16 */
:root{--hm-navy:#183950;--hm-blue:#2466a4;--hm-ice:#f4f8fc;--hm-line:#e2ebf2;--hm-ink:#193a51}
html,body{max-width:100%;overflow-x:clip;-webkit-text-size-adjust:100%}
body.hm-app .app-shell{max-width:100%;min-width:0}
.hm-home,.hm-bottom,.hm-menu,.hm-home-top{font-family:Inter,"Segoe UI",Arial,sans-serif}
.hm-home{display:none;background:#f5f8fc;color:var(--hm-ink);min-height:calc(100dvh - 68px);padding:0 22px 110px;max-width:100%;overflow-x:clip}
.hm-home-inner{max-width:1400px;margin:auto}
.hm-hero{margin:22px 0 18px;border-radius:26px;background:linear-gradient(125deg,#102b40 0%,#1b4969 63%,#2b719e 100%);color:white;padding:30px;position:relative;overflow:hidden;box-shadow:0 20px 42px #153e5b20}
.hm-hero:after{content:"";position:absolute;width:260px;height:260px;border:1px solid #ffffff24;border-radius:50%;right:-75px;top:-115px;box-shadow:0 0 0 48px #ffffff08,0 0 0 105px #ffffff05;pointer-events:none}
.hm-eyebrow{font-size:10px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:#aad9fb}
.hm-hero h1{font-size:clamp(24px,3.4vw,40px);line-height:1.16;letter-spacing:-.045em;margin:13px 0 10px;max-width:650px}
.hm-hero p{color:#d3e5f1;line-height:1.6;font-size:13px;margin:0 0 23px;max-width:580px}
.hm-hero-actions{display:flex;gap:9px;flex-wrap:wrap;position:relative;z-index:1}
.hm-hero-actions button{border:1px solid #ffffff40;border-radius:13px;padding:12px 17px;background:#fff;color:#173c58;font-size:12px;font-weight:800;display:flex;align-items:center;gap:8px}
.hm-hero-actions button.hm-ghost{background:#ffffff17;color:#fff}
.hm-section{margin:24px 0 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.hm-section h2{margin:0;font-size:17px;font-weight:850;letter-spacing:-.035em;color:#183950}
.hm-section small{font-size:11px;color:#8499a9}
.hm-search{display:flex;gap:11px;align-items:center;background:#fff;border:1px solid var(--hm-line);border-radius:15px;padding:0 15px;min-height:49px;box-shadow:0 4px 16px #173e5906}
.hm-search svg{width:19px;height:19px;color:#4e7793;flex:none}
.hm-search input{border:0!important;outline:0!important;background:transparent!important;width:100%;min-width:0;color:#183950;font-size:13px}
.hm-search button{border:0;background:#e9f2f9;border-radius:9px;padding:7px 10px;font-size:11px;color:#315f7f;font-weight:800}
.hm-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}
.hm-feature{border:1px solid var(--hm-line);background:#fff;border-radius:19px;min-width:0;text-align:left;padding:17px;min-height:143px;display:flex;flex-direction:column;gap:8px;box-shadow:0 5px 22px #153b5407;transition:transform .2s}
.hm-feature:active{transform:scale(.98)}
.hm-icon{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:13px;background:#eaf3fc;color:#2568a6}
.hm-icon svg{width:22px;height:22px}
.hm-feature strong{font-size:13px;font-weight:800;letter-spacing:-.02em;color:#183950;line-height:1.25}
.hm-feature span.hm-sub{font-size:10px;line-height:1.4;color:#8096a6}
.hm-feature.hm-feature-primary{background:#e8f2fb;border-color:#d4e6f5}
.hm-secondary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.hm-mini{border:1px solid var(--hm-line);background:#fff;border-radius:15px;padding:15px 12px;display:flex;align-items:center;gap:11px;text-align:left;min-width:0;color:#244d69;font-weight:750;font-size:12px}
.hm-mini svg{width:21px;height:21px;color:#3378b2;flex:none}
.hm-info{border-radius:16px;border:1px solid #d9e7f2;background:#eef6fc;padding:16px 18px;font-size:12px;line-height:1.7;color:#53738b;margin-top:23px}
.hm-bottom{position:fixed;bottom:0;left:0;right:0;z-index:210;background:#fffffff2;border-top:1px solid #dae6ef;display:none;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(65px + env(safe-area-inset-bottom));padding:6px 5px env(safe-area-inset-bottom);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.hm-bottom button{border:0;background:transparent;min-width:0;padding:3px 1px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#8b9da9;font-size:10px;font-weight:750}
.hm-bottom button svg{width:22px;height:22px}
.hm-bottom button[aria-current="page"]{color:#246da9}
.hm-bottom button[aria-current="page"] .hm-bottom-icon{background:#e9f3fc}
.hm-bottom-icon{width:36px;height:31px;border-radius:11px;display:grid;place-items:center}
.hm-menu{display:none;position:fixed;inset:0;z-index:205;background:#102b4080;align-items:flex-end}
.hm-menu.is-open{display:flex}
.hm-sheet{width:100%;max-height:83dvh;overflow-y:auto;border-radius:26px 26px 0 0;background:#f8fbfd;padding:20px 17px calc(94px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px #12304430}
.hm-sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}
.hm-sheet-head strong{font-size:19px;color:#193b53}
.hm-sheet-head button{border:0;border-radius:50%;background:#e7eff5;width:33px;height:33px;font-size:20px;color:#45667a}
.hm-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hm-menu-grid button{border:1px solid var(--hm-line);background:#fff;border-radius:14px;min-height:93px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px 4px;font-size:11px;font-weight:800;color:#264d67}
.hm-menu-grid svg{width:24px;height:24px;color:#3076b2}
.hm-home-top{display:none}
@media(max-width:1400px){
 body.hm-app .prototype-note{display:none!important}
 body.hm-app .market-ticker{display:none!important}
 body.hm-app .workspace-nav{display:none!important}
 body.hm-app .app-header{height:62px;min-height:62px;position:sticky;top:0;z-index:151;padding:0 15px;box-shadow:0 2px 14px #153c560a}
 body.hm-app .app-header .brand-ai{width:35px;height:35px;font-size:20px}
 body.hm-app .app-header .brand-words{font-size:15px}
 body.hm-app .app-header .header-actions .unit-badge{display:none}
 body.hm-app .app-header .header-actions{gap:7px}
 body.hm-app .app-header .header-actions .quiet-button{height:35px;min-width:36px;border-radius:10px}
 body.hm-app .stage{height:calc(100dvh - 62px - 65px - env(safe-area-inset-bottom));min-height:0;max-height:none;max-width:100vw;overflow:hidden}
 body.hm-app .stage>.view{max-width:100%;min-width:0}
 body.hm-app.hm-home-active .stage{display:none!important}
 body.hm-app.hm-home-active .hm-home{display:block}
 body.hm-app .hm-bottom{display:grid}
 body.hm-app .hm-home-top{display:block}
 body.hm-app .hm-home{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
 body.hm-app .hm-menu{z-index:209}
 body.hm-app .app-shell{min-height:100dvh}
}
@media(max-width:700px){
 .hm-home{padding:0 14px 100px}
 .hm-hero{margin:14px 0 18px;padding:24px 19px;border-radius:21px}
 .hm-hero h1{font-size:28px;max-width:320px}
 .hm-hero p{font-size:12px}
 .hm-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .hm-feature{padding:14px;min-height:133px;border-radius:17px}
 .hm-secondary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hm-mini{padding:12px;min-height:56px}
 .hm-section{margin-top:24px}
 .hm-sheet{padding-left:14px;padding-right:14px}
 .hm-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:360px){.hm-feature{padding:11px}.hm-hero h1{font-size:25px}.hm-bottom button{font-size:9px}.hm-menu-grid button{font-size:10px}}
/* Existing immersive camera / fullscreen views must remain untouched. */
body.v2-radar-immersive .hm-bottom,body.v2-meter-classic .hm-bottom,body.fullscreen-fallback .hm-bottom{display:none!important}
body.v2-radar-immersive .hm-menu,body.v2-meter-classic .hm-menu{display:none!important}
