
/* LBRank Life Dashboard — command center, housing, money ranks, records and recaps */
.life-command-center,
.life-progress-insights{
    position:relative;
    z-index:1;
    margin:12px 0;
    padding:13px;
    border-radius:17px;
    border:1px solid rgba(var(--theme-primary-rgb),.18);
    background:linear-gradient(180deg,rgba(var(--theme-background-rgb),.055),rgba(255,255,255,.022));
    box-shadow:0 12px 28px rgba(0,0,0,.14);
}
.life-command-head,
.life-section-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
}
.life-command-head>div,
.life-section-heading>div{min-width:0}
.life-command-head span,
.life-section-heading>div>span{
    display:block;
    color:var(--ui-subheader,var(--theme-text-muted));
    font-size:8.5px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.life-command-head h2,
.life-section-heading h3{
    margin:2px 0 0;
    color:var(--ui-card-title,var(--theme-text));
    font-size:15px;
    line-height:1.15;
}
.life-command-head>button,
.life-section-heading>button,
.life-tool-card button,
.life-scenario-card button,
.life-money-actions button{
    min-height:32px;
    border-radius:10px;
    border:1px solid rgba(var(--theme-primary-rgb),.22);
    background:rgba(var(--theme-primary-rgb),.075);
    color:var(--ui-card-title,var(--theme-text));
    font:inherit;
    font-size:9px;
    font-weight:850;
    padding:6px 9px;
}
.life-command-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    margin-top:11px;
}
.life-command-stat{
    min-width:0;
    padding:9px 10px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.055);
    background:rgba(255,255,255,.025);
    display:grid;
    gap:2px;
}
.life-command-stat>span,
.life-command-change>span,
.life-command-brief>span{
    color:var(--ui-subheader,var(--theme-text-muted));
    font-size:8px;
    font-weight:850;
    letter-spacing:.045em;
    text-transform:uppercase;
}
.life-command-stat>strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:13px;
    line-height:1.2;
    overflow-wrap:anywhere;
}
.life-command-stat>small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8px;
    line-height:1.3;
}
.life-command-change,
.life-command-brief{
    width:100%;
    display:grid;
    grid-template-columns:78px minmax(0,1fr) 14px;
    align-items:center;
    gap:8px;
    margin-top:7px;
    padding:9px 10px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.055);
    background:rgba(255,255,255,.022);
    color:inherit;
    text-align:left;
    font:inherit;
}
.life-command-change strong,
.life-command-brief strong{
    min-width:0;
    color:var(--ui-card-title,var(--theme-text));
    font-size:9.5px;
    line-height:1.35;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.life-command-change i,
.life-command-brief i{
    color:var(--ui-special-text,var(--theme-primary));
    font-style:normal;
    font-size:18px;
    text-align:right;
}

.life-dashboard-info-card{
    border-color:rgba(var(--theme-primary-rgb),.28)!important;
    background:linear-gradient(135deg,rgba(var(--theme-background-rgb),.10),rgba(255,255,255,.025))!important;
}

.life-hub{
    display:grid;
    gap:12px;
    padding-bottom:4px;
}
.life-hub-tabs{
    position:sticky;
    top:-1px;
    z-index:5;
    display:flex;
    gap:5px;
    overflow-x:auto;
    padding:5px;
    border:1px solid rgba(var(--theme-primary-rgb),.15);
    border-radius:13px;
    background:rgba(7,10,16,.94);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    scrollbar-width:none;
}
.life-hub-tabs::-webkit-scrollbar{display:none}
.life-hub-tabs button{
    flex:1 0 auto;
    min-height:34px;
    border:0;
    border-radius:9px;
    padding:7px 10px;
    background:transparent;
    color:var(--ui-card-description,var(--theme-text-muted));
    font:inherit;
    font-size:9px;
    font-weight:900;
    white-space:nowrap;
}
.life-hub-tabs button.active{
    background:rgba(var(--theme-primary-rgb),.13);
    color:var(--ui-special-text,var(--theme-primary));
    box-shadow:inset 0 0 0 1px rgba(var(--theme-primary-rgb),.20);
}
.life-hub-panel{display:none;gap:11px}
.life-hub-panel.active{display:grid}
.life-section-heading{
    margin-top:3px;
    align-items:center;
}
.life-section-heading.compact{margin:0}
.life-inline-status{
    min-height:13px;
    margin:0;
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:9px;
}

.life-change-list{
    display:grid;
    border:1px solid rgba(var(--theme-primary-rgb),.13);
    border-radius:14px;
    overflow:hidden;
    background:rgba(255,255,255,.018);
}
.life-change-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto 18px;
    align-items:center;
    gap:8px;
    min-height:43px;
    padding:8px 10px;
    border-top:1px solid rgba(255,255,255,.05);
}
.life-change-row:first-child{border-top:0}
.life-change-row>div{display:grid;gap:1px;min-width:0}
.life-change-row strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:9.5px;
}
.life-change-row small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8px;
}
.life-change-row>span{
    color:var(--ui-card-title,var(--theme-text));
    font-size:10px;
    font-weight:850;
    text-align:right;
}
.life-change-row>i{
    font-style:normal;
    font-size:15px;
    text-align:center;
    color:var(--ui-card-description,var(--theme-text-muted));
}
.life-change-row.good>i{color:#61e3a0}
.life-change-row.bad>i{color:#ff7373}

.life-buyer-meter,
.life-tool-card,
.life-month-recap-card,
.life-forecast-card{
    display:grid;
    gap:10px;
    padding:12px;
    border:1px solid rgba(var(--theme-primary-rgb),.15);
    border-radius:15px;
    background:rgba(255,255,255,.022);
}
.life-buyer-score{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:3px 10px;
}
.life-buyer-score>span{
    grid-column:1;
    color:var(--ui-subheader,var(--theme-text-muted));
    font-size:8.5px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.05em;
}
.life-buyer-score>strong{
    grid-column:2;
    grid-row:1 / span 2;
    color:var(--ui-card-title,var(--theme-text));
    font-size:30px;
    line-height:1;
}
.life-buyer-score>small{
    grid-column:1;
    color:var(--ui-card-title,var(--theme-text));
    font-size:11px;
    font-weight:800;
}
.life-buyer-bar,
.life-money-progress{
    height:7px;
    border-radius:999px;
    background:rgba(255,255,255,.065);
    overflow:hidden;
}
.life-buyer-bar i,
.life-money-progress i{
    display:block;
    height:100%;
    border-radius:inherit;
    background:var(--theme-primary);
    box-shadow:0 0 14px rgba(var(--theme-primary-rgb),.38);
}
.life-buyer-meter.good .life-buyer-bar i{background:#61e3a0}
.life-buyer-meter.bad .life-buyer-bar i{background:#ff7373}
.life-buyer-meter.mixed .life-buyer-bar i{background:#ffc764}
.life-buyer-factors{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
}
.life-buyer-factors>div{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:2px 6px;
    padding:8px;
    border-radius:10px;
    background:rgba(255,255,255,.025);
    border:1px solid rgba(255,255,255,.045);
}
.life-buyer-factors span{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8px;
}
.life-buyer-factors strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:9.5px;
    text-align:right;
}
.life-buyer-factors small{
    grid-column:1/-1;
    color:var(--ui-subheader,var(--theme-text-muted));
    font-size:7.5px;
}
.life-buyer-meter>p,
.life-forecast-card>p{
    margin:0;
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8.5px;
    line-height:1.45;
}

.life-overview-grid,
.life-result-grid,
.life-recap-grid,
.life-recap-finance{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
}
.life-overview-grid>div,
.life-result-grid>div,
.life-recap-grid>div,
.life-recap-finance>div{
    min-width:0;
    display:grid;
    gap:3px;
    padding:9px;
    border-radius:11px;
    border:1px solid rgba(255,255,255,.05);
    background:rgba(255,255,255,.02);
}
.life-overview-grid span,
.life-result-grid span,
.life-recap-grid span,
.life-recap-finance span{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8px;
}
.life-overview-grid strong,
.life-result-grid strong,
.life-recap-grid strong,
.life-recap-finance strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:10.5px;
    overflow-wrap:anywhere;
}
.life-result-grid small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7.5px;
}
.life-overview-headline,
.life-recap-market{
    display:grid;
    gap:4px;
    margin-top:7px;
    padding:10px;
    border-radius:12px;
    border:1px solid rgba(var(--theme-primary-rgb),.11);
    background:rgba(var(--theme-background-rgb),.04);
}
.life-overview-headline span,
.life-recap-market span{
    color:var(--ui-subheader,var(--theme-text-muted));
    font-size:8px;
    font-weight:900;
    text-transform:uppercase;
}
.life-overview-headline strong,
.life-recap-market strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:10px;
    line-height:1.4;
}
.life-recap-market small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8px;
    line-height:1.4;
}

.life-scenario-form,
.life-wait-grid,
.life-money-form{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    padding:11px;
    border:1px solid rgba(var(--theme-primary-rgb),.13);
    border-radius:14px;
    background:rgba(255,255,255,.018);
}
.life-scenario-form label,
.life-wait-grid label,
.life-money-form label,
.life-wide-field,
.life-range-field{
    display:grid;
    gap:5px;
    min-width:0;
}
.life-scenario-form label>span,
.life-wait-grid label>span,
.life-money-form label>span,
.life-wide-field>span,
.life-range-field>span{
    color:var(--ui-subheader,var(--theme-text-muted));
    font-size:8px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.life-scenario-form input,
.life-scenario-form select,
.life-wait-grid input,
.life-wait-grid select,
.life-money-form input,
.life-wide-field select,
.life-range-field input,
.life-month-input,
.life-money-actions input{
    width:100%;
    min-width:0;
    height:38px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.09);
    background:#171b24;
    color:#f7f9fc;
    padding:7px 9px;
    font:inherit;
    font-size:10.5px;
}
.life-scenario-form .life-primary-btn,
.life-money-form .life-primary-btn{
    align-self:end;
    min-height:38px;
    background:var(--theme-primary);
    color:#071018;
    border-color:rgba(var(--theme-primary-rgb),.55);
}
.life-suffix-input{
    display:grid;
    grid-template-columns:minmax(0,1fr) 30px;
    align-items:center;
    height:38px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.09);
    background:#171b24;
    overflow:hidden;
}
.life-suffix-input input{
    border:0!important;
    border-radius:0!important;
    height:100%!important;
    background:transparent!important;
}
.life-suffix-input i{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-style:normal;
    font-size:10px;
    text-align:center;
}

