:root{--navy:#083b66;--blue:#0c5f93;--cyan:#5bc7df;--ice:#eaf5f8;--bg:#f1f5f7;--card:#fff;--text:#14232d;--muted:#6b7d87;--danger:#b83e42;--warn:#c27a16;--ok:#2d7c58;--line:#dce5e9;--shadow:0 10px 30px rgba(8,59,102,.10)}
*{box-sizing:border-box}html{background:#dfe8ec}body{margin:0;background:var(--bg);font-family:Inter,Arial,sans-serif;color:var(--text);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{max-width:760px;margin:0 auto;min-height:100vh;background:var(--bg);padding-bottom:88px}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;padding:15px 18px;background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff}.brand-lockup{flex:1}.topbar h1{font-size:20px;margin:2px 0 0}.eyebrow{margin:0;font-size:10px;font-weight:800;letter-spacing:1.5px;color:var(--cyan)}.eyebrow.dark{color:var(--blue)}.avatar,.icon-btn{border:0;color:#fff;background:rgba(255,255,255,.15);display:grid;place-items:center}.avatar{width:38px;height:38px;border-radius:50%;font-size:12px;font-weight:800}.icon-btn{width:36px;height:36px;border-radius:12px;font-size:30px;line-height:1}.content{padding:18px}.screen{display:none}.screen.active{display:block}.screen>h2{font-size:29px;margin:7px 0}.lead{color:var(--muted);line-height:1.5;margin:0 0 22px}.onboarding-hero{text-align:center;padding:28px 12px 12px}.onboarding-hero h2{font-size:34px;line-height:1.08;margin:14px 0 12px}.onboarding-hero>p:last-child{color:var(--muted);line-height:1.5}.logo-mark{width:90px;height:90px;margin:0 auto 22px;display:grid;place-items:center;border-radius:28px;background:linear-gradient(135deg,var(--navy),var(--cyan));color:#fff;font-weight:900;font-size:25px;box-shadow:var(--shadow)}.feature-stack{display:grid;gap:10px;margin:18px 0}.feature-stack article{display:flex;gap:14px;align-items:flex-start;background:#fff;border-radius:17px;padding:14px;box-shadow:var(--shadow)}.feature-stack article>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--ice);color:var(--blue);font-weight:900}.feature-stack p{margin:4px 0 0;color:var(--muted);font-size:13px}.stepper{display:flex;gap:8px;margin:4px 0 28px}.stepper span{height:5px;flex:1;border-radius:9px;background:#d7e3e8}.stepper span.active{background:var(--blue)}.hero-card{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#fff,#dff4f8);padding:20px;border-radius:22px;box-shadow:var(--shadow)}.hero-card h2{margin:4px 0}.boat-badge{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:var(--navy);color:white;font-weight:800}.muted,.mini{color:var(--muted)}.mini{margin:3px 0 0;font-size:12px}.alert-card{margin:14px 0 0;padding:14px 15px;border-radius:15px;background:#fff4e4;border-left:4px solid var(--warn);font-size:13px}.alert-card.empty{display:none}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:14px 0}.stat-card,.panel,.form-card,.cost-summary,.item-card,.metric-row article,.season-card,.summary-strip,.boat-profile{background:var(--card);border:0;border-radius:18px;box-shadow:var(--shadow)}.stat-card{text-align:left;padding:15px;min-height:107px;color:var(--text)}.stat-card span{display:block;color:var(--muted);font-size:12px}.stat-card strong{display:block;margin-top:9px;font-size:18px}.stat-card small{display:block;margin-top:7px;color:var(--muted)}.panel{padding:17px;margin-top:15px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.section-head h2,.section-head h3{margin:2px 0 0}.page-head{align-items:flex-end}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quick-actions button{border:0;border-radius:14px;padding:14px 10px;background:var(--ice);color:var(--navy);font-weight:750;text-align:left}.quick-actions span{display:inline-grid;place-items:center;width:28px;height:28px;margin-right:6px;border-radius:9px;background:#fff}.primary,.ghost,.outline,.text-btn,.chip{border:0;border-radius:12px;padding:12px 14px}.primary{background:var(--navy);color:#fff;font-weight:800}.ghost{background:rgba(255,255,255,.14);color:inherit}.outline{border:1px solid #b9cbd4;background:#fff;color:var(--navy);font-weight:750}.text-btn{background:transparent;color:var(--blue);padding:5px;font-weight:750}.wide{width:100%;margin-top:9px}.large{padding:15px 18px}.compact{padding:10px 12px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(760px,100%);display:grid;grid-template-columns:repeat(5,1fr);padding:8px 6px calc(8px + env(safe-area-inset-bottom));background:white;border-top:1px solid var(--line);z-index:20}.bottom-nav button{border:0;background:transparent;color:var(--muted);font-size:10px;padding:5px}.bottom-nav span{display:block;font-size:20px;margin-bottom:3px}.bottom-nav button.active{color:var(--navy);font-weight:800}.list{display:grid;gap:11px}.item-card{padding:15px}.item-card h4{margin:0 0 6px}.item-meta{display:flex;flex-wrap:wrap;gap:7px;color:var(--muted);font-size:12px}.item-actions{display:flex;gap:8px;margin-top:12px}.item-actions button{border:0;border-radius:10px;padding:8px 10px;background:#edf3f6}.done{opacity:.62}.done h4{text-decoration:line-through}.priority-high{border-left:4px solid var(--danger)}.filter-row{display:flex;gap:8px;margin-bottom:14px;overflow:auto}.chip{background:#dfeaf0;color:var(--navy);white-space:nowrap}.chip.active{background:var(--navy);color:white}.summary-strip{display:grid;grid-template-columns:repeat(3,1fr);padding:13px;margin:14px 0}.summary-strip div{text-align:center;border-right:1px solid var(--line)}.summary-strip div:last-child{border:0}.summary-strip strong{display:block;font-size:22px}.summary-strip span{color:var(--muted);font-size:11px}.form-card{padding:18px}.form-card.flat{box-shadow:none;padding:0;background:transparent}.form-card label{display:block;margin-bottom:13px;font-size:12px;font-weight:800}.form-card input,.form-card select,.form-card textarea{display:block;width:100%;margin-top:6px;border:1px solid var(--line);border-radius:12px;padding:13px;background:#fff;color:var(--text)}.form-card textarea{resize:vertical}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cost-summary{padding:19px;margin-bottom:13px}.cost-summary>span{color:var(--muted)}.cost-summary>strong{display:block;font-size:30px;margin-top:4px}.budget-line{display:flex;justify-content:space-between;margin-top:14px;font-size:12px;color:var(--muted)}.metric-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.metric-row article{padding:14px}.metric-row span{color:var(--muted);font-size:11px}.metric-row strong{display:block;margin-top:5px}.bars{display:grid;gap:9px;margin-bottom:17px}.bar-row{background:#fff;border-radius:14px;padding:12px}.bar-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:7px}.bar-track,.progress{height:8px;background:#e8eef1;border-radius:99px;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,var(--blue),var(--cyan))}.progress{margin:10px 0}.progress>div{height:100%;background:var(--ok)}.progress.neutral>div{background:linear-gradient(90deg,var(--blue),var(--cyan))}.subhead{font-size:15px}.timeline{display:grid;gap:0}.timeline-item{position:relative;padding:0 0 15px 28px;font-size:13px}.timeline-item:last-child{padding-bottom:0}.timeline-item:before{content:"";position:absolute;left:6px;top:3px;width:9px;height:9px;border-radius:50%;background:var(--cyan)}.timeline-item:after{content:"";position:absolute;left:10px;top:15px;bottom:0;width:1px;background:var(--line)}.timeline-item:last-child:after{display:none}.timeline-item small{display:block;color:var(--muted);margin-top:3px}.check-row{display:flex;align-items:flex-start;gap:11px;padding:11px 0;border-bottom:1px solid var(--line)}.check-row:last-child{border-bottom:0}.check-row input{margin-top:3px;width:18px;height:18px}.season-card{display:flex;align-items:center;justify-content:space-between;padding:16px;margin:13px 0}.season-card span{display:block;color:var(--muted);font-size:11px}.season-card strong{display:block;margin-top:4px}.upload-box{display:flex!important;align-items:center;gap:12px;padding:14px;border:1px dashed #9db8c5;border-radius:14px;background:var(--ice);cursor:pointer}.upload-box>span{font-size:26px}.upload-box strong,.upload-box small{display:block}.upload-box small{font-weight:400;color:var(--muted);margin-top:3px}.boat-profile{display:flex;align-items:center;gap:14px;padding:16px;margin-bottom:13px}.boat-photo{display:grid;place-items:center;width:72px;height:72px;border-radius:20px;background:linear-gradient(135deg,var(--navy),var(--cyan));font-size:28px}.boat-profile h3{margin:0 0 5px}.tag{display:inline-block;margin-top:8px;padding:5px 9px;border-radius:99px;background:var(--ice);color:var(--blue);font-size:11px;font-weight:800}.tab-row{display:grid;grid-template-columns:repeat(3,1fr);margin:12px 0;background:#e2ebef;border-radius:13px;padding:4px}.tab-row button{border:0;background:transparent;padding:9px;border-radius:10px;color:var(--muted)}.tab-row button.active{background:#fff;color:var(--navy);font-weight:800}.document-list{display:grid;gap:9px}.document-list article{display:grid;grid-template-columns:34px 1fr 25px;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:13px}.document-list small{display:block;color:var(--muted);margin-top:3px}.document-list button{border:0;background:transparent;font-size:22px}.toast{position:fixed;left:50%;bottom:98px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#102a3a;color:#fff;padding:11px 16px;border-radius:12px;transition:.2s;z-index:50;font-size:13px}.toast.show{opacity:1;transform:translate(-50%,0)}.hidden{display:none!important}@media(max-width:420px){.content{padding:14px}.topbar{padding:13px 14px}.stats-grid{gap:9px}.two-col{grid-template-columns:1fr}.onboarding-hero h2{font-size:31px}.page-head{align-items:center}}

/* Onboarding rapido */
.setup-head{display:flex;align-items:center;gap:14px;margin:4px 0 28px}.setup-head .stepper{flex:1;margin:0}.setup-step{display:none}.setup-step.active{display:block;animation:setupIn .22s ease}.onboarding-form{min-height:430px;display:flex;flex-direction:column}.onboarding-form .setup-step{flex:1}.required-mark{float:right;color:var(--muted);font-size:10px;font-weight:600}.choice-fieldset{border:0;padding:0;margin:0 0 15px}.choice-fieldset legend{font-size:12px;font-weight:800;margin-bottom:8px}.boat-type-grid,.interest-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.boat-type-grid label,.interest-grid label{margin:0}.boat-type-grid input,.interest-grid input{position:absolute;opacity:0;pointer-events:none}.boat-type-grid span,.interest-grid span{display:flex;align-items:center;justify-content:center;gap:7px;min-height:58px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--text);font-weight:750;text-align:center;padding:10px}.boat-type-grid b{font-size:21px}.boat-type-grid input:checked+span,.interest-grid input:checked+span{border-color:var(--blue);background:var(--ice);box-shadow:0 0 0 2px rgba(16,103,154,.10);color:var(--navy)}.interest-grid span{min-height:48px}.setup-note{padding:12px 13px;border-radius:13px;background:#e9f2f6;color:var(--muted);font-size:12px;line-height:1.45}.setup-note.success{background:#e8f5ee;color:#246448}.photo-placeholder{display:grid!important;grid-template-columns:42px 1fr;column-gap:10px;align-items:center;padding:14px;border:1px dashed #9db8c5;border-radius:14px;background:var(--ice);cursor:pointer}.photo-placeholder input{display:none!important}.photo-placeholder>span{grid-row:1/3;font-size:27px}.photo-placeholder strong,.photo-placeholder small{display:block}.photo-placeholder small{font-weight:400;color:var(--muted);margin-top:3px}.setup-summary{padding:15px;border-radius:16px;background:linear-gradient(135deg,#fff,#e8f5f8);box-shadow:var(--shadow);margin-bottom:16px}.setup-summary strong{display:block;font-size:20px;margin-bottom:4px}.setup-summary span{color:var(--muted);font-size:12px}.setup-actions{display:grid;grid-template-columns:auto 1fr;gap:10px;margin-top:18px}.setup-actions .primary:only-child{grid-column:1/-1}.validation-message{min-height:18px;margin:9px 0 0;color:var(--danger);font-size:12px;text-align:center}.setup-complete-card{text-align:center;padding:18px}.setup-complete-card .logo-mark{width:66px;height:66px;border-radius:20px;font-size:18px;margin-bottom:14px}@keyframes setupIn{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}
@media(max-width:420px){.boat-type-grid,.interest-grid{grid-template-columns:1fr 1fr}.onboarding-form{min-height:400px}.setup-actions{position:sticky;bottom:82px;padding-top:10px;background:linear-gradient(180deg,rgba(241,245,247,0),var(--bg) 28%)}}

/* Dashboard priorita */
.dashboard-hero{margin-bottom:12px}.dashboard-hero .boat-badge{border:0;color:#fff;cursor:pointer}.priority-overview{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;padding:14px 15px;border-radius:17px;margin:12px 0 20px}.priority-overview .priority-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;font-size:18px;font-weight:900}.priority-overview strong,.priority-overview span{display:block}.priority-overview span{font-size:12px;margin-top:3px}.priority-overview button{border:0;background:rgba(255,255,255,.72);border-radius:10px;padding:9px 10px;font-weight:800}.priority-overview.critical{background:#fbe7e7;color:#8b2525}.priority-overview.critical .priority-icon{background:#fff0f0}.priority-overview.warning{background:#fff0d8;color:#7a4a0a}.priority-overview.warning .priority-icon{background:#fff8eb}.priority-overview.good{background:#e4f4eb;color:#226043}.priority-overview.good .priority-icon{background:#f3fbf7}.dashboard-section-head{display:flex;justify-content:space-between;align-items:flex-end;margin:0 2px 10px}.dashboard-section-head h3{margin:2px 0 0}.priority-task-list{display:grid;gap:9px}.priority-task{display:grid;grid-template-columns:49px 1fr 38px;align-items:center;gap:11px;background:#fff;border-radius:16px;padding:11px 12px;box-shadow:var(--shadow);border-left:4px solid #9fb5c0}.priority-task.overdue{border-left-color:var(--danger)}.priority-task.urgent{border-left-color:#e99521}.priority-task.soon{border-left-color:var(--blue)}.task-date{display:grid;place-items:center;border-radius:12px;background:var(--ice);padding:7px 4px}.task-date strong{font-size:18px;line-height:1}.task-date span{font-size:10px;text-transform:uppercase;margin-top:4px;color:var(--muted)}.task-copy{min-width:0}.task-copy>strong,.task-copy>small,.task-category{display:block}.task-copy>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:2px 0 4px}.task-copy>small{font-size:11px;color:var(--muted)}.task-category{font-size:9px;color:var(--blue);font-weight:900;text-transform:uppercase;letter-spacing:.7px}.task-complete{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:#e8f5ee;color:#26704e;font-size:17px;font-weight:900}.empty-focus{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;padding:14px;border-radius:16px;background:#fff;box-shadow:var(--shadow)}.empty-focus>span{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#e8f5ee;color:#26704e;font-weight:900}.empty-focus strong,.empty-focus small{display:block}.empty-focus small{color:var(--muted);font-size:11px;margin-top:3px}.empty-focus button{border:0;border-radius:10px;padding:9px;background:var(--ice);color:var(--navy);font-weight:800}.dashboard-stats{margin-top:14px}.dashboard-stats .stat-card{position:relative;overflow:hidden}.dashboard-stats .stat-card:after{content:"";position:absolute;right:-16px;bottom:-22px;width:54px;height:54px;border-radius:50%;background:rgba(21,134,171,.08)}.compact-panel{margin-top:12px}
@media(max-width:420px){.priority-overview{grid-template-columns:38px 1fr auto;padding:12px}.priority-overview button{font-size:11px}.priority-task{grid-template-columns:45px 1fr 34px}.task-copy>strong{font-size:13px}}
.schedule-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.schedule-grid label,.repeat-toggle label{display:block;cursor:pointer}.schedule-grid input,.repeat-toggle input{position:absolute;opacity:0}.schedule-grid span,.repeat-toggle span{display:flex;flex-direction:column;gap:4px;min-height:78px;padding:13px;border:1.5px solid var(--line);border-radius:14px;background:#fff}.schedule-grid input:checked+span,.repeat-toggle input:checked+span{border-color:var(--blue);background:var(--ice);box-shadow:0 0 0 2px rgba(12,95,147,.08)}.schedule-grid b{font-size:14px}.schedule-grid small{font-size:11px;color:var(--muted);line-height:1.35}.schedule-grid em{font-style:normal;font-size:10px;font-weight:800;color:var(--blue);margin-top:auto}.schedule-fieldset,.recurrence-box{margin:0 0 14px}.conditional-fields{margin:0 0 14px}.field-help{margin:-6px 2px 0;font-size:12px;color:var(--muted)}.repeat-toggle{display:grid;grid-template-columns:1fr;gap:8px}.repeat-toggle span{min-height:auto;display:block;font-size:13px;font-weight:700}.logic-note{padding:12px 13px;border-radius:13px;background:#edf7fa;color:#254a5b;font-size:12px;line-height:1.45;margin-top:10px}.due-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.due-badge{padding:5px 8px;border-radius:999px;background:var(--ice);color:var(--navy);font-size:11px;font-weight:750}.due-badge.reached{background:#fdeaea;color:var(--danger)}.recurrence-mark{font-size:11px;color:var(--blue);font-weight:800}.item-card.next-created{border-left:4px solid var(--cyan)}
@media(max-width:390px){.schedule-grid{grid-template-columns:1fr}.schedule-grid span{min-height:64px}}
/* Smart checklists */
.smart-intro,.issues-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border-radius:16px;margin:12px 0;background:#eaf6fb;border:1px solid #cbe8f4}.smart-intro div,.issues-summary>div{display:flex;flex-direction:column;gap:3px}.smart-intro button,.issues-summary button,.check-summary button{border:0;background:transparent;color:#0878a5;font-weight:800}.issues-summary{background:#fff8e8;border-color:#f2d8a1}.issues-summary .all-good{flex-direction:row;align-items:center}.issues-summary .all-good>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#daf3e4;color:#137a43;font-weight:900}.issue-count{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#d84b42;color:white;font-weight:900}.issues-summary>div{flex-direction:row;align-items:center}.issues-summary small,.smart-intro span{color:#60717b;font-size:.78rem}.smart-check-list{display:grid;gap:14px}.smart-check-card{background:#fff;border:1px solid #dbe6eb;border-radius:20px;padding:16px;box-shadow:0 7px 24px rgba(18,50,67,.07);margin-bottom:14px}.smart-check-head{display:flex;justify-content:space-between;gap:12px}.smart-check-head h3{margin:3px 0 4px}.smart-check-head p{margin:0;color:#687983;font-size:.85rem}.check-season{font-size:.68rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#0878a5}.score-ring{width:58px;height:58px;border-radius:50%;background:#eaf6fb;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 auto}.score-ring strong{font-size:.92rem}.score-ring span{font-size:.65rem;color:#687983}.score-ring.has-problem{background:#fff0ee;color:#b53831}.check-summary{display:flex;align-items:center;gap:12px;margin:9px 0 12px;color:#687983;font-size:.75rem}.check-summary button{margin-left:auto}.problem-text{color:#b53831;font-weight:800}.smart-items{display:grid;gap:9px}.smart-item{border:1px solid #dce7eb;border-radius:14px;padding:12px;background:#fff}.smart-item.ok{background:#f3fbf6;border-color:#bfe2cc}.smart-item.problem{background:#fff4f2;border-color:#efbbb6}.smart-item.na{opacity:.58;background:#f4f6f7}.smart-item-copy{display:flex;flex-direction:column;gap:4px}.smart-item-copy strong{font-size:.88rem;line-height:1.3}.smart-item-copy small{color:#a13c36}.category-dot{font-size:.66rem;color:#0878a5;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.state-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.check-state{padding:8px 5px;border-radius:10px;border:1px solid #d4e1e7;background:white;font-size:.72rem;font-weight:800}.check-state.ok.selected{background:#daf3e4;border-color:#72bc8f;color:#116d3c}.check-state.problem.selected{background:#ffe0dc;border-color:#e3877f;color:#a62f28}.check-state.na.selected{background:#e9edef;border-color:#b9c4c9;color:#53636b}.app-dialog{border:0;border-radius:22px;padding:0;width:min(92vw,480px);box-shadow:0 20px 70px rgba(0,24,38,.3)}.app-dialog::backdrop{background:rgba(0,29,45,.62)}.app-dialog form{padding:20px}.dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.dialog-head h3{margin:2px 0 8px}.icon-close{border:0;background:#edf3f5;border-radius:50%;width:36px;height:36px;font-size:1.4rem}.equipment-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.equipment-options label{display:flex;gap:8px;align-items:center;border:1px solid #d9e5e9;border-radius:12px;padding:10px;font-size:.8rem;font-weight:700}.issue-actions-choice{display:grid;gap:8px}.issue-actions-choice label{display:flex;align-items:flex-start;gap:9px;border:1px solid #d9e5e9;border-radius:12px;padding:10px}.issue-actions-choice span{display:flex;flex-direction:column}.issue-actions-choice small{color:#687983}.issue-inline{display:grid;gap:8px;margin:0 0 14px}.issue-inline article{display:flex;justify-content:space-between;gap:12px;padding:12px;border:1px solid #efbbb6;background:#fff4f2;border-radius:13px}.issue-inline article div{display:flex;flex-direction:column}.issue-inline article small{color:#80625f}.issue-inline button{border:0;background:#d84b42;color:white;border-radius:9px;padding:7px 10px;font-weight:800}@media(max-width:380px){.equipment-options{grid-template-columns:1fr}.state-actions{grid-template-columns:1fr}.check-state{padding:9px}}
/* Monitoraggio costi strutturato */
.budget-note{display:block;margin-top:9px;color:var(--muted);font-size:11px;line-height:1.4}.progress>div.over-budget{background:var(--danger)!important}.cost-kpi-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.cost-kpi-grid article{background:#fff;border-radius:16px;padding:13px;box-shadow:var(--shadow);border-top:3px solid #8ca8b6}.cost-kpi-grid article:nth-child(1){border-top-color:#0c5f93}.cost-kpi-grid article:nth-child(2){border-top-color:#21a7c4}.cost-kpi-grid article:nth-child(3){border-top-color:#d69829}.cost-kpi-grid article.unexpected{border-top-color:var(--danger)}.cost-kpi-grid span,.cost-kpi-grid strong,.cost-kpi-grid small{display:block}.cost-kpi-grid span{font-size:11px;color:var(--muted);font-weight:700}.cost-kpi-grid strong{font-size:18px;margin:4px 0}.cost-kpi-grid small{font-size:10px;color:var(--muted)}.cost-type-fieldset{border:0;padding:0;margin:0 0 15px}.cost-type-fieldset legend{font-weight:800;margin-bottom:8px}.cost-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.cost-type-grid label{cursor:pointer}.cost-type-grid input{position:absolute;opacity:0}.cost-type-grid span{display:flex;flex-direction:column;min-height:70px;padding:12px;border:1.5px solid var(--line);border-radius:14px;background:#fff}.cost-type-grid input:checked+span{border-color:var(--blue);background:var(--ice);box-shadow:0 0 0 2px rgba(12,95,147,.08)}.cost-type-grid b{font-size:13px}.cost-type-grid small{font-size:10px;color:var(--muted);margin-top:4px;line-height:1.3}.cost-entry{border-left:4px solid #8ca8b6}.cost-entry.fixed{border-left-color:#0c5f93}.cost-entry.variable{border-left-color:#21a7c4}.cost-entry.planned{border-left-color:#d69829}.cost-entry.unexpected{border-left-color:var(--danger)}.cost-entry-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.cost-entry-head>strong{font-size:17px}.cost-type-tag{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.6px;background:#edf3f6;color:#395665}.cost-type-tag.fixed{background:#e6f0f7;color:#0c5f93}.cost-type-tag.variable{background:#e6f7fa;color:#14758c}.cost-type-tag.planned{background:#fff3dc;color:#8a5b08}.cost-type-tag.unexpected{background:#fde8e6;color:#a9342d}.bar-fill.cost-fixed{background:#0c5f93}.bar-fill.cost-variable{background:#21a7c4}.bar-fill.cost-planned{background:#d69829}.bar-fill.cost-unexpected{background:var(--danger)}
@media(max-width:380px){.cost-type-grid{grid-template-columns:1fr}.cost-type-grid span{min-height:58px}.cost-kpi-grid{grid-template-columns:1fr 1fr}}
/* Account, cloud e sessione singola */
.cloud-status{display:flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.12);font-size:10px;white-space:nowrap}.cloud-status span{width:7px;height:7px;border-radius:50%;background:#9aabb4}.cloud-status b{font-weight:800}.cloud-status.synced span{background:#46cf87}.cloud-status.syncing span{background:#ffcc55;animation:pulse 1s infinite}.cloud-status.error span,.cloud-status.offline span{background:#ff7b70}@keyframes pulse{50%{opacity:.35}}
.auth-screen{padding-top:22px}.auth-wrap{max-width:520px;margin:0 auto}.auth-brand{text-align:center;padding:16px 8px 18px}.auth-brand .logo-mark{margin:0 auto 14px}.auth-brand h2{font-size:27px;line-height:1.12;margin:8px 0}.auth-brand p:last-child{color:var(--muted);line-height:1.5}.auth-card{box-shadow:0 14px 44px rgba(5,45,72,.13)}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#eef4f6;border-radius:12px;padding:4px;margin-bottom:18px}.auth-tabs button{border:0;background:transparent;border-radius:9px;padding:10px;font-weight:850;color:var(--muted)}.auth-tabs button.active{background:#fff;color:var(--navy);box-shadow:0 2px 8px rgba(0,35,54,.1)}.remember-row{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;font-size:12px!important}.remember-row input{width:auto}.auth-note{margin-top:16px;padding:12px;border-radius:12px;background:var(--ice);display:flex;flex-direction:column;gap:3px}.auth-note strong{font-size:12px}.auth-note span{font-size:11px;color:var(--muted);line-height:1.4}.account-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:15px;background:var(--ice);margin:12px 0}.account-card>span{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-weight:900}.account-card div{display:flex;flex-direction:column}.account-card small{color:var(--muted)}.session-details{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}.session-details article{padding:11px;border:1px solid var(--line);border-radius:12px}.session-details span,.session-details strong{display:block}.session-details span{font-size:10px;color:var(--muted)}.session-details strong{font-size:12px;margin-top:4px}.danger-outline{border:1px solid #e5aaa5;background:#fff;color:var(--danger);border-radius:12px;padding:12px;font-weight:850;margin-top:9px}.dialog-footnote{font-size:10px;color:var(--muted);line-height:1.45;text-align:center}.locked-dialog{max-width:410px}.locked-content{text-align:center;padding:25px}.lock-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#fff0df;color:#9c6508;font-size:26px;font-weight:900;margin:0 auto 12px}.locked-content p{color:var(--muted);line-height:1.5}.locked-content h3{margin:5px 0 9px}@media(max-width:560px){.topbar .cloud-status b{display:none}.cloud-status{padding:7px}.session-details{grid-template-columns:1fr}.auth-brand h2{font-size:24px}}

/* MBM visual identity v1 */
:root{--navy:#0A2E5C;--blue:#0D5BD4;--cyan:#13A8E6;--wave:#5CCBFA;--ice:#eef7fc;--bg:#f5f8fb;--card:#ffffff;--text:#172338;--muted:#64748B;--line:#E2E8F0;--shadow:0 10px 28px rgba(10,46,92,.09);--shadow-soft:0 5px 16px rgba(10,46,92,.07)}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:var(--bg)}
h1,h2,h3,h4,.primary,.outline,.bottom-nav button{font-family:Montserrat,Inter,system-ui,sans-serif}
.topbar{background:linear-gradient(135deg,#071f40 0%,#0A2E5C 70%,#0D5BD4 150%);min-height:72px;box-shadow:0 8px 24px rgba(5,25,54,.22)}
.brand-lockup{display:flex;align-items:center;gap:10px;min-width:0}.topbar-logo{width:58px;height:42px;object-fit:contain;object-position:left center;filter:brightness(0) invert(1);opacity:.98}.brand-lockup h1{font-size:18px}.brand-lockup .eyebrow{font-size:8px;color:#69D6FF}
.auth-logo{width:min(340px,88%);height:auto;display:block;margin:0 auto 18px}.onboarding-logo{width:128px;height:128px;object-fit:contain;display:block;margin:0 auto 12px}
.logo-mark{background:linear-gradient(145deg,var(--navy),var(--blue));overflow:hidden}.logo-mark:before{content:"";width:70%;height:70%;background:url('assets-symbol.png') center/contain no-repeat;filter:brightness(0) invert(1)}
.stat-card,.panel,.form-card,.cost-summary,.item-card,.metric-row article,.season-card,.summary-strip,.boat-profile{box-shadow:var(--shadow-soft);border:1px solid rgba(226,232,240,.8)}
.hero-card{background:linear-gradient(135deg,#fff 0%,#eff8ff 100%);border:1px solid #dcebf6}.boat-badge{background:url('app-icon-dark.png') center/cover no-repeat;text-indent:-9999px;box-shadow:0 8px 18px rgba(10,46,92,.22)}
.primary{background:linear-gradient(135deg,var(--blue),#087fd2);box-shadow:0 6px 14px rgba(13,91,212,.22)}.primary:hover{filter:brightness(.97)}
.outline{border-color:#bfd0df}.quick-actions button{background:#eef7fd}.quick-actions span{color:var(--blue)}
.stat-card strong,.cost-summary>strong{color:var(--navy)}.bar-fill{background:linear-gradient(90deg,var(--blue),var(--cyan),var(--wave))}
.bottom-nav{box-shadow:0 -8px 24px rgba(10,46,92,.07)}.bottom-nav button.active{color:var(--blue)}
.auth-screen{background:radial-gradient(circle at 50% -10%,rgba(92,203,250,.18),transparent 42%),var(--bg)}
.app-dialog form,.install-content{border-radius:24px}.theme-control{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px;border:1px solid var(--line);border-radius:14px;margin:12px 0;background:var(--ice)}.theme-control strong,.theme-control small{display:block}.theme-control small{color:var(--muted);margin-top:3px}.theme-control select{border:1px solid var(--line);border-radius:10px;padding:9px;background:var(--card);color:var(--text)}
.install-dialog{max-width:440px}.install-content{text-align:center;padding:28px;background:var(--card)}.install-app-icon{width:92px;height:92px;border-radius:24px;box-shadow:0 12px 25px rgba(10,46,92,.25);margin-bottom:10px}.install-content h3{font-size:24px;margin:6px 0 8px}.install-content>p:not(.eyebrow){color:var(--muted);line-height:1.5}.install-benefits{display:grid;gap:10px;text-align:left;margin:20px 0}.install-benefits article{display:flex;gap:12px;align-items:center;padding:12px;background:var(--ice);border-radius:14px}.install-benefits article>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#fff;color:var(--blue);font-weight:900}.install-benefits strong,.install-benefits small{display:block}.install-benefits small{color:var(--muted);margin-top:2px}
/* Dark mode */
html[data-theme="dark"]{background:#071323}html[data-theme="dark"] body,html[data-theme="dark"] .app-shell{--bg:#071323;--card:#0f2542;--text:#f5f8ff;--muted:#a8b7ca;--line:#203c5e;--ice:#112d4d;--shadow:0 12px 28px rgba(0,0,0,.28);--shadow-soft:0 7px 18px rgba(0,0,0,.22);background:var(--bg);color:var(--text)}
html[data-theme="dark"] .topbar{background:#071a34}html[data-theme="dark"] .bottom-nav{background:#0b1f38;border-color:#203c5e}html[data-theme="dark"] .hero-card{background:linear-gradient(135deg,#102947,#0b2039);border-color:#203c5e}html[data-theme="dark"] .stat-card,html[data-theme="dark"] .panel,html[data-theme="dark"] .form-card,html[data-theme="dark"] .cost-summary,html[data-theme="dark"] .item-card,html[data-theme="dark"] .summary-strip,html[data-theme="dark"] .boat-profile,html[data-theme="dark"] .metric-row article{border-color:#203c5e}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .outline,html[data-theme="dark"] .tab-row button.active{background:#0a1d34!important;color:var(--text)!important;border-color:#294665!important}html[data-theme="dark"] .quick-actions button,html[data-theme="dark"] .chip,html[data-theme="dark"] .theme-control,html[data-theme="dark"] .install-benefits article{background:#112d4d}html[data-theme="dark"] .install-content{background:#0f2542}html[data-theme="dark"] .auth-logo{filter:brightness(0) invert(1)}
@media(max-width:420px){.topbar-logo{width:48px;height:36px}.auth-logo{width:94%}.install-content{padding:22px}}

.setup-photo-preview{width:58px;height:58px;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:#fff}.setup-photo-preview img,.boat-photo img{width:100%;height:100%;object-fit:cover;display:block}.photo-placeholder:has(.setup-photo-preview img){border-style:solid;border-color:var(--blue)}

.topbar.auth-hidden{display:none}.auth-screen{min-height:calc(100vh - 36px);padding-top:10px}.auth-app-icon{width:132px!important;height:132px!important;object-fit:cover;border-radius:28px;box-shadow:0 16px 38px rgba(0,25,61,.26);filter:none!important}.auth-screen .auth-brand{padding-top:8px}html[data-theme="dark"] .auth-app-icon{filter:none!important}
.boat-empty-state{text-align:center;padding:28px 20px}.empty-state-symbol{width:110px;max-width:40%;margin:0 auto 14px;display:block}.boat-form-photo{margin-bottom:8px}.boat-form-photo input[type=file]{position:absolute;opacity:0;pointer-events:none}.setup-photo-preview img,.boat-photo img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.boat-photo{overflow:hidden}.boat-form-photo .setup-photo-preview{overflow:hidden}

/* Assicurazione e documenti nella configurazione */
.inline-section{margin:8px 0 4px;padding:16px;border:1px solid var(--line,#dbe6f1);border-radius:16px;background:rgba(13,91,212,.035)}
.inline-section h3,.setup-step h3{margin:0 0 8px;color:var(--navy,#0a2e5c)}
.setup-document-upload{margin-top:8px}
.setup-document-upload input{position:absolute;opacity:0;pointer-events:none}

.receipt-link{border:0;background:transparent;color:var(--primary);padding:8px 0;font-weight:700;text-align:left}.receipt-link:hover{text-decoration:underline}[data-boat-panel].hidden{display:none!important}

/* Hotfix testata e immagine profilo */
.topbar-logo{background:transparent!important;filter:none!important;object-fit:contain}
.avatar.has-photo{background-size:cover;background-position:center;background-repeat:no-repeat;color:transparent}
.account-avatar-button{width:58px;height:58px;min-width:58px;border:0;border-radius:50%;padding:0;overflow:hidden;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:900;cursor:pointer}
.account-avatar-button span,.account-avatar-button img{width:100%;height:100%;display:grid;place-items:center;object-fit:cover}
.profile-photo-actions{display:flex;gap:8px;align-items:center;margin:-2px 0 12px}.profile-photo-actions .outline,.profile-photo-actions .text-btn{flex:1;margin:0}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}


/* V18 - foto profilo e stato attivita */
.avatar.has-photo,.account-avatar-button{background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important}
.account-avatar-button img,#accountAvatarImage{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;border-radius:50%!important}
.item-card.done{display:block}

.sub-section-head{margin-top:22px}.additional-documents-list .document-actions{display:flex;gap:6px;align-items:center}.additional-documents-list .document-actions button{min-width:38px}.document-empty{padding:14px 4px}.app-dialog textarea{resize:vertical}
\n\n/* V23 - checklist ad accordion, una sola aperta alla volta */\n.checklist-accordion{padding:0;overflow:hidden;margin-bottom:12px}\n.checklist-toggle{width:100%;border:0;background:var(--card);color:var(--text);display:grid;grid-template-columns:minmax(0,1fr) auto 24px;align-items:center;gap:12px;padding:16px;text-align:left}\n.checklist-toggle:focus-visible{outline:3px solid rgba(13,91,212,.28);outline-offset:-3px}\n.checklist-title-block{min-width:0;display:flex;flex-direction:column;gap:3px}\n.checklist-title-block strong{font-family:Montserrat,Inter,sans-serif;font-size:1rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.checklist-compact-status{display:flex;flex-direction:column;align-items:flex-end;gap:2px;white-space:nowrap}\n.checklist-compact-status>span{font-weight:900;color:var(--navy);font-size:.92rem}\n.checklist-compact-status em{font-style:normal;font-size:.67rem;color:var(--muted)}\n.checklist-compact-status.has-problem>span,.checklist-compact-status.has-problem em{color:var(--danger)}\n.checklist-chevron{font-size:1.35rem;line-height:1;color:var(--blue);transform:rotate(0deg);transition:transform .18s ease}\n.checklist-accordion.is-open .checklist-chevron{transform:rotate(180deg)}\n.checklist-panel{padding:0 16px 16px;border-top:1px solid var(--line)}\n.checklist-panel[hidden]{display:none!important}\n.checklist-panel-intro{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:14px}\n.checklist-panel-intro p{margin:0;color:var(--muted);font-size:.84rem;line-height:1.4}\n.checklist-accordion.is-open{box-shadow:0 12px 30px rgba(10,46,92,.13);border-color:rgba(13,91,212,.35)}\nhtml[data-theme=\"dark\"] .checklist-toggle{background:var(--card)}\n@media(max-width:420px){.checklist-toggle{grid-template-columns:minmax(0,1fr) auto 20px;padding:14px}.checklist-title-block strong{font-size:.94rem}.checklist-compact-status em{display:none}.checklist-panel{padding:0 12px 14px}}\n
/* V24 - intestazioni checklist e checklist personalizzate */
.checklist-page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.checklist-toggle{grid-template-columns:minmax(0,1fr) auto 22px;padding:17px 18px;gap:14px}
.checklist-heading-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.checklist-name{font-family:Montserrat,Inter,sans-serif;font-size:1.04rem;line-height:1.24;color:var(--text);white-space:normal;overflow-wrap:anywhere}
.checklist-frequency{display:inline-flex;align-items:center;gap:7px;max-width:100%;font-size:.69rem;line-height:1}
.checklist-frequency>span{color:var(--muted);text-transform:uppercase;letter-spacing:.065em;font-weight:800}
.checklist-frequency>b{display:inline-block;max-width:100%;padding:5px 8px;border-radius:999px;background:color-mix(in srgb,var(--blue) 11%,var(--card));color:var(--blue);font-size:.7rem;white-space:normal}
.checklist-progress-summary{min-width:68px;display:grid;grid-template-columns:auto auto;align-items:baseline;justify-content:end;gap:2px 7px;text-align:right}
.checklist-progress-summary>strong{font-size:1.02rem;line-height:1;color:var(--navy);font-weight:900}
.checklist-progress-summary>span{font-size:.72rem;color:var(--muted);font-weight:800}
.checklist-progress-summary>em{grid-column:1/-1;font-style:normal;font-size:.65rem;color:var(--danger);font-weight:800}
.checklist-progress-summary.has-problem>strong{color:var(--danger)}
.checklist-accordion.is-custom{border-color:color-mix(in srgb,var(--blue) 28%,var(--line))}
.custom-checklist-label{display:inline-flex;margin-top:7px;padding:4px 8px;border-radius:999px;background:color-mix(in srgb,var(--cyan) 14%,var(--card));color:var(--blue);font-size:.67rem;font-weight:900;text-transform:uppercase;letter-spacing:.055em}
.custom-checklist-actions{display:flex;justify-content:flex-end;gap:8px;padding:0 0 12px}
.dialog-actions-row{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:18px}
.field-hint{display:block;margin-top:5px;color:var(--muted);font-size:.73rem;line-height:1.35}
#customChecklistForm textarea[name="items"]{resize:vertical;min-height:150px}
html[data-theme="dark"] .checklist-frequency>b{background:rgba(19,168,230,.15)}
@media(max-width:520px){
  .section-head.page-head{align-items:flex-start}
  .checklist-page-actions{width:100%;justify-content:flex-start;margin-top:4px}
  .checklist-page-actions .compact{flex:1}
  .checklist-toggle{grid-template-columns:minmax(0,1fr) auto 18px;padding:15px 14px;gap:9px}
  .checklist-name{font-size:.98rem}
  .checklist-progress-summary{min-width:61px;gap:2px 5px}
  .checklist-progress-summary>strong{font-size:.94rem}
  .checklist-progress-summary>span{font-size:.68rem}
  .checklist-progress-summary>em{font-size:.6rem}
  .checklist-frequency>span{display:none}
  .custom-checklist-actions{justify-content:stretch}
  .custom-checklist-actions button{flex:1}
  .dialog-actions-row{align-items:stretch;flex-direction:column-reverse}
  .dialog-actions-row button{width:100%}
}

/* V25 - titolo, frequenza e avanzamento sulla stessa riga */
.checklist-toggle{
  grid-template-columns:minmax(0,1fr) auto 22px;
  align-items:center;
}
.checklist-heading-copy{
  min-width:0;
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
  overflow:hidden;
}
.checklist-name{
  min-width:0;
  flex:1 1 auto;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  overflow-wrap:normal;
}
.checklist-frequency{
  flex:0 0 auto;
  white-space:nowrap;
  max-width:42%;
}
.checklist-frequency>b{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.checklist-progress-summary{
  flex:0 0 auto;
  white-space:nowrap;
}
@media(max-width:520px){
  .checklist-toggle{grid-template-columns:minmax(0,1fr) auto 18px;gap:7px;padding:14px 12px}
  .checklist-heading-copy{gap:7px}
  .checklist-name{font-size:.92rem}
  .checklist-frequency{max-width:36%}
  .checklist-frequency>b{padding:4px 6px;font-size:.64rem}
  .checklist-progress-summary{min-width:54px;gap:1px 4px}
  .checklist-progress-summary>strong{font-size:.88rem}
  .checklist-progress-summary>span{font-size:.64rem}
}
@media(max-width:360px){
  .checklist-frequency{max-width:31%}
  .checklist-progress-summary>span{display:none}
}

/* V26 - intestazione checklist a piena larghezza */
.checklist-toggle{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 20px;
  align-items:center;
  column-gap:12px;
  padding:15px 16px;
}
.checklist-heading-copy{
  min-width:0;
  width:100%;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  overflow:hidden;
}
.checklist-name{
  min-width:0;
  flex:1 1 auto;
  color:#111827;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.checklist-frequency{
  flex:0 0 auto;
  max-width:42%;
  white-space:nowrap;
}
.checklist-frequency>span{display:none}
.checklist-frequency>b{
  display:block;
  max-width:100%;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(19,168,230,.13);
  color:#0d8fc5;
  font-size:.69rem;
  font-weight:850;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.checklist-progress-summary{
  min-width:76px;
  display:flex;
  flex-direction:row;
  align-items:baseline;
  justify-content:flex-end;
  gap:6px;
  text-align:right;
  white-space:nowrap;
}
.checklist-progress-summary>strong{
  color:var(--navy);
  font-size:1rem;
  line-height:1;
  font-weight:900;
}
.checklist-progress-summary>span{
  color:var(--muted);
  font-size:.69rem;
  font-weight:800;
}
.checklist-progress-summary>em{
  display:none;
}
html[data-theme="dark"] .checklist-name{color:#fff}
html[data-theme="dark"] .checklist-frequency>b{background:rgba(19,168,230,.18);color:#59d0ff}
html[data-theme="dark"] .checklist-progress-summary>strong{color:#fff}
@media(max-width:520px){
  .checklist-toggle{grid-template-columns:minmax(0,1fr) auto 18px;column-gap:7px;padding:13px 11px}
  .checklist-heading-copy{gap:6px}
  .checklist-name{font-size:.9rem}
  .checklist-frequency{max-width:38%}
  .checklist-frequency>b{padding:4px 6px;font-size:.61rem}
  .checklist-progress-summary{min-width:60px;gap:4px}
  .checklist-progress-summary>strong{font-size:.88rem}
  .checklist-progress-summary>span{font-size:.6rem}
}
@media(max-width:360px){
  .checklist-frequency{max-width:34%}
  .checklist-progress-summary{min-width:50px}
  .checklist-progress-summary>span{display:none}
}

/* V27 - identita MBM powered by Capmec Marine */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.brand-lockup-capmec{flex:1;min-width:0;max-width:360px}
.topbar-brand-image{display:block;width:min(330px,100%);height:48px;object-fit:contain;object-position:left center;border-radius:6px}
.auth-brand-banner{display:block;width:min(680px,96%);height:auto;margin:0 auto 18px;border-radius:18px;box-shadow:0 18px 42px rgba(0,28,67,.24)}
.onboarding-brand-banner{display:block;width:min(620px,94%);height:auto;margin:0 auto 18px;border-radius:18px;box-shadow:0 14px 34px rgba(0,28,67,.18)}
.auth-screen .auth-brand{max-width:780px}
.auth-screen .auth-brand h2{margin-top:8px}
.install-app-icon{object-fit:cover;background:#05234a}
@media(max-width:640px){
  .topbar-brand-image{width:230px;height:44px}
  .brand-lockup-capmec{max-width:240px}
  .auth-brand-banner,.onboarding-brand-banner{width:100%;border-radius:14px}
}
@media(max-width:390px){
  .topbar-brand-image{width:188px;height:40px}
  .brand-lockup-capmec{max-width:195px}
}
/* V28 - gestione dotazioni */
.equipment-section{margin:16px 0;padding:14px;border:1px solid #d9e5e9;border-radius:16px;background:#f8fbfc}.equipment-section-head{display:flex;flex-direction:column;gap:3px;margin-bottom:10px}.equipment-section-head small{color:#687983;font-size:.76rem}.equipment-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.equipment-add-row input{min-width:0;margin:0}.custom-equipment-list{display:grid;gap:8px;margin-top:10px}.custom-equipment-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid #d9e5e9;border-radius:12px;background:white}.custom-equipment-row label{display:flex;align-items:center;gap:8px;min-width:0;font-weight:700;font-size:.82rem}.custom-equipment-row label span{overflow-wrap:anywhere}.danger-icon{width:32px;height:32px;border:0;border-radius:50%;background:#fff0ee;color:#b53831;font-size:1.2rem;font-weight:900;flex:0 0 auto}.empty-equipment{margin:0;color:#687983;font-size:.8rem}.compact-head{align-items:center}.equipment-summary{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.equipment-chip{display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;border-radius:999px;background:#e5f5fc;color:#0878a5;font-size:.76rem;font-weight:800;border:1px solid #c6e8f5}.equipment-summary-section{padding-bottom:16px}
body.dark .equipment-section{background:#102b47;border-color:#244763}body.dark .custom-equipment-row{background:#0b223a;border-color:#294b67}body.dark .equipment-chip{background:#123d60;border-color:#235b80;color:#62d1ff}body.dark .danger-icon{background:#4a2428;color:#ffb1ab}
@media(max-width:420px){.equipment-add-row{grid-template-columns:1fr}.equipment-add-row button{width:100%}}
