/* ================= 手机 · 家 =================
   归属：场外线（方案 / 分工见 docs/mobile-a.md）。
   每条规则都挂在 html.m 下（js/core/mobile.js 判断是手机才加），电脑版一条都不命中；tests/mobile.test.js 逐条查。 */

/* ---------- mcity 12. 城市：家——整页上下滑：窗景 → 车库（没车压成一条）· 表盒 / 背包 → 存款 / 每周账单（横屏车库和表盒并排） ---------- */
html.m .cy-homev.on{display:block;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;}
html.m .cy-homev .cy-win{height:calc(var(--m-vh,700px) * .34);min-height:200px;}
html.m.m-land .cy-homev .cy-win{height:calc(var(--m-vh,390px) - var(--m-top) - 64px);min-height:180px;}
html.m .cy-hbot{display:grid;grid-template-columns:minmax(0,1fr);}
html.m.m-land .cy-hbot{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
html.m .cy .cy-room{height:220px;border-right:0;border-bottom:1px solid var(--hairline);}
html.m.m-land .cy .cy-room.garage{border-right:1px solid var(--hairline);}
html.m .cy .cy-room.garage:not(:has(.bay svg)){height:40px;}
html.m .cy .cy-room.garage:not(:has(.bay svg)) .bays,html.m .cy .cy-room.garage:not(:has(.bay svg)) .door{display:none;}
html.m .cy .garage .bay{min-width:0;}
html.m .cy .garage .bay svg{max-width:90%;}
html.m .cy .watchbox .box{width:min(340px,calc(100% - 24px));}
html.m .cy .ledger{grid-column:1 / -1;padding:12px calc(16px + var(--m-safe-r)) calc(14px + var(--m-safe-b)) calc(16px + var(--m-safe-l));gap:8px;}
html.m .cy .ledger .kv b{font-size:15px;}
html.m .cy .ledger .bills .bl{font-size:13px;row-gap:5px;}
html.m.m-port .cy .ledger .bills .bl{grid-template-columns:minmax(0,1fr) auto;}
html.m .cy .ledger .acts{margin-top:6px;}
html.m .cy .ledger .acts .btn{height:44px;}
html.m .cy .cy-room .cap{left:12px;top:8px;}
html.m .cy .cy-room .cap .pg button{position:relative;width:32px;height:32px;}
html.m .cy .cy-room .cap .pg button::before{content:"";position:absolute;inset:-6px;}
html.m .cy-houses{right:12px;top:10px;flex-wrap:wrap;justify-content:flex-end;max-width:calc(100% - 24px);}
html.m .cy-houses button{height:44px;padding:0 12px;}
html.m .cy-alert{flex-wrap:wrap;row-gap:6px;padding:8px 12px;}
html.m .cy-alert .btn{height:44px;}
html.m .cy-pop{min-width:0;width:min(300px,calc(100% - 20px));bottom:12px;}
html.m .cy-pop .h .x{width:16px;height:16px;padding:14px;margin:-14px -14px -14px auto;box-sizing:content-box;}
html.m .cy-pop .acts .btn{height:44px;flex:1 1 0;}

/* ======================================================================================================
   场外线 · A 家（js/m/home.js）：整页上下滑，一块一块往下排——住处一行（区 · 房子 + 净资产）→ 窗景 → 车库 → 表盒 → 存款 / 每周账单 / 按钮
   顶栏是城市那一套（时间 · 现金 · 存款），净资产挪到住处那一行，不再和存款 / 现金叠字
   ====================================================================================================== */
html.m.m-port .cy-homev.on{background:#110c09;padding:0 calc(16px + var(--m-safe-r)) 20px calc(16px + var(--m-safe-l));}
html.m.m-port .cy-homev .cy-alert{margin:12px 0 0;border-radius:12px;}
html.m .m-homehd{display:flex;align-items:center;gap:12px;padding:14px 2px 12px;}
html.m.m-port .m-homehd{display:flex;}
html.m .m-homehd .tx{flex:1;min-width:0;line-height:1.3;}
html.m .m-homehd .tx small{display:block;font-size:12px;letter-spacing:.2em;color:var(--ma-tx3);opacity:1;}
html.m .m-homehd .tx b{display:block;font-family:var(--serif);font-weight:400;font-size:18px;color:var(--brass-100);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html.m .m-homehd .nw{flex:none;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;min-height:48px;padding:4px 12px;border-radius:12px;
  background:linear-gradient(180deg,#1d1510,#140e0a);border:1px solid var(--ma-hair);color:var(--tx-1);font-family:var(--sans);line-height:1.2;cursor:pointer;}
html.m .m-homehd .nw small{font-size:12px;color:var(--ma-tx3);opacity:1;}
html.m .m-homehd .nw b{font-family:var(--serif);font-weight:400;font-size:17px;color:var(--brass-100);}
html.m .m-homehd .nw i{font-style:normal;font-size:12px;}
html.m .m-homehd .nw i.pos{color:var(--good);} html.m .m-homehd .nw i.neg{color:#e6b07a;}
html.m.m-port .cy-homev .cy-win{height:200px;min-height:0;border-radius:14px;overflow:hidden;border:1px solid var(--ma-hair);}
html.m.m-port .cy-homev .cy-hbot{display:flex;flex-direction:column;gap:12px;margin-top:12px;border-top:0;}
html.m.m-port .cy-homev .cy .cy-room,html.m.m-port .cy-homev .cy-room{position:relative;height:auto;min-height:0;border:1px solid var(--ma-hair);border-radius:14px;overflow:hidden;background:linear-gradient(180deg,#18120e,#110c09);}
html.m.m-port .cy-homev .cy-room .cap{position:static;align-self:stretch;display:flex;align-items:baseline;gap:10px;padding:12px 14px 4px;font-size:13px;letter-spacing:.2em;color:var(--ma-tx3);}
html.m.m-port .cy-homev .cy-room .cap b{font-family:var(--serif);font-weight:400;font-size:15px;letter-spacing:0;color:var(--brass-100);}
html.m.m-port .cy-homev .cy-room .cap .pg{margin-left:auto;}
html.m.m-port .cy-homev .garage .bays{position:relative;inset:auto;height:150px;margin:4px 10px 12px;}
html.m.m-port .cy-homev .garage .door{display:none;}
html.m.m-port .cy-homev .cy-room.garage:not(:has(.bay svg)){height:auto;}
html.m.m-port .cy-homev .cy-room.garage:not(:has(.bay svg)) .cap::after{content:"空着";margin-left:auto;letter-spacing:.04em;font-size:13px;color:var(--ma-tx3);}
html.m.m-port .cy-homev .cy-room.garage:not(:has(.bay svg)) .cap{padding-bottom:12px;}
html.m.m-port .cy-homev .garage .away{position:static;padding:0 14px 12px;font-size:13px;}
html.m.m-port .cy-homev .watchbox .box{position:relative;left:auto;top:auto;transform:none;align-self:center;width:calc(100% - 24px);max-width:340px;margin:6px auto 14px;}
html.m.m-port .cy-homev .watchbox .jw{position:static;padding:0 14px 12px;}
html.m.m-port .cy-homev .ledger{border:1px solid var(--ma-hair);border-radius:14px;padding:14px 14px 14px;background:linear-gradient(180deg,#18120e,#110c09);}
html.m.m-port .cy-homev .ledger .big .k{font-size:13px;letter-spacing:.2em;color:var(--ma-tx3);}
html.m.m-port .cy-homev .ledger .big .v{font-size:30px;}
html.m.m-port .cy-homev .ledger .legend{font-size:13px;}
html.m.m-port .cy-homev .ledger .bills .bh{font-size:13px;}
html.m.m-port .cy-homev .ledger .acts{display:flex;flex-wrap:wrap;gap:8px;}
html.m.m-port .cy-homev .ledger .acts .btn{flex:1 1 auto;height:48px;border-radius:12px;font-size:15px;}
html.m.m-port .cy-homev .ledger .acts .btn.primary{flex:1 1 100%;height:52px;}
html.m.m-port .cy-homev .cy-houses{top:8px;right:8px;}
html.m.m-port .cy-homev .cy-pop{position:absolute;left:10px;right:10px;width:auto;bottom:10px;z-index:5;}
/* 复核（低）：窗外招牌被窗框竖梃切成半截→ 竖屏窗子窄，只留外框不要中间两根竖梃，景色左右多露一点 */
html.m.m-port .cy-homev .cy-win .mullion{display:none;}
html.m.m-port .cy-homev .cy-win svg.view{left:14px;right:14px;width:calc(100% - 28px);}
html.m.m-port .cy-homev .cy-win .frame{left:14px;right:14px;}
/* 合 v79：没车时那一块（.g-none：走路图标 · 没车 · [去车行看看]；v79 把「出门走路或者打车」挪进「没车」的悬停）在电脑版是盖在车位正中的一块；
   手机竖屏这一格只剩一行高，原来被裁得只露出键的上沿（28 高，点不到）→ 排到「车库 0/1」下面一行，键 44 高；「空着」那两个字不再重复 */
html.m.m-port .cy-homev .cy-room.garage .g-none{position:static;transform:none;flex-direction:row;align-items:center;gap:8px;padding:0 14px 12px;border:0;border-radius:0;background:none;box-shadow:none;}
html.m.m-port .cy-homev .cy-room.garage .g-none b{font-size:15px;letter-spacing:.1em;padding-left:0;}
html.m.m-port .cy-homev .cy-room.garage .g-none .btn{height:44px;margin:0 0 0 auto;padding:0 16px;font-size:14px;}
html.m.m-port .cy-homev .cy-room.garage.nocar:has(.g-none) .cap::after{content:none;}
html.m.m-port .cy-homev .cy-room.garage.nocar:has(.g-none) .cap{padding-bottom:4px;}