.life-scenario-list,
.life-money-goal-list{
    display:grid;
    gap:8px;
}
.life-scenario-card,
.life-money-goal{
    display:grid;
    gap:9px;
    padding:11px;
    border-radius:14px;
    border:1px solid rgba(var(--theme-primary-rgb),.13);
    background:rgba(255,255,255,.02);
}
.life-scenario-card>header,
.life-money-goal>header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
}
.life-scenario-card>header>div:first-child,
.life-money-goal>header>div{
    min-width:0;
    display:grid;
    gap:2px;
}
.life-scenario-card>header span,
.life-money-goal>header span{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8px;
    font-weight:850;
    text-transform:uppercase;
}
.life-scenario-card>header strong,
.life-money-goal>header strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:13px;
}
.life-score-pill{
    flex:0 0 auto;
    min-width:46px;
    min-height:42px;
    display:grid;
    place-items:center;
    padding:5px 7px;
    border-radius:12px;
    background:rgba(var(--theme-primary-rgb),.10);
    color:var(--ui-special-text,var(--theme-primary));
    font-size:16px;
    font-weight:950;
}
.life-score-pill small{
    display:block;
    font-size:7px;
    color:var(--ui-card-description,var(--theme-text-muted));
}
.life-scenario-metrics{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
}
.life-scenario-metrics>div{
    min-width:0;
    display:grid;
    gap:2px;
    padding:7px 8px;
    border-radius:10px;
    background:rgba(255,255,255,.023);
    border:1px solid rgba(255,255,255,.045);
}
.life-scenario-metrics span{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7.5px;
}
.life-scenario-metrics strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:9.5px;
}
.life-scenario-metrics small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7.5px;
}
.life-scenario-card>footer{
    display:flex;
    justify-content:flex-end;
    gap:6px;
}
.life-scenario-card button.danger,
.life-money-actions button.danger{
    border-color:rgba(255,90,90,.22);
    background:rgba(255,70,70,.07);
    color:#ff8c8c;
}

.life-tool-card{margin-top:3px}
.life-range-field input[type="range"]{
    height:26px;
    padding:0;
    border:0;
    background:transparent;
    accent-color:var(--theme-primary);
}
.life-range-field>span{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}
.life-range-field b{
    color:var(--ui-special-text,var(--theme-primary));
    font-size:10px;
}
.life-result-grid .positive,
.life-scenario-metrics .positive,
.life-recap-hero .positive{color:#61e3a0}
.life-result-grid .negative,
.life-scenario-metrics .negative,
.life-recap-hero .negative{color:#ff7373}

.life-wait-summary{
    display:grid;
    gap:3px;
    padding:9px 10px;
    border-radius:11px;
    background:rgba(var(--theme-background-rgb),.055);
    border:1px solid rgba(var(--theme-primary-rgb),.12);
}
.life-wait-summary strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:10.5px;
}
.life-wait-summary small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8px;
}
.life-compare-table{
    display:grid;
    margin-top:8px;
    border-radius:12px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.055);
}
.life-compare-table>div{
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(76px,.8fr) minmax(76px,.8fr);
    gap:5px;
    align-items:center;
    min-height:34px;
    padding:6px 8px;
    border-top:1px solid rgba(255,255,255,.05);
}
.life-compare-table>div:first-child{border-top:0}
.life-compare-table .head{
    background:rgba(var(--theme-background-rgb),.06);
}
.life-compare-table span{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8px;
}
.life-compare-table strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:8.5px;
    text-align:right;
}
.life-wait-deltas{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    margin-top:7px;
}
.life-wait-deltas span{
    padding:4px 6px;
    border-radius:8px;
    background:rgba(255,255,255,.035);
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7.5px;
}

.life-money-goal>header>b{
    color:var(--ui-special-text,var(--theme-primary));
    font-size:14px;
}
.life-money-values{
    display:grid;
    grid-template-columns:auto auto 1fr;
    align-items:baseline;
    gap:6px;
}
.life-money-values strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:15px;
}
.life-money-values span,
.life-money-values small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8px;
}
.life-money-values small{text-align:right}
.life-money-actions{
    display:grid;
    grid-template-columns:auto auto minmax(90px,1fr) auto auto;
    gap:5px;
    align-items:end;
}
.life-money-actions label{
    display:grid;
    gap:2px;
}
.life-money-actions label>span{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7px;
    text-transform:uppercase;
}
.life-money-actions input{height:32px;padding:5px 7px}

.life-forecast-top{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
}
.life-forecast-top>div{
    display:grid;
    gap:2px;
}
.life-forecast-top span{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8px;
    text-transform:uppercase;
    font-weight:850;
}
.life-forecast-top strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:16px;
}
.life-forecast-top small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8px;
}
.life-forecast-top>b{
    min-width:54px;
    padding:7px;
    border-radius:12px;
    background:rgba(var(--theme-background-rgb),.09);
    color:var(--ui-special-text,var(--theme-primary));
    font-size:17px;
    text-align:center;
}
.life-forecast-top>b small{
    display:block;
    font-size:7px;
    margin-top:1px;
}
.life-confidence-band{
    position:relative;
    height:10px;
    border-radius:999px;
    background:rgba(255,255,255,.055);
    overflow:hidden;
}
.life-confidence-band i{
    position:absolute;
    top:0;
    bottom:0;
}
.life-confidence-band .optimistic{
    left:8%;
    right:50%;
    background:rgba(var(--theme-background-rgb),.22);
}
.life-confidence-band .conservative{
    left:50%;
    right:8%;
    background:rgba(var(--theme-background-rgb),.12);
}
.life-confidence-band .expected{
    width:4px;
    left:calc(50% - 2px);
    z-index:2;
    background:var(--theme-primary);
    box-shadow:0 0 10px rgba(var(--theme-primary-rgb),.65);
}
.life-forecast-range{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
}
.life-forecast-range>div{
    display:grid;
    gap:2px;
}
.life-forecast-range>div:nth-child(2){text-align:center}
.life-forecast-range>div:nth-child(3){text-align:right}
.life-forecast-range span{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7.5px;
}
.life-forecast-range strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:9px;
}
.life-record-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
}
.life-record-grid>div{
    min-width:0;
    display:grid;
    gap:2px;
    padding:9px;
    border:1px solid rgba(255,255,255,.05);
    border-radius:11px;
    background:rgba(255,255,255,.02);
}
.life-record-grid span{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8px;
}
.life-record-grid strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:11px;
}
.life-record-grid small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7.5px;
    line-height:1.35;
}

.life-progress-insights{
    display:grid;
    gap:10px;
}
.life-progress-insight-grid{
    display:grid;
    grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
    gap:8px;
}
.life-progress-insight-grid .life-forecast-card{height:100%}
.life-progress-insight-grid .life-record-grid{height:100%}

.life-month-input{
    width:auto;
    max-width:145px;
    height:34px;
    padding:5px 7px;
}
.life-month-recap-card>header{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:8px;
}
.life-month-recap-card>header span{
    color:var(--ui-subheader,var(--theme-text-muted));
    font-size:8px;
    font-weight:900;
    text-transform:uppercase;
}
.life-month-recap-card>header h3{
    margin:0;
    color:var(--ui-card-title,var(--theme-text));
    font-size:14px;
}
.life-recap-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:2px 8px;
    align-items:end;
    padding:10px;
    border-radius:12px;
    background:rgba(var(--theme-background-rgb),.05);
    border:1px solid rgba(var(--theme-primary-rgb),.11);
}
.life-recap-hero>span{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8px;
}
.life-recap-hero>strong{
    grid-column:2;
    grid-row:1 / span 2;
    font-size:19px;
}
.life-recap-hero>small{
    color:var(--ui-card-title,var(--theme-text));
    font-size:9px;
}
.life-recap-finance{margin-top:1px}

.life-empty-card{
    display:grid;
    gap:4px;
    min-height:76px;
    align-content:center;
    padding:12px;
    border-radius:13px;
    border:1px dashed rgba(var(--theme-primary-rgb),.18);
    background:rgba(255,255,255,.015);
}
.life-empty-card strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:10.5px;
}
.life-empty-card small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8.5px;
    line-height:1.45;
}

@media(max-width:700px){
    .life-progress-insight-grid{grid-template-columns:1fr}
}

@media(max-width:520px){
    .life-command-center,
    .life-progress-insights{padding:11px}
    .life-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .life-command-head h2{font-size:14px}
    .life-hub-tabs{margin-inline:-2px}
    .life-scenario-form,
    .life-wait-grid,
    .life-money-form{grid-template-columns:1fr}
    .life-scenario-form .life-primary-btn,
    .life-money-form .life-primary-btn{width:100%}
    .life-buyer-factors,
    .life-overview-grid,
    .life-result-grid,
    .life-recap-grid,
    .life-recap-finance,
    .life-record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .life-money-actions{
        grid-template-columns:repeat(2,auto) minmax(0,1fr) auto;
    }
    .life-money-actions .danger{
        grid-column:1/-1;
        width:100%;
    }
}

@media(max-width:390px){
    .life-command-grid{gap:6px}
    .life-command-stat{padding:8px}
    .life-command-stat>strong{font-size:12px}
    .life-command-change,
    .life-command-brief{grid-template-columns:70px minmax(0,1fr) 12px;padding-inline:8px}
    .life-buyer-factors{grid-template-columns:1fr}
    .life-scenario-metrics{grid-template-columns:1fr 1fr}
    .life-forecast-range strong{font-size:8.5px}
    .life-money-values{grid-template-columns:1fr auto}
    .life-money-values small{grid-column:1/-1;text-align:left}
}


