/* v6.78.1 Calm Home — flexible desktop width, meaningful compact today. */
.calm-home{display:grid;gap:20px;width:100%;max-width:1400px;margin:0 auto 22px;min-width:0;}
.calm-intro{display:grid;gap:7px;min-width:0;padding:16px 2px 2px;}
.calm-date{font-size:12px;letter-spacing:.015em;color:var(--muted);font-weight:650;}
.calm-intro-row{display:flex;align-items:center;justify-content:space-between;gap:15px;min-width:0;}
.calm-intro h2{font-size:clamp(27px,3vw,38px);line-height:1.2;letter-spacing:-.045em;margin:0;font-weight:780;color:var(--text);min-width:0;overflow-wrap:anywhere;}
.calm-desktop-add{display:inline-flex;align-items:center;gap:10px;justify-content:center;min-height:44px;flex:none;border:1px solid var(--border-soft);border-radius:99px;background:var(--surface);color:var(--text);font:inherit;font-size:13px;font-weight:700;padding:8px 16px;cursor:pointer;}
.calm-desktop-add span{font-size:20px;line-height:1;color:var(--accent);}
.calm-today{position:relative;isolation:isolate;display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:15px;row-gap:17px;align-items:start;min-width:0;padding:24px 28px;border:1px solid var(--border-soft);border-radius:27px;background:linear-gradient(130deg,var(--accent-soft),transparent 48%),var(--surface);overflow:hidden;}
.calm-today-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:var(--accent-soft);color:var(--accent);font-size:23px;}
.calm-today-copy{min-width:0;}
.calm-today-label{display:block;letter-spacing:.11em;color:var(--accent);font-size:10px;font-weight:800;margin:1px 0 7px;}
.calm-today h3{font-size:clamp(20px,2.3vw,26px);letter-spacing:-.035em;font-weight:780;line-height:1.22;margin:0 0 8px;color:var(--text);}
.calm-today p{margin:0;color:var(--muted);line-height:1.5;font-size:13px;}
.calm-today-list{grid-column:2;display:grid;gap:0;border-top:1px solid var(--border-soft);min-width:0;}
.calm-today-item{border:0;border-bottom:1px solid var(--border-soft);background:transparent;display:flex;align-items:center;gap:13px;min-height:70px;width:100%;padding:13px 0;text-align:left;color:var(--text);font:inherit;cursor:pointer;min-width:0;}
.calm-today-item:last-child{border-bottom:0;}
.calm-item-icon{flex:none;width:31px;height:31px;display:grid;place-items:center;border-radius:10px;background:var(--surface);color:var(--accent);font-size:18px;}
.calm-item-copy{display:grid;gap:3px;flex:1;min-width:0;}
.calm-item-copy small{font-size:11px;font-weight:600;color:var(--muted);}
.calm-item-copy strong{font-size:14px;font-weight:710;line-height:1.4;overflow-wrap:anywhere;}
.calm-item-arrow{font-size:17px;opacity:.65;color:var(--muted);flex:none;}
.calm-widget-section{width:100%;max-width:1400px;margin:0 auto;min-width:0;display:grid;gap:14px;}
.daily-widget-actions{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 5px;border-bottom:1px solid var(--border-soft);}
.daily-widget-actions button{border:0;background:transparent;color:var(--text);font:inherit;font-weight:680;font-size:13px;min-height:44px;cursor:pointer;}
.daily-widget-actions button:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;text-align:left;}
.daily-widget-actions button:last-child{font-size:12px;color:var(--muted);padding:10px 2px;}
.daily-widget-actions button .ui-disclosure-chevron{transition:transform .18s ease;}
.daily-widget-actions button[aria-expanded="true"] .ui-disclosure-chevron{transform:rotate(180deg);}
.calm-today--empty{grid-template-columns:36px minmax(0,1fr);column-gap:13px;row-gap:0;padding:17px 20px;border-radius:20px;background:var(--surface);}
.calm-today--empty .calm-today-mark{width:36px;height:36px;font-size:18px;border-radius:12px;}
.calm-today--empty h3{font-size:18px;margin-bottom:4px;}
.calm-today--empty p{font-size:12px;}
.calm-activity{display:flex;align-items:center;gap:13px;min-width:0;padding:13px 17px;border:1px solid var(--border-soft);border-radius:16px;background:var(--surface);}
.calm-activity-icon{color:var(--accent);font-size:21px;flex:none;width:26px;text-align:center;}
.calm-activity-copy{display:flex;flex:1;flex-wrap:wrap;align-items:baseline;gap:4px 13px;min-width:0;}
.calm-activity-label{font-size:12px;font-weight:730;color:var(--text);}
.calm-activity-value{font-size:13px;color:var(--muted);overflow-wrap:anywhere;min-width:0;}
.calm-activity-open{flex:none;display:grid;place-items:center;min-width:44px;min-height:44px;border:0;background:transparent;font:inherit;font-size:18px;color:var(--muted);cursor:pointer;}
.calm-widget-section>.home-widgets-collapsed{display:none!important;}
 .calm-home button:focus-visible,.daily-widget-actions button:focus-visible{outline:3px solid var(--accent);outline-offset:3px;}
