/* Home is independently scrollable inside the existing sidebar / tab shell. */
#app[data-view="home"]{display:block;max-width:1600px;background:radial-gradient(ellipse at 30% 0,rgba(217,143,151,.065),transparent 65%)}
#app[data-view="home"] #install-hint{margin-bottom:24px}
.home-screen{color:var(--ink);font-family:var(--font-body);padding:10px 0 16px}
.home-greeting{height:auto;display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:0 0 28px}
.home-greeting h1{font-family:var(--font-display);font-weight:300;font-size:clamp(2.5rem,4.1vw,4.3rem);line-height:1.08;letter-spacing:-.045em;color:var(--rose-300);margin:0}
.home-greeting h1 span{white-space:nowrap}
.home-greeting p{margin:12px 0 0;letter-spacing:.16em;color:var(--muted);font-size:clamp(.85rem,1.45vw,1.3rem)}
.home-greeting .home-tagline{flex:none;text-align:right;font-size:.62rem;letter-spacing:.24em;line-height:1.9;margin-top:6px}
.home-columns{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:28px;align-items:stretch}
.home-hero{border:1px solid rgba(255,255,255,.08);border-radius:20px;overflow:hidden;background-color:var(--plum-800);background-size:cover;background-position:center;color:var(--ink-dark)}
.home-hero{display:flex;flex-direction:column;justify-content:space-between;min-height:470px;padding:32px;background-image:linear-gradient(90deg,rgba(26,16,21,.6),rgba(26,16,21,.08)),linear-gradient(0deg,rgba(26,16,21,.88),transparent 55%),url('../assets/photo/hero-candle.jpg')}
.home-kicker{font-size:.68rem;letter-spacing:.25em;font-weight:400;margin:0}
.home-continue{display:inline-block;border:1px solid rgba(242,196,196,.35);background:rgba(42,26,34,.65);padding:6px 17px;border-radius:999px}
.home-hero h2{font:300 clamp(2.5rem,3.8vw,4rem)/1.06 var(--font-display);letter-spacing:-.03em;margin:22px 0 12px;overflow-wrap:break-word}
.home-duration{font-size:1.08rem;letter-spacing:.06em;margin:0}
.home-play{display:grid;place-items:center;width:88px;height:88px;min-height:44px;border-radius:50%;padding:24px;margin-top:30px;background:var(--rose-500);color:var(--plum-900);box-shadow:0 8px 40px #1a101555}
.home-play svg{width:100%;height:100%}
.home-hero-footer{margin-top:48px}
.home-progress{height:4px;border-radius:4px;background:rgba(242,196,196,.3)}
.home-session-copy{display:flex;justify-content:space-between;gap:12px;margin-top:12px;color:#eed8dd;font-size:.8rem;flex-wrap:wrap}
.home-session-copy em{font-family:var(--font-display);font-weight:300}
.home-discover{min-width:0;display:flex;flex-direction:column}
.home-discover h2{font:300 clamp(1.8rem,2.25vw,2.4rem)/1.15 var(--font-display);color:var(--rose-300);margin:0 0 18px}
.home-links{display:grid;gap:12px;flex:1}
.home-discover-row{display:flex;align-items:center;gap:18px;width:100%;min-width:0;text-align:left;padding:12px;border-radius:20px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.05);color:var(--ink);font-weight:400}
.home-discover-row img{width:78px;height:78px;object-fit:cover;border-radius:10px;flex:none}
.home-row-short{display:none}
.home-row-copy{min-width:0;flex:1}
.home-row-title{display:block;font:300 clamp(1.3rem,1.8vw,1.85rem)/1.2 var(--font-display)}
.home-row-subtitle{display:block;font-size:.83rem;line-height:1.45;margin-top:6px;color:var(--muted)}
.home-discover-row>svg{width:18px;height:24px;flex:none;color:var(--rose-300)}
.home-screen button:focus-visible{outline:2px solid var(--rose-300);outline-offset:4px}
.home-screen button:hover{filter:brightness(1.12)}
.home-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* The shell's global header height is zero on desktop; size this header to its content. */
@media(min-width:900px){.home-greeting{height:auto;margin-bottom:24px}}
@media(min-width:900px) and (max-width:1150px){.home-columns{gap:18px;grid-template-columns:minmax(0,1.2fr) minmax(260px,1fr)}.home-greeting{gap:16px}.home-greeting h1{font-size:2.8rem}.home-greeting .home-tagline{font-size:.55rem}.home-hero{padding:24px}.home-discover-row{gap:12px}.home-discover-row img{width:64px;height:64px}}

.home-main{display:grid;gap:14px;min-width:0}
.home-screen [data-cal="home"]{display:contents}
.home-screen [data-cal-status]:empty,.home-screen .notes-home:empty{display:none}
.home-us{border:1px solid var(--line);border-radius:20px;background:var(--card);padding:14px;display:grid;gap:12px}
.home-us .home-us-head{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:0;padding:0;color:var(--ink)}
.home-us .home-us-copy{min-width:0}
.home-us .home-us-avatars{display:flex;flex:none;padding-right:9px}
.home-us .home-us-avatars span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--plum-700,#6b4a5a);color:var(--ink);font-size:.8rem;font-weight:600;box-shadow:0 0 0 2px var(--bg)}
.home-us .home-us-avatars span:first-child{background:color-mix(in srgb,var(--accent) 22%,var(--card));border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);color:var(--rose-300)}
.home-us .home-us-avatars span+span{margin-left:-9px;background:var(--accent);color:var(--on-accent)}
.home-us .home-us-who{font-family:var(--font-display);font-size:1.25rem;color:var(--rose-300)}
.home-us .home-us-status{font-size:.82rem;color:var(--muted);display:block}
.home-us-status [data-cal="status"]+.home-us-sessions::before{content:" · "}
.home-us .home-us-head>svg{margin-left:auto;width:16px;height:24px;flex:none;color:var(--rose-300)}
.home-us .home-us-acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.home-us .home-us-acts button{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-height:68px;padding:12px 16px;border-radius:18px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:1.08rem;font-weight:600;white-space:nowrap;text-align:left}
.home-us .home-us-acts svg{width:30px;height:30px;flex:none;color:var(--accent)}
.home-us button:hover,.home-us button:focus-visible{background:var(--active)}
.home-us button:focus-visible{outline:2px solid var(--rose-300)}
.home-us button:disabled{opacity:.6}
.home-us .push-status{font-size:.78rem;color:var(--muted);margin:0}
.home-us .push-status:empty,.home-us [data-cal="start"]:empty{display:none}
.home-us .push-error,.home-us .push-status .push-error{color:var(--bad)}
.home-us [data-cal-start]{border-radius:999px;padding:6px 16px;background:var(--accent);color:var(--on-accent)}
.home-us button[data-cal-start]:hover,.home-us button[data-cal-start]:focus-visible{background:var(--accent);filter:brightness(1.08);color:var(--on-accent)}

