:root{--plum:#141316;--synapse:#ed529a;--paper:#f6f3ed;--graphite:#27252a;--body:-apple-system,BlinkMacSystemFont,"Instrument Sans",system-ui,sans-serif;--nav-h:calc(70px + env(safe-area-inset-bottom,0px));--safe-b:0px;--feed-width:min(100vw,calc(100dvh * 9 / 16));--feed-gutter:max(0px,calc((100vw - var(--feed-width)) / 2))}
html,body{height:100%;height:100dvh;overscroll-behavior:none}
button,a,input{touch-action:manipulation}
button{min-height:44px}
button:disabled{opacity:.6;cursor:wait}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.top{pointer-events:none;left:var(--feed-gutter);right:var(--feed-gutter);display:grid;grid-template-columns:1fr auto;gap:8px;padding:calc(env(safe-area-inset-top,0px) + 10px) 16px 18px;background:linear-gradient(rgba(10,7,14,.68),rgba(10,7,14,.22) 72%,transparent)}
.mark{font-size:23px;letter-spacing:-.65px;align-self:center}
.top-actions{pointer-events:auto;display:flex;gap:8px;align-items:center}
.sound{display:grid;place-items:center;width:44px;border-radius:50%;background:rgba(22,14,32,.5)}
.sound svg{width:21px;height:21px}
.me{height:40px;min-width:40px;max-width:94px;padding:0 12px;font-size:12px}
.me.in{width:40px;height:40px}
.tabs{display:none;grid-column:1/-1;gap:6px;width:100%;margin:0;touch-action:pan-x;padding-bottom:2px}
.tabs button{font-family:var(--body);font-size:12px;font-weight:600;letter-spacing:.35px;padding:8px 14px;background:rgba(22,14,32,.48);color:var(--paper)}
.feed{position:fixed;inset:0;height:auto;max-width:var(--feed-width);width:var(--feed-width);margin:auto;overscroll-behavior-y:contain;touch-action:pan-y;scroll-behavior:smooth;scroll-padding:0}
.slide{height:100%;min-height:100%;scroll-snap-stop:always;isolation:isolate;--rf-bg:var(--plum);--rf-rim:var(--paper);--rf-shadow:rgba(0,0,0,.55)}
.slide video{object-fit:cover;object-position:center;top:0;height:100%;background:#0e0d10}
.rf-stage::after{height:34%;background:linear-gradient(transparent,rgba(10,9,12,.12) 24%,rgba(10,9,12,.68) 72%,rgba(10,9,12,.8));z-index:1;transition:opacity .25s}
.video-toggle{position:absolute;inset:0;width:100%;height:100%;z-index:1;border-radius:0}
.video-toggle:focus-visible{outline-offset:-4px}
.paused{z-index:2;inset:20% 0 34%;pointer-events:none}
.paused span{width:66px;height:66px;background:rgba(22,14,32,.68)}
.paused svg{width:28px;height:28px;margin-left:4px;fill:var(--paper)}
.meta{left:18px;right:78px;bottom:calc(var(--nav-h) + 18px);z-index:3;pointer-events:none;text-shadow:0 1px 3px rgba(0,0,0,.9)}
.meta button,.meta a{pointer-events:auto}
.meta .tag{display:none}
.title{font-family:var(--body);font-size:16px;font-weight:600;line-height:1.22;letter-spacing:-.2px;margin:0 0 5px;max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-wrap:initial}
.hook{font-size:12px;line-height:1.4;color:var(--paper);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.meta .src{display:none}
.watch-progress{position:absolute;bottom:var(--nav-h);left:0;right:0;z-index:4;height:44px;margin:0;display:flex;align-items:flex-end;cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent}
.watch-progress .progress{position:relative;width:100%;height:3px;border-radius:0;overflow:visible;background:rgba(245,238,226,.25);transition:height .15s}
.watch-progress .progress b{position:relative;border-radius:0;transition:none}
.watch-progress .progress b::after{content:"";position:absolute;right:-7px;top:50%;width:14px;height:14px;margin-top:-7px;border-radius:50%;background:var(--synapse);transform:scale(0);transition:transform .15s}
.watch-progress.scrubbing .progress,.watch-progress:focus-visible .progress{height:6px}
.watch-progress.scrubbing .progress b::after,.watch-progress:focus-visible .progress b::after{transform:scale(1)}
.watch-progress:focus{outline:none}
.watch-progress:focus-visible{outline:2px solid var(--paper);outline-offset:-5px}
.watch-time{display:none;position:absolute;left:50%;bottom:120px;transform:translateX(-50%);padding:6px 14px;border-radius:999px;background:rgba(20,12,24,.8);color:#f6eee3;font:600 16px/1.2 var(--body);font-variant-numeric:tabular-nums;pointer-events:none}
.watch-progress.scrubbing .watch-time{display:block}
.explore{background:transparent;color:var(--paper)}
.rail{z-index:3;right:10px;bottom:calc(var(--nav-h) + 18px);gap:10px}
.rail button{min-width:48px;min-height:58px;gap:4px;font-size:11px;text-shadow:0 1px 5px #000}
.rail svg{box-sizing:content-box;width:26px;height:26px;padding:9px;border-radius:50%;background:rgba(10,7,14,.48)}
.rail .on svg{fill:var(--synapse)}
.bottom-nav{position:fixed;z-index:6;bottom:0;left:var(--feed-gutter);right:var(--feed-gutter);height:var(--nav-h);display:grid;grid-template-columns:repeat(3,1fr);padding:6px 16px calc(env(safe-area-inset-bottom,0px) + 6px);background:rgba(20,19,22,.76);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid rgba(246,243,237,.08)}
.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:11px;color:rgba(245,238,226,.72);position:relative;min-height:52px}
.bottom-nav svg{width:23px;height:23px}
.bottom-nav [aria-current]{color:var(--synapse)}
.bottom-nav [aria-current]::after{content:"";position:absolute;bottom:1px;height:3px;width:16px;background:var(--synapse);border-radius:8px}
.sheet{padding:16px 22px calc(env(safe-area-inset-bottom,0px) + 28px);left:0;right:0;width:min(100%,480px);max-width:480px;max-height:88dvh;border-radius:26px 26px 0 0;background-image:none;overscroll-behavior:contain;box-shadow:0 -8px 50px rgba(0,0,0,.18)}
.sheet[hidden]{display:none}
.sheet::before{display:none}
.sheet-chrome{display:flex;align-items:center;justify-content:space-between;margin:-4px -8px 10px;position:sticky;top:-16px;background:var(--paper);z-index:2;padding:4px 0}
.sheet-handle{width:40px;height:4px;margin-left:calc(50% - 12px);background:rgba(22,14,32,.2);border-radius:8px}
.sheet-close{display:grid;place-items:center;width:44px;color:var(--plum);border-radius:50%}
.sheet-close svg{width:22px;height:22px}
.sheet h2{font-size:31px;line-height:1.05;margin:8px 0 16px;letter-spacing:-1px}
.sheet p{font-size:16px;line-height:1.65}
.sheet p+p{margin-top:12px}
.sheet .cite{font-size:11px;opacity:1;color:#63576a;border-top:1px solid #ddd3d8;padding-top:14px;margin-top:18px}
.sheet .tag{color:#a82a60;font-size:11px}
.sheet .btn{display:flex;justify-content:center;align-items:center;gap:10px;min-height:48px;text-align:center;text-decoration:none;margin-top:16px;width:100%;border-radius:99px;background:var(--plum);color:var(--paper);font-size:15px;padding:12px 18px}
.sheet .btn svg{width:20px;height:20px}
.sheet .btn.alt{background:transparent;color:var(--plum);border:1px solid #c7bdca}
.sheet .btn.pink{background:var(--synapse);color:var(--plum);border:0}
.sheet .btn.danger{background:transparent;color:#a42646;border:1px solid #d6aab4}
.sheet .link-button{display:block;margin:20px auto 0;text-decoration:underline;font-size:14px;color:#66596c}
.sheet .helper{font-size:13px;line-height:1.5;color:#66596c;margin-top:12px}
.sheet label{display:block;font-weight:600;margin:18px 0 8px;font-size:14px}
.sheet input{width:100%;min-height:48px;border:1px solid #bfb2c7;border-radius:12px;padding:12px;font:16px var(--body);background:#fff;color:var(--plum)}
.sheet .authform input{width:100%}
.sheet .quiz{border-top:1px solid #d7cbd5;padding-top:20px}
.quiz button{min-height:48px;font-size:15px;border-width:1px;background:transparent}
.quiz button.right{background:#dce9db;border-color:#4c7249}
.quiz button.wrong{opacity:1;color:#9d294d;background:#f2dbe2;text-decoration:none}
.quiz-feedback{font-size:14px!important;line-height:1.5!important;margin-top:12px!important}
.stash-list li{padding:0;border-color:#dcd1da}
.stash-list .saved-idea{width:100%;display:flex;align-items:center;gap:14px;padding:14px 0;text-align:left;color:var(--plum)}
.stash-list img{width:48px;height:68px}
.stash-list b{font-size:20px;line-height:1.1;margin-bottom:5px}
.stash-list small{font-family:var(--body);font-size:12px;opacity:1;color:#66596c}
.topic-list{display:grid;margin-top:16px}
.topic-list button{display:flex;align-items:center;justify-content:space-between;text-align:left;min-height:60px;font-size:18px;font-weight:600;border-bottom:1px solid #dcd1da}
.friend-list{list-style:none;margin-top:20px}
.friend-list li{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dcd1da;padding:12px 0;gap:12px}
.friend-list b{font-size:16px;overflow-wrap:anywhere}
.friend-list button{font-size:12px;text-decoration:underline;color:#66596c}
.invite-box{display:flex;gap:8px;margin:18px 0;padding:12px 0;border-top:1px solid #dcd1da;border-bottom:1px solid #dcd1da;align-items:center}
.invite-box svg{width:24px;height:24px;flex-shrink:0;color:#a82a60}
.invite-box p{font-size:14px}
.empty-icon{width:44px;height:44px;color:#a82a60;margin:8px 0 18px}
.gate{padding:28px;max-width:480px;margin:auto}
.gate p{font-size:20px;max-width:290px;line-height:1.5;margin:24px auto 30px}
.gate .gate-hint{font-size:13px;margin:18px 0 0;max-width:none}
.gate button{display:inline-flex;align-items:center;gap:22px;min-height:56px;font-size:17px}
.gate button svg{width:22px;height:22px}
.gate small{font-family:var(--body);font-size:12px}
.toast{top:calc(env(safe-area-inset-top,0px) + 76px);max-width:calc(100% - 36px);white-space:normal;width:max-content;box-shadow:0 3px 20px rgba(0,0,0,.15);text-align:center;pointer-events:none}
.bookpill{top:calc(env(safe-area-inset-top,0px) + 76px);max-width:calc(var(--feed-width) - 36px);left:calc(var(--feed-gutter) + 18px);z-index:5}
.meta .bookchip{display:none}
@media(min-width:600px){body{background:#100b17}.sheet{margin:auto}.top{padding-top:18px}.feed{border-inline:0}}
@media(max-height:700px){.top{padding-top:10px;gap:6px}.tabs button{min-height:36px}.meta{bottom:calc(var(--nav-h) + 12px)}.rail{bottom:calc(var(--nav-h) + 12px)}}
@media(prefers-reduced-motion:reduce){.feed{scroll-behavior:auto}.sheet,.scrim,.toast{transition:none}}
.friends-tabs{display:flex;gap:6px;overflow-x:auto;margin:22px -2px 8px;padding:3px 2px 8px;scrollbar-width:none}
.friends-tabs button{flex:none;display:flex;align-items:center;gap:6px;min-height:44px;padding:8px 15px;border-radius:99px;background:#e9e0e6;color:#66596c;font-size:13px;font-weight:600;white-space:nowrap}
.friends-tabs button[aria-selected="true"],.friends-tabs button[aria-pressed="true"],.friends-tabs button.active{background:var(--plum);color:var(--paper)}
.friends-tabs .badge{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:50%;background:var(--synapse);color:var(--plum);font-size:11px}
.friend-section{margin-top:24px}
.friend-section h3{font-family:var(--body);font-size:13px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:#66596c;margin-bottom:8px}
.friend-row{display:flex;align-items:center;gap:12px;min-height:78px;padding:14px 0;border-bottom:1px solid #ddd3db}
.friend-avatar{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:#eadbe4;color:#7b3158;font-family:var(--display);font-size:20px;font-weight:800}
.friend-row .friend-copy,.friend-row .friend-name{min-width:0;flex:1}
.friend-row b,.friend-row strong{font-family:var(--display);font-size:19px;line-height:1.2;display:block;overflow-wrap:anywhere}
.friend-row small,.friend-status{display:block;font-size:12px;line-height:1.4;color:#66596c;margin-top:4px}
.friend-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}
.friend-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:8px 12px;border-radius:99px;border:1px solid #c7bdca;font-size:12px;font-weight:600;white-space:nowrap}
.friend-actions button.primary,.friend-actions button.accept{background:var(--plum);color:var(--paper);border-color:var(--plum)}
.friend-actions svg{width:18px;height:18px}
.friends-empty{padding:30px 0 12px;text-align:center}
.friends-empty>svg{width:42px;height:42px;margin:0 auto 18px;color:#a82a60}
.friends-empty h3{font-family:var(--display);font-size:24px;line-height:1.15;margin-bottom:10px}
.friends-empty p{max-width:290px;margin:0 auto;font-size:15px;line-height:1.6}
.friend-profile{display:flex;align-items:center;gap:14px;margin:20px 0 8px}
.friend-profile .friend-avatar{width:52px;height:52px;font-size:24px}
.friend-profile strong{font-family:var(--display);font-size:23px}
.friend-profile button{font-size:13px;text-decoration:underline;min-height:36px}
.friend-stats{font-size:14px;color:#66596c;padding:16px 0;border-top:1px solid #ddd3db;border-bottom:1px solid #ddd3db;margin:20px 0}
.friend-stats strong{color:var(--plum)}
.friend-link-form{display:grid;gap:10px;margin-top:18px}
.friend-link-form label{margin-top:0}
.friend-link-form .btn{margin-top:0}
.inbox-card{padding:18px 0;border-bottom:1px solid #ddd3db}
.inbox-card .inbox-from{font-size:12px;color:#66596c;margin-bottom:10px}
.inbox-card .inbox-idea{display:flex;align-items:center;gap:14px;text-align:left;width:100%;color:var(--plum);padding:0;min-height:80px}
.inbox-card img{width:56px;height:80px;border-radius:9px;object-fit:cover;flex:none}
.inbox-card b,.inbox-card strong{font-family:var(--display);font-size:21px;line-height:1.15;display:block}
.inbox-card small{font-size:12px;color:#66596c;display:block;margin-top:6px}
.inbox-card .friend-actions{justify-content:flex-start;margin-top:10px}
.inbox-card.unread{border-left:1px solid var(--synapse);padding-left:12px}
.inline-edit{min-height:32px;text-decoration:underline;font-size:13px;color:#66596c}
@media(max-width:360px){.friend-row{gap:10px;flex-wrap:wrap}.friend-actions{margin-left:54px;justify-content:flex-start}.friend-actions button{min-height:42px}.friends-tabs button{padding-inline:13px}}
.friend-profile .friend-avatar{flex:none}.friend-profile>span:nth-child(2){min-width:0;flex:1}.friend-profile b{font-family:var(--display);font-size:22px;overflow-wrap:anywhere}.friend-profile small{display:block;color:#66596c;font-size:12px;margin-top:4px}
.friend-incoming{width:100%;text-align:left;font-size:14px;gap:12px}.friend-incoming>span{flex:1}.friend-incoming>svg{flex:none}
.friend-actions .friend-accept{background:var(--plum);color:var(--paper);border-color:var(--plum)}
.friend-stats{display:flex;gap:12px;align-items:center}.friend-stats>svg{flex:none;width:24px;height:24px;color:#a82a60}
.inbox-byline{display:flex;align-items:center;gap:10px;margin-bottom:14px}.inbox-byline>span:nth-child(2){flex:1;min-width:0}.inbox-byline .friend-avatar{width:34px;height:34px;font-size:16px}.inbox-byline b{font-family:var(--body);font-size:14px}.inbox-byline small{font-size:11px;margin-top:2px}.inbox-byline button{display:grid;place-items:center;width:40px;flex:none}.inbox-byline button svg{width:18px;height:18px}
.inbox-open{display:flex;text-align:left;gap:14px;align-items:center;width:100%;color:var(--plum)}
.inbox-open>span{min-width:0;flex:1}.inbox-open>span>span{display:block;font-size:13px;line-height:1.5;margin-top:7px;color:#66596c}.inbox-open em{display:flex;align-items:center;gap:5px;font-style:normal;font-size:12px;font-weight:600;margin-top:10px;color:#8e285b}.inbox-open em svg{width:15px;height:15px}

::selection{background:var(--synapse);color:var(--plum)}
input{caret-color:#a82a60}
.sheet{scrollbar-width:thin;scrollbar-color:#9c899f var(--paper)}
.sheet .idea-hook{font-weight:600;font-size:17px;line-height:1.5}
.idea-book{display:flex;width:100%;text-align:left;gap:16px;align-items:center;margin:24px 0 0;padding:18px 0;border-block:1px solid #d7cbd5;color:var(--plum)}
.idea-book>.cover{width:56px;height:84px;flex:none}
.idea-book>span{min-width:0;flex:1}
.idea-book small,.idea-book>span>span{display:block;font-size:13px;line-height:1.4;color:#63576a}
.idea-book b{display:block;font-family:var(--display);font-size:21px;line-height:1.15;margin:5px 0}
.idea-book em{display:flex;align-items:center;gap:5px;font-style:normal;font-size:12px;font-weight:600;color:#8e285b;margin-top:8px}
.idea-book em svg{width:14px;height:14px}
.bookhead{align-items:flex-start;gap:18px;margin-top:8px}
.bookhead>.cover{width:76px;height:114px}
.bookhead h2{font-size:27px;line-height:1.08;letter-spacing:-.6px;margin:0 0 9px;overflow-wrap:anywhere}
.bookhead .by{font-size:15px;line-height:1.4;opacity:1;color:#63576a}
.bookhead .book-topic{font-size:12px;line-height:1.4;color:#63576a;margin-top:7px}
.book-context{margin-top:22px}
.book-actions .btn{margin-top:12px}
.book-link{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;margin-top:4px;color:#63576a;font-size:13px;text-underline-offset:4px}
.book-link svg{width:15px;height:15px}
.book-section-title{font-family:var(--display);font-size:22px;line-height:1.2;letter-spacing:-.4px;margin:28px 0 10px}
.book-ideas,.book-library{list-style:none;margin:0;padding:0}
.book-ideas li,.book-library li{border-bottom:1px solid #dcd1da}
.book-ideas button,.book-library button{display:flex;align-items:center;text-align:left;width:100%;gap:14px;padding:14px 0;color:var(--plum)}
.book-ideas img{width:48px;height:72px;object-fit:cover;border-radius:7px;flex:none}
.book-ideas button>span,.book-library button>span{min-width:0;flex:1}
.book-ideas b,.book-library b{display:block;font-family:var(--display);font-size:19px;line-height:1.15}
.book-ideas small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.4;color:#63576a;margin-top:6px}
.book-ideas button>svg{width:20px;height:20px;flex:none}
.book-library .cover{width:56px;height:84px;flex:none}
.book-library small{display:block;font-size:13px;line-height:1.4;color:#63576a;margin-top:6px}
.book-library em{display:flex;align-items:center;gap:5px;font-style:normal;font-size:12px;color:#8e285b;margin-top:8px}
.book-library em svg{width:14px;height:14px}
.related-books{display:flex;gap:18px;overflow-x:auto;padding:4px 2px 12px;scrollbar-width:thin}
.related-books button{flex:0 0 110px;text-align:left;color:var(--plum)}
.related-books .cover{display:block;width:68px;height:102px;margin-bottom:9px}
.related-books b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.25}
.related-books small{display:block;font-size:11px;line-height:1.35;color:#63576a;margin-top:5px}
.library-entry{display:flex;align-items:center;gap:14px;text-align:left;width:100%;padding:18px 0;margin-top:8px;border-bottom:1px solid #dcd1da;color:var(--plum)}
.library-entry>svg{width:25px;height:25px;flex:none}
.library-entry>svg:last-child{width:18px;height:18px}
.library-entry>span{flex:1;min-width:0}
.library-entry b{display:block;font-size:18px}
.library-entry small{display:block;font-size:13px;color:#63576a;margin-top:5px}

/* Reading controls stay discoverable; the video gets quiet once it is watched. */
.top .topics{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:0 10px;border-radius:22px;background:rgba(20,19,22,.48);font-size:12px;font-weight:600;color:var(--paper)}
.top .topics svg{width:14px;height:14px}
.top .topics[aria-current]{background:var(--paper);color:var(--plum)}
.meta,.watch-progress,.bottom-nav{transition:opacity .25s,visibility .25s,transform .25s}
.watch-clean .meta,.watch-clean .watch-progress,.watch-clean .bottom-nav{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px)}
.watch-clean .rf-stage::after{opacity:0}
button{transition:background .18s,opacity .18s,transform .18s}
button:active{transform:scale(.97)}
.video-toggle:active{transform:none}
.auth{display:flex;align-items:center;justify-content:center;gap:12px;min-height:52px;border-radius:14px}
.provider-icon{width:20px;height:20px;flex:none}
.auth.auth-google{background:#fff;color:#242328;border:1px solid #d7d5d9}
.auth.auth-apple{background:#171719;color:#fff;border:1px solid #171719}
.auth-required .top,.auth-required .bottom-nav{visibility:hidden;pointer-events:none}
.auth-required #gate{z-index:8}
@media(max-width:360px){.top{padding-inline:12px;gap:5px}.mark{font-size:21px}.top-actions{gap:5px}.top .topics{padding-inline:8px}}
@media(prefers-reduced-motion:reduce){.meta,.watch-progress,.bottom-nav,.rf-stage::after,button{transition:none}}

.watch-clean .watch-progress{opacity:.7;visibility:visible;pointer-events:auto;transform:translateY(calc(var(--nav-h) - env(safe-area-inset-bottom,0px) - 2px))}
.watch-clean .watch-progress.scrubbing{opacity:1}

@media(max-height:520px){.top{grid-template-columns:1fr;padding-inline:12px}.top .mark{display:none}.top-actions{justify-content:space-between}}
