/* Huanar v0.6.96: theme and navigation set are ONE setting. No per-page overrides. */
html[data-hn-theme="light"]{background:#f3f6f9;color:#263f4d;--green:#397b96;--deep:#245b78;--hn-label-color:#4e6677;--control-border:#cad8df}
html[data-hn-theme="light"] body{background:#f3f6f9;color:#263f4d}
html[data-hn-theme="light"] .hero{background:linear-gradient(120deg,#e4f0f6,#edf5f7,#f7fafc)}
html[data-hn-theme="light"] .quick-grid .quick,html[data-hn-theme="light"] .secondary{background:#e6f2f8;color:#245b78}
html[data-hn-theme="light"] .quick-grid .quick:before{background:#5b93ad}
html[data-hn-theme="light"] .positive{color:#27718c}
html[data-hn-theme="light"] .bottom{background:#fff}
html[data-hn-theme="dark"]{background:#15231d;color:#e6f4eb;--green:#2c9965;--deep:#a6e8c1;--hn-label-color:#b4d5c1;--control-border:#476959;color-scheme:dark}
html[data-hn-theme="dark"] body{background:#15231d;color:#e6f4eb}
html[data-hn-theme="dark"] .card,html[data-hn-theme="dark"] dialog,html[data-hn-theme="dark"] #onboarding{background:#21352b;color:#e6f4eb;box-shadow:0 4px 24px #09171044}
html[data-hn-theme="dark"] .hero{background:linear-gradient(120deg,#244e37,#304b35,#4b4934)}
html[data-hn-theme="dark"] :is(.money-box,.home-budget-summary,.hero .home-budget-summary,.hero .home-budget-unset,.month-trigger,.setting,.quick-grid .quick,.manage-card,.huanar-select-trigger,.huanar-select-popup,.huanar-select-option,.scope-trigger,.scope-menu,.scope-menu button,.date-picker-dialog,.custom-date-trigger){background:#2c4435;color:#e5f4e9;border-color:#456752}
html[data-hn-theme="dark"] :is(.scope-menu button.picked,.huanar-select-option.selected){background:transparent;color:#a7edbe;}
html[data-hn-theme="dark"] :is(.scope-menu button.picked,.huanar-select-option.selected)::before{background:#315c40;color:#baf0c7;}
html[data-hn-theme="dark"] :is(.scope-menu button[data-scope],.huanar-select-option):not(:last-child)::after{background:#456752;}
html[data-hn-theme="light"] :is(.scope-trigger,.huanar-select-trigger){background:linear-gradient(100deg,#f2f8fa,#e3f1f6);border-color:#bddce8;color:#245b78;}
html[data-hn-theme="light"] :is(.scope-menu button.picked,.huanar-select-option.selected){background:transparent;color:#245b78;}
html[data-hn-theme="light"] :is(.scope-menu button.picked,.huanar-select-option.selected)::before{background:#d9edf5;color:#357c96;}
html[data-hn-theme="dark"] :is(.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea,.field>.huanar-select-shell,dialog input:not([type=checkbox]):not([type=radio]),dialog select,dialog textarea){background-color:#243a2d;color:#e6f4eb;border-color:#537361}
html[data-hn-theme="dark"] :is(.sub,.field,.kicker,.money-box small,.tx-info small,.date-label,.home-budget-values small,.hero .home-budget-heading strong,.hero .home-budget-unset span:first-child){color:#bad5c2}
html[data-hn-theme="dark"] .bottom{background:#1e3327;border-color:#456752}
html[data-hn-theme="dark"] .bottom button{color:#a9d5b7}
html[data-hn-theme="dark"] .bottom button.active{color:#d5ffdf}
html[data-hn-theme="dark"] .tx{border-color:#3b5648}
html[data-hn-theme="dark"] .primary{background:#2b9962;color:#fff}
html[data-hn-theme="dark"] .secondary{background:#3a5d47;color:#e2f5e8}
html[data-hn-theme="dark"] #edit-dialog .dialog-head{background:#21352b;box-shadow:0 1px 0 #456752}
html[data-hn-theme="dark"] .positive{color:#89e9b0}
html[data-hn-theme="dark"] .negative{color:#ff9885}
/* Responsive translation lengths: do not let translated labels make controls overflow. */
html[lang="vi"] .quick strong,html[lang="en"] .quick strong,html[lang="th"] .quick strong{font-size:clamp(12px,2.6vw,15px);overflow-wrap:anywhere}
.hn-ui-settings .field{margin:12px 0 18px}.hn-ui-settings .hn-ledger-currency{font-size:14px;color:var(--hn-label-color);margin:0 0 18px}
.hn-ui-settings .huanar-select-trigger{min-height:52px}
