@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#142f55;--ink:#172b45;--muted:#697c91;--blue:#2359a0;--blue2:#3678c8;--yellow:#efca53;--border:#e1e9f2;--surface:#f4f7fb;--white:#fff;--shadow:0 18px 48px rgba(30,54,92,.075);font-family:'DM Sans',system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--ink);background:var(--surface)}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}a{color:inherit}h1,h2,p{margin-top:0}h1,h2,strong{font-family:Manrope,'DM Sans',sans-serif}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #f1bc37;outline-offset:2px}[hidden]{display:none!important}
.muted{color:var(--muted)}.eyebrow{letter-spacing:.16em;font-size:10px;font-weight:800;text-transform:uppercase;color:var(--blue)}.eyebrow.accent{color:var(--yellow)}.brand-mark{height:39px;width:39px;border-radius:11px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;font:800 25px Manrope,sans-serif;letter-spacing:-3px;padding-right:3px;box-shadow:0 5px 13px rgba(13,38,84,.18)}.brand-mark span{color:var(--yellow)}.brand-mark.large{height:54px;width:54px;border-radius:15px;font-size:34px;margin-bottom:32px}.topbar{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:5}.topbar-inner{max-width:1460px;padding:15px 32px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:18px}.brand{display:flex;align-items:center;gap:12px}.brand strong{display:block;font-weight:800;letter-spacing:.11em;font-size:13px}.brand small{display:block;color:#75869a;font-size:11px;margin-top:2px}.top-actions{display:flex;gap:9px;align-items:center}.secured{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);padding:0 13px}.secured-dot{height:7px;width:7px;border-radius:50%;background:#26a782;box-shadow:0 0 0 3px #dff7eb}.ghost{border:1px solid var(--border);color:#425875;background:white;border-radius:9px;padding:9px 14px;font-size:12px;font-weight:700}.ghost:hover,.button-outline:hover{border-color:#86a8cd;color:var(--blue);background:#f6faff}.page-container{max-width:1460px;padding:29px 32px 28px;margin:auto}.hero{border-radius:20px;background:linear-gradient(125deg,#17365f 0%,#224b80 64%,#2b6197 100%);color:#fff;padding:43px 49px 42px;position:relative;display:flex;justify-content:space-between;overflow:hidden;min-height:255px}.hero-content{position:relative;z-index:2;max-width:720px}.hero h1{font-size:clamp(30px,3.5vw,48px);line-height:1.17;letter-spacing:-.055em;margin:13px 0 16px;font-weight:800}.hero h1 em{font-style:normal;color:#f0cc59}.hero p{color:#cbd9ea;font-size:14px;line-height:1.7;max-width:490px;margin:0}.hero-decoration{height:210px;width:230px;position:absolute;right:5%;top:25px;opacity:.9}.door-shape{border:7px solid #81a4cf;border-bottom:0;border-radius:45px 45px 0 0;height:245px;width:155px;position:absolute;right:28px;top:8px;background:linear-gradient(128deg,rgba(255,255,255,.09),rgba(255,255,255,.01))}.door-shape:before{content:'';position:absolute;inset:15px 15px 0;border:1px solid #6f96c2;border-bottom:0;border-radius:26px 26px 0 0}.door-number{position:absolute;top:65px;left:0;right:0;text-align:center;color:#c6daf0;font:800 27px Manrope,sans-serif;letter-spacing:.15em}.door-handle{position:absolute;right:11px;top:137px;width:11px;height:11px;border-radius:50%;background:var(--yellow);box-shadow:0 0 0 5px rgba(255,255,255,.09)}.dot-grid{position:absolute;right:-60px;top:30px;width:100px;height:160px;background-image:radial-gradient(#79a1cf 1px,transparent 1px);background-size:18px 18px;opacity:.4}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0 25px}.stat-card{background:#fff;border:1px solid var(--border);border-radius:15px;padding:20px 22px;min-height:134px;box-shadow:0 3px 20px rgba(25,55,89,.025)}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#6b7e93;font-size:12px;font-weight:700}.stat-icon{height:29px;width:29px;border-radius:9px;background:#eaf2fb;color:var(--blue);display:grid;place-items:center;font-size:17px}.stat-card strong{display:block;color:var(--navy);font-size:31px;line-height:1.35;letter-spacing:-.06em;margin-top:8px}.stat-card small{color:#8391a4;font-size:11px}.stat-card.attention .stat-icon{background:#fff3db;color:#a87518}.stat-card.attention strong{color:#aa7218}
.data-panel{background:#fff;border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow);overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:28px 28px 23px;gap:20px}.panel-eyebrow{margin-bottom:8px}.panel-heading h2{font-size:24px;letter-spacing:-.045em;margin:0 0 6px}.panel-heading p{font-size:13px;color:var(--muted);margin:0}.panel-buttons{display:flex;gap:8px}.button-outline{border:1px solid #ccdbeb;border-radius:9px;background:#fff;color:#285b9a;padding:10px 16px;font-size:12px;font-weight:800;white-space:nowrap}.filters{margin:0 28px 22px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px 13px;background:#f7f9fc;border:1px solid #e8eef5;padding:19px;border-radius:13px}.filters .search-wrap{grid-column:span 2}label{display:block;color:#465b73;font-size:11px;font-weight:800;margin:0 0 7px}.filters input,.filters select,.dialog input:not([type=checkbox]),.dialog select,.dialog textarea,.login-card input{height:40px;border:1px solid #dbe5f0;border-radius:8px;background:#fff;color:#173452;padding:0 12px;width:100%;font-size:12px;min-width:0}.filters input::placeholder,.dialog input::placeholder{color:#a5b3c2}.filters select{padding-right:22px}.filters select,.dialog select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' stroke='%23798a9d' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:13px;background-position:right 9px center}.search-input-wrap{position:relative}.search-input-wrap input{padding-left:35px}.search-icon{position:absolute;font-size:22px;color:#8b9fb6;left:11px;top:7px;line-height:26px}.table-toolbar{display:flex;justify-content:space-between;align-items:center;padding:0 29px 16px;font-size:12px}.result-count{font-weight:800;color:#1f4e87}.reset-button{border:0;background:transparent;color:var(--blue);font-size:12px;font-weight:800;padding:6px 0}.reset-button:hover{text-decoration:underline}.table-scroll{width:100%;overflow-x:auto;border-top:1px solid var(--border)}table{border-collapse:collapse;width:100%;min-width:1020px;text-align:left;font-size:12px}thead{background:#f4f7fb}th{white-space:nowrap;color:#63788f;text-transform:uppercase;letter-spacing:.045em;font-size:10px;font-weight:800;padding:14px 15px;border-bottom:1px solid var(--border)}th:first-child,td:first-child{padding-left:29px}th:last-child,td:last-child{padding-right:29px}th button{color:inherit;background:none;border:0;font-size:inherit;letter-spacing:inherit;font-weight:inherit;text-transform:inherit;padding:0;white-space:nowrap}th button span{color:#a0b0c3;margin-left:5px;font-size:13px}td{padding:15px;border-bottom:1px solid #edf1f7;vertical-align:middle;line-height:1.5}tbody tr:hover{background:#f8fbff}tbody tr:last-child td{border-bottom:0}.room-number{font:800 14px Manrope,sans-serif;color:#183f76}.room-number.review-number{color:#936924}.structure-tag{display:inline-block;padding:5px 8px;border-radius:5px;background:#eaf2fc;color:#285d9c;font-weight:700;white-space:nowrap;font-size:11px}.structure-tag.liviana{background:#e8f7f2;color:#307565}.structure-tag.pontecorvo{background:#eeeafd;color:#6c5e9e}.bath-pill{padding:4px 7px;border-radius:5px;background:#ecf0f5;color:#64768a;font-size:10px;font-weight:800;letter-spacing:.05em}.bath-pill.vasca{background:#dff1f9;color:#257b9a}.feature-pill{display:inline-block;background:#f5e9e8;color:#b45b50;padding:3px 7px;border-radius:5px;font-size:10px;font-weight:800;margin-top:3px}.detail-text{max-width:270px;color:#536b86}.subtle{color:#a9b6c4}.review-pill{display:inline-block;white-space:nowrap;font-size:10px;font-weight:800;border-radius:5px;padding:5px 8px;background:#fff3df;color:#996a20}.ok-pill{display:inline-block;white-space:nowrap;font-size:10px;font-weight:700;color:#78899d}.edit-link{border:0;background:#edf4fc;color:#2a63a4;font-size:12px;font-weight:800;padding:7px 10px;border-radius:7px}.edit-link:hover{background:#d8eafc}.panel-footer{border-top:1px solid var(--border);background:#fbfcfe;display:flex;gap:30px;align-items:center;justify-content:space-between;padding:17px 29px}.panel-footer p{margin:0;color:#728399;font-size:11px;line-height:1.55;max-width:900px}.panel-footer strong{color:#506783}.timestamp{white-space:nowrap;font-size:10px;color:#8798aa}.empty-state{padding:45px 20px;text-align:center;border-top:1px solid var(--border);color:#677b94}.empty-state>span{font-size:42px;display:block;line-height:1}.empty-state strong{display:block;font-size:17px;margin:7px 0}.empty-state p{font-size:12px}.site-footer{display:flex;justify-content:space-between;gap:16px;padding:24px 5px 0;font-size:10px;color:#8393a6;letter-spacing:.07em}.site-footer span:first-child{font-weight:800;color:#617c9b}
.auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:26px;background:radial-gradient(ellipse at 15% 15%,#254d7f,#142e53 70%);position:relative;overflow:hidden}.auth-pattern{position:absolute;width:520px;height:520px;border:75px solid rgba(167,193,221,.06);border-radius:50%;top:-200px;right:-140px}.login-card{position:relative;z-index:1;width:min(100%,445px);background:#fff;padding:43px;border-radius:22px;box-shadow:0 24px 80px #071c3a55}.login-card h1{font-size:29px;letter-spacing:-.04em;margin:10px 0}.login-card p{font-size:13px;line-height:1.7;margin-bottom:27px}.login-card label{margin-bottom:8px}.password-group{position:relative}.password-group input{height:48px;padding-right:76px;font-size:14px}.password-group .compact{position:absolute;right:5px;top:5px;border:0;background:#edf3fa;height:38px;padding:0 11px}.primary{background:#245da6;color:white;border:1px solid #245da6;padding:11px 18px;border-radius:9px;font-size:12px;font-weight:800}.primary:hover{background:#194984}.primary.full{display:flex;align-items:center;justify-content:space-between;margin-top:15px;width:100%;height:46px;font-size:13px}.login-footer{border-top:1px solid var(--border);color:#8998a9;margin-top:33px;padding-top:22px;font-size:10px}.error-message{color:#b7434b;font-size:12px;min-height:18px;margin:10px 0 0!important}.dialog{border:1px solid var(--border);border-radius:17px;padding:0;box-shadow:0 20px 70px #102f5860;width:min(94vw,650px);max-height:min(92vh,900px);overflow-y:auto}.dialog::backdrop{background:rgba(13,30,51,.58)}.dialog form{padding:27px}.dialog-header{display:flex;justify-content:space-between;align-items:start;gap:15px}.dialog-header h2{font-size:22px;letter-spacing:-.04em;margin:6px 0}.icon-button{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--border);border-radius:8px;background:#fff;color:#738497;font-size:23px}.dialog-description{font-size:12px;line-height:1.6;margin:6px 0 23px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.full-span{grid-column:span 2}.dialog input:not([type=checkbox]),.dialog select{height:42px;font-size:13px}.dialog textarea{height:auto;padding:12px;resize:vertical;font-size:13px}.dialog label{margin-bottom:7px}.check-label{margin:20px 0 10px!important;font-size:12px!important;display:flex;gap:9px;align-items:center}.check-label input{accent-color:var(--blue);width:16px;height:16px}.dialog-actions{display:flex;justify-content:end;gap:10px;margin-top:19px}.small-dialog{max-width:430px}.small-dialog label{margin:14px 0 7px}.toast{position:fixed;right:22px;bottom:22px;background:#163f70;color:white;border-radius:9px;padding:14px 19px;font-size:13px;font-weight:700;z-index:20;box-shadow:0 9px 35px #142e5350}
@media(max-width:1100px){.filters{grid-template-columns:repeat(3,minmax(0,1fr))}.filters .search-wrap{grid-column:span 2}.hero-decoration{right:1%;opacity:.5}}@media(max-width:750px){.page-container{padding:15px 12px 25px}.topbar-inner{padding:12px}.brand strong{font-size:11px}.brand small{font-size:10px}.top-actions{gap:5px}.top-actions .secured{display:none}.top-actions .ghost{padding:8px 10px}.hero{padding:30px 25px;min-height:230px;border-radius:13px}.hero h1{font-size:32px}.hero p{font-size:12px;max-width:300px}.hero-decoration{right:-80px;opacity:.2}.stats-grid{grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}.stat-card{padding:16px;min-height:112px}.stat-card strong{font-size:27px}.stat-top{font-size:11px}.panel-heading{padding:21px 18px;align-items:start;flex-direction:column}.panel-heading h2{font-size:22px}.filters{margin:0 13px 18px;grid-template-columns:1fr 1fr;padding:13px;gap:12px 8px}.filters .search-wrap{grid-column:span 2}.filters label{font-size:10px}.table-toolbar{padding:0 17px 12px}.panel-footer{padding:17px;display:block}.timestamp{margin-top:10px}.site-footer{flex-direction:column;gap:5px}.login-card{padding:30px 25px}.form-grid{grid-template-columns:1fr}.full-span{grid-column:span 1}.dialog form{padding:20px}}@media(max-width:400px){.stats-grid{grid-template-columns:1fr 1fr}.stat-card{padding:12px}.filters{grid-template-columns:1fr}.filters .search-wrap{grid-column:span 1}.brand-mark{width:33px;height:33px}.top-actions .ghost{font-size:11px;padding:7px 9px}}

/* Leggibilità elevata: le dimensioni sono intenzionalmente maggiori rispetto
   al normale, anche quando si seleziona il tema chiaro. */
body { font-size:18px; line-height:1.55; }
.eyebrow { font-size:14px; letter-spacing:.1em; }
.brand strong { font-size:18px; }
.brand small { font-size:15px; }
.brand-mark { width:48px; height:48px; font-size:28px; }
.topbar-inner { max-width:1760px; padding:16px 26px; flex-wrap:wrap; }
.top-actions { flex-wrap:wrap; }
.top-actions .ghost,.ghost,.button-outline,.reset-button,.edit-link,.primary { font-size:17px; padding:12px 17px; min-height:48px; font-weight:800; }
.top-actions .secured { font-size:15px; }
.page-container { max-width:1760px; }
.hero h1 { font-size:clamp(37px,3.7vw,54px); }
.hero p { font-size:19px; max-width:680px; line-height:1.6; }
.stat-card { min-height:152px; }
.stat-top { font-size:17px; color:#526b86; }
.stat-card strong { font-size:39px; }
.stat-card small { font-size:16px; }
.panel-heading h2 { font-size:32px; }
.panel-heading p { font-size:18px; }
.filters { grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; padding:22px; }
.filters .search-wrap { grid-column:span 2; }
.filters label,.dialog label,.login-card label { font-size:17px; margin-bottom:9px; }
.filters input,.filters select,.dialog input:not([type=checkbox]),.dialog select,.dialog textarea,.login-card input { min-height:54px; height:auto; font-size:18px; padding:12px 15px; border-width:2px; }
.filters select,.dialog select { padding-right:31px; }
.search-input-wrap input { padding-left:43px; }
.search-icon { top:16px; left:14px; font-size:26px; }
.table-toolbar { font-size:18px; gap:16px; }
.result-count { font-size:20px; }
.table-hint { padding:15px 29px; margin:0; font-size:17px; color:#3a5879; background:#edf4fb; border-top:1px solid var(--border); line-height:1.5; }
.table-hint strong { font-size:inherit; }
table { min-width:2700px; font-size:18px; line-height:1.45; }
th { font-size:16px; padding:18px; letter-spacing:0; text-transform:none; }
td { padding:20px 18px; vertical-align:middle; }
th:first-child, td:first-child { position:sticky; left:0; z-index:2; min-width:95px; padding-left:24px; box-shadow:4px 0 8px rgba(15,35,58,.08); }
th:first-child { z-index:3; }
.room-number { font-size:24px; }
.structure-tag { font-size:16px; font-weight:800; padding:8px 11px; }
.bath-pill { font-size:15px; padding:7px 11px; }
.detail-text { max-width:none; min-width:150px; font-size:17px; }
.review-pill,.ok-pill { font-size:15px; padding:8px 11px; }
.feature-status { display:inline-block; border:2px solid transparent; border-radius:8px; min-width:70px; padding:8px 13px; text-align:center; font-size:17px; font-weight:900; white-space:nowrap; }
.feature-status.yes { color:#165b36; background:#d8f7e5; border-color:#7dcfa3; }
.feature-status.no { color:#32485e; background:#e6edf4; border-color:#cad6e3; }
.feature-status.unknown { color:#708195; background:#f0f3f6; border-color:#dae2ec; }
.feature-status.warning { color:#8d360f; background:#ffe8cf; border-color:#f9b979; }
.extra-text { min-width:175px; }
.panel-footer p { font-size:16px; max-width:1150px; }
.timestamp,.site-footer { font-size:14px; }
.empty-state strong { font-size:22px; }
.empty-state p { font-size:17px; }
.auth-shell .login-card { width:min(100%,510px); }
.login-card h1 { font-size:36px; }
.login-card p { font-size:18px; }
.login-footer { font-size:15px; }
.primary.full { height:56px; font-size:19px; }
.primary.full { justify-content:center; }
.password-group input { height:55px; font-size:19px; padding-right:95px; }
.password-group .compact { height:44px; top:5px; font-size:15px; }
.dialog { width:min(95vw,790px); }
.dialog-header h2 { font-size:29px; }
.dialog-description { font-size:18px; }
.dialog textarea { height:auto; }
.dialog-actions { position:sticky; bottom:-27px; background:inherit; padding:12px 0; }
.feature-fieldset { border:2px solid var(--border); border-radius:12px; padding:20px; margin:20px 0; }
.feature-fieldset legend { font-size:21px; font-weight:800; padding:0 10px; }
.feature-edit-grid { margin:0; }
.check-label { font-size:18px!important; }
.check-label input { width:23px; height:23px; }
.error-message { font-size:16px; }
.toast { font-size:18px; }

/* Dark mode ad alto contrasto, attivo come impostazione iniziale. */
html[data-theme="dark"] { color-scheme:dark; --navy:#0b2337; --ink:#f3f7ff; --muted:#d1deeb; --blue:#9bcbff; --blue2:#76adf4; --yellow:#ffe18a; --border:#45647d; --surface:#071523; --white:#10293f; --shadow:0 16px 45px rgba(0,0,0,.24); background:#071523; }
html[data-theme="dark"] body { background:#071523; color:#f3f7ff; }
html[data-theme="dark"] .topbar { background:#0b2135; border-color:#42637e; }
html[data-theme="dark"] .brand-mark { background:#255f9b; color:#fff; box-shadow:none; }
html[data-theme="dark"] .brand small,
html[data-theme="dark"] .muted { color:#d1deeb; }
html[data-theme="dark"] .secured { color:#d7e6f6; }
html[data-theme="dark"] .ghost,
html[data-theme="dark"] .button-outline { background:#183a55; color:#fff; border:2px solid #6f98bb; }
html[data-theme="dark"] .ghost:hover,
html[data-theme="dark"] .button-outline:hover { background:#275779; color:#fff; border-color:#b7dafb; }
html[data-theme="dark"] .hero { background:linear-gradient(115deg,#0c2a46 0%,#16486f 68%,#1d567d 100%); border:2px solid #527fa5; }
html[data-theme="dark"] .hero p { color:#e0ebf6; }
html[data-theme="dark"] .hero h1 em,
html[data-theme="dark"] .eyebrow.accent { color:#ffe18a; }
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .data-panel { background:#10283e; border:2px solid #42627f; box-shadow:0 12px 32px rgba(0,0,0,.16); }
html[data-theme="dark"] .stat-top,
html[data-theme="dark"] .stat-card small { color:#d0dff0; }
html[data-theme="dark"] .stat-card strong { color:#fff; }
html[data-theme="dark"] .stat-card.attention strong { color:#ffdf89; }
html[data-theme="dark"] .stat-icon { background:#254a6c; color:#b9dcff; }
html[data-theme="dark"] .stat-card.attention .stat-icon { background:#715320; color:#fff1a9; }
html[data-theme="dark"] .panel-heading p,
html[data-theme="dark"] .panel-footer p { color:#d1deeb; }
html[data-theme="dark"] .filters { background:#102c44; border:2px solid #40607c; }
html[data-theme="dark"] label { color:#e9f3ff; }
html[data-theme="dark"] .filters input,
html[data-theme="dark"] .filters select,
html[data-theme="dark"] .dialog input:not([type=checkbox]),
html[data-theme="dark"] .dialog select,
html[data-theme="dark"] .dialog textarea,
html[data-theme="dark"] .login-card input { background:#1b3b55; color:#fff; border-color:#7594af; }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color:#c5d5e4; opacity:1; }
html[data-theme="dark"] .table-hint { background:#1b3c58; color:#f1f7ff; border-color:#507594; }
html[data-theme="dark"] .table-scroll { border-color:#4d6d87; }
html[data-theme="dark"] thead { background:#204766; }
html[data-theme="dark"] th { border-color:#6687a4; color:#f3f8ff; }
html[data-theme="dark"] th button span { color:#ffde80; }
html[data-theme="dark"] tbody tr { background:#112c42; }
html[data-theme="dark"] tbody tr:nth-child(even) { background:#16364f; }
html[data-theme="dark"] tbody tr:hover { background:#235274; }
html[data-theme="dark"] td { color:#f1f7ff; border-color:#365874; }
html[data-theme="dark"] tbody td:first-child { background:#173d5a; }
html[data-theme="dark"] tbody tr:nth-child(even) td:first-child { background:#204966; }
html[data-theme="dark"] tbody tr:hover td:first-child { background:#2a5e80; }
html[data-theme="dark"] th:first-child { background:#204766; }
html[data-theme="dark"] .room-number { color:#fff0b0; }
html[data-theme="dark"] .room-number.review-number { color:#ffcf8b; }
html[data-theme="dark"] .structure-tag { background:#245481; color:#fff; }
html[data-theme="dark"] .structure-tag.liviana { background:#185744; color:#e2ffef; }
html[data-theme="dark"] .structure-tag.pontecorvo { background:#494276; color:#f5efff; }
html[data-theme="dark"] .bath-pill { background:#345069; color:#fff; }
html[data-theme="dark"] .bath-pill.vasca { background:#1a6270; color:#edffff; }
html[data-theme="dark"] .detail-text { color:#ebf3fe; }
html[data-theme="dark"] .subtle { color:#b8c8d9; }
html[data-theme="dark"] .feature-status.yes { color:#dbffe9; background:#18583b; border-color:#54b881; }
html[data-theme="dark"] .feature-status.no { color:#fff; background:#385168; border-color:#7893ac; }
html[data-theme="dark"] .feature-status.unknown { color:#d3e1ef; background:#263e54; border-color:#56718a; }
html[data-theme="dark"] .feature-status.warning { color:#fff4d9; background:#814323; border-color:#f4ab66; }
html[data-theme="dark"] .review-pill { color:#fff1d0; background:#664d24; border:1px solid #d7a557; }
html[data-theme="dark"] .ok-pill { color:#d5e2f0; }
html[data-theme="dark"] .edit-link { color:#fff; background:#2b6496; border:2px solid #80b6e3; }
html[data-theme="dark"] .edit-link:hover { color:#fff; background:#397eaf; }
html[data-theme="dark"] .panel-footer { background:#0d2337; border-color:#4a6882; }
html[data-theme="dark"] .panel-footer strong { color:#fff; }
html[data-theme="dark"] .timestamp,
html[data-theme="dark"] .site-footer { color:#b8cee0; }
html[data-theme="dark"] .site-footer span:first-child { color:#dceaff; }
html[data-theme="dark"] .reset-button { color:#a7d4ff; }
html[data-theme="dark"] .empty-state { color:#e5f0fa; border-color:#456781; }
html[data-theme="dark"] .dialog { background:#102b41; border:2px solid #6b91b2; color:#f2f8ff; }
html[data-theme="dark"] .dialog-description { color:#d8e6f5; }
html[data-theme="dark"] .icon-button { background:#1d4462; color:white; border-color:#7193b2; }
html[data-theme="dark"] .feature-fieldset { border-color:#587893; }
html[data-theme="dark"] .dialog-actions { background:#102b41; }
html[data-theme="dark"] .auth-shell { background:radial-gradient(ellipse at 20% 15%,#123854,#061421 75%); }
html[data-theme="dark"] .login-card { background:#112c42; color:#fff; border:2px solid #6d8dad; }
html[data-theme="dark"] .login-card .muted { color:#d0dfef; }
html[data-theme="dark"] .login-footer { color:#c3d6e8; border-color:#50718f; }
html[data-theme="dark"] .password-group .compact { color:#fff; background:#2c5475; }
html[data-theme="dark"] .primary { background:#ffdf88; color:#182b3c; border:2px solid #ffdf88; }
html[data-theme="dark"] .primary:hover { background:#ffe9ad; color:#0a2033; }
html[data-theme="dark"] .error-message { color:#ffafae; }
html[data-theme="dark"] .toast { background:#295f90; color:#fff; border:2px solid #a8d7fb; }
html[data-theme="dark"] .eyebrow { color:#b9d7ff; }

/* Le opzioni Testo XL e Tema chiaro restano completamente navigabili da tastiera. */
html.large-text .filters label,
html.large-text .dialog label { font-size:21px; }
html.large-text .filters input,
html.large-text .filters select,
html.large-text .dialog input:not([type=checkbox]),
html.large-text .dialog select,
html.large-text .dialog textarea { font-size:21px; min-height:62px; }
html.large-text table { font-size:21px; }
html.large-text th { font-size:19px; }
html.large-text td { padding-top:25px; padding-bottom:25px; }
html.large-text .detail-text,
html.large-text .feature-status,
html.large-text .structure-tag,
html.large-text .edit-link { font-size:20px; }
html.large-text .room-number { font-size:29px; }
html.large-text .panel-heading p,
html.large-text .hero p,
html.large-text .table-hint { font-size:21px; }
html.large-text .panel-footer p { font-size:19px; }

@media(max-width:1100px) {
  .filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .filters .search-wrap { grid-column:span 2; }
}
@media(max-width:750px) {
  .topbar-inner { padding:13px; gap:12px; }
  .top-actions { width:100%; justify-content:space-between; }
  .top-actions .ghost { font-size:15px; padding:10px 11px; min-height:46px; }
  .page-container { padding:15px 12px 24px; }
  .hero { padding:27px 22px; }
  .hero h1 { font-size:34px; }
  .hero p { font-size:18px; max-width:350px; }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .stat-top { font-size:15px; }
  .stat-card strong { font-size:32px; }
  .stat-card small { font-size:14px; }
  .panel-heading { gap:15px; }
  .panel-heading h2 { font-size:27px; }
  .panel-heading p { font-size:17px; }
  .filters { grid-template-columns:1fr 1fr; padding:15px; gap:15px; }
  .filters .search-wrap { grid-column:span 2; }
  .filters label { font-size:16px; }
  .filters input,.filters select { font-size:17px; min-height:52px; }
  .table-toolbar { flex-wrap:wrap; padding:0 17px 12px; }
  .table-hint { font-size:16px; padding:13px 18px; }
  .login-card { padding:28px; }
  .form-grid { grid-template-columns:1fr; }
  .full-span { grid-column:span 1; }
  .feature-fieldset { padding:14px; }
}
@media(max-width:450px) {
  .top-actions { gap:7px; }
  .top-actions .ghost { flex:1 1 calc(50% - 7px); font-size:15px; }
  .filters { grid-template-columns:1fr; }
  .filters .search-wrap { grid-column:span 1; }
  .stat-card { padding:14px; }
}

/* Archivio compatto: il contenitore ha un proprio scorrimento verticale,
   necessario perché sticky funzioni assieme allo scorrimento orizzontale. */
.page-container { max-width:1900px; padding-top:18px; }
.hero { min-height:0; padding:25px 32px; }
.hero h1 { font-size:clamp(30px,3vw,42px); margin:7px 0 10px; }
.hero p { font-size:17px; line-height:1.45; }
.hero-decoration { transform:scale(.72); transform-origin:top right; }
.stats-grid { gap:10px; margin:12px 0 15px; }
.stat-card { min-height:97px; padding:12px 18px; }
.stat-card strong { font-size:29px; margin-top:3px; line-height:1.2; }
.stat-top { font-size:15px; }
.stat-card small { font-size:13px; }
.panel-heading { padding:18px 20px 12px; }
.panel-heading h2 { font-size:25px; }
.panel-heading p { font-size:16px; }
.filters-disclosure > summary { display:none; }
.filters { margin:0 19px 13px; gap:9px 11px; padding:14px; }
.filters label { font-size:14px; margin-bottom:5px; }
.filters input,.filters select { min-height:43px; font-size:15px; padding:7px 11px; }
.search-icon { top:8px; }
.table-toolbar { padding:0 19px 9px; font-size:15px; }
.result-count { font-size:17px; }
.table-hint { padding:8px 19px; font-size:14px; }
.table-scroll {
  width:100%;
  max-height:70vh;
  max-height:70dvh;
  overflow:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-color:#6e8092 #121212;
  scrollbar-width:thin;
}
.table-scroll:focus-visible { outline:3px solid #ffcf66; outline-offset:-3px; }
table { width:max-content; min-width:100%; border-collapse:separate; border-spacing:0; font-size:15.5px; line-height:1.3; }
thead th { position:sticky; top:0; z-index:4; background:#e9f1fa; }
th { font-size:14px; padding:11px 10px; border-bottom:2px solid var(--border); }
th button { min-height:24px; }
td { padding:8px 10px; border-bottom:1px solid var(--border); }
th:first-child,td:first-child { min-width:72px; padding-left:13px; padding-right:12px; }
th:first-child { position:sticky; top:0; left:0; z-index:6; background:#e9f1fa; }
tbody td:first-child { position:sticky; left:0; z-index:2; background:#fff; }
.room-number { font-size:20px; }
.structure-tag { font-size:13px; padding:4px 7px; }
.bath-pill { font-size:13px; padding:4px 7px; }
.feature-status { min-width:44px; font-size:14px; padding:4px 7px; border-width:1px; border-radius:6px; }
.detail-text { min-width:95px; max-width:210px; font-size:15px; overflow-wrap:anywhere; }
.extra-text { min-width:135px; max-width:230px; }
.review-pill,.ok-pill { font-size:13px; padding:5px 7px; }
.edit-link { font-size:14px; min-height:38px; padding:6px 9px; }
.panel-footer { padding:12px 19px; }
.panel-footer p { font-size:14px; }

/* Nero reale, superfici antracite, testo chiaro e accenti riconoscibili. */
html[data-theme="dark"] { --navy:#080808; --border:#424242; --surface:#000; --white:#0c0c0c; --ink:#fafafa; --muted:#d1d1d1; --blue:#b0d7ff; background:#000; }
html[data-theme="dark"] body { background:#000; color:#fafafa; }
html[data-theme="dark"] .topbar { background:#000; border-color:#444; }
html[data-theme="dark"] .hero { background:#0b0b0b; border-color:#454545; }
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .data-panel { background:#080808; border-color:#444; box-shadow:none; }
html[data-theme="dark"] .filters { background:#0c0c0c; border-color:#444; }
html[data-theme="dark"] .filters input,
html[data-theme="dark"] .filters select { background:#161616; border-color:#686868; }
html[data-theme="dark"] .table-hint { background:#121212; border-color:#454545; }
html[data-theme="dark"] .table-scroll { border-color:#535353; }
html[data-theme="dark"] thead th,
html[data-theme="dark"] thead th:first-child { background:#242424; color:#fff; border-color:#777; box-shadow:inset 0 -1px #777; }
html[data-theme="dark"] tbody tr,
html[data-theme="dark"] tbody tr:nth-child(even) { background:#070707; }
html[data-theme="dark"] tbody tr:nth-child(even) { background:#121212; }
html[data-theme="dark"] tbody tr:hover { background:#242424; }
html[data-theme="dark"] td { border-color:#383838; }
html[data-theme="dark"] tbody td:first-child { background:#070707; }
html[data-theme="dark"] tbody tr:nth-child(even) td:first-child { background:#121212; }
html[data-theme="dark"] tbody tr:hover td:first-child { background:#242424; }
html[data-theme="dark"] .panel-footer { background:#0b0b0b; border-color:#454545; }
html[data-theme="dark"] .auth-shell { background:#000; }
html[data-theme="dark"] .login-card { background:#0e0e0e; border-color:#555; }
html[data-theme="dark"] .ghost,
html[data-theme="dark"] .button-outline { background:#171717; border-color:#777; }
html[data-theme="dark"] .ghost:hover,
html[data-theme="dark"] .button-outline:hover { background:#303030; }
html[data-theme="dark"] .feature-status.unknown { background:#262626; border-color:#646464; color:#dedede; }
html[data-theme="dark"] .feature-status.no { background:#353535; border-color:#777; }
html[data-theme="dark"] .dialog { background:#101010; border-color:#666; }
html[data-theme="dark"] .dialog-actions { background:#101010; }

@media(max-width:750px) {
  .topbar-inner { padding:9px 11px; gap:7px; }
  .brand-mark { width:34px; height:34px; font-size:22px; }
  .brand strong { font-size:15px; }
  .brand small { font-size:12px; }
  .top-actions { width:100%; gap:6px; }
  .top-actions .ghost { flex:1 1 auto; font-size:13px; min-height:38px; padding:6px 8px; }
  .page-container { padding:10px 7px 20px; }
  .hero { padding:16px; border-radius:10px; }
  .hero h1 { font-size:27px; }
  .hero p { font-size:15px; }
  .hero-decoration { display:none; }
  .stats-grid { gap:6px; margin:8px 0; }
  .stat-card { min-height:82px; padding:9px; border-radius:9px; }
  .stat-top { font-size:12px; }
  .stat-card strong { font-size:25px; }
  .stat-card small { font-size:12px; }
  .panel-heading { flex-direction:column; gap:8px; padding:12px; }
  .panel-heading h2 { font-size:22px; }
  .panel-heading p { font-size:14px; }
  .panel-buttons { flex-wrap:wrap; }
  .panel-buttons .button-outline { font-size:14px; min-height:39px; padding:7px 11px; }
  .filters-disclosure { margin:0 10px 9px; border:1px solid #555; border-radius:9px; overflow:hidden; }
  .filters-disclosure > summary { display:flex; justify-content:space-between; align-items:center; gap:12px; cursor:pointer; padding:11px 13px; font-size:16px; font-weight:800; background:#171717; color:#fff; list-style:none; }
  .filters-disclosure > summary::-webkit-details-marker { display:none; }
  .filters-disclosure > summary:before { content:'▸'; color:#ffda82; margin-right:3px; }
  .filters-disclosure[open] > summary:before { content:'▾'; }
  .filters-toggle-label { font-size:12px; color:#ddd; font-weight:600; }
  .filters { margin:0; border:0; border-radius:0; padding:10px; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .filters .search-wrap { grid-column:span 2; }
  .filters label { font-size:13px; }
  .filters input,.filters select { font-size:15px; min-height:43px; }
  .table-toolbar { padding:3px 11px 8px; font-size:14px; }
  .result-count { font-size:16px; }
  .table-hint { font-size:13px; padding:9px 11px; }
  .table-scroll { max-height:66vh; max-height:66dvh; }
  table { font-size:14px; }
  th { font-size:13px; padding:10px 8px; }
  td { padding:8px; }
  th:first-child,td:first-child { min-width:61px; padding-left:10px; padding-right:9px; }
  .room-number { font-size:19px; }
  .detail-text { font-size:14px; min-width:90px; }
  .feature-status { font-size:13px; }
  .panel-footer { padding:11px; }
  .panel-footer p { font-size:13px; }
}
@media(max-width:420px) {
  .top-actions .ghost { flex:1 1 calc(50% - 6px); }
  .filters { grid-template-columns:1fr; }
  .filters .search-wrap { grid-column:span 1; }
  .panel-heading { padding:10px; }
}

/* Filtri direttamente nell'intestazione, senza pannello di ricerca separato. */
.table-toolbar-compact { padding:13px 17px 11px; gap:12px; flex-wrap:wrap; }
.table-toolbar-actions { display:flex; justify-content:flex-end; align-items:center; gap:8px; flex-wrap:wrap; }
.table-toolbar-compact .button-outline { font-size:14px; min-height:39px; padding:7px 12px; }
.table-toolbar-compact .reset-button { font-size:14px; min-height:39px; padding:7px 10px; }
th .column-filter { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:5px; min-height:48px; padding:1px 0; line-height:1.15; }
th .column-filter .filter-state {
  display:inline-block; margin:0; padding:4px 8px; min-width:55px;
  border:1px solid #7c9db9; border-radius:6px; background:#e2eaf2;
  color:#26496d; font-size:12px; font-weight:900; text-align:center;
  letter-spacing:.02em; transition:background-color .1s ease;
}
th .column-filter[data-state="si"] .filter-state { background:#c8f2d8; border-color:#56ac79; color:#145332; }
th .column-filter[data-state="no"] .filter-state { background:#ffddcf; border-color:#df906a; color:#7c3419; }
th .column-filter:hover .filter-state { filter:brightness(.92); }
html[data-theme="dark"] th .column-filter .filter-state { background:#343d46; border-color:#8898a8; color:#fff; }
html[data-theme="dark"] th .column-filter[data-state="si"] .filter-state { background:#19663f; border-color:#69d89a; color:#fff; }
html[data-theme="dark"] th .column-filter[data-state="no"] .filter-state { background:#793b30; border-color:#f0a48d; color:#fff; }
html[data-theme="dark"] thead th:has(> .column-filter[data-state="si"]) { background:#123a28; }
html[data-theme="dark"] thead th:has(> .column-filter[data-state="no"]) { background:#482821; }
@media(max-width:750px) {
  .table-toolbar-compact { padding:9px 10px; gap:6px; }
  .table-toolbar-actions { width:100%; justify-content:flex-start; gap:7px; }
  .table-toolbar-compact .button-outline,
  .table-toolbar-compact .reset-button { min-height:36px; font-size:13px; padding:6px 9px; }
  th .column-filter { min-height:45px; gap:4px; }
  th .column-filter .filter-state { font-size:12px; padding:4px 6px; min-width:52px; }
}

/* Riscaldamento: colonna leggibile e filtro autonomo/centralizzato nell'header. */
.heating-pill { display:inline-block; border-radius:6px; border:1px solid transparent; padding:5px 9px; font-size:14px; font-weight:900; white-space:nowrap; }
.heating-pill.autonomo { background:#d6f6e5; border-color:#82cbaa; color:#145d3d; }
.heating-pill.centralizzato { background:#e7effa; border-color:#9bb9db; color:#244f83; }
th .column-filter[data-state="AUTONOMO"] .filter-state { background:#c8f2d8; border-color:#56ac79; color:#145332; }
th .column-filter[data-state="CENTRALIZZATO"] .filter-state { background:#dbeafd; border-color:#7eaddd; color:#204d80; }
html[data-theme="dark"] .heating-pill.autonomo { background:#185438; border-color:#62b689; color:#f2fff7; }
html[data-theme="dark"] .heating-pill.centralizzato { background:#224a78; border-color:#8db7ea; color:#f4f9ff; }
html[data-theme="dark"] th .column-filter[data-state="AUTONOMO"] .filter-state { background:#19663f; border-color:#69d89a; color:#fff; }
html[data-theme="dark"] th .column-filter[data-state="CENTRALIZZATO"] .filter-state { background:#25588b; border-color:#9ac7fa; color:#fff; }
html[data-theme="dark"] thead th:has(> .column-filter[data-state="AUTONOMO"]) { background:#123a28; }
html[data-theme="dark"] thead th:has(> .column-filter[data-state="CENTRALIZZATO"]) { background:#1a3551; }
@media(max-width:750px) { .heating-pill { font-size:13px; padding:4px 7px; } }

/* Sigle compatte in tabella: A = autonomo, C = centralizzato. */
.heating-pill { min-width:29px; text-align:center; font-size:15px; padding:3px 6px; }
th .column-filter[data-filter="heating"] .filter-state { min-width:29px; padding:3px 6px; }
@media(max-width:750px) { .heating-pill { min-width:27px; font-size:14px; padding:3px 5px; } }

/* Strutture riconoscibili anche su schermi piccoli, con zone Hotel a due righe. */
.structure-tag { white-space:pre-line; line-height:1.25; text-align:center; }

/* Se nessuna camera corrisponde ai filtri, conservare intestazioni e una riga esplicativa. */
.table-empty-row { padding:20px 15px; font-size:16px; font-weight:750; color:var(--ink); white-space:normal; }
th .column-filter[data-filter="heating"] .filter-state { min-width:0; padding:4px 8px; }

/* Azione principale sempre disponibile, grande e accessibile anche da smartphone. */
.global-reset-bar { display:flex; justify-content:center; width:100%; margin:0 0 15px; }
.global-reset-button {
  width:min(100%,760px); min-height:66px; padding:15px 25px;
  border:3px solid #b58322; border-radius:14px; background:#ffdc7a; color:#101010;
  font:900 21px Manrope,system-ui,sans-serif; letter-spacing:.025em;
  box-shadow:0 3px 0 #89611b; cursor:pointer; text-align:center;
}
.global-reset-button:hover { background:#ffe9a6; }
.global-reset-button:active { transform:translateY(2px); box-shadow:0 1px 0 #89611b; }
.global-reset-button:focus-visible { outline:4px solid #58b8ff; outline-offset:4px; }
@media(max-width:750px) { .global-reset-bar { margin-bottom:11px; } .global-reset-button { min-height:60px; padding:13px 12px; font-size:17px; } }
