*{box-sizing:border-box}body{margin:0;background:#f5f7fa;color:#202d40;font:14px/1.5 Inter,Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer;background:white;border:1px solid #d9e1eb;border-radius:7px;padding:10px 15px;color:#33455c;font-weight:600}button:hover{background:#eef5ff}button:disabled{opacity:.43;cursor:not-allowed}button.primary{background:#127ae2;color:white;border-color:#127ae2}input,select{width:100%;padding:11px 12px;border:1px solid #d7dfeb;background:white;color:#202d40;border-radius:6px;min-width:0}input:focus,select:focus{outline:2px solid #9bccfc}input[type=checkbox]{width:auto;accent-color:#127ae2;margin-right:8px}h1{font-size:30px;letter-spacing:-1px;margin:4px 0 6px}h2{font-size:18px;margin:0 0 8px}h3{font-size:15px}p{margin:6px 0 18px;color:#69798c}.shell{display:flex;min-height:100vh}aside{width:220px;background:white;border-right:1px solid #e1e7ef;padding:30px 18px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}aside img{width:178px;margin:4px 0 42px}aside>small{font-size:11px;letter-spacing:1.7px;color:#91a0b2;margin:0 12px 12px}aside>button{text-align:left;border:0;margin:3px 0;background:transparent;padding:13px}aside>button.active{background:#e9f3ff;color:#0874d9}aside footer{margin-top:auto;padding:18px 10px 0;border-top:1px solid #e9edf3;font-size:12px}aside footer p{margin:3px 0}aside footer small{color:#8c9aac}.main{margin-left:220px;flex:1;min-width:0}.main>header{height:70px;background:white;border-bottom:1px solid #e1e7ef;padding:0 38px;display:flex;align-items:center;justify-content:space-between;color:#7c8a9c;font-size:12px}.main>header span{font-size:11px;letter-spacing:1px;background:#edf5ff;color:#1b70c4;padding:6px 10px;border-radius:4px}main{max-width:1500px;margin:auto;padding:32px 38px 100px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.heading>div>small{font-size:11px;letter-spacing:1.8px;color:#648099}.heading>button{white-space:nowrap}.heading>input{max-width:250px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:28px}.stats article{padding:23px 25px;background:white;border:1px solid #e1e7ef;border-radius:10px}.stats span{display:block;font-size:12px;color:#8190a2}.stats strong{display:block;font-size:30px;font-weight:600;margin-top:7px}section{background:white;border:1px solid #e1e7ef;border-radius:10px;padding:26px;margin-bottom:22px}.empty{text-align:center;padding:50px 20px}.empty p{max-width:510px;margin:8px auto}.table-wrap{overflow:auto;width:100%}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:11px;font-weight:500;color:#7a8c9e;background:#f7f9fc;white-space:nowrap}th,td{padding:15px 12px;border-bottom:1px solid #e9eef4}td{font-size:12px}.subtext{display:block;color:#8a99aa;font-size:11px;margin-top:3px}.footnote{font-size:12px;color:#8493a6;margin:20px 2px}.notice{border:1px solid #cddff2;background:#eff6fd;padding:13px 16px;border-radius:7px;margin-bottom:20px;color:#4e6c89;font-size:13px}.error{border-color:#f0c2c5;background:#fff2f3;color:#a42333}.success{border-color:#bfe2d0;background:#f0fbf6;color:#227950}.stepper{display:flex;justify-content:space-between;gap:10px;margin:25px 0 30px;border-bottom:1px solid #dde5ef;padding-bottom:23px}.stepper button{border:0;background:transparent;font-size:12px;padding:5px;display:flex;align-items:center;gap:8px}.stepper b{display:inline-grid;place-items:center;background:#e1e7ef;color:#6c7f95;border-radius:50%;width:25px;height:25px}.stepper .current{color:#127ae2}.stepper .current b{background:#127ae2;color:white}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 24px;margin:23px 0}.field{display:flex;flex-direction:column;gap:7px;font-size:12px}.field span{color:#6c7c8f}.external{border-top:1px solid #edf1f6;padding-top:20px}.external .field{max-width:300px;margin-top:18px}fieldset{border:0;padding:0;margin:0;min-width:0}.number{display:inline-grid;place-items:center;border-radius:6px;background:#e9f3ff;color:#127ae2;width:30px;height:30px;font-size:14px;margin-right:8px}.danger{color:#b24b56;border-color:#efd8db}.typology{display:grid;grid-template-columns:1fr 180px 40px;gap:15px;align-items:end;margin:16px 0}.typology button{padding:10px}.total{border-top:1px solid #e8eef5;margin-top:24px;padding-top:16px;display:flex;justify-content:space-between;color:#7b8c9f}.total strong{color:#127ae2}.savebar{position:sticky;bottom:0;background:white;border:1px solid #dae3ef;border-radius:9px;box-shadow:0 4px 20px #263e5b0b;display:flex;align-items:center;justify-content:space-between;padding:18px 22px;gap:15px}.savebar button{margin-left:8px}.db-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:25px}.db-grid button{text-align:left;overflow-wrap:anywhere}.archive{max-height:520px}.archive td{min-width:150px;max-width:350px;overflow-wrap:anywhere}.archive th{position:sticky;top:0;z-index:1}.project-dialog{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);background:white;border:1px solid #dce4ee;padding:30px;border-radius:12px;width:min(460px,90vw);z-index:60;box-shadow:0 20px 80px #19344f35}.project-dialog h2{font-size:22px}.project-dialog form>button{margin-top:22px;width:100%}[data-slot=dialog-overlay]{position:fixed;inset:0;background:#152a4655;z-index:50}[data-slot=dialog-close]{position:absolute;right:12px;top:10px;border:0;padding:5px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:950px){aside{width:170px}aside img{width:135px}.main{margin-left:170px}main{padding:25px 20px 80px}.main>header{padding:0 20px}.stepper{flex-wrap:wrap}.db-grid{grid-template-columns:1fr 1fr}.savebar{flex-wrap:wrap}.typology{grid-template-columns:1fr 120px 40px}}@media(max-width:650px){aside{position:static;width:100%;padding:14px;flex-direction:row;align-items:center}aside img{width:110px;margin:0 auto 0 0}aside>small,aside footer{display:none}.shell{display:block}.main{margin:0}.main>header{height:48px}.heading{align-items:flex-start;flex-direction:column}.stats{gap:8px}.stats article{padding:13px}.stats strong{font-size:22px}.stats span{font-size:11px}.grid{grid-template-columns:1fr}section{padding:18px}.typology{grid-template-columns:1fr 70px 35px;gap:7px}.savebar{padding:14px}.savebar button{margin:6px 6px 0 0;padding:8px}.db-grid{grid-template-columns:1fr}h1{font-size:26px}.main>header span{display:none}}

td,.field,input,select,textarea,.stepper button{font-size:14px}th,.field>span{font-size:12px}small{font-size:11px}.subtext,.footnote{font-size:12px}
.auth-card{max-width:460px;margin:60px auto;padding:28px;background:white;border:1px solid #dce5ef;border-radius:14px}.auth-card>img{width:220px;max-width:100%;margin-bottom:20px}.auth-card form{display:grid;gap:15px}.auth-card nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.account-bar{display:flex;justify-content:flex-end;align-items:center;gap:16px;padding:8px 24px;background:#edf4fb;font-size:12px}.master-editor{position:fixed;inset:4vh 5vw;background:white;z-index:100;overflow:auto;padding:26px;border:2px solid #1976d2;border-radius:12px;box-shadow:0 0 0 100vmax #15253b80}.master-editor .grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.admin-filters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.admin-filters input,.admin-filters select{max-width:230px}.admin-page td button{white-space:nowrap}.master-diff{white-space:pre-wrap;overflow-wrap:anywhere}
.address-search{margin:20px 0 12px}.address-search>label{display:block;font-weight:600;margin-bottom:8px}.address-search gmp-place-autocomplete{width:100%;color-scheme:light}.project-map{height:300px;border:1px solid #dce5ef;border-radius:10px;background:#eaf0f5}.project-map .gm-style button{padding:0}@media(max-width:900px){.account-bar{flex-wrap:wrap}}

/* Localizzazione e lotto — 0.9 */
.project-lot{margin-top:24px;padding-top:18px;border-top:1px solid #dce5ee}.project-lot .heading{margin-bottom:12px}.project-lot h3{margin:4px 0}.project-lot p{font-size:13px}.project-lot .footnote{font-size:12px}.lot-actions,.project-actions,.lot-candidate{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.lot-actions{margin:12px 0}.lot-actions button[aria-pressed=true]{background:#e4f1ff;border-color:#147ad1;color:#12558e}.cadastral-map{height:430px;min-height:300px;background:#edf2f6;border-radius:10px}.lot-area{display:flex;justify-content:space-between;gap:16px;background:#eff6fc;padding:16px;border-radius:8px;font-size:14px}.lot-area strong{color:#126abe;white-space:nowrap}.lot-candidate{background:#edf7f1;padding:12px;border-radius:8px;margin-bottom:14px}.lot-candidate span{flex:1}.lot-manual{padding:14px;border:1px solid #dce5ee;border-radius:8px}.project-actions{justify-content:flex-end}.icon-button{display:inline-flex;align-items:center;justify-content:center}.project-lot .notice button{margin-left:12px}@media(max-width:650px){.cadastral-map{height:350px}.lot-area{flex-direction:column}.project-lot .heading{flex-wrap:wrap;gap:10px}}

/* 0.10: compact controls, explicit focus and responsive wrapping. */
.project-actions .plain-icon{border:0;background:transparent;box-shadow:none;color:#778394;padding:8px;display:inline-flex;align-items:center;justify-content:center}
.project-actions .plain-icon:hover{color:#0876d7;background:#f0f5fa}.project-actions .trash-action:hover{color:#d62828;background:transparent}
.plain-icon:focus-visible,.lot-info summary:focus-visible{outline:2px solid #0876d7;outline-offset:3px}
.dashboard-filters{display:flex;gap:10px;flex-wrap:wrap}.progress-badge{display:inline-block;font-size:12px;font-weight:700;padding:5px 9px;border-radius:5px;background:#eaf2fc;color:#1767aa;white-space:nowrap}.progress-badge.complete{background:#e7f5ee;color:#267c50}
.lot-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.lot-toolbar .lot-actions{margin:0;flex:1}.lot-actions button,.lot-explore,.lot-below>button{display:inline-flex;align-items:center;gap:6px}.lot-explore{white-space:nowrap}.lot-below{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:12px 0}.map-attribution{font-size:11px;color:#65768b;margin:4px 0}
.lot-info{position:relative;margin-left:auto}.lot-info summary{cursor:pointer;list-style:none;color:#65768b;padding:5px}.lot-info summary::-webkit-details-marker{display:none}.lot-info>div{position:absolute;right:0;top:36px;width:min(380px,75vw);z-index:20;padding:18px;background:white;border:1px solid #d9e3ef;border-radius:10px;box-shadow:0 8px 28px #25395722;font-size:13px}.lot-info p{font-size:13px;line-height:1.5}
@media(max-width:850px){.lot-toolbar{flex-wrap:wrap}.lot-toolbar .lot-actions{flex-basis:100%}.lot-explore{margin-left:auto}.dashboard-filters{width:100%}.dashboard-filters input{min-width:0;flex:1}}
