.mh2-app{--mh2-green:#244b40;--mh2-deep:#1d3932;--mh2-sage:#487b69;--mh2-cream:#f7f8f5;--mh2-line:#e1e7e1;--mh2-ink:#263b34;--mh2-muted:#63736e}
.mh2-app,.mh2-app *{box-sizing:border-box}.mh2-app{background:var(--mh2-cream);color:var(--mh2-ink);font:15px/1.55 system-ui,-apple-system,'Segoe UI',sans-serif;margin:0}.mh2-app a{text-decoration:none}.mh2-wrap{max-width:70%;margin:auto;padding:0 24px}.mh2-top{background:white;border-bottom:1px solid var(--mh2-line);position:sticky;top:0;z-index:20}.mh2-top-inner{min-height:76px;display:flex;justify-content:space-between;align-items:center;gap:20px}.mh2-logo{display:inline-flex;align-items:center;gap:7px;color:var(--mh2-deep);font-size:25px;font-weight:650;letter-spacing:-1.3px}.mh2-logo strong{font-weight:800}.mh2-dot{color:#b07955}.mh2-icon{width:39px;height:39px;background:#e1efe6;border-radius:12px;display:grid;place-items:center;font-size:19px}.mh2-top nav{display:flex;flex-wrap:wrap;gap:13px}.mh2-top-link{color:#456258;padding:8px 12px;border-radius:10px;font-weight:600}.mh2-top-link:hover,.mh2-active{color:var(--mh2-deep);background:#edf4ee}.mh2-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin:38px 0 22px}.mh2-heading h1{font-size:clamp(29px,4vw,39px);letter-spacing:-1.2px;margin:8px 0 4px;font-weight:750}.mh2-heading p{color:var(--mh2-muted);margin:0}.mh2-overline{font-size:11px;font-weight:750;letter-spacing:.12em;color:var(--mh2-sage)}.mh2-stage{font-size:12px;color:var(--mh2-sage);background:#e3f0e9;padding:8px 12px;border-radius:30px;white-space:nowrap}.mh2-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:26px}.mh2-summary-card{background:#fff;border:1px solid var(--mh2-line);border-radius:16px;display:flex;flex-direction:column;padding:17px 21px}.mh2-summary-card>span{font-weight:700;font-size:13px;color:#60756a}.mh2-summary-card strong{font-size:31px;line-height:1.35;color:var(--mh2-deep);letter-spacing:-.5px}.mh2-summary-card small{color:#85938c;font-size:12px}.mh2-main-grid{display:grid;grid-template-columns:305px minmax(0,1fr);gap:22px;margin-bottom:55px;align-items:start}.mh2-sidebar,.mh2-content{display:grid;gap:20px}.mh2-card{background:white;border:1px solid var(--mh2-line);border-radius:18px;padding:23px;box-shadow:0 5px 18px rgba(21,62,48,.035);min-width:0}.mh2-card-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.mh2-card h2{font-size:20px;color:#24483e;font-weight:730;margin:0}.mh2-card-title h2 i{font-size:18px;color:#56836f;margin-right:7px}.mh2-family-line{padding:10px 0;border-bottom:1px solid #eef1ec;display:flex;flex-direction:column;gap:2px}.mh2-family-line strong{font-weight:650}.mh2-family-line small{font-size:12px;color:var(--mh2-muted)}.mh2-muted{color:var(--mh2-muted);font-size:13px}.mh2-house-list{display:grid;gap:6px}.mh2-house-link{display:flex;gap:9px;align-items:center;color:#45645a;padding:12px;border-radius:12px;border:1px solid transparent}.mh2-house-link:hover,.mh2-house-link.active{background:#eaf4ed;border-color:#d3e4d8;color:var(--mh2-deep)}.mh2-house-link>i:first-child{font-size:19px}.mh2-house-link>i:last-child{margin-left:auto;font-size:11px}.mh2-house-link span{display:grid;line-height:1.3;gap:5px}.mh2-house-link strong{font-size:13px}.mh2-house-link small{font-size:11px;color:var(--mh2-muted)}.mh2-house-hero{background:linear-gradient(115deg,#eaf2eb,#fff 70%)}.mh2-house-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-top:8px}.mh2-house-head h2{font-size:26px}.mh2-house-head p{color:var(--mh2-muted);margin:5px 0 0}.mh2-access{background:#e1eee4;color:#2c6b4d;border-radius:30px;padding:5px 10px;font-size:12px;font-weight:650;white-space:nowrap}.mh2-count{color:#7a9788;font-size:16px;margin-left:6px}.mh2-empty-inline{padding:17px;background:#f7f9f6;border-radius:12px;color:var(--mh2-muted);font-size:13px}.mh2-item-list{display:grid;gap:0}.mh2-item{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:15px 1px;border-bottom:1px solid #e9eee9;flex-wrap:wrap}.mh2-item:last-child{border-bottom:0}.mh2-item strong{font-size:14px}.mh2-item small{display:block;color:#7c8a82;font-size:12px}.mh2-element{justify-content:flex-start}.mh2-element-icon{background:#ecf3ee;color:#477260;border-radius:12px;width:39px;height:39px;display:grid;place-items:center;font-size:19px}.mh2-element-details{flex:1;min-width:120px}.mh2-element-spec{display:block;color:#607269;font-size:13px;margin-top:5px}.mh2-subdetails{margin-top:12px;border-top:1px solid #e9efea;padding-top:12px}.mh2-subdetails summary{cursor:pointer;color:#357258;font-weight:650;font-size:13px;list-style:none}.mh2-subdetails summary::-webkit-details-marker{display:none}.mh2-subdetails summary::before{content:'+';font-weight:800;margin-right:6px}.mh2-subdetails[open] summary::before{content:'−'}.mh2-subdetails>.mh2-form{padding-top:16px}.mh2-edit-element{width:100%;margin-left:53px}.mh2-edit-element summary{width:max-content;margin-left:auto}.mh2-creator{margin-top:20px}.mh2-form{display:grid;gap:12px;max-width:100%}.mh2-two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.mh2-field{display:grid;gap:5px;min-width:0}.mh2-field span{font-weight:660;color:#536a5c;font-size:12px}.mh2-field input,.mh2-field select,.mh2-field textarea{width:100%;border:1px solid #d1dcd2;background:#fff;padding:10px 11px;border-radius:9px;color:#293d34;font:inherit;min-width:0}.mh2-field textarea{resize:vertical}.mh2-field input:focus,.mh2-field select:focus,.mh2-field textarea:focus{outline:2px solid #9ccab0;border-color:#7ba989}.mh2-wide,.mh2-actions{grid-column:1/-1}.mh2-actions{display:flex;justify-content:flex-end}.mh2-btn{appearance:none;border:0;background:var(--mh2-green);color:white;padding:11px 18px;font-weight:690;border-radius:10px;cursor:pointer;max-width:100%}.mh2-btn:hover{background:#376e56}.mh2-small{padding:8px 13px;font-size:13px;justify-self:start}.mh2-onboarding{margin:30px 0 50px;max-width:750px;padding:34px}.mh2-onboarding h2{font-size:28px;margin:10px 0}.mh2-onboarding p{max-width:570px;color:var(--mh2-muted)}.mh2-onboarding .mh2-form{margin-top:22px}.mh2-empty{text-align:center;padding:65px 30px}.mh2-empty>i{font-size:56px;color:#78a088}.mh2-empty h2{font-size:24px;margin:15px}.mh2-empty p{color:var(--mh2-muted);max-width:470px;margin:auto}.mh2-notice{border-radius:12px;padding:12px 17px;margin-bottom:18px}.mh2-ok{background:#e4f2e7;color:#285944;border:1px solid #bad6c5}.mh2-error{background:#fff0ee;color:#8b3c33;border:1px solid #ebc7bd}.mh2-upcoming{display:flex;gap:17px;background:#e8efe8;border-radius:18px;padding:22px}.mh2-upcoming>i{font-size:25px;color:#517e64}.mh2-upcoming p{color:#5e7865;font-size:13px;margin:4px 0 0}.mh2-archive{text-align:right;margin:18px 0 0}.mh2-archive button{background:none;border:none;color:#a34b3d;cursor:pointer;font-size:13px}.mh2-archive button:hover{text-decoration:underline}.mh2-footer{border-top:1px solid var(--mh2-line);padding:26px 0;background:white;color:#819087;font-size:12px}
@media(max-width:950px){.mh2-main-grid{grid-template-columns:255px minmax(0,1fr)}.mh2-card{padding:18px}}@media(max-width:720px){.mh2-wrap {
		padding:0 16px}.mh2-top-inner{min-height:70px}.mh2-top-link{font-size:12px;padding:7px}.mh2-top-link .bi{display:none}.mh2-heading{display:block;margin:25px 0}.mh2-stage{display:inline-block;margin-top:12px}.mh2-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mh2-summary-card{padding:14px}.mh2-main-grid{grid-template-columns:1fr}.mh2-sidebar{grid-template-columns:1fr}.mh2-house-head{display:block}.mh2-access{display:inline-block;margin-top:13px}.mh2-edit-element{margin-left:0}.mh2-two-cols{grid-template-columns:1fr}}@media(max-width:420px){.mh2-top nav{gap:0}.mh2-top-link{font-size:11px}.mh2-logo{font-size:19px}.mh2-icon{height:31px;width:31px}.mh2-heading h1{font-size:27px}}

/* Embedding in the existing CSD page */
.mh2-app{padding-bottom:24px;background:#f7f8f5;min-height:65vh}.mh2-app .mh2-heading{margin-top:0;padding-top:26px}.mh2-app .mh2-card{color:var(--mh2-ink)}
/* Sprint 3: fifth card (family storage) and domain modules */
.mh2-app .mh2-summary{grid-template-columns:repeat(5,minmax(0,1fr))}
/* Native progress allows variable quota width without inline style attributes (CSP). */
.mh3-quota-card strong{font-size:25px}
.mh2-app progress.mh3-progress{display:block;appearance:none;-webkit-appearance:none;box-sizing:border-box;width:100%;height:9px;margin:11px 0;border:0;border-radius:8px;overflow:hidden;background:#e6ebe6;color:#437c65}
.mh2-app progress.mh3-progress::-webkit-progress-bar{background:#e6ebe6;border-radius:8px}
.mh2-app progress.mh3-progress::-webkit-progress-value{background:linear-gradient(90deg,#437c65,#7caa7d);border-radius:8px}
.mh2-app progress.mh3-progress::-moz-progress-bar{background:linear-gradient(90deg,#437c65,#7caa7d);border-radius:8px}
.mh3-record{border-bottom:1px solid #e8eee9;padding:13px 0;overflow-wrap:anywhere}.mh3-record:last-child{border-bottom:none}
.mh3-record>small{display:block;color:#75877f;margin:4px 0}.mh3-record>p{white-space:pre-wrap;margin:8px 0;color:#53685e;font-size:13px}
.mh3-record a,.mh3-textbutton{color:#376e56;font-size:13px;font-weight:650}.mh3-textbutton{border:none;background:transparent;cursor:pointer;padding:4px 0}
.mh3-inline-form{margin-top:6px}.mh3-hint{display:block;color:#71857b;font-size:12px;margin-top:13px}
.mh3-secondary{border:1px solid #afc9b5;padding:10px 14px;border-radius:9px;background:#f1f8f2;color:#295440;cursor:pointer;margin-top:12px}
.mh3-video{display:block;max-width:100%;width:min(100%,390px);margin:14px 0;border-radius:10px;background:#12241a}
.mh3-video[hidden]{display:none}.mh3-scan-status{display:block;color:#536c5a;margin-top:8px}
.mh3-upload-feedback{font-size:13px;color:#376e56}
@media(max-width:1100px){.mh2-app .mh2-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.mh2-app .mh2-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.mh3-quota-card{grid-column:1/-1}}
@media(max-width:720px){.mh2-wrap{max-width:95%}}
/* Sprint 3A CRUD: dettagli e comandi coerenti anche su smartphone. */
.mh3-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin:10px 0 3px}
.mh3-detail{background:#f5f8f5;border:1px solid #e5eee7;border-radius:10px;padding:10px 13px;margin-top:10px}
.mh3-detail summary{font-weight:650;color:#345b48;cursor:pointer;font-size:13px}
.mh3-detail dl{display:grid;grid-template-columns:minmax(85px,130px) 1fr;gap:4px 12px;margin:12px 0;font-size:13px}
.mh3-detail dt{color:#6b7d70}.mh3-detail dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.mh3-edit{margin:10px 0;padding:12px;border:1px solid #e7eee9;border-radius:10px}
.mh3-edit>summary{font-weight:650;color:#3e735c;cursor:pointer;font-size:13px}
.mh3-edit>.mh2-form{margin-top:13px}
.mh3-danger{color:#9a4139!important;background:transparent;border:0;cursor:pointer;font:inherit;font-size:13px;font-weight:650;padding:5px 0}
.mh3-danger:hover{text-decoration:underline}
.mh3-muted-status{opacity:.68}
@media(max-width:600px){.mh3-detail dl{grid-template-columns:1fr;gap:2px}.mh3-detail dt{font-weight:600}.mh3-detail dd{margin-bottom:9px}}

.mh3-preview-dialog{width:min(94vw,1050px);height:min(90vh,860px);padding:0;border:1px solid #b4ccba;border-radius:14px;box-shadow:0 20px 70px rgba(0,0,0,.28)}
.mh3-preview-dialog::backdrop{background:rgba(14,37,27,.66)}
.mh3-preview-head{display:flex;align-items:center;justify-content:space-between;padding:13px 20px;gap:16px;border-bottom:1px solid #dee9df}
.mh3-preview-head button{border:0;background:#eaf2ed;color:#264839;border-radius:8px;padding:7px 12px;cursor:pointer}
.mh3-preview-dialog iframe{width:100%;height:calc(100% - 61px);border:0}

/* Sprint 3A/UI · Navigation unica: tab Bootstrap desktop, accordion mobile.
   I pannelli conservano i form originali, senza duplicazione dei controlli. */
.mh3-workspace{padding:0;overflow:hidden}
.mh3-workspace-title{padding:22px 23px 10px}
.mh3-workspace-title h2{font-size:21px;margin:3px 0 0}
.mh3-desktop-nav{padding:0 16px;min-width:0}
.mh3-nav-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:4px;scrollbar-width:thin;scrollbar-color:#b4cbbd transparent;overscroll-behavior-inline:contain}
.mh3-nav-tabs .nav-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;white-space:nowrap;padding:12px 10px;font-size:12px;font-weight:700;color:#536f60;border-radius:11px 11px 0 0;border:1px solid transparent;border-bottom:0;min-height:47px}
.mh3-nav-tabs .nav-link:hover{color:#244b40;background:#eef5ef;border-color:#d7e5d9}
.mh3-nav-tabs .nav-link.active{color:#244b40;background:#fff;border-color:#d8e7dc;border-bottom:2px solid #477c61}
.mh3-nav-tabs .nav-link:focus-visible,.mh3-mobile-toggle .accordion-button:focus-visible{outline:3px solid #8ab99c;outline-offset:-3px;box-shadow:none}
.mh3-tab-count{font-size:11px;font-weight:700;border-radius:999px;background:#eef3ee;color:#507561;min-width:22px;padding:1px 6px;text-align:center}
.mh3-nav-tabs .nav-link.active .mh3-tab-count{background:#dcebe1;color:#244b40}
.mh3-panels{min-width:0}
.mh3-mobile-toggle{display:none}
.mh3-workspace .mh3-pane[hidden]{display:none!important}
.mh3-workspace .mh3-pane>.mh2-card{padding:20px 23px 24px;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;min-width:0}
.mh3-workspace .mh3-pane>.mh2-card>.mh2-card-title{display:none}
.mh3-workspace .mh3-mobile-item{border:0;border-radius:0;background:transparent}
.mh3-workspace .mh3-mobile-item+.mh3-mobile-item{border-top:0}
.mh3-workspace .mh2-form,.mh3-workspace .mh3-record{min-width:0}
.mh3-workspace .mh3-record code{overflow-wrap:anywhere}
@media(max-width:767.98px){
  .mh3-workspace-title{padding:19px 18px 14px}
  .mh3-desktop-nav{display:none}
  .mh3-mobile-toggle{display:block;margin:0}
  .mh3-workspace .mh3-mobile-item+.mh3-mobile-item{border-top:1px solid #e1eae3}
  .mh3-workspace .mh3-mobile-toggle .accordion-button{display:flex;gap:9px;align-items:center;padding:16px 17px;font-size:14px;font-weight:700;color:#345f4a;background:#fff;box-shadow:none;border-radius:0}
  .mh3-workspace .mh3-mobile-toggle .accordion-button:not(.collapsed){background:#e9f3ec;color:#244b40}
  .mh3-workspace .mh3-mobile-toggle .accordion-button .bi{font-size:18px}
  .mh3-workspace .mh3-mobile-toggle .mh3-tab-count{margin-left:auto;margin-right:10px}
  .mh3-workspace .mh3-pane>.mh2-card{padding:18px 17px 23px;border-top:1px solid #e1eae3}
}

/* Sprint 3B/UI: inline actions, virtual home, contextual links and onboarding */
.mh2-element{flex-wrap:nowrap;align-items:center}
.mh2-edit-element{width:auto;margin:0 0 0 auto;border:0;padding:0;flex:0 0 auto}
.mh2-edit-element summary{margin:0!important}
.mh4-element-related{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.mh3-record>.mh3-detail,.mh3-record>.mh3-edit,.mh3-record>.mh3-actions,.mh3-record>.mh3-inline-form{display:inline-flex;vertical-align:middle;align-items:center;margin:8px 10px 0 0;border:0;padding:0}
.mh3-record>.mh3-actions{gap:10px}
.mh3-record>.mh3-detail summary,.mh3-record>.mh3-edit summary,.mh2-element .mh2-edit-element summary,.mh4-room-heading .mh2-subdetails summary,.mh4-action{display:inline-flex;align-items:center;gap:6px;border:1px solid #bfd8c7;border-radius:9px;background:#f5faf6;color:#34634d;padding:7px 10px;cursor:pointer;font-size:13px;font-weight:650;list-style:none;line-height:1.35}
.mh3-record>.mh3-detail summary:hover,.mh3-record>.mh3-edit summary:hover,.mh4-action:hover{background:#e6f4e9}
.mh3-record>.mh3-detail summary::before,.mh3-record>.mh3-edit summary::before,.mh2-element .mh2-edit-element summary::before,.mh4-room-heading .mh2-subdetails summary::before{display:none}
.mh3-record>.mh3-inline-form .mh3-danger{padding:7px 10px;border-radius:9px;border:1px solid #f0c8c8;background:#fff7f7}
.mh4-link{border:0;background:transparent;color:#287454;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font-size:inherit;padding:2px 0;text-align:left}
.mh4-link:hover{color:#174d37}
.mh4-room-groups{display:grid;gap:12px}
.mh4-room-group{border:1px solid #e4eee7;border-radius:12px;padding:15px;background:#fcfdfb}
.mh4-room-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mh4-room-heading strong{display:block;color:#2f5a44}
.mh4-room-heading small{display:block;color:#738779;font-size:12px}
.mh4-room-heading .mh2-subdetails{border:0;margin:0;padding:0}
.mh4-room-empty{margin:9px 0 0;color:#82948a;font-size:12px}
.mh4-room-elements{padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px;margin:12px 0 0}
.mh4-room-elements li{font-size:13px}
.mh4-wizard{border:1px solid #b8d6c2;background:#f4faf6}
.mh4-wizard h2{margin:9px 0}
.mh4-wizard p{color:#5a7867}
.mh4-wizard-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.mh4-action-secondary{background:#fff;color:#5e7668}
.mh4-related-hidden{display:none!important}
.mh4-related-banner{background:#eaf4ed;border-radius:10px;padding:10px;margin-bottom:12px;color:#305943;font-size:13px}
.mh4-highlight{outline:3px solid #9ccdb2;outline-offset:4px;background:#f4faf6;border-radius:10px}
.mh4-dialog{border:1px solid #c4d9c9;border-radius:16px;padding:0;max-width:min(850px,94vw);width:min(850px,94vw);max-height:88vh;box-shadow:0 20px 70px #15382833;color:#254536}
.mh4-dialog::backdrop{background:#0a251eb8}
.mh4-dialog-heading{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;border-bottom:1px solid #e5eee7;position:sticky;top:0;background:#fff;z-index:2}
.mh4-dialog-title{font-size:17px;font-weight:750}
.mh4-dialog-close{border:0;background:#edf4ee;border-radius:9px;padding:6px 10px;cursor:pointer}
.mh4-dialog-body{padding:20px;max-height:calc(88vh - 68px);overflow:auto}
.mh4-dialog-body dl{display:grid;grid-template-columns:minmax(95px,1fr) 3fr;gap:9px 12px}
.mh4-dialog-body dt{color:#62806e;font-weight:650}
.mh4-dialog-body dd{min-width:0;overflow-wrap:anywhere;margin:0}
.mh4-dialog-body .mh2-form{margin-top:6px}
.mh4-dialog-body .mh3-event{margin:8px 0}
@media(max-width:767.98px){.mh2-element{flex-wrap:wrap}.mh4-element-related{width:100%;padding-left:48px}.mh2-edit-element{margin-left:auto}.mh3-record>.mh3-detail,.mh3-record>.mh3-edit,.mh3-record>.mh3-actions,.mh3-record>.mh3-inline-form{margin:7px 6px 0 0}.mh4-dialog-body{padding:15px}.mh4-dialog-body .mh2-two-cols{grid-template-columns:1fr}.mh4-room-heading{flex-wrap:wrap}}

.mh4-element-detail{flex:0 0 auto;margin:0;padding:0;border:0}.mh4-element-detail summary{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #bfd8c7;border-radius:9px;background:#f5faf6;color:#34634d;cursor:pointer;font-size:13px;list-style:none}.mh4-element-detail summary::before{display:none}.mh4-element-detail summary:hover{background:#e6f4e9}
/* Gli strumenti legati a un elemento restano accanto al nome;
   i collegamenti alle altre sezioni occupano la riga successiva. */
.mh2-element{flex-wrap:wrap;align-items:center}
.mh2-element-icon{order:0;flex:0 0 39px}
.mh2-element-details{order:1;min-width:120px}
.mh4-element-detail{order:2}
.mh2-edit-element{order:3;margin-left:0}
.mh4-element-related{order:4;flex-basis:100%;padding-left:53px}
@media(max-width:767.98px){.mh4-element-related{padding-left:0}}

/* Sprint 3B/R-2: pulsanti a icona di dimensioni fisse, descrizione tramite tooltip. */
.mh5-record-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.mh5-record-info{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.mh5-record-info>small{display:block;color:#75877f;font-size:12px;margin-top:3px}
.mh5-toolbar{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:nowrap;max-width:100%}
.mh5-toolbar .mh5-action{display:inline-flex;align-items:center;margin:0!important;padding:0!important;border:0!important;flex:0 0 auto;background:transparent!important}
.mh5-toolbar .mh5-action>summary,.mh5-toolbar .mh5-action>button,.mh5-icon-btn{
 display:inline-flex;align-items:center;justify-content:center;gap:0;min-height:36px;min-width:36px;padding:7px 9px!important;
 border:1px solid #c6dbc9!important;border-radius:9px!important;background:#f4f9f5!important;color:#2f664f!important;
 cursor:pointer;white-space:nowrap;line-height:1.3;font-size:13px;font-weight:650;list-style:none;
}
.mh5-toolbar .mh5-action>summary::before{display:none!important}
.mh5-toolbar .mh5-action .bi{font-size:16px;flex:0 0 auto}
.mh5-toolbar .mh5-action .mh5-caption{display:none!important}
.mh5-toolbar .mh5-danger>button{background:#fff6f5!important;border-color:#f0c7c0!important;color:#a63e30!important}
.mh5-toolbar .mh5-action>summary:hover,.mh5-toolbar .mh5-action>button:hover{background:#e6f3e8!important}
.mh5-toolbar .mh5-danger>button:hover{background:#ffe9e6!important}
.mh4-dialog-body .mh2-form>.mh5-modal-save,.mh4-dialog-body .mh2-form>.mh2-actions,.mh4-dialog-body .mh2-form>button[type=submit]{
 grid-column:1/-1!important;position:sticky;bottom:-2px;z-index:3;justify-self:stretch;display:flex;justify-content:flex-end;
 background:#fff;border-top:1px solid #e5eee7;padding:12px 0 3px;margin-top:8px;
}
.mh4-dialog-body .mh2-form>button[type=submit]{justify-self:stretch!important;background:#386f54;color:white;border-radius:10px;padding:12px!important}
.mh4-dialog-body .mh2-form{padding-bottom:6px}
.mh2-element{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:9px!important}
.mh2-element .mh2-element-details{flex:1 1 125px!important;min-width:0!important}
.mh2-element .mh2-edit-element{flex:0 0 auto!important;width:auto!important;margin:0!important;order:3}
.mh2-element .mh4-element-detail{flex:0 0 auto!important;order:2}
.mh2-element .mh4-element-related{order:4;flex:0 0 100%!important}
.mh2-element .mh2-edit-element summary,.mh2-element .mh4-element-detail summary,.mh4-room-heading .mh2-subdetails summary{
 display:inline-flex;align-items:center;gap:6px;border:1px solid #bfd8c7;border-radius:9px;
 padding:7px 10px;margin:0!important;background:#f5faf6;color:#34634d;cursor:pointer;
}
.mh5-archived{border:1px dashed #c4d4c8;border-radius:12px;padding:12px;margin:13px 0}
.mh5-archived>summary{cursor:pointer;font-weight:650;color:#4c6a59}
.mh5-archive-item{padding:12px 0;border-top:1px solid #e4ebe5}
.mh5-archived .mh5-record-head{margin-top:5px}
.mh5-purge-note{font-size:12px;color:#8d5345}
@media(max-width:767.98px){
 .mh5-record-head{align-items:flex-start;flex-wrap:wrap}
 .mh5-toolbar{width:100%;justify-content:flex-start;flex-wrap:wrap}
}

/* Comandi Ambiente/Elemento: stessi tooltip, mai espansione degli elementi su hover. */
.mh2-element .mh5-caption,.mh4-room-heading .mh5-caption{display:none!important}
.mh5-toolbar .mh5-action>summary,.mh5-toolbar .mh5-action>button,.mh5-icon-btn{
 width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;
 padding:0!important;gap:0!important;flex:0 0 36px;box-sizing:border-box;
}
.mh2-element .mh2-edit-element summary,.mh2-element .mh4-element-detail summary,.mh4-room-heading .mh2-subdetails summary{
 width:36px;min-width:36px;max-width:36px;height:36px;padding:0!important;
 justify-content:center;gap:0!important;box-sizing:border-box;
}
@media(max-width:767.98px){
 .mh5-toolbar{width:auto;max-width:100%;justify-content:flex-end;flex-wrap:wrap}
}

/* UI unified shell. The workspace holds exactly one active section. */
.mh-ui-root{padding-top:8px}.mh-ui-home-hero{margin:0 0 28px!important;padding-top:20px}
.mh-ui-root .mh2-main-grid{align-items:start}.mh-ui-root .mh3-workspace{min-height:330px}
.mh-ui-root .mh2-sidebar:empty,.mh-ui-root #mh-ui-summary:empty,.mh-ui-root #mh-ui-house:empty{display:none}
.mh-ui-root .mh2-main-grid:has(>.mh2-sidebar:empty){display:block}
.mh-ui-workspace-home{padding:24px!important;border-radius:22px!important;overflow:visible!important}
.mh-ui-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.mh-ui-feature{appearance:none;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:190px;padding:24px 16px;border:1px solid #dcebe2;border-radius:22px;background:linear-gradient(145deg,#fff,#f8fbf8);color:#183f37;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;font:inherit}
.mh-ui-feature:not(.mh-ui-home-picker):hover,.mh-ui-feature:not(.mh-ui-home-picker):focus-visible{transform:translateY(-4px);border-color:#81bd99;box-shadow:0 16px 35px rgba(36,80,57,.12)}
.mh-ui-feature-illustration{display:grid;place-items:center;width:104px;height:104px;border-radius:24px;background:#e9f3ff;color:#3185d2;font-size:60px}
.mh-ui-feature-name{font-weight:750;font-size:16px;line-height:1.35;max-width:205px}
.mh-ui-green .mh-ui-feature-illustration{background:#e7f6ec;color:#28a265}
.mh-ui-orange .mh-ui-feature-illustration{background:#fff2d9;color:#e89018}
.mh-ui-violet .mh-ui-feature-illustration{background:#f0eafa;color:#8265c7}
.mh-ui-teal .mh-ui-feature-illustration{background:#dff6f2;color:#24a9a0}
.mh-ui-home-picker{border-style:dashed;background:#f4faf5;cursor:default;min-height:260px;gap:9px}
.mh-ui-house-art{position:relative;width:120px;height:91px;display:grid;place-items:center;color:#29865a}
.mh-ui-house-art>.bi{position:relative;z-index:1;font-size:88px;filter:drop-shadow(0 6px 4px rgba(22,60,44,.17))}
.mh-ui-art-ground{position:absolute;bottom:2px;height:15px;width:115px;border-radius:50%;background:#cbe6d2}
.mh-ui-picker-label{display:grid;gap:4px;width:100%;text-align:left;font-size:12px;font-weight:700;color:#426050}
.mh-ui-picker-label select{width:100%;border:1px solid #c7decf;border-radius:10px;padding:8px;background:#fff;color:#244b3b}
.mh-ui-picker-empty{font-size:12px;color:#637c70}
.mh-ui-side-menu{padding:14px!important;margin-bottom:14px}.mh-ui-menu-caption{font-size:14px!important;margin:6px 8px 12px!important}
.mh-ui-side-link{width:100%;display:flex;align-items:center;gap:12px;padding:13px 14px;text-align:left;border:0;border-radius:12px;background:transparent;color:#365d4b;font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.mh-ui-side-link .bi{font-size:20px;width:24px}.mh-ui-side-link:hover,.mh-ui-side-link.is-active{background:#dff1e6;color:#205c3d}
.mh-ui-section{padding:24px}.mh-ui-section>.mh2-card{box-shadow:none;border:0;padding:0;margin:0}
.mh-ui-empty{text-align:center;padding:40px 18px;color:#587567}.mh-ui-empty>.bi{font-size:46px}
@media(max-width:1050px){.mh-ui-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.mh-ui-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mh-ui-feature{min-height:145px;padding:15px 10px;gap:10px}.mh-ui-feature-illustration{width:76px;height:76px;font-size:46px}.mh-ui-feature-name{font-size:13px}.mh-ui-home-picker{grid-column:1/-1}.mh-ui-section{padding:16px}.mh-ui-side-menu{display:grid;grid-template-columns:repeat(2,1fr)}.mh-ui-menu-caption{grid-column:1/-1}}
@media(max-width:400px){.mh-ui-feature-grid{grid-template-columns:1fr 1fr}}

.mh-ui-root .mh2-wrap{max-width:1400px;width:94%;margin-inline:auto}
@media(max-width:720px){.mh-ui-root .mh2-wrap{width:100%;max-width:100%}}

/* UI-2 - mobile-first content order; desktop keeps its original grid/layout. */
.mh-ui-mobile-nav-item,.mh-ui-mobile-edit-house{display:none}
.mh-ui-mobile-panel>summary{display:none}
@media (max-width: 991.98px) {
  .mh-ui-mobile-nav-item{display:list-item}
  .mh-ui-mobile-nav-link{display:flex;align-items:center;gap:12px;padding-left:22px!important}
  .mh-ui-mobile-nav-link .bi{font-size:18px;width:23px;text-align:center}
}
@media (max-width: 720px) {
  .mh-ui-root .mh-ui-flow{display:flex;flex-direction:column;gap:14px}
  .mh-ui-root .mh2-main-grid,.mh-ui-root .mh2-content{display:contents}
  .mh-ui-root #mh-ui-workspace{order:1;min-height:0;scroll-margin-top:95px}
  .mh-ui-root #mh-ui-summary{order:2}
  .mh-ui-root #mh-ui-sidebar{order:3;display:flex;flex-direction:column;gap:10px}
  .mh-ui-root #mh-ui-house{order:4;scroll-margin-top:95px}
  /* Mobile dashboard: the community preview follows all six Libretto shortcuts,
     including when a section (e.g. Impianti) is open in the xajax workspace. */
  .mh-ui-root #mh-community-preview{order:5;margin-top:0}
  .mh-ui-root #mh-ui-sidebar:empty,.mh-ui-root #mh-ui-summary:empty,.mh-ui-root #mh-ui-house:empty{display:none}
  .mh-ui-root .mh-ui-side-menu{display:none!important} /* Navigation lives in the collapsed site navbar. */
  .mh-ui-root .mh-ui-mobile-panel{display:block;margin:0;border:1px solid #dcebe2;border-radius:13px;background:#fff;overflow:hidden}
  .mh-ui-root .mh-ui-mobile-panel>summary{display:flex;align-items:center;gap:10px;padding:13px 16px;font-size:14px;font-weight:750;color:#285742;cursor:pointer;list-style:none}
  .mh-ui-root .mh-ui-mobile-panel>summary::-webkit-details-marker{display:none}
  .mh-ui-root .mh-ui-mobile-panel>summary>.bi:last-child{margin-left:auto;transition:transform .18s ease}
  .mh-ui-root .mh-ui-mobile-panel[open]>summary>.bi:last-child{transform:rotate(180deg)}
  .mh-ui-root .mh-ui-mobile-panel>div>.mh2-card{border:0;box-shadow:none;border-radius:0;padding:10px 15px 16px}
  .mh-ui-root #mh-ui-house .mh2-house-hero{padding:14px 16px}
  .mh-ui-root #mh-ui-house .mh2-overline{font-size:10px}
  .mh-ui-root #mh-ui-house .mh2-house-head{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:12px;margin-top:7px;min-width:0}
  .mh-ui-root #mh-ui-house .mh2-house-head>div:first-child{min-width:0;width:100%}
  .mh-ui-root #mh-ui-house .mh2-house-head p{overflow-wrap:anywhere;word-break:normal;line-height:1.5}
  .mh-ui-root #mh-ui-house .mh2-house-head h2{font-size:19px}
  .mh-ui-root #mh-ui-house .mh2-house-head p{font-size:12px;margin-top:2px}
  .mh-ui-root #mh-ui-house .mh2-access{display:none}
  .mh-ui-root #mh-ui-house .mh-ui-house-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;flex:0 0 auto}
  .mh-ui-root #mh-ui-house .mh-ui-house-actions>.mh2-btn,.mh-ui-root #mh-ui-house .mh-ui-house-actions>.mh-ui-mobile-edit-house{width:100%;min-height:42px;justify-content:center;text-align:center;white-space:normal}
  .mh-ui-root #mh-ui-house .mh-ui-house-actions>.mh2-access{align-self:flex-start}
  .mh-ui-root #mh-ui-house .mh-ui-mobile-edit-house{display:inline-flex;gap:6px;align-items:center;padding:7px 10px;border:1px solid #bcd9c6;border-radius:10px;background:#eef7f0;color:#2a6647;font-size:12px;white-space:nowrap;cursor:pointer}
  .mh-ui-root #mh-ui-house .mh2-subdetails{margin-top:8px}
}

@media(max-width:720px){.mh-ui-root .mh2-main-grid:has(>.mh2-sidebar:empty){display:contents}}

/* R8: shared workspace in profile mode, all original shell IDs remain mounted. */
.mh-ui-root:is(.mh-ui-profile-mode,.mh-ui-admin-mode,.mh-ui-community-mode) #mh-ui-hero,
.mh-ui-root:is(.mh-ui-profile-mode,.mh-ui-admin-mode,.mh-ui-community-mode) #mh-ui-summary,
.mh-ui-root:is(.mh-ui-profile-mode,.mh-ui-admin-mode,.mh-ui-community-mode) #mh-ui-sidebar,
.mh-ui-root:is(.mh-ui-profile-mode,.mh-ui-admin-mode,.mh-ui-community-mode) #mh-ui-house,
.mh-ui-root:is(.mh-ui-profile-mode,.mh-ui-admin-mode,.mh-ui-community-mode) .mh-next-step,
.mh-ui-root:is(.mh-ui-profile-mode,.mh-ui-admin-mode,.mh-ui-community-mode) .mh4-dashboard-onboarding,
.mh-ui-root:is(.mh-ui-profile-mode,.mh-ui-admin-mode,.mh-ui-community-mode) [data-mh-dashboard-alerts],
.mh-ui-root:is(.mh-ui-profile-mode,.mh-ui-admin-mode,.mh-ui-community-mode) .mh-visual-alerts{display:none!important}
.mh-ui-root:is(.mh-ui-profile-mode,.mh-ui-admin-mode,.mh-ui-community-mode) .mh2-main-grid{display:block!important}
.mh-ui-root:is(.mh-ui-profile-mode,.mh-ui-admin-mode,.mh-ui-community-mode) .mh2-content{width:100%;max-width:none}
.mh-ui-root:is(.mh-ui-profile-mode,.mh-ui-admin-mode,.mh-ui-community-mode) #mh-ui-workspace{padding:22px!important;min-height:0;overflow:visible}
@media(max-width:720px){.mh-ui-root:is(.mh-ui-profile-mode,.mh-ui-admin-mode,.mh-ui-community-mode) #mh-ui-workspace{padding:14px!important}}

/* R10 Community, isolated from R6/R7 dashboards */
.mh-community{display:grid;gap:20px}.mh-community h1{font-size:1.7rem}.mh-community h2{font-size:1.15rem;margin:0 0 12px}.mh-community-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mh-community-card{padding:18px;border:1px solid #dfe8e1;border-radius:14px;background:#fff;min-width:0}.mh-community-line,.mh-community-idea{padding:12px 0;border-bottom:1px solid #e5ece5}.mh-community-line small{display:block;color:#65756c}.mh-community-link{padding:0;border:0;background:transparent;cursor:pointer;color:#245741;font-weight:700;text-align:left}.mh-community-thread{background:#f4f8f5;padding:16px;border-radius:12px;margin-top:12px}.mh-community-thread article{border-bottom:1px solid #dfe8e0;padding:10px}.mh-community-thread p,.mh-community-idea p{overflow-wrap:anywhere}.mh-community-inline{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}.mh-community-inline input,.mh-community-inline select{max-width:100%;border:1px solid #d1dcd2;padding:7px;border-radius:8px}.mh-community-inline input[name=reason]{min-width:220px;max-width:100%}.mh-community-idea h3{font-size:1.05rem}.mh-community-reason{background:#f9f4eb;padding:10px;border-radius:8px}.mh-community-preview{padding:20px;margin-top:18px;border:1px solid #dfe8e1;border-radius:14px;background:white}.mh-community-preview h2{font-size:1.2rem}.mh-community-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.mh-community-preview article{padding:10px 0;border-bottom:1px solid #edf2ef}.mh-community-preview small{color:#64796c}.mh-community-preview .mh-community-inline{margin-top:4px}.mh-community-preview .mh-community-link{cursor:pointer}@media(max-width:750px){.mh-community-grid,.mh-community-preview-grid{grid-template-columns:1fr}.mh-community-card{padding:12px}}

/* R12: staff filter and private ticket attachments. */
.mh-community-inline{display:flex;gap:.6rem;flex-wrap:wrap;align-items:flex-end;margin:.7rem 0}
.mh-community-inline label{display:flex;flex-direction:column;gap:.25rem}
.mh-community-inline input,.mh-community-inline select{max-width:100%;min-height:2.3rem}
.mh-community-thread a[download]{overflow-wrap:anywhere}

/* R13 - admin counters and per-message ticket attachments */
/* R13H4 - compact, accessible admin badges: no visible zero and no header wrap. */
.mh-support-admin-badges:not([hidden]) {display:inline-flex;gap:.3rem;align-items:center;flex:0 0 auto;flex-wrap:nowrap;padding:0;max-width:max-content;}
.mh-support-admin-count {display:inline-flex;align-items:center;justify-content:center;gap:.22rem;min-width:1.9rem;height:1.9rem;border:1px solid transparent;border-radius:1.2rem;padding:0 .38rem;font-size:.78rem;font-weight:700;line-height:1;cursor:pointer;white-space:nowrap;transition:background-color .15s,color .15s;}
.mh-support-admin-count i {font-size:1rem;line-height:1;}
.mh-support-admin-count[data-mh-status="ok"] {background:#d8efe0;color:#11663d;border-color:#9ed2b2;}
.mh-support-admin-count[data-mh-status="pending"] {background:#fff0d5;color:#9a4c00;border-color:#eac180;}
.mh-support-admin-count[data-mh-status="unavailable"] {background:#e8eceb;color:#5a6863;border-color:#c9d2ce;}
.mh-support-admin-number:not([hidden]) {display:inline-flex;align-items:center;justify-content:center;min-width:1rem;text-align:center;}
.mh-support-admin-number[hidden] {display:none!important;}
.mh-support-admin-count:focus-visible {outline:2px solid currentColor;outline-offset:2px;}
.mh-support-message {padding:1rem 0;border-bottom:1px solid #d9e1dc;}
.mh-support-attachment {background:#f2f7f4;border-radius:.45rem;padding:.55rem;margin:.5rem 0;overflow-wrap:anywhere;}
.mh-support-attachment a,.mh-support-legacy-attachments a {margin-left:.6rem;}
.mh-support-attach-form {margin:.65rem 0 .15rem;}
.mh-community-pending {font-size:.88rem;color:#755a1e;background:#fff8e7;padding:.5rem .65rem;border-radius:.4rem;}
@media(max-width:991px){.mh-support-admin-badges:not([hidden]){width:auto;max-width:max-content;}}

/* R13H1: azioni anteprima/download legate a token HMAC e modale comune. */
.mh-support-file-action {appearance:none;border:0;background:transparent;color:var(--bs-link-color,#166340);cursor:pointer;text-decoration:underline;padding:0;margin-left:.6rem;font:inherit;}
.mh-support-file-action:hover,.mh-support-file-action:focus-visible{text-decoration:none;outline-offset:2px;}

/* R13H7: titoli espandibili delle idee, senza xajax né JavaScript aggiuntivo. */
.mh-community-idea-details{min-width:0;margin:0 0 .35rem;}
.mh-community-idea-details>summary{display:list-item;cursor:pointer;color:#245741;font-size:1rem;line-height:1.45;overflow-wrap:anywhere;list-style-position:inside;}
.mh-community-idea-details>summary:hover{text-decoration:underline;}
.mh-community-idea-details>summary:focus-visible{outline:2px solid #245741;outline-offset:3px;border-radius:3px;}
.mh-community-idea-details[open]>summary{margin-bottom:.45rem;}
.mh-community-idea-body{margin:.3rem 0 .7rem;padding:.65rem .8rem;background:#f4f8f5;border-left:3px solid #82b595;border-radius:0 7px 7px 0;overflow-wrap:anywhere;white-space:normal;line-height:1.5;}

/* R17C14: code scanner embedded in inventory create/edit modal. */
.mh2-code-inline{min-width:0;border:1px solid #dae6dc;border-radius:12px;padding:14px;background:#f8fbf8;display:grid;gap:12px}
.mh2-code-inline-intro{display:grid;gap:3px}.mh2-code-inline-intro strong{color:#285844;font-size:14px}
.mh2-code-inline-intro small{color:#61766a;font-size:12px}
.mh2-code-inline-grid{display:grid;grid-template-columns:minmax(145px,1fr) minmax(0,2fr);gap:12px}
.mh2-code-existing>span{font-weight:650;color:#526d5e;font-size:12px}
.mh2-code-existing ul{list-style:none;padding:0;margin:5px 0 0;display:grid;gap:4px}
.mh2-code-existing li{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;font-size:12px;color:#53715e;min-width:0}
.mh2-code-existing code{overflow-wrap:anywhere;max-width:100%;white-space:normal;color:#253c2d}
.mh2-code-scan{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.mh2-code-scan .mh3-scan-status,.mh2-code-scan video{grid-column:1/-1}
.mh2-code-scan .mh3-secondary{min-height:40px;border-radius:9px;padding:9px 12px}
.mh2-element-code-quick{width:100%;margin-left:53px}
@media(max-width:680px){.mh2-code-inline-grid,.mh2-code-scan{grid-template-columns:minmax(0,1fr)}.mh2-element-code-quick{margin-left:0}}

/* R17C14C: persistent overdue indicators, independent from optional reminder list. */
.mh-ui-root .mh-attention{margin:17px 0;padding:17px 19px;border:1px solid #efc4ba;border-left:4px solid #ae4e3e;border-radius:15px;background:#fffaf8;color:#66362d}
.mh-ui-root .mh-attention-heading{display:flex;align-items:flex-start;gap:12px}
.mh-ui-root .mh-attention-heading>.bi{font-size:24px;line-height:1.4;color:#a64636}
.mh-ui-root .mh-attention h2{font-size:18px;font-weight:750;color:#713b30;margin:0 0 3px}
.mh-ui-root .mh-attention p{font-size:13px;margin:0;color:#875b50}
.mh-ui-root .mh-attention-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:13px}
.mh-ui-root .mh-attention-item{min-width:0;display:flex;gap:10px;align-items:center;text-align:left;padding:12px 13px;border:1px solid #ecd4ce;background:#fff;border-radius:11px;color:#62352c;cursor:pointer}
.mh-ui-root .mh-attention-item:hover{background:#fff0eb;border-color:#ce8677}
.mh-ui-root .mh-attention-item:focus-visible{outline:3px solid #ae6b5d;outline-offset:2px}
.mh-ui-root .mh-attention-item>.bi{font-size:20px;color:#b15342}
.mh-ui-root .mh-attention-copy{display:flex;flex-direction:column;flex:1;min-width:0;overflow-wrap:anywhere}
.mh-ui-root .mh-attention-copy strong{font-size:13px}
.mh-ui-root .mh-attention-copy small{font-size:12px;color:#895f55}
.mh-ui-root .mh-attention-action{font-size:12px;white-space:nowrap;font-weight:700}
.mh-ui-root .mh-attention-tile-count{display:inline-flex;align-items:center;gap:4px;justify-content:center;margin-top:8px;padding:3px 9px;border-radius:20px;background:#fff1eb;color:#9c352e;font-size:12px;font-weight:800;align-self:center}
.mh-ui-root:is(.mh-ui-profile-mode,.mh-ui-admin-mode,.mh-ui-community-mode)>.mh2-wrap>.mh-attention{display:none!important}
@media(max-width:720px){
 .mh-ui-root .mh-attention{padding:13px 14px}
 .mh-ui-root .mh-attention-list{grid-template-columns:1fr}
 .mh-ui-root .mh-attention-action{margin-left:auto}
}

/* R17C14C: three readable vertical sections inside the expandable "My homes" mobile panel. */
.mh-ui-root .mh-ui-homes-panel .mh2-house-list-identity{display:flex;gap:9px;align-items:center;flex:1;min-width:0}
.mh-ui-root .mh-ui-homes-panel .mh2-house-list-identity>.bi{font-size:19px;flex-shrink:0}
.mh-ui-root .mh-ui-homes-panel .mh2-house-list-summary{display:grid;min-width:0;gap:4px;overflow-wrap:anywhere}
.mh-ui-root .mh-ui-homes-panel .mh2-house-list-address{display:none}
.mh-ui-root .mh-ui-homes-panel .mh2-house-list-go{display:flex;align-items:center;gap:6px;margin-left:auto}
.mh-ui-root .mh-ui-homes-panel .mh2-house-list-go-label{display:none}
@media(max-width:720px){
 .mh-ui-root .mh-ui-homes-panel .mh2-house-list{gap:10px}
 .mh-ui-root .mh-ui-homes-panel .mh2-house-link{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:14px;border:1px solid #d8e6dd;border-radius:12px}
 .mh-ui-root .mh-ui-homes-panel .mh2-house-list-identity{width:100%}
 .mh-ui-root .mh-ui-homes-panel .mh2-house-list-address{display:flex;gap:8px;align-items:flex-start;width:100%;font-size:12px;line-height:1.5;overflow-wrap:anywhere;color:#60746a}
 .mh-ui-root .mh-ui-homes-panel .mh2-house-list-address .bi{flex:0 0 auto}
 .mh-ui-root .mh-ui-homes-panel .mh2-house-list-go{display:flex;width:100%;margin-left:0;padding:9px 12px;border:1px solid #bcd9c6;border-radius:9px;background:#eef7f0;color:#276446;justify-content:center;font-size:12px;font-weight:750}
 .mh-ui-root .mh-ui-homes-panel .mh2-house-list-go-label{display:inline}
}

/* R17C14E: overdue intervention marker in the interventions list */
.mh-ui-root .mh5-intervention-late{display:inline-block;border-radius:7px;padding:1px 7px;background:#fff0ec;color:#9c352e;font-weight:750;white-space:nowrap}

/* R17E final: long used / available limits remain readable on five-card dashboards. */
.mh-ui-root .mh2-summary-card > strong{font-size:clamp(20px,2.1vw,29px);overflow-wrap:anywhere}
.mh-ui-root .mh2-summary-card > small{line-height:1.45;overflow-wrap:anywhere}
