/* Shared mobile visual system; desktop layout is unchanged. */
.room-tab-icon,.room-tab-short{display:none}
@media(max-width:600px){
 #app[data-view=rooms]>.tabs.room-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;padding:0!important;border:0;background:transparent!important;margin-bottom:14px}
 #app[data-view=rooms]>.room-tabs .tab{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:76px;padding:10px 2px!important;border:1px solid #c9d6e8!important;border-radius:12px!important;background:#fff;font-size:13px!important;line-height:1.3;text-align:center}
 #app[data-view=rooms]>.room-tabs .tab.active{border-color:#2454c6!important}
 #app[data-view=rooms]>.room-tabs .room-tab-icon{display:block;width:23px;height:23px;flex:none}
 #app[data-view=rooms]>.room-tabs .room-tab-label{display:none}
 #app[data-view=rooms]>.room-tabs .room-tab-short{display:block;white-space:nowrap}
 #app[data-view=rooms]>.room-tabs .count{position:absolute;top:5px;right:5px;display:grid;place-items:center;min-width:18px;height:18px;margin:0;padding:0 4px;border-radius:6px;background:#e6eef9;color:#2454c6;font-size:11px;font-weight:700}
 #app[data-view=rooms]>.room-tabs .req-count{background:#2454c6;color:#fff}
 #app[data-view=rooms]>.room-tabs .tab.active .count{background:#fff;color:#2454c6}
 #app[data-view=rooms]>.room-tabs .tab:focus-visible{outline:3px solid #7fa5e3;outline-offset:2px}
}
.bill-mobile-method{display:none}
@media(max-width:600px){
 #app[data-view=billing]:has(.bill-plan) .bill-status-tabs,
 #app[data-view=billing]:has(.bill-plan) .bill-methods{display:none}
 #app[data-view=billing]:has(.bill-plan) .bill-filters{margin-bottom:14px;border-color:#c9d6e8}
 #app[data-view=billing]:has(.bill-plan) .bill-filter-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:12px}
 #app[data-view=billing]:has(.bill-plan) .bill-mobile-method{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;min-width:0;color:#536884;font-size:13px}
 #app[data-view=billing]:has(.bill-plan) .bill-mobile-method select{width:100%;min-width:0;min-height:44px}
 #app[data-view=billing]:has(.bill-plan) .bill-search{min-width:0;width:100%;box-sizing:border-box;background:#fff;border-color:#c9d6e8}
 #app[data-view=billing]:has(.bill-plan) .bill-search input{background:transparent;border:0;min-height:44px;font-size:15px!important}
 #app[data-view=billing] .bp-stat{min-height:76px}
 #app[data-view=billing] .bp-stat:focus-visible{outline:3px solid #2454c6;outline-offset:3px}
}
@media(max-width:600px){
 #app .mobile-home-map{margin-top:22px;overflow:hidden}
 #app .mobile-home-map>.card-head h2{font-size:19px;margin:0}
 #app .mobile-home-map>.card-head p{font-size:12px;margin:4px 0 0}
 #app .mobile-home-map .map-legend{font-size:12px;gap:7px 10px}
 #app .mobile-home-map .map-building-title{display:grid;grid-template-columns:40px minmax(0,1fr);gap:7px 10px}
 #app .mobile-home-map .map-building-title h3{font-size:18px}
 #app .mobile-home-map .map-building-occupancy{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;width:100%;margin:0}
 #app .mobile-home-map .map-floor-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;padding-bottom:5px;color:#244f7f;font-size:16px;font-weight:600}
 #app .mobile-home-map .map-floor-heading small{font-size:12px;font-weight:400;margin:0}
 #app .mobile-map-types{background:#fff;border-top:1px solid #c9d8ed}
 #app .mobile-map-types>summary{min-height:44px;display:flex;align-items:center;gap:8px;padding:10px 12px;color:#244f87;font-size:14px;cursor:pointer;list-style:none}
 #app .mobile-map-types>summary::before{content:'▸'}
 #app .mobile-map-types[open]>summary::before{content:'▾'}
 #app .mobile-map-types .map-type-heading{display:none}
}
@media(max-width:600px){
 body{background:#e9eef6!important;color:#172f50}
 .shell{background:#e9eef6!important}
 .shell>header{background:#163257!important;color:#edf3ff!important;box-shadow:none!important;border-bottom:1px solid #26486f;padding:12px 16px!important}
 .shell>header .breadcrumb,.shell>header .breadcrumb-property,.shell>header .icon-btn{color:#edf3ff!important}
 #app{padding:16px 14px 95px!important}
 #app h1{font-size:25px!important;color:#173e70!important;line-height:1.35}
 #app h2,#app h3{color:#173e70}
 .gs-bar{background:#e9eef6!important;padding:10px 14px 0!important}.gsearch{border:1px solid #cbd7e8!important;box-shadow:none!important}
 #app .card{background:#fff;border:1px solid #c9d6e8;border-radius:14px;box-shadow:0 3px 12px #19352c05}
 #app .card-head{background:#e6eef9;border-bottom:1px solid #c9d8ed;padding:14px}
 #app .btn.primary,#modal .btn.primary,#app .tab.active,#app .view-toggle button.active{background:#2454c6!important;border-color:#2454c6!important;color:#fff!important;box-shadow:none!important}
 #app .tabs,#app .view-toggle{background:#e6eef9!important;border-color:#bdcce2!important;padding:4px;border-radius:12px;gap:4px}
 #app .tab,#app .view-toggle button{min-height:44px;color:#516883;border-radius:9px!important}
 #app input,#app select,#app textarea{font-size:16px!important;border-color:#b6c8e1!important;background-color:#fff;color:#193b64;border-radius:9px;min-height:44px}
 #app .filters,#app .desktop-filter-toolbar,#app .room-plan-filters{background:#e6eef9!important;border-color:#cbd7e8!important;border-radius:12px}
 #app table.stack tbody tr{background:#fff!important;border:1px solid #c9d6e8!important;box-shadow:0 2px 8px #153e2606!important;border-radius:12px!important}
 #app table.stack td{color:#193b64}#app .muted,#app .hint{color:#536884}
 #app .room-plan-buildings button[aria-pressed=true]{background:#2454c6;border-color:#2454c6}
 #app .room-plan-building-head{background:#163257}
 #app .room-plan-floor{background:#f1f5fc}
 #app .meter-kind.is-active,#app .meter-kind[aria-pressed=true]{box-shadow:none}
 #mnav{background:#fff!important;border-top:1px solid #cbd7e8!important;box-shadow:0 -3px 12px #20362b08!important;padding:5px 5px calc(5px + env(safe-area-inset-bottom))!important;gap:3px}
 #mnav button{background:transparent!important;color:#536884!important;border-radius:10px!important;min-height:55px;font-size:12px!important;box-shadow:none!important;padding:5px 2px!important}
 #mnav button>span{font-size:24px!important;line-height:1.2}
 #mnav button.active{background:#dce8fc!important;color:#2454c6!important;font-weight:700}
 #modal{border-radius:18px 18px 0 0;border-color:#cbd7e8;background:#f7f9fd}
 #modal .modal-head{background:#163257!important;color:white;border-radius:12px}
 #modal .app-menu-item{background:#fff!important;border:1px solid #cbd7e8!important;color:#244f87!important;box-shadow:none!important}
 #modal .app-menu-item.is-current{background:#dce8fc!important;border-color:#2454c6!important}
 #modal .app-menu-icon{background:#e6eef9!important;color:#2454c6!important}
 #app[data-view=dashboard]:has(.mobile-home)>.mobile-fold,#app[data-view=dashboard]:has(.mobile-home)>.split{display:none!important}
 #app[data-view=dashboard]:has(.mobile-home)>.dash-tabs{margin-bottom:10px}
 #app .mobile-dashboard-period{margin:0 0 12px}.mobile-dashboard-period>span{display:none}
 #app .mobile-home .mh-title{margin:12px 0}.mh-title h2{font-size:27px!important;margin:0!important;color:#173e70!important}
 .home-demo{font-size:11px;background:#e6eef9;color:#536884;padding:6px 9px;border-radius:20px}
 #app .mh-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #app .mh-stats button{display:flex;align-items:center;gap:9px;padding:13px 10px;background:#fff;border:1px solid #c9d6e8;border-radius:14px;min-height:89px;box-shadow:0 3px 12px #1f342b06}
 #app .mh-stats button>span{font-size:13px;color:#536884;min-width:0}
 #app .mh-stats strong{font-size:20px;letter-spacing:-.5px;color:#153c72;margin:3px 0 0;white-space:normal;overflow-wrap:anywhere}
 .mh-stats i{display:grid;place-items:center;flex:0 0 30px;height:30px;font-size:20px;font-style:normal;font-weight:700;background:#e3f4ea;color:#138557;border-radius:50%}
 .home-stat-overdue i{background:#fce9e7;color:#b44b3d}.home-stat-review i{background:#ebe9fb;color:#6254a3}
 .home-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.home-section-title h3,.home-tasks h3{font-size:21px;margin:0}.home-section-title .text-btn{font-size:13px;color:#2454c6}
 .home-room-section>.hint{margin:2px 0 12px;font-size:12px}.home-room-section h4{font-size:15px;margin:12px 0 8px}
 .home-room-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .home-room{display:flex;flex-direction:column;gap:7px;min-width:0;min-height:103px;padding:10px 5px;background:white;border:1px solid #c9d6e8;border-radius:10px;color:#193b64;text-align:left;font:inherit;box-shadow:0 2px 8px #12302105}
 .home-room strong{font-size:17px}.home-room>span{font-size:11px}.home-room small{font-size:10px;padding:4px 2px;border-radius:5px;background:#e6eef9;text-align:center;white-space:normal;margin-top:auto}
 .home-room.vacant{background:#edf7f0;border-color:#93bea3;color:#166445}.home-room .pay-paid{background:#e1f4e7;color:#167043}.home-room .pay-overdue{background:#fce9e7;color:#a53832}.home-room .pay-review{background:#efebfa;color:#654a9c}
 .home-tasks{margin-top:24px}.home-tasks h3{margin-bottom:12px}.home-tasks button{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:58px;padding:13px;background:#fff;border:1px solid #c9d6e8;border-radius:12px;margin:8px 0;color:#193b64;font:inherit;text-align:left}.home-tasks b{font-size:13px;font-weight:500;color:#536884}
}
@media(max-width:350px){#app .mh-stats button{gap:6px;padding:11px 7px}.mh-stats i{display:none}#app .mh-stats strong{font-size:20px}.home-room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-room{min-height:96px}}
@media(max-width:600px){#app .mobile-home .mh-title{background:none;padding:0;border-radius:0;box-shadow:none;flex-wrap:nowrap}#app .mobile-home .mh-stats button{display:flex!important;grid-column:auto!important;order:0!important;background:#fff!important;border-color:#c9d6e8!important;padding:13px 10px!important;gap:9px!important}#app .mobile-home .mh-stats strong{font-size:20px!important;color:#153c72!important;margin:3px 0 0!important}.mh-stats i{width:30px;max-width:30px}#app .mobile-home .mh-title h2{color:#173e70!important}}
@media(max-width:600px){#mnav button>span svg{width:24px;height:24px;display:block;margin:auto}#app .meter-kind-tabs{background:#e6eef9;border-color:#cadbd3}#app .meter-kind-button.is-active{background:#2454c6;border-color:#2454c6;box-shadow:none}#app .filters .btn.active,#app .filter-chip.active{background:#2454c6!important;border-color:#2454c6!important;color:white!important}#app .page-heading{margin-bottom:16px!important;gap:10px!important}.home-room strong{font-weight:750}.home-room small{font-size:11px}}
@media(max-width:600px){.shell:has(#app[data-view=rooms])>.gs-bar,.shell:has(#app[data-view=meters])>.gs-bar,.shell:has(#app[data-view=billing])>.gs-bar,.shell:has(#app[data-view=repairs])>.gs-bar{display:none!important}#app[data-view=rooms]>.page-heading .actions{display:none}#app[data-view=rooms]>.tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}#app[data-view=rooms]>.tabs .tab{white-space:normal;min-width:0;padding:8px 4px;font-size:14px}#app .mobile-filter-chips .btn.active,#app .mobile-filter-chips .active{background:#2454c6!important;color:#fff!important;border-color:#2454c6!important}}
@media(max-width:600px){#app[data-view=dashboard]:has(>.dash-tabs>.tab:nth-child(2).active)>.page-heading{display:none!important}}
@media(max-width:600px){#app>.page-heading>div:first-child{display:none!important}#app>.page-heading:has(>.actions:empty),#app[data-view=rooms]>.page-heading,#app .mobile-home>.mh-title{display:none!important}#app>.page-heading{margin-top:0!important;margin-bottom:12px!important}#app>.page-heading>.actions{margin-top:0;width:100%}}