/* Life Dashboard theme sync — 2026-10-08 */
.life-hub{
    position:relative;
    isolation:isolate;
    padding:2px;
}
.life-hub::before{
    content:"";
    position:absolute;
    z-index:-2;
    inset:-10px;
    border-radius:24px;
    background:
        radial-gradient(circle at 12% 0%, rgba(var(--theme-background-rgb),.16), transparent 34%),
        radial-gradient(circle at 96% 14%, rgba(var(--theme-background-deep-rgb),.12), transparent 31%),
        radial-gradient(circle at 48% 100%, rgba(var(--theme-background-glow-rgb),.055), transparent 44%);
    pointer-events:none;
}
.life-hub::after{
    content:"";
    position:absolute;
    z-index:-1;
    inset:0;
    border-radius:20px;
    border:1px solid rgba(var(--theme-primary-rgb),.08);
    box-shadow:inset 0 0 40px rgba(var(--theme-primary-rgb),.025);
    pointer-events:none;
}
.life-theme-hero{
    --life-live-primary:var(--theme-primary);
    --life-live-secondary:var(--theme-secondary);
    --life-live-glow:var(--theme-glow);
    position:relative;
    overflow:hidden;
    display:grid;
    grid-template-columns:68px minmax(0,1fr) 46px;
    align-items:center;
    gap:12px;
    min-height:92px;
    padding:12px 14px;
    border-radius:18px;
    border:1px solid rgba(var(--theme-primary-rgb),.34);
    background:
        linear-gradient(125deg,rgba(var(--theme-background-rgb),.17),rgba(var(--theme-background-deep-rgb),.075) 55%,rgba(5,8,14,.78)),
        rgba(7,10,16,.82);
    box-shadow:
        0 14px 36px rgba(0,0,0,.24),
        inset 0 0 26px rgba(var(--theme-primary-rgb),.06),
        0 0 22px rgba(var(--theme-primary-rgb),.08);
}
.life-theme-hero::before{
    content:"";
    position:absolute;
    width:130px;
    height:130px;
    right:-38px;
    top:-52px;
    border-radius:50%;
    border:1px solid rgba(var(--theme-glow-rgb),.14);
    box-shadow:
        0 0 28px rgba(var(--theme-primary-rgb),.12),
        inset 0 0 36px rgba(var(--theme-secondary-rgb),.08);
}
.life-theme-hero::after{
    content:"";
    position:absolute;
    left:76px;
    right:14px;
    bottom:0;
    height:1px;
    background:linear-gradient(90deg,var(--life-live-primary),transparent);
    opacity:.7;
}
.life-theme-orb{
    position:relative;
    width:62px;
    height:62px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:
        radial-gradient(circle,rgba(var(--theme-primary-rgb),.17),rgba(0,0,0,.2) 66%),
        rgba(0,0,0,.24);
    border:1px solid rgba(var(--theme-primary-rgb),.32);
    box-shadow:
        0 0 0 4px rgba(var(--theme-primary-rgb),.035),
        0 0 24px rgba(var(--theme-primary-rgb),.24),
        inset 0 0 18px rgba(var(--theme-glow-rgb),.08);
}
.life-theme-orb>span{
    position:absolute;
    inset:-5px;
    border-radius:50%;
    border:1px dashed rgba(var(--theme-primary-rgb),.34);
    animation:life-theme-orbit 16s linear infinite;
}
.life-theme-orb img{
    width:48px;
    height:48px;
    object-fit:contain;
    filter:drop-shadow(0 0 8px rgba(var(--theme-glow-rgb),.42));
}
@keyframes life-theme-orbit{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){
    .life-theme-orb>span{animation:none}
}
.life-theme-hero-copy{
    min-width:0;
    display:grid;
    gap:3px;
}
.life-theme-hero-copy>span{
    color:var(--ui-subheader,var(--theme-text-muted));
    font-size:8px;
    font-weight:950;
    letter-spacing:.09em;
    text-transform:uppercase;
}
.life-theme-hero-copy h3{
    margin:0;
    color:var(--ui-card-title,var(--theme-text));
    font-size:18px;
    line-height:1.05;
    text-shadow:0 0 16px rgba(var(--theme-special-text-rgb),.22);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.life-theme-hero-copy small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8.5px;
    line-height:1.35;
}
.life-theme-energy{
    position:relative;
    height:58px;
}
.life-theme-energy i{
    position:absolute;
    right:4px;
    width:5px;
    border-radius:999px;
    background:linear-gradient(180deg,var(--life-live-glow),var(--life-live-primary));
    box-shadow:0 0 10px rgba(var(--theme-primary-rgb),.38);
}
.life-theme-energy i:nth-child(1){height:24px;top:17px;right:29px;opacity:.45}
.life-theme-energy i:nth-child(2){height:42px;top:8px;right:17px;opacity:.72}
.life-theme-energy i:nth-child(3){height:56px;top:1px;right:5px;opacity:1}

.life-hub-tabs{
    border-color:rgba(var(--theme-primary-rgb),.24);
    background:
        linear-gradient(90deg,rgba(var(--theme-background-rgb),.055),rgba(var(--theme-background-deep-rgb),.03)),
        rgba(6,9,15,.93);
    box-shadow:0 7px 20px rgba(0,0,0,.16),inset 0 0 18px rgba(var(--theme-primary-rgb),.025);
}
.life-hub-tabs button.active{
    background:
        linear-gradient(135deg,rgba(var(--theme-primary-rgb),.22),rgba(var(--theme-secondary-rgb),.10));
    box-shadow:
        inset 0 0 0 1px rgba(var(--theme-primary-rgb),.34),
        0 0 14px rgba(var(--theme-primary-rgb),.09);
}
.life-hub-panel.active{
    animation:life-theme-panel-in .18s ease-out;
}
@keyframes life-theme-panel-in{
    from{opacity:.35;transform:translateY(3px)}
    to{opacity:1;transform:none}
}
@media(prefers-reduced-motion:reduce){
    .life-hub-panel.active{animation:none}
}
.life-buyer-meter,
.life-tool-card,
.life-month-recap-card,
.life-change-list,
.life-scenario-form,
.life-wait-grid,
.life-scenario-card,
.life-empty-card,
.life-record-grid>div{
    border-color:rgba(var(--theme-primary-rgb),.16);
}
.life-buyer-meter,
.life-tool-card,
.life-month-recap-card{
    background:
        linear-gradient(155deg,rgba(var(--theme-background-rgb),.045),rgba(var(--theme-background-deep-rgb),.018) 62%,rgba(255,255,255,.012));
    box-shadow:inset 0 1px 0 rgba(var(--theme-glow-rgb),.025);
}
.life-section-heading h3{
    text-shadow:0 0 13px rgba(var(--theme-special-text-rgb),.08);
}
.life-section-heading>button,
.life-command-head>button{
    border-color:rgba(var(--theme-primary-rgb),.30);
    background:linear-gradient(135deg,rgba(var(--theme-primary-rgb),.12),rgba(var(--theme-secondary-rgb),.06));
    color:var(--ui-special-text,var(--theme-primary));
}
.life-progress-insights.records-only{
    background:
        linear-gradient(145deg,rgba(var(--theme-background-rgb),.07),rgba(var(--theme-background-deep-rgb),.025)),
        rgba(255,255,255,.016);
}
.life-progress-insights.records-only #lifeProgressRecordsMini{
    width:100%;
}
.life-progress-insights.records-only .life-record-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
}
@media(max-width:700px){
    .life-progress-insights.records-only .life-record-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media(max-width:390px){
    .life-theme-hero{
        grid-template-columns:56px minmax(0,1fr) 28px;
        gap:9px;
        min-height:82px;
        padding:10px;
    }
    .life-theme-orb{width:52px;height:52px}
    .life-theme-orb img{width:40px;height:40px}
    .life-theme-hero-copy h3{font-size:16px}
    .life-theme-energy i:nth-child(1){display:none}
    .life-theme-energy i:nth-child(2){right:12px}
    .life-theme-energy i:nth-child(3){right:2px}
}


/* Home Compare redesign — 2026-10-08 */
.life-homes-overview{
    position:relative;
    overflow:hidden;
    display:grid;
    gap:11px;
    padding:14px;
    border:1px solid rgba(var(--theme-primary-rgb),.23);
    border-radius:17px;
    background:
        radial-gradient(circle at 100% 0%,rgba(var(--theme-background-rgb),.12),transparent 36%),
        linear-gradient(145deg,rgba(var(--theme-background-rgb),.075),rgba(var(--theme-background-deep-rgb),.028)),
        rgba(255,255,255,.015);
}
.life-homes-overview::after{
    content:"";
    position:absolute;
    right:-35px;
    bottom:-55px;
    width:130px;
    height:130px;
    border-radius:50%;
    border:1px solid rgba(var(--theme-primary-rgb),.12);
    box-shadow:inset 0 0 35px rgba(var(--theme-primary-rgb),.055);
    pointer-events:none;
}
.life-homes-overview-copy{
    display:grid;
    gap:3px;
    max-width:560px;
}
.life-homes-overview-copy>span{
    color:var(--ui-special-text,var(--theme-primary));
    font-size:8px;
    font-weight:950;
    letter-spacing:.09em;
    text-transform:uppercase;
}
.life-homes-overview-copy h3{
    margin:0;
    color:var(--ui-card-title,var(--theme-text));
    font-size:16px;
    line-height:1.2;
}
.life-homes-overview-copy small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8.5px;
    line-height:1.45;
}
.life-homes-baseline{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
}
.life-homes-baseline>div,
.life-homes-baseline-empty{
    display:grid;
    gap:2px;
    min-width:0;
    padding:8px 9px;
    border-radius:11px;
    border:1px solid rgba(255,255,255,.055);
    background:rgba(0,0,0,.17);
}
.life-homes-baseline span,
.life-homes-baseline-empty small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7.5px;
}
.life-homes-baseline strong,
.life-homes-baseline-empty strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:10px;
    overflow-wrap:anywhere;
}
.life-homes-baseline-empty{grid-column:1/-1}

