:root{--forest:#193c33;--green:#397c58;--mint:#e5f2e9;--bg:#f5f8f5;--text:#21352e;--muted:#65776d;--line:#e0e8e1;--danger:#b3433d}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Nunito,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;line-height:1.55}a{color:var(--green);text-decoration:none}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:white;border:1px solid #cedbd0;border-radius:9px;color:var(--forest);padding:10px 15px;font-weight:650;cursor:pointer;text-decoration:none}button:hover,.button:hover{background:var(--mint)}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:var(--forest)}.wide{width:100%}.shell{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--forest);color:#fff;position:sticky;top:0;height:100vh;padding:25px 15px;display:flex;flex-direction:column;overflow:auto}.brand{display:flex;align-items:center;gap:12px;color:white;padding:0 4px 22px}.brand img{width:82px;background:white;border-radius:8px;padding:5px}.brand b{font-size:22px;letter-spacing:-.7px}.brand span{font-size:8px;letter-spacing:1.5px;display:block;font-weight:600;color:#a8d5bc}.nav-label{color:#a5c5b3;font-size:10px;font-weight:700;letter-spacing:1.4px;padding:10px 12px}.sidebar nav a,.side-bottom>a{display:flex;align-items:center;gap:10px;color:#d9e9df;border-radius:8px;padding:10px 12px;margin:2px 0}.sidebar nav a.active{background:#397c58;color:white;font-weight:700}.sidebar nav a:hover{background:#31574a}.nav-icon{font-size:18px;width:20px;text-align:center}.count{margin-left:auto;background:#d6e9db;color:#193c33;border-radius:10px;padding:0 7px}.side-bottom{margin-top:auto;padding-top:20px}.ghost{background:transparent;color:#e2efe6;border:1px solid #618371;width:100%}.ghost:hover{color:var(--forest)}main{padding:30px clamp(18px,3vw,48px);max-width:1550px;width:100%;margin:auto;align-self:start}header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:26px}h1,h2,h3,p{margin:0 0 12px}h1{font-size:30px;line-height:1.2;letter-spacing:-1px}h2{font-size:19px;letter-spacing:-.4px}h3{font-size:15px;margin-top:14px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:800;color:var(--green);display:block;margin-bottom:7px}.profile{display:flex;align-items:center;gap:10px}.avatar{background:#dcece2;color:var(--forest);width:39px;height:39px;display:grid;place-items:center;border-radius:50%;font-weight:800}.profile small,small{display:block;color:var(--muted);font-size:12px}.hero{background:linear-gradient(120deg,#193c33,#397c58);color:white;padding:27px 30px;border-radius:17px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.hero .eyebrow{color:#a9dbb7}.hero h2{font-size:26px}.hero p{color:#dfede4;margin:0}.hero img{width:160px;background:white;border-radius:12px;padding:8px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:15px 0 20px}.metric,.panel{background:white;border:1px solid var(--line);border-radius:14px;box-shadow:0 2px 10px #1f473007}.metric{padding:20px;min-height:108px}.metric span{color:var(--muted);font-weight:600;font-size:12px}.metric strong{font-size:clamp(18px,2vw,29px);display:block;letter-spacing:-.9px;overflow-wrap:anywhere;line-height:1.3;margin:8px 0 4px}.panel{padding:22px;margin-bottom:18px;min-width:0}.cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}.progress{display:flex;align-items:center;gap:14px;margin:20px 0 8px}progress{width:100%;height:12px;accent-color:var(--green)}.line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.line:last-child{border-bottom:0}.danger{color:var(--danger)}.muted{color:var(--muted)}.small{font-size:12px}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}th{text-align:left;background:#edf5ee;color:#456354;font-size:11px;text-transform:uppercase;letter-spacing:.35px}td,th{padding:12px;border-bottom:1px solid var(--line)}tbody tr:hover{background:#f7f9fc}.pill{display:inline-block;font-size:11px;font-weight:700;border-radius:20px;padding:4px 9px;white-space:nowrap}.good{color:#276947;background:#e3f3e7}.bad{color:#a33d3a;background:#fbe8e5}.wait{color:#805c1e;background:#fff3dc}.record{padding:12px 0;border-bottom:1px solid var(--line)}.record:last-child{border-bottom:0}.record form{margin-top:12px}.record p{margin:9px 0}.record .line{border:0}.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}label{display:block;font-weight:650;font-size:12px;color:#3b5849;margin:10px 0}input,select,textarea{display:block;border:1px solid #cad9cf;background:white;border-radius:8px;padding:10px 12px;margin-top:5px;width:100%;min-width:0;color:var(--text)}textarea{min-height:100px}input:focus,select:focus,textarea:focus{outline:2px solid #8bc6a4;outline-offset:1px}.period{display:flex;align-items:end;gap:10px;margin:0 0 12px}.period label{margin:0}.period button{margin-bottom:0}.alert{background:#fff4da;color:#73551e;padding:13px 16px;border-radius:9px;margin-bottom:16px}.alert.error{background:#fde9e6;color:#963e39}.alert.success{background:#e2f3e8;color:#246744}.allocation{display:grid;grid-template-columns:1fr minmax(80px,150px) auto;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:12px 0}.allocation input{margin:0}.empty{padding:24px 0;text-align:center}.search{max-width:400px;margin:12px 0}.pre{white-space:pre-wrap}.narrow{max-width:600px}.receipt{max-width:720px;padding-top:35px}.receipt-logo{width:140px}.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.compact .metric{box-shadow:none}.login{display:grid;grid-template-columns:1.1fr 1fr;min-height:100vh;background:white}.login-art{background:linear-gradient(145deg,#193c33,#397c58);color:white;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(30px,8vw,110px);overflow:hidden;position:relative}.login-art img{width:190px;background:white;padding:13px;border-radius:12px;margin-bottom:40px}.login-art h1{font-size:clamp(30px,4vw,56px);position:relative;z-index:1}.login-art p{color:#d6e9de}.orb{width:450px;height:450px;border:70px solid #a5cb6920;border-radius:50%;position:absolute;bottom:-260px;right:-100px;pointer-events:none}.login-form{max-width:480px;padding:45px;align-self:center}.login-form h1{font-size:36px}.login-form button{margin:16px 0}.login-form label{font-size:13px}.login-form input{padding:13px}footer{color:var(--muted);font-size:11px;text-align:center;padding:20px 0}details summary{cursor:pointer;color:var(--green);font-weight:650}@media(max-width:1000px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.shell{grid-template-columns:210px minmax(0,1fr)}.cols{grid-template-columns:1fr}}@media(max-width:720px){.shell{display:block}.sidebar{position:static;height:auto;padding:13px 15px;overflow:visible}.brand{padding:0 0 10px}.sidebar nav{display:flex;overflow:auto;white-space:nowrap}.sidebar nav a{padding:8px 10px}.sidebar .nav-label{display:none}.side-bottom{display:flex;align-items:center;justify-content:flex-end;padding-top:4px}.side-bottom>a{padding:5px}.ghost{padding:5px 9px}.nav-icon{display:none}main{padding:19px 14px}header{margin-bottom:17px}h1{font-size:23px}.profile div{display:none}.hero{padding:18px}.hero img{display:none}.hero h2{font-size:22px}.panel{padding:15px}.metric{padding:14px;min-height:94px}.metrics{gap:9px}.form-grid{grid-template-columns:1fr}.login{display:flex;flex-direction:column}.login-art{padding:28px}.login-art img{width:110px;margin-bottom:20px}.login-art h1{font-size:27px}.login-form{padding:28px;width:100%;max-width:480px}.line{flex-wrap:wrap}.allocation{grid-template-columns:1fr 90px auto}.compact{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{.sidebar,header,.button,button,form,footer,.alert{display:none!important}.shell{display:block}main{padding:0}.panel{border:0;box-shadow:none}.receipt{max-width:none}.metrics{grid-template-columns:repeat(3,1fr)}}
.mobile-bills{display:none}.allocation{font-size:13px;margin:10px 0}.mobile-bill .line{padding:5px 0}.mobile-bill .line:first-child{padding:8px 0}.mobile-bill small{margin-top:3px}@media(max-width:720px){.resident-table{display:none}.mobile-bills{display:block}.sidebar nav{flex-wrap:wrap;gap:3px;overflow:visible;white-space:normal}.sidebar nav a{font-size:12px;padding:7px 9px}.allocation{font-size:12px}.mobile-bill[hidden]{display:none}}

/* V4.1: grouped navigation and Botanica branding */
:root{--forest:#123e30;--green:#31784e;--mint:#e7f3e5;--bg:#f5f7f3;--text:#20352d;--muted:#5c7065;--line:#e0e8df}
.shell{grid-template-columns:248px minmax(0,1fr)}
.sidebar{background:linear-gradient(158deg,#153f30,#0d3027);padding:24px 15px;gap:5px}
.brand{flex-direction:column;align-items:flex-start;gap:12px;padding:0 10px 20px;border-bottom:1px solid #ffffff25;margin-bottom:7px}
.brand img{width:180px;max-width:100%;height:auto;padding:7px 10px;border-radius:8px;background:#fff}
.brand b{font-size:21px;letter-spacing:-.5px}.brand span{font-size:10px;letter-spacing:1px;margin-top:2px}
.ui-icon{width:20px;height:20px;flex:none}.sidebar nav{display:block}.sidebar nav a,.nav-group summary{padding:12px 11px;min-height:44px;margin:2px 0;gap:10px;border-radius:9px;font-weight:600;display:flex;align-items:center;color:#e5eee7;font-size:14px;line-height:1.35}.nav-group summary{cursor:pointer;list-style:none}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary:hover,.nav-group summary.group-active{background:#ffffff12;color:white}.chevron{margin-left:auto;font-size:22px;line-height:1;transition:transform .15s}.nav-group[open]>.nav-group-summary .chevron,.nav-group[open]>summary .chevron{transform:rotate(90deg)}.nav-children{padding:2px 0 4px 24px;border-left:1px solid #ffffff30;margin-left:20px}.sidebar nav .nav-children a{font-size:13px;padding:8px 9px;min-height:36px;margin:2px 0;font-weight:500}.sidebar nav a.active{background:#3f855a;color:#fff}.side-bottom{border-top:1px solid #ffffff25;margin-top:auto}.mobile-menu{display:none}
main{max-width:1450px;padding:34px clamp(20px,3vw,45px);margin:0 auto}.eyebrow{letter-spacing:1px}header{margin-bottom:23px}h1{font-size:32px}h2{font-size:20px}.hero{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(110deg,#143f31 15%,#23674b 80%,#347d54);padding:27px 30px;border-radius:16px;min-height:132px}.hero:after{content:"";position:absolute;z-index:-1;bottom:-105px;right:-30px;width:55%;height:180px;border-radius:50%;transform:rotate(-8deg);background:linear-gradient(120deg,#b6d67955,#61a77b66)}.hero img{width:185px;max-width:30%;height:auto;padding:8px 10px}.hero h2{margin-bottom:7px}.period{align-items:center;gap:12px}.period label{display:flex;align-items:center;gap:12px}.period input{width:auto;margin:0}.metric{display:flex;align-items:flex-start;gap:13px;padding:18px 16px;min-height:120px;border-radius:15px;box-shadow:0 4px 16px #163a2510}.metric-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#e5f1dd;color:#286a43;flex:none}.metric-icon svg{width:23px;height:23px}.metric-content{min-width:0;flex:1}.metric-content>span{color:#334b3e;font-size:12px}.metric strong{font-size:clamp(19px,2vw,28px);margin:5px 0 2px}.panel{box-shadow:0 4px 16px #163a2509;border-radius:15px}.panel .line a{font-weight:650}.empty-state{background:#f2f6f0;border-radius:8px;padding:15px;color:var(--muted);margin:15px 0}.panel h3{border-top:1px solid var(--line);padding-top:13px}.progress progress{min-width:0}.login-art img{width:230px}.receipt-logo{width:170px}.sidebar a:focus-visible,.sidebar summary:focus-visible,button:focus-visible{outline:2px solid #a9d3a0;outline-offset:2px}
@media(max-width:1100px){.shell{grid-template-columns:218px minmax(0,1fr)}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.cols{grid-template-columns:1fr 1fr}.metric{min-height:100px}.brand img{width:165px}}
@media(max-width:850px){.cols{grid-template-columns:1fr}.period label{display:block}.period input{margin-top:4px}.period{align-items:end}}
@media(max-width:720px){.shell{display:block}.sidebar{height:auto;position:static;padding:12px 15px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px}.brand{flex-direction:row;align-items:center;border:0;margin:0;padding:0;gap:9px}.brand img{width:112px;padding:5px}.brand b{font-size:17px}.brand span{font-size:7px}.mobile-menu{display:inline-flex;width:auto;gap:12px;padding:8px 10px}.sidebar nav{grid-column:1/-1;display:block;padding:7px 0}.sidebar nav[hidden]{display:none}.sidebar nav a,.nav-group summary{font-size:14px;padding:10px}.side-bottom{grid-column:1/-1;margin:0;padding:6px 0 0}.side-bottom>a{font-size:12px}.hero{min-height:0;padding:19px}.hero h2{font-size:21px}.hero img{display:none}main{padding:20px 14px}h1{font-size:25px}.metrics{gap:9px}.metric{padding:12px;gap:8px;min-height:100px;flex-direction:column}.metric-icon{width:30px;height:30px}.metric-icon svg{width:17px;height:17px}.metric strong{font-size:22px}.metric-content>span{font-size:12px}.panel{padding:16px}.period{flex-wrap:wrap}.login-art img{width:150px}}
@media print{.sidebar,.mobile-menu{display:none!important}.shell{display:block}main{padding:0}.metric,.panel{box-shadow:none}}

/* V4.2: transparent brand on dark backgrounds, no logo card */
.login-art img,.brand img,.hero img{background:transparent;padding:0;border:0;border-radius:0;box-shadow:none;object-fit:contain}.login-art img{width:min(270px,100%);margin-bottom:32px}.login-form{width:100%;max-width:490px;justify-self:center;margin:auto;padding:clamp(25px,4vw,48px)}.login-form .alert{font-size:14px;line-height:1.5}.login-form h1{margin-bottom:10px}.login-art{min-height:100%}.brand img{width:190px}.hero img{width:190px}.staff-main{max-width:850px;width:100%;margin:0 auto}.staff-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.staff-head img{width:160px}.staff-head form{margin:0}.staff-head .actions{align-items:center}.staff-main .record{margin:10px 0}.staff-main .line{gap:12px}.staff-main .line b{text-align:right}@media(max-width:720px){.login-art{min-height:0;padding:24px}.login-art img{width:155px;margin-bottom:12px}.login-form{padding:24px}.brand img{width:112px}.staff-head img{width:120px}}

/* V4.3: list-first master management */
.master-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.master-tabs a{padding:10px 15px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--text);font-weight:600;text-decoration:none}.master-tabs a.selected{background:var(--forest);color:white}.master-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.master-toolbar h2{margin:0}.master-toolbar p{margin:5px 0}.master-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.master-actions form,.row-menu form{margin:0}.master-list .search-label{max-width:390px;margin:18px 0}.master-list td{vertical-align:top}.master-list td small{display:block;margin-top:4px;overflow-wrap:anywhere}.master-list td:last-child{min-width:155px}.small-action{font-size:12px;padding:7px 10px;white-space:nowrap}.row-more{margin:0}.row-more summary{list-style:none;cursor:pointer}.row-more summary::-webkit-details-marker{display:none}.row-menu{display:grid;gap:7px;padding:9px 0;min-width:140px}.row-menu button{font-size:12px;width:100%;text-align:left}.row-menu .delete-action{color:#a32c2c;border-color:#e6c8c8}.row-menu small{max-width:160px;white-space:normal;color:var(--muted)}.master-form{max-width:950px}.master-form .form-grid{margin-top:15px}.master-form input[readonly]{background:#edf2ec;color:#52645a}.master-form hr{border:0;border-top:1px solid var(--line);margin:24px 0}.master-list tr[hidden],[data-staff-field][hidden]{display:none!important}.master-list .scroll{margin-top:12px}@media(max-width:720px){.master-tabs a{font-size:12px;padding:8px 10px}.master-toolbar{align-items:flex-start}.master-list td{min-width:100px}.master-list td:last-child{min-width:145px}.master-form .line h2{margin:0}.master-actions{gap:6px}}

/* Community transparency & proposals */
.community-total{font-size:clamp(1.55rem,3vw,2.1rem);font-weight:800;letter-spacing:-.035em;color:#245f46;display:block;margin:.5rem 0}.spending-row{margin:.8rem 0}.spending-row progress,.proposal-card progress{width:100%;height:10px;accent-color:#397c58}.proposal-card .line,.community-overview .line{gap:12px;flex-wrap:wrap}.proposal-card details,.proposal-compose{margin-top:14px}.proposal-card details>summary{cursor:pointer;font-weight:600;padding:10px 0}.proposal-compose>summary{width:max-content;cursor:pointer}.proposal-compose form,.proposal-card form{margin-top:12px}.proposal-card textarea{min-height:90px}.proposal-card small{display:block}.proposal-card h2{margin-top:6px}.proposal-card .pre{overflow-wrap:anywhere}.community-overview .metrics{margin:12px 0}@media(max-width:720px){.proposal-card .line{align-items:flex-start}.proposal-card .form-grid{grid-template-columns:1fr}.community-overview .line>a{width:100%}}

/* V4.4.1 — consistent action alignment and responsive controls */
[hidden]{display:none!important}
button,.button{min-height:40px;line-height:1.25;vertical-align:middle;text-align:center;max-width:100%;overflow-wrap:anywhere}
button:disabled{opacity:.55;cursor:not-allowed}a.button:focus-visible,summary.button:focus-visible,button:focus-visible{outline:2px solid #31784e;outline-offset:2px}
.master-toolbar .master-actions{align-items:center;justify-content:flex-end}.master-list td{vertical-align:top}.master-list td:last-child{min-width:204px}
.row-actions{display:grid;grid-template-columns:max-content minmax(126px,1fr);gap:8px;align-items:start;justify-content:start;max-width:240px}
.row-actions .small-action{min-height:36px;padding:8px 11px;font-size:12px;white-space:nowrap}.row-more{min-width:0}.row-more>summary.button{width:100%;justify-content:space-between;list-style:none}.row-more>summary::marker{content:''}.row-more>summary::-webkit-details-marker{display:none}.row-menu{min-width:0;width:100%;gap:8px;padding:8px 0 0}.row-menu button,.row-menu a{width:100%;min-height:36px;white-space:normal;text-align:center}.row-menu small{white-space:normal;max-width:none;line-height:1.35}.row-menu a{display:flex;justify-content:center;align-items:center;border:1px solid var(--line);border-radius:8px;padding:8px;font-size:12px}.proposal-compose>summary.button{width:auto;padding:10px 15px;color:white}.proposal-compose>summary.button:hover{color:var(--forest)}
.actions{align-items:flex-end}.actions>form{min-width:0}.record form>button+button{margin-left:4px}.line>*{min-width:0}.line>span,.record p,.record .pre{overflow-wrap:anywhere}.scroll{max-width:100%;overscroll-behavior-inline:contain}.master-tabs a{min-height:40px;display:inline-flex;align-items:center}
@media(max-width:720px){button,.button,.master-tabs a{min-height:44px}.master-toolbar .master-actions{width:100%;justify-content:flex-start}.master-toolbar .master-actions>a{flex:1 1 auto}.master-tabs{gap:6px}.master-tabs a{flex:1 1 auto;justify-content:center}.master-list .scroll{overflow:visible}.master-list table,.master-list tbody{display:block;white-space:normal}.master-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.master-list tr{display:block;border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-bottom:10px}.master-list td,.master-list td:last-child{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:8px;padding:7px 0;min-width:0;max-width:100%;overflow-wrap:anywhere;border-bottom:0;text-align:right}.master-list td[data-label]::before{content:attr(data-label);color:var(--muted);font-size:11px;font-weight:650;text-align:left;flex:0 0 96px}.master-list td:first-child{font-size:15px;text-align:left}.master-list td small{margin:0}.master-list td:last-child{border-top:1px solid var(--line);margin-top:6px;padding-top:10px;display:block;text-align:left}.master-list td:last-child::before{display:none}.master-list .row-actions{max-width:none;grid-template-columns:1fr 1fr;width:100%}.row-actions .small-action,.row-menu button,.row-menu a{min-height:44px}.form-grid{grid-template-columns:minmax(0,1fr)}.actions>form{width:100%}.actions>form>button{width:100%}.period label{max-width:100%}.period input{max-width:100%}.profile{max-width:50%;overflow-wrap:anywhere}.staff-head .actions{width:100%;display:flex;align-items:center;gap:6px}.staff-head .actions>form{width:auto}.staff-head .actions>.button{flex:1}.allocation{grid-template-columns:minmax(0,1fr) minmax(65px,100px) auto;gap:6px}.allocation button{padding:8px}.allocation span{overflow-wrap:anywhere}}

/* V4.4.2: constrain flex/grid items and make resident actions visible. */
.shell>main{min-width:0;max-width:100%;width:100%;box-sizing:border-box}.metrics,.cols,.form-grid{min-width:0}.metric,.metric>div,.cols>*{min-width:0}.metric strong,.metric b{overflow-wrap:anywhere}.vote-attention .record{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.vote-attention .record>a{flex:none}.proposal-card{scroll-margin-top:20px}.vote-results,.work-progress{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}.vote-results progress{width:100%;height:9px;margin:0 0 9px}.proposal-compose form{margin-top:16px}.proposal-card .line b{overflow-wrap:anywhere}.proposal-card form button{margin-top:6px}.vote-attention .record>div{min-width:0;overflow-wrap:anywhere}.community-overview .line,.panel>.line{flex-wrap:wrap}.panel>.line>a{max-width:100%;white-space:normal}.proposal-card .record{min-width:0}
@media(min-width:721px) and (max-width:1250px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.cols{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){.vote-attention .record>a{width:100%;justify-content:center}.proposal-card form button{width:100%}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.cols{grid-template-columns:minmax(0,1fr)}}

/* V4.4.3 contribution board */
.board-head{flex-wrap:wrap;gap:12px}.board-head>div{min-width:0}.board-head .button{white-space:normal}.spending-row small,#followup-table small{display:block;white-space:normal}#followup-table td{vertical-align:top}#followup-table details{min-width:0}#followup-table .button{white-space:normal}

/* V4.5 — action-first, readable summaries, consistent spacing */
.board-summary .period{margin:16px 0;align-items:flex-end;gap:10px 14px}.board-summary .period label{display:grid;gap:6px;align-items:start}.board-summary .period input,.board-summary .period select{width:auto;max-width:100%}.metrics.board-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.board-metrics .metric{padding:15px;min-height:90px}.board-metrics .metric-icon{display:none}.board-metrics .metric-content{width:100%}.board-progress progress{width:100%;height:10px;accent-color:var(--forest)}.board-mini{display:flex;gap:12px 24px;flex-wrap:wrap;margin:14px 0;color:var(--muted);font-size:13px}.detail-panel>summary{font-weight:700;cursor:pointer;font-size:16px;line-height:1.5}.detail-panel[open]>summary{margin-bottom:15px}.detail-panel form{margin-top:12px}.report-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.report-tools>.panel{margin:0;min-width:0}.report-tools form{display:grid;gap:12px;align-content:start}.report-tools form label{margin:0}.report-tools form button{justify-self:start}.button-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px}.allocation{grid-template-columns:minmax(0,1fr) minmax(150px,210px) max-content;align-items:end;gap:12px}.allocation>span{align-self:center}.allocation .alloc-field{display:grid;gap:4px;margin:0}.allocation .alloc-field input{margin:0;width:100%}.allocation button{white-space:normal}.allocation input{min-width:0}.allocation small{line-height:1.45}#konfirmasi{scroll-margin-top:16px}#followup-table td:last-child .button{margin-top:6px}#followup-table details summary{cursor:pointer;font-weight:600}.panel .button+.button,.panel button+.button{margin-inline-start:5px}
@media(max-width:1250px){.metrics.board-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.report-tools{grid-template-columns:minmax(0,1fr)}.report-tools form button,.button-row>*{width:100%;margin:0!important}.allocation{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.allocation>span{grid-column:1/-1}.allocation .alloc-field{grid-column:1/-1}.allocation button{grid-column:1/-1;width:100%}.board-summary .period label{flex:1 1 135px}.board-summary .period button{width:100%}.board-metrics .metric{padding:12px;min-height:94px}.board-mini{display:grid;gap:6px}.panel .button+.button,.panel button+.button{margin-inline-start:0}}

/* V4.5.1 — stack the existing official symbol and wordmark without altering the assets. */
.bv-lockup{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:145px;max-width:100%;flex:none;margin:0;line-height:0;letter-spacing:0!important}
.bv-lockup .bv-symbol,.bv-lockup .bv-wordmark{display:block;position:relative;overflow:hidden;margin:0;padding:0;flex:none}
.bv-lockup .bv-symbol{width:57%;aspect-ratio:225/145}
.bv-lockup .bv-wordmark{width:100%;aspect-ratio:319/114}
.bv-lockup .bv-symbol img,.bv-lockup .bv-wordmark img{position:absolute;display:block;max-width:none!important;height:auto!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;object-fit:fill!important}
.bv-lockup .bv-symbol img{width:266.6666667%!important;left:-9.3333333%;top:-15.862069%}
.bv-lockup .bv-wordmark img{width:188.0877743%!important;left:-81.5047022%;top:-37.7192982%}
.brand .bv-lockup{width:132px;align-self:center}
.brand{align-items:center;text-align:center;gap:10px}
.login-art .bv-lockup{width:min(205px,100%);margin-bottom:28px}
.hero .bv-lockup{width:128px;max-width:26%}
.staff-head .bv-lockup,.receipt .bv-lockup{width:125px}
.receipt .bv-lockup{margin-bottom:12px}
@media(max-width:720px){.brand{align-items:center;text-align:left;gap:10px}.brand .bv-lockup{width:80px;align-self:auto;gap:3px}.hero .bv-lockup{display:none!important}.login-art .bv-lockup{width:122px;margin-bottom:12px;gap:3px}.staff-head .bv-lockup{width:100px}}

.role-change{margin:14px 0;padding:14px;border:1px solid #dce5dd;border-radius:12px}.role-change summary{font-weight:650;cursor:pointer}.role-change form{margin-top:14px}.role-change button{margin-top:8px}.side-bottom form button{white-space:normal;line-height:1.35}

/* V4.5.2 — vector brand, compact login and payment review workspace */
.brand-vector{display:block;object-fit:contain;max-width:100%;height:auto!important;background:transparent!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.brand .brand-vector{width:114px;margin:0 auto}.brand{gap:8px;padding-bottom:16px}.hero .brand-vector{width:112px}.receipt .brand-vector,.staff-head .brand-vector{width:116px}.receipt .brand-vector{margin-bottom:14px}
.login{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:100svh;background:#f4f7fb;align-items:stretch;padding:20px;gap:20px}.login-art{border-radius:24px;padding:clamp(28px,5vw,74px);justify-content:space-between;align-items:flex-start;background:radial-gradient(ellipse at 85% 85%,#3b7952 0,transparent 48%),linear-gradient(150deg,#12392e,#1b513c);min-height:calc(100svh - 40px);isolation:isolate}.login-art:after{content:'';position:absolute;inset:auto -12% -22% 28%;height:52%;border:1px solid #a6c9a44a;border-radius:50%;transform:rotate(-24deg);z-index:-1}.login-art .brand-vector{width:136px;margin:0}.login-art h1{font-size:clamp(30px,3.6vw,54px);line-height:1.1;letter-spacing:-1.4px;max-width:630px}.login-art .login-tag{font-weight:650;letter-spacing:1.6px;font-size:11px;color:#bfe5c4;margin-bottom:14px}.login-art .login-bottom{font-size:12px;color:#cae1d2;margin:0}.login-form{width:100%;max-width:490px;padding:32px clamp(20px,4vw,46px);align-self:center;justify-self:center;background:white;border:1px solid #e0e8df;border-radius:22px;box-shadow:0 12px 45px #173f3010}.login-form h1{font-size:32px}.login-form footer{padding:14px 0 0;margin-top:12px;border-top:1px solid var(--line)}.login-form label{margin:14px 0}.login-form .password-wrap{position:relative}.login-form .password-wrap input{padding-right:86px}.login-form .password-wrap button{position:absolute;right:6px;top:6px;margin:0;padding:7px 9px;font-size:12px}.login-form .wide{margin:14px 0}.login-form .muted{line-height:1.55}.workspace-head,.queue-pagination,.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.workspace-head h2{margin:0 0 4px}.workspace-head p{margin:0}.workspace-links{display:flex;gap:8px;flex-wrap:wrap}.payment-tabs{margin:18px 0 12px}.queue-filter{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:16px}.queue-filter label{margin:0;flex:0 1 250px}.queue-filter button{align-self:end}.queue-table td{white-space:normal;vertical-align:middle}.queue-table th{white-space:nowrap}.queue-table small{margin-top:3px;overflow-wrap:anywhere}.queue-table .download-link{display:inline-block;margin:5px 0 0 7px;font-size:12px}.queue-table .proof-trigger{font-size:12px}.queue-pagination{padding-top:14px}.queue-pagination>div{display:flex;gap:8px;flex-wrap:wrap}.review-dialog,.proof-dialog{width:min(560px,calc(100% - 26px));max-height:90svh;padding:24px;border:1px solid #d9e3d8;border-radius:18px;color:var(--text);box-shadow:0 15px 55px #0003;overflow:auto}.review-dialog::backdrop,.proof-dialog::backdrop{background:#102a22a6}.dialog-head{margin-bottom:18px}.dialog-head h2{margin-bottom:3px}.review-dialog .alert{margin-top:16px}.review-dialog .inline-bank,.reject-panel{margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:10px}.check-label{display:flex;gap:9px;align-items:center}.check-label input{width:auto;margin:0;flex:none}.proof-dialog img{max-width:100%;max-height:64svh;object-fit:contain;display:block;margin:auto}.proof-hover{position:fixed;z-index:2000;width:min(360px,45vw);height:340px;padding:10px;background:#fff;border:1px solid #d4e0d6;border-radius:12px;box-shadow:0 12px 40px #102a2240;pointer-events:none}.proof-hover img{display:block;width:100%;height:100%;object-fit:contain}.proof-hover[hidden]{display:none!important}.queue-table .pill{white-space:normal}.review-dialog .button-row{margin:12px 0}.review-dialog .line{gap:10px}
@media(max-width:720px){.brand .brand-vector{width:66px;margin:0}.login{display:flex;flex-direction:column;min-height:100svh;padding:12px;gap:12px}.login-art{min-height:auto;padding:22px;border-radius:18px;gap:18px}.login-art .brand-vector{width:88px}.login-art h1{font-size:27px;letter-spacing:-.7px}.login-art .login-bottom{display:none}.login-art .login-tag{font-size:10px;margin-bottom:6px}.login-form{width:100%;max-width:none;padding:24px;border-radius:18px}.login-form h1{font-size:27px}.workspace-links{width:100%}.queue-filter label{flex:1 1 100%}.queue-filter button{width:100%}.queue-scroll{overflow:visible}.queue-table{display:block;white-space:normal}.queue-table thead{display:none}.queue-table tbody{display:grid;gap:10px}.queue-table tr{display:block;border:1px solid var(--line);border-radius:12px;padding:8px 12px}.queue-table td{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;text-align:right}.queue-table td:before{content:attr(data-label);font-size:11px;color:var(--muted);font-weight:600;margin-right:auto}.queue-table td:first-child small{flex:0 0 100%;text-align:right}.queue-table td:last-child{border-bottom:0}.queue-table td:last-child button{min-width:100px}.payment-tabs{gap:6px;flex-wrap:wrap}.payment-tabs a{font-size:12px;padding:9px}.review-dialog,.proof-dialog{padding:16px}.proof-hover{display:none!important}}
.context-back{margin:0 0 14px}.queue-table .proof-trigger:hover,.queue-table .proof-trigger:focus-visible{background:#e7f3e5}.sidebar .count{margin-left:auto;min-width:20px;text-align:center}.brand .brand-vector{max-height:96px}.login-art .brand-vector{max-height:116px}.hero .brand-vector{max-height:102px}.staff-head .brand-vector{max-height:95px}.receipt .brand-vector{max-height:110px}
@media(max-width:720px){.login-art{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:14px}.login-art .brand-vector{width:76px;max-height:none}.login-art h1{font-size:20px;letter-spacing:-.4px;margin-bottom:4px}.login-art p:not(.login-tag){font-size:12px;line-height:1.4;margin:0}.login-art .login-tag{display:none}.brand .brand-vector{max-height:57px}.hero .brand-vector{display:none}}
.bank-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.utility-details,.record-action{border:1px solid var(--line);border-radius:11px;padding:13px;background:#fff}.utility-details summary,.record-action summary{font-weight:650;cursor:pointer}.utility-details[open] summary,.record-action[open] summary{margin-bottom:14px}.record-action{margin:10px 0 4px}.panel>.utility-details{border:0;padding:0}.bank-tools .utility-details form{margin-top:12px}@media(max-width:720px){.bank-tools{grid-template-columns:1fr}}
@media(min-width:721px){.login-art h1{font-size:clamp(30px,3.05vw,48px)}}
/* V4.5.3: compact policy acknowledgement and separated action forms */
.check-line{display:flex;align-items:flex-start;gap:9px;line-height:1.5}.check-line input[type=checkbox]{width:18px;height:18px;min-height:0;flex:0 0 18px;margin:2px 0 0}.record-action form+form{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}.record-action textarea{min-height:90px}.record-action input,.record-action textarea,.record-action select{max-width:100%;min-width:0}
/* V4.6 mobile-first actions and scoped task workspace */
.mobile-dock{display:none}.quick-actions{display:flex;flex-wrap:wrap;gap:10px}.quick-actions a{border:1px solid var(--line);border-radius:10px;background:#f5f8f4;padding:10px 13px;color:#174b36;font-weight:650;text-decoration:none}.home-priority h2{font-size:28px;margin:4px 0}.home-priority .quick-actions{margin-top:12px}.work-main{max-width:1000px;margin:auto}.work-main .record .line>div{min-width:0;overflow-wrap:anywhere}.work-main .record .line small{display:block}.assist-workspace .allocation .actions{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.assist-workspace .allocation label{margin:0}.assist-workspace .allocation button{margin:0}.assist-workspace .allocation input{width:140px}.assist-workspace .check-line{margin:14px 0}
@media(max-width:720px){.sidebar{padding:8px 14px;gap:8px;align-items:center}.sidebar .brand{gap:8px;margin:0}.sidebar .brand .brand-vector{width:45px;max-height:40px}.sidebar .brand b{font-size:15px}.sidebar .brand b span{font-size:8px;letter-spacing:.7px}.sidebar .mobile-menu{min-height:40px;padding:8px 12px}.sidebar .side-bottom{display:none}.sidebar.menu-open .side-bottom{display:flex;flex-wrap:wrap;justify-content:flex-start}.shell>main{padding:16px 12px calc(82px + env(safe-area-inset-bottom))}.mobile-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;background:#fff;z-index:1000;border-top:1px solid #dce6dc;padding:6px 8px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -4px 16px #153b2a0c}.mobile-dock a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:48px;text-decoration:none;color:#51665a;font-size:11px;font-weight:600;border-radius:8px}.mobile-dock a[aria-current=page]{background:#e5f1e6;color:#174b36}.mobile-dock svg{width:21px;height:21px}.home-priority .quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.home-priority .quick-actions a{text-align:center}.home-priority h2{font-size:23px}.home-priority .line{gap:8px;flex-wrap:wrap}.home-priority .button{white-space:normal}.shell .hero{padding:16px}.shell .hero h2{font-size:21px}.assist-workspace .allocation .actions{width:100%}.assist-workspace .allocation input{width:100%}.work-main{padding:16px 12px}.work-main .staff-head{gap:10px}.work-main .staff-head img{width:70px}.work-main .line{flex-wrap:wrap}}

/* Master Admin management layout */
#master-users td small{display:block;overflow-wrap:anywhere}#master-users td{white-space:normal}.master-assignment .check-line{display:flex;gap:8px;align-items:start}.master-assignment .check-line input{width:auto;flex:none;margin:4px 0 0}.staff-head .actions{flex-wrap:wrap}.staff-main .scroll{max-width:100%;overflow-x:auto}#transfer-total[readonly]{background:#eff4ee;color:#244b37;font-weight:650}
@media(max-width:720px){#master-users{min-width:0;display:block}#master-users thead{display:none}#master-users tbody{display:grid;gap:8px}#master-users tr{display:grid;border:1px solid var(--line);padding:8px 12px;border-radius:10px}#master-users td{display:block;padding:6px 0;border:0}#master-users td:last-child button{width:100%}.staff-head .actions{gap:6px}.staff-head .actions .button,.staff-head .actions button{font-size:12px;padding:8px}.staff-main .line{flex-wrap:wrap}.staff-main .line span{overflow-wrap:anywhere;min-width:0}}

/* 4.6.2 — clear hierarchy, calm account controls, semantic states */
.good{background:#e2f3e8;color:#17603a}.bad{background:#fce7e7;color:#a0202b}.wait{background:#fff0c5;color:#805000}.pill{font-size:12px;padding:5px 10px;line-height:1.3}.payment-tabs .pill{margin-left:5px}.payment-tabs a{gap:3px}.payment-tabs a.selected .pill{color:#805000;background:#fff0c5}.secondary-tools{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin:10px 0 24px;gap:8px 20px;align-items:center}.secondary-tools span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700}.secondary-tools a{font-size:13px;color:#245c41;text-decoration:underline;text-underline-offset:3px}.workspace-head .primary{flex-shrink:0}.daily-actions h2{margin:0 0 14px}.daily-actions .quick-actions{gap:10px}.daily-actions .task-primary{background:#fff2d2;border-color:#e8c979;color:#795000}.menu-panel{display:flex;flex-direction:column;flex:1;min-height:0}.account-label{display:block;font-size:10px;letter-spacing:.12em;color:#b6cfbf;font-weight:700;margin:4px 0 10px}.side-bottom .nav-label{display:none}.side-bottom form{margin:0}.side-bottom>a,.side-bottom form button{min-height:44px}.side-bottom .account-logout{color:#f7d4d4}.side-bottom form .ghost{width:100%;text-align:left;justify-content:flex-start;padding:10px 12px}.side-bottom>a{padding:10px 12px}.password-wrap{position:relative;display:block;width:100%}.password-wrap input,.login-form .password-wrap input{padding-right:52px}.password-wrap [data-password-toggle],.login-form .password-wrap button{position:absolute;inset:0 2px 0 auto;height:auto;width:46px;min-height:0;margin:0;padding:0;display:grid;place-items:center;border:0;box-shadow:none;border-radius:8px;background:transparent;color:#557266}.password-wrap [data-password-toggle]:hover{background:transparent;color:#174b36}.password-wrap [data-password-toggle]:focus-visible{outline:2px solid #31784e;outline-offset:-4px}.ocr-panel{background:#f1f7f2;border:1px solid #cddfd0;border-radius:12px;padding:14px;margin:10px 0 24px}.ocr-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ocr-head small,.ocr-result small{display:block;color:var(--muted);margin-top:5px}.ocr-message{font-size:13px;margin:10px 0 0;line-height:1.5}.ocr-result{margin-top:12px;border-top:1px solid #d4e2d5;padding-top:12px}.ocr-result[hidden]{display:none}.ocr-result dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 12px;margin:0 0 12px}.ocr-result dt{font-size:13px;color:var(--muted)}.ocr-result dd{margin:0;text-align:right;font-weight:650;overflow-wrap:anywhere}.ocr-apply{background:#2d704e;color:white;border-color:#2d704e}.ocr-scan:disabled,.ocr-apply:disabled{opacity:.55;cursor:not-allowed}.staff-head .actions{gap:12px}.staff-head form{margin:0}
@media(max-width:720px){.sidebar{position:sticky;top:0;z-index:1010;padding:8px 14px;overflow:visible}.sidebar .menu-panel{display:none}.sidebar.menu-open .menu-panel{position:absolute;display:block;top:100%;left:0;right:0;background:#143b2e;max-height:calc(72dvh - 55px);overflow:auto;padding:8px 14px 16px;box-shadow:0 14px 24px #102b2450;overscroll-behavior:contain;border-radius:0 0 16px 16px}.sidebar.menu-open .side-bottom{display:grid;grid-template-columns:1fr;gap:5px;padding:14px 0 0;margin-top:12px}.side-bottom .account-label{margin-bottom:3px}.sidebar .side-bottom form button,.sidebar .side-bottom>a{padding:10px 12px;min-height:44px;font-size:14px;display:flex;align-items:center;border:0;background:transparent;box-shadow:none;justify-content:flex-start;text-align:left}.sidebar .side-bottom form button:hover,.sidebar .side-bottom>a:hover{background:#ffffff12}.sidebar .account-logout{color:#f7d4d4}.sidebar .mobile-menu{background:transparent;color:white;border:1px solid #b6d1c35c;min-height:44px}.sidebar.menu-open .mobile-menu{background:#e7f0e6;color:#153d30}.daily-actions .quick-actions{display:grid;grid-template-columns:1fr 1fr}.daily-actions .task-primary{grid-column:1/-1}.daily-actions .quick-actions a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:48px;font-size:13px;padding:10px}.workspace-head{gap:12px}.workspace-head .primary{width:100%;justify-content:center}.payment-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 10px}.payment-tabs a{font-size:12px;padding:7px 4px;min-width:0;white-space:normal}.payment-tabs .pill{padding:3px 6px;font-size:10px;margin-left:0}.secondary-tools{gap:10px 18px;padding:12px 0;margin-bottom:20px}.secondary-tools span{width:100%}.secondary-tools a{font-size:12px}.ocr-head button,.ocr-apply{width:100%;justify-content:center}.login{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:16px;min-height:100svh;padding:12px}.login-form{margin:0;align-self:stretch;padding:22px;box-shadow:none}.login-art{margin:0;min-height:0}.login-form .wide{margin:12px 0}.login-form footer{font-size:11px}.login-art .brand-vector{width:70px}.login-art h1{font-size:19px}.login-art{padding:18px;gap:12px;grid-template-columns:70px minmax(0,1fr)}.staff-head .actions{gap:10px}.staff-head .actions .button,.staff-head .actions button{min-height:44px}.shell>main{padding-top:16px}.mobile-dock{z-index:1000}}

.neutral{background:#e9eeeb;color:#4b6055}

.staff-head .account-link{border-color:transparent;background:transparent;box-shadow:none;color:#315748}.staff-head .account-logout{color:#9d2832}.staff-head .actions form{border-left:1px solid var(--line);padding-left:6px}
@media(max-width:720px){.staff-head .actions{justify-content:flex-end;gap:6px}.staff-head .actions .account-link{padding:8px}.staff-head .actions form{padding-left:3px}}

.transfer-note{margin:1rem 0;padding:1rem;border:1px solid #dce8df;border-radius:12px;background:#f0f5fa}.transfer-note .line{flex-wrap:wrap;gap:.75rem;margin-top:.6rem}.transfer-note button{white-space:normal}

/* V4.6.4: independent reminder groups, compact on small screens. */
.ipl-reminder{display:grid;gap:12px;margin-bottom:18px}.ipl-reminder h2{margin:0;font-size:1.05rem}.ipl-reminder>.line{flex-wrap:wrap;gap:8px}.reminder-group{padding:12px;border:1px solid #e2e7e0;border-radius:12px;background:#f5f8fb;min-width:0}.reminder-late{background:#fce9e7;color:#922e2d;border-color:#f4c9c5}.reminder-pending{background:#fff3cf;color:#74500c;border-color:#ead9a6}.reminder-future{background:#eaf2fc;color:#285681;border-color:#d6e4f7}.reminder-current{background:#f1f5f9;color:#395847}.reminder-periods{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.reminder-periods span{background:rgba(255,255,255,.7);border-radius:6px;padding:3px 6px;font-size:.79rem;overflow-wrap:anywhere}.fifo-help{background:#eff5ed;border-radius:12px;padding:14px;margin:12px 0;display:grid;gap:12px}.fifo-house{display:grid;gap:8px;background:white;padding:12px;border-radius:10px;border:1px solid #e2e8e1}.alloc[readonly]{background:#f1f5f9;color:#294d38}.fifo-house button{justify-self:start}.utility-details form+form{margin-top:16px}.utility-details .record{margin:12px 0}.ipl-reminder small{color:#526354}.fifo-help h3{margin:0}
/* V4.6.5 — payment overview first; details only on demand. */
.pay-summary{padding:20px}.pay-summary h2{font-size:clamp(28px,5vw,38px);margin:5px 0 0;letter-spacing:-.04em}.pay-summary .line,.clean-history .line{gap:10px;flex-wrap:wrap}.pay-summary .wide{display:flex;justify-content:center;margin:14px 0 8px;min-height:46px}.pay-extra{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}.pay-extra summary,.clean-confirm>summary{cursor:pointer;color:#245c41;font-weight:700;min-height:38px;padding:6px 0}.pay-extra p{margin:8px 0}.pay-copy{padding:6px 0;overflow-wrap:anywhere}.pay-copy button{min-height:40px}.due-alert,.pending-alert{font-size:14px;padding:9px 12px;border-radius:8px;background:#fce7e7;color:#a0202b;overflow-wrap:anywhere}.pending-alert{background:#fff0c5;color:#805000}.clean-confirm{scroll-margin-top:80px}.clean-confirm>summary{font-size:17px}.clean-confirm .form-grid{gap:12px}.clean-confirm .allocations{margin:8px 0}.clean-confirm .allocation{padding:10px 0;gap:6px;min-width:0}.clean-confirm .fifo-help{padding:8px;margin:6px 0;gap:6px}.clean-confirm .fifo-house{padding:8px;gap:4px}.clean-confirm .alloc-field{margin:0}.clean-confirm .alloc[readonly]{min-height:40px}.pay-total{margin:12px 0}.pay-total input{font-weight:750}.clean-confirm .wide{width:100%;margin-top:10px}.clean-confirm .ocr-panel{padding:10px;margin:4px 0 12px;background:#f0f5fa}.clean-confirm .ocr-head{gap:6px}.clean-confirm .ocr-head small{display:none}.clean-confirm .ocr-message{margin:4px 0 0;font-size:12px}.clean-confirm .ocr-scan{width:auto;min-height:40px}.clean-confirm .receipt-fields{display:grid;grid-template-columns:1fr}.clean-confirm input[type=date]{appearance:none;-webkit-appearance:none;display:block;width:100%;max-width:100%;min-width:0;text-align:left}.clean-confirm input[type=file]{width:100%;max-width:100%;font-size:13px}.clean-confirm .receipt-fields label{margin:0}.clean-history h2{margin:0;font-size:18px}.clean-history a{font-size:13px}.bill-compact{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);min-width:0}.bill-compact>div{min-width:0}.bill-compact b,.bill-compact small{overflow-wrap:anywhere}.bill-compact small{display:block;color:var(--muted);margin-top:4px}.bill-compact .pill{flex-shrink:0;max-width:49%;white-space:normal;text-align:center}.directory-review{padding:14px;margin:12px 0;background:#f0f5fa;border:1px solid var(--line);border-radius:12px}.directory-review h3{margin:0}.directory-review p{margin:8px 0}.directory-review details{margin-top:8px}.password-wrap svg{display:block}.login-form .password-wrap [data-password-toggle]{border:0;box-shadow:none;background:transparent}.login-form .password-wrap input{min-width:0}.login-form input{min-width:0;max-width:100%}
@media(max-width:720px){.shell>main{padding:14px 12px calc(90px + env(safe-area-inset-bottom))}.shell>main>header{margin-bottom:16px}.shell>main>header h1{font-size:24px;line-height:1.2}.pay-summary,.clean-confirm,.clean-history{padding:16px;margin-bottom:14px}.login{justify-content:flex-start;gap:16px;padding:12px}.login-art{padding:16px;gap:12px}.login-form{padding:22px 18px;margin:0 auto;width:100%}.login-form h1{font-size:28px}.login-form form{gap:10px}.login-form .wide{margin:6px 0}.login-form footer{margin-top:14px}.clean-confirm .allocation{display:grid;grid-template-columns:minmax(0,1fr);gap:5px}.clean-confirm .form-grid label,.clean-confirm .form-grid input{min-width:0}.clean-confirm .ocr-head{flex-wrap:nowrap}.clean-confirm .ocr-head strong{font-size:13px}.clean-confirm .ocr-scan{font-size:12px;flex-shrink:0}}

.clean-confirm .ocr-panel[hidden]{display:none}

/* V4.6.7: avoid duplicate totals; the actual form inputs stay present for validation. */
.visually-compact-total,.clean-confirm .alloc-field.visually-compact-total{display:none!important}.home-links{padding:12px}.home-links .quick-actions{margin:0}.pay-summary h2{overflow-wrap:anywhere}.pay-summary .due-alert,.pay-summary .pending-alert{margin:8px 0}.pay-summary .due-alert br{line-height:1.7}.clean-confirm .fifo-house:has(+.fifo-house){margin-bottom:4px}

.clean-confirm.enhanced-confirm:not([open]){display:none}.pay-summary .settled-title{color:#17603a}

/* V4.6.8: compact community directory and proof upload */
.community-link{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--forest);padding:15px 16px}.community-link small,.monthly-row small{display:block;color:var(--muted);font-weight:400}.community-link>span:last-child{font-size:24px;color:var(--green)}.monthly-directory .line{flex-wrap:wrap;gap:8px}.monthly-directory h2{margin:0;font-size:18px}.monthly-directory .search{margin:12px 0}.monthly-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);min-width:0}.monthly-row>div{min-width:0;overflow-wrap:anywhere}.monthly-row .pill{max-width:55%;white-space:normal;text-align:center}.monthly-row[hidden],.ocr-panel[hidden],.ocr-result[hidden],.ocr-scan[hidden]{display:none!important}.text-link{display:inline-block;padding:10px 0;font-weight:650}.enhanced-proof{position:relative;display:block;min-width:0}.enhanced-proof input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%)}.proof-picker{display:block;padding:12px 16px;border:1px dashed #95b6a0;background:#f5f8fb;border-radius:12px;margin-top:6px;cursor:pointer;min-height:64px;overflow-wrap:anywhere}.proof-picker strong:before{content:'＋ ';color:#246c43}.proof-picker small{display:block;font-weight:400;color:var(--muted)}.enhanced-proof:focus-within .proof-picker{outline:2px solid #31784e;outline-offset:2px}.ocr-panel,.clean-confirm .ocr-panel{padding:8px 0 12px;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0 0 14px}.ocr-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px}.ocr-head .ocr-scan{width:auto;padding:7px 12px;font-size:13px;min-height:40px}.ocr-message{color:var(--muted);font-size:12px;flex:1;min-width:0}.ocr-result{background:#edf5ee;border-radius:10px;padding:10px;margin-top:10px}.ocr-result dl{margin:0 0 8px}.ocr-result .ocr-apply{min-height:42px}.clean-confirm .allocation{border:0}.clean-confirm .allocation small:empty{display:none}.clean-confirm .receipt-fields{gap:12px}.clean-confirm .pay-extra{margin-top:4px}.clean-confirm>summary{font-size:15px}.clean-confirm .form-grid label{font-size:14px}.clean-confirm .form-grid input{min-height:44px}.clean-confirm .wide{margin-top:4px}.clean-confirm .muted.small{font-size:12px}.pill.neutral{background:#e9eef1;color:#355a6b}
@media(max-width:720px){.clean-confirm .ocr-head{flex-wrap:wrap}.clean-confirm .ocr-message{flex-basis:100%}.pay-summary h2{font-size:32px}.pay-summary,.clean-history,.monthly-directory{padding:16px}.clean-confirm .receipt-fields{gap:12px}.clean-confirm .allocation{padding:4px 0}.clean-confirm input[type=date]{min-width:0!important;max-width:100%!important}.community-link{margin-bottom:14px}.shell>main>header{margin-bottom:12px}}

main.paying .pay-summary,main.paying .community-link,main.paying .clean-history{display:none!important}.clean-confirm{scroll-margin-top:88px}.clean-confirm>summary{margin-bottom:8px}.pay-summary{background:linear-gradient(145deg,#fff 70%,#eff7ee);border-color:#d8e7dc}.clean-confirm .proof-picker small{font-size:12px}.monthly-directory .pill.bad{background:#fce7e7;color:#a0202b}.monthly-directory .pill.good{background:#e2f3e8;color:#17603a}.monthly-directory .pill.wait{background:#fff0c5;color:#805000}.monthly-directory .pill{flex:none}

.board-summary .period{margin:12px 0}.board-summary progress{width:100%;height:9px;accent-color:#397c58}.board-summary h2{margin:0}.board-summary>.line{flex-wrap:wrap;gap:8px}

.clean-confirm>summary{list-style:none}.clean-confirm>summary::-webkit-details-marker{display:none}.board-summary>.text-link{padding:0 0 6px}

/* V4.6.9: focused voting, household balances; no change to ballot policy. */
.voting-page{max-width:820px;margin:0 auto}.vote-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 12px;flex-wrap:wrap}.vote-toolbar .proposal-compose{margin:0}.vote-rules{color:var(--muted);font-size:13px;max-width:100%}.vote-rules summary,.vote-detail summary,.vote-edit summary{cursor:pointer;color:var(--green);font-weight:650;padding:8px 0}.vote-rules p{margin:7px 0;max-width:68ch}.vote-clean{padding:20px;margin-bottom:16px}.vote-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.vote-title h2{margin:0;font-size:23px;line-height:1.25;overflow-wrap:anywhere}.vote-title .pill{max-width:45%;white-space:normal;text-align:center}.vote-urgent{color:#a0202b;font-weight:700;margin-bottom:4px}.vote-description{margin:10px 0 16px}.vote-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.vote-facts b{display:block;font-size:16px;overflow-wrap:anywhere}.vote-facts small{margin-bottom:3px;color:var(--muted)}.vote-turnout{margin:12px 0}.vote-turnout .line{border:0;padding:0 0 6px}.vote-turnout progress{height:7px}.vote-choices{margin:14px 0}.vote-home{border:1px solid var(--line);border-radius:12px;padding:12px;margin:8px 0}.vote-home>.line{border:0;padding:0}.vote-choice{font-size:13px;font-weight:700;border-radius:8px;padding:5px 9px}.vote-choice.vote-yes{background:#e2f3e8;color:#17603a}.vote-choice.vote-no{background:#fce7e7;color:#a0202b}.vote-choice.vote-abstain{background:#e9eef1;color:#355a6b}.vote-options{border:0;margin:0;padding:0;min-width:0;display:grid;gap:7px}.vote-option{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;margin:0;min-height:44px;cursor:pointer}.vote-option input[type=radio]{width:18px;height:18px;min-height:0;margin:0;accent-color:#31784e;flex:none}.vote-option:has(input:checked).vote-yes{background:#e2f3e8;color:#17603a;border-color:#86b69a}.vote-option:has(input:checked).vote-no{background:#fce7e7;color:#a0202b;border-color:#d9a0a4}.vote-option:has(input:checked).vote-abstain{background:#e9eef1;color:#355a6b;border-color:#a4b8c3}.vote-clean .vote-results{margin-top:12px;padding-top:12px}.vote-clean .vote-results h3{margin:0 0 8px}.vote-clean .vote-results .line{border:0;padding:6px 0}.vote-bar{appearance:none;-webkit-appearance:none;background:#e8ece9;border:0;border-radius:6px;overflow:hidden;--vote-color:#778a94}.vote-bar.vote-yes{--vote-color:#31784e}.vote-bar.vote-no{--vote-color:#b83b46}.vote-bar::-webkit-progress-bar{background:#e8ece9;border-radius:6px}.vote-bar::-webkit-progress-value{background:var(--vote-color);border-radius:6px}.vote-bar::-moz-progress-bar{background:var(--vote-color)}.vote-detail{border-top:1px solid var(--line);padding-top:6px}.multi-homes h2{font-size:18px;margin:0 0 6px}.home-balance{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:10px 0}.home-balance:last-child{border:0}.home-balance small{display:block;color:var(--muted)}.allocation-home{font-size:15px;border-top:1px solid var(--line);padding-top:10px;margin:10px 0 4px}main.paying .multi-homes{display:none!important}.ocr-result dd{overflow-wrap:anywhere;max-width:100%}@media(max-width:720px){.vote-clean{padding:15px}.vote-title h2{font-size:20px}.vote-facts b{font-size:14px}.vote-clean .vote-results .line{flex-wrap:nowrap}.vote-toolbar{gap:6px}.vote-home{padding:10px}.vote-edit>summary{min-height:44px}}

/* V4.6.10 cool-neutral visual system */
:root{--bg:#f1f5f9;--text:#192e39;--muted:#526677;--line:#dce5ec;--mint:#e5f2eb;--forest:#123c32;--green:#24734f}body,main{background-color:var(--bg)}.panel,.metric,.master-list{background:#fff;border-color:#dce5ec}.panel{box-shadow:0 3px 14px #20394b08}.directory-review,.pay-destination,.secondary-tools{background:#f1f6fa;border-color:#dce5ec}.pill.neutral{background:#e8eff6;color:#34586b}.pill.wait{background:#fff0c5;color:#805000}.pill.bad{background:#fce7e7;color:#a0202b}.pill.good{background:#e1f2e8;color:#17603a}.matrix-heading,.matrix-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.matrix-heading h2{margin:0}.matrix-filter{display:flex;align-items:end;gap:8px;margin:0}.matrix-filter label{margin:0}.matrix-filter input{width:100px}.matrix-tools{margin:16px 0}.matrix-tools input{flex:1;min-width:160px}.matrix-legend{display:flex;flex-wrap:wrap;gap:10px 16px;margin:12px 0;font-size:12px;color:var(--muted)}.matrix-legend span{display:flex;align-items:center;gap:5px}.matrix-legend i{min-width:24px;font-style:normal}.matrix-scroll{max-height:65vh;overflow:auto;border:1px solid var(--line);border-radius:10px}.matrix-table{width:100%;min-width:870px;border-collapse:separate;border-spacing:0}.matrix-table th,.matrix-table td{padding:9px 6px;text-align:center;white-space:nowrap;border-bottom:1px solid var(--line)}.matrix-table thead th{position:sticky;top:0;background:#eaf0f6;z-index:2}.matrix-table th:first-child{position:sticky;left:0;text-align:left;background:white;z-index:1;min-width:92px;max-width:155px;white-space:normal;box-shadow:2px 0 5px #20394b12}.matrix-table thead th:first-child{z-index:3;background:#eaf0f6}.matrix-table th small{display:block;font-size:10px;color:var(--muted);max-width:120px;overflow-wrap:anywhere}.matrix-cell{display:block;min-width:36px;border-radius:6px;font-size:15px;font-weight:750;padding:3px 6px;text-align:center}.matrix-cell.paid{background:#def1e5;color:#17603a}.matrix-cell.late{background:#fbe3e5;color:#a0202b}.matrix-cell.pending,.matrix-cell.partial{background:#fff0c5;color:#805000}.matrix-cell.active{background:#e0edf8;color:#235d91}.matrix-cell.review{background:#e9e6fb;color:#5743a1}.matrix-cell.none{background:#edf0f3;color:#65717d}.payroll-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:14px}.pay-profile{border:1px solid var(--line);border-radius:13px;padding:16px;min-width:0}.pay-profile>.line{align-items:flex-start;border:0;padding:0}.pay-profile .pill{font-size:11px}.pay-rate{margin:12px 0 6px}.pay-rate strong{font-size:22px;color:var(--forest)}.pay-rate span{color:var(--muted)}.pay-destination{padding:12px;border-radius:9px;margin:12px 0;overflow-wrap:anywhere}.pay-destination small,.pay-destination b{display:block}.pay-destination .line{padding:4px 0 0;border:0}.pay-destination button{padding:5px 10px;min-height:34px}.vendor-panel{border-left:4px solid #7b9ab6}.payroll-intro .line{border:0}.review-dialog .dialog-head{gap:10px;align-items:flex-start}.review-dialog .dialog-head small{overflow-wrap:anywhere}.review-dialog .dialog-head button{flex:none}.matrix-scroll [hidden]{display:none!important}@media(max-width:720px){.matrix-panel{padding:14px}.matrix-heading{gap:8px}.matrix-tools{gap:8px}.matrix-tools input{min-width:100%;width:100%}.matrix-scroll{max-height:55vh}.matrix-table{min-width:790px}.matrix-table th:first-child{min-width:74px;max-width:110px}.matrix-legend{gap:6px 10px;font-size:11px}.matrix-legend i{min-width:20px}.payroll-grid{grid-template-columns:1fr}.pay-profile{padding:12px}.payroll-intro .line{flex-wrap:wrap}}

.payroll-toolbar{margin-bottom:14px;gap:8px;flex-wrap:wrap}.payroll-toolbar h2{margin:0}.matrix-swipe{display:none;margin:5px 0 8px}.matrix-tools{margin:10px 0}.matrix-legend{gap:6px 10px}@media(max-width:720px){.matrix-swipe{display:block}.matrix-heading{align-items:center}.matrix-heading>small{display:none}.matrix-tools{margin:9px 0}.matrix-filter label{display:flex;align-items:center;gap:8px}.matrix-filter{align-items:center}.matrix-filter input{margin:0}.matrix-legend{margin:8px 0}.matrix-table th,.matrix-table td{padding:7px 5px}}

/* V4.6.11: action hierarchy and predictable spacing, keeping existing semantic styles. */
.nav-section{font-size:11px;letter-spacing:.08em;color:#b9d5cc;font-weight:650;margin:18px 10px 7px}.dashboard-balance{background:#123c32;color:white;border-radius:16px;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}.dashboard-balance small{color:#d0e5df;display:block;font-size:13px}.dashboard-balance strong{font-size:clamp(25px,4vw,36px);line-height:1.3;display:block;margin:5px 0;overflow-wrap:anywhere}.dashboard-balance .button{background:white;color:#123c32}.daily-panel h2{margin-bottom:12px}.daily-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);color:var(--text);text-decoration:none}.daily-row:last-child{border:0}.daily-row b{font-size:15px;line-height:1.4;display:block}.daily-row small{font-size:13px;line-height:1.4;display:block;color:var(--muted);margin-top:3px}.daily-row strong{font-size:20px;color:#123c32}.daily-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px}.daily-icon svg{width:21px;height:21px}.daily-icon.amber{background:#fff0c5;color:#805000}.daily-icon.blue{background:#e0edf8;color:#235d91}.daily-icon.purple{background:#e9e6fb;color:#5743a1}.daily-icon.green{background:#def1e5;color:#17603a}.daily-icon.red{background:#fbe3e5;color:#a0202b}.task-links{gap:12px!important}.task-links a{min-height:44px}.panel form>.primary,.panel form>.button-row{margin-top:14px}.panel .line+form,.panel .line+.button,.panel .line+button{margin-top:14px}.utility-details>summary{font-size:14px;font-weight:650;line-height:1.45;padding:12px 4px;cursor:pointer}.utility-details[open]>summary{margin-bottom:10px;border-bottom:1px solid var(--line)}.utility-details form{margin:12px 0 4px}.panel h2,.work-main h2{font-size:clamp(17px,2vw,20px);line-height:1.3;margin-bottom:12px}.panel h3{font-size:16px;line-height:1.4}.panel p,.panel label{line-height:1.5}.panel .button-row{gap:10px}.panel .button-row>*{margin-inline:0!important}.slim-panel{padding:16px}.onboard-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.onboard-stats>div{background:white;border:1px solid var(--line);border-radius:12px;padding:14px;min-width:0}.onboard-stats strong{display:block;font-size:25px;line-height:1.4}.onboard-stats small{font-size:12px;line-height:1.3}.invite-main{max-width:480px;margin:24px auto;padding:16px}.invite-summary{background:#e0edf8;padding:14px;border-radius:12px;margin-bottom:16px}.invite-list{max-height:410px;overflow:auto;margin:14px 0;border:1px solid var(--line);border-radius:10px}.invite-list input[type=checkbox]{width:20px;height:20px;margin:0}.invite-code{overflow-wrap:anywhere;word-break:break-word}.login-help{text-align:center;display:grid;gap:8px;margin-top:20px}.login-help small{display:block}.routine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.routine-card{border:1px solid var(--line);border-radius:12px;padding:14px;background:#f8fafc;display:flex;flex-direction:column;gap:8px;min-width:0}.routine-card h3{margin:0;color:#123c32}.routine-card p{font-size:14px;margin:0;flex:1}.routine-card form{margin:4px 0 0}.routine-card button{font-size:13px}.work-main .record small{display:block}.work-main .record-action summary{padding:10px 0}.work-main .staff-head{gap:12px}.work-main .record{padding:14px 0}.work-main .record:last-child{border:0}
@media(max-width:720px){.daily-row{grid-template-columns:36px minmax(0,1fr) auto auto;gap:9px;padding:13px 0}.daily-icon{width:36px;height:36px}.daily-row b{font-size:14px}.daily-row small{font-size:12px}.daily-row strong{font-size:18px}.dashboard-balance{padding:18px}.routine-grid{grid-template-columns:1fr}.onboard-stats>div{padding:10px}.onboard-stats small{font-size:11px}.onboard-stats strong{font-size:21px}.nav-section{margin-top:16px}.invite-main{margin:12px auto}.invite-list table{white-space:normal}.invite-list td,.invite-list th{padding:9px 6px}.panel form>.primary{margin-top:16px}.panel .button-row>*{width:100%}}
.more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}.more-link{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);font-size:14px;font-weight:600;color:var(--text)}.more-link:last-child{border:0}.more-link:hover{color:var(--green)}@media(max-width:1000px){.more-grid{grid-template-columns:1fr}}@media(min-width:721px){.sidebar .menu-panel{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.sidebar nav a{min-height:40px;padding:9px 10px}.nav-section{margin-top:13px}} 

/* V4.6.12: shared rhythm for independent actions and readable type. */
main{min-width:0} .panel,.metric{overflow-wrap:anywhere}
.panel>form+form,.panel>form+details,.panel>details+form,.panel>form+.button,.panel>form+button,.panel>form+.line{margin-top:16px}
.panel>form+form{padding-top:16px;border-top:1px solid var(--line)}
.panel>form:last-child{margin-bottom:0}.panel>form>label:last-of-type{margin-bottom:14px}
.panel form>button:not(.password-toggle),.panel form>.button{margin-block-start:8px}
.panel form>.primary{margin-block-start:16px}.panel .actions,.panel .button-row,.dialog-actions,.review-dialog .actions{gap:12px;row-gap:12px;align-items:center}
.panel .line+form,.panel .line+button,.panel .line+.button,.record>form,.record>details{margin-top:16px}
.panel hr,.review-dialog hr{margin:18px 0;border:0;border-top:1px solid var(--line)}
.panel>details+details{margin-top:12px}.panel>details>summary{padding-block:12px;line-height:1.5}.panel details[open]>summary{margin-bottom:10px}
.panel h2{font-size:clamp(18px,2vw,21px);line-height:1.35;letter-spacing:-.35px}.panel h3{font-size:16px;line-height:1.45}.panel p,.panel label{line-height:1.55}.panel label{font-size:13px}.panel small,.panel .small{font-size:12px;line-height:1.5}
.panel input:not([type=checkbox]):not([type=radio]),.panel select,.panel textarea{max-width:100%;min-height:42px}.panel button,.panel .button{min-height:42px;line-height:1.35;white-space:normal;text-align:center}.panel button:focus-visible,.panel a:focus-visible,summary:focus-visible{outline:2px solid #24734f;outline-offset:3px}
.settings-manual{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.settings-manual p{margin:0 0 8px}.settings-manual form{margin-top:8px}
@media(max-width:720px){.panel{padding:16px}.panel h2{font-size:18px}.panel h3{font-size:16px}.panel button,.panel .button{min-height:44px}.panel input:not([type=checkbox]):not([type=radio]),.panel select,.panel textarea{font-size:16px;min-height:44px}.panel .actions,.panel .button-row{gap:10px}.panel>form+form{margin-top:18px;padding-top:18px}}

/* V4.6.13: compact annual recap, neutral historical status, consistent identity. */
.matrix-panel .matrix-heading{justify-content:space-between;gap:12px;margin-bottom:16px}.matrix-panel .matrix-tools{justify-content:flex-start;gap:12px;margin:0 0 14px}.matrix-panel .matrix-tools .search{flex:0 1 340px;max-width:100%;margin:0}.matrix-panel .matrix-tools .button{flex:none;margin:0}.matrix-key{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:0 0 12px}.matrix-key .matrix-legend{margin:0;gap:8px 14px;font-size:12px;line-height:1.4}.matrix-key .matrix-legend i{min-width:23px;font-size:13px;padding:3px 5px}.matrix-key .matrix-help{margin:0;padding:0;border:0;background:transparent;max-width:100%;font-size:12px;color:var(--muted)}.matrix-key .matrix-help summary{cursor:pointer;color:var(--green);font-weight:600;padding:4px 0}.matrix-key .matrix-help p{margin:8px 0 0;max-width:500px}.matrix-table th:first-child{min-width:126px;max-width:220px;width:17%;padding:10px 12px}.matrix-table tbody th{text-transform:none;letter-spacing:normal;font-size:13px;font-weight:650;color:var(--text)}.matrix-table th .matrix-name{max-width:190px;font-size:11px;font-weight:400;line-height:1.35;letter-spacing:normal;text-transform:none;margin-top:4px}.matrix-archive{display:inline-block;margin-left:5px;color:var(--muted);font-size:10px;font-weight:500}.matrix-table td{padding:7px 6px}.matrix-table .matrix-cell{font-size:14px;padding:4px 6px}.matrix-scroll{max-height:68vh}.matrix-table .matrix-cell.none{background:#edf0f3;color:#66717d}@media(max-width:720px){.matrix-panel .matrix-heading{gap:10px;margin-bottom:12px}.matrix-panel .matrix-tools .search{flex:1 1 100%;min-width:0;width:100%}.matrix-panel .matrix-tools{gap:8px}.matrix-key .matrix-legend{gap:6px 10px;font-size:11px}.matrix-table th:first-child{min-width:110px;max-width:140px;width:auto;padding:8px}.matrix-table th .matrix-name{max-width:120px}.matrix-scroll{max-height:62vh}.matrix-key{gap:6px}.matrix-panel .matrix-filter{flex-wrap:wrap}}

/* V4.6.14: action-focused payroll and routine tasks */
.payroll-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}.pay-profile{padding:16px;display:flex;flex-direction:column;gap:12px;scroll-margin-top:100px}.pay-profile .line{gap:8px;align-items:flex-start;flex-wrap:wrap}.pay-profile .pay-rate{margin:0}.pay-profile .pay-destination{margin:0;padding:12px}.pay-profile .profile-open{align-self:stretch;margin:0;min-height:44px}.salary-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.salary-row:last-of-type{border:0}.salary-row b,.salary-row small{display:block}.salary-row .button{min-height:44px}.payroll-agenda>details{margin-top:16px}.record[id^=salary-]{scroll-margin-top:100px}.review-dialog{max-width:min(540px,calc(100vw - 24px));max-height:85dvh;overflow:auto}.routine-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.routine-card{gap:10px}.routine-note summary{font-size:13px;color:var(--muted);cursor:pointer}.routine-note p{margin:8px 0 0}.routine-card form{margin:0}.master-assignment fieldset{border:1px solid var(--line);border-radius:10px;padding:12px;margin:12px 0}.master-assignment fieldset[hidden]{display:none}.master-assignment fieldset label{margin:8px 0}.master-assignment fieldset legend{font-weight:650;padding:0 5px}@media(max-width:1050px){.payroll-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.payroll-grid,.routine-grid{grid-template-columns:1fr}.salary-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.salary-row .button{grid-column:1/-1}.pay-profile{padding:14px}.review-dialog{padding:16px}}

/* V4.6.15 — role-based assistance */
.assist-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#e8f3ef;border:1px solid #cddfd6;color:#153d30;border-radius:14px;padding:16px 20px;margin:0 0 20px;text-decoration:none}.assist-banner div,.assist-item div{display:grid;gap:5px;min-width:0}.assist-banner small,.assist-intro small{font-size:12px;letter-spacing:.07em;font-weight:700;color:#24734f}.assist-banner span{white-space:nowrap;font-weight:650}.assist-panel{max-width:1000px}.assist-intro{margin-bottom:16px}.assist-intro p{margin:8px 0;color:#526677}.assist-list{display:grid;gap:10px;margin:12px 0 20px}.assist-item{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #dce5e9;border-radius:12px;background:#fff;color:#192e39;text-decoration:none;min-height:56px}.assist-item>div,.assist-item>b{flex:1}.assist-item small{color:#526677;font-size:13px}.assist-item:hover,.assist-item:focus-visible{border-color:#24734f;background:#f4faf7}.assist-item>span:last-child{color:#24734f}.payroll-agenda form+form{margin-top:12px}@media(max-width:600px){.assist-banner{padding:14px;gap:8px}.assist-item{padding:12px}.assist-banner b{font-size:15px}}

/* Assist has a distinct visual identity; utility actions remain neutral. */
.assist-banner .assist-spark{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;background:#24734f;color:white;border-radius:13px;box-shadow:0 3px 10px #24734f30}.assist-spark .ui-icon{width:26px;height:26px}.assist-banner .assist-copy{flex:1;min-width:0}.assist-banner .assist-open{font-size:14px}.pilot-launch{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.pilot-launch p{margin:4px 0 0}.pilot-launch .button-row{margin:0;gap:12px}.pilot-launch .button{display:inline-flex;align-items:center;gap:8px}.pilot-main{max-width:900px;margin:auto}.pilot-main .button-row{gap:12px;flex-wrap:wrap}.pilot-main .button.primary{color:white;background:#24734f}@media(max-width:600px){.assist-banner .assist-spark{width:36px;height:36px;flex-basis:36px}.assist-banner .assist-open{font-size:12px}.pilot-launch .button-row{width:100%}.pilot-launch .button{flex:1;justify-content:center}}
.pilot-inline{flex:0 0 100%;width:100%}.pilot-inline .assist-list{margin-bottom:0}.pilot-launch .button.primary{color:white;background:#24734f}.pilot-launch{scroll-margin-top:95px}
/* V4.6.17: role-focused actions, native accessible controls and calm spacing. */
.period,.matrix-filter{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px}
.period>label,.matrix-filter>label{display:grid;gap:6px;margin:0;flex:0 1 auto;min-width:0}
.period input,.period select,.matrix-filter input{height:44px;min-height:44px;margin:0;box-sizing:border-box}
.period>button,.matrix-filter>button{height:44px;min-height:44px;margin:0!important;padding:0 18px;width:auto;align-self:flex-end}
.segmented-field{border:0;margin:12px 0;padding:0;min-width:0}.segmented-field legend{font-weight:650;margin-bottom:7px}.segmented{display:inline-flex;gap:4px;background:#e8efec;border-radius:12px;padding:4px;max-width:100%}.segmented label{position:relative;margin:0;display:block;cursor:pointer}.segmented input{position:absolute;opacity:0;inset:0;margin:0;width:100%;height:100%;cursor:pointer}.segmented span{display:block;padding:10px 22px;border-radius:9px;color:#38554b;font-weight:650;transition:background .18s ease,color .18s ease,box-shadow .18s ease}.segmented input:checked+span{background:#226c50;color:#fff;box-shadow:0 2px 5px #1a503227}.segmented input:focus-visible+span{outline:2px solid #123c32;outline-offset:2px}
.action-summary{display:inline-flex!important;align-items:center;min-height:44px;padding:10px 16px!important;background:#e5f2ea;border:1px solid #bed7c7;border-radius:9px;color:#14563b;cursor:pointer;font-weight:700}.action-summary::before{content:'›';font-size:18px;margin-right:7px}.salary-steps,.mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.salary-steps{grid-template-columns:repeat(4,minmax(0,1fr))}.salary-steps span,.mini-stats>div{padding:12px;background:#f2f6f4;border-radius:10px;line-height:1.4}.mini-stats strong{display:block;font-size:1.6rem;margin-top:4px;color:#183b31}.batch-row{display:flex!important;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid #e5ebe8}.batch-row input[type=checkbox]{flex:none;width:19px;height:19px;margin:2px 0}.batch-row small{display:block;font-weight:400}.vote-brief{font-size:14px;color:var(--muted);width:100%;padding:12px 14px;background:white;border:1px solid #e3eae7;border-radius:12px}.vote-brief p{margin:0 0 3px}.guide-lines p{padding:8px 0;border-bottom:1px solid #e5ebe8;margin:0}.invite-selection{padding:10px 12px;background:#eef5f1;border-radius:9px;margin:12px 0;font-weight:650}.danger{color:#a72d35;border-color:#d8a4a8}.staff-main .button-row{margin-bottom:16px}.record:target{outline:2px solid #297b56;outline-offset:4px;border-radius:8px}.work-main section[id],#payroll-profiles,#payroll-drafts{scroll-margin-top:20px}.review-dialog[open]{animation:fresia-enter .18s ease-out}.utility-details[open]>summary,.record-action[open]>summary{color:#1c6547}.utility-details summary:focus:not(:focus-visible),.record-action summary:focus:not(:focus-visible){outline:none}@keyframes fresia-enter{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:720px){.period>label{flex:1 1 140px}.period>button,.matrix-filter>button{width:auto;flex:0 0 auto;min-width:90px}.salary-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.mini-stats{gap:6px}.mini-stats>div{padding:8px}.mini-stats strong{font-size:1.25rem}.segmented span{padding:10px 16px}.work-main .button-row{display:grid;grid-template-columns:1fr 1fr}.work-main .button-row a:last-child:nth-child(3){grid-column:1/-1}}
@media(max-width:360px){.period>label{flex-basis:100%}.period>button{width:100%}.mini-stats{grid-template-columns:1fr}.work-main .button-row{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.segmented span,.review-dialog[open]{transition:none;animation:none}}

.check-line input[type=radio],.check-label input[type=radio]{width:18px!important;height:18px!important;min-width:18px;min-height:18px;flex:0 0 18px!important;margin:0 8px 0 0!important;padding:0;accent-color:#24734f}.check-line:has(input[type=radio]){display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px;white-space:normal;overflow-wrap:normal}

/* V4.6.18: disclosure controls and accessible native select controls. */
:root{--soft-line:#dce7e1;--fresia-accent:#247454}
details:not(.nav-group)>summary{list-style:none;display:flex;align-items:center;gap:12px;justify-content:space-between;min-height:44px;padding:12px 14px!important;border-radius:12px;background:#f5f9f6;cursor:pointer;transition:background .18s ease,color .18s ease;outline-offset:3px}
details:not(.nav-group)>summary::-webkit-details-marker{display:none}details:not(.nav-group)>summary::marker{content:''}details:not(.nav-group)>summary::after{content:'';width:9px;height:9px;flex:0 0 9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:0 4px 4px 10px;transition:transform .2s ease}
details:not(.nav-group)[open]>summary::after{transform:rotate(225deg);margin-bottom:-4px}details:not(.nav-group)>summary:hover,details:not(.nav-group)[open]>summary{background:#e6f2eb;color:#185840}details:not(.nav-group)[open]>:not(summary){animation:fresia-reveal .22s ease both}details:not(.nav-group)>summary:focus-visible{outline:2px solid #247454}
@keyframes fresia-reveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
select{appearance:none;-webkit-appearance:none;border-radius:12px!important;padding-right:38px!important;background-color:#fff!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23247454' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:18px!important;transition:border-color .18s,box-shadow .18s}select:focus{box-shadow:0 0 0 3px #d5eadc}
.cash-period{display:grid!important;grid-template-columns:minmax(0,220px) max-content;align-items:end!important;gap:10px!important}.cash-period>label{display:flex!important;flex-direction:column;gap:6px;margin:0!important}.cash-period>label>input,.cash-period>button{height:46px!important;min-height:46px!important;margin:0!important;box-sizing:border-box;align-self:end!important}.cash-period>label>input{width:100%!important}
#invite-homes th:first-child,#invite-homes td:first-child{width:48px;text-align:center}#invite-homes input[type=checkbox]{width:20px;height:20px;accent-color:#247454;margin:0;vertical-align:middle}.invite-list thead{position:sticky;top:0;z-index:1;background:#edf4ef}
.environment-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.environment-cards>div{display:grid;gap:7px;text-align:center;place-items:center;padding:18px 8px;border:1px solid #dce7e1;background:#fff;border-radius:16px}.environment-cards span{font-size:25px;color:#247454}.environment-cards b{font-size:.87rem}.work-main .button-row{margin:12px 0 18px}
@media(max-width:360px){.cash-period{grid-template-columns:1fr}.cash-period>button{width:100%!important}.environment-cards{gap:5px}.environment-cards>div{padding:12px 4px}}
@media(prefers-reduced-motion:reduce){details:not(.nav-group)>summary,details:not(.nav-group)>summary::after,select{transition:none!important}details:not(.nav-group)[open]>:not(summary){animation:none!important}}

.environment-cards svg{color:#247454}.environment-empty{display:grid;justify-items:center;gap:8px;padding:24px 12px;text-align:center;background:#eff7f0;border-radius:16px;color:#205d41}.environment-empty small{color:#43584e}.environment-empty svg{color:#247454}.work-main .button-row button{min-height:44px}.review-dialog[open]{animation:fresia-reveal .2s ease both}.review-dialog::backdrop{background:rgba(14,42,33,.60)}@media(prefers-reduced-motion:reduce){.review-dialog[open]{animation:none}}

.staging-banner{position:fixed;z-index:10000;bottom:0;left:0;right:0;padding:8px 12px;text-align:center;background:#7b3211;color:white;font-weight:800;font-size:12px;letter-spacing:.035em;pointer-events:none}body:has(.staging-banner){padding-bottom:46px}

/* V4.6.20: aligned IPL filters and compact role navigation */
.queue-filter{display:grid;grid-template-columns:minmax(160px,260px) minmax(160px,260px) auto;justify-content:start;align-items:end;gap:12px}.queue-filter>label{display:grid;gap:6px;margin:0;min-width:0;align-self:end}.queue-filter>label>input,.queue-filter>label>select{margin:0;width:100%;height:44px;min-height:44px;box-sizing:border-box}.queue-filter>button{height:44px;min-height:44px;align-self:end;margin:0!important;padding:0 20px}.queue-filter.single-filter{grid-template-columns:minmax(160px,320px) auto}.bank-source{border:0;padding:0;margin:12px 0;min-width:0}.bank-source legend{font-weight:700;margin:0 0 8px}.bank-source .bank-choice{display:flex;align-items:flex-start;gap:10px;border:1px solid #dce5df;border-radius:12px;padding:12px;margin:0 0 8px;background:white;cursor:pointer}.bank-choice input{width:18px;height:18px;flex:0 0 18px;margin:3px 0 0;accent-color:#247454}.bank-choice span{display:grid;gap:3px;min-width:0}.bank-choice small{font-weight:400;color:#53685f}.bank-choice:has(input:checked){background:#e6f2eb;border-color:#247454}.sidebar .nav-section{margin:15px 10px 5px}.sidebar nav .nav-link,.sidebar .nav-group summary{min-height:40px;padding:9px 10px;gap:9px}.sidebar .nav-group>summary .chevron{transition:transform .18s ease}.sidebar .nav-group[open]>summary .chevron{transform:rotate(90deg)}.review-dialog{width:min(640px,calc(100vw - 24px));max-width:640px}.review-dialog .inline-bank input:not([type=checkbox]):not([type=radio]),.review-dialog .inline-bank select{min-height:44px}.review-dialog .inline-bank form{display:grid;gap:8px}.review-dialog .inline-bank form label{margin:0}.review-dialog .bank-choice input{min-height:18px!important}.workspace-links{align-items:center}.workspace-links a{padding:4px 0}.nav-link span:not(.count){min-width:0;overflow-wrap:anywhere}
@media(max-width:720px){.queue-filter,.queue-filter.single-filter{grid-template-columns:minmax(0,1fr);width:100%}.queue-filter>button{width:100%}.review-dialog{padding:14px;max-height:90dvh}.sidebar nav .nav-link,.sidebar .nav-group summary{min-height:44px}}

/* Override older generic last-label margin (caused uneven filter bottoms). */
.panel>form.queue-filter>label{margin:0!important}

/* V4.6.20 final: consistent spacing and alignment across role portals. */
:root{--space-sm:8px;--space-md:12px;--space-lg:16px;--space-xl:24px;--control-h:44px}
main{min-width:0} .panel{padding:clamp(16px,2vw,24px);margin-bottom:var(--space-lg)}
.panel>.line:first-child,.panel>.section-heading,.payroll-toolbar{padding:0 0 var(--space-md);gap:var(--space-md);align-items:center;flex-wrap:wrap}
.panel>.line h2,.panel>.line h3,.dialog-head h2,.master-toolbar h2{margin:0}
.panel>.line>form,.panel>.line>button,.panel>.line>.button,.dialog-head>button{margin:0!important}
.panel>.line>div>small{margin-top:4px}
.cols,.metrics,.form-grid,.payroll-grid,.routine-grid,.mini-stats{gap:var(--space-lg)}
.cols{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.cols>.panel{margin-bottom:0}.cols{margin-bottom:var(--space-lg)}
.form-grid{align-items:end;gap:var(--space-md) var(--space-lg)}
.form-grid>label,.panel>form.period>label,.panel>form.matrix-filter>label{display:grid;gap:6px;margin:0!important;min-width:0}
.form-grid>label>input:not([type=checkbox]):not([type=radio]),.form-grid>label>select,.period>label>input,.period>label>select,.matrix-filter>label>input,.matrix-filter>label>select{margin:0;min-height:var(--control-h);width:100%;box-sizing:border-box}
.panel form>.form-grid{margin:var(--space-md) 0}.panel>form.period,.panel>form.matrix-filter{align-items:end;gap:var(--space-md)}
.panel>form.period>button,.panel>form.matrix-filter>button{margin:0!important;min-height:var(--control-h);align-self:end}
.panel .actions>button,.panel .actions>.button,.panel .actions>form>button,.panel .button-row>button,.panel .button-row>.button{margin:0!important;min-height:var(--control-h)}
.panel .actions,.panel .button-row,.dialog-actions{align-items:center;gap:var(--space-md)}
.panel .utility-details,.panel .record-action{padding:var(--space-md);margin-block:var(--space-md)}
.panel .record-action>summary,.panel .utility-details>summary{width:100%;box-sizing:border-box;min-height:var(--control-h);line-height:1.4}
.payroll-jumps{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:0}.payroll-jumps a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 14px;border:1px solid var(--line);background:white;border-radius:10px;font-weight:650;text-align:center}
.payroll-jumps a:hover{background:var(--mint)}#salary-agenda,#payroll-drafts,#payroll-profiles,#vendor-rutin{scroll-margin-top:20px}
.salary-stats{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}.salary-stats>div{padding:14px;display:flex;flex-direction:column;justify-content:space-between;min-width:0}.salary-stats small{overflow-wrap:normal}.salary-stats strong{margin-top:8px}
.salary-row{grid-template-columns:minmax(0,1fr) minmax(88px,max-content) minmax(112px,max-content);gap:12px;align-items:center;padding:12px 0}.salary-row>.pill{justify-self:end}.salary-row>a.button,.salary-row>button{grid-column:auto;min-height:44px;justify-self:stretch;margin:0!important}.salary-row>div{min-width:0;overflow-wrap:anywhere}
.salary-wait{margin:12px 0;padding:14px;border:1px solid #e8d8ad;border-radius:10px;background:#fff8e9;color:#775720;display:grid;gap:5px}.salary-wait small{color:inherit}
.payroll-grid{align-items:stretch;grid-template-columns:repeat(3,minmax(0,1fr))}.pay-profile{min-width:0;gap:12px}.pay-profile>.line{min-height:54px;align-items:flex-start;padding:0}.pay-profile .pay-destination{overflow-wrap:anywhere}.pay-profile>.profile-open{margin-top:auto!important}.pay-profile>.utility-details{margin:0}.pay-profile .pay-destination>.line{align-items:center;flex-wrap:wrap}.pay-profile .pay-destination>.line>span{flex:1 1 110px;min-width:0}
.review-dialog{max-height:calc(100dvh - 32px);padding:clamp(14px,2vw,24px);overflow:auto}.review-dialog .dialog-head{gap:12px;align-items:center}.review-dialog .form-grid>label{margin:0!important}.review-dialog input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.review-dialog select{min-height:44px}.review-dialog .check-line input{flex:0 0 18px!important;width:18px!important;min-height:18px!important}
.sidebar .nav-link,.sidebar .nav-group>summary{align-items:center;min-height:44px;margin:2px 0}.sidebar .nav-link .ui-icon,.sidebar .nav-group .ui-icon{width:20px;height:20px;flex:0 0 20px}.sidebar .nav-section{padding:0;margin:16px 10px 6px}
@media(max-width:1150px){.payroll-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.salary-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.cols{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){.panel{padding:16px;margin-bottom:16px}.cols,.metrics,.form-grid,.mini-stats,.routine-grid,.payroll-grid{gap:12px}.cols,.form-grid,.payroll-grid{grid-template-columns:minmax(0,1fr)}.panel>.line:first-child,.payroll-toolbar{align-items:flex-start}.panel>.line:first-child>button,.panel>.line:first-child>.button{max-width:100%}.panel>form.period,.panel>form.matrix-filter{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.panel>form.period>button,.panel>form.matrix-filter>button{width:100%}.salary-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.salary-row>.button,.salary-row>button{grid-column:1/-1;min-height:44px;width:100%}.salary-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.salary-stats>div{padding:12px}.payroll-jumps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.payroll-jumps a{font-size:12px;padding:8px}.pay-profile>.line{min-height:0}.review-dialog{max-height:calc(100dvh - 24px);width:calc(100vw - 24px);padding:14px}.review-dialog input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.review-dialog select{font-size:16px}.sidebar .nav-link,.sidebar .nav-group>summary{min-height:44px}}
/* Consistent payroll action columns and one shared prepare dialog. */
@media(min-width:721px){.salary-row{grid-template-columns:minmax(0,1fr) 100px 126px}.pay-profile .profile-allowance{min-height:2.8em}}
.pay-profile>.profile-prepare{margin-top:auto;min-height:44px;background:#e6f2eb;color:#185840;border-color:#c4ddce}.pay-profile:has(>.profile-prepare)>.profile-open{margin-top:0!important}.action-summary::before{content:none!important}.payroll-jumps a:last-child:nth-child(odd){grid-column:1/-1}.salary-row>.button,.salary-row>button{padding-inline:12px}
@media(max-width:720px){.payroll-jumps a:last-child:nth-child(odd){grid-column:1/-1}.salary-row>.button,.salary-row>button{grid-column:1/-1;justify-self:stretch;width:100%}}
/* V4.6.21: shared layout and ledger-backed report dashboard. */
.report-dashboard{display:grid;gap:18px;min-width:0;max-width:100%}.report-dashboard>*{min-width:0;margin:0}.report-head,.report-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.report-head h2,.report-heading h3{margin:0}.report-head p{margin:6px 0 0}.report-symbol,.report-hero-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:13px;background:#e5f1e9;color:#236747}.report-symbol svg,.report-hero-icon svg{width:24px;height:24px}.report-hero{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px;border-radius:14px;background:linear-gradient(125deg,#143d31,#28724f);color:#fff}.report-hero>div{display:grid;gap:7px;min-width:0}.report-hero strong{font-size:clamp(23px,4vw,36px);line-height:1.15;letter-spacing:-.035em;overflow-wrap:anywhere;color:white}.report-hero small{color:#d5e9df}.report-hero-icon{background:#ffffff20;color:#fff}.report-note{color:var(--muted);font-size:12px;line-height:1.55;overflow-wrap:anywhere}.report-dashboard .report-period{display:grid!important;grid-template-columns:minmax(0,260px) max-content;gap:10px;align-items:end;justify-content:start;width:100%;margin:0!important}.report-dashboard .report-period>label{display:grid!important;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0;width:100%;margin:0!important;text-align:left;justify-items:stretch;align-self:end}.report-dashboard .report-period select,.report-dashboard .report-period button{width:100%;max-width:100%;min-width:0;height:46px;min-height:46px;margin:0!important;box-sizing:border-box;align-self:end;font-size:14px}.report-dashboard .report-period button{padding-inline:18px;white-space:nowrap}.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.report-kpi{border:1px solid #dbe4e1;border-radius:12px;padding:14px;display:grid;align-content:space-between;gap:12px;min-width:0}.report-kpi>span{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.35}.report-kpi svg{width:18px;height:18px;flex:0 0 18px}.report-kpi strong{font-size:clamp(15px,1.9vw,23px);line-height:1.2;overflow-wrap:anywhere;letter-spacing:-.02em}.report-neutral{background:#f3f6f9;color:#365365}.report-in{background:#e9f5ec;color:#216448}.report-out{background:#fff2e5;color:#895717}.report-chart{border:1px solid #e2e8e3;border-radius:13px;padding:16px;display:grid;gap:12px;min-width:0}.report-chart h3{font-size:16px}.report-chart p{margin:0}.report-legend{display:flex;gap:18px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:12px}.report-legend span,.report-ipl-legend>div{display:flex;gap:6px;align-items:center}.dot{display:inline-block;width:10px;height:10px;border-radius:3px;flex:none}.dot.in,.trend-in,.report-ipl-bar .paid{background:#2e8057}.dot.out,.trend-out{background:#c78b3c}.dot.pending,.report-ipl-bar .pending{background:#ddaa4b}.dot.unpaid,.report-ipl-bar .unpaid{background:#a6b4c2}.trend-row{display:grid;grid-template-columns:minmax(74px,120px) minmax(0,1fr);gap:10px;align-items:center}.trend-row>span{font-size:12px;color:#415c57}.trend-bars{display:grid;gap:5px;min-width:0}.trend-bars>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,max-content);gap:6px;align-items:center;min-height:18px}.trend-bars i{height:8px;border-radius:5px;max-width:100%}.trend-bars b{font-size:11px;text-align:right;overflow-wrap:anywhere}.report-chart progress{width:100%;height:10px;accent-color:#397c58;border-radius:8px;overflow:hidden}.report-chart .spending-row{min-width:0;margin:0}.report-chart .spending-row .line,.report-breakdown .line{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:6px 0;flex-wrap:wrap}.report-chart .spending-row span,.report-breakdown .line span{flex:1 1 110px;min-width:0}.report-chart .spending-row b,.report-breakdown b{text-align:right;overflow-wrap:anywhere}.report-ipl-bar{height:14px;display:flex;border-radius:9px;background:#e8edeb;overflow:hidden}.report-ipl-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.report-ipl-legend>div{display:grid;grid-template-columns:auto minmax(0,1fr);align-content:start;align-items:center;padding:10px;border-radius:9px;background:#f4f7f6;min-width:0}.report-ipl-legend small{grid-column:1/-1;line-height:1.3;color:#425a51;font-size:11px;overflow-wrap:anywhere}.report-ipl-legend strong{font-size:20px}.report-actions{display:flex;gap:10px;flex-wrap:wrap}.report-actions>*{margin:0!important;min-height:44px}.report-empty{padding:22px 12px;display:grid;gap:8px;text-align:center;justify-items:center;border-radius:12px;background:#f3f6f8;color:#34545d}.report-empty>span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#e0eaf0}.report-empty h3,.report-empty p{margin:0}.report-empty p{font-size:13px}.report-breakdown{display:grid;gap:4px}.report-chart .button{justify-self:start;max-width:100%}.report-detail{margin:0!important}.shell>main>header>div:first-child{min-width:0}.shell>main>header h1{overflow-wrap:anywhere}.nav-link .ui-icon,.mobile-dock .ui-icon{flex-shrink:0}.shell .mobile-dock>a{min-width:0;gap:5px;line-height:1.2}.shell .mobile-dock>a span{font-size:11px}.panel label,.form-grid>label{min-width:0;max-width:100%}.panel input:not([type=checkbox]):not([type=radio]),.panel select,.panel textarea{max-width:100%;min-width:0;box-sizing:border-box}.panel input[type=month],.panel input[type=date]{min-inline-size:0;width:100%;max-inline-size:100%}.panel input::-webkit-date-and-time-value{text-align:left;min-width:0}.panel .form-grid,.panel .record,.panel .line>div{min-width:0}.report-dashboard .report-heading .pill{white-space:normal;text-align:center}.panel .button,.panel button{white-space:normal;line-height:1.3}.panel .check-line input,.panel .check-label input{flex-shrink:0}.report-ipl-legend .dot{margin:0}.report-dashboard .utility-details>summary{min-height:44px}.report-dashboard .report-chart>.button{margin:0}.panel .report-actions a:focus-visible,.report-period select:focus-visible,.report-period button:focus-visible{outline:2px solid #226c4d;outline-offset:2px}
@media(max-width:1050px){.report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.report-dashboard{gap:14px;padding:16px}.report-hero{padding:16px}.report-hero-icon{width:36px;height:36px}.report-dashboard .report-period{grid-template-columns:minmax(0,1fr) minmax(92px,max-content);gap:8px}.report-dashboard .report-period select{font-size:16px}.report-dashboard .report-period button{padding:0 12px;font-size:13px}.report-kpi{padding:12px;gap:8px}.report-kpi strong{font-size:clamp(14px,4vw,20px)}.report-chart{padding:12px}.trend-row{grid-template-columns:minmax(0,1fr);gap:4px;border-bottom:1px solid #e8eeeb;padding-bottom:7px}.report-ipl-legend>div{padding:8px;gap:4px}.report-ipl-legend strong{font-size:18px}.report-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.report-chart .button{width:100%;justify-self:stretch}.shell>main>header{gap:8px}.panel input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.panel select,.panel textarea{font-size:16px}.panel .line:has(>form){flex-wrap:wrap}.panel .record .line{flex-wrap:wrap;gap:8px}.panel .form-grid>*{min-width:0}}
@media(max-width:360px){.report-dashboard .report-period{grid-template-columns:minmax(0,1fr)}.report-kpi{padding:9px}.report-kpi>span{font-size:11px}.report-kpi svg{width:15px;height:15px;flex-basis:15px}.report-ipl-legend>div{padding:6px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}}
.advance-panel{display:grid;gap:14px}.advance-panel>*,.advance-panel .line>div{min-width:0}.advance-panel>.line{flex-wrap:wrap;gap:12px}.advance-summary{display:grid;gap:4px;padding:16px;border-radius:12px;background:#fff3e2;color:#754d18;border:1px solid #ead8be}.advance-summary strong{font-size:clamp(20px,4vw,30px);overflow-wrap:anywhere}.advance-summary small{color:inherit}.advance-workers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.advance-worker,.advance-history{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start;padding:12px;border:1px solid #dce6e0;border-radius:10px;min-width:0}.advance-worker small,.advance-history small{display:block;overflow-wrap:anywhere}.advance-worker strong,.advance-history strong{overflow-wrap:anywhere;text-align:right}.advance-lock{grid-column:1/-1;color:#885b22}.advance-history{margin-top:8px}.advance-hint{display:grid;gap:4px;background:#fff3e2;color:#754d18;padding:12px;border-radius:10px;margin:10px 0}.advance-hint small{color:inherit}#kasbon{scroll-margin-top:20px}@media(max-width:720px){.advance-workers{grid-template-columns:minmax(0,1fr)}.advance-panel>.line>button{width:100%}}
.report-chart .trend-bars progress{height:8px;margin:0;min-width:0;background:#edf1ef;appearance:none;border:0;accent-color:#2e8057}.report-chart .trend-bars progress::-webkit-progress-bar{background:#edf1ef;border-radius:5px}.report-chart .trend-bars progress::-webkit-progress-value{background:#2e8057;border-radius:5px}.report-chart .trend-bars progress::-moz-progress-bar{background:#2e8057;border-radius:5px}.report-chart .trend-bars progress.trend-out{accent-color:#c78b3c}.report-chart .trend-bars progress.trend-out::-webkit-progress-value{background:#c78b3c}.report-chart .trend-bars progress.trend-out::-moz-progress-bar{background:#c78b3c}.report-ipl-bar svg{width:100%;height:100%;display:block}
/* Final report polish: icon stays beside heading even on small displays. */
.report-head{flex-wrap:nowrap;align-items:flex-start}.report-head>div{flex:1;min-width:0}.report-chart .spending-row progress{appearance:none;border:0;background:#edf1ef;border-radius:6px}.report-chart .spending-row progress::-webkit-progress-bar{background:#edf1ef;border-radius:6px}.report-chart .spending-row progress::-webkit-progress-value{background:#397c58;border-radius:6px}.report-chart .spending-row progress::-moz-progress-bar{background:#397c58;border-radius:6px}

/* Cash reporting detail — shared and private panels */
.report-item-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line,#e1e8e3)}.report-item-row:last-child{border-bottom:0}.report-item-row>div{min-width:0;display:grid;gap:3px}.report-item-row strong,.report-item-row small{overflow-wrap:anywhere}.report-item-row b{white-space:nowrap;font-variant-numeric:tabular-nums}.staff-report .section-heading{gap:12px;flex-wrap:wrap}.staff-report .section-heading>a{max-width:100%;white-space:normal;text-align:center}@media(max-width:400px){.staff-report .section-heading>a{width:100%}.report-item-row{gap:8px}}

/* V4.6.27: checkbox geometry, clear account navigation and payment destination. */
label:has(>input[type=checkbox]):not(.segmented):not(.segment):not(.choice-card){display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;text-align:left!important;gap:10px!important;min-height:32px;line-height:1.5;padding:6px 0;grid-template-columns:none!important}
label:has(>input[type=checkbox]):not(.segmented):not(.segment):not(.choice-card)>input[type=checkbox],input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;max-width:18px!important;max-height:18px!important;flex:0 0 18px!important;box-sizing:border-box!important;padding:0!important;margin:2px 0 0!important;accent-color:#247454;vertical-align:middle;border-radius:4px;appearance:auto;-webkit-appearance:checkbox}
.segmented input[type=checkbox]{position:absolute;opacity:0;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}
label>input[type=checkbox]:focus-visible,input[type=checkbox]:focus-visible{outline:2px solid #247454;outline-offset:3px}
.sidebar .side-bottom{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;padding-top:14px;align-items:stretch;justify-content:stretch}
.sidebar .side-bottom form{width:100%;margin:0;padding:0;display:block}
.sidebar .side-bottom .account-action{display:flex!important;align-items:center;justify-content:flex-start;gap:10px;min-height:44px;width:100%;box-sizing:border-box;border:1px solid transparent!important;box-shadow:none!important;border-radius:9px;background:transparent!important;color:#d9e9df;font:inherit;font-size:14px;font-weight:600;text-align:left;padding:9px 12px;margin:0!important;text-decoration:none;white-space:normal}
.sidebar .side-bottom .account-action .ui-icon{width:20px;height:20px;flex:0 0 20px}.sidebar .side-bottom .account-action span{min-width:0;overflow-wrap:anywhere}
.sidebar .side-bottom .account-action:hover,.sidebar .side-bottom .account-action.active{background:#ffffff15!important}.sidebar .side-bottom .account-logout{color:#ffd6d6}.sidebar .side-bottom .account-action:focus-visible{outline:2px solid #c5e7d0;outline-offset:2px}
.ipl-destination{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px;margin:12px 0;border:1px solid #cde2d5;border-radius:12px;background:#edf6ef;color:#174b36}.ipl-destination>div{display:grid;gap:4px;min-width:0}.ipl-destination strong{font-size:clamp(16px,4vw,23px);overflow-wrap:anywhere}.ipl-destination small{display:block;color:#355a49}.ipl-destination button{margin:0!important;min-height:44px;max-width:100%}.ipl-destination p{margin:0;overflow-wrap:anywhere}
@media(max-width:720px){.sidebar:not(.menu-open) .side-bottom{display:none}.sidebar.menu-open .side-bottom{display:grid;width:100%}.ipl-destination button{width:100%}.ipl-destination>div{width:100%}}
/* V4.6.31: Quiet Premium / adaptive dashboard. Keep wide operational tables. */
.shell>main.adaptive-main{max-width:1280px;width:100%;min-width:0;margin:0 auto;padding-inline:clamp(16px,3vw,36px)}
.shell>main.page-dashboard{max-width:1100px}.shell>main.page-reports{max-width:1200px}.shell>main.page-password,.shell>main.page-settings{max-width:820px}
.shell>main:is(.page-ipl,.page-bank,.page-houses,.page-accounts,.page-ipl-matrix,.page-audit,.page-payroll){max-width:1440px}
body{--bg:#f5f7f6;--muted:#59666f}.shell>main>header{align-items:center;gap:16px}
.profile-menu{position:relative;max-width:48%;margin:0;flex:none;z-index:20;background:transparent;border:0;padding:0;overflow:visible}
.profile-menu>summary.profile{display:flex;align-items:center;justify-content:flex-start;gap:10px;border:1px solid #dfe5e2;background:white;color:#172b25;padding:8px 12px;border-radius:12px;max-width:100%;min-height:48px;cursor:pointer;list-style:none;box-sizing:border-box}
.profile-menu>summary::-webkit-details-marker{display:none}.profile-menu>summary::after,.profile-menu>summary::before{display:none!important;content:none!important}
.profile-menu .profile-ident{display:block;min-width:0;overflow-wrap:anywhere;line-height:1.3;text-align:left}.profile-ident b{font-size:14px}.profile-ident small{font-size:12px}.profile-chevron{flex:none;font-size:20px;line-height:1}
.profile-menu-content{position:absolute;right:0;top:calc(100% + 8px);width:min(260px,calc(100vw - 32px));background:#fff;border:1px solid #dfe5e2;border-radius:12px;padding:6px;box-shadow:0 8px 24px #173f3417;box-sizing:border-box;z-index:25}
.profile-menu-content form{margin:0;padding:0;display:block}.profile-menu-content .account-action{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:44px;gap:10px;background:transparent;border:0;border-radius:8px;box-shadow:none;color:#172b25;padding:10px;font-size:14px;text-align:left;margin:0;white-space:normal;text-decoration:none}
.profile-menu-content .account-action:hover{background:#f0f4f1}.profile-menu-content .account-action .ui-icon{width:20px;height:20px;flex:none}.profile-menu-content .account-logout{color:#b42318}.profile-menu summary:focus-visible,.quiet-task:focus-visible,.quiet-shortcuts a:focus-visible{outline:2px solid #247454;outline-offset:3px}
.welcome{margin:0 0 20px}.welcome h2{font-size:clamp(20px,2vw,26px);margin:0 0 4px}.welcome p{margin:0}.quiet-panel{background:#fff;border:1px solid #dfe5e2;border-radius:12px;box-shadow:none;padding:clamp(16px,2vw,24px);margin-bottom:16px;color:#172b25;min-width:0}
.quiet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.quiet-heading h2{display:flex;align-items:center;gap:8px;margin:0;font-size:18px}.quiet-heading h2 .ui-icon,.quiet-pending h3 .ui-icon{width:20px;height:20px;color:#247454;flex:none}.quiet-heading a{font-size:13px;font-weight:600}.quiet-amount{display:block;font-size:clamp(26px,3vw,32px);line-height:1.2;margin:4px 0 8px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.quiet-late{color:#b42318!important}.quiet-ok{color:#247454!important}
.home-chips{display:flex;gap:8px;flex-wrap:wrap}.home-chips>span{background:#f5f7f6;border:1px solid #dfe5e2;border-radius:8px;padding:8px 14px;min-width:80px}.home-chips small{font-size:12px}.profile-reminder{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;box-shadow:none}.profile-reminder small{margin-top:4px}
.quiet-bill{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border-top:1px solid #e7ece9;padding:12px 0;max-width:720px}.quiet-bill b{display:block;font-size:15px}.quiet-bill strong{font-size:16px;white-space:nowrap;font-variant-numeric:tabular-nums}.quiet-bill small{margin-top:4px;font-size:13px}.quiet-pay{margin-top:12px;min-height:44px}.quiet-pending{border-top:1px solid #e7ece9;margin-top:20px;padding-top:16px;max-width:720px}.quiet-pending h3{display:flex;align-items:center;gap:8px;color:#946200;font-size:15px}.quiet-pending h3 .ui-icon{color:#946200}.quiet-pending>a{display:inline-block;margin-top:8px}.quiet-task{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:14px 0;border-top:1px solid #e7ece9;color:#172b25;text-decoration:none;min-height:44px}.quiet-task small{margin-top:4px}.quiet-task>strong{color:#247454;font-size:20px}.quiet-task:hover{color:#247454}.quiet-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.quiet-stats>div{padding:12px;border:1px solid #dfe5e2;border-radius:8px}.quiet-stats b{display:block;margin-top:4px;overflow-wrap:anywhere}
.quiet-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:10px}.quiet-shortcuts a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 6px;min-height:70px;background:white;border:1px solid #dfe5e2;border-radius:10px;color:#172b25;text-align:center;font-size:14px;text-decoration:none}.quiet-shortcuts .ui-icon{color:#247454;width:22px;height:22px}.quiet-community{margin-bottom:16px}.quiet-community h2{font-size:18px;margin-bottom:10px}
@media(max-width:600px){.shell>main.adaptive-main{padding-inline:14px}.profile-menu{max-width:48%}.profile-menu>summary.profile{padding:6px 8px;gap:6px}.profile-menu .avatar{width:30px;height:30px;flex:0 0 30px}.profile-ident b{font-size:13px}.profile-ident small{font-size:11px}.profile-ident{max-width:105px}.profile-menu-content{right:0}.quiet-heading{gap:8px}.quiet-heading a{font-size:12px}.quiet-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}.quiet-shortcuts a{font-size:12px}.quiet-bill{gap:8px}.quiet-bill strong{font-size:14px}.quiet-bill b{font-size:14px}.quiet-pay{width:100%}.profile-reminder .button{width:100%}.quiet-stats{gap:8px}.quiet-stats b{font-size:14px}}
@media(prefers-reduced-motion:reduce){.profile-menu *{animation:none!important;transition:none!important}}
/* December pilot: restrained, accessible single task layout. */
.pilot-december{max-width:1050px;margin:0 auto;padding:24px;min-width:0}.pilot-december header{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}.pilot-december .panel{background:#fff;border:1px solid #dfe5e2;border-radius:12px;padding:20px;margin:16px 0;min-width:0}.pilot-december form{max-width:700px;margin:12px 0}.pilot-december .pilot-links{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.pilot-december .pilot-links form{margin:0}.pilot-december .pilot-links a{display:inline-flex;padding:10px 12px;border:1px solid #dfe5e2;border-radius:8px}.pilot-december .pilot-check{display:flex;align-items:flex-start;gap:10px}.pilot-december .pilot-check input{flex:0 0 18px;width:18px;height:18px;margin:2px 0 0}.pilot-december .pilot-line{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #dfe5e2}.pilot-december small{display:block;margin-top:4px}.pilot-december .pilot-ok{color:#247454}.pilot-december .pilot-wait{color:#946200}.pilot-december .pilot-bad{color:#b42318}.pilot-december .pilot-claim{margin-bottom:12px}.pilot-december .table-wrap{overflow:auto;max-width:100%}.pilot-december td,.pilot-december th{white-space:normal}.pilot-december footer{text-align:center;color:#59666f;font-size:13px;margin:20px 0}@media(max-width:600px){.pilot-december{padding:12px}.pilot-december .panel{padding:16px}.pilot-december input:not([type=checkbox]),.pilot-december select{width:100%;min-width:0;max-width:100%}}
.pilot-december .pilot-links a.ghost,.pilot-december .pilot-links button.ghost,.pilot-december button.ghost{color:#174638;background:#fff;border:1px solid #c9d7cf;box-shadow:none;text-decoration:none;min-height:44px;width:auto;max-width:100%;font-weight:600}.pilot-december .pilot-links a.ghost:hover,.pilot-december .pilot-links button.ghost:hover{background:#e8f1eb}.pilot-december .profile{color:#172b25}.pilot-december .pilot-links form{display:inline-flex;width:auto}.pilot-december .pilot-links a{flex:0 1 auto}.pilot-december .panel{box-shadow:none}
/* V4.6.31: centered workspace, same shell for regular and December pages. */
@media(min-width:721px){
 .shell{width:100%;max-width:1480px;margin-inline:auto;grid-template-columns:232px minmax(0,1fr);gap:20px;padding:20px 20px 0;align-items:start;min-height:100vh}
 .shell>.sidebar{top:20px;height:calc(100vh - 40px);height:calc(100dvh - 40px);border-radius:16px;padding:20px 14px;background:#153f34;overflow:auto;scrollbar-width:thin}
 .shell>main.adaptive-main{padding:12px clamp(12px,2vw,28px) 32px}
 .shell>main.page-pilot-december{max-width:980px}
}
@media(min-width:721px) and (max-width:1050px){.shell{grid-template-columns:202px minmax(0,1fr);gap:12px;padding:12px 12px 0}.shell>.sidebar{top:12px;height:calc(100dvh - 24px)}.shell>main.adaptive-main{padding-inline:8px}}
.pilot-december .panel{margin:0 0 16px;padding:clamp(16px,2vw,24px);box-shadow:none}.pilot-december .welcome h2{font-size:clamp(18px,2vw,24px)}.pilot-december .pilot-line{justify-content:flex-start;gap:12px;align-items:center}.pilot-december .pilot-line>div{min-width:0;flex:1;overflow-wrap:anywhere}.pilot-december .pilot-line:last-child{border-bottom:0;padding-bottom:0}.pilot-december .pilot-line>a{margin-left:auto;white-space:nowrap}.pilot-december .profile-menu{flex-shrink:0}.pilot-december .profile-menu-content form{margin:0;max-width:none}.pilot-december .quiet-stats b{font-size:24px}.pilot-december .pilot-help{font-size:13px;margin-top:4px}.pilot-december .pilot-upload form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start;max-width:740px}.pilot-december .pilot-upload form>label{min-width:0;margin:0;display:grid;gap:6px}.pilot-december .pilot-upload form>label>input{width:100%;min-width:0;max-width:100%;margin:0;min-height:44px}.pilot-december .pilot-upload form>label:has(input[type=file]),.pilot-december .pilot-upload form>button{grid-column:1/-1}.pilot-december .pilot-upload form>button{justify-self:start;min-height:44px;margin:0}.pilot-december .pilot-upload input[type=file]{padding:10px;background:#f5f7f6;border:1px dashed #bdcbc2;border-radius:10px}.pilot-december #bukti,.pilot-december #rekap,.pilot-december #rumah,.pilot-december #unggah{scroll-margin-top:76px}.pilot-december .pilot-claim{border-top:1px solid #e7ece9;padding-top:10px}.pilot-december .pilot-claim details{margin:12px 0}.pilot-december .profile-menu>summary{min-height:44px}.pilot-december .profile-menu-content .account-action{min-height:44px}.pilot-december .pilot-stats{max-width:620px}.pilot-december #rekap summary{font-size:16px;font-weight:650}
@media(max-width:720px){.shell{padding:0;gap:0;max-width:none}.shell>main.pilot-december{padding:16px 14px calc(90px + env(safe-area-inset-bottom))}.pilot-december header{flex-wrap:nowrap;align-items:center;gap:8px}.pilot-december header>div{min-width:0}.pilot-december header h1{font-size:22px!important;line-height:1.18}.pilot-december .profile-menu{max-width:46%}.pilot-december .profile-ident{min-width:0;max-width:90px}.pilot-december .profile-ident b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pilot-december .profile-ident small{white-space:normal}.pilot-december .pilot-upload form{grid-template-columns:minmax(0,1fr)}.pilot-december .pilot-upload form>button{width:100%}.pilot-december .panel{padding:16px}.pilot-december .pilot-line>a{margin-left:0}.pilot-december .pilot-line{align-items:flex-start}.pilot-december footer{margin-bottom:0}.pilot-december .profile-menu-content{width:min(260px,calc(100vw - 28px))}}
@media(max-width:360px){.pilot-december header h1{font-size:20px!important}.pilot-december .profile-ident{max-width:70px}}
/* Long Indonesian names must not widen the profile trigger. */
.profile-menu>summary.profile{display:flex!important;flex-wrap:nowrap!important;min-width:0}.profile-menu>summary.profile .profile-ident{display:block;flex:1 1 auto;min-width:0;overflow:hidden}.profile-menu>summary.profile .profile-ident b,.profile-menu>summary.profile .profile-ident small{display:block;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu>summary.profile .profile-chevron{flex:none;margin-left:0}.profile-menu>summary.profile .avatar{flex-shrink:0}
@media(min-width:721px){.shell.pilot-shell{max-width:1240px}.shell:has(>main.page-dashboard){max-width:1340px}.shell:has(>main.page-reports){max-width:1400px}.shell.pilot-shell>main{max-width:100%;padding-inline:8px 12px}}
.profile-menu-heading{padding:10px 10px 12px;border-bottom:1px solid #e7ece9;margin-bottom:4px;color:#172b25;overflow-wrap:anywhere}.profile-menu-heading b{display:block;line-height:1.4}.profile-menu-heading small{display:block;color:#59666f}.pilot-december .pilot-upload form>label[hidden]{display:none!important}.pilot-upload input[type=file]::file-selector-button{border:0;background:#e1eee5;color:#174638;border-radius:6px;padding:8px 10px;margin-right:8px;font:inherit;font-size:13px;font-weight:600}.pilot-december .pilot-upload form>label>small{font-weight:400;color:#59666f;margin:0}.pilot-december .pilot-upload form{max-width:none}.pilot-december .pilot-line>div>strong{font-size:17px;font-variant-numeric:tabular-nums}
/* V4.6.31: task-first disclosure, consistent navigation. */
.locked-fields{display:contents;border:0;padding:0;margin:0;min-width:0}.locked-fields :disabled{cursor:not-allowed;opacity:.7}.finance-availability{display:flex;align-items:center;gap:9px;font-size:13px;color:#59666f;background:#fff;border:1px solid #dfe5e1;padding:12px 16px;border-radius:10px}.finance-availability .ui-icon{flex:none}.december-link{display:flex;align-items:center;gap:10px;font-weight:600}.december-link span{margin-left:auto}.fresia-credit{display:grid;gap:4px;line-height:1.45;font-size:12px;color:#59666f;text-align:center}.fresia-credit small{font-size:11px;color:#59666f;margin:0;overflow-wrap:anywhere}.proof-disclosure{margin-top:12px}.proof-disclosure>summary.button{display:inline-flex;align-items:center;gap:8px;min-height:44px;list-style:none;cursor:pointer}.proof-disclosure>summary::-webkit-details-marker{display:none}.proof-disclosure[open]>summary{margin-bottom:14px}.proof-disclosure .pilot-upload-form{margin-top:12px}.proof-file-control{position:relative;min-width:0;display:block}.proof-file-control.enhanced{display:flex;gap:10px;align-items:center;background:#f5f7f6;border:1px dashed #bdcbc2;padding:10px;border-radius:10px;min-height:48px}.proof-file-control.enhanced input{position:absolute!important;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.proof-file-control.enhanced:focus-within{outline:2px solid #247454;outline-offset:2px}.proof-file-label{display:none}.proof-file-control:not(.enhanced) [data-file-name]{display:none}.proof-file-control.enhanced .proof-file-label{display:block;flex:none;padding:7px 10px;border-radius:6px;background:#e1eee5;color:#174638;font-weight:600}.proof-file-control [data-file-name]{font-weight:400;overflow-wrap:anywhere;min-width:0}.proof-disclosure:not([open]) .pilot-upload-form{display:none}.pilot-december .pilot-line strong{font-size:20px;font-variant-numeric:tabular-nums}.pilot-december .pilot-line{padding:12px 0}.pilot-december .pilot-claim .pilot-line{justify-content:space-between}.pilot-december .quiet-heading{margin-bottom:6px}
@media(max-width:720px){.shell>main.adaptive-main header{align-items:center;flex-wrap:nowrap;gap:8px}.shell>main.adaptive-main header>div{min-width:0}.shell>main.adaptive-main header h1{font-size:clamp(20px,5.4vw,25px);line-height:1.2}.shell>main.adaptive-main .profile-menu{flex:none;max-width:48%}.shell>main.adaptive-main .profile-menu>summary .profile-ident{display:none}.shell>main.adaptive-main .profile-menu>summary{min-height:44px;min-width:56px}.shell>main.adaptive-main .profile-menu-content{max-width:calc(100vw - 28px)}.proof-disclosure>summary.button{display:flex;justify-content:center}.fresia-credit{padding-inline:8px}}
.resident-ipl .pilot-wait{color:#946200}.pilot-december .pilot-line .pilot-wait+strong{color:#946200}.pilot-december .pilot-line .pilot-ok+strong{color:#247454}
@media(min-width:1050px){.shell:has(>main.pilot-december){max-width:1240px}}

/* V4.6.32: integrated light navigation; no floating forest-colored block. */
body:has(.shell>main.adaptive-main){background:#f6f7f8;color:#182b29}
.shell>.sidebar{background:#fff;color:#182b29;border-right:1px solid #dfe5e2}
.shell>.sidebar .brand,.shell>.sidebar .brand span{color:#153f34}.shell>.sidebar .brand{border-color:#e1e6e4}
.shell>.sidebar .nav-label,.shell>.sidebar .nav-section{color:#52685e}
.shell>.sidebar nav a,.shell>.sidebar .nav-group summary,.shell>.sidebar .side-bottom>a{color:#30453d}
.shell>.sidebar nav a.active,.shell>.sidebar .nav-group summary.group-active{background:#e0eee6;color:#153f34;font-weight:700}
.shell>.sidebar nav a:hover,.shell>.sidebar .nav-group summary:hover{background:#eef4f0;color:#153f34}
.shell>.sidebar .nav-children{border-color:#d7e2da}.shell>.sidebar :focus-visible{outline:2px solid #247454;outline-offset:2px}
.shell>.sidebar .side-bottom .account-action{color:#30453d}.shell>.sidebar .side-bottom .account-logout{color:#9f2828}.shell>.sidebar .side-bottom .account-action:hover{background:#eef4f0!important}
@media(min-width:721px){.shell:has(>main.adaptive-main){max-width:none;margin:0;gap:0;padding:0;grid-template-columns:248px minmax(0,1fr)}.shell>.sidebar{position:sticky;top:0;height:100vh;height:100dvh;border-radius:0;padding:24px 16px}.shell>main.adaptive-main{padding:24px clamp(16px,3vw,44px) 36px}.shell>main.page-settings{max-width:980px}.shell>main.page-dashboard{max-width:1200px}.shell>main.pilot-december{max-width:1100px}.shell>main.page-reports{max-width:1280px}}
@media(min-width:721px) and (max-width:1050px){.shell:has(>main.adaptive-main){grid-template-columns:210px minmax(0,1fr)}.shell>.sidebar{padding:16px 10px}.shell>main.adaptive-main{padding:20px 14px 32px}}
@media(max-width:720px){.shell>.sidebar{border-right:0;border-bottom:1px solid #dfe5e2}.shell>.sidebar .mobile-menu{color:#153f34;border-color:#bacbc0;background:#fff}.shell>.sidebar.menu-open .menu-panel{background:#fff;box-shadow:0 10px 22px #18352b22}}
.bank-destination{background:#fff;border:1px solid #dce5df}.bank-destination>div{min-width:0}.bank-mark{display:flex;align-items:center;gap:8px;color:#153f34;margin:0 0 8px}.bank-mark img,.bank-preview img{max-width:116px;max-height:48px;object-fit:contain}.bank-mark .ui-icon{width:22px;height:22px}.bank-credit{font-size:10px!important;line-height:1.35;margin:4px 0 8px!important}.bank-preview{display:flex;gap:10px;align-items:center;min-height:44px;color:#153f34}.bank-preview:empty{display:none}[data-bank-other][hidden]{display:none!important}.pilot-upload-form>.ocr-panel,.pilot-upload-form>.allocation-heading,.pilot-upload-form>.allocation-status{grid-column:1/-1;min-width:0}.pilot-upload-form>.ocr-panel{margin:0;padding:10px;border:1px solid #dce5df;border-radius:10px;background:#f8faf9}.pilot-upload-form>.allocation-heading small{display:block}.pilot-upload-form>.pilot-total{grid-column:1/-1}.pilot-upload-form .ocr-result dl{overflow-wrap:anywhere}.pilot-upload-form .ocr-head{display:flex;justify-content:flex-start}

/* Strong contrast for the primary evidence action, including keyboard focus. */
.proof-disclosure>summary.button.primary{background:#247454!important;color:#fff!important;border:1px solid #247454}.proof-disclosure[open]>summary.button.primary{background:#e3efe7!important;color:#153f34!important;border-color:#b7cfc0}.proof-disclosure>summary.button.primary:hover,.proof-disclosure>summary.button.primary:focus-visible{background:#153f34!important;color:#fff!important}.proof-disclosure>summary.button.primary .ui-icon{color:currentColor}.pilot-upload-form>.ocr-panel .ocr-scan{color:#153f34}.bank-preview img{width:100px;height:44px;object-fit:contain}

/* V4.6.33 Forest Premium */
body:has(.shell>main.adaptive-main){background:#edf2ef;color:#142b24}
.shell>.sidebar{background:#123d32;color:#f4faf5;border-color:#123d32}
.shell>.sidebar .brand,.shell>.sidebar .brand span{color:#f5faf6}.shell>.sidebar .brand{border-color:#ffffff26}
.shell>.sidebar .nav-label,.shell>.sidebar .nav-section{color:#bad4c5}
.shell>.sidebar nav a,.shell>.sidebar .nav-group summary,.shell>.sidebar .side-bottom>a,.shell>.sidebar .side-bottom .account-action{color:#eff8f2}
.shell>.sidebar nav a.active,.shell>.sidebar .nav-group summary.group-active{background:#cbe4b5;color:#123d32;font-weight:750}
.shell>.sidebar nav a:not(.active):hover,.shell>.sidebar .nav-group summary:not(.group-active):hover,.shell>.sidebar .side-bottom .account-action:hover{background:#2a584a!important;color:white}
.shell>.sidebar .side-bottom .account-logout{color:#ffd6d6}.shell>.sidebar .nav-children{border-color:#ffffff38}
.shell>.sidebar :focus-visible{outline-color:#d3e9b5}
.shell>.sidebar .mobile-menu{color:#fff;background:#204e40;border-color:#71998a}
.shell>.sidebar.menu-open .menu-panel{background:#123d32}
.shell>main.adaptive-main .quiet-panel{border-color:#d4e0d8;box-shadow:0 2px 7px #18352b08}
.shell>main.adaptive-main .cash-highlight{background:#174a3b;border-color:#174a3b;color:#fff;box-shadow:0 4px 14px #18352b15}
.cash-highlight .quiet-heading h2,.cash-highlight .quiet-heading h2 .ui-icon,.cash-highlight .quiet-heading a,.cash-highlight .quiet-amount.quiet-ok{color:#fff!important}
.cash-highlight small{color:#d2e5d9!important}.cash-highlight .quiet-stats>div{background:#ffffff0b;border-color:#ffffff38}.cash-highlight .quiet-amount{font-size:clamp(30px,3.4vw,40px)}
.resident-ipl{border-left:4px solid #247454!important}
.quiet-shortcuts a{background:#f9fcfa;border-color:#cdded1}
.mobile-dock a[aria-current=page]{background:#174a3b;color:white}
@media(min-width:1051px){.shell>main.adaptive-main{margin-left:0;margin-right:auto}.shell>main.page-dashboard{max-width:1280px}}

/* Keep active states, visible keyboard focus and high contrast for the dark cash card. */
.cash-highlight .quiet-stats b{color:#fff}.cash-highlight a:focus-visible{outline:2px solid #d3e9b5;outline-offset:4px}.cash-highlight .quiet-heading a:hover{color:#cbe4b5!important}.mobile-dock a[aria-current=page] .ui-icon{color:currentColor}.shell>.sidebar nav a.active:hover,.shell>.sidebar .nav-group summary.group-active:hover{background:#cbe4b5!important;color:#123d32!important}
@media(min-width:721px){.shell>main.adaptive-main{margin-left:0;margin-right:auto}.shell>main.page-dashboard{max-width:1280px}}

/* V4.6.34 Forest Gradient: one canvas, balanced workspace, restrained gradients. */
body:has(.shell>main.adaptive-main){--bg:#edf2ef;background:#edf2ef}
.shell>main.adaptive-main{background:transparent;margin-inline:auto;min-height:100vh}
.shell>main.page-history,.shell>main.page-dashboard,.shell>main.page-reports,.shell>main.page-ipl-board,.shell>main.page-ipl-matrix{max-width:1600px}
.shell>main.page-dashboard .quiet-bill,.shell>main.page-dashboard .quiet-pending{max-width:none}
.shell>.sidebar{background:linear-gradient(155deg,#123d32 0%,#103a31 58%,#1b4a3a 100%)}
.shell>main.adaptive-main .cash-highlight{background:linear-gradient(115deg,#123d32,#205b46);border-color:#174a3b}
.ipl-progress-card .quiet-stats{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));margin:12px 0}
.ipl-progress-card progress{display:block;width:100%;margin:12px 0;accent-color:#247454}
.reconcile-note{background:#fbf4e4;border-left:3px solid #946200;padding:12px;border-radius:8px;color:#694800}
.reconcile-note small{display:block;margin-top:4px}.amount-preview{color:#247454;font-weight:650}.amount-preview:empty{display:none}
@media(min-width:721px){.shell>main.adaptive-main{padding-inline:clamp(16px,3vw,48px)}}
@media(max-width:720px){.ipl-progress-card .quiet-stats{grid-template-columns:1fr 1fr}.ipl-progress-card .line{gap:8px}}
@media(min-width:721px){.shell>.sidebar .menu-panel,.shell>.sidebar nav{background:transparent}}

/* V4.6.35: task-first workspace, continuous forest canvas, compact identity. */
.shell>.sidebar{background:linear-gradient(180deg,#123d32 0%,#143f34 100%);background-color:#123d32;border-color:transparent;box-shadow:none}
@media(min-width:721px){.shell>.sidebar :is(.menu-panel,nav,.side-bottom,.nav-group,.nav-children,.brand){background:transparent;box-shadow:none}.shell>.sidebar .menu-panel{scrollbar-color:#648477 transparent}.shell>.sidebar .nav-group>summary:not(.group-active):not(:hover){background:transparent}}
.shell>main>.workspace-header{padding:0 0 14px;border-bottom:1px solid #d7e2da;margin-bottom:20px;gap:12px;align-items:center}
.workspace-header .workspace-heading{min-width:0}.workspace-header h1{margin:2px 0 0}.workspace-header .profile-menu{max-width:50%}.workspace-header .profile-menu>summary.profile{border:1px solid transparent;background:transparent;box-shadow:none;padding:6px 8px;min-height:44px;gap:8px;border-radius:10px}.workspace-header .profile-menu>summary.profile:hover,.workspace-header .profile-menu[open]>summary.profile{background:#dfeae2;border-color:#d0dfd4}.workspace-header .profile-menu .avatar{width:34px;height:34px;flex:0 0 34px}.workspace-header .profile-ident b{font-size:13px}.workspace-header .profile-ident small{font-size:11px}.workspace-header .profile-chevron{font-size:16px}
.row-more>summary.button{width:auto;min-width:0;gap:6px;justify-content:center}.row-more>summary.button::after{width:7px;height:7px;flex:0 0 7px;margin-left:3px}
.routine-overview{padding:20px}.routine-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.routine-links a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:12px;background:#eff5f0;border:1px solid #d8e4db;border-radius:10px;align-items:center;color:#173c2e}.routine-links a small{grid-column:1/-1;color:#476457}.routine-links strong{font-size:24px;font-variant-numeric:tabular-nums}.routine-links a:hover{background:#e3efe4}.routine-links a:focus-visible{outline:2px solid #247454;outline-offset:2px}
.panel.routine-section{padding:0;overflow:visible;margin:0 0 12px;border:1px solid #d7e2da}.routine-section>summary{min-height:70px;padding:14px 20px;margin:0;background:#fff;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}.routine-section>summary b{font-size:17px;display:block}.routine-section>summary small{font-size:12px;color:#51665a;display:block;margin-top:3px}.routine-section[open]>summary{background:#edf5ee;border-bottom:1px solid #d7e2da;border-radius:12px 12px 0 0}.routine-section>.routine-body{padding:18px 20px 20px;min-width:0}.routine-section>.routine-body>div:first-child h2{font-size:16px}.routine-section .record{scroll-margin-top:80px}.routine-section,.work-main section,.work-actions{scroll-margin-top:85px}.routine-section .routine-history{margin-top:14px}.salary-review-preview{background:#edf5ee;border:1px solid #d7e2da;border-radius:10px;padding:12px;margin:8px 0 14px}.salary-review-preview strong{display:block;font-size:24px;font-variant-numeric:tabular-nums;color:#174a3b}.salary-review-preview small{display:block;overflow-wrap:anywhere}.salary-adjust{margin:10px 0}.resident-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.resident-actions a{display:inline-flex;align-items:center;gap:5px;min-height:40px;font-weight:650;font-size:13px}.resident-actions .ui-icon{width:16px;height:16px}.work-actions{margin-bottom:16px}.work-main .staff-head{border-bottom:1px solid #d7e2da;padding-bottom:12px}
@media(max-width:720px){.shell>main>.workspace-header{padding-bottom:10px;margin-bottom:14px}.workspace-header .profile-menu{max-width:49%}.workspace-header .profile-menu>summary.profile{padding:4px;gap:5px}.workspace-header .profile-menu .avatar{width:28px;height:28px;flex-basis:28px}.workspace-header .profile-ident b{font-size:12px}.workspace-header .profile-ident small{font-size:10px}.routine-links{grid-template-columns:1fr}.routine-links a{grid-template-columns:minmax(0,1fr) auto auto;min-height:48px}.routine-links a small{grid-column:auto}.routine-links strong{font-size:20px}.routine-section>summary{padding:12px 14px}.routine-section>.routine-body{padding:12px}.routine-section>summary b{font-size:15px}.resident-actions{gap:4px 12px}}
/* Desktop nav is marked menu-open by JS; prevent the mobile dropdown's solid fill bleeding into the desktop gradient. */
@media(min-width:721px){.shell>.sidebar.menu-open .menu-panel{background:transparent;box-shadow:none}}

/* V4.6.36: explicit action states. Disclosure layout must not override primary action colors. */
/* Keep the base background/foreground pair intact in closed and expanded states. */
details:not(.nav-group)>summary.button.primary{background:#247454;color:#fff;border-color:#247454;justify-content:center}
details:not(.nav-group)>summary.button.primary:hover,details:not(.nav-group)>summary.button.primary:focus-visible{background:#153f34;color:#fff;border-color:#153f34}
details:not(.nav-group)>summary.button.primary:active{background:#10372c;color:#fff;border-color:#10372c}
/* Do not recolor the already intentional light expanded evidence disclosure (its explicit rules above win). */
:is(button,a.button,a.btn,summary.button,summary.action-summary):focus-visible{outline:2px solid #247454;outline-offset:3px}
/* Disabled controls must remain recognizably unavailable, rather than looking like an active white-on-white action. */
button.primary:disabled,fieldset:disabled button.primary{background:#e1e8e3;color:#4a6053;border-color:#b9c9bf;opacity:1;cursor:not-allowed}