@media(max-width:900px){
  .calm-home{gap:16px;margin:0 0 8px;}
  .calm-intro{padding:5px 2px 0;gap:8px;}
  .calm-intro h2{font-size:clamp(26px,6.5vw,34px);line-height:1.16;}
  .calm-desktop-add{display:none;}
  .calm-today{grid-template-columns:36px minmax(0,1fr);gap:15px 12px;padding:21px 18px 20px;border-radius:22px;}
  .calm-today-mark{width:36px;height:36px;border-radius:12px;font-size:20px;}
  .calm-today h3{font-size:21px;}
  .calm-today p{font-size:12px;}
  .calm-today--empty{padding:15px 14px;grid-template-columns:32px minmax(0,1fr);}
  .calm-today--empty .calm-today-mark{width:32px;height:32px;}
  .calm-activity{padding:9px 12px;gap:8px;}
  .calm-activity-copy{display:grid;gap:2px;}
  .calm-today-list{grid-column:1/-1;}
  .calm-today-item{min-height:60px;padding:12px 0;}
  .calm-widget-section{margin-top:13px;}
}
@media(max-width:360px){.calm-today{padding:18px 14px;}.calm-intro h2{font-size:25px;}.calm-item-copy strong{font-size:13px;}}
@media(prefers-reduced-motion:reduce){.daily-widget-actions button .ui-disclosure-chevron{transition:none;}}

/* v6.80 Adaptive Home: only real owner-entered values occupy the Health card. */
.dashboard-health-kpis--adaptive{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));}
.dashboard-health-kpis--adaptive>div{min-width:0;}
.dashboard-health-date{font-size:11px;color:var(--muted);}
@media(max-width:900px){.dashboard-health-kpis--adaptive{grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr));}}
@media(min-width:390px) and (max-width:900px){.content .dashboard-health-kpis--adaptive{grid-template-columns:repeat(2,minmax(0,1fr));}}


/* v6.80.1 — meaningful first-screen cards; secondary widgets are one tap away. */
.calm-widget-section .home-focus-actions{gap:clamp(10px,2vw,20px);padding:5px 0 13px;min-height:60px;flex-wrap:wrap;}
.home-focus-heading{display:grid;gap:3px;min-width:120px;flex:1;}
.home-focus-heading strong{font-size:17px;color:var(--text);letter-spacing:-.025em;}
.home-focus-heading small{font-size:11px;font-weight:500;color:var(--muted);}
.calm-widget-section .home-focus-actions #toggleHomeWidgets{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:40px;padding:7px 13px;border-radius:13px;background:var(--surface);border:1px solid var(--border-soft);font-size:12px;}
.calm-widget-section .home-focus-actions #editHomeWidgets{flex:0 0 auto;padding:7px 4px;}
.calm-widget-section .home-focus-actions button[hidden]{display:none!important;}
.calm-widget-section>.dashboard-widget-board{margin-top:3px;}
.calm-widget-section .dashboard-widget{border-radius:21px;overflow:hidden;box-shadow:0 8px 25px rgba(20,25,45,.035);}
.calm-widget-section .dashboard-widget>.card-head{background:color-mix(in srgb,var(--surface) 92%,var(--accent-soft));}
.dashboard-widget-board.home-focus-only > .dashboard-widget-secondary{display:none!important;}
.home-focus-empty:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border:1px solid var(--border-soft);border-radius:18px;background:var(--surface);}
.home-focus-empty p{font-size:13px;line-height:1.55;color:var(--muted);margin:0;max-width:580px;}
.home-focus-empty .btn{flex:none;}
/* A preview should not drown the first screen in long finance histories. */
.home-focus-only .dashboard-home-finance .dashboard-transaction:nth-child(n+3){display:none;}
@media(max-width:600px){
  .calm-widget-section .home-focus-actions{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;align-items:center;}
  .home-focus-heading strong{font-size:15px;}
  .home-focus-heading small{display:none;}
  .calm-widget-section .home-focus-actions #toggleHomeWidgets{padding:7px 10px;font-size:11px;}
  .calm-widget-section .home-focus-actions #editHomeWidgets{font-size:11px;padding:7px 2px;}
  .home-focus-empty:not([hidden]){display:grid;gap:10px;}
  .home-focus-empty .btn{justify-self:start;}
}
@media(max-width:360px){.calm-widget-section .home-focus-actions{grid-template-columns:1fr auto;}.calm-widget-section .home-focus-actions #editHomeWidgets{grid-column:2;}.calm-widget-section .home-focus-actions #toggleHomeWidgets{grid-column:1;grid-row:2;justify-self:start;}.home-focus-heading{grid-column:1 / -1;}}
