/* Home on the phone — the lite layer (2026-10-04). Built from the approved
   mock in ~/Downloads/home-mobile-mock/. Lives beside the Mac layout;
   body.lite-on swaps one for the other. Everything is scoped to #lite. */

body.lite-on .app, body.lite-on #authScreen, body.lite-on #navScrim { display: none !important; }
body.lite-on { overflow: auto !important; height: auto; min-height: 100vh; background: var(--bg); }
body.lite-on #lite { display: block; }
#lite { --accent-soft: rgba(201,168,76,.14); --ok-soft: rgba(16,185,129,.14); --warn-soft: rgba(251,191,36,.14); --bad-soft: rgba(239,68,68,.14); --ok: #10b981; --bad: #ef4444; --blue: #60a5fa; --teal: #2dd4bf; --purple: #a78bfa; --green: #a8c896;
  display: none; font-size: 15px; line-height: 1.4; color: var(--text-primary); min-height: 100vh; font-variant-numeric: tabular-nums; }
#lite a { color: inherit; text-decoration: none; }
#lite svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
#lite button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; -webkit-tap-highlight-color: transparent; cursor: pointer; }
#lite input, #lite textarea, #lite select { font: inherit; font-size: 16px; color: var(--text-primary); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }

#lite .scr { overflow-x: hidden; padding: calc(6px + env(safe-area-inset-top, 0px)) 16px calc(104px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; }
#lite .scr.noTabs { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
#lite .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(58px + env(safe-area-inset-bottom, 0px)); background: #0d131a; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px env(safe-area-inset-bottom, 0px); }
#lite .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); position: relative; }
#lite .tab svg.i { width: 23px; height: 23px; }
#lite .tab.on { color: var(--accent-2); }
#lite .tab .bdg { position: absolute; top: -2px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 11px/18px -apple-system, sans-serif; text-align: center; }

