:root{font-family:Segoe UI,system-ui,sans-serif;color:#23392f;background:#f6f7f4;--green:#12382d;--line:#dfe4dc;--muted:#66736a;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,summary:focus-visible{outline:2px solid #55745d;outline-offset:3px}[hidden]{display:none!important}.preview-notice{height:26px;background:#ece9dc;color:#625c47;display:flex;justify-content:center;align-items:center;gap:12px;font-size:10px}.preview-notice strong{font-size:9px;letter-spacing:.7px}.life-header{height:66px;border-bottom:1px solid var(--line);background:white;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 22px}.brand{display:flex;align-items:center;gap:8px;border:0;background:none;padding:5px 0;font-size:14px;font-weight:750;letter-spacing:1px;white-space:nowrap}.brand img{width:34px;height:34px;object-fit:contain}#app-tabs{display:flex;gap:5px}#app-tabs button{display:flex;align-items:center;gap:7px;background:none;border:1px solid transparent;border-radius:6px;padding:8px 14px;font-size:13px;font-weight:600;min-height:42px}#app-tabs button img{width:25px;height:25px;object-fit:contain}#app-tabs button.selected{background:#edf2e9;border-color:#cdd9c7;color:var(--green)}#app-tabs button:hover{background:#f0f3ed}.account{position:relative}.account summary{display:flex;gap:8px;align-items:center;cursor:pointer;list-style:none;font-size:12px;min-height:42px}.account summary::-webkit-details-marker{display:none}.avatar{display:grid;place-items:center;border-radius:50%;width:31px;height:31px;background:#efecdf;font-weight:700;font-size:10px}.account-name{line-height:1.2}.account-name small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.account-panel{position:absolute;z-index:10;right:0;top:49px;width:260px;padding:16px;background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #23392f1a}.account-panel strong{font-size:13px}.account-panel p{font-size:12px;line-height:1.5;color:var(--muted)}.account-panel button{background:#f6f7f4;border:1px solid var(--line);border-radius:5px;min-height:40px;padding:8px 12px;font-size:12px}#app-workspace{height:calc(100dvh - 92px);height:calc(100vh - 92px);min-height:300px}#app-workspace iframe{display:block;width:100%;height:100%;border:0;background:#f6f7f4}.entry{min-height:calc(100dvh - 26px);display:grid;place-items:center;padding:24px}.entry-card{width:min(100%,380px);background:white;border:1px solid var(--line);border-radius:10px;padding:28px;text-align:center}.entry-logo{width:66px;height:66px;object-fit:contain}.entry h1{margin:10px 0 6px;font-size:27px}.entry-description{margin:0;color:var(--muted);font-size:14px}.entry-apps{display:flex;justify-content:center;gap:8px;margin:22px 0}.entry-apps span,.later{padding:5px 8px;background:#f0f3ed;border-radius:5px;font-size:11px;color:#52694e}.primary{min-height:44px;background:var(--green);color:white;border:0;border-radius:5px;padding:11px 18px;font-size:13px;font-weight:600}.entry .primary{width:100%}.entry-note{font-size:11px;line-height:1.6;color:var(--muted);margin:16px 0 0}.app-picker{padding:28px 24px;max-width:1100px;margin:0 auto}.picker-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.picker-heading h1{font-size:24px;margin:0}.picker-heading p{font-size:13px;color:var(--muted);margin:6px 0 0}.secondary{background:white;border:1px solid var(--line);border-radius:5px;padding:10px 13px;font-size:12px;min-height:42px}.app-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}.app-card{display:flex;gap:16px;align-items:flex-start;text-align:left;padding:22px;background:white;border:1px solid var(--line);border-radius:8px}.app-card:hover{border-color:#9cad94;background:#fcfdfb}.app-card>img{width:48px;height:48px;object-fit:contain}.app-card h2{font-size:18px;margin:2px 0 8px}.app-card p{font-size:13px;color:var(--muted);line-height:1.5;margin:0 0 18px}.app-card span{font-size:12px;font-weight:600}.future-app{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:8px;padding:17px 20px;margin-top:20px;background:#f0f2ed}.future-app>img{height:39px;width:39px;object-fit:contain}.future-app h2{font-size:14px;margin:0}.later{font-size:10px;margin-left:7px;padding:3px 7px;background:#e3e7df}.future-app p{font-size:12px;color:var(--muted);margin:5px 0 0}.future-status{margin-left:auto;color:var(--muted);font-size:11px}#frame-error{padding:16px;margin:0;background:#faeee8;font-size:13px}#phone-check{text-align:center;padding:12px;background:#e5e8e2;min-height:100vh}#phone-check>p{font-size:12px;margin:0 0 12px}#phone-check>iframe{display:block;margin:0 auto;border:1px solid #bac6b4;background:white}.phone-check>.preview-notice{display:none}
@media(max-width:700px){.preview-notice{font-size:9px;gap:7px;height:25px;padding:0 8px;white-space:nowrap}.preview-notice strong{font-size:8px}.life-header{height:106px;padding:8px 13px 6px;gap:4px;flex-wrap:wrap}.brand{font-size:12px;gap:6px}.brand img{width:29px;height:29px}.account{margin-left:auto}.account summary{min-height:36px}.account-name{font-size:10px}.account-name small{font-size:9px}.avatar{width:27px;height:27px;font-size:9px}#app-tabs{order:3;width:100%;gap:6px}#app-tabs button{flex:1;justify-content:center;padding:6px 10px;font-size:12px;min-height:42px}#app-tabs button img{width:23px;height:23px}#app-workspace{height:calc(100vh - 131px);height:calc(100dvh - 131px)}.account-panel{top:42px;width:250px}.app-picker{padding:20px 14px}.picker-heading h1{font-size:21px}.app-cards{grid-template-columns:1fr;gap:12px}.app-card{padding:18px}.app-card h2{font-size:17px}.app-card p{font-size:12px;margin-bottom:12px}.future-app{padding:15px 13px;gap:10px;flex-wrap:wrap}.future-status{margin-left:49px}.picker-heading .secondary{font-size:11px;padding:8px 10px}}

.appearance-field{display:grid;gap:7px;margin-top:16px;font-size:12px;font-weight:600}.appearance-field select{font:inherit;color:#23392f;background:white;border:1px solid var(--line);border-radius:5px;padding:9px;min-height:42px;width:100%}.brand.selected{box-shadow:0 3px 0 #b18c35}.brand{border-radius:3px}.account-panel{color:#23392f}.account-panel #appearance-status{font-size:11px}

/* Coordinated palette is opt-in via one independent browser preference.
   Original removes these overrides; the base palette above stays intact. */
@media screen{
html[data-life-theme="coordinated"]{--green:#153f33;--ink:#203c32;--line:#d8dfd8;--muted:#596d63;color:var(--ink);background:#faf8f1}
[data-life-theme="coordinated"] .life-header{background:#153f33;color:#fffaf0;border-color:#153f33}
[data-life-theme="coordinated"] .brand.selected{box-shadow:0 3px 0 #dfb95b}
[data-life-theme="coordinated"] #app-tabs button:hover{background:#255446}
[data-life-theme="coordinated"] #app-tabs button.selected{background:#f1d58b;color:#243c2f;border-color:#f1d58b}
[data-life-theme="coordinated"] .avatar{background:#f1d58b;color:#243c2f}
[data-life-theme="coordinated"] .account-name small{color:#c7dbcf}
[data-life-theme="coordinated"] .preview-notice{background:#eee1bc;color:#55451e}
[data-life-theme="coordinated"] .summary-panel{border-top:3px solid #b18c35}
[data-life-theme="coordinated"] .summary-panel:has(#home-summary){border-top-color:#117b80}
[data-life-theme="coordinated"] .summary-header{background:#f8f5e9}
[data-life-theme="coordinated"] .summary-panel:has(#home-summary) .summary-header{background:#e6f4f2;color:#13595d}
[data-life-theme="coordinated"] .summary-panel:has(#home-summary) .summary-link{color:#13595d}
[data-life-theme="coordinated"] .budget-metrics .budget-remaining:not(.negative){background:#e4f0e6}
[data-life-theme="coordinated"] .category-progress:not(.yellow):not(.red) span{background:#23764b}
[data-life-theme="coordinated"] .sample-label{background:#eee1bc;color:#55451e}
[data-life-theme="coordinated"] .app-card[data-module="home"]{border-top:3px solid #117b80}
[data-life-theme="coordinated"] .app-card[data-module="dollar"]{border-top:3px solid #b18c35}
[data-life-theme="coordinated"] .app-card:hover{background:#f7faf6;border-color:#6a9c83}
[data-life-theme="coordinated"] .entry-card{border-top:4px solid #b18c35}
[data-life-theme="coordinated"] button:focus-visible,[data-life-theme="coordinated"] summary:focus-visible{outline-color:#b18c35}
}

/* Daily Life hub */
.life-dashboard{max-width:1240px;margin:0 auto;padding:22px 24px 32px}.dashboard-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:14px}.dashboard-heading h1{font-size:24px;font-weight:650;margin:0}.summary-panel{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden;margin-bottom:18px}.summary-header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line);gap:12px}.summary-header h2{display:flex;align-items:center;gap:8px;font-size:16px;margin:0;font-weight:650}.summary-header img{width:27px;height:27px;object-fit:contain}.summary-link{border:0;background:none;color:var(--green);font-size:12px;padding:7px 0;font-weight:600;min-height:34px;text-align:left}.summary-link:hover{text-decoration:underline}#budget-summary{padding:16px 18px 18px}.summary-period{font-size:12px;color:var(--muted);display:flex;gap:9px;align-items:center}.sample-label{font-size:10px;background:#f0f1e8;padding:3px 6px;border-radius:4px}.budget-metrics{display:grid;grid-template-columns:1fr 1fr;align-items:center;margin-top:12px;border:1px solid var(--line);border-radius:6px;overflow:hidden}.budget-metrics>div{padding:15px 18px;border-right:1px solid var(--line)}.budget-metrics>div:last-child{border:0}.budget-metrics span{font-size:12px;color:var(--muted);display:block;margin-bottom:7px}.budget-metrics strong{font-size:26px;font-weight:650;line-height:1.15}.budget-metrics .budget-remaining{background:#edf2e9}.budget-remaining strong{color:var(--green)}.budget-remaining.negative{background:#faeee8}.budget-remaining.negative strong{color:#a34430}.summary-footnote{font-size:11px;color:var(--muted);margin:8px 0 12px;line-height:1.5}.category-heading{font-size:13px;font-weight:650;margin:16px 0 12px}.category-status-list{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px}.category-status{min-width:0}.category-label,.category-amounts{display:flex;justify-content:space-between;align-items:center;gap:10px}.category-label strong{font-size:12px;font-weight:650;overflow-wrap:anywhere}.status-tag{font-size:10px;padding:3px 6px;border-radius:4px;white-space:nowrap}.status-tag.green{background:#edf3e9;color:#4e6841}.status-tag.yellow{background:#fbf3d9;color:#806b30}.status-tag.red{background:#faeee8;color:#a34430}.status-tag.neutral{background:#f0f2ed;color:var(--muted)}.category-amounts{font-size:11px;color:var(--muted);margin:7px 0}.category-amounts strong{font-weight:600;color:var(--ink)}.category-progress{height:5px;border-radius:4px;background:#edf0e9;overflow:hidden}.category-progress span{height:100%;display:block;background:#788f69;border-radius:4px}.category-progress.yellow span{background:#b99c40}.category-progress.red span{background:#b56a55}.dashboard-property{display:flex;justify-content:space-between;align-items:center;padding:12px 18px;border-bottom:1px solid var(--line);gap:12px}.dashboard-property label{font-size:12px;display:flex;align-items:center;gap:9px}.dashboard-property select{font:inherit;color:inherit;background:white;border:1px solid var(--line);border-radius:5px;padding:8px;max-width:230px}.dashboard-property>span{font-size:10px;color:var(--muted)}.home-summary-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:22px;padding:16px 18px}.home-summary-columns>section{min-width:0}.summary-subheading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:32px}.summary-subheading h3{font-size:13px;margin:0;font-weight:650;line-height:1.5}.summary-count{margin-left:4px;font-weight:400;color:var(--muted)}.dashboard-row{width:100%;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);background:white;border-radius:5px;margin-bottom:7px;text-align:left}.dashboard-row:hover{border-color:#a9b69f}.dashboard-row>span:first-child{min-width:0}.dashboard-row strong{display:block;font-size:12px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.dashboard-row small{display:block;font-size:10px;color:var(--muted);margin-top:4px;line-height:1.4}.dashboard-row.overdue{background:#fcf0eb;border-color:#e7c6bd;border-left:3px solid #b96751}.dashboard-row.due-soon{background:#fff9e8;border-color:#e8dba8;border-left:3px solid #c0a74d}.dashboard-due{flex-shrink:0;text-align:right}.dashboard-due b{font-size:10px;font-weight:600;color:#806b30}.overdue .dashboard-due b{color:#a34430}.summary-empty{font-size:12px;line-height:1.6;color:var(--muted);padding:14px 0;margin:0}.todo-summary-list{margin-top:8px}
@media(max-width:700px){#app-tabs{gap:3px}#app-tabs button{gap:4px;padding:6px;font-size:11px}#app-tabs button img{width:20px;height:20px}.preview-notice{white-space:normal;line-height:1.2}.preview-notice #preview-context{font-size:8px}.life-dashboard{padding:17px 13px 24px}.dashboard-heading{margin-bottom:14px}.dashboard-heading h1{font-size:20px}.summary-header{padding:12px 13px}.summary-header h2{font-size:15px}.summary-header img{width:24px;height:24px}.summary-link{font-size:11px;min-height:38px}#budget-summary{padding:13px}.budget-metrics{grid-template-columns:1fr 1fr}.budget-metrics>div{padding:13px 10px}.budget-metrics span{font-size:10px}.budget-metrics strong{font-size:23px}.category-status-list{grid-template-columns:1fr;gap:16px}.dashboard-property{padding:12px 13px;flex-wrap:wrap;gap:7px}.dashboard-property select{max-width:235px;min-height:40px}.dashboard-property>span{font-size:9px}.home-summary-columns{grid-template-columns:1fr;padding:12px 13px;gap:14px}.dashboard-row{min-height:44px}.dashboard-due small{font-size:9px}}

#cloud-entry input,#cloud-entry select{display:block;width:100%;box-sizing:border-box;margin-top:7px;border:1px solid #cad7cf;border-radius:6px;padding:11px;font:inherit}#cloud-entry label{display:block;text-align:left}#cloud-error:empty,#action-status:empty{display:none}#home-setup{margin:28px auto;max-width:550px}

#first-property-dialog{max-width:430px;border:1px solid #cad7cf;border-radius:9px;padding:24px;font:inherit;color:var(--ink)}#first-property-dialog::backdrop{background:#102f2470}#first-property-name{display:block;box-sizing:border-box;width:100%;padding:11px;margin:8px 0;border:1px solid #cad7cf;border-radius:6px;font:inherit}#first-property-dialog h1{font-size:22px}#first-property-dialog p{line-height:1.5}#first-property-error:empty{display:none}

#legacy-dollar-dialog,#saved-drafts-dialog{max-width:min(620px,calc(100vw - 48px));max-height:80vh;overflow:auto;border:1px solid #cad7cf;border-radius:9px;padding:20px;font:inherit}#legacy-dollar-list label{display:flex;align-items:center;gap:8px;margin:10px 0;overflow-wrap:anywhere}#legacy-dollar-dialog button,#saved-drafts-dialog button{margin:5px;padding:8px}#connection-status{padding:8px 16px}

/* The frame uses available height, including when a pending-save notice opens. */
#workspace{display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:0}
.life-header{flex-shrink:0}
#workspace>.preview-notice,#connection-status,#action-status{flex-shrink:0;height:auto;min-height:0;flex-wrap:wrap;line-height:1.4;padding:7px 12px}
#app-workspace{flex:1;min-height:0;height:auto}
#life-dashboard{flex:1;overflow:auto;min-height:0;width:100%}
.account-panel button{display:block;width:100%;margin-top:8px;text-align:left}
@media(max-width:700px){#workspace{height:100vh;height:100dvh}#app-workspace{height:auto;min-height:0}.life-header{gap:8px}.account-panel{max-width:calc(100vw - 24px)}input,select,textarea{font-size:16px}}

/* Hub summary boundaries stay visible even when a section is empty. */
.category-status{padding:12px;border:1px solid #d0d9d1;border-radius:6px;background:#fbfcf9}
.category-status-list{gap:10px 16px}
.home-summary-columns{gap:0}
.home-summary-columns>section+section{border-left:1px solid #cbd7d2;padding-left:20px;margin-left:20px}
.summary-app-link{display:flex;align-items:center;gap:8px;padding:0;min-height:44px;border:0;background:none;color:inherit;font:inherit;font-weight:inherit;text-align:left}
.summary-app-link:hover{text-decoration:underline}.summary-app-link:focus-visible{outline-offset:4px}
.data-recovery{border-top:1px solid var(--line);margin-top:14px;padding-top:8px}
.data-recovery summary{font-size:12px;font-weight:600;min-height:40px}
.data-recovery>summary::after{content:'⌄';margin-left:auto}.data-recovery[open]>summary::after{transform:rotate(180deg)}
.data-recovery p{margin:4px 0 8px;font-size:12px;line-height:1.4}
@media(max-width:700px){
 .home-summary-columns>section+section{border-left:0;border-top:1px solid #cbd7d2;padding-left:0;margin-left:0;margin-top:16px;padding-top:16px}
 .summary-app-link{gap:7px}.summary-header{gap:8px}.summary-header h2{min-width:0}.category-status-list{gap:10px}
}