.life-home-editor,
.life-home-compare-section{
    display:grid;
    gap:9px;
    padding:12px;
    border-radius:16px;
    border:1px solid rgba(var(--theme-primary-rgb),.15);
    background:rgba(255,255,255,.016);
}
.life-home-editor-actions{
    display:flex;
    align-items:center;
    gap:7px;
}
.life-home-editor-actions>small,
.life-compare-hint{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8px;
    white-space:nowrap;
}
.life-home-editor-actions>button{
    min-height:32px;
    border-radius:10px;
    border:1px solid rgba(var(--theme-primary-rgb),.28);
    background:rgba(var(--theme-primary-rgb),.09);
    color:var(--ui-special-text,var(--theme-primary));
    padding:6px 9px;
    font:inherit;
    font-size:9px;
    font-weight:850;
}
.life-scenario-form{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
    padding:0;
    border:0;
    background:transparent;
}
.life-form-group{
    display:grid;
    gap:8px;
    padding:10px;
    border-radius:13px;
    border:1px solid rgba(255,255,255,.055);
    background:rgba(0,0,0,.12);
}
.life-form-group-title{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    gap:8px;
}
.life-form-group-title>span{
    color:var(--ui-card-title,var(--theme-text));
    font-size:9.5px;
    font-weight:900;
}
.life-form-group-title>small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7.5px;
}
.life-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
}
.life-form-grid label{
    display:grid;
    gap:5px;
    min-width:0;
}
.life-form-grid label>span{
    color:var(--ui-subheader,var(--theme-text-muted));
    font-size:8px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.life-field-wide{grid-column:1/-1}
.life-form-grid input,
.life-form-grid select{
    width:100%;
    min-width:0;
    height:42px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.09);
    background:#171b24;
    color:#f7f9fc;
    padding:8px 10px;
    font:inherit;
    font-size:16px;
}
.life-money-field,
.life-percent-field{
    position:relative;
}
.life-money-field>i,
.life-percent-field>i{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:1;
    color:var(--ui-card-description,var(--theme-text-muted));
    font-style:normal;
    font-size:11px;
    pointer-events:none;
}
.life-money-field>i{left:10px}
.life-percent-field>i{right:10px}
.life-money-field input{padding-left:23px}
.life-percent-field input{padding-right:25px}
.life-home-cost-details{
    border:1px solid rgba(var(--theme-primary-rgb),.10);
    border-radius:12px;
    overflow:hidden;
    background:rgba(var(--theme-background-rgb),.025);
}
.life-home-cost-details summary{
    list-style:none;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    min-height:42px;
    padding:9px 10px;
    cursor:pointer;
    color:var(--ui-card-title,var(--theme-text));
    font-size:9px;
    font-weight:850;
}
.life-home-cost-details summary::-webkit-details-marker{display:none}
.life-home-cost-details summary::after{
    content:"+";
    color:var(--ui-special-text,var(--theme-primary));
    font-size:16px;
    line-height:1;
}
.life-home-cost-details[open] summary::after{content:"−"}
.life-home-cost-details summary small{
    margin-left:auto;
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7.5px;
}
.life-home-cost-details .life-form-grid{
    padding:0 10px 10px;
}
.life-save-home-btn{
    width:100%;
    min-height:44px!important;
    font-size:11px!important;
    letter-spacing:.035em;
    box-shadow:0 0 18px rgba(var(--theme-primary-rgb),.12);
}
.life-inline-status{
    min-height:16px;
    padding:0 2px;
    line-height:1.35;
}
.life-inline-status.success{color:#61e3a0}
.life-inline-status.error{color:#ff8585}
.life-inline-status.info{color:var(--ui-special-text,var(--theme-primary))}

.life-compare-scroll{
    width:100%;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    border:1px solid rgba(var(--theme-primary-rgb),.12);
    border-radius:13px;
    background:rgba(0,0,0,.12);
}
.life-compare-matrix{
    display:grid;
    grid-template-columns:104px repeat(var(--life-compare-count),minmax(118px,1fr));
    min-width:max(100%,calc(104px + var(--life-compare-count) * 118px));
}
.life-compare-matrix>div{
    min-width:0;
    padding:8px;
    border-right:1px solid rgba(255,255,255,.045);
    border-top:1px solid rgba(255,255,255,.045);
    display:grid;
    align-content:center;
    gap:2px;
}
.life-compare-matrix>div:nth-child(-n + 6){border-top:0}
.life-compare-corner,
.life-compare-home-head{
    min-height:54px;
    background:rgba(var(--theme-background-rgb),.045);
}
.life-compare-corner span,
.life-compare-label{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7.5px;
    font-weight:800;
}
.life-compare-home-head span{
    color:var(--ui-special-text,var(--theme-primary));
    font-size:7.5px;
    font-weight:900;
    text-transform:uppercase;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.life-compare-home-head strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:10px;
}
.life-compare-matrix>div>strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:9px;
    position:relative;
}
.life-compare-matrix>div>strong small{
    display:block;
    margin-top:2px;
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7px;
    font-weight:700;
}
.life-compare-matrix>div>strong.best{
    color:#61e3a0;
}
.life-compare-matrix>div>strong.best>b{
    display:inline-block;
    margin-left:4px;
    padding:2px 4px;
    border-radius:5px;
    background:rgba(97,227,160,.10);
    font-size:6.5px;
    text-transform:uppercase;
    vertical-align:1px;
}
.life-home-empty{min-height:86px}

.life-scenario-card.redesigned{
    gap:10px;
    padding:11px;
    border-color:rgba(var(--theme-primary-rgb),.17);
    background:
        linear-gradient(145deg,rgba(var(--theme-background-rgb),.045),rgba(var(--theme-background-deep-rgb),.018)),
        rgba(255,255,255,.012);
}
.life-scenario-card.redesigned>header{
    display:grid;
    grid-template-columns:32px minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
}
.life-home-card-number{
    width:32px;
    height:32px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:rgba(var(--theme-primary-rgb),.10);
    color:var(--ui-special-text,var(--theme-primary));
    font-size:9px;
    font-weight:950;
}
.life-home-card-title{
    display:grid;
    gap:1px;
    min-width:0;
}
.life-home-card-title>span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.life-home-card-title>small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7.5px;
}
.life-score-pill.good{color:#61e3a0;background:rgba(97,227,160,.08)}
.life-score-pill.mixed{color:#ffc764;background:rgba(255,199,100,.08)}
.life-score-pill.bad{color:#ff8585;background:rgba(255,100,100,.08)}
.life-home-payment-hero{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
}
.life-home-payment-hero>div{
    min-width:0;
    display:grid;
    gap:2px;
    padding:9px 10px;
    border-radius:11px;
    background:rgba(0,0,0,.16);
    border:1px solid rgba(255,255,255,.045);
}
.life-home-payment-hero span,
.life-home-detail-strip small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7.5px;
}
.life-home-payment-hero strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:14px;
}
.life-home-payment-hero strong small{
    font-size:7.5px;
    color:var(--ui-card-description,var(--theme-text-muted));
}
.life-home-detail-strip{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px;
}
.life-home-detail-strip>span{
    min-width:0;
    display:grid;
    gap:2px;
    padding:7px;
    border-radius:9px;
    background:rgba(255,255,255,.018);
    border:1px solid rgba(255,255,255,.04);
}
.life-home-detail-strip b{
    color:var(--ui-card-title,var(--theme-text));
    font-size:8.5px;
    overflow-wrap:anywhere;
}
.life-home-card-footnote{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}
.life-home-card-footnote>span{
    color:var(--ui-special-text,var(--theme-primary));
    font-size:8px;
    font-weight:900;
}
.life-home-card-footnote>small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7.5px;
    text-align:right;
}

@media(max-width:520px){
    .life-homes-baseline{grid-template-columns:repeat(2,minmax(0,1fr))}
    .life-home-editor-actions{display:grid;justify-items:end}
    .life-form-grid{grid-template-columns:1fr 1fr}
    .life-field-wide{grid-column:1/-1}
    .life-home-detail-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:390px){
    .life-form-grid{grid-template-columns:1fr}
    .life-field-wide{grid-column:auto}
    .life-home-payment-hero{grid-template-columns:1fr 1fr}
}


