:root{font-family:Inter,Segoe UI,system-ui,sans-serif;color:#20352d;background:#f6f5ef;font-synthesis:none}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-height:100vh}a{color:inherit}h1,h2,p{margin-top:0}h1{font-size:clamp(2.1rem,5vw,3.7rem);line-height:1.1;letter-spacing:-.04em}h2{font-size:1.12rem}p{line-height:1.55}.app-header{background:#183f34;color:#fff;box-shadow:0 2px 14px #183f341c}.header-inner{max-width:1050px;margin:auto;min-height:72px;padding:10px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:10px;font-size:1.2rem;font-weight:800;text-decoration:none}.brand img{width:38px;height:38px;border-radius:12px}.app-header nav{display:flex;align-items:center;gap:18px}.app-header nav a,.nav-link{color:white;text-decoration:none;font:inherit;font-size:.9rem}.app-header nav form{margin:0}.nav-link{background:none;border:0;cursor:pointer;padding:10px 0}.main-content{max-width:1050px;padding:34px 22px 80px;margin:auto;min-height:calc(100vh - 125px)}footer{text-align:center;color:#74847c;font-size:.84rem;padding:20px}.hero{max-width:810px;padding:35px 0 42px}.hero-logo{display:block;width:min(320px,80%);max-height:140px;object-fit:contain;object-position:left center;margin:0 0 23px}.hero h1{max-width:680px;color:#183f34}.hero>p:not(.eyebrow){max-width:540px;font-size:1.1rem;color:#52655a}.eyebrow{font-size:.73rem;font-weight:800;letter-spacing:.17em;color:#ad7a2b}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;border-radius:12px;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;border:1px solid #183f34}.button.primary{background:#183f34;color:white}.button.secondary{background:#fff;color:#183f34}.button.full{width:100%;margin-top:24px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.feature-grid article,.panel,.case-card,.summary-card{background:white;border:1px solid #e4e8df;border-radius:18px;box-shadow:0 10px 30px #163f2510}.feature-grid article{padding:24px}.feature-grid p{color:#627267;margin-bottom:0}.feature-icon{display:inline-flex;align-items:center;justify-content:center;background:#e7f2e5;color:#28734c;border-radius:12px;width:40px;height:40px;font-weight:800;margin-bottom:20px}.panel{max-width:540px;margin:30px auto;padding:32px}.panel h1{font-size:2.35rem;color:#183f34}.panel p{color:#647369}.install-icon{width:72px;height:72px;border-radius:18px;margin-bottom:20px}.install ol{line-height:1.9;padding-left:22px}.install h2{margin-top:30px}.install .button{margin:12px 0}label{display:block;font-weight:700;margin:18px 0 7px}input{display:block;width:100%;min-height:48px;font:inherit;padding:11px 13px;border:1px solid #aebeb0;border-radius:10px;background:white}input:focus{outline:3px solid #8cbb8d;outline-offset:1px}.validation{display:block;color:#a23427;font-size:.9rem;margin-top:5px}.validation:empty{display:none}.helper{font-size:.88rem;margin:22px 0 0}.dashboard-heading{margin:20px 0 24px}.dashboard-heading h1{font-size:2.2rem;margin-bottom:8px}.dashboard-heading>p:last-child{color:#68786c}.summary-card{display:inline-flex;align-items:center;gap:12px;padding:16px 22px;margin-bottom:24px}.summary-card strong{font-size:2rem;color:#276c46}.case-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.case-card{padding:20px}.case-top{display:flex;justify-content:space-between;gap:10px;margin-bottom:16px}.case-ref{font-weight:800;color:#236745}.status{background:#eaf1e7;color:#276645;border-radius:100px;padding:4px 10px;font-size:.78rem;font-weight:700}.case-card h2{font-size:1.2rem}.case-card p{margin-bottom:6px;color:#5c6f62}.case-card .referral{font-size:.86rem;border-top:1px solid #e7e9e3;padding-top:12px;margin-top:14px}@media(max-width:650px){.header-inner{min-height:60px;padding:7px 16px}.brand span{font-size:1rem}.brand img{width:32px;height:32px}.app-header nav{gap:12px}.main-content{padding:20px 16px 70px}.hero{padding:16px 0 25px}.hero h1{font-size:2.35rem}.hero-logo{width:240px;max-height:100px}.actions .button{width:100%}.feature-grid,.case-list{grid-template-columns:1fr}.feature-grid article{padding:18px}.panel{margin:14px auto;padding:22px}.dashboard-heading h1{font-size:1.75rem}}
.registration-choices{grid-template-columns:repeat(2,1fr)}.registration-choices .button{margin-top:12px}.check-row{display:flex;align-items:flex-start;gap:10px;font-weight:500;line-height:1.4}.check-row input{width:20px;height:20px;min-height:20px;flex:none;margin:0}.notice{background:#e7f2e5;border-radius:12px;padding:12px 16px}.error-reference{font-size:1rem;font-weight:800;overflow-wrap:anywhere;padding:14px;border-radius:10px;background:#eef3e9;color:#183f34}.error-details{max-width:900px}.error-details pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#edf0ec;padding:14px;border-radius:10px;max-height:520px;overflow:auto;font-size:.8rem}@media(max-width:650px){.registration-choices{grid-template-columns:1fr}.app-header nav{gap:9px}.app-header nav a,.nav-link{font-size:.78rem}}
/* V3: compact registration controls and a clean header mark. */
.brand img{width:38px;height:38px;object-fit:contain;border-radius:9px;display:block}
.registration-form{max-width:520px}
.registration-form label:not(.check-row){margin:14px 0 5px;font-size:.9rem}
.registration-form input:not([type="checkbox"]){min-height:44px}
.registration-form label.check-row{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;column-gap:11px;min-height:44px;margin:13px 0 4px;font-weight:500;font-size:.9rem;line-height:1.35;cursor:pointer}
.registration-form label.check-row input[type="checkbox"]{appearance:auto;display:block;width:18px;height:18px;min-width:18px;min-height:18px;max-width:18px;margin:1px 0 0;padding:0;accent-color:#183f34;grid-column:1}
.registration-form label.check-row span{grid-column:2;align-self:center}
.registration-form .button.full{margin-top:17px}
@media(max-width:650px){.registration-form{margin:12px auto;padding:20px}.registration-form h1{font-size:1.9rem}.registration-form label:not(.check-row){margin-top:12px}.header-inner{gap:8px}.brand{gap:7px}.brand img{width:34px;height:34px}}
@media(max-width:420px){.header-inner{flex-wrap:wrap}.app-header nav{flex-wrap:wrap;justify-content:flex-start;padding:0 0 4px}.brand{width:100%}}
/* V4 confirmation dialog */
.registration-dialog{width:min(420px,calc(100vw - 32px));max-height:85vh;border:1px solid #dce6da;border-radius:18px;padding:26px;background:#fff;color:#20352d;box-shadow:0 22px 65px #152b2355}
.registration-dialog::backdrop{background:#102c23a8}
.registration-dialog h2{font-size:1.4rem;color:#183f34;margin-bottom:12px}
.registration-dialog p{color:#59695f}
.registration-dialog form{margin-top:20px}
/* V5 settings and payment forms */
.settings-panel{max-width:760px}.settings-panel h2{margin-top:30px;color:#183f34}.settings-panel textarea,.settings-panel select,.panel textarea{display:block;width:100%;min-height:48px;font:inherit;padding:11px 13px;border:1px solid #aebeb0;border-radius:10px;background:white}.settings-panel textarea,.panel textarea{min-height:95px}.payment-info{max-width:600px;margin:0 0 24px}.payment-qr{display:block;width:min(270px,100%);height:auto;margin:12px 0}.case-card form{margin-top:16px}.case-card form .button{margin-top:10px}.app-header nav{flex-wrap:wrap;justify-content:end}@media(max-width:650px){.settings-panel{padding:20px}.case-card form .button{width:100%}}

.login-logo{display:block;width:min(100%,390px);height:auto;margin:0 auto 20px}
.login-install{display:flex;align-items:center;gap:12px;background:#f4f8f1;border:1px solid #d9e6d6;border-radius:14px;padding:12px;margin-top:20px;flex-wrap:wrap}
.login-install img{width:48px;height:48px;border-radius:12px}
.login-install div{flex:1;min-width:130px}
.login-install small{display:block;color:#63766a;margin-top:3px}
.login-install .button{min-height:40px;padding:8px 12px;font-size:.85rem}
.auth-panel>.button.full{margin-top:15px}
.registration-projects{border:1px solid #dce5d9;border-radius:12px;padding:12px 16px;margin-top:20px}
.registration-projects legend{font-weight:800;color:#183f34;padding:0 5px}
.registration-projects .helper{margin:0 0 10px}
.registration-projects label.check-row{min-height:30px}
.location-button{margin-top:8px}
.approval-details{padding:12px;margin-top:14px;background:#f3f7f0;border-radius:12px;overflow-wrap:anywhere}
.approval-details p{margin:3px 0}
.project-settings{list-style:none;padding:0}
.project-settings li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #e4e8df}
.project-settings form{margin:0}
.project-settings .button{min-height:36px;padding:7px 12px}
.hero-logo{width:min(100%,660px);max-height:none}
@media(max-width:650px){.login-install .button{width:100%}.hero-logo{width:100%}}
.login-install .install-status{flex-basis:100%;color:#4e6655}
