/* ─────────────────────────────────────────────────────────────
   NeuroNest web app (/neuronestapp). A faithful emulation of the
   iOS app: Nunito, the "Ink" dark theme, the sound as the backdrop,
   glass surfaces, a 430 pt phone frame on desktop.
   ───────────────────────────────────────────────────────────── */
:root {
    --bg: #0B0B10;
    --theme-bg: #141210;              /* hsl(30 10% 7%) */
    --fg: #F1EDE4;                    /* hsl(40 25% 93%) */
    --muted: #A89F94;                 /* hsl(35 10% 62%) */
    --primary: #81A3FA;               /* hsl(222 90% 74%), the logo blue */
    --primary-ink: #171410;
    --card: #1C1917;                  /* hsl(30 8% 11%) */
    --border: #36302C;                /* hsl(30 8% 19%) */
    --glass: rgba(255, 250, 240, 0.06);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-strong: rgba(30, 26, 22, 0.72);
    --gutter: 20px;
    --radius: 24px;
    --tab-h: 64px;
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
    background: #07070a; color: var(--fg);
    font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 500; line-height: 1.4;
    -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; }
img, video, svg { display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(129, 163, 250, 0.35); }

/* ── Type (theming/typography.ts) ───────────────────────────── */
.t-h1 { font-size: 36px; font-weight: 800; line-height: 40px; letter-spacing: -1px; }
.t-h2 { font-size: 26px; font-weight: 800; line-height: 32px; letter-spacing: -0.5px; }
.t-h3 { font-size: 21px; font-weight: 700; line-height: 27px; letter-spacing: -0.3px; }
.t-h4 { font-size: 17px; font-weight: 700; line-height: 22px; }
.t-h5 { font-size: 15px; font-weight: 700; line-height: 20px; }
.t-h6 { font-size: 13px; font-weight: 700; line-height: 18px; }
.t-body { font-size: 15px; font-weight: 500; line-height: 21px; }
.t-caption { font-size: 12px; font-weight: 500; line-height: 16px; }
.t-label { font-size: 11px; font-weight: 800; line-height: 14px; letter-spacing: 2.2px; text-transform: uppercase; }
.white { color: #fff; } .w75 { color: rgba(255, 255, 255, 0.75); } .w70 { color: rgba(255, 255, 255, 0.7); }
.w60 { color: rgba(255, 255, 255, 0.6); } .w55 { color: rgba(255, 255, 255, 0.55); } .w50 { color: rgba(255, 255, 255, 0.5); }
.mutedc { color: var(--muted); } .fg { color: var(--fg); } .primary { color: var(--primary); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ic { flex: none; }

/* ── Stage (desktop) + app frame ────────────────────────────── */
.stage { position: fixed; inset: 0; overflow: hidden; background: #07070a; z-index: 0; }
.stage-bg { position: absolute; inset: -12%; background: #0B0B10 center / cover no-repeat; filter: blur(70px) brightness(0.36) saturate(1.1); opacity: 0; transition: opacity 1.2s ease; }
.stage-bg.in { opacity: 1; }
.app { position: fixed; inset: 0; overflow: hidden; background: var(--bg); isolation: isolate; z-index: 1; }
@media (min-width: 720px) and (min-height: 600px) {
    body { overflow: auto; }
    .app {
        position: relative; width: 430px; height: min(932px, calc(100vh - 48px)); min-height: 620px;
        margin: 24px auto; border-radius: 44px;
        box-shadow: 0 50px 140px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.09), 0 0 0 10px #0d0d11, 0 0 0 11px rgba(255, 255, 255, 0.06);
    }
}

/* ── Backdrop: the sound's world behind everything ──────────── */
.backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--bg); overflow: hidden; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.scene.in { opacity: 1; }
.scene img, .scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene video { opacity: 0; transition: opacity 0.6s ease; }
.scene video.ready { opacity: 1; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.78) 100%); }

/* ── Screens ────────────────────────────────────────────────── */
.screen {
    position: absolute; inset: 0; z-index: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; opacity: 0; visibility: hidden;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.screen::-webkit-scrollbar { display: none; }
.screen.is-active { opacity: 1; visibility: visible; transition: opacity 0.28s ease; }
.app.player-open .screen { opacity: 0; }
.screen-inner { padding-top: var(--safe-t); padding-bottom: calc(var(--tab-h) + var(--safe-b) + 92px); min-height: 100%; }
.app.has-mini .screen-inner { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 108px); }