/* Home Compare compact rows — 2026-10-08 */
#infoDetailModal .info-detail-page,
#infoDetailModal .info-detail-body,
.life-hub,
.life-hub-panel,
.life-hub-panel[data-life-panel="homes"],
.life-home-editor,
.life-home-compare-section,
.life-scenario-form,
.life-form-group{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
}
#infoDetailModal .info-detail-page{
    overflow-x:hidden!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
}
.life-hub,
.life-hub-panel[data-life-panel="homes"]{
    overflow:visible!important;
    touch-action:pan-y;
}
.life-hub input:not([type="range"]),
.life-hub select,
.life-hub textarea{
    font-size:16px!important;
    max-width:100%;
}
.life-home-compare-section{padding:10px}
.life-compare-mobile{
    display:grid;
    width:100%;
    max-width:100%;
    border:1px solid rgba(var(--theme-primary-rgb),.14);
    border-radius:13px;
    overflow:hidden;
    background:rgba(0,0,0,.13);
}
.life-compare-mobile-head,
.life-compare-mobile-row{
    display:grid;
    grid-template-columns:minmax(0,1.42fr) minmax(55px,.72fr) minmax(55px,.72fr) 42px;
    align-items:center;
    gap:4px;
}
.life-compare-mobile-head{
    min-height:28px;
    padding:5px 7px;
    background:rgba(var(--theme-background-rgb),.065);
    border-bottom:1px solid rgba(var(--theme-primary-rgb),.12);
}
.life-compare-mobile-head span{
    min-width:0;
    color:var(--ui-subheader,var(--theme-text-muted));
    font-size:7px;
    font-weight:900;
    letter-spacing:.03em;
    text-transform:uppercase;
}
.life-compare-mobile-head span:not(:first-child){text-align:right}
.life-compare-mobile-row{
    min-height:51px;
    padding:6px 7px;
    border-top:1px solid rgba(255,255,255,.045);
}
.life-compare-mobile-row:first-of-type{border-top:0}
.life-compare-home{
    min-width:0;
    display:grid;
    grid-template-columns:22px minmax(0,1fr);
    align-items:center;
    gap:5px;
}
.life-compare-home>b{
    width:22px;
    height:22px;
    display:grid;
    place-items:center;
    border-radius:7px;
    background:rgba(var(--theme-primary-rgb),.10);
    color:var(--ui-special-text,var(--theme-primary));
    font-size:7px;
}
.life-compare-home>span{
    min-width:0;
    display:grid;
    gap:1px;
}
.life-compare-home strong{
    min-width:0;
    color:var(--ui-card-title,var(--theme-text));
    font-size:8.5px;
    line-height:1.1;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.life-compare-home small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:6.8px;
    line-height:1.1;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.life-compare-mobile-row>div:not(.life-compare-home){
    min-width:0;
    display:grid;
    justify-items:end;
    gap:1px;
    text-align:right;
}
.life-compare-mobile-row>div:not(.life-compare-home)>strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:8.3px;
    line-height:1.1;
    white-space:nowrap;
}
.life-compare-mobile-row>div:not(.life-compare-home)>small{
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:6.3px;
}
.life-compare-mobile-row>div.best>strong{color:#61e3a0}
.life-compare-mobile-row>.score{
    justify-items:center!important;
    text-align:center!important;
    padding:5px 2px;
    border-radius:8px;
    background:rgba(255,255,255,.025);
}
.life-compare-mobile-row>.score.good>strong{color:#61e3a0}
.life-compare-mobile-row>.score.mixed>strong{color:#ffc764}
.life-compare-mobile-row>.score.bad>strong{color:#ff8585}
.life-compare-note{
    margin:6px 2px 0;
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:7px;
    line-height:1.35;
}
.life-compare-hint{opacity:.8}
@media(max-width:390px){
    .life-home-editor,.life-home-compare-section{padding:9px}
    .life-compare-mobile-head,.life-compare-mobile-row{
        grid-template-columns:minmax(0,1.32fr) minmax(51px,.7fr) minmax(51px,.7fr) 39px;
        gap:3px;
    }
    .life-compare-mobile-row{padding-inline:5px}
    .life-compare-home{grid-template-columns:19px minmax(0,1fr);gap:4px}
    .life-compare-home>b{width:19px;height:19px;font-size:6px}
    .life-compare-home strong,
    .life-compare-mobile-row>div:not(.life-compare-home)>strong{font-size:7.8px}
}

/* Retire the old sideways comparison matrix. */
.life-compare-scroll,
.life-compare-matrix{display:none!important}


/* Homes vertical scroll repair — 2026-10-08
   Keep the modal itself as the only vertical scroll container. Inner Life
   Dashboard wrappers must not become nested scroll containers on iOS. */
#infoDetailModal .info-detail-page{
    min-height:0;
    max-height:100%;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
}
#infoDetailModal .info-detail-body,
.life-hub,
.life-hub-panel,
.life-hub-panel[data-life-panel="homes"],
.life-homes-overview,
.life-home-editor,
.life-home-compare-section,
.life-scenario-list,
.life-compare-mobile{
    overflow-y:visible!important;
    touch-action:pan-y;
}
.life-hub,
.life-hub-panel,
.life-hub-panel[data-life-panel="homes"]{
    overflow-x:visible!important;
}
#infoDetailModal .info-detail-body,
.life-hub,
.life-hub-panel[data-life-panel="homes"]{
    min-height:min-content;
}


/* Rank orb Life Dashboard button — 2026-10-08 */
.rank-life-dashboard-btn{
    position:absolute!important;
    left:14px;
    bottom:14px;
    z-index:8!important;
    min-width:42px;
    min-height:42px;
    display:flex;
    align-items:center;
    gap:7px;
    padding:8px 10px;
    border:1px solid rgba(var(--theme-primary-rgb),.30);
    border-radius:13px;
    background:
        linear-gradient(135deg,rgba(var(--theme-primary-rgb),.16),rgba(var(--theme-secondary-rgb),.08)),
        rgba(4,7,12,.76);
    color:var(--ui-card-title,var(--theme-text));
    box-shadow:
        0 8px 22px rgba(0,0,0,.30),
        inset 0 1px 0 rgba(255,255,255,.08),
        0 0 14px rgba(var(--theme-primary-rgb),.09);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    font:inherit;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
}
.rank-life-dashboard-btn:active{
    transform:scale(.96);
}
.rank-life-dashboard-icon{
    width:18px;
    height:18px;
    display:grid;
    place-items:center;
    flex:0 0 18px;
    color:var(--ui-special-text,var(--theme-primary));
}
.rank-life-dashboard-icon svg{
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    filter:drop-shadow(0 0 6px rgba(var(--theme-primary-rgb),.26));
}
.rank-life-dashboard-label{
    color:var(--ui-card-title,var(--theme-text));
    font-size:9px;
    font-weight:900;
    letter-spacing:.035em;
    text-transform:uppercase;
    white-space:nowrap;
}
@media(max-width:420px){
    .rank-life-dashboard-btn{
        left:10px;
        bottom:10px;
        min-width:40px;
        min-height:40px;
        padding:7px 9px;
        gap:6px;
        border-radius:12px;
    }
    .rank-life-dashboard-label{font-size:8px}
    .rank-life-dashboard-icon,
    .rank-life-dashboard-icon svg{width:17px;height:17px}
}
@media(max-width:350px){
    .rank-life-dashboard-btn{
        width:40px;
        padding:7px;
        justify-content:center;
    }
    .rank-life-dashboard-label{display:none}
}


/* Progress Personal Records — match Weight History theme — 2026-10-08 */
#graph-tab .personal-records-section.history-section{
    margin-top:8px!important;
    padding:14px 12px!important;
    color:var(--theme-text,var(--text-primary))!important;
}

/* Use the same header structure/alignment as Weight History. */
#graph-tab .personal-records-heading{
    display:flex!important;
    align-items:baseline!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin:0 0 9px!important;
}
#graph-tab .personal-records-heading h3{
    margin:0!important;
    color:var(--theme-text,var(--text-primary))!important;
    font-size:14px!important;
    line-height:1!important;
    font-weight:900!important;
    letter-spacing:.04em!important;
    text-transform:uppercase!important;
    text-shadow:0 0 14px rgba(var(--theme-special-text-rgb),.28);
}
#graph-tab .personal-records-details-btn{
    flex:0 0 auto;
    min-height:27px!important;
    padding:5px 10px!important;
    border:1px solid rgba(var(--theme-primary-rgb),.28)!important;
    border-radius:999px!important;
    background:linear-gradient(135deg,
        rgba(var(--theme-primary-rgb),.20),
        rgba(var(--theme-secondary-rgb),.12))!important;
    color:var(--ui-special-text, #f8fbff) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 0 14px rgba(var(--theme-primary-rgb),.10)!important;
    font-size:9px!important;
    font-weight:900!important;
    letter-spacing:.04em!important;
}

/* Record tiles are theme-tinted instead of neutral black cards. */
#graph-tab .personal-records-section .life-record-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
}
#graph-tab .personal-records-section .life-record-grid>div{
    position:relative;
    overflow:hidden;
    min-height:66px;
    display:grid;
    align-content:center;
    gap:3px;
    padding:9px 10px!important;
    border:1px solid rgba(var(--theme-primary-rgb),.25)!important;
    border-radius:14px!important;
    background:
        radial-gradient(circle at 12% 0%,
            rgba(var(--theme-background-glow-rgb),.13),
            transparent 42%),
        linear-gradient(145deg,
            rgba(var(--theme-background-rgb),.16),
            rgba(var(--theme-background-deep-rgb),.09) 58%,
            rgba(var(--theme-background-rgb),.06))!important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.055),
        0 7px 18px rgba(0,0,0,.12),
        0 0 16px rgba(var(--theme-primary-rgb),.06)!important;
}
#graph-tab .personal-records-section .life-record-grid>div::before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:2px;
    background:linear-gradient(180deg,var(--theme-glow),var(--theme-primary));
    box-shadow:0 0 10px rgba(var(--theme-primary-rgb),.45);
}
#graph-tab .personal-records-section .life-record-grid span{
    color:var(--theme-text-muted,var(--text-secondary))!important;
    font-size:8px!important;
    font-weight:850!important;
    letter-spacing:.035em!important;
    text-transform:uppercase!important;
}
#graph-tab .personal-records-section .life-record-grid strong{
    color:var(--ui-card-title, #f8fbff) !important;
    font-size:14px!important;
    line-height:1.12!important;
    text-shadow:0 0 12px rgba(var(--theme-special-text-rgb),.34)!important;
}
#graph-tab .personal-records-section .life-record-grid small{
    color:var(--theme-text-muted,var(--text-secondary))!important;
    font-size:7.5px!important;
    line-height:1.25!important;
}

/* When a custom Progress theme is active, use the exact same themed surface
   variables as Weight History and keep the inner cards tinted from that theme. */
#graph-tab[data-custom-progress-theme="1"] .personal-records-section.history-section{
    background:
        linear-gradient(180deg,
            rgba(var(--progress-page-surface-rgb),.88),
            rgba(var(--progress-page-bg-deep-rgb),.92))!important;
    border-color:rgba(var(--theme-primary-rgb),.24)!important;
    box-shadow:
        0 10px 30px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(var(--theme-glow-rgb),.06)!important;
}
#graph-tab[data-custom-progress-theme="1"] .personal-records-section .life-record-grid>div{
    background:
        radial-gradient(circle at 12% 0%,
            rgba(var(--theme-glow-rgb),.16),
            transparent 44%),
        linear-gradient(145deg,
            rgba(var(--theme-primary-rgb),.18),
            rgba(var(--progress-page-surface-rgb),.72) 58%,
            rgba(var(--theme-secondary-rgb),.12))!important;
}

/* Keep light/dark readability while preserving theme colour. */
body[data-theme-tone="light"] #graph-tab .personal-records-section .life-record-grid strong{
    color:var(--ui-card-title, #f8fbff) !important;
}
body[data-theme-tone="light"] #graph-tab .personal-records-section .life-record-grid span,
body[data-theme-tone="light"] #graph-tab .personal-records-section .life-record-grid small{
    color:var(--readable-muted,#d8e6f8)!important;
}

@media(max-width:430px){
    #graph-tab .personal-records-section.history-section{
        margin-top:7px!important;
        padding:10px 9px!important;
    }
    #graph-tab .personal-records-heading{
        flex-direction:row!important;
        align-items:baseline!important;
        margin-bottom:7px!important;
    }
    #graph-tab .personal-records-heading h3{
        font-size:14px!important;
    }
    #graph-tab .personal-records-section .life-record-grid{
        gap:6px!important;
    }
    #graph-tab .personal-records-section .life-record-grid>div{
        min-height:62px;
        padding:8px 9px!important;
    }
    #graph-tab .personal-records-section .life-record-grid strong{
        font-size:13px!important;
    }
}