@media(max-width:899px){
 .home-row-long{display:none}
 .home-row-short{display:block}
 .home-screen{padding-top:6px}
 .home-greeting{margin-bottom:16px}
 .home-greeting h1{font-size:clamp(1.9rem,7vw,2.6rem)}
 .home-greeting h1 span{white-space:normal}
 .home-greeting p{font-size:.8rem;letter-spacing:.12em;line-height:1.7}
 .home-greeting .home-tagline{display:none}
 .home-columns{grid-template-columns:minmax(0,1fr);gap:18px}
 .home-hero{min-height:0;padding:16px;flex-direction:row;align-items:center;gap:12px}
 .home-hero-top{display:contents}
 .home-hero-copy{min-width:0;flex:1}
 .home-hero h2{font-size:1.45rem;margin:10px 0 8px}
 .home-hero-copy>p:last-child{margin-bottom:0}
 .home-continue{font-size:.56rem;padding:4px 10px}
 .home-duration{font-size:.78rem}
 .home-play{width:56px;height:56px;padding:16px;margin:0;flex:none}
 .home-hero-footer{display:none}
 .home-discover h2{font-size:1.45rem;margin-bottom:10px}
 .home-links{display:flex;overflow-x:auto;gap:8px;scroll-snap-type:x mandatory;padding-bottom:4px;scrollbar-width:none}
 .home-links::-webkit-scrollbar{display:none}
 .home-discover-row{flex:0 0 112px;height:128px;position:relative;padding:0;border-radius:14px;overflow:hidden;scroll-snap-align:start;flex-direction:column}
 .home-discover-row img{position:absolute;inset:0;width:100%;height:100%;border-radius:0}
 .home-discover-row::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 15%,var(--plum-900) 100%)}
 .home-discover-row .home-row-copy{position:absolute;bottom:9px;left:9px;right:9px;z-index:1}
 .home-row-title{font-size:.98rem;color:var(--ink-dark)}
 .home-row-subtitle{font-size:.62rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink-dark)}
 .home-discover-row>svg{display:none}
}

.home-us [data-home-go="messages"]{position:relative}
.home-us .home-msg-badge{position:absolute;top:3px;right:5px;min-width:22px;height:22px;padding:0 3px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--on-accent);font-size:12px;line-height:1}