#lite .top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 4px; gap: 10px; }
#lite .top h2 { font-size: 26px; font-weight: 700; letter-spacing: -.4px; }
#lite .top h2.mid { font-size: 17px; flex: 1; text-align: center; }
#lite .top .back { display: flex; align-items: center; gap: 2px; color: var(--accent-2); font-size: 16px; margin-left: -6px; min-width: 50px; }
#lite .top .back svg.i { width: 24px; height: 24px; }
#lite .spacer { width: 50px; }
#lite .ico-btn { width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); background: var(--panel); border: 1px solid var(--border); flex-shrink: 0; }
#lite .ico-btn.gold { color: var(--accent-2); }
#lite .ico-btn.sm { width: 34px; height: 34px; } #lite .ico-btn.sm svg.i { width: 17px; height: 17px; }
#lite .asof { font-size: 12px; color: var(--muted); }
#lite .card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
#lite .lbl { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
#lite .sec { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 2px 8px; gap: 10px; }
#lite .sec h3 { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
#lite .sec button, #lite .sec a { font-size: 13px; color: var(--accent-2); font-weight: 500; }
#lite .pill { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
#lite .pill.ok { background: var(--ok-soft); color: var(--ok); } #lite .pill.warn { background: var(--warn-soft); color: var(--warn); } #lite .pill.bad { background: var(--bad-soft); color: var(--bad); } #lite .pill.mute { background: rgba(107,125,146,.18); color: var(--text-secondary); } #lite .pill.gold { background: var(--accent-soft); color: var(--accent-2); }
#lite .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 12px; font-size: 15px; font-weight: 700; border: 1px solid var(--border); background: var(--panel); color: var(--text-primary); white-space: nowrap; }
#lite .btn.pri { background: var(--accent); border-color: var(--accent); color: #14110e; }
#lite .btn.sm { height: 34px; font-size: 13px; padding: 0 12px; border-radius: 9px; }
#lite .btn.red { background: var(--bad-soft); border-color: rgba(239,68,68,.4); color: var(--bad); }
#lite .btn.wide { width: 100%; }
#lite .btn[disabled] { opacity: .5; }
#lite .chev { color: var(--muted); width: 18px !important; height: 18px !important; }
#lite .seg { display: flex; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 3px; margin-bottom: 10px; }
#lite .seg button { flex: 1; text-align: center; font-size: 13px; font-weight: 500; padding: 6px 0; border-radius: 999px; color: var(--text-secondary); white-space: nowrap; }
#lite .seg button.on { background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }
#lite .ok { color: var(--ok); } #lite .warn { color: var(--warn); } #lite .bad { color: var(--bad); } #lite .mut { color: var(--muted); } #lite .gold { color: var(--accent-2); }
#lite .two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
#lite .fbot { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; margin-top: 12px; }
#lite .fbot.one { grid-template-columns: 1fr; }
#lite .empty { font-size: 14px; color: var(--muted); padding: 14px; }
#lite .loading { padding: 80px 16px; text-align: center; color: var(--muted); font-size: 15px; }
#lite .err { color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 10px; text-align: center; }
#lite .banner { padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); border: 1px solid rgba(251,191,36,.4); font-size: 14px; margin-top: 10px; }
#lite .rows { overflow: hidden; }
#lite .row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); width: 100%; }
#lite .row:last-child { border-bottom: 0; }
#lite .row .ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#lite .row .g { flex: 1; min-width: 0; }
#lite .row .g b { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
#lite .row .g small { display: block; font-size: 12.5px; color: var(--text-secondary); margin-top: 1px; }
#lite .row .r { text-align: right; flex-shrink: 0; }
#lite .row .r b { display: block; font-size: 15px; font-weight: 700; }
#lite .row .r small { display: block; font-size: 12px; color: var(--muted); }
#lite .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
#lite .dot.ok { background: var(--ok); } #lite .dot.bad { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); } #lite .dot.warn { background: var(--warn); } #lite .dot.off { background: #2a3649; } #lite .dot.live { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
#lite .meter { height: 5px; border-radius: 3px; background: #1a2432; position: relative; overflow: hidden; flex: 1; }
#lite .meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ok); }
#lite .kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
#lite .kv:last-child { border-bottom: 0; }
#lite .kv span:first-child { color: var(--text-secondary); flex-shrink: 0; }
#lite .kv span:last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
#lite .kv b { font-weight: 600; }
#lite .kv.stack { flex-direction: column; align-items: flex-start; gap: 3px; } #lite .kv.stack span:last-child { text-align: left; }
#lite .yr { font-size: 12px; font-weight: 700; color: var(--muted); margin: 14px 4px 6px; letter-spacing: .06em; }

/* House */
#lite .hero { padding: 10px 14px 12px; background: linear-gradient(135deg, #141c26 0%, #111821 60%); }
#lite .hero .eyebrow { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }
#lite .hero .name { font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin-top: 1px; }
#lite .hero .state { font-size: 13.5px; color: var(--text-secondary); margin-top: 4px; }
#lite .hero .state b { color: var(--text-primary); }
#lite .badges { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 8px; }
#lite .badge { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 8px 9px; min-width: 0; text-align: left; }
#lite .badge .l { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lite .badge .v { font-size: 15px; font-weight: 800; margin-top: 3px; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lite .badge .s { font-size: 10.5px; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lite .attn { border-color: rgba(239,68,68,.4); margin-top: 10px; }
#lite .attn .row { padding: 8px 12px 8px 14px; }
#lite .attn .row .g b { font-size: 14.5px; }
#lite .ctl { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
#lite .ctl button { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--text-secondary); text-align: center; }
#lite .ctl button svg.i { width: 22px; height: 22px; color: var(--accent-2); }
#lite .ctl button.bad svg.i { color: var(--bad); }
#lite .hcard { padding: 11px 14px; display: block; width: 100%; }
#lite .hcard .h { display: flex; align-items: center; gap: 8px; }
#lite .hcard .h svg.i { width: 17px; height: 17px; color: var(--accent-2); }
#lite .hcard .h b { flex: 1; font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lite .hcard .l2 { font-size: 12.5px; color: var(--text-secondary); margin-top: 5px; line-height: 1.4; }
#lite .hcard .l2 b { color: var(--text-primary); font-weight: 600; }
#lite .tl { padding: 4px 14px 6px; }
#lite .tl div { display: flex; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); }
#lite .tl div:last-child { border-bottom: 0; }
#lite .tl time { color: var(--muted); width: 54px; flex-shrink: 0; }