/* Life Dashboard full theme inheritance — 2026-10-08 */
#infoDetailModal.life-dashboard-open .info-detail-page{
    background:
        radial-gradient(circle at 10% 2%, rgba(var(--theme-background-glow-rgb), .24), transparent 31%),
        radial-gradient(circle at 92% 14%, rgba(var(--theme-background-rgb), .28), transparent 37%),
        radial-gradient(circle at 18% 84%, rgba(var(--theme-background-deep-rgb), .20), transparent 42%),
        linear-gradient(180deg, #071321 0%, #04101d 48%, #020813 100%) !important;
    border-color: rgba(var(--theme-primary-rgb), .34) !important;
    box-shadow:
        inset 0 1px 0 rgba(var(--theme-glow-rgb), .10),
        0 22px 60px rgba(0,0,0,.48),
        0 0 44px rgba(var(--theme-primary-rgb), .14) !important;
}
#infoDetailModal.life-dashboard-open .info-detail-topbar{
    background:
        linear-gradient(180deg,
            rgba(var(--theme-background-rgb), .30),
            rgba(var(--theme-background-deep-rgb), .16)) !important;
    border-bottom: 1px solid rgba(var(--theme-primary-rgb), .30) !important;
    box-shadow:
        inset 0 -1px 0 rgba(var(--theme-glow-rgb), .07),
        0 8px 24px rgba(0,0,0,.20) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
#infoDetailModal.life-dashboard-open .info-detail-topbar .section-kicker{
    color: var(--ui-subheader, #f8fbff) !important;
    text-shadow: 0 0 12px rgba(var(--theme-special-text-rgb), .36);
}
#infoDetailModal.life-dashboard-open .info-detail-topbar h2{
    color: var(--theme-text, var(--text-primary)) !important;
    text-shadow: 0 0 18px rgba(var(--theme-special-text-rgb), .30) !important;
}
#infoDetailModal.life-dashboard-open .info-detail-close{
    border-color: rgba(var(--theme-primary-rgb), .34) !important;
    background:
        linear-gradient(135deg,
            rgba(var(--theme-primary-rgb), .24),
            rgba(var(--theme-secondary-rgb), .14)) !important;
    color: var(--ui-special-text, #f8fbff) !important;
}
#infoDetailModal.life-dashboard-open .info-detail-subtitle{
    color: var(--theme-text-muted, var(--text-secondary)) !important;
}
#infoDetailModal.life-dashboard-open .info-detail-body{
    background: transparent !important;
}

#infoDetailModal.life-dashboard-open .life-hub::before{
    inset: -12px !important;
    background:
        radial-gradient(circle at 10% 2%, rgba(var(--theme-background-glow-rgb), .28), transparent 31%),
        radial-gradient(circle at 92% 16%, rgba(var(--theme-background-rgb), .25), transparent 36%),
        radial-gradient(circle at 30% 74%, rgba(var(--theme-background-deep-rgb), .19), transparent 40%) !important;
}
#infoDetailModal.life-dashboard-open .life-hub::after{
    border-color: rgba(var(--theme-primary-rgb), .19) !important;
    box-shadow:
        inset 0 0 48px rgba(var(--theme-primary-rgb), .10),
        0 0 28px rgba(var(--theme-primary-rgb), .05) !important;
}

#infoDetailModal.life-dashboard-open .life-theme-hero{
    border-color: rgba(var(--theme-primary-rgb), .46) !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(var(--theme-background-glow-rgb), .24), transparent 42%),
        linear-gradient(125deg,
            rgba(var(--theme-background-rgb), .40),
            rgba(var(--theme-background-deep-rgb), .23) 56%,
            rgba(var(--theme-background-rgb), .15)) !important;
    box-shadow:
        0 14px 36px rgba(0,0,0,.26),
        inset 0 1px 0 rgba(var(--theme-glow-rgb), .12),
        inset 0 0 28px rgba(var(--theme-primary-rgb), .10),
        0 0 26px rgba(var(--theme-primary-rgb), .17) !important;
}
#infoDetailModal.life-dashboard-open .life-theme-orb{
    background:
        radial-gradient(circle,
            rgba(var(--theme-glow-rgb), .28),
            rgba(var(--theme-primary-rgb), .18) 56%,
            rgba(0,0,0,.16) 76%) !important;
    border-color: rgba(var(--theme-glow-rgb), .38) !important;
}
#infoDetailModal.life-dashboard-open .life-theme-hero-copy>span{
    color: var(--ui-subheader, #f8fbff) !important;
}
#infoDetailModal.life-dashboard-open .life-theme-hero-copy h3{
    color: var(--theme-text, var(--text-primary)) !important;
}

#infoDetailModal.life-dashboard-open .life-hub-tabs{
    border-color: rgba(var(--theme-primary-rgb), .31) !important;
    background:
        linear-gradient(90deg,
            rgba(var(--theme-background-rgb), .25),
            rgba(var(--theme-background-deep-rgb), .14)) !important;
    box-shadow:
        inset 0 1px 0 rgba(var(--theme-glow-rgb), .07),
        0 8px 20px rgba(0,0,0,.16) !important;
}
#infoDetailModal.life-dashboard-open .life-hub-tabs button{
    color: var(--theme-text-muted, var(--text-secondary)) !important;
}
#infoDetailModal.life-dashboard-open .life-hub-tabs button.active{
    color: var(--ui-special-text, #f8fbff) !important;
    background:
        linear-gradient(135deg,
            rgba(var(--theme-primary-rgb), .42),
            rgba(var(--theme-secondary-rgb), .24)) !important;
    box-shadow:
        inset 0 0 0 1px rgba(var(--theme-glow-rgb), .24),
        0 0 18px rgba(var(--theme-primary-rgb), .17) !important;
}

#infoDetailModal.life-dashboard-open .life-change-list,
#infoDetailModal.life-dashboard-open .life-buyer-meter,
#infoDetailModal.life-dashboard-open .life-overview-grid>div,
#infoDetailModal.life-dashboard-open .life-overview-headline,
#infoDetailModal.life-dashboard-open .life-homes-overview,
#infoDetailModal.life-dashboard-open .life-home-editor,
#infoDetailModal.life-dashboard-open .life-home-compare-section,
#infoDetailModal.life-dashboard-open .life-scenario-card,
#infoDetailModal.life-dashboard-open .life-month-recap-card,
#infoDetailModal.life-dashboard-open .life-recap-hero,
#infoDetailModal.life-dashboard-open .life-recap-finance>div,
#infoDetailModal.life-dashboard-open .life-recap-market,
#infoDetailModal.life-dashboard-open .life-record-grid>div,
#infoDetailModal.life-dashboard-open .life-empty-card{
    border-color: rgba(var(--theme-primary-rgb), .29) !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(var(--theme-background-glow-rgb), .13), transparent 40%),
        linear-gradient(145deg,
            rgba(var(--theme-background-rgb), .23),
            rgba(var(--theme-background-deep-rgb), .13) 60%,
            rgba(var(--theme-background-rgb), .08)) !important;
    box-shadow:
        inset 0 1px 0 rgba(var(--theme-glow-rgb), .07),
        0 8px 22px rgba(0,0,0,.14) !important;
}
#infoDetailModal.life-dashboard-open .life-change-row{
    border-top-color: rgba(var(--theme-primary-rgb), .15) !important;
}
#infoDetailModal.life-dashboard-open .life-buyer-factors>div,
#infoDetailModal.life-dashboard-open .life-scenario-metrics>div,
#infoDetailModal.life-dashboard-open .life-home-payment-hero>div,
#infoDetailModal.life-dashboard-open .life-home-detail-strip>span,
#infoDetailModal.life-dashboard-open .life-compare-mobile{
    border-color: rgba(var(--theme-primary-rgb), .21) !important;
    background:
        linear-gradient(145deg,
            rgba(var(--theme-background-rgb), .16),
            rgba(var(--theme-background-deep-rgb), .09)) !important;
}
#infoDetailModal.life-dashboard-open .life-compare-mobile-head{
    background:
        linear-gradient(90deg,
            rgba(var(--theme-background-rgb), .31),
            rgba(var(--theme-background-deep-rgb), .17)) !important;
    border-bottom-color: rgba(var(--theme-primary-rgb), .21) !important;
}
#infoDetailModal.life-dashboard-open .life-compare-mobile-row{
    border-top-color: rgba(var(--theme-primary-rgb), .14) !important;
}

#infoDetailModal.life-dashboard-open .life-section-heading>div>span{
    color: var(--ui-subheader, #f8fbff) !important;
}
#infoDetailModal.life-dashboard-open .life-section-heading h3{
    color: var(--theme-text, var(--text-primary)) !important;
    text-shadow: 0 0 14px rgba(var(--theme-special-text-rgb), .32) !important;
}
#infoDetailModal.life-dashboard-open .life-section-heading>button{
    color: var(--ui-special-text, #f8fbff) !important;
    border-color: rgba(var(--theme-primary-rgb), .31) !important;
    background:
        linear-gradient(135deg,
            rgba(var(--theme-primary-rgb), .25),
            rgba(var(--theme-secondary-rgb), .14)) !important;
}

#infoDetailModal.life-dashboard-open .life-form-group,
#infoDetailModal.life-dashboard-open .life-home-cost-details{
    border-color: rgba(var(--theme-primary-rgb), .23) !important;
    background:
        linear-gradient(145deg,
            rgba(var(--theme-background-rgb), .14),
            rgba(var(--theme-background-deep-rgb), .08)) !important;
}
#infoDetailModal.life-dashboard-open .life-form-grid input,
#infoDetailModal.life-dashboard-open .life-form-grid select,
#infoDetailModal.life-dashboard-open .life-month-input{
    border-color: rgba(var(--theme-primary-rgb), .27) !important;
    background:
        linear-gradient(145deg,
            rgba(var(--theme-background-rgb), .16),
            rgba(3,7,15,.68)) !important;
    color: var(--theme-text, var(--text-primary)) !important;
}
#infoDetailModal.life-dashboard-open .life-form-grid input:focus,
#infoDetailModal.life-dashboard-open .life-form-grid select:focus,
#infoDetailModal.life-dashboard-open .life-month-input:focus{
    outline: none !important;
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), .16) !important;
}

