@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--green:#227653;--ink:#25382f;--muted:#89918a;--line:#e5e9e3;--bg:#f7f8f4}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:13px Manrope,Arial,sans-serif;color:var(--ink)}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);border-radius:7px;padding:10px 14px}button:hover{filter:brightness(.97)}button:disabled{opacity:.45;cursor:not-allowed}aside{width:234px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:30px 19px;display:flex;flex-direction:column}.brand{font-size:34px;color:var(--green);text-decoration:none;padding-left:12px;letter-spacing:-2px}.brand small{display:block;font-size:8px;letter-spacing:2px;margin:8px 0 30px;color:#90988f}.workspace{border:1px solid var(--line);border-radius:8px;padding:12px;display:flex;align-items:center;gap:10px;font-size:11px;margin-bottom:30px}.workspace>span:last-child{margin-left:auto}small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.avatar{border-radius:50%;background:#edf1e9;color:#64816b;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0}.navlabel{color:#a0a69e;font-size:9px;letter-spacing:1.5px;padding:0 14px 12px}nav button{display:flex;width:100%;border:0;text-align:left;gap:13px;margin-bottom:6px;padding:13px 14px;color:#7a847b;background:transparent}nav button.active{background:#eaf2eb;color:var(--green);font-weight:800}nav button em{font-size:9px;font-style:normal;margin-left:auto;background:#dceadd;padding:2px 6px;border-radius:4px}.sidebottom{margin-top:auto}.help{background:#f5f6f0;padding:16px;font-size:10px;border-radius:8px;line-height:1.7;position:relative}.help span{position:absolute;right:15px;top:12px;color:var(--green)}.profile{display:flex;border:0;border-top:1px solid var(--line);margin-top:22px;border-radius:0;width:100%;gap:10px;align-items:center;text-align:left;padding:20px 0 0;font-size:11px}.dark{background:#2f5440;color:white}main{margin-left:234px}header{height:78px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 40px;background:#fff;font-size:11px}header span{color:#9ba19a}.headerRight{display:flex;gap:20px;align-items:center}.icon{border:0;font-size:21px;padding:4px}.demobadge{background:#f4f3eb;color:#9a8750!important;padding:6px 10px;border-radius:5px;font-size:10px}.content{max-width:1500px;padding:36px 40px;margin:auto}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:20px}.eyebrow{font-size:9px;font-weight:800;letter-spacing:1.7px;color:#8a9788}h1{font-size:30px;font-weight:700;letter-spacing:-1.2px;margin:8px 0 9px}p{color:#8a9289;line-height:1.7;margin:0}.headbuttons{display:flex;gap:10px;align-items:center}input,select{border:1px solid var(--line);padding:10px;background:#fff;border-radius:6px;color:var(--ink)}.primary{background:var(--green);color:#fff;border-color:var(--green)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:24px}.stat{border:1px solid var(--line);background:#fff;border-radius:9px;padding:21px}.stat label{color:#879184;font-size:11px;display:flex;justify-content:space-between}.stat strong{font-size:29px;display:block;margin:17px 0 12px;font-weight:600;letter-spacing:-1px}.stat small{font-size:10px}.good{color:#4c8c67}.amber{color:#b98e3f}.banner{background:#edf2e7;border:1px solid #dfe7d7;display:flex;align-items:center;padding:18px 21px;gap:16px;border-radius:8px;margin-bottom:28px}.banner .symbol{font-size:23px;color:#6a8b4c}.banner b{font-size:12px}.banner p{font-size:11px;margin-top:4px;color:#829078}.banner button{margin-left:auto;background:transparent;border-color:#d4deca;font-size:11px;white-space:nowrap}.sectionhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}h2{font-size:17px;letter-spacing:-.4px;margin:0}h2 small{display:inline;margin-left:8px;font-weight:400;font-size:11px}.tools{display:flex;gap:10px}.tools input{font-size:11px;width:205px}.tools select{font-size:11px}.panel{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:9px;font-weight:500;color:#969c92;letter-spacing:.7px;background:#fafbf8;padding:15px 20px;border-bottom:1px solid var(--line)}td{padding:19px 20px;border-bottom:1px solid #eef0eb;font-size:11px}tr:last-child td{border-bottom:0}.address{display:flex;gap:12px;align-items:center}.house{background:#f1f3ec;border-radius:8px;width:38px;height:40px;display:flex;justify-content:center;align-items:center;color:#799273;font-size:21px}.address b{font-weight:700}.address small{font-size:9px}.tag{font-size:9px;display:inline-block;padding:5px 8px;border-radius:4px;background:#ecf4ed;color:#568166}.tag.wait{background:#fbf3df;color:#b48e45}.tag.off{background:#f1f2ee;color:#969b90}.money{font-weight:700}.zero{color:#94a08e}.rowbtn{padding:5px 9px;border:0;background:transparent;color:#98a38f}.tablefoot{padding:14px 20px;border-top:1px solid var(--line);font-size:10px;color:#a0a69b;display:flex;justify-content:space-between}.lower{display:grid;grid-template-columns:1.35fr 1fr;gap:22px;margin-top:26px}.box{background:white;border:1px solid var(--line);border-radius:9px;padding:22px}.box h2{font-size:14px;margin-bottom:19px}.timeline{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #f0f1ec;font-size:11px}.timeline:last-child{border:0}.timeline i{font-style:normal;background:#edf4ed;color:#63866a;border-radius:50%;width:27px;height:27px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.timeline time{margin-left:auto;color:#a2a79e;font-size:9px;white-space:nowrap}.integration{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line);font-size:11px}.integration:last-child{border:0}.provider{width:36px;height:36px;background:#f3f3ed;border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:800;color:#7e9271}.integration .tag{margin-left:auto}.integration small{font-size:9px}.muted{color:var(--muted)}footer{margin-top:35px;padding-top:20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:9px;color:#a6ac9f}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;width:530px;max-width:95vw;box-shadow:0 20px 100px #24362630}dialog::backdrop{background:#20382b55;backdrop-filter:blur(3px)}dialog h2{font-size:22px;margin-bottom:10px}dialog p{font-size:12px;margin-bottom:18px}form label{display:block;color:#7d877a;font-size:11px;margin-top:15px}form input,form select{width:100%;margin-top:6px}.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.notice{background:#f7f5ec;color:#9a864c;padding:12px;border-radius:6px;font-size:11px;line-height:1.7;margin:15px 0}.detailgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.detailgrid .box strong{font-size:27px;display:block;margin-top:14px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#284a35;color:white;padding:14px 24px;border-radius:8px;display:none;z-index:9;font-size:12px}.empty{padding:40px;text-align:center;color:var(--muted)}.link{color:var(--green);text-decoration:none;font-weight:700}.tenant{max-width:850px;margin:auto}.tenant .box{margin-bottom:20px}.tenant h2{margin-bottom:15px}.meterline{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line)}.meterline input{width:150px}.full{width:100%}.error{color:#b65342;font-size:11px;margin-top:12px}@media(min-width:1500px){.content{padding-top:45px}}@media(max-width:1150px){aside{width:200px}main{margin-left:200px}.content{padding:28px 24px}header{padding:0 24px}.heading{align-items:flex-start}.headbuttons{flex-direction:column;align-items:stretch}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:25px}td,th{padding:16px 12px}}@media(max-width:800px){aside{width:70px;padding:24px 8px}.brand{font-size:0;padding:0;text-align:center}.brand:first-letter{font-size:30px}.brand small,.workspace,.navlabel,.sidebottom{display:none}nav{margin-top:30px}nav button{font-size:0;justify-content:center;padding:14px 5px}nav button span{font-size:20px}nav em{display:none}main{margin-left:70px}.content{padding:22px 16px}header{padding:0 16px;height:60px}.demobadge{font-size:8px}.heading{flex-direction:column}h1{font-size:26px}.headbuttons{flex-direction:row;flex-wrap:wrap}.stats{grid-template-columns:1fr 1fr}.lower{grid-template-columns:1fr}.banner{align-items:flex-start;flex-wrap:wrap}.banner button{margin-left:38px}.sectionhead{gap:15px;align-items:flex-start;flex-direction:column}.tools input{width:160px}.detailgrid{grid-template-columns:1fr}footer{gap:20px}.headerRight{gap:8px}}
@media(max-width:800px){.sidebottom{display:block}.help{display:none}.profile{justify-content:center;padding-top:15px}.profile #rolelabel{display:none}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat strong{font-size:23px}.headbuttons{width:100%}.tools{flex-wrap:wrap}.tools input{max-width:100%}.headerRight .avatar{display:none}.banner p{overflow-wrap:anywhere}}
@media(max-width:480px){.stats{grid-template-columns:1fr}.stat strong{margin:10px 0}.demobadge{display:none}.heading p{font-size:12px}.headbuttons>*{width:100%}.tools{width:100%}.tools input{width:100%}.banner button{margin-left:0}.grid2{grid-template-columns:1fr}.actions{flex-wrap:wrap}dialog{padding:20px}.meterline{gap:10px;font-size:11px}footer{flex-direction:column}.workspace{margin:0}.stat label{font-size:11px}}

[hidden]{display:none!important}
.meter-settings{border:1px solid var(--line);border-radius:8px;margin:20px 0 10px;padding:16px}.meter-settings legend{padding:0 7px;font-weight:700;font-size:12px}.meter-settings .checkline{display:flex;gap:10px;align-items:center;margin:10px 0}.meter-settings .checkline input{width:16px;height:16px;margin:0}
.danger{color:#b34e40;border-color:#e8c9c2;background:#fff7f4}.primary.danger{background:#b34e40;color:white;border-color:#b34e40}
body.tenant-mode aside{display:none}body.tenant-mode main{margin-left:0}body.tenant-mode .heading,body.tenant-mode footer{display:none}body.tenant-mode header{height:68px;padding:0 max(24px,calc((100% - 780px)/2));background:#fff}body.tenant-mode .headerRight>:not(#tenantExit){display:none}body.tenant-mode .content{max-width:820px;padding:24px 20px}body.tenant-mode #crumb{font-size:14px;font-weight:700}body.tenant-mode #crumb span{display:none}body.tenant-mode #crumb::after{content:'Моя квартира'}body.tenant-mode #crumb{font-size:0}body.tenant-mode #crumb::after{font-size:14px}body.tenant-mode .tenant>.box:first-of-type{margin-top:0!important}body.tenant-mode .tenant .box{padding:24px}body.tenant-mode #tenantExit{font-size:12px}
@media(max-width:480px){body.tenant-mode .content{padding:16px 12px}body.tenant-mode .tenant .box{padding:20px}body.tenant-mode header{padding:0 20px}}
textarea{width:100%;font:inherit;line-height:1.6;margin-top:7px;border:1px solid var(--line);border-radius:7px;padding:12px;color:var(--ink);resize:vertical}
/* Simplified navigation and responsive layout */
body{font-size:14px}button,input,select,textarea{min-height:44px}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #82b79d;outline-offset:2px}button{font-weight:600}h1{font-size:28px}h2{line-height:1.4}small{font-size:11px}p{color:#6c786e}.heading #subtitle,.demobadge,#notifications,header .headerRight>.avatar,footer,aside .sidebottom{display:none}aside{width:200px;padding:28px 16px}main{margin-left:200px}.brand{font-size:31px;letter-spacing:-1.5px;padding:0 12px}.brand small{display:none}#nav{margin-top:36px}#nav button{align-items:center;font-size:13px;gap:12px;min-height:48px}#nav .nav-text{font-size:13px}header{height:64px;padding:0 32px;background:#fff}#crumb{font-weight:800;font-size:18px;color:var(--green)}.content{max-width:1280px;padding:28px 32px 40px}.heading{margin-bottom:22px;gap:16px}.heading h1{margin:0}.headbuttons{flex-direction:row;align-items:center;gap:10px}.headbuttons input{max-width:175px}.headbuttons>*{width:auto}#mobileNav{display:none}.compact-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.compact-stats button{padding:18px;text-align:left;border-radius:12px}.compact-stats strong{display:block;font-size:25px;letter-spacing:-.8px}.compact-stats small{margin-top:6px;color:#718271}.apartment-toolbar{display:flex;gap:12px;margin-bottom:18px}.apartment-toolbar input{flex:1;min-width:0}.apartment-toolbar select{max-width:220px}.apartment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.apartment-card{padding:22px;background:white;border:1px solid var(--line);border-radius:14px;min-width:0}.apartment-card-head{display:flex;align-items:flex-start;gap:14px;justify-content:space-between}.apartment-card h2{font-size:17px;margin:0 0 5px}.apartment-card p{font-size:12px}.tenant-name{margin:16px 0!important;color:#485e4c}.card-status{display:flex;flex-wrap:wrap;gap:6px;min-height:28px}.tag{font-size:10px;white-space:normal;line-height:1.5}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.card-bottom strong{display:block;margin-top:5px;font-size:22px}.card-bottom button{flex-shrink:0}.house{flex-shrink:0}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.settings-card{display:flex;align-items:center;text-align:left;gap:16px;padding:24px;border-radius:12px;min-height:110px}.settings-card>span:nth-child(2){flex:1}.settings-card b{font-size:15px}.settings-card small{line-height:1.6}.settings-icon{font-size:26px;color:var(--green)}.segmented{display:flex;gap:4px;border-radius:10px;padding:4px;background:#e9eee6;width:fit-content;margin:0 0 22px}.segmented button{border:0;background:transparent;min-width:120px;color:#73816e}.segmented button.active{background:#fff;color:var(--green);box-shadow:0 1px 5px #284a3512}.settings-route{display:flex;align-items:center;gap:12px;margin-bottom:20px}.settings-route button{border:0;background:transparent;color:var(--green);padding-left:0}.settings-route select{min-width:180px}.page-help{margin:0 0 20px;border:1px solid var(--line);background:white;border-radius:10px}.page-help>summary{padding:13px 16px;cursor:pointer;font-size:12px;color:#6b7a64;min-height:44px}.page-help .banner,.page-help .notice{border:0;background:transparent;margin:0;border-top:1px solid var(--line);border-radius:0}.page-help .banner p{font-size:12px}.inline-tools{display:inline-block;margin:8px 0;vertical-align:top}.inline-tools summary{min-height:44px;padding:12px;cursor:pointer;font-size:12px;color:var(--green)}.inline-tools>div{display:flex;gap:8px;flex-wrap:wrap;padding:5px}.apartment-settings{border:1px solid var(--line);background:white;border-radius:12px;margin:16px 0;overflow:hidden}.apartment-settings>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;list-style:none;cursor:pointer;min-height:68px}.apartment-settings>summary::-webkit-details-marker{display:none}.apartment-settings>summary b{font-size:15px}.apartment-settings[open]>summary{border-bottom:1px solid var(--line)}.settings-content{padding:22px}.form-section{margin-top:20px;border-top:1px solid var(--line)}.form-section>summary{padding:15px 0;cursor:pointer;font-weight:700;color:#425c48;min-height:48px}.form-section p{font-size:12px}.form-section .grid2{margin-bottom:14px}.modal-close{position:absolute;top:12px;right:12px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;font-size:28px;line-height:1;color:#71816c;border:0;background:#f3f5f0;border-radius:50%;z-index:2}dialog{max-height:90vh;max-height:90dvh;overflow-y:auto;overscroll-behavior:contain}dialog h2{padding-right:42px;font-size:22px}dialog .actions{border-top:1px solid var(--line);padding-top:16px}dialog .actions .primary{min-width:160px}.notice{font-size:12px;color:#8a7847;overflow-wrap:anywhere}.integration>div{min-width:0}.integration small{overflow-wrap:anywhere}.tablewrap{max-width:100%}td{white-space:normal;overflow-wrap:anywhere}.auth-mode aside,.auth-mode #mobileNav,.auth-mode .headbuttons,.auth-mode .sidebottom{display:none!important}.auth-mode main{margin-left:0}.auth-mode .heading{display:none}.auth-mode #page{max-width:430px;margin:50px auto}.auth-mode .content{padding-top:0}.auth-mode #page .box{border-radius:14px;padding:28px}.auth-mode #login .primary{width:100%}.auth-mode #login .actions{display:block}input[type=checkbox]{min-height:0}.meter-settings .checkline{min-height:44px}.meter-settings .checkline input{min-height:16px}.tenant-mode .tenant h2{padding-right:0}
@media(max-width:1000px){.apartment-grid{grid-template-columns:1fr}.content{padding:24px}.settings-card{padding:20px}}
@media(max-width:760px){
 aside{display:none}main{margin-left:0}header{height:58px;padding:0 18px;position:sticky;top:0;z-index:5;background:#ffffffed;backdrop-filter:blur(10px)}#crumb{font-size:20px}.headerRight{gap:8px}#tenantExit{font-size:12px;padding:8px 12px;min-height:40px}.content{padding:20px 16px calc(96px + env(safe-area-inset-bottom))}.heading{flex-direction:row;align-items:center;flex-wrap:wrap;margin-bottom:20px}.heading h1{font-size:25px}.headbuttons{width:auto;flex:1;justify-content:flex-end;flex-wrap:wrap}.headbuttons input{width:145px;font-size:14px;max-width:100%}.headbuttons button{font-size:12px;width:auto;padding:10px 12px}.compact-stats{gap:8px;margin-bottom:18px}.compact-stats button{padding:14px 10px;min-width:0}.compact-stats strong{font-size:22px;white-space:normal;overflow-wrap:anywhere}.compact-stats small{font-size:10px;line-height:1.5}.apartment-toolbar{gap:8px;flex-wrap:wrap}.apartment-toolbar input{width:100%;flex-basis:100%;font-size:16px}.apartment-toolbar select{width:100%;max-width:none;font-size:15px}.apartment-card{padding:18px}.apartment-card h2{font-size:18px}.apartment-card p{font-size:13px}.card-bottom strong{font-size:23px}.card-bottom button{min-height:46px}.settings-grid{grid-template-columns:1fr;gap:12px}.settings-card{min-height:90px;padding:20px}.settings-card b{font-size:16px}.settings-card small{font-size:12px}.settings-route{justify-content:space-between;gap:8px}.settings-route select{min-width:0;max-width:65%;font-size:16px}.settings-route button{font-size:13px}.segmented{width:100%;margin-bottom:18px}.segmented button{flex:1;min-width:0;font-size:14px}.grid2{grid-template-columns:1fr;gap:10px}.box{padding:18px}.box h2{font-size:17px}.sectionhead{flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px}.sectionhead h2{flex:1;min-width:140px}.sectionhead button{font-size:12px}.settings-content{padding:18px}.settings-content .sectionhead button{width:100%}.apartment-settings>summary{padding:18px}.form-section>summary{font-size:14px}.integration{flex-wrap:wrap;align-items:flex-start}.integration>div:not(:last-child){flex:1;min-width:130px}.integration>div:last-child{flex-basis:100%;margin-left:0!important}.integration>div:last-child button{flex:1}.integration .tag{margin-top:8px}.integration small{font-size:11px;line-height:1.6}.banner{padding:16px;gap:10px}.banner p{font-size:12px}
 #mobileNav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:10;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-top:1px solid #dde5da;background:#fffffff5;backdrop-filter:blur(12px);box-shadow:0 -4px 20px #25382f06;margin:0}#mobileNav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:58px;margin:0;padding:7px 2px;border:0;border-radius:9px;background:transparent;font-size:11px;color:#7b8975}#mobileNav button>span:first-child{font-size:23px;line-height:1}#mobileNav .nav-text{font-size:11px}#mobileNav button.active{background:#edf4eb;color:var(--green);font-weight:800}
 input,select,textarea{font-size:16px;min-height:46px;max-width:100%}form label{font-size:13px;line-height:1.5}form input,form select{margin-top:7px}.notice{font-size:12px}.actions{gap:8px}.inline-tools{display:block}.inline-tools>div{flex-direction:column}.inline-tools button{width:100%;font-size:13px}.inline-tools summary{font-size:13px;padding-left:0}
 #page table,dialog table{display:block;width:100%;min-width:0;white-space:normal}#page thead,dialog thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#page tbody,dialog tbody{display:block;width:100%}#page tr{display:block;padding:16px;border-bottom:1px solid var(--line)}#page tr:last-child{border-bottom:0}#page td{display:block;padding:8px 0;border:0;max-width:none!important;font-size:14px;line-height:1.65}#page td::before,dialog td::before{content:attr(data-label);display:block;font-size:10px;font-weight:700;color:#8d9a85;letter-spacing:.5px;margin-bottom:4px}#page td[data-label=""]::before,dialog td[data-label=""]::before{display:none}#page td.td-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:12px}#page td.td-actions>button{flex:1;min-width:110px;font-size:13px}#page td small{font-size:12px;line-height:1.6}.tablewrap{overflow:visible}.panel{overflow:hidden}.tag{font-size:11px}.timeline{font-size:13px}.timeline time{font-size:10px;white-space:normal}.timeline small{font-size:11px}.meterline{gap:12px;font-size:14px}.meterline small{font-size:11px}
 dialog{position:fixed;inset:0;margin:0;width:100%!important;max-width:none;max-height:100vh;max-height:100dvh;height:100vh;height:100dvh;border:0;border-radius:0;padding:24px 18px calc(24px + env(safe-area-inset-bottom));box-sizing:border-box}dialog h2{font-size:23px;margin:5px 0 18px}dialog p{font-size:13px}dialog .actions{position:sticky;bottom:calc(-24px - env(safe-area-inset-bottom));background:white;margin:24px -18px -24px;padding:14px 18px calc(14px + env(safe-area-inset-bottom));z-index:3;display:flex;flex-wrap:wrap;box-shadow:0 -8px 14px #ffffffed}dialog .actions .primary{width:100%;order:-1;min-height:48px;font-size:15px}dialog .actions>button{flex:1}dialog .modal-close{position:absolute;top:16px;right:16px}dialog .tablewrap{overflow:visible}dialog tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 12px;padding:18px 0;border-bottom:1px solid var(--line)}dialog td{display:block;min-width:0;padding:0;border:0;font-size:13px}dialog td:first-child{grid-column:1/-1}dialog td input,dialog td select{width:100%!important;min-width:0;font-size:16px}dialog td small{font-size:12px;line-height:1.6}.error{font-size:13px;line-height:1.6;padding:8px 0}#toast{bottom:calc(90px + env(safe-area-inset-bottom));max-width:calc(100% - 24px);width:max-content;font-size:13px;line-height:1.5;padding:12px 16px}
 body.tenant-mode #mobileNav{display:none}body.tenant-mode .content{padding:18px 14px 28px}body.tenant-mode header{height:58px;padding:0 18px}body.tenant-mode .tenant .box{padding:20px}body.tenant-mode #toast{bottom:20px}body.auth-mode #page{margin:24px auto}.auth-mode .content{padding:20px 16px}.auth-mode header{position:relative}
}
@media(max-width:360px){.content{padding-left:12px;padding-right:12px}.heading h1{font-size:23px}.headbuttons input{width:130px}.compact-stats strong{font-size:20px}.compact-stats small{font-size:9px}.headbuttons #add{flex-basis:auto}.settings-route select{max-width:62%}.card-bottom strong{font-size:21px}}
@media(max-width:760px){.heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px}.heading>div:first-child{min-width:0}.heading h1{font-size:24px;line-height:1.25;overflow-wrap:normal}.headbuttons{display:contents}.headbuttons input{width:165px;font-size:14px;min-width:0}.apartment-toolbar select{flex:1;width:auto;min-width:0;font-size:14px}.apartment-toolbar>.primary{min-width:110px}.compact-stats small{font-size:11px}.inline-tools{flex-basis:100%}}
@media(max-width:360px){.heading h1{font-size:22px}.headbuttons input{width:150px}.compact-stats small{font-size:10px}}

/* Monthly consumption and issued bill explanation. */
.usage-list{min-width:240px}.usage-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid var(--line,#e5e8e3)}.usage-row:last-child{border-bottom:0}.usage-row b{font-size:14px}.usage-row small,.charge-row small{display:block;margin-top:5px;color:#737d75;font-size:12px;line-height:1.5}.usage-total{flex-shrink:0;text-align:right}.usage-total strong{font-size:21px;color:#267454;font-variant-numeric:tabular-nums}.usage-total strong span{font-size:13px}.usage-total small{font-size:11px}.usage-row .usage-warning{color:#a76624}.input-usage{display:block;margin-top:7px;color:#267454;font-size:13px;font-weight:600}.bill-breakdown{margin:22px 0}.bill-breakdown h3{margin:0;font-size:18px}.bill-breakdown .sectionhead>span{font-size:13px;color:#737d75}.charge-row{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:18px 0;border-bottom:1px solid #e5e8e3}.charge-row>div{min-width:0}.charge-row>b,.charge-row>strong{flex-shrink:0;font-size:17px;font-variant-numeric:tabular-nums}.charge-row b{line-height:1.5}.charge-formula{margin:7px 0 0;color:#267454;font-size:14px;line-height:1.5;font-variant-numeric:tabular-nums}.charge-total{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;font-weight:600}.charge-total strong{font-size:24px;white-space:nowrap}.tenant .usage-list{margin-top:8px}
@media(max-width:760px){.usage-list{min-width:0;width:100%}#page td:has(>.usage-list){display:block}.usage-row{gap:10px;align-items:flex-start}.usage-row b{font-size:14px}.usage-total strong{font-size:20px}.charge-row{flex-wrap:wrap;gap:8px}.charge-row>div{flex:1 1 180px}.charge-row>strong{margin-left:auto}.charge-total{align-items:flex-end}.charge-total strong{font-size:23px}.charge-row small{font-size:12px}}
.tenant-bill{margin-top:16px;border:1px solid #e5e8e3;border-radius:12px;overflow:hidden}.tenant-bill>summary{display:flex;justify-content:space-between;align-items:center;gap:14px;cursor:pointer;padding:16px;list-style:none}.tenant-bill>summary::-webkit-details-marker{display:none}.tenant-bill>summary span{font-weight:600}.tenant-bill>summary small{display:block;font-weight:400;color:#737d75;font-size:12px;margin-top:5px}.tenant-bill>summary strong{white-space:nowrap;font-size:19px}.tenant-bill>summary:after{content:'⌄';color:#737d75}.tenant-bill[open]>summary:after{content:'⌃'}.tenant-bill .bill-breakdown{padding:0 16px;margin:8px 0 0}.tenant-bill .charge-row{gap:8px}