/* ── Sounds ─────────────────────────────────────────────────── */
.topbar { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 20px; }
.wordmark { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; line-height: 30px; color: #fff; text-decoration: none; }
.topbar-link { color: rgba(255, 255, 255, 0.85); }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; display: inline-grid; place-items: center; color: #fff; transition: background 0.15s; }
.icon-btn:active { background: rgba(255, 255, 255, 0.1); }
.icon-btn.outlined { border: 1px solid rgba(255, 255, 255, 0.35); }
.hero { padding: 8px var(--gutter) 0; display: grid; gap: 6px; min-height: 196px; align-content: start; }
.hero .title { color: #fff; text-align: left; }
.hero .title:active { opacity: 0.8; }
.hero .desc { color: rgba(255, 255, 255, 0.75); }
.hero-actions { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.btn-play { width: 56px; height: 56px; border-radius: 28px; background: #fff; color: #111; display: grid; place-items: center; transition: transform 0.15s var(--ease); }
.btn-play:active { transform: scale(0.94); }
.pill-profile { height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.14); color: #fff; transition: background 0.15s; }
.pill-profile:active { background: rgba(255, 255, 255, 0.24); }
.panel { margin: 22px var(--gutter) 0; min-height: 442px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(10, 10, 16, 0.42); overflow: hidden; padding: 4px 0; }
.divider { height: 1px; background: rgba(255, 255, 255, 0.12); margin-left: 70px; }
.row { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 12px; width: 100%; text-align: left; transition: background 0.2s; }
.row.is-selected { background: rgba(255, 255, 255, 0.12); }
.row .thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: #1a1a22; }
.row .meta { flex: 1; min-width: 0; display: grid; gap: 1px; }
.row .rbtn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; gap: 5px; color: rgba(255, 255, 255, 0.8); flex: none; }
.dot { width: 6px; height: 6px; border-radius: 3px; background: #fff; }
.foot { padding: 20px var(--gutter) 0; color: rgba(255, 255, 255, 0.55); }
.foot a { color: rgba(255, 255, 255, 0.8); }

/* ── Tab bar + mini player ──────────────────────────────────── */
.tabbar {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
    height: calc(var(--tab-h) + var(--safe-b)); padding: 10px 0 calc(var(--safe-b) + 8px);
    display: flex; justify-content: space-around; align-items: flex-start;
    border-top: 1px solid var(--border); background: var(--glass-strong);
    backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.2px; min-width: 76px; transition: color 0.2s; }
.tab.is-active { color: var(--fg); }
.tab-ic { display: block; width: 22px; height: 22px; }
.tab-ic svg { width: 22px; height: 22px; }
.mini {
    position: absolute; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); z-index: 6;
    height: 60px; border-radius: 30px; border: 1px solid var(--glass-border); background: var(--glass-strong);
    backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
    display: flex; align-items: center; gap: 12px; padding: 0 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    opacity: 0; transform: translateY(14px); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.mini.in { opacity: 1; transform: none; }
.mini .open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; height: 100%; }
.mini .thumb { width: 44px; height: 44px; border-radius: 22px; object-fit: cover; flex: none; }
.mini .meta { flex: 1; min-width: 0; display: grid; gap: 1px; }
.mini .play { width: 44px; height: 44px; border-radius: 22px; background: #fff; color: #111; display: grid; place-items: center; flex: none; transition: transform 0.15s; }
.mini .play:active { transform: scale(0.94); }

/* ── Sheets ─────────────────────────────────────────────────── */
.sheet { position: absolute; inset: 0; z-index: 10; transform: translateY(102%); transition: transform 0.48s var(--ease), visibility 0s linear 0.48s; visibility: hidden; will-change: transform; }
.sheet.open { transform: none; visibility: visible; transition: transform 0.48s var(--ease); }

/* Player */
.player { color: #fff; }
.player-blur { position: absolute; inset: 0; backdrop-filter: blur(42px); -webkit-backdrop-filter: blur(42px); background: rgba(0, 0, 0, 0.2); transition: opacity 0.55s ease; }
.player.immersive .player-blur { opacity: 0; }
.player-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.45) 72%, rgba(0, 0, 0, 0.78) 100%); }
.player-ui { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: var(--safe-t); transition: opacity 0.4s ease; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.player-ui::-webkit-scrollbar { display: none; }
.player.immersive .player-ui { opacity: 0; pointer-events: none; }
.handle { width: 36px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.4); margin: 8px auto 0; flex: none; }
.player-head { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; flex: none; }
.player-head .t-label { letter-spacing: 3px; }
.profile-wrap { flex: 1; display: flex; align-items: center; padding: 6px 24px 8px; min-height: 0; }
.profile { display: grid; gap: 7px; padding-bottom: 6px; width: 100%; }
.profile .head { display: flex; align-items: baseline; justify-content: space-between; }
.spec { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.28); }
.spec svg { display: block; width: 100%; height: 100px; }
.spec text { font-family: 'Nunito', sans-serif; font-weight: 700; }
.spec rect.bar { fill: #fff; opacity: 0.82; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0.02); transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1); }
.spec.live rect.bar { transition: transform 0.25s linear; }
.reads { display: flex; gap: 8px; }
.read { flex: 1; min-width: 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16); padding: 6px 10px; min-height: 54px; display: grid; align-content: start; }
.read.wide { flex: 1.3; }
.read .k { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.read .v { font-size: 15px; font-weight: 700; line-height: 20px; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.read .s { font-size: 12px; font-weight: 500; line-height: 16px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.why { display: flex; gap: 10px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(0, 0, 0, 0.22); padding: 10px 12px; text-align: left; width: 100%; color: #fff; }
.why .ic { margin-top: 2px; color: rgba(255, 255, 255, 0.75); }
.why .k { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.why .body { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, 0.7); }
.profile .credit { text-align: center; color: rgba(255, 255, 255, 0.55); }
.fade-up { animation: fadeUp 0.52s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.player-bottom { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0 28px calc(22px + var(--safe-b)); flex: none; }
.player-title { font-size: 28px; line-height: 34px; letter-spacing: -0.8px; font-weight: 800; text-align: center; color: #fff; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 4px; }
.tag { height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.26); font-size: 13px; font-weight: 700; color: #fff; }
.controls { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.transport { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; }
.ring { width: 76px; height: 76px; border-radius: 38px; border: 1px solid rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; color: #fff; transition: transform 0.15s var(--ease), background 0.2s; }
.ring:active { transform: scale(0.94); background: rgba(255, 255, 255, 0.18); }
.ring.sm { width: 60px; height: 60px; border-radius: 30px; }
.level { display: flex; align-items: center; gap: 12px; width: 100%; color: rgba(255, 255, 255, 0.7); }
.slider { flex: 1; height: 28px; position: relative; cursor: pointer; touch-action: none; }
.slider .track { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(255, 255, 255, 0.22); border-radius: 1px; }
.slider .fill { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; background: #fff; border-radius: 1px; }
.slider .thumb { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 9px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.level-note { font-size: 12px; color: rgba(255, 255, 255, 0.5); text-align: center; }
.clock { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }
.pills { display: flex; align-items: center; gap: 8px; }
.spill { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.1); font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.85); display: inline-flex; align-items: center; gap: 6px; transition: background 0.15s, color 0.15s; }
.spill:active { background: rgba(255, 255, 255, 0.2); }
.spill.is-selected { background: rgba(255, 255, 255, 0.9); border-color: rgba(255, 255, 255, 0.9); color: #000; }
.err { display: flex; gap: 12px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(0, 0, 0, 0.4); padding: 16px; width: 100%; align-items: flex-start; }
.err .ic { margin-top: 2px; }
.err .msg { display: grid; gap: 8px; justify-items: start; }
.immersive-tap { position: absolute; inset: 0; display: none; }
.player.immersive .immersive-tap { display: block; }
.immersive-ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 24px calc(24px + var(--safe-b)); opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.player.immersive .immersive-ui { opacity: 1; pointer-events: auto; }
.immersive-ui .text { flex: 1; min-width: 0; display: grid; gap: 4px; pointer-events: none; }
.immersive-ui .title { font-size: 28px; line-height: 34px; letter-spacing: -0.8px; font-weight: 800; color: #fff; }
.immersive-ui .actions { display: flex; align-items: center; gap: 12px; }
.saved { color: var(--primary); }

/* Detail sheet (theme background, like the app's modal screens) */
.info { background: var(--theme-bg); color: var(--fg); display: flex; flex-direction: column; }
.info-head { height: calc(56px + var(--safe-t)); padding: var(--safe-t) 12px 0; display: flex; align-items: center; justify-content: space-between; flex: none; }
.info-head .icon-btn { color: var(--fg); }
.info-head .icon-btn:active { background: rgba(255, 255, 255, 0.08); }
.info-body { flex: 1; overflow-y: auto; padding: 0 24px calc(40px + var(--safe-b)); scrollbar-width: none; }
.info-body::-webkit-scrollbar { display: none; }
.info-body .art { aspect-ratio: 1; width: 100%; border-radius: 28px; border: 1px solid var(--border); overflow: hidden; margin-top: 8px; }
.info-body .art img { width: 100%; height: 100%; object-fit: cover; }
.info-body .lead { display: grid; gap: 8px; padding-top: 28px; }
.info-body .lead .t-h1 { line-height: 42px; }
.info-body .body { font-size: 15px; line-height: 26px; color: var(--muted); }
.btn-primary-pill { margin-top: 24px; height: 56px; width: 100%; border-radius: 28px; background: var(--primary); color: var(--primary-ink); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 700; transition: transform 0.15s; }
.btn-primary-pill:active { transform: scale(0.98); }
.details { margin-top: 24px; }
.detail { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.detail .l { color: var(--muted); }
.section-title { padding-top: 36px; display: grid; gap: 12px; }

/* ── Glass surfaces ─────────────────────────────────────────── */
.glass { border-radius: var(--radius); border: 1px solid var(--glass-border); background: rgba(18, 16, 20, 0.7); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); overflow: hidden; }
button.glass { text-align: left; width: 100%; transition: transform 0.18s var(--ease); }
button.glass:active { transform: scale(0.985); }

/* ── You ────────────────────────────────────────────────────── */
.page-head { padding: 16px var(--gutter) 20px; display: grid; gap: 8px; color: #fff; }
.page-head .t-h1 { line-height: 42px; }
.scene-card { position: relative; margin: 0 var(--gutter); border-radius: var(--radius); overflow: hidden; aspect-ratio: 39 / 21; background: #0B0B10; border: 1px solid rgba(255, 255, 255, 0.22); }
.scene-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-card .scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.8) 100%); }
.scene-card .open { position: absolute; inset: 0; text-align: left; }
.kicker { position: absolute; left: 14px; top: 12px; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(0, 0, 0, 0.38); display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: #fff; }
.scene-card .text { position: absolute; left: 16px; right: 80px; bottom: 16px; display: grid; gap: 3px; color: #fff; }
.scene-card .text .t-h3 { line-height: 26px; }
.scene-card .pbtn { position: absolute; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.22); display: grid; place-items: center; color: #fff; transition: transform 0.15s; }
.scene-card .pbtn.on { background: #fff; color: #111; }
.scene-card .pbtn:active { transform: scale(0.94); }
.tiles { display: flex; gap: 12px; padding: 12px var(--gutter) 0; }
.tile { flex: 1; min-width: 0; padding: 16px; display: grid; gap: 4px; }
.tile .t-h2 { color: var(--fg); }
.section-h { padding: 32px var(--gutter) 12px; color: #fff; }
.chart { margin: 0 var(--gutter); padding: 20px 16px 14px; height: 150px; display: flex; align-items: stretch; gap: 8px; }
.chart .day { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-width: 0; }
.chart .barwrap { flex: 1; display: flex; align-items: flex-end; }
.chart .bar { width: 100%; border-radius: 4px; background: var(--primary); min-height: 3px; transform-origin: bottom; animation: growBar 0.6s var(--ease) both; }
.chart .bar.empty { background: rgba(255, 255, 255, 0.08); }
@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart .lbl { text-align: center; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); }
.chart .lbl.today { color: #fff; }
.sessions { margin: 0 var(--gutter); }
.session { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.session + .session { border-top: 1px solid var(--border); }
.session .thumb { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; }
.session .meta { flex: 1; min-width: 0; display: grid; gap: 1px; }
.empty { padding: 36px 16px; display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--muted); }
.empty .ic-wrap { width: 48px; height: 48px; border-radius: 24px; background: var(--glass); display: grid; place-items: center; margin-bottom: 4px; }
.data-note { margin: 14px var(--gutter) 0; padding: 16px 20px; display: grid; gap: 4px; }

/* ── Learn ──────────────────────────────────────────────────── */
.learn-cards { display: grid; gap: 14px; padding: 0 var(--gutter); }
.card-row { display: flex; align-items: center; gap: 16px; padding: 20px; width: 100%; text-align: left; text-decoration: none; color: inherit; }
.card-row .meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rbtn-solid { width: 44px; height: 44px; border-radius: 22px; background: var(--fg); color: var(--theme-bg); display: grid; place-items: center; flex: none; }
.today { display: grid; gap: 12px; padding: 24px; }
.today .t-h2 { line-height: 32px; }
.read-pill { height: 36px; padding: 0 16px; border-radius: 18px; background: var(--fg); color: var(--theme-bg); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; justify-self: start; margin-top: 4px; }
.library-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 32px var(--gutter) 0; color: #fff; }
.search { margin: 16px var(--gutter) 0; height: 48px; border-radius: 24px; border: 1px solid var(--glass-border); background: var(--glass); display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--muted); }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fg); font: 500 15px 'Nunito', sans-serif; outline: none; }
.search input::placeholder { color: var(--muted); }
.search .clear { color: var(--muted); display: grid; place-items: center; width: 28px; height: 28px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px var(--gutter) 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--glass-border); background: var(--glass); font-size: 13px; font-weight: 700; color: var(--fg); transition: background 0.15s, color 0.15s; }
.chip.is-selected { background: var(--fg); color: var(--theme-bg); border-color: var(--fg); }
.notes { display: grid; gap: 14px; padding: 16px var(--gutter) 0; }
.note { padding: 20px; display: grid; gap: 8px; }
.note .top { display: flex; justify-content: space-between; color: var(--muted); }
.note .t-h3 { color: var(--fg); }
.note .body { color: var(--muted); }

/* ── Motion preferences ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