/* Sheets */
#lite .dim { position: fixed; inset: 0; background: rgba(4,7,10,.64); z-index: 50; }
#lite .sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--panel-bg); border-top: 1px solid var(--border-light); border-radius: 22px 22px 0 0; padding: 10px 18px calc(28px + env(safe-area-inset-bottom, 0px)); }
#lite .sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--border-light); margin: 0 auto 14px; }
#lite .sheet h3 { font-size: 20px; font-weight: 700; }
#lite .sheet h3 small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 8px; }
#lite .sheet p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.45; margin-top: 8px; }
#lite .sheet .card { background: var(--panel); }
#lite .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
#lite .stat { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; min-width: 0; }
#lite .stat b { display: block; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lite .stat span { font-size: 11px; color: var(--muted); }
#lite .map { height: 150px; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; margin-top: 4px; position: relative; background: #16202c; }
#lite .map iframe { width: 100%; height: 100%; border: 0; display: block; }
#lite .map a { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; font-size: 12px; color: var(--text-primary); background: rgba(11,15,20,.8); }
#lite .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
#lite .grid3 .btn, #lite .grid2 .btn { height: 44px; font-size: 14px; padding: 0 8px; }
#lite .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
#lite .confirm { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(201,168,76,.4); }
#lite .confirm.danger { background: var(--bad-soft); border-color: rgba(239,68,68,.45); }
#lite .confirm b { display: block; font-size: 15px; }
#lite .confirm small { display: block; font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
#lite .confirm .acts { display: flex; gap: 8px; margin-top: 10px; }
#lite .confirm .acts .btn { flex: 1; height: 40px; font-size: 14px; }
#lite .menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 4px; border-top: 1px solid var(--border); font-size: 16px; }
#lite .menu-item:first-of-type { border-top: 0; }
#lite .menu-item svg { color: var(--text-secondary); }
#lite .menu-item small { display: block; font-size: 12px; color: var(--muted); }
#lite .menu-item div { flex: 1; }
#lite .tog { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 10px; font-size: 14px; width: 100%; }
#lite .tog div { flex: 1; text-align: left; }
#lite .tog b { font-size: 15px; }
#lite .sw { width: 46px; height: 28px; border-radius: 14px; background: #2a3649; position: relative; flex-shrink: 0; transition: background .15s; }
#lite .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #e6edf3; transition: left .15s; }
#lite .sw.on { background: var(--accent); } #lite .sw.on::after { left: 21px; }

/* Rooms */
#lite .room { padding: 11px 14px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); width: 100%; }
#lite .room:last-child { border-bottom: 0; }
#lite .room .g { flex: 1; min-width: 0; }
#lite .room .g b { display: block; font-size: 15px; font-weight: 600; }
#lite .room .g small { display: block; font-size: 12.5px; color: var(--text-secondary); margin-top: 1px; }
#lite .room .lights { display: flex; gap: 3px; flex-wrap: wrap; max-width: 96px; justify-content: flex-end; }
#lite .room .lights i { width: 8px; height: 14px; border-radius: 3px; background: #243244; }
#lite .room .lights i.on { background: var(--accent-2); }
#lite .room .lights i.x { background: var(--bad); opacity: .6; }
#lite .room .t { font-size: 13px; color: var(--text-secondary); min-width: 36px; text-align: right; }

