/* home tab styles. Prefix every class with the tab name (home-) so tabs never collide. */
.home-root { position: relative; min-height: 100%; display: flex; flex-direction: column; background: #ebeefe; }

/* hero: illustration scrolls with the page and is clipped to its own box, so scrolling never moves other layout */
.home-hero { position: relative; height: 252px; flex: none; overflow: hidden; background: #ebeefe; }
.home-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.home-bell { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px #4a52e033; }
.home-bell-dot { position: absolute; top: 9px; right: 11px; width: 10px; height: 10px; border-radius: 50%; background: #ee4b4b; border: 2px solid #fff; box-sizing: content-box; }

/* white area with a rounded top edge that overlaps the hero */
.home-body { position: relative; flex: 1; margin-top: -34px; background: #fff; border-radius: 50% 50% 0 0 / 34px 34px 0 0; padding: 28px 20px 96px; }
.home-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 22px; }
.home-chip { padding: 5px 12px; border-radius: 8px; background: #e4f3ec; color: #2c7f5e; font-size: 14px; font-weight: 600; }
.home-title { margin: 14px 0 8px; font-size: 28px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.25; }
.home-time { display: flex; align-items: center; gap: 6px; color: #8a93a6; font-size: 15px; }
.home-start { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 190px; height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px #2b61c142; }
.home-start:disabled { background: #b9c3d6; box-shadow: none; cursor: default; }
.home-start:active { transform: scale(0.98); }

/* course list: bigger thumbnails and titles than the plain list rows, no dividers */
.home-list .row { padding: 10px 0; border-bottom: 0; gap: 16px; }
.home-list .row-thumb { position: relative; width: 68px; height: 68px; border-radius: 18px; }
.home-list .row-text { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.home-list .row-text small { font-size: 13px; margin-bottom: 6px; }
.home-done-badge { position: absolute; inset: 0; display: grid; place-items: center; background: #1b1f2759; border-radius: inherit; }
.home-row-done .row-text { color: #8a93a6; }
.home-empty { margin: 24px 0; text-align: center; color: #8a93a6; }

/* floating helper button: a zero-height sticky anchor at the end of the scroll area keeps it above the bottom tabs */
.home-fab-anchor { position: sticky; bottom: 0; height: 0; flex: none; z-index: 5; }
.home-fab { position: absolute; right: 16px; bottom: 16px; width: 56px; height: 56px; border: 0; border-radius: 50%; background: linear-gradient(145deg, #6a6ff2, #3c43cf); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px #3c43cf55; }
.home-fab:active { transform: scale(0.95); }

/* "coming soon" sheet (appended to #phone) */
.home-sheet-backdrop { position: absolute; inset: 0; z-index: 50; background: #1b1f2773; display: flex; align-items: flex-end; }
.home-sheet { width: 100%; box-sizing: border-box; padding: 12px 24px 28px; background: #fff; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; align-items: center; text-align: center; animation: home-sheet-up 0.22s ease-out; }
.home-sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: #d7dbe5; margin-bottom: 20px; }
.home-sheet-icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(145deg, #6a6ff2, #3c43cf); display: grid; place-items: center; margin-bottom: 14px; }
.home-sheet strong { font-size: 20px; letter-spacing: -0.03em; }
.home-sheet p { margin: 8px 0 20px; color: #667799; font-size: 15px; line-height: 1.5; }
.home-sheet-ok { max-width: 240px; border-radius: 999px; }
@keyframes home-sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* notifications screen */
.home-notices .topbar-arrow { display: block; width: 11px; height: 11px; border-left: 2.5px solid #1b1f27; border-bottom: 2.5px solid #1b1f27; transform: rotate(45deg); margin: 0 6px 0 10px; }
.home-notices .topbar strong { font-size: 20px; letter-spacing: -0.03em; }
.home-notices .topbar button { padding: 10px 6px; }
.home-notice-tools { display: flex; justify-content: flex-end; padding: 4px 20px 0; min-height: 24px; }
.home-notice-clear { border: 0; background: none; color: #667799; font: inherit; font-size: 14px; cursor: pointer; padding: 6px 0; }
.home-notice-list { padding: 4px 20px 28px; }
.home-notice { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; width: 100%; box-sizing: border-box; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.home-notice-title { font-weight: 600; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-notice-date { color: #8a93a6; font-size: 13px; }
.home-notice-body { grid-column: 1 / -1; display: none; color: #667799; font-size: 14px; line-height: 1.55; padding-top: 6px; }
.home-notice[aria-expanded="true"] .home-notice-title { white-space: normal; }
.home-notice[aria-expanded="true"] .home-notice-body { display: block; }
.home-notice-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 96px 0 0; color: #667799; }
.home-notice-empty-art { width: 84px; height: 84px; border-radius: 50%; background: #e4e8fb; position: relative; margin-bottom: 18px; }
.home-notice-empty-art::after { content: ""; position: absolute; left: 26px; top: 24px; width: 32px; height: 30px; border-radius: 16px 16px 6px 6px; background: #b9c0ee; }
.home-notice-empty strong { color: var(--ink); font-size: 18px; }
.home-notice-empty p { margin: 6px 0 0; font-size: 15px; }

.home-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-done-badge svg { width: 30px; height: 30px; }
