/* Tema chiaro condiviso: stessa gerarchia visiva della Home. */
html[data-bilancio-theme="light"] .app-section-header{color:#18314a!important}
html[data-bilancio-theme="light"] .app-section-brand{color:#18314a!important}html[data-bilancio-theme="light"] .app-section-title{color:#667b8f!important}

html[data-bilancio-theme="light"] .scheduled-page{background:radial-gradient(circle at 100% 0,#e8f4f6 0,transparent 28rem),#f6f8fb!important;color:#18314a!important}
html[data-bilancio-theme="light"] .scheduled-hero{background:linear-gradient(135deg,#e7f5f2,#edf2fa)!important;border-color:#c7dde3!important;box-shadow:0 12px 28px rgba(32,62,87,.09)!important;color:#18314a!important}
html[data-bilancio-theme="light"] .scheduled-hero .eyebrow{color:#167166!important}html[data-bilancio-theme="light"] .scheduled-hero p:last-child{color:#587084!important}
html[data-bilancio-theme="light"] .scheduled-panel{background:linear-gradient(145deg,#fff,#f5f9fb)!important;border-color:#c9dce6!important;box-shadow:0 10px 25px rgba(32,62,87,.07)!important}
html[data-bilancio-theme="light"] .scheduled-panel-head{border-color:#d8e4ea!important}html[data-bilancio-theme="light"] .scheduled-panel-head h2{color:#18314a!important}html[data-bilancio-theme="light"] .scheduled-total{background:#e5f4f0!important;color:#176d5a!important}
html[data-bilancio-theme="light"] .scheduled-item{background:#fff!important;border-color:#d8e4ea!important;color:#18314a!important}html[data-bilancio-theme="light"] .scheduled-item p{color:#18314a!important}html[data-bilancio-theme="light"] .scheduled-item small,html[data-bilancio-theme="light"] .scheduled-empty-page{color:#667b8f!important}
html[data-bilancio-theme="light"] .scheduled-icon.income-icon{background:#e4f6ef!important;color:#218a70!important}html[data-bilancio-theme="light"] .scheduled-icon.expense-icon{background:#fbe8e8!important;color:#d65855!important}
html[data-bilancio-theme="light"] .scheduled-remove{border-color:#e7bebb!important;background:#fffafa!important;color:#b84945!important}html[data-bilancio-theme="light"] .scheduled-postpone{border-color:#a7d4ce!important;background:#f5fcfa!important;color:#176d5a!important}
html[data-bilancio-theme="light"] .postpone-modal{background:linear-gradient(145deg,#fff,#f0f7f8)!important;border-color:#c7dde3!important;box-shadow:0 1.5rem 4rem rgba(32,62,87,.2)!important;color:#18314a!important}html[data-bilancio-theme="light"] .postpone-modal .eyebrow{color:#167166!important}html[data-bilancio-theme="light"] .postpone-modal p:not(.eyebrow),html[data-bilancio-theme="light"] .postpone-modal label{color:#587084!important}html[data-bilancio-theme="light"] .postpone-modal input{background:#fff!important;border-color:#cbdce5!important;color:#18314a!important;color-scheme:light!important}html[data-bilancio-theme="light"] .postpone-cancel{border-color:#c7d8e3!important;color:#33536b!important}html[data-bilancio-theme="light"] .postpone-modal-close{background:#eef5f7!important;color:#18314a!important}

html[data-bilancio-theme="light"] .add-page{background:radial-gradient(circle at 100% 0,#e8f4f6 0,transparent 28rem),#f6f8fb!important;color:#18314a!important}html[data-bilancio-theme="light"] .section-brand{color:#18314a!important}html[data-bilancio-theme="light"] .section-page-title{color:#667b8f!important}
html[data-bilancio-theme="light"] .form-intro{background:linear-gradient(135deg,#e7f5f2,#edf2fa)!important;border:1px solid #c7dde3!important;box-shadow:0 12px 28px rgba(32,62,87,.09)!important;color:#18314a!important}html[data-bilancio-theme="light"] .form-intro:after{background:rgba(84,199,171,.14)!important}html[data-bilancio-theme="light"] .form-intro .eyebrow{color:#167166!important}html[data-bilancio-theme="light"] .form-intro h1{color:#18314a!important}html[data-bilancio-theme="light"] .form-intro .sub{color:#587084!important}
html[data-bilancio-theme="light"] .movement-type{background:#eaf1f4!important}html[data-bilancio-theme="light"] .movement-type button{color:#667b8f!important}html[data-bilancio-theme="light"] .movement-type button.active{background:#fff!important;color:#18314a!important;box-shadow:0 3px 10px rgba(32,62,87,.1)!important}
html[data-bilancio-theme="light"] .movement-form label,html[data-bilancio-theme="light"] .subcategory-field legend{color:#405d72!important}html[data-bilancio-theme="light"] .movement-form input,html[data-bilancio-theme="light"] .movement-form select{background:#fff!important;border-color:#cbdce5!important;color:#18314a!important}html[data-bilancio-theme="light"] .movement-form input[name=amount]{color:#176d5a!important}
html[data-bilancio-theme="light"] .category-options button,html[data-bilancio-theme="light"] .subcategory-option span{background:#fff!important;border-color:#d4e1e8!important;color:#29465d!important}html[data-bilancio-theme="light"] .category-options button.active,html[data-bilancio-theme="light"] .subcategory-option input:checked+span{background:#e7f6f2!important;border-color:#75cdbb!important;color:#176d5a!important}html[data-bilancio-theme="light"] .category-icon{background:#eef4f6!important}html[data-bilancio-theme="light"] .subcategory-field,html[data-bilancio-theme="light"] .schedule-switch{background:#f5f9fb!important;border-color:#d2e1e8!important}html[data-bilancio-theme="light"] .schedule-switch label{color:#18314a!important}html[data-bilancio-theme="light"] .schedule-switch small{color:#667b8f!important}html[data-bilancio-theme="light"] .movement-form .recurrence-fields select{background:#fff!important;border-color:#cbdce5!important;color:#18314a!important}

html[data-bilancio-theme="light"] .analysis-hero,html[data-bilancio-theme="light"] .years-hero{background:linear-gradient(135deg,#e7f5f2,#edf2fa)!important;border-color:#c7dde3!important;box-shadow:0 12px 28px rgba(32,62,87,.09)!important;color:#18314a!important}html[data-bilancio-theme="light"] .analysis-hero .eyebrow,html[data-bilancio-theme="light"] .years-hero .eyebrow{color:#167166!important}html[data-bilancio-theme="light"] .analysis-hero p:last-child,html[data-bilancio-theme="light"] .years-hero .sub{color:#587084!important}
html[data-bilancio-theme="light"] .period-control,html[data-bilancio-theme="light"] .year-control{background:#eaf3f5!important;border-color:#c6dce3!important}html[data-bilancio-theme="light"] .period-control label{color:#406077!important}html[data-bilancio-theme="light"] .period-control select,html[data-bilancio-theme="light"] .year-trigger{background:#fff!important;color:#18314a!important;box-shadow:0 3px 10px rgba(32,62,87,.08)!important}
html[data-bilancio-theme="light"] .analysis-card,html[data-bilancio-theme="light"] .analysis-panel,html[data-bilancio-theme="light"] .year-card,html[data-bilancio-theme="light"] .year-panel{background:linear-gradient(145deg,#fff,#f8fbfc)!important;border-color:#d5e2e9!important;color:#18314a!important;box-shadow:0 10px 25px rgba(32,62,87,.07)!important}html[data-bilancio-theme="light"] .analysis-card.total,html[data-bilancio-theme="light"] .year-card.balance{background:linear-gradient(135deg,#e6f5f2,#edf2fa)!important;border:1px solid #c7dde3!important;color:#18314a!important}html[data-bilancio-theme="light"] .analysis-card.total span,html[data-bilancio-theme="light"] .analysis-card.total small,html[data-bilancio-theme="light"] .analysis-card.total strong,html[data-bilancio-theme="light"] .year-card.balance span,html[data-bilancio-theme="light"] .year-card.balance small,html[data-bilancio-theme="light"] .year-card.balance strong{color:#18314a!important}
html[data-bilancio-theme="light"] .analysis-card span,html[data-bilancio-theme="light"] .analysis-card small,html[data-bilancio-theme="light"] .year-card span,html[data-bilancio-theme="light"] .year-card small,html[data-bilancio-theme="light"] .section-kicker,html[data-bilancio-theme="light"] .category-name small{color:#667b8f!important}html[data-bilancio-theme="light"] .analysis-panel:before{opacity:.35!important}html[data-bilancio-theme="light"] .panel-title,html[data-bilancio-theme="light"] .panel-heading{border-color:#d9e4ea!important}html[data-bilancio-theme="light"] .big-donut:after{background:#fff!important}html[data-bilancio-theme="light"] .breakdown-item,html[data-bilancio-theme="light"] .bar-row,html[data-bilancio-theme="light"] .transaction{color:#18314a!important}html[data-bilancio-theme="light"] .breakdown-item:hover,html[data-bilancio-theme="light"] .transaction:hover,html[data-bilancio-theme="light"] .transaction:nth-child(odd),html[data-bilancio-theme="light"] .bar-row{background:#f4f8fa!important}

html[data-bilancio-theme="light"] .year-options{background:#fff!important;border-color:#cbdce5!important;box-shadow:0 14px 28px rgba(32,62,87,.14)!important}html[data-bilancio-theme="light"] .year-options button{color:#29465d!important}html[data-bilancio-theme="light"] .year-options button:hover,html[data-bilancio-theme="light"] .year-options button.active{background:#e5f4f0!important;color:#176d5a!important}html[data-bilancio-theme="light"] .category-type{background:#eaf1f4!important;border-color:#d6e2e8!important}html[data-bilancio-theme="light"] .category-type button.active{background:#fff!important;color:#18314a!important}html[data-bilancio-theme="light"] .category-table-wrap{border-color:#d6e2e8!important}html[data-bilancio-theme="light"] .category-table th,html[data-bilancio-theme="light"] .category-panel[data-type="expense"] .category-table th{background:#f0f6f8!important;color:#587084!important}html[data-bilancio-theme="light"] .category-table td{border-color:#e0e9ee!important;color:#18314a!important}html[data-bilancio-theme="light"] .years-note{background:#eef5f7!important;color:#587084!important}html[data-bilancio-theme="light"] .annual-trend{background:#fff!important;border-color:#d5e2e9!important;color:#18314a!important}html[data-bilancio-theme="light"] .annual-gridline{stroke:#dfe8ed!important}

html[data-bilancio-theme="light"] .profile-drawer{background:linear-gradient(160deg,#f7fbfc,#edf4f8 66%,#e7eef5)!important;color:#18314a!important;box-shadow:-20px 0 46px rgba(32,62,87,.14)!important}html[data-bilancio-theme="light"] .profile-drawer-backdrop{background:rgba(26,52,73,.25)!important}html[data-bilancio-theme="light"] .profile-drawer-kicker,html[data-bilancio-theme="light"] .profile-drawer-back{color:#187d6b!important}html[data-bilancio-theme="light"] .profile-drawer-close{background:#fff!important;color:#18314a!important;border-color:#c7d8e3!important}html[data-bilancio-theme="light"] .profile-drawer-identity strong,html[data-bilancio-theme="light"] .profile-detail-card strong,html[data-bilancio-theme="light"] .security-password strong,html[data-bilancio-theme="light"] .profile-drawer-view h2{color:#18314a!important}html[data-bilancio-theme="light"] .profile-drawer-identity span:not(.profile-drawer-avatar),html[data-bilancio-theme="light"] .profile-drawer-copy,html[data-bilancio-theme="light"] .profile-detail-card span,html[data-bilancio-theme="light"] .security-password span,html[data-bilancio-theme="light"] .profile-password-form label{color:#667b8f!important}html[data-bilancio-theme="light"] .profile-drawer-divider{background:#d6e2ea!important}html[data-bilancio-theme="light"] .profile-drawer-option,html[data-bilancio-theme="light"] .settings-row,html[data-bilancio-theme="light"] .profile-detail-card,html[data-bilancio-theme="light"] .security-password,html[data-bilancio-theme="light"] .appearance-choices,html[data-bilancio-theme="light"] .language-choices,html[data-bilancio-theme="light"] .appearance-switch,html[data-bilancio-theme="light"] .profile-password-form{background:#fff!important;color:#18314a!important;border-color:#d6e2ea!important}html[data-bilancio-theme="light"] .profile-drawer-option-icon,html[data-bilancio-theme="light"] .settings-row-icon{background:#e6f4f1!important;color:#187d6b!important}html[data-bilancio-theme="light"] .profile-drawer-option b,html[data-bilancio-theme="light"] .settings-row b,html[data-bilancio-theme="light"] .appearance-choices button,html[data-bilancio-theme="light"] .language-choices button{color:#18314a!important}html[data-bilancio-theme="light"] .appearance-choices button.is-selected,html[data-bilancio-theme="light"] .language-choices button.is-selected{background:#6fd3bc!important;color:#12384b!important}html[data-bilancio-theme="light"] .profile-password-form input{background:#f7fafc!important;color:#18314a!important;border-color:#d6e2ea!important}

/* Struttura della sidebar: contenuto ordinato e logout sempre raggiungibile. */
.profile-drawer,.profile-drawer *{box-sizing:border-box}.profile-drawer{height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;padding:22px 20px calc(18px + env(safe-area-inset-bottom))!important}.profile-drawer-views{min-height:0!important;overflow:hidden!important}.profile-drawer-view.is-active{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;padding-right:2px}.profile-drawer-view[data-profile-panel="main"].is-active{display:grid!important;grid-template-rows:minmax(0,1fr) auto;gap:14px;overflow:hidden!important;padding-bottom:0!important}.profile-drawer-view[data-profile-panel="main"] .profile-drawer-options{margin-top:18px;overflow-y:auto;padding-right:2px}.profile-drawer-logout{position:static!important;min-height:54px!important;margin:0!important}.profile-drawer-option,.settings-row{min-height:54px!important;margin:8px 0!important;border-radius:12px!important}.settings-row{align-items:center;padding:12px!important}.profile-drawer-option{padding:11px 10px!important}.profile-drawer-option:focus-visible,.settings-row-button:focus-visible,.profile-drawer-close:focus-visible,.profile-drawer-back:focus-visible{outline:3px solid rgba(111,211,188,.55);outline-offset:2px}.profile-drawer-back{margin:18px 0 16px!important}.profile-drawer-copy{margin-bottom:15px!important}.settings-group+.settings-group{margin-top:16px!important}@media(max-width:520px){.profile-drawer{padding:18px 14px calc(14px + env(safe-area-inset-bottom))!important}.profile-drawer-identity{margin:20px 0 17px!important}.profile-drawer-option,.settings-row{min-height:50px!important}.settings-row{padding:10px!important}}

html[data-bilancio-theme="light"] .balance-editor,html[data-bilancio-theme="light"] .currency-choices{background:#fff!important;border-color:#d6e2ea!important}html[data-bilancio-theme="light"] .balance-editor label,html[data-bilancio-theme="light"] .currency-choices button small{color:#667b8f!important}html[data-bilancio-theme="light"] .balance-editor input{background:#f7fafc!important;color:#18314a!important;border-color:#d6e2ea!important}html[data-bilancio-theme="light"] .currency-choices button{color:#18314a!important}