/* Upkeep */
#lite .task { padding: 11px 14px; display: flex; gap: 12px; border-bottom: 1px solid var(--border); align-items: flex-start; width: 100%; }
#lite .task:last-child { border-bottom: 0; }
#lite .task .box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--muted); flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; color: #14110e; font-weight: 800; font-size: 14px; }
#lite .task .box.med { border-color: var(--warn); } #lite .task .box.high { border-color: var(--bad); }
#lite .task .box.done { background: var(--ok); border-color: var(--ok); }
#lite .task .g { flex: 1; min-width: 0; }
#lite .task .g b { display: block; font-size: 15px; font-weight: 600; }
#lite .task .g small { display: block; font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; line-height: 1.35; }
#lite .task .when { font-size: 11px; color: var(--muted); white-space: nowrap; margin-top: 4px; }
#lite .field { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; margin-top: 10px; display: block; }
#lite .field.on { border-color: var(--accent); }
#lite .field .lbl { display: block; }
#lite .field input, #lite .field textarea, #lite .field select { width: 100%; border: 0; background: transparent; padding: 0; margin-top: 4px; border-radius: 0; font-size: 17px; font-weight: 600; }
#lite .field input:focus, #lite .field textarea:focus { outline: none; }
#lite .field input.big { font-size: 34px; font-weight: 700; letter-spacing: -.8px; }
#lite .field textarea { min-height: 64px; resize: vertical; line-height: 1.4; font-weight: 500; }
#lite .field input[type=date] { font-size: 16px; }
#lite .chipset { display: flex; gap: 8px; flex-wrap: wrap; }
#lite .chip { font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text-secondary); }
#lite .chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); font-weight: 600; }

/* Lookup */
#lite .search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); color: var(--muted); font-size: 15px; margin: 6px 0 12px; }
#lite .search svg.i { width: 18px; height: 18px; }
#lite .search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text-primary); outline: none; padding: 0; font-size: 16px; }
#lite .search input::placeholder { color: var(--muted); }
#lite .prop { padding: 12px 14px; display: flex; align-items: center; gap: 12px; width: 100%; }
#lite .prop .g { flex: 1; min-width: 0; }
#lite .prop .g b { display: block; font-size: 15px; font-weight: 600; }
#lite .prop .g small { display: block; font-size: 12.5px; color: var(--text-secondary); margin-top: 1px; }
#lite .prop .v { font-size: 18px; font-weight: 800; color: var(--accent-2); white-space: nowrap; }
#lite .prop .v small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; text-align: right; }
#lite .code { font-size: 28px; font-weight: 800; letter-spacing: 3px; }
#lite .note { white-space: pre-wrap; font-size: 14px; color: var(--text-secondary); line-height: 1.45; padding: 11px 14px; }

/* Lock */
#lite .lock { padding: 100px 26px 0; text-align: center; max-width: 420px; margin: 0 auto; }
#lite .lock .appico { width: 86px; height: 86px; border-radius: 22px; background: none; object-fit: cover; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; font: 800 46px/1 -apple-system, sans-serif; color: #14110e; }
#lite .lock h3 { font-size: 30px; font-weight: 700; }
#lite .lock p { color: var(--text-secondary); margin: 8px 0 32px; font-size: 15px; }
#lite .lock input { width: 100%; height: 52px; padding: 0 14px; border-radius: 12px; margin-bottom: 10px; }
#lite .lock .btn { width: 100%; height: 52px; font-size: 16px; }
#lite .lock .alt { display: block; width: 100%; text-align: center; color: var(--accent-2); font-size: 15px; font-weight: 600; padding: 14px 0; }
#lite .lock .fine { font-size: 12px; color: var(--muted); margin-top: 18px; }

/* A Mac panel (Settings, Property…) shown inside the phone, with a way back */
body.lite-panel .app { display: grid !important; grid-template-columns: 1fr !important; }
body.lite-panel .sidebar { display: none !important; }
body.lite-panel .main { margin-left: 0 !important; padding: 0 14px 40px !important; height: auto !important; overflow: visible !important; }
body.lite-panel #lite { display: none !important; }
body.lite-panel { overflow: auto !important; height: auto; }
.lite-panelbar { display: none; }
body.lite-panel .lite-panelbar { display: flex; align-items: center; gap: 6px; height: calc(44px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 10px 0; background: var(--bg); border-bottom: 1px solid var(--border); font-size: 16px; color: var(--accent-2); position: sticky; top: 0; z-index: 30; }
.lite-panelbar button { font: inherit; color: inherit; background: none; border: 0; display: flex; align-items: center; gap: 2px; padding: 8px 4px; cursor: pointer; }
.lite-panelbar b { color: var(--text-primary); font-size: 15px; margin-left: 6px; }
@media (min-width: 769px) { .nav button[data-id="phone"] { display: none; } }