#infoDetailModal.life-dashboard-open .life-buyer-bar{
    background: rgba(var(--theme-primary-rgb), .16) !important;
}
#infoDetailModal.life-dashboard-open .life-buyer-score>strong,
#infoDetailModal.life-dashboard-open .life-record-grid strong{
    color: var(--ui-card-title, #f8fbff) !important;
    text-shadow: 0 0 13px rgba(var(--theme-special-text-rgb), .36) !important;
}


/* Life Dashboard iOS tab stability — 2026-10-08 */
html.ios-webkit #infoDetailModal.life-dashboard-open .life-hub-panel.active {
    animation: none !important;
}
html.ios-webkit #infoDetailModal.life-dashboard-open .life-hub-tabs {
    position: relative !important;
    top: auto !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    touch-action: manipulation !important;
}
html.ios-webkit #infoDetailModal.life-dashboard-open .life-hub-tabs button {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent;
}
html.ios-webkit #infoDetailModal.life-dashboard-open .life-theme-hero,
html.ios-webkit #infoDetailModal.life-dashboard-open .life-buyer-meter,
html.ios-webkit #infoDetailModal.life-dashboard-open .life-homes-overview,
html.ios-webkit #infoDetailModal.life-dashboard-open .life-home-editor,
html.ios-webkit #infoDetailModal.life-dashboard-open .life-home-compare-section,
html.ios-webkit #infoDetailModal.life-dashboard-open .life-month-recap-card {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}


/* Buyer factor navigation — 2026-10-09 */
.life-buyer-factors .life-buyer-factor{
    position:relative;
    width:100%;
    min-width:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto 14px;
    gap:2px 7px;
    align-items:center;
    padding:9px 10px;
    border-radius:10px;
    border:1px solid rgba(var(--theme-primary-rgb),.18);
    background:
        linear-gradient(145deg,
            rgba(var(--theme-background-rgb),.12),
            rgba(var(--theme-background-deep-rgb),.065));
    color:inherit;
    text-align:left;
    font:inherit;
    cursor:pointer;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
}
.life-buyer-factors .life-buyer-factor:active{
    transform:scale(.985);
    background:
        linear-gradient(145deg,
            rgba(var(--theme-primary-rgb),.20),
            rgba(var(--theme-secondary-rgb),.10));
}
.life-buyer-factor>span{
    min-width:0;
    color:var(--ui-card-description,var(--theme-text-muted));
    font-size:8px;
}
.life-buyer-factor>strong{
    color:var(--ui-card-title,var(--theme-text));
    font-size:9.5px;
    text-align:right;
    overflow-wrap:anywhere;
}
.life-buyer-factor>small{
    grid-column:1 / span 2;
    color:var(--ui-subheader,var(--theme-text-muted));
    font-size:7.5px;
}
.life-buyer-factor>i{
    grid-column:3;
    grid-row:1 / span 2;
    color:var(--ui-special-text,var(--theme-primary));
    font-style:normal;
    font-size:17px;
    text-align:right;
}
.life-source-highlight{
    border-color:var(--theme-primary)!important;
    box-shadow:
        0 0 0 2px rgba(var(--theme-primary-rgb),.20),
        0 0 22px rgba(var(--theme-primary-rgb),.18)!important;
    transition:box-shadow .2s ease,border-color .2s ease;
}


/* Dashboard shortcut: use a separate row directly below the rank card.
   Position is in normal flow so it can never cover the emblem on small phones. */
#rank-tab .rank-content > .rank-life-dashboard-btn {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    right: auto !important;
    top: auto !important;
    display: flex;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    flex: none;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 54px;
    margin: -8px 0 0;
    padding: 12px 18px;
    gap: 10px;
    border-radius: 16px;
    z-index: 4 !important;
}
#rank-tab .rank-content > .rank-life-dashboard-btn .rank-life-dashboard-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .09em;
}
#rank-tab .rank-content > .rank-life-dashboard-btn .rank-life-dashboard-icon,
#rank-tab .rank-content > .rank-life-dashboard-btn .rank-life-dashboard-icon svg {
    width: 20px;
    height: 20px;
}


/* Life Dashboard numbers history / Progress recap — 2026-10-10 */
.life-heading-actions,
.life-history-modes {
    display: flex;
    align-items: center;
    gap: 6px;
}
.life-heading-actions button,
.life-history-modes button {
    padding: 7px 10px;
    min-height: 32px;
    border: 1px solid rgba(var(--theme-primary-rgb), .26);
    border-radius: 10px;
    background: rgba(var(--theme-primary-rgb), .09);
    color: var(--ui-card-title, var(--theme-text));
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
.life-history-modes button.active {
    border-color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), .22);
}
.life-snapshot-date {
    margin: 1px 0 3px;
    color: var(--ui-card-description, var(--theme-text-muted));
    font-size: 10px;
    line-height: 1.5;
}
.life-history-panel {
    display: grid;
    gap: 11px;
    min-width: 0;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(var(--theme-primary-rgb), .2);
    background: rgba(var(--theme-background-rgb), .035);
}
.life-history-panel[hidden] { display: none !important; }
.life-history-choice { display: grid; gap: 6px; font-size: 10px; color: var(--ui-card-description, var(--theme-text-muted)); }
.life-history-choice select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 9px;
    border-radius: 10px;
    background: rgba(8,12,21,.8);
    border: 1px solid rgba(var(--theme-primary-rgb),.26);
    color: var(--ui-card-title, var(--theme-text));
    font-size: 16px;
}
.life-change-row.life-number-row {
    grid-template-columns: minmax(0,1fr) minmax(76px,auto);
    align-items: start;
    gap: 9px;
    padding: 12px 10px;
}
.life-number-row>div:first-child { gap: 5px; }
.life-number-row strong { font-size: 11px; line-height: 1.3; }
.life-number-row small.life-number-description {
    font-size: 9px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.life-number-row a, .life-important-date a {
    font-size: 9px;
    width: fit-content;
    color: var(--ui-special-text,var(--theme-primary));
    text-decoration: underline;
    text-underline-offset: 2px;
}
.life-number-row .life-number-values {
    display: grid;
    justify-items: end;
    gap: 7px;
    min-width: 0;
    max-width: 125px;
    text-align: right;
}
.life-number-reading {
    display: grid;
    gap: 3px;
    justify-items: end;
}
.life-number-reading b {
    font-size: 11px;
    line-height: 1.25;
    color: var(--ui-card-title, var(--theme-text));
    overflow-wrap: anywhere;
}
.life-number-reading small { font-size: 9px; line-height: 1.3; }
.life-number-row.good .life-number-reading small { color: #61e3a0; }
.life-number-row.bad .life-number-reading small { color: #ff7373; }
.life-important-date {
    grid-template-columns: minmax(0,1fr) auto;
    padding: 11px 10px;
}
.life-important-date strong { font-size: 10px; }
.life-important-date small { font-size: 9px; line-height: 1.45; }
.life-progress-recap { display: grid; gap: 12px; }
#graph-tab .life-progress-recap .history-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.life-recap-month-choice {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ui-card-description, var(--theme-text-muted));
    font-size: 10px;
}
#graph-tab .life-recap-month-choice input {
    min-width: 0;
    max-width: 175px;
    padding: 7px 9px;
    color: var(--ui-card-title, var(--theme-text));
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(var(--theme-primary-rgb), .22);
    border-radius: 10px;
    font-size: 16px;
}
#graph-tab #lifeMonthlyRecap .life-month-recap-card {
    border-color: rgba(var(--theme-primary-rgb), .2);
    background: rgba(var(--theme-background-rgb), .04);
}
#infoDetailModal.life-dashboard-open .life-homes-overview,
#infoDetailModal.life-dashboard-open .life-homes-baseline {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    touch-action: auto !important;
}
#infoDetailModal.life-dashboard-open .life-homes-baseline {
    grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (max-width: 390px) {
    .life-change-row.life-number-row { grid-template-columns: minmax(0,1fr) minmax(70px,95px); gap: 6px; }
    .life-number-row .life-number-values { max-width: 95px; }
    .life-heading-actions button { padding-inline: 7px; }
}


/* Dashboard/Home Compare split + compact Budget buyer signal — 2026-10-10 */
#infoDetailModal .life-home-compare-hub,
#infoDetailModal .life-home-compare-hub .life-hub-panel[data-life-panel="homes"] {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 12px;
    overflow: visible !important;
    touch-action: pan-y;
}
#infoDetailModal .life-home-compare-hub .life-hub-panel[data-life-panel="homes"] {
    min-height: min-content;
}
#financeBudgetPane .finance-buyer-section {
    width: 100%;
    min-width: 0;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid rgba(var(--theme-primary-rgb), .19);
}
#financeBudgetPane .life-buyer-container {
    min-width: 0;
}
#financeBudgetPane .life-buyer-meter {
    display: grid;
    gap: 0;
    min-width: 0;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(var(--theme-background-rgb), .10), rgba(var(--theme-background-deep-rgb), .045));
}
#financeBudgetPane .life-buyer-toggle {
    display: grid;
    position: relative;
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title score"
        "bar bar";
    align-items: center;
    gap: 10px;
    padding: 15px 16px;
    color: var(--ui-card-title, var(--theme-text));
    font: inherit;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
}
#financeBudgetPane .life-buyer-toggle:focus-visible {
    outline: 2px solid var(--theme-primary);
    outline-offset: -3px;
}
#financeBudgetPane .life-buyer-summary-title {
    grid-area: title;
    color: var(--ui-header, var(--theme-text));
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}
#financeBudgetPane .life-buyer-score {
    grid-area: score;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px;
}
#financeBudgetPane .life-buyer-score > span {
    display: none;
}
#financeBudgetPane .life-buyer-score > strong {
    display: flex;
    grid-column: auto;
    grid-row: auto;
    align-items: baseline;
    color: var(--ui-special-text, var(--theme-text));
    font-size: 25px;
    font-weight: 950;
}
#financeBudgetPane .life-buyer-score > strong small {
    font-size: 11px;
    font-weight: 700;
    opacity: .75;
}
#financeBudgetPane .life-buyer-bar {
    grid-area: bar;
    width: 100%;
    height: 9px;
}
#financeBudgetPane .life-buyer-expand-indicator {
    position: absolute;
    top: 10px;
    right: 8px;
    color: var(--ui-card-description, var(--theme-text-muted));
    font-size: 13px;
    line-height: 1;
    opacity: .75;
    transform: translateY(-1px);
    transition: transform 180ms ease;
}
#financeBudgetPane .life-buyer-toggle[aria-expanded="true"] .life-buyer-expand-indicator {
    transform: translateY(-1px) rotate(180deg);
}
#financeBudgetPane .life-buyer-details {
    display: grid;
    gap: 10px;
    border-top: 1px solid rgba(var(--theme-primary-rgb), .15);
    padding: 12px;
}
#financeBudgetPane .life-buyer-details[hidden] { display: none !important; }
#financeBudgetPane .life-buyer-details .life-buyer-detail-label {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    color: var(--ui-subheader, var(--theme-text-muted));
}
#financeBudgetPane .life-buyer-factors { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media(max-width: 420px) {
    #financeBudgetPane .life-buyer-toggle { padding: 14px 13px; }
    #financeBudgetPane .life-buyer-factors { grid-template-columns: 1fr; }
}


