.dialog{display:flex;flex-direction:column;overflow:hidden}.dialog-head{flex-shrink:0}.dialog-body{min-height:0;overflow-y:auto;padding-right:3px;overscroll-behavior:contain}.dialog>.dialog-actions{flex-shrink:0}.dialog-body .dialog-actions{position:sticky;bottom:0;background:#faf9f5;padding:13px 0 3px;z-index:2}.favorites{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 22px}.favorites .btn{min-height:37px;font-size:.8rem;padding:7px 12px}.favorites-label{font-size:.75rem;color:#7f8c85;margin-right:4px}.btn.primary:hover{background:linear-gradient(120deg,#365e66,#12343f)}.icon-btn:hover{background:#e9eee3}.row:hover{background:#f4f5ed}.metric-label{font-weight:500}.metric .icon{transition:transform .3s}.metric:hover .icon{transform:rotate(-8deg) scale(1.1)}.empty>.icon{animation:softPulse 4s ease-in-out infinite}.dialog-body .detail-list dd{word-break:break-word}.metric-foot{line-height:1.5}.chart .bar.negative{background:linear-gradient(#b78f79,#9f6659)}
html[data-motion=reduced] *,html[data-motion=reduced] *:before,html[data-motion=reduced] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html[data-theme=dark]{color-scheme:dark}html[data-theme=dark] body{background:#112a33;color:#e7efea}html[data-theme=dark] .sidebar{background:#0c222b;border-color:#29444a}html[data-theme=dark] .topbar{background:#112a33eb;border-color:#31464b}html[data-theme=dark] .topbar-title strong{color:#edf4ed}html[data-theme=dark] .panel,html[data-theme=dark] .metric:not(.dark){background:linear-gradient(130deg,#1a3942,#15323c);border-color:#355058}html[data-theme=dark] .metric.dark{background:linear-gradient(120deg,#34606a,#234d58);border-color:#68807a}html[data-theme=dark] .muted,html[data-theme=dark] .page-head p,html[data-theme=dark] .row-main small,html[data-theme=dark] .row-end small,html[data-theme=dark] .metric-label,html[data-theme=dark] .metric-foot,html[data-theme=dark] .panel-head p,html[data-theme=dark] .chart-bottom,html[data-theme=dark] .subtle-note,html[data-theme=dark] .detail-list dt{color:#b5c8c7}html[data-theme=dark] .btn:not(.primary):not(.gold-btn),html[data-theme=dark] .icon-btn{background:#25444c;border-color:#43616a;color:#edf0e9}html[data-theme=dark] .btn.quiet{background:transparent;border-color:transparent}html[data-theme=dark] .field input,html[data-theme=dark] .field select,html[data-theme=dark] .field textarea,html[data-theme=dark] .period{background-color:#183741;color:#edf3eb;border-color:#4c666d}html[data-theme=dark] .dialog,html[data-theme=dark] .dialog-body .dialog-actions{background:#17353e;border-color:#49616a;color:#e9f1ec}html[data-theme=dark] .row,html[data-theme=dark] .detail-list>div,html[data-theme=dark] .chart-bottom{border-color:#36515a}html[data-theme=dark] .row:hover{background:#21424b}html[data-theme=dark] .row-icon{background:#2b4d50;color:#bfd0ba}html[data-theme=dark] .gold-icon{background:#4a4b38;color:#e0c58a}html[data-theme=dark] .attention-card,html[data-theme=dark] .sidebar-card,html[data-theme=dark] .step{background:#244348;border-color:#49605b}html[data-theme=dark] .attention-card p,html[data-theme=dark] .sidebar-card p,html[data-theme=dark] .step small{color:#bdcdc3}html[data-theme=dark] .mobile-nav{background:#122d37ed;border-color:#44606a}html[data-theme=dark] .mobile-nav button{color:#c0cdc6}html[data-theme=dark] .mobile-nav button.active{background:#36575c;color:#f0dfb7}html[data-theme=dark] .nav button:not(.active){color:#b6c9c4}html[data-theme=dark] .nav button:hover{background:#29464e}html[data-theme=dark] .chart-y{background:#18363f;color:#b4c8c4}html[data-theme=dark] .chart{background:repeating-linear-gradient(to top,transparent 0,transparent 44px,#33505a 45px,#33505a 46px)}html[data-theme=dark] .bar-group span,html[data-theme=dark] .chart-legend{color:#b4c8c4}html[data-theme=dark] .donut:before{background:#18363f}html[data-theme=dark] .donut-center small,html[data-theme=dark] .donut-legend button,html[data-theme=dark] .donut-legend strong{color:#d0dcd3}html[data-theme=dark] .chart-bottom strong{color:#dae6dc}html[data-theme=dark] .pill{background:#2e574d;color:#cbe9d8}html[data-theme=dark] .pill.pending{background:#5a5034;color:#f1dcaa}html[data-theme=dark] .demo-strip{background:#3f3b53;color:#e0d7ef}html[data-theme=dark] .demo-strip button{color:#e0d7ef}html[data-theme=dark] .search-box{border-color:#4a646b}html[data-theme=dark] .search-box input{color:#e2eee7}html[data-theme=dark] .footer-line{color:#98b1ac}html[data-theme=dark] .loading{background:#112a33}
@media(max-width:700px){#expense-form .form-grid,#money-fields>.form-grid{grid-template-columns:1fr 1fr;gap:0 12px}#expense-form .form-grid>.field:nth-child(n+3){grid-column:1/-1}.field input[type=date]{min-width:0;padding:12px 7px}.dialog h2{font-size:1.5rem}.dialog{padding:21px 17px}.dialog-body{padding-right:4px}.detail-list dt,.detail-list dd{font-size:.875rem}.favorites{gap:7px}.favorites-label{width:100%}.favorites .btn{font-size:.75rem;min-height:39px}.dialog-head{gap:12px;margin-bottom:16px}}

/* Phase 6–7 carryovers: avoid repeated phone headings and keep labels readable. */
html[data-theme=dark] .settings-photo{--settings-photo-bg:#112a33}
.settings-theme-card small,.settings-order-label small,.settings-favorite small,.settings-category-row small,.settings-executive-details,.settings-executive-actions .btn,.settings-section-head p{font-size:.875rem}
@media(max-width:700px){.report-document-header{padding-bottom:14px}.report-brand-subtitle{display:none}.report-header h2{font-size:1.7rem}.report-header{gap:10px}.settings-theme-card small,.settings-order-label small,.settings-favorite small,.settings-category-row small,.settings-executive-details,.settings-section-head p{font-size:.813rem}.settings-order-controls .icon-btn{width:40px;min-height:44px}.settings-theme-card strong,.settings-order-label strong,.settings-favorite strong,.settings-category-row strong{font-size:.875rem}.settings-executive-actions .btn{font-size:.8rem;min-height:46px}.settings-category-row .pill{font-size:.75rem}}

@media(max-width:700px){.report-brand{display:none}.report-title{padding-bottom:14px;gap:9px}.report-title h2{font-size:1.65rem;margin-bottom:6px}.report-title-meta{gap:5px}.report-title-meta>span:last-child{display:none}.report-hint{margin:13px 0;font-size:.813rem}.report-summary{margin:14px 0;padding:13px;gap:10px}.report-tabs{margin-bottom:14px}.report-date{font-size:.875rem}}
