/* Phase 1: compact iPhone-only overview. Loaded after all mobile overrides. */
.shell-home .topline{display:none}
.shell-home .main{padding-top:16px;padding-inline:15px;padding-bottom:calc(110px + env(safe-area-inset-bottom))}
.dashboard{display:flex;flex-direction:column;gap:13px;min-width:0}
.dashboard-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:1px;padding:0 2px}
.dashboard-kicker{font-size:.58rem;letter-spacing:.12em;font-weight:800;color:#688c7c;margin:0 0 3px}
.dashboard-header h1{font-size:1.47rem;line-height:1.12;letter-spacing:-.04em;color:#193d38}
.dashboard-date{font-size:.63rem;font-weight:650;color:#7d978e;white-space:nowrap}
.dashboard-card{padding:16px;border-radius:19px;box-shadow:0 7px 24px #1b40410a}
.dashboard-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.dashboard-section-heading h2{font-size:1rem;line-height:1.18;color:#213e3b;letter-spacing:-.02em}
.dashboard-count,.dashboard-saving-pct{font-size:.72rem;background:#e8f1eb;color:#3b715c;border-radius:999px;padding:3px 9px;font-weight:760;white-space:nowrap}
.dashboard-thin-progress{height:4px;border-radius:999px;background:#e7efe9;overflow:hidden;margin-bottom:14px}
.dashboard-thin-progress>span{height:100%;display:block;background:#72b596;border-radius:inherit;transition:width .2s ease}
.dashboard-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.dashboard-task-tile{display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:124px;background:#f5f8f5;border:1px solid #e5ece6;border-radius:14px;padding:10px 10px 7px;transition:background .15s ease,border-color .15s ease}
.dashboard-task-tile.is-done{background:#e9f4ec;border-color:#cfe2d4}
.dashboard-task-label{display:flex;flex-direction:column;gap:10px;cursor:pointer;min-height:85px;min-width:0}
.dashboard-task-top{display:flex;justify-content:space-between;align-items:center;gap:6px}
.dashboard-task-symbol{display:grid;place-items:center;background:#e4eee7;color:#447963;width:29px;height:29px;border-radius:9px;font-size:1rem}
.dashboard-task-tile input[type=checkbox]{width:20px;height:20px;flex:none;margin:0;accent-color:#3b8463}
.dashboard-task-title{display:block;color:#24443e;font-size:.78rem;font-weight:750;line-height:1.3;letter-spacing:-.013em;overflow-wrap:anywhere}
.dashboard-task-tile.is-done .dashboard-task-title{text-decoration:line-through;color:#698d7c}
.dashboard-task-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.69rem;color:#6f8b7e;font-weight:600;margin-top:2px}
.dashboard-info{display:grid;place-items:center;border-radius:999px;border:1px solid #dce9df;background:#fff;color:#507464;width:27px;height:27px;font-family:Georgia,serif;font-size:.8rem;font-weight:700;padding:0}
.dashboard-info:focus-visible{outline:3px solid #65957b;outline-offset:2px}
.dashboard-savings{padding:16px}
.dashboard-money{display:flex;flex-wrap:wrap;align-items:baseline;gap:7px;margin-bottom:11px}
.dashboard-money strong{font-size:1.78rem;line-height:1.12;letter-spacing:-.045em;color:#23483d}
.dashboard-money span{font-size:.8rem;color:#7d9288;font-weight:600}
.dashboard-savings .dashboard-thin-progress{margin-bottom:11px}
.dashboard-savings-foot{display:flex;justify-content:space-between;align-items:center;gap:10px}
.dashboard-savings-foot>span{font-size:.72rem;color:#7c9489}
.dashboard-finance-link{font-size:.77rem;font-weight:760;color:#2c7159;background:#eaf3ed;border:0;border-radius:9px;min-height:40px;padding:9px 11px;white-space:nowrap}
.dashboard-finance-link:focus-visible{outline:3px solid #65957b;outline-offset:2px}
/* Apple Watch design fixture: explicitly synthetic, NOT a connected HealthKit device. */
.dashboard-watch{padding:16px}
.dashboard-watch-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:12px}
.dashboard-watch-heading h2{font-size:1rem;line-height:1.18;color:#213e3b;letter-spacing:-.02em;margin:0 0 4px}
.dashboard-watch-subtitle{font-size:.69rem;color:#7f998e}
.dashboard-watch-actions{display:flex;align-items:center;gap:5px}
.dashboard-watch-edit,.dashboard-preview-show{font-size:.69rem;font-weight:760;color:#3b735e;background:#eaf3ed;border:0;border-radius:9px;min-height:38px;padding:8px 10px;white-space:nowrap}
.dashboard-preview-show{font-size:.64rem;max-width:140px;white-space:normal;line-height:1.2}
.dashboard-watch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.dashboard-watch-tile{background:#f5f8f5;border:1px solid #e5ece6;padding:11px;border-radius:13px;display:flex;flex-direction:column;gap:5px;min-width:0;min-height:105px}
.dashboard-watch-tile-top{display:flex;align-items:center;justify-content:space-between;gap:5px}
.dashboard-watch-icon{width:27px;height:27px;border-radius:8px;background:#e4eee7;display:grid;place-items:center;color:#367258;font-size:1.04rem}
.dashboard-watch-hint{font-size:.57rem;color:#849c90;text-align:right}
.dashboard-watch-label{font-size:.7rem;font-weight:650;color:#698577;line-height:1.14;overflow-wrap:anywhere}
.dashboard-watch-tile strong{font-size:1.39rem;color:#254b40;line-height:1.15;letter-spacing:-.04em;font-variant-numeric:tabular-nums;white-space:nowrap}
.dashboard-watch-tile small{font-size:.68rem;letter-spacing:0;font-weight:650;color:#799287}
.dashboard-watch-footer{display:flex;align-items:center;justify-content:space-between;gap:5px;padding-top:11px;font-size:.58rem;color:#83988d}
.dashboard-watch-badge{font-size:.55rem;font-weight:850;letter-spacing:.05em;color:#9a6942}
.dashboard-watch-settings{margin-top:13px;border-top:1px solid #e7eee8;padding-top:13px}
.dashboard-watch-settings p{font-size:.74rem;color:#607c6c;margin:0 0 11px}
.dashboard-watch-selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.dashboard-watch-select-label{display:flex;flex-direction:column;gap:5px;font-size:.7rem;font-weight:700;color:#537262;min-width:0}
.dashboard-watch-select-label select{width:100%;min-width:0;font-size:16px;border:1px solid #dbe8df;padding:8px 4px;border-radius:9px;background:#fff;color:#284c40;height:43px}
.dashboard-watch-hide{margin-top:12px;background:transparent;border:1px solid #dbe8df;border-radius:9px;padding:9px 12px;font-size:.74rem;color:#557468;min-height:40px}
.dashboard-watch-edit:focus-visible,.dashboard-watch-select-label select:focus-visible,.dashboard-watch-hide:focus-visible,.dashboard-preview-show:focus-visible{outline:3px solid #65957b;outline-offset:2px}
.ai-chat-fab{position:fixed;bottom:calc(87px + env(safe-area-inset-bottom));right:max(18px,calc((100vw - var(--phone-max)) / 2 + 18px));z-index:9;width:49px;height:49px;border-radius:16px;background:#245b4b;color:white;border:1px solid #36715d;display:grid;place-items:center;box-shadow:0 7px 20px #224a3a44}
.ai-chat-fab[hidden]{display:none}
.ai-chat-fab:focus-visible,.ai-chat-close:focus-visible{outline:3px solid #7cb696;outline-offset:2px}
.ai-chat-overlay{position:fixed;inset:0;z-index:30;display:flex;align-items:flex-end;justify-content:center}
.ai-chat-backdrop{position:absolute;inset:0;background:#0d282777;border:0;width:100%;height:100%;cursor:pointer}
.ai-chat-panel{position:relative;z-index:1;width:min(100%,var(--phone-max));height:min(460px,calc(100dvh - 30px));display:flex;flex-direction:column;background:#f8fbf8;border:1px solid #ddeae0;border-radius:22px 22px 0 0;overflow:hidden;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -12px 45px #17362830}
.ai-chat-header{background:#fff;display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #e7eee8;padding:14px 17px}
.ai-chat-heading{display:flex;align-items:center;gap:10px}
.ai-chat-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e4f1e7;color:#3a775a;font-size:1.3rem}
.ai-chat-heading h2{font-size:.99rem;margin:0 0 2px}
.ai-chat-heading span:not(.ai-chat-avatar){font-size:.69rem;color:#819488}
.ai-chat-close{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:10px;color:#3c6253;background:#eef5ef;font-size:1.6rem}
.ai-chat-messages{flex:1;padding:23px 17px}
.ai-chat-message{max-width:92%;padding:16px;border-radius:16px 16px 16px 5px;background:#e5f0e8;color:#2a4d3f;font-size:.84rem;line-height:1.52}
.ai-chat-message strong{display:block;margin-bottom:6px}
.ai-chat-message p{margin:0}
.ai-chat-composer{display:flex;align-items:center;gap:8px;padding:12px 14px;border-top:1px solid #e4eee7;background:#fff}
.ai-chat-composer input{flex:1;min-width:0;padding:11px 12px;border-radius:11px;border:1px solid #dce6dd;background:#f7faf7;color:#7c9085;font-size:16px}
.ai-chat-composer button{height:42px;width:42px;border:0;border-radius:12px;background:#dce6df;color:#91a39a}
@media(max-width:350px){.dashboard-card{padding:13px}.dashboard-task-tile{min-height:126px;padding:9px 8px 6px}.dashboard-task-title{font-size:.735rem}.dashboard-money strong{font-size:1.55rem}.dashboard-header h1{font-size:1.35rem}}
@media(prefers-reduced-motion:reduce){.dashboard-thin-progress>span,.dashboard-task-tile{transition:none}}
/* Smooth, accessible assistant sheet. The overlay stays mounted for closing transitions. */
.ai-chat-fab{transition:transform .22s var(--acgs-ease),box-shadow .22s var(--acgs-ease)}
.ai-chat-fab:hover{transform:translateY(-3px);box-shadow:0 13px 27px #224a3a40}
.ai-chat-overlay{visibility:hidden;pointer-events:none;transition:visibility 0s linear .3s}
.ai-chat-overlay.is-open{visibility:visible;pointer-events:auto;transition:visibility 0s}
.ai-chat-backdrop{opacity:0;transition:opacity .27s ease}
.ai-chat-overlay.is-open .ai-chat-backdrop{opacity:1}
.ai-chat-panel{transform:translateY(102%);opacity:.65;transition:transform .33s var(--acgs-ease),opacity .3s ease;will-change:transform}
.ai-chat-overlay.is-open .ai-chat-panel{transform:translateY(0);opacity:1}
/* A less technical, more approachable Watch selection sheet. */
.dashboard-watch-settings{padding:14px;background:#f5f9f4;border:1px solid #e2ede3;border-radius:14px;margin-top:13px}
.dashboard-watch-settings p{color:#49705b;font-size:.76rem;font-weight:620}
.dashboard-watch-select-label{color:#537362;font-size:.7rem}
.dashboard-watch-select-label select{height:46px;border-radius:12px;border-color:#d5e5d8;background:#fff;padding:8px}
.dashboard-watch-edit{border-radius:13px;min-height:42px}
@media(prefers-reduced-motion:reduce){.ai-chat-fab,.ai-chat-overlay,.ai-chat-backdrop,.ai-chat-panel{transition:none!important}}

/* v0.6.2: monthly cadence has exactly 3 challenges, with a full-width top-priority tile. */
.dashboard-task-grid.is-prioritized .dashboard-task-tile:first-child{grid-column:1/-1;min-height:118px;padding:13px 14px 10px;position:relative}
.dashboard-task-grid.is-prioritized .dashboard-task-tile:first-child .dashboard-task-label{min-height:79px;gap:7px}
.dashboard-task-grid.is-prioritized .dashboard-task-tile:first-child .dashboard-task-title{font-size:.94rem;line-height:1.3}
.dashboard-task-grid.is-prioritized .dashboard-task-tile:not(:first-child){min-height:117px}
.dashboard-task-priority{display:block;font-size:.57rem;line-height:1.15;font-weight:850;letter-spacing:.12em;color:#427a61}
html[data-acgs-theme="ruhig"] .dashboard-task-priority{color:#c4d5e1}
@media(max-width:350px){.dashboard-task-grid.is-prioritized .dashboard-task-tile:first-child{min-height:118px}.dashboard-task-grid.is-prioritized .dashboard-task-tile:not(:first-child){min-height:120px}}

/* The once-per-month payday confirmation adds a fourth tile on that day only. */
.dashboard-task-grid.has-monthly-extra .dashboard-task-tile:first-child{grid-column:1/-1}
.dashboard-task-grid.has-monthly-extra .dashboard-task-tile:last-child{grid-column:1/-1}

.dashboard-sim-date{margin:6px 0 8px;font-size:.7rem;font-weight:700;color:var(--text-muted,#aebcc8)}
