/* HouseFlow experience system: shared typography, touch targets and form composition. */
html body.hf-mobile-app[data-ui="v5"] {
 --hf7-radius:18px;--hf7-gap:16px;--hf7-danger:#b33f35;
 font-size:14px;line-height:1.5;
}
html body.hf-mobile-app[data-ui="v5"] :is(h1,h2,h3,button,input,select,textarea) {font-family:inherit!important}
html body.hf-mobile-app[data-ui="v5"] h1 {font-size:28px!important;font-weight:750!important;line-height:1.15!important;letter-spacing:-.8px!important}
html body.hf-mobile-app[data-ui="v5"] h2 {font-size:18px!important;font-weight:700!important;letter-spacing:-.4px!important}
html body.hf-mobile-app[data-ui="v5"] h3 {font-size:15px!important;font-weight:650!important}
html body.hf-mobile-app[data-ui="v5"] :is(.hf2-pagehead,.hf4-welcome) p {font-size:12px!important;line-height:1.5!important}
html body.hf-mobile-app[data-ui="v5"] :is(input,select,textarea) {font-weight:400!important}
html body.hf-mobile-app[data-ui="v5"] :is(button,.hf4-add-expense,.hf2-headlink) {font-weight:650!important}
html body.hf-mobile-app[data-ui="v5"] :is(a,button,summary,input,select,textarea):focus-visible {outline:3px solid #4c81ee!important;outline-offset:3px!important}
html body.hf-mobile-app[data-ui="v5"] :is(.hf2-headlink,.hf4-add-expense,.hf-settings-actions button,.hf-trips-primary-action,.hf-create-actions button) {min-height:48px!important;border-radius:14px!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-home {gap:14px!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-welcome h1 {font-size:29px!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-home-balance {padding:21px!important;min-height:210px!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-balance-copy strong {font-size:clamp(28px,8.9vw,40px)!important;font-weight:750!important;white-space:nowrap;font-variant-numeric:tabular-nums}
html body.hf-mobile-app[data-ui="v5"] .hf4-balance-copy p {font-size:11px!important;max-width:225px!important;line-height:1.45!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-balance-copy a {max-width:100%!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-balance-art {width:125px!important;height:125px!important;right:0!important;top:16px!important;opacity:.85!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-home-status>a {min-width:0}
html body.hf-mobile-app[data-ui="v5"] .hf4-home-status>a+a strong {font-size:18px!important;letter-spacing:-.6px;white-space:nowrap}
html body.hf-mobile-app[data-ui="v5"] .hf4-home-status>a+a .hf4-status-icon {display:none}
html body.hf-mobile-app[data-ui="v5"] .hf4-home-status div>span {font-size:10px!important;white-space:normal!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-month-progress {font-size:11px!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-section-title {margin-top:3px!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-shortcuts>a {padding:15px!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-shortcuts strong {font-size:13px!important;font-weight:650!important}
html body.hf-mobile-app[data-ui="v5"] .hf2-summary-hero {padding:19px!important}
html body.hf-mobile-app[data-ui="v5"] .hf2-person-amount {font-weight:700!important}
html body.hf-mobile-app[data-ui="v5"] .hf2-person-top strong {font-weight:650!important}
html body.hf-mobile-app[data-ui="v5"] .hf2-summary-hero-row strong {font-weight:750!important}
html body.hf-mobile-app[data-ui="v5"] .hf2-exp-card-top {align-items:flex-start!important}
html body.hf-mobile-app[data-ui="v5"] .hf2-exp-card-id {min-width:0!important}
html body.hf-mobile-app[data-ui="v5"] .hf2-exp-card-id>div {min-width:0!important}
html body.hf-mobile-app[data-ui="v5"] .hf2-exp-card h3 {overflow-wrap:anywhere;line-height:1.4!important}
html body.hf-mobile-app[data-ui="v5"] .hf2-exp-card-total {flex-shrink:0}
html body.hf-mobile-app[data-ui="v5"] .hf2-exp-card-total strong {font-weight:700!important}
html body.hf-mobile-app[data-ui="v5"] .hf7-filter-count {font-size:11px;color:var(--hf4-sub);margin:7px 2px 0!important;min-height:16px}
html body.hf-mobile-app[data-ui="v5"] .hf2-empty {padding:24px 20px!important;font-size:13px!important;border-radius:var(--hf7-radius)!important}
html body.hf-mobile-app[data-ui="v5"] .hf2-exp-tabs button {min-height:44px!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-exp-details>summary {min-height:44px!important}
html body.hf-mobile-app[data-ui="v5"] .hf2-exp-dates strong {font-weight:600!important}
/* Quick entry: original controls in a clearer order, with explicit editable defaults. */
html body.hf-mobile-app[data-ui="v5"] .hf7-redundant-preview {display:none!important}
html body.hf-mobile-app[data-ui="v5"] .hf-create-screen:has(.hf7-quick-form) .hf-create-hero {padding:0!important;margin:0 0 16px!important}
html body.hf-mobile-app[data-ui="v5"] .hf-create-screen:has(.hf7-quick-form) .hf-create-hero-top {margin:0!important}
html body.hf-mobile-app[data-ui="v5"] .hf-create-screen:has(.hf7-quick-form) .hf-create-form-card {border:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}
html body.hf-mobile-app[data-ui="v5"] .hf7-quick-form {display:flex!important;flex-direction:column!important;gap:12px!important}
html body.hf-mobile-app[data-ui="v5"] .hf7-quick-form>.hf-create-section {background:var(--hf4-paper)!important;border:1px solid var(--hf4-line)!important;border-radius:20px!important;padding:17px!important}
html body.hf-mobile-app[data-ui="v5"] .hf7-quick-form>.hf-create-section>.hf-create-grid {display:flex!important;flex-direction:column!important;gap:16px!important}
html body.hf-mobile-app[data-ui="v5"] .hf7-amount-field {border-bottom:1px solid var(--hf4-line);padding-bottom:10px}
html body.hf-mobile-app[data-ui="v5"] .hf7-amount-field label {font-size:11px!important;color:var(--hf4-sub)!important}
html body.hf-mobile-app[data-ui="v5"] .hf7-amount-field #amount_display {background:transparent!important;border:0!important;border-radius:8px!important;font-size:36px!important;font-weight:700!important;letter-spacing:-1px!important;padding:7px 0!important;height:61px!important;color:var(--hf4-ink)!important}
html body.hf-mobile-app[data-ui="v5"] .hf7-amount-field #amount_display::placeholder {color:#8090a6!important}
html body.hf-mobile-app[data-ui="v5"] .hf7-split-field {padding:10px 12px;border-radius:12px;background:var(--hf4-soft)}
html body.hf-mobile-app[data-ui="v5"] .hf7-split-field label {font-size:10px!important;color:var(--hf4-sub)!important;margin:0!important}
html body.hf-mobile-app[data-ui="v5"] .hf7-split-field input {border:0!important;background:transparent!important;padding:4px 0!important;min-height:28px!important;font-size:12px!important;font-weight:600!important}
html body.hf-mobile-app[data-ui="v5"] .hf7-form-option {border:1px solid var(--hf4-line);border-radius:16px;background:var(--hf4-paper);overflow:clip}
html body.hf-mobile-app[data-ui="v5"] .hf7-form-option>summary {display:flex;align-items:center;list-style:none;gap:12px;padding:14px;min-height:74px;cursor:pointer}
html body.hf-mobile-app[data-ui="v5"] .hf7-form-option>summary::-webkit-details-marker {display:none}
html body.hf-mobile-app[data-ui="v5"] .hf7-option-icon {width:36px;height:38px;display:grid;place-items:center;border-radius:12px;background:#e4f3ec;color:#23856a;flex-shrink:0}
html body.hf-mobile-app[data-ui="v5"] .hf7-form-option:nth-of-type(3) .hf7-option-icon {background:#ede7f9;color:#8257c3}
html body.hf-mobile-app[data-ui="v5"] .hf7-form-option:nth-of-type(4) .hf7-option-icon {background:#fff0e5;color:#b66e37}
html body.hf-mobile-app[data-ui="v5"] .hf7-option-icon svg {width:21px;height:21px}
html body.hf-mobile-app[data-ui="v5"] .hf7-form-option summary>span:nth-child(2) {min-width:0}
html body.hf-mobile-app[data-ui="v5"] .hf7-form-option strong {font-size:13px;font-weight:650;display:block;color:var(--hf4-ink)}
html body.hf-mobile-app[data-ui="v5"] .hf7-form-option small {font-size:11px;line-height:1.4;color:var(--hf4-sub);display:block;margin-top:3px}
html body.hf-mobile-app[data-ui="v5"] .hf7-caret {margin-left:auto;color:var(--hf4-sub);transition:transform .2s}
html body.hf-mobile-app[data-ui="v5"] .hf7-form-option[open]>summary .hf7-caret {transform:rotate(180deg)}
html body.hf-mobile-app[data-ui="v5"] .hf7-form-option>.hf-create-section {padding:2px 15px 16px!important;border:0!important;margin:0!important}
html body.hf-mobile-app[data-ui="v5"] .hf7-form-option #hf-fixed-period-section:not([hidden]) {border-top:1px solid var(--hf4-line)!important;padding-top:15px!important}
html body.hf-mobile-app[data-ui="v5"] .hf7-quick-form .hf-create-actions {padding:4px 0 0!important;margin:0!important}
html body.hf-mobile-app[data-ui="v5"] .hf7-quick-form .hf-create-actions a {min-height:44px!important;background:transparent!important;border:0!important;color:var(--hf4-sub)!important}
html body.hf-mobile-app[data-ui="v5"] .hf7-quick-form [aria-invalid="true"] {border:1px solid var(--hf7-danger)!important;outline-color:var(--hf7-danger)!important}
html body.hf-mobile-app[data-ui="v5"] .hf7-field-error {color:var(--hf7-danger)!important;font-size:11px!important;display:block;margin-top:5px;line-height:1.4}
html body.hf-mobile-app[data-ui="v5"] button[aria-busy="true"] {opacity:.7;cursor:progress}
html body.hf-mobile-app[data-ui="v5"].hf7-keyboard-open .bottom-nav-shell,html body.hf-mobile-app[data-ui="v5"].hf7-keyboard-open .hf4-list-add {display:none!important}
html body.hf-mobile-app[data-ui="v5"] input,html body.hf-mobile-app[data-ui="v5"] textarea {scroll-margin:100px 0 140px}
html body.hf-mobile-app[data-ui="v5"] .hf-create-field:has([readonly]) input {cursor:default}
html body.hf-mobile-app[data-ui="v5"] .bottom-nav-shell .bottom-nav.mobile-nav.bottom-nav-premium.bottom-nav-clean .bottom-nav-icon svg {stroke-width:1.8!important;width:22px!important;height:22px!important;fill:none!important}
html body.hf-mobile-app[data-ui="v5"] .bottom-nav-shell .bottom-nav.mobile-nav.bottom-nav-premium.bottom-nav-clean .bottom-nav-item.is-active {background:var(--hf4-soft)!important;color:var(--hf4-blue)!important}
html body.hf-mobile-app[data-ui="v5"] .bottom-nav-shell .bottom-nav.mobile-nav.bottom-nav-premium.bottom-nav-clean .bottom-nav-item :is(svg,.bottom-nav-label) {color:inherit!important}
html body.hf-mobile-app[data-ui="v5"] .bottom-nav-label {font-weight:600!important}
html body.hf-mobile-app[data-ui="v5"] .hf2-summary-bars>span {transition:width .35s ease!important}
html body.hf-mobile-app[data-ui="v5"] .hf2-toast {border-radius:14px!important;padding:14px 18px!important;max-width:calc(100% - 32px)!important;bottom:90px!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-balance-art {animation-duration:8s}
html body.hf-mobile-app[data-ui="v5"][data-theme="dark"] {--hf7-danger:#ffac9f;--hf4-blue:#9abaff}
html body.hf-mobile-app[data-ui="v5"][data-theme="dark"] .hf7-option-icon {background:#224638;color:#8ce0bf}
@media(max-width:370px){html body.hf-mobile-app[data-ui="v5"] .hf4-balance-art{width:100px!important;height:100px!important;top:20px!important}html body.hf-mobile-app[data-ui="v5"] .hf4-home-status>a+a strong{font-size:17px!important}}
@media(prefers-reduced-motion:reduce){html body.hf-mobile-app[data-ui="v5"] *,html body.hf-mobile-app[data-ui="v5"] *::before,html body.hf-mobile-app[data-ui="v5"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Content remains visible throughout entry transitions and during full-page capture. */
html body.hf-mobile-app[data-ui="v5"] .hf4-enter {opacity:1!important;animation-name:hf7-arrive!important}
@keyframes hf7-arrive {from{transform:translateY(7px)}to{transform:translateY(0)}}
html body.hf-mobile-app[data-ui="v5"] .hf7-quick-form .hf7-split-field #split_preview {border:0!important;background:transparent!important;padding:4px 0!important;min-height:27px!important;height:auto!important;font-size:12px!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-balance-copy strong {max-width:100%;overflow-wrap:normal}
html body.hf-mobile-app[data-ui="v5"].hf7-large-balance .hf4-balance-art {opacity:.15!important}
html body.hf-mobile-app[data-ui="v5"] .hf-create-screen:has(.hf7-quick-form) .hf-create-kicker {margin-top:0!important}

html body.hf-mobile-app[data-ui="v5"] .hf4-home-status>a+a {background:#e8eefc!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-home-status>a+a strong {color:#31568f!important}
html body.hf-mobile-app[data-ui="v5"][data-theme="dark"] {--hf4-blue:#315eea}
html body.hf-mobile-app[data-ui="v5"][data-theme="dark"] .bottom-nav-shell .bottom-nav.mobile-nav.bottom-nav-premium.bottom-nav-clean .bottom-nav-item.is-active {background:#263d60!important;color:#b8d2ff!important}