/* Four-day / four-month history strips within Dashboard → What Changed.
   Save the full values in the existing dated brief archive; render only known
   observations, never inferred prices or invented older months. */
#infoDetailModal .life-change-row.life-number-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
    padding: 14px 12px;
}
#infoDetailModal .life-number-row .life-number-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
    min-width: 0;
}
#infoDetailModal .life-number-heading strong {
    color: var(--ui-card-title, var(--theme-text));
    font-size: 12px;
    line-height: 1.3;
}
#infoDetailModal .life-number-heading a {
    font-size: 9px;
    flex: 0 0 auto;
}
#infoDetailModal .life-number-metrics {
    display: grid;
    min-width: 0;
    gap: 13px;
}
#infoDetailModal .life-number-metric {
    display: grid;
    min-width: 0;
    gap: 7px;
}
#infoDetailModal .life-number-metric + .life-number-metric {
    border-top: 1px solid rgba(var(--theme-primary-rgb), .12);
    padding-top: 11px;
}
#infoDetailModal .life-number-current {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 12px;
}
#infoDetailModal .life-number-current b {
    color: var(--ui-special-text, var(--theme-text));
    font-size: 18px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    letter-spacing: -.01em;
}
#infoDetailModal .life-number-current .life-number-delta {
    color: var(--ui-card-description, var(--theme-text-muted));
    font-size: 10px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}
#infoDetailModal .life-number-current .life-number-delta.good {
    color: #61e3a0;
}
#infoDetailModal .life-number-current .life-number-delta.bad {
    color: #ff7373;
}
#infoDetailModal .life-number-series-label {
    color: var(--ui-subheader, var(--theme-text-muted));
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
}
#infoDetailModal .life-number-history-strip {
    display: flex;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 2px 0 6px;
}
#infoDetailModal .life-number-history-point {
    flex: 1 0 70px;
    min-width: 70px;
    max-width: 118px;
    min-height: 50px;
    box-sizing: border-box;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 7px 6px;
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-primary-rgb), .14);
    background: rgba(255,255,255,.028);
    text-align: center;
}
#infoDetailModal .life-number-history-point.current {
    background: rgba(var(--theme-primary-rgb), .17);
    border-color: rgba(var(--theme-primary-rgb), .4);
}
#infoDetailModal .life-number-history-point.missing {
    opacity: .55;
    border-style: dashed;
}
#infoDetailModal .life-number-history-point small {
    color: var(--ui-subheader, var(--theme-text-muted));
    font-size: 9px;
    font-weight: 750;
    line-height: 1.1;
    white-space: nowrap;
}
#infoDetailModal .life-number-history-point b {
    color: var(--ui-card-title, var(--theme-text));
    font-size: 10px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    white-space: nowrap;
}
#infoDetailModal .life-number-history-point.current b {
    color: var(--ui-special-text, var(--theme-text));
}
#infoDetailModal .life-number-history-note {
    color: var(--ui-card-description, var(--theme-text-muted));
    opacity: .85;
    font-size: 9px;
    font-style: italic;
}
#infoDetailModal .life-number-row > .life-number-description {
    display: block;
    min-width: 0;
    color: var(--ui-card-description, var(--theme-text-muted));
    font-size: 9px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    opacity: .9;
}
@media (max-width: 390px) {
    #infoDetailModal .life-number-current b { font-size: 16px; }
    #infoDetailModal .life-number-history-point { min-width: 66px; flex-basis: 66px; }
}

/* Verified OREB historical observations link directly to their monthly report. */
#infoDetailModal .life-number-history-point > a {
    color: var(--ui-subheader, var(--theme-text-muted));
    font-size: 9px;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(var(--theme-primary-rgb), .45);
    text-underline-offset: 2px;
    line-height: 1.1;
    white-space: nowrap;
}
#infoDetailModal .life-number-history-point > a:focus-visible {
    outline: 2px solid var(--ui-special-text, var(--theme-text));
    outline-offset: 2px;
    border-radius: 3px;
}


/* Dashboard What Changed: seven compact, buyer-first number cards.
   Prominent latest figure and change; no narrative paragraphs. */
#infoDetailModal .life-change-row.life-number-row {
    padding: 15px 13px 13px !important;
    gap: 10px !important;
}
#infoDetailModal .life-number-row .life-number-heading {
    align-items: center;
    gap: 8px;
}
#infoDetailModal .life-number-row .life-number-heading > strong {
    font-size: 13px;
    font-weight: 880;
    letter-spacing: -.012em;
    line-height: 1.3;
    color: var(--ui-header, var(--theme-text)) !important;
}
#infoDetailModal .life-number-source-links {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
#infoDetailModal .life-number-source-links a {
    font-size: 9px;
    color: var(--ui-subheader, var(--theme-text-muted));
    font-weight: 750;
    white-space: nowrap;
}
#infoDetailModal .life-number-metrics {
    gap: 12px;
}
#infoDetailModal .life-number-current {
    align-items: end;
    gap: 6px 11px;
}
#infoDetailModal .life-number-main-value {
    display: grid;
    min-width: 0;
    gap: 3px;
}
#infoDetailModal .life-number-metric-name {
    display: block;
    color: var(--ui-subheader, var(--theme-text-muted));
    font-weight: 780;
    font-size: 10px;
    line-height: 1.15;
}
#infoDetailModal .life-number-main-value b {
    font-size: clamp(21px, 5.7vw, 27px);
    line-height: 1.08;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.035em;
    color: var(--ui-special-text, var(--theme-text));
}
#infoDetailModal .life-number-current .life-number-delta {
    padding-bottom: 3px;
    font-size: 11px;
    font-weight: 875;
    line-height: 1.25;
    text-align: right;
    max-width: 57%;
    font-variant-numeric: tabular-nums;
}
#infoDetailModal .life-number-current .life-number-delta.neutral {
    color: var(--ui-card-description, var(--theme-text-muted));
}
#infoDetailModal .life-number-series-label {
    font-size: 8px;
    letter-spacing: .04em;
    opacity: .8;
}
#infoDetailModal .life-number-history-strip {
    padding-top: 0;
}
#infoDetailModal .life-number-method {
    min-width: 0;
    border-top: 1px solid rgba(var(--theme-primary-rgb), .12);
    padding-top: 8px;
}
#infoDetailModal .life-number-method summary {
    color: var(--ui-subheader, var(--theme-text-muted));
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    outline-offset: 4px;
}
#infoDetailModal .life-number-method-links {
    display: grid;
    gap: 7px;
    padding: 9px 0;
}
#infoDetailModal .life-number-method-links a {
    width: fit-content;
    max-width: 100%;
    font-size: 10px;
    line-height: 1.4;
    color: var(--ui-special-text, var(--theme-text));
    overflow-wrap: anywhere;
}
#infoDetailModal .life-number-method > small {
    display: block;
    color: var(--ui-card-description, var(--theme-text-muted));
    font-size: 9px;
    line-height: 1.5;
}
#infoDetailModal .life-number-row .life-number-description {
    display: none !important;
}
@media (max-width: 390px) {
    #infoDetailModal .life-number-current .life-number-delta {
        max-width: none;
        text-align: left;
    }
    #infoDetailModal .life-number-main-value b {
        font-size: 21px;
    }
}

/* Monthly jobs: signed headline job changes and month-on-month deltas are
   coloured by their likely pressure on fixed mortgage rates for a buyer. */
#infoDetailModal [data-number-group="jobs"] .life-number-main-value b.life-fixed-rate-impact.good {
    color: #61e3a0;
}
#infoDetailModal [data-number-group="jobs"] .life-number-main-value b.life-fixed-rate-impact.bad {
    color: #ff7373;
}

/* All What Changed cards: coloured CURRENT values track the latest verified
   increase/decrease using the same signal as their coloured +/- deltas.
   Oil is a conditional inflation/yield pressure proxy; housing/stock metrics
   keep a separately defined homebuyer-favourability interpretation.
   Unknown or directionally ambiguous observations retain default text colour. */
#infoDetailModal .life-number-row .life-number-main-value b.life-fixed-rate-impact.good {
    color: #61e3a0;
}
#infoDetailModal .life-number-row .life-number-main-value b.life-fixed-rate-impact.bad {
    color: #ff7373;
}

/* What Changed historical values follow the same directional buyer/rate
   impact colouring as the prominent number and its signed change.
   The current point gets the same treatment despite existing .current styles. */
#infoDetailModal .life-number-row .life-number-history-point b.life-historical-impact.good {
    color: #61e3a0;
}
#infoDetailModal .life-number-row .life-number-history-point b.life-historical-impact.bad {
    color: #ff7373;
}
#infoDetailModal .life-number-row .life-number-history-point b.life-historical-impact.neutral {
    color: var(--ui-card-description, var(--theme-text-muted));
}

/* What Changed: neutral means an unchanged/unclassified movement.
   Current headline: theme's primary accent.
   Historical chip: theme's primary TEXT, not the subdued caption colour.
   The same colours are used for every metric, including unemployment. */
#infoDetailModal .life-number-row .life-number-main-value b.life-fixed-rate-impact.neutral {
    color: var(--theme-primary, var(--ui-special-text, #00d4ff));
}
#infoDetailModal .life-number-row .life-number-history-point b.life-historical-impact.neutral {
    color: var(--theme-text, var(--ui-card-title, #fff));
}
