:root{--accent:#e11d48;--accent-deep:#be123c;--accent-soft:#fff0f3;--ink:#111114;--muted:#6c6b72;--line:#e9e9ec;--wash:#f8f8f9;--surface:#fff;--radius:19px;--shadow:0 12px 38px rgba(13,16,22,.045);font-family:Inter,"Geist",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}html{height:100%;scroll-behavior:smooth}body{margin:0;background:#fff;min-width:320px}button,input,textarea,select{font:inherit}button{border:none;background:none;cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}a{color:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(30px,3vw,42px);letter-spacing:-.06em;line-height:1.08;margin-bottom:10px}h2{letter-spacing:-.042em}p{line-height:1.5}svg.ico{display:block;width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.85}button svg.ico{pointer-events:none}.hidden{display:none!important}.accent-dot,.wordmark span{color:var(--accent)}.app-shell{display:flex;min-height:100vh}.side-nav{width:246px;position:sticky;top:0;height:100vh;border-right:1px solid var(--line);padding:30px 18px 23px;display:flex;flex-direction:column;gap:27px;background:#fff;flex-shrink:0;z-index:5}.wordmark{font-size:35px;font-weight:860;letter-spacing:-.085em;line-height:1;color:#111;display:inline-flex;align-items:baseline;align-self:flex-start;padding:4px 12px 17px}.wordmark span{font-size:43px;line-height:0}.nav-group{display:flex;flex-direction:column;gap:5px}.nav-label{font-size:10px;letter-spacing:.18em;font-weight:800;color:#96969c;margin:15px 15px 10px}.nav-item,.nav-settings{width:100%;display:flex;align-items:center;gap:13px;padding:13px 14px;border-radius:14px;font-weight:660;font-size:14px;text-align:left;color:#29282e;transition:.18s ease}.nav-item:hover,.nav-settings:hover{background:#faf5f6}.nav-item.active{background:var(--accent-soft);color:var(--accent)}.nav-item svg{width:20px;height:20px}.nav-count{margin-left:auto;padding:3px 7px;border-radius:40px;background:#f3f3f4;color:#5f5e65;font-size:11px}.nav-grow{flex:1}.nav-promo{padding:22px 16px;border-radius:20px;background:linear-gradient(155deg,#fff8fa 25%,#fce6ec 100%);display:flex;flex-direction:column;gap:10px;align-items:flex-start}.promo-icon{color:var(--accent)}.nav-promo strong{font-size:17px;line-height:1.24;letter-spacing:-.03em}.nav-promo span:not(.promo-icon){color:#777078;font-size:12px;line-height:1.5}.nav-promo button{margin-top:6px;background:var(--accent);border-radius:10px;color:#fff;font-weight:730;font-size:12px;padding:11px 14px}.nav-settings{margin-top:-13px}.right-area{width:calc(100% - 246px);min-width:0;flex:1}.topbar{height:88px;position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:20px;background:rgba(255,255,255,.95);border-bottom:1px solid var(--line);padding:0 clamp(22px,3.1vw,53px);backdrop-filter:blur(18px)}.search-holder{max-width:670px;width:100%;height:46px;padding:0 15px;display:flex;align-items:center;gap:12px;border:1px solid #e5e5e8;border-radius:30px;background:#fff;color:#35333a}.search-holder svg{width:20px}.search-holder input{min-width:0;flex:1;border:0;background:transparent;outline:0;font-size:14px}.search-holder input::placeholder{color:#929197}.keycap{font-size:11px;color:#98979c}.top-actions{display:flex;align-items:center;gap:15px;white-space:nowrap}.live-status{display:flex;gap:8px;align-items:center;color:#77767e;font-weight:600;font-size:12px}.live-status i{width:7px;height:7px;background:#999;border-radius:50%}.live-status.online i{background:#111}.live-status.demo i{background:var(--accent)}.header-streak{display:flex;align-items:center;gap:5px;border-radius:50px;background:#f9f5f6;padding:10px 13px;color:var(--accent);font-weight:730;font-size:12px}.header-streak svg{width:16px;height:16px}.top-avatar{width:39px;height:39px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center}.mobile-logo{display:none}.main-content{max-width:1650px;margin:auto;padding:39px clamp(23px,3.1vw,56px) 75px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.page-heading p{margin:0;color:var(--muted);font-size:14px}.ghost-small{border:1px solid var(--line);border-radius:12px;padding:9px 14px;display:flex;gap:7px;align-items:center;font-size:13px;font-weight:680;background:#fff;white-space:nowrap}.ghost-small:hover{background:#f8f8f9}.ghost-small svg{width:16px;height:16px}.feed-tabs{display:flex;align-items:center;gap:32px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}.feed-tabs button{padding:13px 3px 15px;position:relative;font-size:14px;font-weight:700;color:#77767c;white-space:nowrap}.feed-tabs button.active{color:var(--ink)}.feed-tabs button.active:after{position:absolute;content:"";height:3px;background:var(--accent);bottom:0;left:0;right:0;border-radius:3px}.topic-strip{display:flex;gap:8px;overflow:auto;padding:16px 0 21px;scrollbar-width:none}.topic-chip{border:1px solid #eae8ea;border-radius:50px;padding:8px 13px;font-size:12px;font-weight:690;white-space:nowrap;display:flex;align-items:center;gap:7px;color:#55535b}.topic-chip.active{background:var(--accent);border-color:var(--accent);color:white}.topic-chip:hover:not(.active){background:#fbf9fa}.topic-chip svg{width:15px;height:15px}.feed-layout{display:grid;grid-template-columns:minmax(320px,630px) minmax(248px,340px);gap:clamp(20px,3.2vw,45px);align-items:start}.feed-column{min-width:0}.feed-track{height:min(700px,calc(100vh - 310px));min-height:480px;overflow-y:auto;overscroll-behavior-y:contain;scroll-snap-type:y mandatory;scrollbar-width:thin;scrollbar-color:#ddd transparent;border:1px solid #e8e8ea;border-radius:23px;background:#fafafa}.feed-track::-webkit-scrollbar{width:5px}.feed-track::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px}.skeleton-card,.feed-empty{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:35px;background:#fff;gap:12px;color:var(--muted)}.feed-empty h2{font-size:23px;color:var(--ink);margin:0}.feed-empty button{border:1px solid var(--line);border-radius:10px;padding:9px 14px;font-size:13px}.swipe-card{height:100%;min-height:0;scroll-snap-align:start;scroll-snap-stop:always;background:#fff;display:flex;flex-direction:column;position:relative;overflow:hidden;border-bottom:1px solid var(--line)}.swipe-card .feed-photo{height:51%;min-height:155px;width:100%;background:#f2f2f3;position:relative;overflow:hidden}.swipe-card .feed-photo img{display:block;width:100%;height:100%;object-fit:cover;filter:grayscale(100%);transform:translateZ(0)}.swipe-card .feed-photo img.is-small{object-fit:contain;width:auto;height:auto;max-height:85%;max-width:85%;margin:auto;position:absolute;inset:0;filter:grayscale(100%);box-shadow:0 5px 35px #0002}.swipe-card .feed-photo img + .image-caption{display:none}.swipe-card .feed-photo .photoless{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:9%;background:#f5f5f6;color:#27262b}.photoless .source-monogram{font-size:clamp(36px,6vw,67px);font-weight:800;line-height:1;letter-spacing:-.065em;color:#cac9cc}.photoless small{font-size:12px;font-weight:700;letter-spacing:.16em;margin-top:12px}.swipe-card.no-photo .feed-photo{height:26%;min-height:105px}.swipe-card.no-photo .feed-copy{justify-content:center}.feed-photo .photo-source{position:absolute;left:16px;top:16px;background:#fff;color:#212025;border-radius:20px;font-weight:750;padding:7px 10px;font-size:11px}.feed-copy{padding:19px 23px 20px;display:flex;flex-direction:column;flex:1;min-height:0}.feed-meta{color:#6d6a72;display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px;font-weight:580;margin-bottom:9px}.feed-kind{color:var(--accent);font-weight:780}.feed-title{font-size:clamp(23px,2.3vw,30px);letter-spacing:-.047em;line-height:1.13;font-weight:820;margin:0 0 12px;max-width:570px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.feed-description{font-size:14px;line-height:1.54;color:#65636a;margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.author-row{font-size:13px;font-weight:650;margin-bottom:6px;display:flex;align-items:center;gap:6px}.author-row .post-avatar{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#f4edf0;color:var(--accent);font-size:11px}.feed-footer{margin-top:auto;display:flex;align-items:center;gap:14px;border-top:1px solid #efeff0;padding-top:13px}.feed-footer .primary-learn{margin-right:auto;background:var(--accent);color:#fff;border-radius:12px;min-height:42px;padding:0 17px;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:780}.feed-footer .primary-learn:hover,.accent-button:hover,.round-accent:hover{background:var(--accent-deep)}.feed-footer .tool{display:flex;flex-direction:column;align-items:center;gap:2px;justify-content:center;min-width:31px;color:#333;font-size:10px}.feed-footer .tool.is-active{color:var(--accent)}.feed-footer .tool svg{width:20px;height:20px}.feed-footer .tool span{font-size:10px}.feed-help{display:flex;justify-content:space-between;align-items:center;color:#929197;padding:13px 3px;font-size:12px}.feed-help button{display:flex;gap:4px;align-items:center;color:#343139;font-weight:740}.feed-help svg{width:15px}.learning-rail{display:flex;flex-direction:column;gap:15px}.rail-card,.journey-panel{border:1px solid var(--line);border-radius:21px;padding:22px;background:#fff}.rail-card h2,.journey-panel h2{font-size:19px;margin-bottom:5px}.rail-card p,.journey-panel p{color:var(--muted);font-size:12px;margin-bottom:16px}.rail-streak{background:linear-gradient(130deg,#fff6f8,#fdebef);border:0}.rail-title{display:flex;gap:9px;align-items:center;font-size:18px;letter-spacing:-.02em}.rail-title svg{color:var(--accent)}.week-dots{display:flex;gap:7px;justify-content:space-between;margin-top:18px}.week-dot{text-align:center;display:flex;flex-direction:column;align-items:center;gap:9px;font-size:10px;color:#888;width:26px}.week-dot b{width:25px;height:25px;display:grid;place-items:center;border:1.5px solid #d7cdd0;border-radius:50%;font-size:13px;color:#b7adb0}.week-dot.done b{background:var(--accent);border-color:var(--accent);color:#fff}.week-dot.today span{font-weight:900;color:var(--accent)}.rail-journey{padding-top:5px}.rail-step{position:relative;display:flex;align-items:flex-start;gap:12px;padding:11px 0 17px;font-size:12px}.rail-step:before{position:absolute;content:"";width:2px;top:33px;bottom:-6px;left:12px;background:#e4e3e5}.rail-step:last-child:before{display:none}.rail-step .bullet{width:26px;height:26px;flex:none;z-index:1;background:#fff;border:2px solid #dedee1;border-radius:50%;display:grid;place-items:center}.rail-step.complete .bullet{background:var(--accent);border-color:var(--accent);color:white}.rail-step.current .bullet{border:5px solid var(--accent)}.rail-step strong{display:block;font-size:13px}.rail-step small{color:#818087;font-size:11px}.text-action{width:100%;display:flex;align-items:center;justify-content:space-between;padding:14px 0 0;color:var(--accent);font-size:12px;font-weight:740;border-top:1px solid var(--line);margin-top:7px}.quick-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.quick-action-grid button{min-height:90px;border-radius:13px;border:1px solid var(--line);display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:13px;text-align:left;font-size:12px;font-weight:760;line-height:1.2}.quick-action-grid button:hover{background:var(--accent-soft)}.quick-action-grid svg{color:var(--accent)}.section-title{font-size:19px;margin:35px 0 18px}.explore-topics{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:14px}.explore-topic{min-height:112px;text-align:left;border:1px solid var(--line);border-radius:18px;padding:19px;display:flex;justify-content:space-between;align-items:flex-start;flex-direction:column;font-weight:770;font-size:14px}.explore-topic svg{color:var(--accent)}.explore-topic.selected{background:var(--accent);color:#fff;border-color:var(--accent)}.explore-topic.selected svg{color:#fff}.explore-topic:hover:not(.selected){border-color:#eab8c5;background:#fffafb}.section-header{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:34px 0 18px}.section-header h2{font-size:23px;margin:0 0 4px}.section-header p{color:var(--muted);font-size:12px;margin:0}.explore-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.explore-item{display:flex;align-items:flex-start;gap:15px;border:1px solid var(--line);border-radius:18px;padding:19px;text-align:left;min-width:0}.explore-item:hover{border-color:#efb7c5}.explore-item .e-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:#f6f6f7;color:#555;flex:none}.explore-item strong{font-size:15px;line-height:1.25;display:block;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.explore-item p{font-size:12px;color:var(--muted);margin:6px 0}.explore-item small{font-size:11px;color:var(--accent);font-weight:720}.journey-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(245px,1fr);gap:20px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:19px}.stat-card{padding:23px;border:1px solid var(--line);border-radius:19px;display:flex;flex-direction:column;gap:6px}.stat-card strong{font-size:35px;letter-spacing:-.06em}.stat-card span{color:var(--muted);font-size:12px}.journey-side{display:flex;flex-direction:column;gap:20px}.journey-panel .section-header{margin:0 0 14px}.journey-step{border-left:2px solid #e6e6e8;margin:0 0 0 13px;padding:5px 0 20px 24px;position:relative}.journey-step:before{position:absolute;content:"";width:23px;height:23px;left:-12px;top:3px;border-radius:50%;border:3px solid #e2e2e5;background:white}.journey-step.done:before{background:var(--accent);border-color:var(--accent)}.journey-step.current:before{border:6px solid var(--accent)}.journey-step h3{font-size:16px;margin:0 0 3px}.journey-step p{color:var(--muted);font-size:12px;margin:0}.journey-step button{margin-top:10px;color:var(--accent);font-size:12px;font-weight:740}.continue-lesson{border:1px solid var(--line);border-radius:16px;padding:16px}.continue-lesson strong{display:block;font-size:15px;margin-bottom:8px}.continue-lesson small{color:var(--muted)}.continue-lesson button{display:flex;justify-content:center;gap:7px;align-items:center;background:var(--accent);color:#fff;border-radius:12px;font-size:12px;font-weight:750;padding:12px;margin-top:14px;width:100%}.subject-chip{display:inline-flex;align-items:center;background:#f7f7f8;border-radius:30px;padding:8px 11px;font-size:12px;margin:3px;font-weight:650}.library-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:13px}.library-search{height:46px;border:1px solid var(--line);border-radius:13px;display:flex;align-items:center;gap:8px;padding:0 14px;flex:1}.library-search svg{color:#888}.library-search input{border:0;outline:0;flex:1;min-width:100px}.library-toolbar select{height:46px;border:1px solid var(--line);border-radius:13px;padding:0 14px;background:white}.library-filter{display:flex;gap:9px;margin:11px 0 23px;flex-wrap:wrap}.library-filter button,.pill{border:1px solid var(--line);border-radius:30px;padding:8px 13px;font-weight:690;font-size:12px}.library-filter button.active{background:var(--accent);color:#fff;border-color:var(--accent)}.library-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.library-item{border:1px solid var(--line);border-radius:18px;padding:19px;display:flex;flex-direction:column;gap:10px;min-height:190px}.library-item:hover{border-color:#e9bac5}.library-item .lib-label{font-size:11px;font-weight:760;color:var(--accent)}.library-item h3{font-size:20px;letter-spacing:-.035em;line-height:1.24;margin:0}.library-item p{font-size:12px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0}.library-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;border-top:1px solid var(--line);padding-top:12px}.library-footer span{color:#999;font-size:11px}.library-footer button{color:var(--accent);font-size:12px;font-weight:750}.empty-state{padding:70px 20px;border:1px dashed #ddd;border-radius:18px;text-align:center;color:var(--muted);grid-column:1/-1}.empty-state h2{color:var(--ink);font-size:22px}.empty-state button{padding:12px 18px;background:var(--accent);color:white;font-weight:750;border-radius:10px}.ask-layout{display:grid;grid-template-columns:1fr 260px;gap:20px;max-width:1050px}.chat-area{height:600px;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:20px;overflow:hidden}.chat-log{padding:23px;overflow-y:auto;flex:1}.chat-welcome{max-width:400px;margin:85px auto;text-align:center}.chat-welcome svg{color:var(--accent);width:30px;height:30px;margin:auto}.chat-welcome h2{font-size:23px;margin:12px 0}.chat-welcome p{color:var(--muted);font-size:13px}.chat-compose{display:flex;gap:10px;padding:14px;border-top:1px solid var(--line)}.chat-compose input{flex:1;border:0;outline:0;min-width:100px}.round-accent{width:37px;height:37px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center}.chat-message{max-width:84%;padding:13px 15px;border-radius:16px;margin:10px 0;white-space:pre-wrap;font-size:13px;line-height:1.6}.chat-message.user{margin-left:auto;background:#f3f3f4}.chat-message.bot{background:var(--accent-soft);color:#232125}.chat-reference{display:block;margin-top:8px;font-size:11px;text-decoration:underline;color:var(--accent)}.ask-prompts{border:1px solid var(--line);border-radius:19px;height:max-content;padding:18px}.ask-prompts h2{font-size:18px}.ask-prompts button{display:flex;justify-content:space-between;text-align:left;width:100%;gap:8px;border-top:1px solid var(--line);padding:13px 2px;font-size:12px;font-weight:650}.ask-prompts span{color:var(--accent)}.accent-button{background:var(--accent);color:#fff;border-radius:14px;padding:14px 18px;font-weight:790;display:inline-flex;align-items:center;justify-content:center;gap:9px}.accent-button.compact{font-size:13px}.accent-button.full{width:100%}.accent-button svg{width:17px}.mobile-nav{display:none}.modal-dialog{border:0;border-radius:25px;padding:24px;background:#fff;color:var(--ink);box-shadow:0 30px 100px #0003;max-width:min(550px,calc(100vw - 20px));width:100%;max-height:min(92vh,940px);overflow-y:auto}.modal-dialog::backdrop{background:rgba(16,17,20,.60);backdrop-filter:blur(6px)}.modal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.eyebrow{font-size:10px;font-weight:820;color:var(--accent);letter-spacing:.13em}.close-button{border:1px solid var(--line);border-radius:50%;width:34px;height:34px;display:grid;place-items:center;color:#555}.close-button svg{width:17px;height:17px}.modal-dialog h2{font-size:27px;line-height:1.18;letter-spacing:-.045em;margin-bottom:12px}.modal-dialog>p{color:var(--muted);font-size:13px}.modal-dialog label{font-size:12px;font-weight:730;display:flex;flex-direction:column;gap:7px;margin:16px 0}.modal-dialog input:not([type=file]),.modal-dialog textarea{border:1px solid #e1e1e5;border-radius:12px;width:100%;padding:13px 14px;font-size:14px;resize:vertical}.modal-dialog input:focus,.modal-dialog textarea:focus{outline:2px solid #f6b3c4;border-color:var(--accent)}.modal-dialog .add-tabs{display:flex;border-bottom:1px solid var(--line);gap:20px;margin-top:22px}.add-tabs button{padding:12px 3px;position:relative;color:#777;font-size:13px;font-weight:700}.add-tabs button.active{color:var(--accent)}.add-tabs button.active:after{height:3px;content:"";background:var(--accent);position:absolute;left:0;right:0;bottom:-1px}.fine-print{font-size:11px!important;color:#97959c!important;line-height:1.5}.upload-label{border:1px dashed #d1c9cc;border-radius:12px;padding:20px;text-align:center}.upload-label input{margin:10px auto}.upload-label small{color:#888;font-weight:400}.form-status{min-height:22px;font-size:12px;color:var(--accent)}.settings-actions{display:flex;gap:15px;margin:20px 0}.settings-actions button{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:710}.streak-big{font-size:60px;letter-spacing:-.08em;font-weight:850;color:var(--accent)}.streak-dialog .week-dots{margin:25px 0}.reader-dialog{max-width:min(760px,calc(100vw - 18px));height:min(850px,95vh);display:flex;flex-direction:column;padding:0;overflow:hidden}.reader-dialog:not([open]){display:none}.reader-dialog .modal-top{padding:20px 26px 0;margin-bottom:10px}.reader-scroll{overflow-y:auto;flex:1;padding:15px 34px 27px}.reader-bottom{border-top:1px solid var(--line);padding:15px 25px;background:#fff}.reader-source-line{font-size:11px;color:var(--accent);font-weight:750;letter-spacing:.04em;margin:10px 0}.reader-title{font-size:clamp(29px,4vw,39px);line-height:1.13;letter-spacing:-.055em;font-weight:840;margin:12px 0 15px}.reader-intro{font-size:14px;line-height:1.65;color:#57565c}.reader-hero-photo{height:200px;position:relative;border-radius:18px;overflow:hidden;margin-bottom:19px;background:#f4f4f4}.reader-hero-photo img{height:100%;width:100%;object-fit:cover;filter:grayscale(100%)}.reader-hero-photo .photo-fallback{height:100%;display:grid;place-items:center;font-size:14px;font-weight:800;color:#999}.reader-steps{display:flex;gap:7px;margin:19px 0}.reader-steps i{flex:1;height:4px;border-radius:10px;background:#e8e8e8}.reader-steps i.filled{background:var(--accent)}.reader-step-label{font-size:11px;font-weight:790;color:var(--accent);letter-spacing:.07em;margin-bottom:8px}.reader-step-heading{font-size:24px;letter-spacing:-.04em;margin:0 0 17px}.reader-copy{font-size:16px;line-height:1.79;white-space:pre-wrap;color:#37363a}.reader-points{padding:0;margin:0;list-style:none;display:flex;flex-direction:column;gap:16px}.reader-points li{display:flex;gap:12px;font-size:15px;line-height:1.6}.reader-points b{width:27px;height:27px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);border-radius:50%;flex:none}.reader-cites{border-top:1px solid var(--line);margin-top:24px;padding-top:15px;font-size:11px;color:#777}.reader-cites a{display:inline-block;margin:8px 11px 0 0;color:var(--accent);font-weight:680}.reader-note{background:#f8f8f8;border-radius:14px;padding:15px;font-size:12px;color:#777;line-height:1.6;margin-top:15px}.reader-alert{border:1px solid #f1d8df;border-radius:15px;padding:18px;background:#fff9fb;color:#4b3940;font-size:13px;line-height:1.65}.reader-alert strong{display:block;color:var(--accent);font-size:15px;margin-bottom:5px}.reader-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}.reader-actions .accent-button{min-width:145px}.reader-actions .quiet{font-size:12px;color:#777;font-weight:700}.voice-line{display:flex;gap:9px;align-items:center;margin-top:13px;font-size:12px;color:#777;flex-wrap:wrap}.voice-line select{padding:7px;border:1px solid var(--line);border-radius:8px;background:#fff;max-width:190px}.voice-line button{border:1px solid var(--line);border-radius:8px;padding:7px 10px;color:var(--accent);font-weight:740}.toast{z-index:30;position:fixed;left:50%;bottom:25px;transform:translate(-50%,15px);background:#1d1c21;color:#fff;border-radius:40px;padding:11px 18px;font-size:12px;box-shadow:0 10px 30px #0003;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1220px){.side-nav{width:210px}.right-area{width:calc(100% - 210px)}.main-content{padding:27px 25px 68px}.topbar{padding:0 25px}.feed-layout{grid-template-columns:minmax(320px,1fr) 260px;gap:18px}.rail-card{padding:17px}.live-status{display:none}.explore-topics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:990px){.side-nav{width:74px;padding:27px 8px;align-items:center}.side-nav>.wordmark{font-size:0;padding:8px;margin:0 auto}.side-nav>.wordmark:before{content:'r';font-size:35px;color:var(--accent)}.nav-item{width:54px;height:53px;font-size:0;justify-content:center;padding:0}.nav-item svg{width:24px;height:24px}.nav-item .nav-count,.nav-label,.nav-promo,.nav-settings{display:none}.nav-group{gap:8px}.right-area{width:calc(100% - 74px)}.feed-layout{grid-template-columns:minmax(310px,1fr)}.learning-rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.learning-rail .rail-card:last-child{grid-column:1/-1}.feed-track{height:660px;max-width:650px}.feed-help{max-width:650px}.main-content{max-width:760px}.journey-layout{grid-template-columns:1fr}.explore-topics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){:root{--radius:16px}.side-nav{display:none}.right-area{width:100%}.topbar{height:61px;padding:0 17px}.mobile-logo{display:inline-flex;font-size:28px;align-self:center;padding:0}.mobile-logo span{font-size:35px}.search-holder{margin-left:auto;flex:0 1 41px;width:41px;height:41px;border:0;padding:0;justify-content:center}.search-holder input,.search-holder .keycap{display:none}.top-actions{gap:9px}.top-actions .header-streak{padding:8px;border-radius:50%;font-size:0}.top-actions .header-streak span{display:none}.top-avatar{width:35px;height:35px}.main-content{padding:18px 14px 100px}.page-heading{margin:5px 4px 18px}.page-heading h1{font-size:31px;margin-bottom:5px}.page-heading p{font-size:12px}.page-heading .ghost-small{font-size:0;gap:0;width:36px;height:36px;justify-content:center;padding:0}.feed-tabs{gap:25px;margin:0 -14px;padding:0 19px}.feed-tabs button{font-size:13px;padding:12px 0}.topic-strip{padding:13px 0 15px}.feed-layout{display:block}.learning-rail{display:none}.feed-track{height:calc(100dvh - 275px);min-height:470px;max-height:760px;border-radius:20px}.feed-photo{flex-shrink:0}.swipe-card .feed-photo{height:47%}.swipe-card.no-photo .feed-photo{height:23%}.feed-copy{padding:14px 17px 15px}.feed-title{font-size:24px;margin-bottom:9px}.feed-description{font-size:13px;-webkit-line-clamp:3}.feed-footer{padding-top:11px;gap:12px}.feed-footer .primary-learn{min-height:40px;padding:0 12px;font-size:12px}.feed-footer .tool svg{width:19px;height:19px}.feed-help{padding:9px 4px 0}.mobile-nav{display:flex;position:fixed;left:0;right:0;bottom:0;height:calc(72px + env(safe-area-inset-bottom));padding:7px 10px calc(6px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);z-index:9;align-items:flex-start;justify-content:space-around}.mobile-nav button{display:flex;flex-direction:column;gap:4px;align-items:center;min-width:49px;font-size:10px;color:#838087;font-weight:690}.mobile-nav button.active{color:var(--accent)}.mobile-nav svg{width:23px;height:23px}.mobile-nav button.mobile-add{height:42px;width:42px;min-width:42px;background:var(--accent);color:#fff;border-radius:50%;display:grid;place-items:center;margin-top:-7px;box-shadow:0 4px 14px #e11d4850}.mobile-nav .mobile-add svg{width:24px;height:24px}.explore-topics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.explore-topic{min-height:93px;padding:16px}.explore-list,.library-list{grid-template-columns:1fr}.section-header h2{font-size:20px}.section-header{margin:27px 0 14px}.journey-layout{display:block}.journey-side{margin-top:15px}.stat-card{padding:15px}.stat-card strong{font-size:29px}.ask-layout{grid-template-columns:1fr}.ask-prompts{display:none}.chat-area{height:calc(100dvh - 240px);min-height:440px}.modal-dialog{border-radius:22px 22px 0 0;position:fixed;margin:auto 0 0;max-width:100%;width:100%;max-height:92dvh}.reader-dialog{height:93dvh;max-height:93dvh;max-width:100%;border-radius:22px 22px 0 0;padding:0}.reader-scroll{padding:12px 21px 24px}.reader-title{font-size:28px}.reader-dialog .modal-top{padding:19px 21px 0}.reader-bottom{padding:14px 18px calc(14px + env(safe-area-inset-bottom))}.reader-hero-photo{height:165px}.reader-copy{font-size:15px}.toast{bottom:85px;white-space:normal;max-width:90%;text-align:center}}
@media(max-width:375px){.feed-track{min-height:435px}.feed-description{-webkit-line-clamp:2}.feed-title{font-size:21px}.feed-footer .tool span{display:none}.feed-footer .tool{min-width:24px}.main-content{padding-left:10px;padding-right:10px}.feed-tabs{margin:0 -10px}.topic-strip{padding-bottom:9px}.search-holder{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.preview-banner{position:fixed;bottom:0;left:50%;transform:translateX(-50%);z-index:80;padding:8px 15px;border-radius:10px 10px 0 0;background:#232126;color:white;font-size:10px;letter-spacing:.09em;font-weight:800;white-space:nowrap;pointer-events:none}
.reader-actions .quiet:disabled{opacity:.35}.rail-step{border:0;background:transparent;width:100%;text-align:left;color:inherit}.week-dot b svg{width:15px;height:15px}.mobile-search-open .search-holder{flex:1;position:absolute;inset:8px 75px 8px 12px;width:auto;height:auto;padding:0 12px;border:1px solid var(--accent);background:#fff;z-index:10}.mobile-search-open .search-holder input{display:block;font-size:12px}.mobile-search-open .mobile-logo{visibility:hidden}.mobile-search-open .search-holder .keycap{display:none}.mobile-search-open .top-actions{margin-left:auto}
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){.feed-track{height:calc(100dvh - 332px);min-height:min(410px,calc(100dvh - 332px));max-height:680px}.feed-help{padding-bottom:74px}.swipe-card .feed-photo{height:43%}.swipe-card.no-photo .feed-photo{height:24%}}
@media(max-width:650px) and (max-height:730px),(max-width:950px) and (max-height:500px) and (pointer:coarse) and (max-height:730px){.feed-track{height:calc(100dvh - 288px);min-height:350px}.page-heading{margin-bottom:9px}.topic-strip{padding:9px 0}.swipe-card .feed-photo{height:37%}.swipe-card .feed-description{-webkit-line-clamp:2}}
/* Reserve bottom-navigation clearance on every phone height. */
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){.feed-track{height:calc(100dvh - 357px);min-height:0}.swipe-card .feed-photo{min-height:92px}.swipe-card.no-photo .feed-photo{min-height:82px}}
@media(max-width:650px) and (max-height:730px),(max-width:950px) and (max-height:500px) and (pointer:coarse) and (max-height:730px){.feed-track{height:calc(100dvh - 345px);min-height:0}.swipe-card .feed-photo{height:26%;min-height:74px}.swipe-card.no-photo .feed-photo{height:21%;min-height:64px}.feed-copy{padding:10px 14px 12px}.feed-title{font-size:20px;line-height:1.11;margin-bottom:6px;-webkit-line-clamp:3}.feed-description{font-size:12px;line-height:1.25;-webkit-line-clamp:2}.feed-meta{font-size:11px;margin-bottom:5px}.feed-footer{gap:8px;padding-top:8px}.feed-footer .primary-learn{font-size:11px;min-height:35px;padding:0 8px}.feed-footer .tool span{display:none}.feed-footer .tool{min-width:22px}.feed-footer svg{width:16px;height:16px}}

/* v29 — Swipe / Match / Learn: compact, readable, no faux image panels. */
.swipe-card.text-story .feed-copy{justify-content:flex-start;padding-top:clamp(24px,5vh,48px)}
.swipe-card.text-story.public-story .feed-copy{padding-top:clamp(20px,4vh,37px)}
.swipe-card.text-story .feed-title{font-size:clamp(26px,3vw,37px);-webkit-line-clamp:5}
.swipe-card.text-story .feed-description{font-size:clamp(15px,1.5vw,18px);line-height:1.64;-webkit-line-clamp:8;color:#48484e}
.swipe-card.text-story .author-row{margin-bottom:16px;font-size:14px}
.swipe-card .feed-photo{height:42%;min-height:0;max-height:330px;background:#f4f4f5}
.swipe-card .feed-photo img{object-position:center;object-fit:cover}
.feed-footer{gap:10px;flex-wrap:nowrap}
.feed-footer .decision-btn{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #e9e9ec;border-radius:11px;min-height:43px;padding:0 11px;font-size:12px;font-weight:750;white-space:nowrap}
.feed-footer .decision-btn svg{width:17px;height:17px}
.feed-footer .match-btn.is-active{color:var(--accent);border-color:#f9b7c6;background:var(--accent-soft)}
.feed-footer .primary-learn{margin-right:0;flex:1;justify-content:center;padding:0 10px;white-space:nowrap}
.feed-footer .primary-learn svg{width:17px;height:17px}
.feed-footer .utility-btn{padding:8px 0;flex:0 0 24px;display:grid;place-items:center;color:#585862}
.feed-footer .utility-btn.is-active{color:var(--accent)}
.feed-footer .utility-btn svg{width:19px;height:19px}
.match-rail .rail-title{color:var(--accent)}.match-cta,.rail-add-cta{border-radius:12px;background:var(--accent);color:white;font-weight:750;font-size:13px;padding:12px 16px;width:100%;text-align:center}
.match-cta:hover,.rail-add-cta:hover{background:var(--accent-deep)}
.match-rail p{font-size:13px}
.matches-head{margin:5px 0 20px;display:flex;gap:10px;align-items:baseline}.matches-head strong{font-size:36px;color:var(--accent)}.matches-head span{color:var(--muted);font-size:14px}.matches-list{display:grid;gap:12px;max-width:750px}
.match-item{border:1px solid var(--line);padding:19px;border-radius:18px;display:flex;justify-content:space-between;gap:18px;align-items:center;background:#fff}
.match-item small{color:var(--accent);font-weight:740}.match-item h3{font-size:17px;margin:6px 0 0}.match-item>div:last-child{display:flex;align-items:center;gap:10px;flex-shrink:0}.match-item button{font-size:12px;font-weight:770;padding:11px;border-radius:10px;background:var(--accent-soft);color:var(--accent)}.match-item button:last-child{background:#f5f5f6;color:#7d7d83}.match-item button:last-child svg{width:15px;height:15px}
@media(max-width:1000px){.feed-footer{gap:7px}.feed-footer .decision-btn{padding:0 8px}}
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){.swipe-card.text-story .feed-copy{padding-top:24px}.swipe-card.text-story .feed-title{font-size:clamp(24px,6vw,29px);line-height:1.19}.swipe-card.text-story .feed-description{font-size:14px;line-height:1.47;-webkit-line-clamp:7}.swipe-card .feed-photo{height:33%;max-height:none}.feed-footer{gap:6px}.feed-footer .decision-btn{min-height:39px;padding:0 8px;font-size:11px}.feed-footer .decision-btn svg{width:16px;height:16px}.feed-footer .primary-learn{min-height:39px;font-size:11px;padding:0 7px}.feed-footer .primary-learn svg:last-child{display:none}.feed-footer .utility-btn{flex-basis:21px;padding:5px 0}.feed-footer .utility-btn svg{width:18px;height:18px}.match-item{flex-direction:column;align-items:stretch}.match-item>div:last-child{justify-content:space-between}}
@media(max-width:380px){.feed-footer .source-btn{display:none}.feed-footer{gap:4px}.feed-footer .decision-btn{font-size:10px;padding:0 6px}}

/* Text-only story cards are editorial text posts, never empty photo containers. */
@media(min-width:651px){.swipe-card.text-story .feed-copy{padding-top:clamp(35px,6vh,65px)}.swipe-card.text-story .feed-title{max-width:510px;font-size:clamp(30px,3.3vw,42px)}.swipe-card.text-story .feed-description{font-size:17px;line-height:1.65}.swipe-card.text-story .feed-meta{margin-bottom:14px}}

.source-only-notice{background:#fff2f5;border:1px solid #fbd7df;padding:10px 13px;border-radius:10px;color:#931737;font-size:12px;font-weight:700;line-height:1.5}
/* Shared Lucide controls and focused discovery/preferences. */
.ico{width:20px;height:20px;flex-shrink:0;vertical-align:middle;stroke-width:2}button .ico{pointer-events:none}.nav-add{margin:18px 12px;padding:12px;border:1px solid var(--line,#e5e5e5);border-radius:12px;background:white;display:flex;gap:10px;align-items:center}.search-holder button{border:0;background:transparent;display:flex;padding:0;align-items:center}.search-holder input{min-width:0}.search-holder{margin:0}.text-action{border:0;background:none;color:#E11D48;display:inline-flex;gap:6px;align-items:center}.discovery-search{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #ddd;border-radius:14px;background:#fff}.discovery-search input{min-width:0;flex:1;border:0;outline:0;font:inherit;background:transparent}.discovery-search button{flex-shrink:0}.search-filters{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 14px}.search-filters button,.discovery-toolbar select{padding:9px 13px;border:1px solid #ddd;border-radius:20px;background:white;font:inherit}.search-filters button.active{background:#E11D48;color:white;border-color:#E11D48}.discovery-toolbar{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:16px}.discovery-toolbar label{display:flex;gap:8px;align-items:center;font-size:13px}.discovery-toolbar select{max-width:220px;border-radius:8px}.search-topic-results{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.search-status{font-size:14px;color:#666;margin:12px 0}.search-results{display:grid;gap:12px}.search-result{background:#fff;border:1px solid #e5e5e5;border-radius:14px;padding:20px;overflow:hidden}.search-result h3{margin:8px 0;font-size:20px;line-height:1.35}.search-result h3 a,.search-result h3 button{color:inherit;text-decoration:none;border:0;background:none;font:inherit;text-align:left;padding:0}.search-result p{font-size:14px;line-height:1.6;color:#555}.result-meta{font-size:12px;color:#777;display:flex;gap:6px;flex-wrap:wrap}.result-actions{display:flex;gap:8px;align-items:center;margin-top:14px}.result-actions button{display:inline-flex;align-items:center;gap:6px;padding:8px;border:1px solid #ddd;border-radius:8px;background:white}.result-actions button.is-active{color:#E11D48}.result-actions .accent-button{background:#E11D48;color:white;border-color:#E11D48}.result-photo{float:right;width:130px;height:95px;object-fit:cover;border-radius:8px;margin:0 0 12px 16px}.load-more{display:block;margin:24px auto;padding:12px 22px;border:1px solid #ddd;border-radius:10px;background:white}.settings-dialog .dialog-card,.settings-dialog .modal-card{max-height:90dvh;overflow:auto}#settingsDialog{max-height:92dvh;overflow:auto}fieldset{min-width:0} .interest-fieldset,.source-preferences{border:0;padding:0;margin:22px 0}.interest-fieldset legend,.source-preferences legend{font-weight:600;margin-bottom:12px}.selected-interests,.interest-options{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.interest-chip,.interest-option{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid #ddd;border-radius:20px;background:white;font-size:13px}.interest-chip,.interest-option.selected{background:#fff1f4;border-color:#E11D48;color:#E11D48}.interest-chip .ico,.interest-option .ico{width:16px;height:16px}.interest-search{display:flex;align-items:center;gap:8px;border:1px solid #ddd;border-radius:10px;padding:10px}.interest-search input{border:0;outline:0;min-width:0;width:100%;font:inherit}.source-preferences label{display:flex;align-items:center;gap:10px;margin:12px 0}.source-preferences input{accent-color:#E11D48;width:17px;height:17px}.interest-options>div{display:flex;gap:3px;align-items:center}.interest-options>div>button:last-child{border:0;background:none}.manage-topics{flex-shrink:0}#preferencesStatus{color:#E11D48;font-size:13px}.keycap{font-size:10px;white-space:nowrap}.empty-state:empty{display:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #E11D48;outline-offset:3px}
@media(max-width:760px){.mobile-nav{grid-template-columns:repeat(6,1fr)}.mobile-nav button{min-width:0;font-size:9px;padding-left:2px;padding-right:2px}.discovery-search{gap:6px;padding:8px}.discovery-search input{width:80px}.discovery-search>button[type=submit]{padding:10px;font-size:12px}.discovery-toolbar{gap:8px}.discovery-toolbar select{max-width:175px}.search-result{padding:14px}.search-result h3{font-size:18px}.result-photo{width:85px;height:75px;margin-left:10px}.result-actions{gap:5px}.result-actions button{padding:7px}.search-filters{gap:5px}.search-filters button{padding:8px 10px;font-size:12px}}
.search-result h2{margin:8px 0;font-size:20px;line-height:1.35}.result-title{color:inherit;text-decoration:none;border:0;background:none;font:inherit;text-align:left;padding:0}.result-main{display:flex;gap:16px;align-items:flex-start}.result-main>div{min-width:0;flex:1}.result-image{width:130px;height:95px;object-fit:cover;border-radius:8px;flex-shrink:0}.interest-option{padding:0;border:0}.interest-option>button:first-child{display:flex;align-items:center;gap:6px;border:1px solid #ddd;background:white;padding:8px 10px;border-radius:20px;font:inherit}.interest-option>button.selected{color:#E11D48;border-color:#E11D48;background:#fff1f4}@media(max-width:760px){.result-image{width:75px;height:70px}.result-main{gap:10px}.search-result h2{font-size:17px}.keycap{display:none}}
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){.mobile-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));z-index:100;isolation:isolate;gap:0;padding-left:6px;padding-right:6px}.mobile-nav button{width:100%;min-width:0;min-height:48px;justify-content:center;padding:4px 0;line-height:1.2}.mobile-nav button.mobile-add{justify-self:center;min-height:42px;width:42px;margin-top:0}.main-content{padding-bottom:100px}.settings-dialog{width:calc(100% - 24px)}}
.library-search{min-width:0}.library-search input{width:100%;min-width:0}.modal-dialog .source-preferences label{flex-direction:row;align-items:center}.modal-dialog .source-preferences input[type=checkbox]{width:17px;height:17px;padding:0;flex-shrink:0}.modal-dialog .interest-search{flex-direction:row;align-items:center}.modal-dialog .interest-search input{border:0;padding:2px 0;min-width:0}.search-result h2,.match-item h3,.library-item h3{overflow-wrap:anywhere}@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){.library-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:8px}.library-toolbar select{min-width:0;width:100%;padding:0 8px;font-size:12px}.library-search{padding:0 10px}.library-search input{font-size:13px}.page-heading>.accent-button{font-size:12px;padding:10px;white-space:nowrap}.page-heading h1{font-size:29px}}
/* Consistent collection actions and narration. */
button{touch-action:manipulation}.collection-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0}.collection-actions button,.reader-actions button,.audio-buttons button,.match-item button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:10px;padding:10px 12px;white-space:nowrap;line-height:1.2;flex-shrink:0}.collection-actions button .ico,.reader-actions button .ico,.audio-buttons .ico{width:18px;height:18px;flex:none}.icon-control,.collection-actions .icon-control{width:44px;min-width:44px;height:44px;padding:10px;border:1px solid var(--line);background:#fff;display:inline-flex;align-items:center;justify-content:center}.collection-actions button:hover,.icon-control:hover{background:#fff1f4;color:#E11D48}.collection-actions .accent-button:hover{background:#be123c;color:#fff}.library-footer{flex-wrap:wrap;align-items:center;gap:12px}.library-footer>span{display:inline-flex;gap:5px;align-items:center;flex:1;min-width:90px}.library-footer .collection-actions{margin-left:auto}.library-footer .collection-actions>button:first-child{border:1px solid var(--line)}.library-footer>span .ico{width:16px;height:16px}.match-item>div:last-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.match-item button{border:1px solid var(--line)}.reader-actions{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}.reader-next-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-left:auto}.voice-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}.voice-line .voice-select{flex:1;min-width:120px;margin:0;display:block}.voice-line select{height:44px;min-width:0;max-width:100%;border:1px solid var(--line);border-radius:9px;background:#fff;padding:8px;font:inherit}.voice-select select{width:100%}.voice-line #readerSpeed{width:80px}.audio-buttons{display:flex;align-items:center;gap:6px}.audio-buttons button{border:1px solid var(--line);background:#fff}.audio-buttons [data-reader-voice]{min-width:95px;color:#E11D48}.audio-timing{font-size:11px;color:var(--muted);min-height:14px;margin:8px 0 0}.reader-copy{white-space:pre-wrap}.spoken-word{background:#ffe4eb;color:inherit;border-radius:3px;box-shadow:0 0 0 2px #ffe4eb}.reader-scroll{scroll-padding:36px;overscroll-behavior:contain}.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}.reader-bottom{flex-shrink:0}.reader-dialog{display:flex;flex-direction:column}.reader-dialog:not([open]){display:none}.reader-scroll{min-height:0;overflow-y:auto;flex:1}.confirm-dialog{max-width:460px}.confirm-item{font-weight:650;overflow-wrap:anywhere}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.confirm-actions button{min-height:44px;padding:10px 20px}.confirm-actions .quiet{border:1px solid var(--line);border-radius:10px}.confirm-dialog .modal-top{margin-bottom:14px}button:disabled{cursor:default;opacity:.4}button:not(:disabled):hover{filter:brightness(.97)}
.archive-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:24px}.archive-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.archive-heading h2{font-size:20px;margin:0}.archive-heading .muted{font-size:12px;color:var(--muted)}.archive-toolbar{display:flex;align-items:center;gap:12px;margin:12px 0}.archive-toolbar .library-search{flex:1}.archive-toolbar select{max-width:250px;height:46px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;background:#fff;font:inherit}.archive-list{display:grid;gap:24px}.archive-group h3{font-size:16px;margin:12px 0}.archive-entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.archive-entry{border:1px solid var(--line);border-radius:16px;padding:20px;min-width:0;display:flex;flex-direction:column;gap:12px}.archive-entry h4{font-size:19px;line-height:1.35;margin:0;overflow-wrap:anywhere}.archive-meta{display:flex;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--muted)}.archive-takeaways{padding-left:18px;margin:0;font-size:13px;line-height:1.55;color:#555}.archive-takeaways li+li{margin-top:6px}.archive-entry .collection-actions{justify-content:flex-start;margin-top:auto}.archive-entry .remove-control{margin-left:auto}
@media(max-width:1000px){.archive-entries{grid-template-columns:1fr}.archive-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.reader-actions button{padding:10px}.reader-next-actions{gap:6px}}
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){.archive-toolbar{flex-direction:column;align-items:stretch}.archive-toolbar .library-search{flex:auto}.archive-toolbar select{width:100%;max-width:none}.archive-entry{padding:16px}.reader-dialog{max-height:94dvh;padding:16px}.reader-actions{gap:8px}.reader-actions button{font-size:12px;gap:5px;padding:9px}.reader-next-actions{gap:5px}.voice-line .voice-select{min-width:100px}.voice-line{gap:6px}.audio-buttons{width:100%}.audio-buttons [data-reader-voice]{flex:1}.reader-actions>.quiet{flex-shrink:1}.reader-actions .ico{width:16px;height:16px}.reader-title{overflow-wrap:anywhere}.confirm-dialog{max-height:85dvh}.library-footer .collection-actions{flex-wrap:nowrap}.collection-actions{gap:6px}}
/* Preserve every feed action with usable tap targets, including narrow screens. */
.feed-footer .utility-btn{min-width:44px;min-height:44px;flex-basis:44px;padding:10px;display:inline-flex;align-items:center;justify-content:center}.feed-footer .decision-btn,.feed-footer .primary-learn{min-height:44px}.header-streak,.top-avatar,#openSearch,.close-button{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}.topic-chip,.search-filters button,.library-filter button,.feed-help button{min-height:44px}.settings-actions button{min-height:44px;display:inline-flex;align-items:center;gap:8px}.interest-chip,.interest-option>button:first-child{min-height:44px}.delete-interest{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}.result-actions button{min-height:44px;min-width:44px}.search-holder #openSearch{padding:0}.feed-footer{flex-wrap:wrap}.feed-footer .primary-learn{flex:1;min-width:115px}
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){.feed-footer{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.feed-footer>button{grid-column:span 2;width:100%;min-height:44px;min-width:0!important;max-width:none;flex-basis:auto}.feed-footer .source-btn{display:inline-flex}.feed-footer .primary-learn{min-width:0}.feed-footer .decision-btn,.feed-footer .primary-learn{font-size:12px}.feed-copy{min-height:0}.result-actions{flex-wrap:wrap}.header-streak{padding:8px}.topic-strip{min-height:46px}.discovery-search #clearSearch{min-width:44px;min-height:44px}.reader-actions .quiet,.reader-actions .accent-button{min-height:44px}}
.library-footer button span{color:inherit;font-size:inherit}.library-footer .collection-actions>button{color:var(--ink)}.library-footer .collection-actions>button .ico{color:#E11D48}.library-footer .collection-actions>button:hover{color:#E11D48}@media(min-width:651px) and (max-width:1000px){.side-nav .nav-add{width:50px;min-width:0;margin:18px auto;padding:8px 2px;flex-direction:column;gap:4px;font-size:10px;line-height:1.3;min-height:64px;text-align:center}}
.feed-track,.swipe-card{overflow-anchor:none}@media(max-width:650px) and (max-height:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse) and (max-height:650px){.feed-track{height:360px;min-height:360px}}
/* Five-action navigation, persistent audio, and archive controls. */
.reader-window-actions{display:flex;align-items:center;gap:8px}.mini-player{position:fixed;right:24px;bottom:20px;width:min(560px,calc(100vw - 48px));background:#fff;border:1px solid var(--line);box-shadow:0 8px 35px #0002;border-radius:16px;padding:10px 12px;z-index:110;display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:6px 8px;align-items:center}.mini-player.hidden{display:none}.mini-open{min-width:0;text-align:left;background:none;border:0;padding:2px 0;display:flex;flex-direction:column;gap:3px;min-height:44px;justify-content:center}.mini-open strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:13px}.mini-open>span{font-size:11px;color:var(--muted)}.mini-progress{grid-column:1/-1;display:flex;align-items:center;gap:10px}.mini-progress progress{height:4px;min-width:0;flex:1;accent-color:#E11D48}.mini-progress>span{font-size:10px;color:var(--muted);white-space:nowrap}.has-mini-player .main-content{padding-bottom:150px}.archive-toolbar .library-search{min-width:180px}.archive-toolbar .archive-select{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted)}.archive-toolbar .archive-select select{color:var(--ink);width:100%;max-width:230px;font-size:12px}.archive-refinements{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:12px 0}.archive-refinements label,.archive-date-range label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted);min-width:0;flex:1}.archive-refinements select,.archive-date-range input{min-width:0;width:100%;height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:8px 10px;font:inherit;font-size:12px;color:var(--ink)}.archive-refinements button{height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;font-size:12px}.archive-date-range{display:flex;gap:12px;max-width:440px}.archive-date-range.hidden{display:none}.archive-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0}.archive-group-heading h3{margin:0}.archive-record-meta{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:11px;line-height:1.5;color:var(--muted)}.archive-entry .collection-actions{flex-wrap:wrap}.archive-record-meta [data-duration-id]{flex-basis:100%}.archive-stats #journeyActivity{font-size:clamp(18px,2vw,27px);overflow-wrap:anywhere}.library-access{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px}.modal-dialog #journeySelect{width:100%;height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:8px;font:inherit}
@media(max-width:1000px){.archive-toolbar{flex-wrap:wrap}.archive-toolbar .library-search{flex-basis:100%}.archive-toolbar .archive-select{flex:1}.archive-toolbar .archive-select select{max-width:none}}
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){.mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(76px + env(safe-area-inset-bottom));padding:6px 5px calc(6px + env(safe-area-inset-bottom));align-items:center}.mobile-nav button{height:56px;min-height:44px;font-size:10px;gap:5px}.mobile-nav button.mobile-add{height:52px;width:52px;min-height:52px;margin:0;border-radius:18px;display:flex;flex-direction:column;gap:1px;box-shadow:none}.mobile-add>span{font-size:9px;line-height:1.1}.mobile-nav .mobile-add svg{width:24px;height:24px}.mini-player{left:8px;right:8px;width:auto;bottom:calc(84px + env(safe-area-inset-bottom));border-radius:13px;padding:8px 10px;gap:4px 6px}.mini-progress{flex-wrap:wrap;gap:4px 8px}.mini-progress progress{flex-basis:80px}.mini-progress>span{font-size:9px}.has-mini-player .main-content{padding-bottom:210px}.archive-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.archive-toolbar .library-search{grid-column:1/-1;min-width:0;width:100%}.archive-toolbar .archive-select{min-width:0}.archive-toolbar .archive-select select{font-size:11px;padding:8px;max-width:100%}.archive-refinements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.archive-refinements button{grid-column:1/-1;justify-self:start}.archive-stats #journeyActivity{font-size:18px}.page-heading .library-access{font-size:11px;width:auto;gap:5px;padding:8px}.page-heading .library-access .ico{width:16px;height:16px}.archive-entry .collection-actions .remove-control{margin-left:auto}.archive-entry{padding:14px}.reader-window-actions .icon-control{width:44px;min-width:44px}.archive-group-heading .icon-control{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){.mini-player progress{animation:none}}

/* Reserve space for the player; long card text remains scrollable. */
.has-mini-player .feed-track{height:min(700px,var(--mini-feed-height,420px));min-height:0}
.has-mini-player .swipe-card .feed-photo{height:25%;min-height:0;flex-shrink:0}
.has-mini-player .feed-copy{overflow-y:auto;overscroll-behavior:contain}
.has-mini-player .feed-copy>*{flex-shrink:0}

/* PWA chrome stays minimal and respects notches, keyboards and home indicators. */
body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.topbar{padding-top:env(safe-area-inset-top);height:calc(88px + env(safe-area-inset-top))}
.top-avatar,.header-streak,#openSearch{min-width:44px;min-height:44px}
.offline-indicator{margin:0;padding:6px 24px;background:var(--wash);color:var(--muted);font-size:12px;border-bottom:1px solid var(--line)}
.pwa-settings{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.pwa-settings button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;font-size:12px}
.pwa-settings p{flex-basis:100%;font-size:12px;margin:2px 0;line-height:1.5}
.pwa-update{position:fixed;top:calc(98px + env(safe-area-inset-top));right:16px;z-index:120;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px;padding:12px;display:flex;align-items:center;flex-wrap:wrap;gap:10px;max-width:min(440px,calc(100vw - 24px));font-size:13px}
.pwa-update button{min-height:44px}.pwa-update p{flex-basis:100%;margin:0;color:var(--muted);font-size:12px}.pwa-update p:empty{display:none}
#installDialog ol{padding-left:24px;line-height:1.9}#installDialog p{font-size:13px;color:var(--muted)}
.feed-track{touch-action:pan-y pinch-zoom;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
.modal-dialog{max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){.topbar{height:calc(60px + env(safe-area-inset-top))}.standalone #appBack:not(.hidden)+.mobile-logo{display:none}.mobile-nav{padding-left:max(5px,env(safe-area-inset-left));padding-right:max(5px,env(safe-area-inset-right))}.pwa-update{top:calc(68px + env(safe-area-inset-top));right:8px}.pwa-settings button{flex:1 1 auto}.keyboard-open .mobile-nav{visibility:hidden;pointer-events:none}.keyboard-open .mini-player{bottom:calc(8px + var(--keyboard-inset,0px))}}
@media(prefers-reduced-motion:reduce){html,.feed-track{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),textarea{font-size:16px}}

/* Short touch screens retain the same mobile navigation in landscape. */
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){
 .feed-track{height:calc(100dvh - 345px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:0}
 .toast{bottom:calc(90px + env(safe-area-inset-bottom))}.has-mini-player .toast{bottom:calc(180px + env(safe-area-inset-bottom))}
 .feed-copy{overflow-y:auto;overscroll-behavior-y:auto}.feed-copy>*{flex-shrink:0}
 .has-mini-player .feed-copy{overscroll-behavior-y:auto}
 .has-mini-player .main-content{padding-bottom:calc(210px + env(safe-area-inset-bottom))}
 .mini-player{left:calc(8px + env(safe-area-inset-left));right:calc(8px + env(safe-area-inset-right))}
}
@media(max-width:950px) and (max-height:500px) and (pointer:coarse){
 .feed-track{height:360px;min-height:360px}
}

/* Primary screens share one header and one document scrolling surface. */
.side-nav>.wordmark{display:none}
.topbar{gap:16px;height:auto;min-height:calc(76px + env(safe-area-inset-top));padding-bottom:10px;padding-top:calc(10px + env(safe-area-inset-top))}
.topbar .mobile-logo{display:inline-flex;flex:none;padding:4px 0;font-size:31px}
.topbar .mobile-logo span{font-size:39px}
.topbar .search-holder{display:flex;min-width:0;flex:1;max-width:670px;height:44px;padding:0 12px}
.search-holder input{display:block;width:100%}
.search-holder #openSearch{display:flex;align-items:center;justify-content:center;min-width:28px;min-height:40px;padding:0}
.main-content{padding-top:16px}
.page-heading{justify-content:flex-end;margin-bottom:12px}
.page-heading:empty{display:none}
.feed-tabs{gap:24px}
.topic-strip{padding:12px 0}
.feed-layout{grid-template-columns:minmax(0,630px) minmax(0,340px)}
.feed-track,.has-mini-player .feed-track{height:auto;min-height:0;overflow:visible;overscroll-behavior:auto;scroll-snap-type:none;border:0;border-radius:0;background:transparent;display:grid;gap:16px}
.swipe-card{height:auto;min-height:0;overflow:visible;border:1px solid var(--line);border-radius:19px;scroll-margin-top:100px;scroll-snap-stop:normal}
.swipe-card .feed-photo,.has-mini-player .swipe-card .feed-photo{height:auto;aspect-ratio:16/9;min-height:0;max-height:340px;flex:none;border-radius:18px 18px 0 0}
.swipe-card .feed-copy,.swipe-card.text-story .feed-copy,.has-mini-player .feed-copy{height:auto;min-height:0;overflow:visible;overscroll-behavior:auto;padding:20px}
.swipe-card .feed-title,.swipe-card .feed-description{display:block;-webkit-line-clamp:unset;overflow:visible;overflow-wrap:anywhere}
.swipe-card.text-story .feed-title{font-size:clamp(24px,2.5vw,32px)}
.swipe-card.text-story .feed-description{font-size:15px;line-height:1.6}
.feed-footer{margin-top:10px;flex-wrap:wrap}
.skeleton-card,.feed-empty{height:auto;min-height:200px;border:1px solid var(--line);border-radius:19px}
#discoverForm,.library-toolbar>.library-search,.archive-toolbar>.library-search{display:none}
.library-toolbar{justify-content:flex-end}
@media(max-width:990px){.feed-layout{grid-template-columns:minmax(0,1fr)}.learning-rail{display:none}.topbar .live-status{display:none}}
@media(min-width:991px) and (max-width:1220px){.feed-layout{grid-template-columns:minmax(0,1fr) 260px}}
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){
 .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;padding:calc(5px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));height:auto;min-height:0}
 .topbar .mobile-logo{font-size:29px;display:inline-flex;padding:4px 0;justify-self:start}
 .topbar .mobile-logo span{font-size:37px}
 .topbar .search-holder{grid-column:1/-1;grid-row:2;width:100%;max-width:none;height:40px;border-radius:12px;margin:0}
 .topbar .search-holder input{font-size:16px;min-width:0}
 .topbar .top-actions{grid-column:2;grid-row:1;gap:8px}
 .topbar .live-status,.topbar .keycap{display:none}
 .topbar .header-streak{height:40px;min-width:44px;padding:8px;font-size:11px}
 .topbar .top-avatar{width:40px;height:40px}
 .main-content{padding:0 max(12px,env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
 .page-heading{padding-top:10px;margin-bottom:8px}
 .feed-tabs{gap:20px}
 .feed-tabs button{font-size:12px;padding:12px 0}
 .topic-strip{padding:10px 0;min-height:0}
 .topic-chip{padding:7px 11px}
 .feed-track,.has-mini-player .feed-track{height:auto;min-height:0;gap:12px;overflow:visible}
 .swipe-card{border-radius:15px;scroll-margin-top:120px}
 .swipe-card .feed-photo,.has-mini-player .swipe-card .feed-photo{height:auto;min-height:0;max-height:260px;border-radius:14px 14px 0 0}
 .swipe-card .feed-copy,.swipe-card.text-story .feed-copy,.has-mini-player .feed-copy{padding:16px;overflow:visible}
 .swipe-card .feed-title,.swipe-card.text-story .feed-title{font-size:24px;line-height:1.2}
 .swipe-card .feed-description,.swipe-card.text-story .feed-description{font-size:14px;line-height:1.55}
 .feed-footer .primary-learn,.feed-footer .decision-btn{min-height:44px;font-size:12px;padding:0 6px;gap:4px}
 .feed-footer .primary-learn{margin:0}
 .feed-footer .utility-btn{min-height:44px}
 .library-toolbar{display:flex}
 .archive-toolbar{margin-top:8px}
 .has-mini-player .main-content{padding-bottom:calc(230px + env(safe-area-inset-bottom))}
}
.feed-track,.has-mini-player .feed-track{max-height:none}
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){.topbar .header-streak span{display:inline}.feed-tabs{margin:0;padding:0}.topbar .mobile-logo{align-self:center}}
html.feed-active{scroll-snap-type:y proximity;scroll-padding-top:100px}
.feed-active .swipe-card{scroll-snap-align:start;scroll-margin-top:0}
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){html.feed-active{scroll-padding-top:calc(112px + env(safe-area-inset-top))}}
@media(prefers-reduced-motion:reduce){html.feed-active{scroll-snap-type:none}}

/* A single row keeps every story action available without an extra menu. */
.feed-footer{display:flex;flex-wrap:nowrap;gap:6px;align-items:center}
.feed-footer>button{grid-column:auto;flex:0 0 auto;width:auto;min-width:44px!important;min-height:44px;max-width:none}
.feed-footer .decision-btn{padding:0 9px;font-size:12px;gap:5px}
.feed-footer .primary-learn{flex:1 1 auto;font-size:12px;min-width:62px!important;margin:0;padding:0 6px;gap:5px}
.feed-footer .primary-learn>.ico:last-child{display:none}
.feed-footer .story-utility{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border-radius:10px}
.feed-footer .story-utility.is-active{color:var(--accent);background:var(--accent-soft)}
.learning-filters{border-block:1px solid var(--line);margin:12px 0}
.learning-filters>summary{list-style:none;min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:650}
.learning-filters>summary::-webkit-details-marker{display:none}
.learning-filters>summary>.ico{width:17px;height:17px}
.learning-filters>summary>.ico:last-child{margin-left:auto;transition:transform .15s}
.learning-filters[open]>summary>.ico:last-child{transform:rotate(180deg)}
.filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:20px;background:var(--accent-soft);color:var(--accent);font-size:11px}
.profile-dialog{max-width:400px}
.profile-dialog .modal-top h2{font-size:22px;margin:0}
.profile-links{display:grid;gap:4px}
.profile-links button,.profile-install{display:flex;align-items:center;gap:12px;min-height:44px;width:100%;padding:10px 12px;text-align:left;border-radius:10px;font-size:14px;font-weight:600}
.profile-links button:hover,.profile-install:hover{background:var(--wash)}
.profile-dialog .pwa-settings{display:block;border-top:1px solid var(--line);padding-top:10px;margin-top:12px}
.offline-management{width:100%}
.offline-management>summary{min-height:44px;padding:12px;font-size:14px;font-weight:600;cursor:pointer}
.offline-management>button{display:block;min-height:44px;width:100%;text-align:left;padding:10px 12px;font-size:13px}
.offline-management p{font-size:12px;padding:0 12px}
.profile-dialog .settings-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.profile-dialog .settings-actions button{min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px}
.library-heading{justify-content:space-between}
.library-heading>.accent-button{margin-left:auto}
#libraryBack{font-size:12px;width:auto;gap:4px;min-height:44px;padding:8px;white-space:nowrap}
.matches-head strong{font-size:22px}
.archive-stats .stat-card{border:0;border-radius:0;background:transparent;padding:10px 8px}
.archive-stats .stat-card strong{font-size:24px}
.empty-state h2{font-size:20px;line-height:1.3;font-weight:650;letter-spacing:-.03em}
.empty-state button,.feed-empty button{min-height:44px;font-size:13px}
summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:950px){
 .feed-footer .decision-btn{flex:0 0 44px;width:44px;padding:0}
 .feed-footer .decision-btn>span{display:none}
 .feed-footer .primary-learn>.ico{display:none}
}
@media(max-width:380px){
 .feed-footer{gap:0;margin-inline:-10px}
 .feed-footer .primary-learn{font-size:11px;padding:0 3px}
}
.feed-column{container-type:inline-size}
@container(max-width:440px){
 .feed-footer .decision-btn{flex:0 0 44px;width:44px;padding:0}
 .feed-footer .decision-btn>span,.feed-footer .primary-learn>.ico{display:none}
}
@container(max-width:300px){.feed-footer{gap:0;margin-inline:-10px}.feed-footer .primary-learn{font-size:11px;padding:0 3px}}
.offline-management>summary{display:flex;align-items:center;gap:10px;list-style:none}
.offline-management>summary::-webkit-details-marker{display:none}
.offline-management>summary>.ico:last-child{margin-left:auto;width:17px;height:17px}
.offline-management[open]>summary>.ico:last-child{transform:rotate(180deg)}
.reader-question{margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}
.reader-question h3{font-size:16px;margin:0 0 8px}
.reader-question p{font-size:15px;line-height:1.6;margin:0}
/* Learning and personal plans */
[hidden]{display:none!important}
body:has(#readerDialog[open]) .mobile-nav{display:none!important}
.read-mode{display:flex;border:1px solid var(--line,#e5e5e5);border-radius:12px;margin:12px 0 24px;overflow:hidden}
.read-mode button{flex:1;padding:12px;background:white;border:0;font-weight:700}
.read-mode button[aria-pressed=true]{background:#fff0f3;color:var(--accent,#e90038)}
.plan-row,.lesson-plan{display:flex;align-items:center;gap:12px;padding:16px 8px;border-bottom:1px solid #eee;min-width:0}
.plan-row input[type=checkbox],.lesson-plan input[type=checkbox],.plan-check input{width:22px;height:22px;flex-shrink:0;accent-color:var(--accent,#e90038)}
.plan-title{flex:1;text-align:left;background:none;border:0;padding:8px;min-width:0;overflow-wrap:anywhere;font-size:16px}
.plan-title small{display:block;color:#666;font-size:12px;margin-top:5px}
.is-complete .plan-title{text-decoration:line-through;color:#777}
.plan-row input[type=date],.lesson-plan input[type=date]{width:135px;min-width:0;padding:7px;border:1px solid #eee;border-radius:8px;background:#fafafa;font-size:12px}
.draft-title{flex:1;min-width:0;border:0;background:transparent;padding:10px 0;font:inherit}
.lesson-plan{border:1px solid #eee;border-radius:12px;margin:8px 0;padding:10px;gap:8px}
.collection-prompt{background:#fff1f4;border-radius:14px;padding:16px;margin-top:20px}
.collection-prompt p{font-size:13px;margin:6px 0 12px}
.collection-prompt select,.collection-prompt input{width:100%;margin-bottom:10px}
#planDialog label{display:flex;flex-direction:column;gap:8px;margin:18px 0}#planDialog .plan-check{flex-direction:row;align-items:center}
#planDialog input:not([type=checkbox]),#planDialog textarea{padding:12px;border:1px solid #ddd;border-radius:10px;width:100%}
.collection-create{display:flex;gap:8px;margin:16px 0}.collection-create input{min-width:0;flex:1;padding:12px;border:1px solid #ddd;border-radius:10px}
.collection-list>div{display:flex;border-bottom:1px solid #eee;padding:10px}.collection-list>div>button:first-child{flex:1;display:flex;align-items:center;gap:10px;text-align:left;background:none;border:0;padding:10px}
.collection-list button.active{color:var(--accent,#e90038)}
@media(max-width:650px){.mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr));padding-bottom:env(safe-area-inset-bottom,0px)}.mobile-nav button{font-size:10px;min-width:0}.lesson-plan{flex-wrap:wrap}.lesson-plan .draft-title{width:calc(100% - 42px);flex:auto}.lesson-plan input[type=date]{margin-left:30px}.plan-row{gap:6px;padding:12px 0}.plan-row input[type=date]{width:112px}.plan-row .icon-control{width:30px}.reader-bottom{padding-bottom:max(12px,env(safe-area-inset-bottom))}.reader-next-actions{min-width:0}.voice-line{gap:6px}.voice-select{min-width:0;flex:1}.voice-select select{max-width:100%}}
.draft-title{resize:vertical;line-height:1.5}.collection-prompt select,.collection-prompt input{padding:10px;border:1px solid var(--line);border-radius:9px;background:white}.plan-row:focus-within,.plan-row:hover{background:var(--accent-soft)}
.lesson-progress{display:block;width:min(240px,100%);height:5px;accent-color:var(--accent);margin:12px 0}
/* Collection browsing stays separate from the Saved learning archive. */
.collections-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 18px}.collections-heading h2{margin:0;font-size:28px;letter-spacing:-.7px}.collections-heading p{margin:8px 0 0;color:var(--muted);line-height:1.5}.collections-heading button{display:inline-flex;align-items:center;gap:7px;flex-shrink:0}
.collections-toolbar{display:flex;align-items:end;gap:16px;margin-bottom:24px}.collections-toolbar .library-search{flex:1;min-width:0}.collections-toolbar input{min-width:0;width:100%}.collections-toolbar>label:last-child{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)}.collections-toolbar select{min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink)}
.collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.collection-card{position:relative;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-width:0}.collection-card:focus-within,.collection-card:hover{border-color:#b5b5b5}.collection-card-open{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:24px;width:100%;height:100%;min-height:190px;border-radius:var(--radius)}.collection-card-icon{display:inline-flex;align-items:center;justify-content:center;background:var(--wash);color:#555;border-radius:12px;width:48px;height:48px;margin-bottom:20px}.collection-card-icon .ico{width:25px;height:25px}.collection-card h3{font-size:18px;line-height:1.4;margin:0 0 8px;overflow-wrap:anywhere;padding-right:15px}.collection-card p{color:var(--muted);font-size:13px;line-height:1.5;margin:0 0 16px;overflow-wrap:anywhere}.collection-count{margin-top:auto;font-size:12px;color:var(--muted)}
.collection-menu{position:absolute;right:10px;top:10px}.collection-menu summary{list-style:none;display:flex;align-items:center;justify-content:center;cursor:pointer;width:44px;height:44px;border-radius:10px;background:white}.collection-menu summary::-webkit-details-marker{display:none}.collection-menu[open]{z-index:2}.collection-menu>div{position:absolute;right:0;top:46px;min-width:140px;padding:6px;border:1px solid var(--line);border-radius:12px;background:white;box-shadow:var(--shadow)}.collection-menu button{display:block;width:100%;padding:12px;text-align:left;border-radius:6px}.collection-menu button:hover{background:var(--wash)}.collection-menu button[data-delete-collection]{color:var(--accent)}
.unfiled-collection{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:20px 4px;margin-top:24px;border-top:1px solid var(--line);min-height:64px}.unfiled-collection span:nth-of-type(2){margin-left:auto;font-size:12px;color:var(--muted)}.unfiled-collection>.ico:first-child{color:#666}.collections-back{display:inline-flex;gap:6px;align-items:center;min-height:44px;margin-top:16px}.collection-lessons{display:grid;gap:16px}.collection-lesson h3{font-size:19px;margin:12px 0;overflow-wrap:anywhere}.collection-lesson-progress{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted);margin-bottom:16px}.collection-lesson-progress progress{width:min(180px,45%);height:5px;accent-color:var(--accent)}.collection-related-plans{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}.collection-related-plans summary{cursor:pointer;padding:8px 0;font-size:13px}.collection-related-plans button{display:flex;gap:8px;align-items:center;min-height:44px;text-align:left;font-weight:600}.collection-related-plans p{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 12px 28px;color:var(--muted);font-size:13px}.collection-grid>.empty-state{grid-column:1/-1}
#collectionDescription{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;resize:vertical}
@media(min-width:1400px){.collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.collection-grid{grid-template-columns:minmax(0,1fr);gap:14px}.collections-heading{gap:10px}.collections-heading h2{font-size:24px}.collections-heading .accent-button{font-size:12px;padding:10px}.collections-toolbar{align-items:stretch;flex-direction:column;gap:12px}.collections-toolbar .library-search{width:100%}.collections-toolbar>label:last-child{flex-direction:row;align-items:center;justify-content:space-between}.collection-card-open{min-height:170px;padding:20px}.collection-lesson .collection-actions{gap:8px}.unfiled-collection{font-size:13px;gap:8px}}
/* A bounded form body scrolls between the always accessible header and actions. */
#planDialog{position:fixed;width:min(520px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;inset:0;padding:0;border-radius:22px;min-width:0}
#planDialog[open]{display:flex}
#planForm{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;max-height:inherit;margin:0}
#planDialog .modal-top{flex:none;margin:0;padding:20px 24px;border-bottom:1px solid var(--line);gap:12px}
#planDialog .modal-top h2{margin:0;font-size:25px;min-width:0}
#planDialog .close-button{flex:none}
#planDialog .plan-form-fields{display:flex;flex-direction:column;gap:10px;padding:8px 24px 20px;overflow-y:auto;min-height:0;min-width:0}
#planDialog label{margin:14px 0 0;display:block;font-size:13px}
#planDialog input:not([type=checkbox]),#planDialog textarea{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;font-size:16px}
#planDialog textarea{resize:vertical;min-height:110px}
#planDialog .plan-check{display:flex;align-items:center;gap:10px;min-width:0;line-height:1.5;font-weight:500}
/* Override the generic modal input rule: a checkbox is not a full-width text field. */
#planDialog #planCompleted{flex:0 0 20px;box-sizing:border-box;width:20px;min-width:20px;max-width:20px;height:20px;padding:0;margin:0;border:initial;border-radius:initial;accent-color:var(--accent)}
#planDialog .plan-check span{min-width:0;overflow-wrap:anywhere}
#planDialog #planSource{min-width:0;margin-top:8px}
#planDialog #planSource button{display:flex;align-items:center;gap:8px;text-align:left;max-width:100%;min-width:0;overflow-wrap:anywhere;min-height:44px}
#planDialog #planStatus{margin:0;font-size:13px;color:var(--accent);overflow-wrap:anywhere}
#planDialog .plan-form-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;padding:16px 24px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--line);flex:none}
#planDialog .plan-form-actions button{min-height:44px;padding:12px 18px;border-radius:12px}
#planDialog #deletePlan{margin-right:auto}
.lesson-plan{display:grid;grid-template-columns:20px minmax(0,1fr) 132px auto;align-items:center;gap:10px}
#readerDialog .lesson-plan input[type=checkbox]{width:20px;min-width:20px;height:20px;padding:0;margin:0;border:initial;border-radius:initial;accent-color:var(--accent)}
.draft-copy{min-width:0}.draft-text{display:block;line-height:1.5;font-size:14px;overflow-wrap:anywhere}
#readerDialog .lesson-plan .draft-title{width:100%;min-width:0;max-width:100%;font-size:14px;padding:8px;border:1px solid var(--line);border-radius:8px}
.lesson-plan input[type=date]{width:100%;min-width:0;max-width:100%;margin:0}
.draft-actions{display:flex;align-items:center;gap:2px}.draft-actions .icon-control{width:36px;min-width:36px}
@media(max-width:650px){#planDialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}#planDialog .modal-top{padding:16px 18px}#planDialog .plan-form-fields{padding:4px 18px 18px}#planDialog .plan-form-actions{padding:14px 18px max(14px,env(safe-area-inset-bottom))}.lesson-plan{grid-template-columns:20px minmax(0,1fr) auto}.lesson-plan .draft-copy{grid-column:2;grid-row:1}.lesson-plan .draft-actions{grid-column:3;grid-row:1}.lesson-plan input[type=date]{grid-column:2;grid-row:2;width:140px;margin:0}.lesson-plan .draft-title{width:100%;flex:initial}}

/* Completion-based learning progress. */
.streak-dialog{margin:auto;inset:0;width:min(900px,calc(100% - 24px));max-width:900px;max-height:calc(100dvh - 24px);padding:0;border-radius:24px;overflow:visible}
#progressDashboard{display:flex;flex-direction:column;max-height:calc(100dvh - 28px);min-width:0}
.progress-intro{display:flex;justify-content:space-between;gap:16px;padding:24px 28px 16px;border-bottom:1px solid var(--line);flex:none}
.progress-intro h2{margin:5px 0 6px;font-size:27px}.progress-intro p{margin:0;color:var(--muted);font-size:13px}.progress-intro .close-button{align-self:flex-start;flex:none}
.progress-scroll{overflow-y:auto;min-height:0;padding:24px 28px;overscroll-behavior:contain}.progress-scroll>*{min-width:0}
.progress-metrics{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:16px;align-items:center;margin-bottom:24px}.progress-metrics>div{min-width:0}.progress-metrics strong{display:block;font-size:27px;letter-spacing:-.04em}.progress-metrics span{display:block;font-size:11px;color:var(--muted);line-height:1.5}.current-streak{display:flex;gap:12px;align-items:center}.current-streak>.ico{width:34px;height:34px;color:var(--accent)}.current-streak strong{font-size:34px}
.progress-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.progress-section{min-width:0;border:1px solid var(--line);border-radius:16px;padding:18px}.progress-section h3{font-size:16px;margin-bottom:16px}.progress-muted{font-size:12px;color:var(--muted);margin:10px 0;overflow-wrap:anywhere}
.progress-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.progress-day{display:flex;min-width:0;align-items:center;flex-direction:column;gap:7px;font-size:11px}.progress-day abbr{text-decoration:none;color:var(--muted)}.progress-day button,.progress-day .day-circle{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#f0f0f1;color:#777}.progress-day .ico{width:16px;height:16px}.progress-day.done button,.progress-day.done .day-circle{background:var(--accent);color:#fff}.progress-day.current button,.progress-day.current .day-circle{outline:2px solid var(--accent);outline-offset:2px}.progress-day.upcoming .day-circle{background:#fafafa;border:1px dashed #ccc}.progress-day small{font-size:10px;color:var(--muted)}.week-key{display:flex;gap:8px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin:16px 0}.today-key{color:var(--accent)}
.week-dots .progress-day{gap:5px}.week-dots .progress-day .day-circle{width:23px;height:23px}.week-dots .progress-day abbr{font-size:9px}.week-dots .progress-day small{font-size:9px}
.next-milestone{display:flex;flex-direction:column;gap:7px}.next-milestone>span,.next-milestone p{font-size:12px;color:var(--muted);margin:0}.progress-scroll progress{width:100%;height:7px;appearance:none;border:0;border-radius:8px;background:#eee;accent-color:var(--accent)}.progress-scroll progress::-webkit-progress-bar{background:#eee;border-radius:8px}.progress-scroll progress::-webkit-progress-value{background:var(--accent);border-radius:8px}.progress-scroll progress::-moz-progress-bar{background:var(--accent);border-radius:8px}
.milestone-badges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.milestone-badge{border:1px solid var(--line);border-radius:10px;padding:10px;min-width:0;font-size:11px}.milestone-badge summary{cursor:pointer;display:flex;align-items:center;gap:7px;list-style:none;overflow-wrap:anywhere}.milestone-badge summary::-webkit-details-marker{display:none}.milestone-badge .ico{width:16px;height:16px}.milestone-badge small{display:block;font-size:10px;margin-top:4px;color:var(--muted)}.milestone-badge.earned{border-color:var(--accent);color:var(--accent)}.milestone-badge p{font-size:11px;margin:10px 0 0;color:var(--muted)}
.learning-trend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}.trend-column{display:flex;align-items:center;flex-direction:column;gap:6px;font-size:11px;min-width:0}.trend-track{height:100px;width:100%;max-width:38px;background:#f3f3f4;border-radius:5px;display:flex;align-items:flex-end}.trend-track span{width:100%;background:var(--accent);border-radius:5px}.trend-column small{font-size:10px;color:var(--muted)}
.progress-topics{list-style:none;margin:0;padding:0;display:grid;gap:14px}.progress-topics li div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px;font-size:12px;margin-bottom:5px;overflow-wrap:anywhere}.progress-topics small{color:var(--muted)}.progress-date-lessons{border-top:1px solid var(--line);padding-top:12px}.progress-date-lessons h4{font-size:12px;margin:0 0 8px}.progress-date-lessons button{display:flex;gap:8px;text-align:left;font-size:12px;padding:8px 0;overflow-wrap:anywhere;max-width:100%}
.progress-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px 28px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--line);flex:none;background:white;border-radius:0 0 24px 24px}.progress-actions button{display:flex;align-items:center;gap:10px;padding:14px;border-radius:12px;min-width:0;text-align:left;font-size:13px}.progress-actions small{display:block;font-size:10px;font-weight:400;margin-top:4px;line-height:1.4}.progress-explore{border:1px solid var(--line)}
@keyframes milestone-pulse{50%{transform:scale(1.08);box-shadow:0 0 0 7px var(--accent-soft)}}.milestone-celebrate{animation:milestone-pulse .6s ease 2}
@media(prefers-reduced-motion:reduce){.milestone-celebrate{animation:none}}
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){
 html.feed-active{scroll-snap-type:none}.feed-tabs{position:sticky;top:var(--topbar-height,100px);z-index:6;background:#fff;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;overflow:visible;isolation:isolate}.feed-tabs button{min-width:0;min-height:44px;font-size:11px;touch-action:manipulation}.feed-track{isolation:isolate;z-index:0;position:relative}.topbar{z-index:7}
 .streak-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:18px}#progressDashboard{max-height:calc(100dvh - 20px)}.progress-intro{padding:18px 16px 12px}.progress-intro h2{font-size:23px}.progress-scroll{padding:18px 14px}.progress-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.progress-metrics strong{font-size:25px}.current-streak strong{font-size:30px}.progress-grid{grid-template-columns:minmax(0,1fr);gap:14px}.progress-section{padding:15px}.progress-actions{padding:12px 14px max(12px,env(safe-area-inset-bottom));gap:8px}.progress-actions button{padding:10px;font-size:12px}.progress-actions .ico{width:17px;height:17px}.progress-actions small{font-size:10px}.progress-day button,.progress-day .day-circle{width:27px;height:27px}
}

/* Compact progress dashboard with one scrolling body. */
.progress-intro{padding:16px 22px}.progress-intro h2{margin:4px 0;font-size:25px}
.progress-scroll{padding:18px 22px}.progress-metrics{gap:12px;margin-bottom:16px}.current-streak strong{color:var(--accent)}
.progress-grid{gap:12px}.progress-section{padding:14px}.progress-section h3{margin:0 0 12px}.progress-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:12px}.progress-section-heading h3{margin:0;font-size:16px}

.ranking-card{border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:14px;padding:14px 16px;margin-bottom:12px;background:var(--wash)}.ranking-card .progress-section-heading{margin-bottom:8px}.ranking-estimate{display:block;font-size:20px;letter-spacing:-.03em;color:var(--accent);overflow-wrap:anywhere}
.milestone-badges{gap:6px;margin-top:12px}.milestone-badge{padding:8px}.milestone-badge summary{font-size:10px;gap:5px}.milestone-badge small{margin-top:2px;font-size:9px}.milestone-badge p{margin-top:6px}.next-milestone{gap:6px}
.trend-track{height:var(--trend-height,75px)}.empty-trend .trend-track{height:32px}.trend-column{gap:4px}.progress-muted{margin:10px 0 0}.progress-topics{gap:10px}.progress-history-note{font-size:11px;color:var(--muted);margin-top:12px}.progress-history-note p{margin:6px 0 0}.progress-actions{padding:12px 22px max(12px,env(safe-area-inset-bottom));gap:10px}.progress-actions button{padding:12px}
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){.progress-intro{padding:12px 14px}.progress-intro h2{font-size:22px}.progress-scroll{padding:14px 12px}.progress-metrics{gap:14px}.progress-section{padding:12px}.ranking-card{padding:12px}.ranking-estimate{font-size:17px}.progress-actions{padding:10px 12px max(10px,env(safe-area-inset-bottom));gap:8px}.progress-actions button{padding:9px;font-size:11px}.progress-actions .ico{width:16px;height:16px}}

/* Optional concepts and Ask Refine companion. */
.ask-fab{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:24px;width:52px;height:52px;border-radius:50%;background:var(--accent);color:white;display:grid;place-items:center;z-index:100;box-shadow:0 4px 16px #0002}.ask-fab[hidden]{display:none}.ask-fab .ico{width:25px;height:25px}
.explore-concepts{margin:24px 0 16px}.explore-concepts h3{font-size:16px;margin:0 0 10px}.explore-concepts>div{display:flex;gap:8px;flex-wrap:wrap}.explore-concepts button{border:1px solid var(--accent);border-radius:24px;min-height:44px;padding:10px 14px;font-size:12px;text-align:left}.explore-concepts button span{margin-left:8px}.lesson-ask{border:1px solid var(--line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:5px;text-align:left;width:100%;font-weight:700;margin:16px 0}.lesson-ask>span{font-size:12px;font-weight:400;color:var(--muted)}.concept-highlight{display:inline;padding:0 2px;border-radius:4px;background:var(--accent-soft);box-shadow:inset 0 -1px var(--accent);font:inherit;text-align:inherit;color:inherit}.concept-highlight:focus-visible{outline:2px solid var(--accent)}
.ask-dialog{margin:auto;inset:0;padding:0;width:min(500px,calc(100% - 24px));max-width:500px;height:min(760px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow:visible;border-radius:22px}
.ask-surface{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;background:#fff;border-radius:inherit;color:var(--ink)}.ask-header{padding:16px 18px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);flex:none}.ask-header>div{min-width:0}.ask-header h2{font-size:21px;margin:0;overflow-wrap:anywhere}.ask-header p{font-size:11px;color:var(--muted);margin:5px 0 0;overflow-wrap:anywhere}.ask-header .close-button{flex:none;width:44px;height:44px}
.ask-scroll{padding:18px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere}.ask-scroll h3{font-size:14px;margin:18px 0 8px}.ask-scroll p{font-size:13px;line-height:1.65;white-space:pre-wrap}.ask-muted{font-size:11px;color:var(--muted)}.ask-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.ask-surface button:not(.close-button):not(.accent-button){min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;font-size:12px}.ask-resource{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;padding:12px;margin:10px 0;font-size:12px}.ask-resource a{min-width:0;flex:1;text-decoration:none}.ask-resource strong,.ask-resource small{display:block;overflow-wrap:anywhere}.ask-resource small{font-size:10px;color:var(--muted);margin-top:5px}.ask-resource button{flex:none}.ask-source{display:inline-block;min-height:44px;padding:12px 0;font-size:12px}.ask-welcome{text-align:center;padding:20px 0}.ask-welcome>span{display:inline-grid;place-items:center;background:var(--accent-soft);color:var(--accent);width:48px;height:48px;border-radius:50%}.ask-welcome h3{font-size:19px}.ask-message{border:1px solid var(--line);border-radius:14px;padding:12px;margin:12px 0;background:var(--wash)}.ask-message.user{background:var(--accent-soft);margin-left:20px}.ask-message small{font-size:10px;color:var(--muted)}.ask-message p{margin:6px 0}.ask-suggestions{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.ask-suggestions button{flex:1;min-width:100px}.ask-composer{display:flex;align-items:flex-end;gap:8px;border-top:1px solid var(--line);padding:12px 18px max(12px,env(safe-area-inset-bottom));flex:none}.ask-composer textarea{resize:vertical;min-width:0;flex:1;max-height:120px;min-height:44px;border:1px solid var(--line);border-radius:12px;padding:10px;font:inherit;font-size:16px}.ask-composer button{width:44px;height:44px;padding:10px;border-radius:50%;flex:none}.ask-status{font-size:12px;color:var(--muted)}.ask-save{border-top:1px solid var(--line);margin-top:14px;padding-top:12px}.ask-save label{display:flex;flex-direction:column;gap:5px;font-size:12px;margin:12px 0}.ask-save label[hidden]{display:none}.ask-save select,.ask-save input{width:100%;min-width:0;max-width:100%;height:44px;border:1px solid var(--line);border-radius:10px;padding:8px;font:inherit;background:white}.ask-save button{min-height:44px}.saved-knowledge{margin:20px 0}.saved-knowledge h3{font-size:16px}.saved-knowledge article{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;border:1px solid var(--line);border-radius:12px;padding:12px;margin:8px 0}.saved-knowledge button{min-height:44px;text-align:left;overflow-wrap:anywhere;max-width:100%;display:flex;gap:8px;align-items:center;font-size:13px}
@media(min-width:1100px){.reader-dialog.assistant-visible{display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:auto minmax(0,1fr) auto;width:1180px;max-width:calc(100vw - 32px)}.reader-dialog.assistant-visible>.modal-top{grid-column:1;grid-row:1}.reader-dialog.assistant-visible>#readerBody{grid-column:1;grid-row:2}.reader-dialog.assistant-visible>#readerFooter{grid-column:1;grid-row:3}.reader-dialog.assistant-visible>.ask-surface{grid-column:2;grid-row:1/4;border-left:1px solid var(--line);border-radius:0 20px 20px 0}.reader-dialog.assistant-visible>.ask-surface .ask-header{padding:16px}.reader-dialog.assistant-visible>.ask-surface .ask-scroll{padding:14px}}
@media(max-width:1099px){.reader-dialog.assistant-mobile{position:fixed}.reader-dialog.assistant-mobile>.ask-surface{position:absolute;inset:0;z-index:2;border-radius:inherit}.reader-dialog.assistant-mobile>#readerBody,.reader-dialog.assistant-mobile>#readerFooter,.reader-dialog.assistant-mobile>.modal-top{visibility:hidden;pointer-events:none}.ask-fab{bottom:calc(80px + env(safe-area-inset-bottom))}.has-mini-player .ask-fab{bottom:calc(168px + env(safe-area-inset-bottom))}.ask-dialog{position:fixed;inset:0;margin:auto;width:calc(100% - 16px);max-width:500px;height:calc(100dvh - 24px - env(safe-area-inset-top));max-height:calc(100dvh - 24px - env(safe-area-inset-top));border-radius:20px}.ask-scroll{padding:14px}.ask-header{padding:14px}.ask-composer{padding:10px 14px max(10px,env(safe-area-inset-bottom))}}
@media(min-width:651px) and (max-width:1099px){.ask-fab{bottom:24px}}
.concept-highlight{display:inline-block;min-height:44px;line-height:1.6;padding:6px 3px;max-width:100%;white-space:normal;overflow-wrap:anywhere;vertical-align:baseline}

/* Streak calendar and trend use complete local week ranges. */
.ranking-card h3{font-size:16px;margin:0 0 8px}.ranking-note{display:block;color:var(--muted);font-size:10px;margin-top:6px;line-height:1.4}
.progress-week-range{font-size:12px;color:var(--muted);margin:-4px 0 14px}.trend-metric{font-size:11px;color:var(--muted)}
.learning-trend{align-items:stretch}.trend-column{display:grid;grid-template-rows:auto var(--trend-height,75px) minmax(2.6em,1fr);justify-items:center;align-content:start}.trend-period{font-size:10px;text-align:center;line-height:1.4;overflow-wrap:anywhere;max-width:100%}.trend-current{display:block;margin-top:3px;color:var(--accent)!important;font-weight:700}.trend-track span{background:#aaaab0}.current-week .trend-track span{background:var(--accent)}.current-week>strong{color:var(--accent)}.progress-day.current abbr,.progress-day.current>small{color:var(--accent);font-weight:750}

/* Keep mobile search and account controls in one compact row. */
@media(max-width:650px),(max-width:950px) and (max-height:500px) and (pointer:coarse){
 .topbar{grid-template-columns:auto minmax(0,1fr) auto;gap:6px;align-items:center}
 .topbar .mobile-logo{font-size:24px}.topbar .mobile-logo span{font-size:30px}
 .topbar .search-holder{grid-column:2;grid-row:1;position:static;inset:auto;min-width:0;width:100%;padding:0 6px;gap:2px;height:44px}
 .topbar .search-holder input{display:block;width:0;min-width:0;font-size:12px}
 .topbar .search-holder #openSearch{min-width:28px;width:28px}
 .topbar .top-actions{grid-column:3;grid-row:1;gap:2px}
 .topbar .header-streak{padding:4px;gap:2px;font-size:10px}.topbar .header-streak svg{width:14px}
 .topbar .top-avatar{width:44px}.topbar .live-status{display:none}
 .mobile-search-open .topbar .mobile-logo{visibility:visible}
}
.ask-fab{transition:opacity .18s ease,transform .18s ease}
.ask-fab.scroll-hidden{opacity:0;transform:translateY(12px);pointer-events:none;visibility:hidden;transition:opacity .18s ease,transform .18s ease,visibility 0s .18s}
@media(prefers-reduced-motion:reduce){.ask-fab,.ask-fab.scroll-hidden{transition:none}}

@media(min-width:1100px){.has-mini-player .ask-fab{bottom:120px}}

/* Optional account sync stays separate from Profile navigation and Preferences. */
.cloud-account{border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:18px;min-width:0}.cloud-account h3{font-size:15px;overflow-wrap:anywhere;margin:0 0 6px}.cloud-account p{font-size:12px;color:var(--muted);margin-bottom:10px}.cloud-actions,.auth-secondary{display:flex;flex-wrap:wrap;gap:8px}.cloud-actions button,.auth-secondary button,#cloudConflicts button{min-height:44px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-size:12px}.cloud-actions [hidden]{display:none}.auth-dialog{width:min(420px,calc(100vw - 24px));box-sizing:border-box;max-height:calc(100dvh - 24px);overflow-y:auto}.auth-dialog .modal-top{gap:10px}.auth-dialog form label{display:block;font-size:13px;margin:14px 0}.auth-dialog input{display:block;width:100%;min-width:0;box-sizing:border-box;margin-top:6px;border:1px solid var(--line);border-radius:12px;padding:12px;font-size:16px}.auth-google{width:100%;min-height:44px;border:1px solid var(--line);border-radius:12px;padding:12px}.auth-dialog #authError{color:var(--accent);font-size:13px;overflow-wrap:anywhere;margin-top:12px}.auth-secondary button{flex:1}.auth-dialog .close-button{flex:none}.cloud-account button{max-width:100%;white-space:normal;overflow-wrap:anywhere}.profile-dialog{overflow-y:auto}
#cloudConflicts pre{font-family:inherit;font-size:11px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow-y:auto;border:1px solid var(--line);border-radius:8px;padding:8px}#cloudConflicts>div{border-top:1px solid var(--line);margin-top:10px;padding-top:10px}

/* Compact Profile hub and dedicated authentication/recovery screens. */
#profileDialog{width:min(480px,calc(100vw - 24px));max-width:calc(100vw - 24px);padding:20px;overflow-y:auto}
#profileDialog .cloud-account{background:var(--wash);padding:14px;margin-bottom:12px}
.profile-person{display:flex;align-items:center;gap:12px;min-width:0}.profile-person-copy{flex:1;min-width:0}.profile-person-copy h3{margin:0 0 3px;font-size:18px}.profile-person-copy p{margin:3px 0;font-size:12px;overflow-wrap:anywhere}.profile-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff;font-size:24px;font-weight:750;flex:none;overflow:hidden}.profile-avatar img{width:100%;height:100%;object-fit:cover}#profileEdit{font-size:12px;color:var(--accent);min-height:44px;padding:6px;flex:none}.profile-auth-cta{display:flex;gap:8px;margin-top:10px}.profile-auth-cta button{flex:1;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:8px;font-size:13px}.profile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:14px 0 0}.profile-stats div{text-align:center;min-width:0}.profile-stats strong{display:block;font-size:21px;line-height:1.2}.profile-stats span{display:block;font-size:10px;color:var(--muted);margin-top:5px}.profile-submenu{border-top:1px solid var(--line);padding:12px 0}.profile-submenu>summary{font-size:14px;font-weight:650;cursor:pointer;min-height:32px;padding:6px 0}.profile-submenu p{font-size:12px;color:var(--muted);margin:8px 0}.profile-links{margin:8px 0}#profileNameForm{padding-top:10px}#profileNameForm label{display:block;font-size:12px}#profileNameForm input{width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;padding:10px;margin:6px 0;font-size:16px}#profileNameForm button{min-height:44px;border-radius:10px;padding:8px 12px}#profileNameStatus{color:var(--accent)}
#authDialog{padding:20px;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}#authDescription,.auth-divider{font-size:12px;color:var(--muted)}.auth-divider{text-align:center;margin:14px 0 4px}.password-input{display:flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:12px;margin-top:6px;padding-right:6px}#authDialog .password-input input{border:0;margin:0;flex:1;width:0}.password-input button{min-width:44px;min-height:44px;font-size:12px}#authResetConfirmation p{font-size:13px;line-height:1.5}#authRetry{font-size:12px;color:var(--muted)}#authDialog [hidden],#profileDialog [hidden]{display:none!important}
@media(max-width:375px){#profileDialog,#authDialog{padding:14px}.profile-person{gap:8px}.profile-avatar{width:40px;height:40px}.profile-person-copy h3{font-size:16px}.profile-stats span{font-size:9px}.profile-stats{gap:4px}.profile-auth-cta{flex-wrap:wrap}}

/* Compact page controls share one row; only the chip strip scrolls. */
.plans-toolbar,.explore-toolbar{display:flex;align-items:center;gap:8px;min-width:0;margin:8px 0 18px}
.plans-toolbar #planFilters,.explore-toolbar #searchFilters,#learningTabs{display:flex;flex-wrap:nowrap;overflow-x:auto;min-width:0;gap:6px;scrollbar-width:thin}
.plans-toolbar #planFilters,.explore-toolbar #searchFilters{flex:1;margin:0}
.plans-toolbar button,.explore-toolbar button,#learningTabs button{flex-shrink:0;white-space:nowrap;min-height:44px}
.plans-toolbar #addPlan{width:44px;height:44px;padding:0;border-radius:12px;flex:none}
#exploreFilterToggle{position:relative;width:44px;height:44px;flex:none;border:1px solid var(--line);border-radius:12px}
#exploreFilterCount{position:absolute;right:0;top:-5px;min-width:17px;text-align:center;background:var(--accent);color:white;border-radius:10px}
#exploreFilterPanel{padding:12px;background:#fafafa;border:1px solid var(--line);border-radius:12px;flex-wrap:wrap}
#exploreFilterPanel label{flex:1;min-width:100px}
#exploreFilterPanel select{width:100%;max-width:100%;min-height:44px}
.result-actions{display:flex;flex-wrap:nowrap;gap:4px;align-items:center;min-width:0}
.result-actions>button{min-height:44px;flex-shrink:0}
.result-actions>button:not(:first-child){width:44px;padding:0;display:inline-flex;justify-content:center;align-items:center}
.result-actions>button:not(:first-child)>span{display:none}
.result-actions>button:first-child{padding:8px 10px;gap:5px;white-space:nowrap;font-size:12px;min-width:0}
.result-actions>button .ico{width:17px;height:17px;flex:none}
#matchesView .matches-head{margin-top:8px}
#learningTabs{margin-top:8px;margin-bottom:16px}
#learningTabs .library-access{display:inline-flex;align-items:center;gap:5px}
.archive-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 18px}
.archive-stats .stat-card{background:white;border:1px solid var(--line);border-radius:14px;padding:14px;min-width:0;display:flex;flex-direction:column;gap:6px}
.archive-stats .stat-card strong{font-size:30px;line-height:1.15;overflow-wrap:anywhere;letter-spacing:-.04em}
.archive-stats .stat-card>span:last-child{font-size:11px;color:var(--muted);line-height:1.4}
.archive-stats .stat-icon{color:var(--accent)}
.archive-stats .stat-icon .ico{width:18px;height:18px}
.archive-stats #journeyActivity{font-size:20px}
.profile-section{border-top:1px solid var(--line);padding:14px 0}
.profile-section h3{font-size:14px;margin:0 0 10px}
.profile-section>button,#notificationForm>button{min-height:44px;display:flex;align-items:center;gap:8px;font-size:12px}
.profile-section p{font-size:12px;color:var(--muted);line-height:1.5}
#notificationOptions fieldset{border:1px solid var(--line);border-radius:12px;margin:12px 0;padding:10px}
#notificationOptions legend{font-size:12px;font-weight:700}
#notificationOptions legend small{color:var(--muted);font-weight:400}
#notificationOptions label{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;min-height:44px;font-size:12px;font-weight:400}
#notificationOptions input[type=checkbox]{width:18px;height:18px;flex:none;padding:0;accent-color:var(--accent)}
.settings-recovery{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.settings-recovery>summary{min-height:44px;font-size:13px;font-weight:700;cursor:pointer}
.settings-dialog fieldset{min-width:0}
.settings-dialog select{max-width:100%;min-height:44px;border:1px solid var(--line);border-radius:10px;background:white;padding:8px}
.profile-dialog{box-sizing:border-box;max-height:calc(100dvh - 24px);padding-bottom:max(18px,env(safe-area-inset-bottom))}
.profile-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.profile-stats>div{min-width:0}
.profile-stats span{font-size:10px;overflow-wrap:anywhere}
@media(max-width:760px){.archive-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.result-actions>button:not(:first-child){width:36px;min-width:36px}.result-actions{gap:3px}#learningTabs button{padding:8px 10px;font-size:12px}.plans-toolbar #planFilters button{padding:8px 10px;font-size:12px}.profile-dialog{width:calc(100% - 16px);max-width:420px;margin:auto;border-radius:20px}}
@media(max-width:650px){.ask-fab{bottom:calc(92px + env(safe-area-inset-bottom))}.has-mini-player .ask-fab{bottom:calc(180px + env(safe-area-inset-bottom))}}

.account-notice{padding:12px 16px;margin-bottom:12px;border:1px solid var(--line,#ddd);border-radius:8px;font-size:14px}.account-notice p{margin:0 0 8px}

/* Shared navigation refinements retain the five-column grid and safe-area insets. */
.mobile-nav button.active{color:var(--accent);font-weight:760}
.mobile-nav button.active>.ico{width:26px;height:26px;padding:4px;box-sizing:content-box;background:var(--accent);color:#fff;border-radius:12px;box-shadow:0 2px 5px #00000014}
.topbar .header-streak{background:transparent;border:0;border-radius:0;box-shadow:none;padding:8px;min-width:44px;min-height:44px;color:var(--accent);animation:none}
.topbar .header-streak>.ico{width:23px;height:23px;filter:none;animation:none}
.ask-fab{width:46px;height:46px;border-radius:15px;background:#fff;color:var(--accent);border:1px solid var(--line);box-shadow:0 2px 7px #00000014}
.ask-fab>.ico:first-child{width:26px;height:26px}
.ask-fab>.ico:last-child{position:absolute;width:13px;height:13px;right:5px;top:4px;background:#fff;stroke-width:1.8}

/* Compact account settings, shared by browser and Capacitor. */
.settings-dialog,.profile-dialog{background:#fff;width:min(100% - 24px,540px);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);overflow-y:auto;overscroll-behavior:contain;border-radius:22px;padding:22px;padding-bottom:max(22px,env(safe-area-inset-bottom));scroll-padding:70px}
.settings-dialog .modal-top,.profile-dialog .modal-top{position:sticky;top:-22px;z-index:2;background:#fff;padding:14px 0;border-bottom:1px solid #eee}
.settings-card{margin:18px 0;background:#fafafa;border:1px solid #f0f0f0;border-radius:16px;padding:14px 16px}
.settings-card h3{font-size:12px;font-weight:600;color:#777;text-transform:uppercase;letter-spacing:.06em;margin:0 0 8px}
.settings-card button,.settings-advanced,#profileDialog>button{min-height:44px;text-align:left;background:transparent;border:0;border-radius:0;width:100%;padding:10px 0;color:#9c2544;box-shadow:none;justify-content:flex-start}
.settings-card button+button{border-top:1px solid #e9e9e9}
.settings-card button:disabled{color:#888;cursor:default}
.settings-card p{font-size:12px;line-height:1.5;color:#666;margin:6px 0}
.settings-card .cloud-account{border:0;padding:0;margin:0;background:transparent}
.settings-card .profile-person{gap:12px;flex-wrap:wrap}
.settings-card .profile-avatar,#profileOverview .profile-avatar{width:48px;height:48px;font-size:20px;flex-shrink:0}
.settings-card #profileProvider{display:none}
#notificationOptions label{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:50px;border-top:1px solid #e9e9e9;font-size:14px;margin:0}
#notificationOptions input{appearance:none;flex:none;width:42px;height:26px;background:#ccc;border:0;border-radius:20px;position:relative;cursor:pointer}
#notificationOptions input:after{content:'';position:absolute;width:20px;height:20px;top:3px;left:3px;border-radius:50%;background:white;transition:transform .15s}
#notificationOptions input:checked{background:#a12c49}
#notificationOptions input:checked:after{transform:translateX(16px)}
#notificationOptions input:focus-visible{outline:3px solid #a12c49;outline-offset:3px}
.delete-account{color:#b42332!important;background:transparent;border:0;min-height:44px}
#profileOverview .profile-person{padding:18px 0}
.settings-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:11px}
.settings-dialog [hidden],.profile-dialog [hidden]{display:none!important}
@media(max-width:600px){.settings-dialog,.profile-dialog{padding:18px;border-radius:20px}.settings-dialog .modal-top,.profile-dialog .modal-top{top:-18px}.profile-stats{gap:8px}.profile-stats span{font-size:11px}}

.settings-card .profile-person h3{text-transform:none;letter-spacing:normal;font-size:18px;color:#222;margin:0}

/* Settings.png: quiet outlined cards, clear row icons and independent groups. */
#settingsDialog{padding:20px 22px;width:min(calc(100% - 24px),540px)}
#settingsDialog .settings-brand{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:6px;border:0;margin-bottom:16px;text-align:center}
.settings-brand .close-button{color:var(--accent);grid-column:1;grid-row:1;background:none;border:0;box-shadow:none}
.settings-brand>div{grid-column:2;grid-row:1}
.settings-wordmark{font-size:36px;color:#111;letter-spacing:-2px;font-weight:800;line-height:1}
.settings-wordmark span{color:var(--accent)}
#settingsDialog .settings-brand h2{font-size:14px;font-weight:400;color:#666;letter-spacing:normal;margin:6px 0 0}
.settings-group{margin:8px 0 12px;border:0;background:transparent}
.settings-group>summary{display:flex;align-items:center;gap:12px;min-height:58px;padding:8px 2px;cursor:pointer;list-style:none;font-weight:700;font-size:19px;color:#111}
.settings-group>summary::-webkit-details-marker{display:none}
.settings-group>summary>.ico{width:24px;height:24px;color:var(--accent);flex:none;stroke-width:1.8}
.settings-group .settings-chevron{margin-left:auto;color:#777;display:inline-flex;transition:transform .18s ease}
.settings-group[open] .settings-chevron{transform:rotate(180deg)}
.settings-chevron .ico{width:18px;height:18px}
.settings-group .settings-card{margin:4px 0 14px;border:1px solid #e5e5e8;border-radius:16px;background:#fff;padding:4px 14px;box-shadow:0 3px 8px #00000005;min-width:0}
.settings-group .settings-card>button,.settings-group .settings-card>div>button{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;color:#222;font-size:14px;border-radius:0;white-space:normal;line-height:1.4}
.settings-group .settings-card button>.ico{color:var(--accent);width:21px;height:21px;flex:none;stroke-width:1.8}
.settings-group .settings-card button:disabled{color:#777}
.settings-group .row-chevron{margin-left:auto;display:inline-flex;color:#777}
.settings-group .row-chevron .ico{width:17px;height:17px}
.settings-group .profile-person{padding:14px 0}
.settings-group .profile-person-copy{min-width:0;flex:1}
.settings-group #profileEmail{overflow-wrap:anywhere}
.settings-group .profile-avatar{background:#f5f5f5;color:#111}
.settings-group .profile-auth-cta{display:flex;gap:12px}
.settings-group #notificationOptions label{font-size:14px;gap:12px;min-height:52px;line-height:1.4}
.settings-group #notificationOptions label>span{flex:1}
.settings-group #notificationOptions input[type=checkbox]{width:42px;height:26px;border-radius:20px}
.settings-group #notificationOptions input:checked{background:var(--accent)}
.support-page p,.support-page dd{font-size:14px;color:#606066;line-height:1.6;overflow-wrap:anywhere}
.support-welcome{font-size:23px;letter-spacing:-.6px;line-height:1.25;margin:22px 0 8px;color:#111}
.help-faqs details{border-bottom:1px solid #e5e5e8;padding:8px 0}
.help-faqs summary{min-height:44px;display:list-item;align-content:center;font-size:14px;font-weight:600;cursor:pointer}
.support-block{margin:24px 0;border:0}
.support-block h3{font-size:16px}
.support-page button:not(.close-button){min-height:44px;color:var(--accent);background:transparent;border:0;text-align:left;padding:8px 0}
.support-page button:disabled{color:#777}
.support-page textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;border:1px solid #ddd;border-radius:12px;padding:12px;font:inherit;resize:vertical;min-height:100px}
.support-page label{font-size:14px;display:block;margin:8px 0}
.about-features{margin:20px 0}
.about-features dt{font-size:14px;font-weight:700;color:#222;margin-top:12px}
.about-features dd{margin:2px 0 0}
.about-version{border-top:1px solid #e5e5e8;padding-top:14px;font-size:12px!important}
@supports (interpolate-size:allow-keywords){.settings-group{interpolate-size:allow-keywords}.settings-group::details-content{block-size:0;overflow:clip;transition:block-size .18s ease,content-visibility .18s allow-discrete}.settings-group[open]::details-content{block-size:auto}}
@media(prefers-reduced-motion:reduce){.settings-group::details-content,.settings-group .settings-chevron{transition:none}}
@media(max-width:600px){#settingsDialog{padding:18px 16px}.settings-group>summary{font-size:18px}.settings-group .settings-card{padding:4px 12px}.settings-dialog{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px)}}
.settings-group #notificationOptions label>span{display:flex;align-items:center;gap:12px}
.settings-group #notificationOptions label>span>.ico{width:21px;height:21px;color:var(--accent);flex:none;stroke-width:1.8}
@keyframes settings-reveal{from{opacity:0}to{opacity:1}}
.settings-group[open]>.settings-card{animation:settings-reveal .16s ease}
@media(prefers-reduced-motion:reduce){.settings-group[open]>.settings-card{animation:none}}
.incoming-share-dialog{max-width:480px;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);overflow-y:auto;overflow-wrap:anywhere;background:#fff;padding-bottom:max(22px,env(safe-area-inset-bottom))}
.incoming-share-dialog>button{min-height:44px;width:100%;margin-top:8px}
#incomingShareText{white-space:pre-wrap;max-height:140px;overflow:auto;font-size:14px}
#incomingShareSource{color:var(--accent);font-weight:600}
#incomingShareDestination,#incomingShareStatus{font-size:13px;color:#666}
#incomingShareImages{display:flex;gap:8px;overflow:auto}
#incomingShareImages img{max-width:120px;max-height:140px;object-fit:contain;border-radius:10px}
#pendingSharesAction[hidden]{display:none}
#settingsLearningRow{display:flex;justify-content:space-between;gap:12px}#settingsLearningProgress{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:3px}
#settingsSyncStatus{font-size:12px;color:var(--muted);margin:6px 0}
.settings-card [role=tabpanel][hidden]{display:none}.reminder-schedule{border:0;padding:10px 0 0;margin:0}.reminder-schedule legend{font-size:13px;font-weight:600}.reminder-schedule label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0}.reminder-schedule input{min-height:44px;border:1px solid var(--line);border-radius:8px;padding:6px;background:#fff;max-width:145px}.reminder-schedule small{font-size:12px;color:var(--muted)}
#settingsDialog .reminder-schedule label,#settingsDialog .notification-frequency{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin:6px 0;font-size:14px;font-weight:400;text-align:left}
#settingsDialog .reminder-schedule input{flex:0 0 132px;width:132px;min-width:0;max-width:52%;font-size:14px}
#notificationFrequency{width:156px;max-width:56%;font-size:14px}

#supportForm{display:grid;gap:12px}#supportForm label{display:grid;gap:6px}#supportForm textarea{resize:vertical;min-height:100px}#supportInbox article{padding:12px 0;border-bottom:1px solid var(--line,#e5e5e5);overflow-wrap:anywhere}#supportInbox p{white-space:pre-wrap}#supportInbox small{color:var(--muted,#666)}
/* Account card stays visible above the four compact settings groups. */
#settingsDialog .settings-brand{justify-content:center;text-align:center;position:relative;margin-bottom:20px}
#settingsDialog .settings-brand>.close-button{position:absolute;left:0;top:4px;color:var(--accent)}
#settingsDialog .settings-wordmark{font-size:38px;line-height:1;letter-spacing:-2px}
#settingsDialog .settings-brand h2{font-size:16px;font-weight:500;color:var(--muted);margin-top:8px}
.settings-account-card{border-radius:22px;padding:20px;margin:0 0 12px;background:var(--wash);background:color-mix(in srgb,var(--accent) 4%,#fff)}
.settings-account-card .cloud-account{margin:0;padding:0;border:0;background:none}
.account-signin-heading{display:flex;gap:16px;align-items:center}.account-signin-heading>div{min-width:0}
.account-signin-heading h3{margin:0 0 6px;font-size:19px;line-height:1.3;letter-spacing:-.4px}
.account-signin-heading p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.account-sync-symbol{display:flex;align-items:center;justify-content:center;flex:0 0 52px;min-height:66px;border-right:1px solid var(--line);padding-right:14px;color:var(--accent)}.account-sync-symbol .ico{width:34px;height:34px}
.settings-account-card .profile-auth-cta{display:flex;gap:12px;margin-top:18px}
.settings-account-card .profile-auth-cta button{flex:1;min-width:0;min-height:44px;border-radius:999px;font-size:15px;font-weight:700;justify-content:center}
.settings-account-card #openAuth{background:var(--accent);color:#fff;border:1px solid var(--accent)}
.settings-account-card #openSignup{border:1px solid var(--accent);background:transparent;color:var(--accent)}
.settings-account-card[data-state=guest] .profile-person,.settings-account-card[data-state=guest] .account-details,.settings-account-card[data-state=signed-in] .account-signin-heading,.settings-account-card[data-state=signed-in] .profile-auth-cta{display:none}
.settings-account-card[data-state=signed-in]{background:var(--wash)}
.settings-account-card .profile-person{display:flex;gap:12px;align-items:center;margin:0}.settings-account-card .profile-person-copy{flex:1;min-width:0}.settings-account-card #profileEmail{overflow-wrap:anywhere;font-size:13px}
.settings-account-card #profileEdit{font-size:13px;min-height:44px;flex-shrink:0;color:var(--accent);background:none;border:0}
.settings-account-card .account-details>button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;text-align:left;background:none;border:0;padding:10px 0;font-size:14px}
.settings-account-card .account-details>button>.ico{color:var(--accent)}
#settingsDialog .settings-group{border-bottom:1px solid var(--line);margin:0}#settingsDialog .settings-group:last-child{border-bottom:0}
#settingsDialog .settings-group>summary{padding:18px 4px;font-size:18px}#settingsDialog .settings-group>summary>.ico{color:#111}
@media(max-width:400px){.settings-account-card{padding:16px}.account-signin-heading{gap:12px}.account-signin-heading h3{font-size:17px}.account-sync-symbol{flex-basis:42px;padding-right:10px}}

#settingsDialog .settings-group>summary>span:first-child{display:flex;align-items:center;flex:0 0 26px;color:#111}#settingsDialog .settings-group>summary>span:first-child .ico{width:24px;height:24px}
/* Shared learning surface: compact article, fixed footer and word-based seeking. */
.lesson-header{position:relative;background:#f8f8fa;margin:-4px -24px 0;padding:16px 24px}.lesson-header .reader-source-line{color:var(--accent);font-weight:750;margin:0 105px 8px 0;font-size:12px}.lesson-header .reader-title{font-size:clamp(20px,2.6vw,28px);line-height:1.25;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.lesson-header .reader-title.expanded{display:block}.headline-toggle{position:absolute;right:24px;top:9px;display:flex;align-items:center;gap:4px;min-height:44px;font-size:11px;color:var(--muted)}.headline-toggle .ico{width:14px;height:14px}
.reader-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px;padding:16px 0;border-bottom:1px solid var(--line)}.reader-steps>div{color:var(--muted);font-size:12px;font-weight:700}.reader-steps i{display:block;width:100%;height:4px;border-radius:4px;background:#e0e0e5;margin-bottom:9px}.reader-steps .filled i{background:var(--accent)}.reader-steps [aria-current]{color:var(--accent)}.read-mode{margin:0 0 18px;display:flex;border:1px solid var(--line);border-radius:12px;padding:0;overflow:hidden}.read-mode button{flex:1;min-height:44px;border:0;border-radius:11px}.read-mode button[aria-pressed=true]{background:#ffe5ec;color:var(--accent)}
.reader-bottom{background:#fff;border-top:1px solid var(--line);padding:10px 20px max(10px,env(safe-area-inset-bottom));max-height:55%;overflow:auto}.audio-transport{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;padding:6px;margin-top:10px}.audio-transport button{flex:none;width:44px;height:44px;color:var(--accent);position:relative;font-size:28px;display:grid;place-items:center}.audio-transport button small{position:absolute;font-size:10px;top:18px}.audio-transport [data-reader-voice]{border-radius:50%;background:var(--accent);color:white}.audio-transport .ico{width:22px;height:22px}.audio-transport>span{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}.audio-transport input{flex:1;min-width:30px;width:100%;height:32px;accent-color:var(--accent);padding:0;cursor:pointer}.voice-line{margin-top:6px;flex-wrap:nowrap;border:1px solid var(--line);border-radius:12px;padding:3px 6px}.voice-line .voice-select{min-width:0}.voice-line select{border:0;height:38px}.voice-line .audio-buttons{width:auto;margin-left:auto;gap:2px}.voice-line .icon-control{border:0;width:40px;min-width:40px;min-height:40px;height:40px}.audio-timing{margin:4px 0 0;min-height:0;font-size:10px}.reader-dialog{padding:0!important}.reader-scroll{padding:14px 24px 24px}.reader-dialog .modal-top{padding:12px 24px 0;flex-shrink:0}
#readerDialog .lesson-plan{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;padding:14px;border:1px solid var(--line);border-radius:16px;margin-bottom:12px;align-items:start}.lesson-plan .draft-copy{grid-column:2;grid-row:1}.lesson-plan .draft-actions{grid-column:3;grid-row:1}.draft-copy label,.draft-date{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:650}.lesson-plan .draft-date{grid-column:2/-1;grid-row:2;color:var(--muted)}.draft-date>span{display:flex;align-items:center;gap:8px;background:#fff1f4;border-radius:10px;padding:6px 10px;color:var(--accent)}#readerDialog .draft-date input[type=date]{width:100%;height:36px;grid-column:auto;grid-row:auto;margin:0;background:transparent;border:0;font:inherit;color:var(--ink)}.draft-date .ico{width:20px;flex:none}.draft-save{grid-column:2/-1;justify-self:end;padding:10px 20px;min-height:44px;border-radius:10px}.add-lesson-plan{width:100%;display:flex;justify-content:center;align-items:center;gap:10px;border:1px solid var(--accent);border-radius:12px;color:var(--accent);min-height:46px;font-weight:750}.draft-actions .icon-control{min-height:44px;height:44px}.lesson-plans{margin-top:0}
@media(max-width:650px){.reader-dialog{height:calc(100dvh - env(safe-area-inset-top));max-height:calc(100dvh - env(safe-area-inset-top));border-radius:18px 18px 0 0}.reader-scroll{padding:12px 18px 20px}.lesson-header{margin:-4px -18px 0;padding:12px 18px}.headline-toggle{right:18px;top:2px}.reader-bottom{padding:8px 12px max(8px,env(safe-area-inset-bottom))}.reader-dialog .modal-top{padding:8px 18px 0}.reader-steps{gap:8px}.reader-steps>div{font-size:11px}.audio-transport{gap:4px;padding:4px}.audio-transport button{width:40px;height:44px}.audio-transport>span{font-size:10px}.voice-line #readerSpeed{width:65px}.reader-copy{font-size:16px;line-height:1.7}}
.audio-transport button[data-reader-skip],.audio-transport [data-reader-voice]{width:44px;min-width:44px;height:44px;flex:none;padding:6px;display:grid;place-items:center}.audio-transport .skip-icon{display:block;width:32px;height:32px;color:var(--accent)}.voice-select select{text-overflow:ellipsis}
/* Explore pills and the For You shared inbox use the same compact controls. */
#searchFilters button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 16px;border:1px solid var(--line);border-radius:24px;background:#fff;color:var(--ink);font-size:13px;font-weight:650}#searchFilters button.active{background:#fff;color:var(--accent);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.explore-toolbar{align-items:center}.explore-toolbar #exploreFilterToggle{border-radius:16px}
.feed-tabs{gap:8px;overflow-x:auto;padding:0 0 14px;margin:0;border:0}.feed-tabs button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;min-height:44px;padding:10px 17px;border:1px solid var(--line);border-radius:24px;background:white;font-size:13px;color:var(--ink)}.feed-tabs button.active{background:var(--accent);border-color:var(--accent);color:white}.feed-tabs button:after{display:none}.shares-count{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:50%;padding:0 5px;background:var(--accent);color:#fff;font-size:11px;line-height:1;font-weight:750}.active .shares-count{background:#fff;color:var(--accent)}.showing-shares #topicStrip{display:none}.showing-shares #feedTrack{height:auto;min-height:0;max-height:none;overflow:visible;background:transparent;border:0;border-radius:0;box-shadow:none;display:block}.showing-shares .feed-column{width:100%;min-width:0;max-width:none;margin:0}.shares-list-heading h2{font-size:18px;margin:18px 0}.shared-items{display:grid;gap:14px}.shared-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px 14px;padding:18px;border:1px solid var(--line);border-radius:20px;background:#fff}.shared-source-icon{display:grid;place-items:center;width:40px;height:40px;color:var(--ink);border-radius:12px;background:#f6f6f8}.shared-source-icon .ico{width:25px;height:25px}.shared-item-copy{min-width:0}.shared-item-meta{font-size:12px;line-height:1.4;color:var(--muted);margin:0 0 6px}.shared-item h2{font-size:17px;line-height:1.4;margin:0;overflow-wrap:anywhere}.shared-thumbnail{width:76px;height:76px;object-fit:cover;border-radius:12px;grid-column:3;grid-row:1}.shared-item-actions{grid-column:2/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.shared-item-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:0;padding:8px;border:1px solid var(--line);border-radius:10px;font-size:13px;font-weight:700}.shared-item-actions button:first-child{background:#fff0f4;color:var(--accent);border-color:#fff0f4}.shared-retry{grid-column:2/-1;display:flex;flex-wrap:wrap;gap:12px}.shared-retry button{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--accent);font-size:12px}.share-processing-status{font-size:12px;color:var(--muted);margin:6px 0 0;line-height:1.5}
@media(max-width:650px){.feed-tabs{margin:0 -2px;padding:0 2px 12px;gap:6px}.feed-tabs button{padding:9px 12px;font-size:12px}.shared-item{grid-template-columns:32px minmax(0,1fr) auto;gap:10px;padding:14px;border-radius:18px}.shared-source-icon{width:32px;height:36px}.shared-thumbnail{width:54px;height:54px}.shared-item h2{font-size:15px}.shared-item-actions{grid-column:1/-1}.shared-retry{grid-column:1/-1}.shared-item-actions button{font-size:12px;gap:5px}.shared-item-actions .ico{width:18px;height:18px}.explore-toolbar #searchFilters{gap:6px;min-width:0;flex-wrap:nowrap;overflow-x:auto}.explore-toolbar #searchFilters button{padding:9px 13px;font-size:12px;flex:none}}

#feedView .feed-tabs{display:flex;overflow-x:auto;grid-template-columns:none}#feedView .feed-tabs button{flex:none}

.support-contact{margin:16px 0 20px}.support-contact p{margin:0 0 10px}.support-email{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid var(--accent);border-radius:12px;color:var(--accent);background:#fff;font-size:14px;font-weight:700;text-decoration:none}.support-email:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* Optional engagement invitations never displace the initial feed. */
.engagement-banner[hidden]{display:none}.engagement-banner{margin:0 0 18px;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:#fff;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.engagement-banner>strong{font-size:17px;flex-basis:100%;color:var(--ink)}.engagement-banner p{margin:0;flex-basis:100%;font-size:13px;line-height:1.5;color:var(--muted)}.engagement-banner button,.engagement-banner a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border-radius:10px;font-size:13px;text-decoration:none}.engagement-banner button:not(.accent-button){border:1px solid var(--line);color:var(--ink)}.signup-invite{max-width:440px;padding:24px}.signup-invite h2{font-size:25px;line-height:1.2;margin:0 0 12px}.signup-invite p{font-size:14px;line-height:1.6;color:var(--muted)}.invite-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}.invite-actions button{min-height:44px;border-radius:10px;padding:10px;font-weight:650;font-size:13px}.invite-actions .accent-button{grid-column:1/-1}.invite-actions .invite-never{grid-column:1/-1;color:var(--muted);font-weight:400}.signup-invite .invite-note{font-size:11px;margin:16px 0 0}@media(max-width:650px){.signup-invite{width:calc(100% - 24px);margin:auto;border-radius:20px;padding:22px;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px)}.engagement-banner{padding:14px}.engagement-banner button,.engagement-banner a{flex:1;min-width:120px}}
/* Device-backed narration picker; the panel stays inside the reader viewport. */
.reader-bottom{position:relative}.voice-picker summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;list-style:none;padding:4px 6px;font-size:13px}.voice-picker summary::-webkit-details-marker{display:none}.voice-picker summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.voice-picker summary .ico{width:16px;height:16px;flex:none}.voice-picker-panel{position:fixed;z-index:5;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(340px,calc(100vw - 32px));max-height:60dvh;overflow:auto;background:#fff;color:#111;border:1px solid #ddd;border-radius:12px;box-shadow:0 6px 24px #0002;padding:8px;box-sizing:border-box}.voice-choices{max-height:42dvh;overflow:auto;overscroll-behavior:contain}.voice-choice{display:flex;align-items:center;border-bottom:1px solid #eee}.voice-choice button{min-height:44px;padding:6px;background:white;color:#111;text-align:left;font-size:13px;border:0}.voice-choice-name{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.voice-selection{width:16px;flex:none;color:#111}.voice-copy{min-width:0;overflow-wrap:anywhere}.voice-copy>span,.voice-copy small{display:block}.voice-copy small{color:#111;font-size:11px;margin-top:2px}.voice-choice-name[aria-pressed=true]{box-shadow:inset 2px 0 var(--accent)}.voice-choice [data-voice-preview]{width:44px;flex:none;display:grid;place-items:center}.voice-choice [data-voice-preview] .ico{width:16px;height:16px}.voice-choice [data-voice-preview][aria-pressed=true]{background:#f2f2f2;border-radius:6px}.voice-note{font-size:12px;color:#666;margin:8px}.voice-close{width:100%;min-height:44px;border:0;background:white;color:#111;font-size:12px}.voice-picker :focus-visible{outline:2px solid #111;outline-offset:-2px}
/* Preserve header space and safe-area layout while revealing it on upward scroll. */
#readerDialog>.modal-top{transition:transform .18s ease,opacity .18s ease;will-change:transform}
#readerDialog>.modal-top.reader-header-hidden{transform:translateY(-110%);opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){#readerDialog>.modal-top{transition:none}}
/* Native thumbs travel half a thumb width inside each end of the input. Match
   the visible track to those centers, with no inherited input padding/border. */
#audioSeek{--thumb-size:16px;appearance:none;-webkit-appearance:none;box-sizing:border-box;border:0;border-radius:0;padding:0;margin:0;height:32px;background:linear-gradient(to right,var(--accent) 0 var(--position,0%),#ddd var(--position,0%) 100%) center / calc(100% - var(--thumb-size)) 3px no-repeat}
#audioSeek::-webkit-slider-runnable-track{height:4px;border:0;background:transparent}
#audioSeek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:var(--thumb-size);height:var(--thumb-size);margin-top:-6px;border:0;border-radius:50%;background:var(--accent)}
#audioSeek::-moz-range-track{height:4px;border:0;background:transparent}
#audioSeek::-moz-range-progress{background:transparent}
#audioSeek::-moz-range-thumb{box-sizing:border-box;width:var(--thumb-size);height:var(--thumb-size);border:0;border-radius:50%;background:var(--accent)}

.shared-post-preview{font-size:14px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.topbar{transition:transform .22s ease,opacity .22s ease}

.voice-picker .voice-note,.voice-picker .voice-copy small{color:#111}.voice-choice-name[aria-pressed=true]{box-shadow:inset 2px 0 #111}

.share-import-notice{position:fixed;z-index:20;bottom:calc(90px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(440px,calc(100% - 28px));padding:14px;background:var(--surface,#fff);color:var(--ink,#222);border:1px solid var(--line,#ddd);border-radius:14px;box-shadow:0 4px 20px #0002;font-size:13px}
.share-import-notice[hidden]{display:none}.share-import-notice p{margin:0 0 8px}.share-import-notice div{display:flex;flex-wrap:wrap;gap:8px}.share-import-notice button{min-height:44px;padding:8px;color:var(--accent);font-weight:700}

#feedView:not(.showing-shares) .pending-shares-action{display:none}
.pending-shares-action{margin-bottom:12px}
/* Approved Library, Shares and Add a Post references. */
:root{--accent:#ef0647}
[hidden]{display:none!important}
.page-intro{margin:4px 0 24px}.page-intro h1{font-size:34px;letter-spacing:-1.2px;line-height:1.15;margin:0 0 8px;color:#101014}.page-intro p{color:var(--muted);font-size:16px;line-height:1.5;margin:0}
.feed-tabs{display:flex;grid-template-columns:none;overflow-x:auto;scrollbar-width:none;max-width:100%;gap:8px}.feed-tabs button{white-space:nowrap;flex:0 0 auto}
.library-item{position:relative;border:1px solid var(--line);border-radius:22px;padding:22px 64px 22px 22px;box-shadow:none}.library-item h3{font-size:20px;line-height:1.3;margin:10px 0 16px;letter-spacing:-.35px}.library-item>p{display:none}.library-bookmark{position:absolute;right:14px;top:15px;width:44px;height:44px;display:grid;place-items:center;color:var(--accent)}.library-bookmark .ico,[data-do="save"][aria-pressed="true"] .ico,.save-control.is-active .ico{fill:var(--accent);color:var(--accent)}
.library-footer{flex-wrap:wrap;gap:12px}.library-footer>span{background:#f6f6f8;padding:6px 10px;border-radius:20px;font-size:12px}.library-footer [data-read-id]{color:var(--accent);min-height:44px}.library-list{gap:12px}.library-filter{gap:8px;flex-wrap:wrap}.library-filter button{min-height:44px;border-radius:22px}.library-toolbar select{border-radius:24px}.library-heading{margin-bottom:12px}
.shared-post-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.shared-item-actions [aria-pressed="true"]{color:var(--accent)}.shared-item-actions [aria-pressed="true"] .ico{fill:var(--accent)}
.add-dialog{width:min(560px,calc(100% - 32px));padding:28px;border-radius:28px;max-height:calc(100dvh - 28px);overflow:auto}.add-dialog .modal-top{margin-bottom:28px}.add-dialog>.eyebrow{color:var(--accent)}.add-dialog h2{font-size:36px;letter-spacing:-1px;margin:12px 0 8px}.add-intro{color:var(--muted);line-height:1.5;margin:0 0 22px}.add-tabs{display:flex;border:1px solid var(--line);border-radius:20px;padding:4px;margin-bottom:24px;gap:4px}.add-tabs button{flex:1;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:16px}.add-tabs button.active{color:var(--accent);background:#fde8ef}.add-fields label{font-weight:650;display:grid;gap:10px;margin-bottom:20px}.add-fields input,.add-fields textarea{width:100%;padding:16px;border:1px solid var(--line);border-radius:16px;font-weight:400;font-size:16px}.add-actions{display:grid;gap:12px;margin-top:28px}.add-actions button{min-height:56px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:16px;font-size:18px;font-weight:700}.secondary-button{border:1px solid var(--accent);color:var(--accent);background:#fff}.add-actions .accent-button{background:var(--accent);color:#fff}#minimizeReader{border:0;box-shadow:none;background:transparent;min-width:44px;min-height:44px}
@media(max-width:650px){.page-intro{margin:8px 0 22px}.page-intro h1{font-size:30px}.page-intro p{font-size:14px}.feed-tabs button{font-size:13px;padding:10px 14px}.library-item{padding:18px 52px 18px 18px;border-radius:20px}.library-item h3{font-size:18px}.library-footer{align-items:flex-start;flex-direction:column}.library-toolbar{flex-wrap:wrap}.library-toolbar .library-search{flex:1;min-width:160px}.add-dialog{width:100%;max-width:100%;max-height:calc(100dvh - env(safe-area-inset-top) - 12px);margin:auto 0 0;border-radius:26px 26px 0 0;padding:24px 22px max(24px,env(safe-area-inset-bottom));}.add-dialog::before{content:'';display:block;width:46px;height:5px;border-radius:4px;background:#d3d3d7;margin:-12px auto 22px}.add-dialog h2{font-size:34px}.add-dialog .modal-top{margin-bottom:24px}.add-actions{padding-bottom:8px}.mobile-nav button{min-height:52px}.shared-item h2{font-size:16px;line-height:1.35}.shared-items{gap:12px}}
[data-do="save"].is-active .ico{fill:var(--accent);color:var(--accent)}.story-utility[data-do="save"]{width:auto;gap:6px;padding:8px;font-size:12px}.library-footer>span:has(.ico){color:#168326;background:#effbeb}
.library-progress{height:5px;width:100%;border:0;border-radius:4px;accent-color:var(--accent);margin:0 0 14px}.library-footer>span.status-progress{color:var(--accent);background:#fff0f4}.library-footer>span.status-completed{color:#168326;background:#effbeb}.library-footer .collection-actions{margin-left:0}.library-footer .collection-actions>[data-read-id]{border:0;background:transparent;padding-left:0}.library-item{max-width:900px}.library-list{display:grid;grid-template-columns:1fr}

/* Final QA: retain the approved selected state over legacy navigation rules. */
#feedView .feed-tabs button.active{background:var(--accent);border-color:var(--accent);color:#fff}
.library-footer .collection-actions>[data-read-id]{color:var(--accent)}
/* Compact content controls keep their touch targets while tabs scroll. */
#feedView,#libraryView{padding-top:0}.post-controls{display:flex;gap:8px;flex:none;margin-left:auto;align-items:center}.post-controls .icon-control{width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;display:inline-flex;justify-content:center;align-items:center;border:1px solid var(--line);border-radius:50%;background:white}.library-filter{align-items:center;gap:8px}.library-filter>button{flex:none;min-height:44px}.library-toolbar{margin:8px 0}.post-filter-dialog{width:min(520px,calc(100% - 24px))}.post-filter-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.post-filter-dialog label{display:flex;flex-direction:column;gap:6px;font-size:13px}.post-filter-dialog select,.post-filter-dialog input{width:100%;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:8px;background:white}.post-filter-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.post-filter-actions button{min-height:44px;padding:10px 16px}.shared-item-actions [aria-pressed=true]{color:var(--accent)}.shared-item-actions [aria-pressed=true] .ico{fill:currentColor}.nav-add{display:none}.shares-list-heading h2{margin:4px 0 14px}
@media(max-width:650px){#libraryFilters,#learningTabs{flex-wrap:nowrap;overflow-x:auto}.post-filter-dialog{width:100%;max-width:100%;margin:auto 0 0}.post-filter-fields{gap:12px}.feed-tabs{max-width:100%}}
#learningFilterDialog .archive-toolbar,#learningFilterDialog .archive-refinements{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}#learningFilterDialog .archive-toolbar .library-search{grid-column:1/-1}#learningFilterDialog .archive-date-range{display:flex;gap:12px}#learningFilterDialog .post-filter-actions{position:sticky;bottom:0;background:white;padding-top:12px}

/* One toolbar system: the action lane never participates in tab scrolling. */
.main-content,.page,.right-area{min-width:0}
.main-content{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
.page>.main-toolbar{position:sticky;top:var(--topbar-height,100px);z-index:6;display:flex;align-items:center;gap:8px;min-width:0;width:100%;margin:0 0 16px;padding:8px 0;background:var(--bg,#fafafa);transform:none;opacity:1;pointer-events:auto;transition:top .22s ease}
:is(#feedView,#discoverView,#journeyView,#plansView,#libraryView) .main-tabs,#feedView .main-tabs{position:static;display:flex;flex:1 1 0;min-width:0;max-width:100%;flex-wrap:nowrap;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;margin:0;padding:2px;scroll-padding:2px;isolation:auto;border:0}
.main-tabs::-webkit-scrollbar{display:none}
:is(#feedView,#discoverView,#journeyView,#plansView,#libraryView) .main-tabs>button,#feedView .main-tabs>button,.notification-sheet .notification-filters>button{flex:0 0 auto;white-space:nowrap;min-width:44px;min-height:44px;padding:9px 15px;border:1px solid var(--line);border-radius:24px;background:#fff;color:var(--ink);font-size:13px;font-weight:650;line-height:1.3;box-shadow:none}
:is(#feedView,#discoverView,#journeyView,#plansView,#libraryView) .main-tabs>button.active,#feedView .main-tabs>button.active,.notification-sheet .notification-filters>button[aria-pressed=true]{background:var(--accent);color:#fff;border-color:var(--accent)}
.main-tabs button::after{display:none}
.main-toolbar>.post-controls{position:static;flex:none;margin:0;padding:0;background:transparent}
:is(#feedView,#discoverView,#journeyView,#plansView,#libraryView) .main-toolbar .icon-control,.plans-toolbar #addPlan{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;min-width:44px;height:44px;padding:10px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--accent)}
.main-toolbar button:focus-visible,.main-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.top-navigation-hidden .page>.main-toolbar{top:env(safe-area-inset-top,0px);transform:none;opacity:1;pointer-events:auto;padding-top:calc(8px + env(safe-area-inset-top));}
.top-navigation-hidden .topbar{transform:translateY(-100%);opacity:0;pointer-events:none}
#planList .empty-state,.library-list .empty-state{min-height:0;padding:28px 18px;border:1px solid var(--line);border-radius:18px}
.library-item{padding:18px;min-width:0}.library-item h3,.library-item p{overflow-wrap:anywhere}.library-original{font-size:12px;color:var(--accent)}
.library-footer{display:flex;flex-wrap:wrap;flex-direction:row;gap:12px;margin-top:14px}.library-footer>span{flex-basis:100%;width:fit-content;flex-grow:0;background:none;padding:0}
.library-footer .collection-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;width:100%;margin:0}.library-footer .collection-actions>button{position:static;display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;height:44px;min-width:44px;padding:9px;border:1px solid var(--line);border-radius:12px;font-size:13px;margin:0}.library-footer .collection-actions>button:first-child{flex:1;color:var(--accent);background:#fff0f4;gap:6px}.library-footer .library-bookmark{color:var(--accent);background:#fff}.library-bookmark .ico{fill:currentColor}
#settingsSyncNow{display:none!important}.settings-signout{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;margin-top:24px;padding:10px;border:1px solid var(--accent);border-radius:14px;color:var(--accent);font-weight:700}.settings-signout[hidden]{display:none}.account-details,.account-identity{min-width:0}#cloudEmail{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
@media(max-width:650px){:is(#feedView,#discoverView,#journeyView,#plansView,#libraryView) .main-tabs>button,#feedView .main-tabs>button,.notification-sheet .notification-filters>button{font-size:13px;padding:9px 13px}.topbar .search-holder{display:flex}.page>.main-toolbar{gap:6px}.main-toolbar>.post-controls{gap:6px}.library-item{padding:16px}.library-footer{flex-direction:row}.topbar{min-height:calc(60px + env(safe-area-inset-top))}}
@media(prefers-reduced-motion:reduce){.page>.main-toolbar,.topbar{transition:none}}
.settings-account-card #profileEmail{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
#exploreFilterPanel label{display:flex;flex-direction:column;gap:8px;margin:16px 0}#exploreFilterPanel select{min-height:44px;border:1px solid var(--line);border-radius:10px;padding:8px;background:white}
/* Keep layout space stable while the shared filter lane slides out of view. */
.page>.main-toolbar{transition:transform .22s ease,opacity .22s ease;will-change:transform}
.top-navigation-hidden .topbar{transform:none;opacity:1;pointer-events:auto}
.top-navigation-hidden .page>.main-toolbar{top:var(--topbar-height,100px);padding-top:8px;transform:translateY(-110%);opacity:0;pointer-events:none}
.library-item h3{margin:6px 0 8px;font-size:18px}
.library-item>.library-excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.5;margin:0 0 6px;color:var(--muted)}
.library-item .lib-label{font-size:11px}.library-footer{margin-top:8px;gap:6px}.library-add-text{font-size:12px;color:var(--accent);min-height:32px}.library-original{display:inline-block;margin-top:4px}
html{overscroll-behavior-y:contain}
.page-refresh{position:fixed;z-index:20;top:calc(var(--topbar-height,100px) + env(safe-area-inset-top) + 8px);left:50%;transform:translateX(-50%);padding:10px 16px;border:1px solid var(--line);border-radius:24px;background:white;color:var(--accent);box-shadow:0 3px 14px #0001;font-size:13px;pointer-events:none}
.page-refresh[hidden]{display:none}.page-refresh.refreshing::before{content:'↻';display:inline-block;margin-right:6px;animation:refresh-spin 1s linear infinite}@keyframes refresh-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.page>.main-toolbar{transition:none}.page-refresh.refreshing::before{animation:none}}
.public-post-page{max-width:720px;margin:0 auto;padding:calc(28px + env(safe-area-inset-top)) 22px calc(32px + env(safe-area-inset-bottom));line-height:1.6}.public-post-brand{font-size:28px;font-weight:750;color:var(--accent)}.public-post-page article{margin-top:28px}.public-post-page h1{line-height:1.2;overflow-wrap:anywhere}.public-post-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:24px 0}.public-post-actions>a,.public-post-actions>button{min-height:44px;display:inline-flex;align-items:center}.public-post-page a{color:var(--accent)}.public-post-page .accent-button{color:white;padding:10px 18px}

/* White navigation surface; pills retain their individual boundaries. */
.page>.main-toolbar{background:#fff}
:is(#feedView,#discoverView,#journeyView,#plansView,#libraryView) .main-tabs{background:transparent;border-radius:0}
.library-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5}
.notification-entry{position:relative;min-width:44px;width:44px;height:44px;display:grid;place-items:center;flex:none}
.notification-count,.notification-panel-count{display:inline-block;min-width:17px;width:max-content;flex-shrink:0;height:17px;padding:0 4px;border-radius:10px;background:var(--accent);color:#fff;font-size:10px;font-weight:750;letter-spacing:normal;line-height:17px;text-align:center;white-space:nowrap;pointer-events:none}.notification-count{position:absolute;right:-3px;top:0}.notification-panel-count{margin-left:8px;vertical-align:middle}.notification-count[hidden],.notification-panel-count[hidden]{display:none}
.notification-filters{display:flex;gap:6px;overflow-x:auto;margin:16px 0}
.notification-filters button{white-space:nowrap;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:24px}
.notification-filters button[aria-pressed=true]{background:var(--accent);color:white}
.notification-row{padding:14px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px}
.notification-row.unread{border-left:3px solid var(--accent);padding-left:10px}
.notification-row p{margin:0 0 6px;line-height:1.45}.notification-row small{color:var(--muted)}
.notification-row .notification-actions{display:flex;flex-wrap:wrap;gap:12px}.notification-actions button{min-height:44px;font-size:12px;color:var(--accent)}
.engagement-controls{display:grid;gap:12px;margin:16px 0}.engagement-controls label{display:flex;justify-content:space-between;align-items:center;gap:12px}.engagement-controls input,.engagement-controls select{min-height:44px;max-width:160px}
.push-controls{margin:0 0 8px;padding:0 0 8px;border-bottom:1px solid var(--line)}
.notification-switch{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:14px;min-height:54px;margin:0!important;font-size:14px}
.notification-switch>span{flex:1}.notification-switch small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:2px}
.notification-switch input[type=checkbox]{appearance:none;position:relative;flex:none;width:42px;height:26px;min-height:26px;padding:0;border:0;border-radius:20px;background:#ccc;cursor:pointer}
.notification-switch input:after{content:'';position:absolute;width:20px;height:20px;top:3px;left:3px;border-radius:50%;background:white;transition:transform .15s}
.notification-switch input:checked{background:var(--accent)}.notification-switch input:checked:after{transform:translateX(16px)}
.notification-switch input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.notification-switch input:disabled{opacity:.55;cursor:wait}
.push-permission-offer{padding:10px 0}.push-permission-offer[hidden]{display:none}.push-permission-offer p{margin:0 0 8px}.push-permission-offer button{min-height:44px;margin-right:12px}
.push-controls [data-push-status]:empty,#deviceNotificationStatus:empty,#notificationBadgeStatus:empty,#notificationStatus:empty{display:none}
.push-consents label{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;margin:10px 0;font-size:13px;line-height:1.5}
.push-consents input,.engagement-controls input[type=checkbox]{flex:none;width:22px;height:22px;accent-color:var(--accent)}
.push-controls p{font-size:13px;line-height:1.5;color:var(--muted)}
@media(max-width:430px){.top-actions{gap:4px}.topbar .live-status{display:none}}

/* Notification inbox: compact rows, with preferences disclosed on demand. */
.notification-sheet{width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow-y:auto;padding:20px;text-align:left}
.notification-sheet .modal-top{gap:12px;margin-bottom:8px}.notification-sheet h2{font-size:21px;margin:0}
.notification-sheet .notification-filters{margin:8px 0;gap:8px;padding:2px}
.notification-sheet .notification-list>p{font-size:14px;line-height:1.5;color:var(--muted);margin:16px 0}
.notification-sheet .notification-row{padding-top:10px;padding-bottom:10px}.notification-sheet .notification-row p{font-size:14px}.notification-sheet .notification-row small{font-size:11px}
.notification-sheet .notification-actions{gap:4px 12px}.notification-sheet .notification-actions button{padding:0 2px}
.notification-settings{margin-top:12px;border-top:1px solid var(--line);padding-top:8px}.notification-settings summary{cursor:pointer;min-height:44px;align-content:center;font-size:13px;color:var(--accent)}
.notification-sheet .engagement-controls{gap:0;margin:4px 0 8px}.notification-sheet .engagement-controls label,.notification-sheet .push-consents label{display:flex;flex-direction:row;align-items:center;justify-content:space-between;text-align:left;gap:12px;min-height:44px;margin:0;font-size:14px}
.notification-sheet .engagement-controls input[type=checkbox],.notification-sheet .push-consents input{appearance:none;position:relative;display:inline-block;flex:none;width:40px;height:24px;min-height:24px;padding:0;margin:0;border:1px solid var(--line);border-radius:20px;background:#d6d6da;cursor:pointer}
.notification-sheet .engagement-controls input[type=time]{width:112px;min-height:36px;padding:4px 6px;font-size:14px}
.notification-sheet .notification-error:empty{display:none}.notification-sheet .push-controls{margin:0;padding:0}.notification-sheet .push-controls button{min-height:44px;font-size:13px}
.notification-sheet :focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:520px){.notification-sheet{padding:16px;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px)}}

.notification-sheet input[type=checkbox]::after{content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:white;box-shadow:0 1px 2px #0002;transition:transform .15s}
.notification-sheet input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}
.notification-sheet input[type=checkbox]:checked::after{transform:translateX(16px)}
.notification-sheet .engagement-controls label>span{min-width:0;overflow-wrap:anywhere}
.notification-sheet .quiet-hours-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.notification-sheet .quiet-hours-controls label{flex-direction:column;align-items:flex-start;gap:4px;font-size:12px}
.notification-sheet .notification-quiet{border-top:1px solid var(--line);margin-top:4px}
@media(prefers-reduced-motion:reduce){.notification-sheet input[type=checkbox]::after{transition:none}}
/* The inbox uses the same tab pills as the main views, inside a safe-area sheet. */
dialog.notification-sheet{position:fixed;inset:0;margin:auto;width:min(480px,calc(100vw - 32px));height:fit-content;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px);overscroll-behavior:contain;box-sizing:border-box}
.notification-sheet .notification-settings-action{display:block;margin:8px 0 0 auto;min-height:44px;padding:8px 12px}
.notification-sheet .notification-list{min-height:56px}.notification-sheet .modal-top{position:sticky;top:0;background:var(--paper,#fff);z-index:1}
dialog.notification-sheet{inset:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));border-radius:22px}

#addCustomInterest{display:inline-flex;align-items:center;gap:6px;min-height:44px;max-width:100%;padding:8px 12px;border:1px solid #f5b8c7;border-radius:24px;background:#fff1f4;color:#be185d;font:inherit;font-size:13px;text-align:left}#addCustomInterest.hidden{display:none}#addCustomInterest .ico{width:16px;height:16px}#addCustomInterest span{overflow-wrap:anywhere}.interest-option span,.interest-chip span{overflow-wrap:anywhere;min-width:0}.interest-option,.interest-chip{max-width:100%}.selected-interests .interest-chip{animation:interest-added .18s ease-out}.captured-source{white-space:pre-wrap;overflow-wrap:anywhere;margin:16px 0;padding:12px 16px;border-left:3px solid #f5b8c7;color:var(--muted)}@keyframes interest-added{from{opacity:.6;transform:translateY(2px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.selected-interests .interest-chip{animation:none}}

/* Saved social posts keep their identity and source actions on narrow screens. */
.shared-source-icon{font-size:13px;font-weight:800;letter-spacing:-.5px}
.shared-item-actions{grid-template-columns:repeat(auto-fit,minmax(115px,1fr))}
.shared-item-actions a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:10px;font-size:13px;font-weight:700;text-decoration:none;color:var(--ink)}
.shared-original-url{display:block;font-size:12px;color:var(--accent);overflow-wrap:anywhere;margin-top:8px}
.shared-author{font-size:12px;color:var(--muted);margin:4px 0}
.shared-thumbnail{background:#f6f6f8}
#addDialog>label{display:flex;flex-direction:column;gap:8px;margin:14px 0;font-size:13px}
#addDialog>label input{max-width:100%;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:10px}
#addAttachmentStatus{font-size:13px;color:var(--muted)}

.screenshot-recovery{width:min(100% - 24px,480px);max-height:88dvh;overflow:auto;padding:22px;border-radius:22px}.screenshot-recovery h2{font-size:1.25rem;margin:0}.recovery-actions{display:flex;gap:10px;margin:16px 0}.recovery-actions>*{flex:1;text-align:center;display:flex;align-items:center;justify-content:center;min-height:46px}.recovery-hint{font-size:.82rem;line-height:1.5;color:var(--muted)}.recovery-previews{display:flex;gap:10px;overflow:auto;margin:16px 0}.recovery-previews>div{position:relative;flex:0 0 100px}.recovery-previews img{width:100px;height:145px;object-fit:contain;background:#eee;border-radius:10px}.recovery-previews button{position:absolute;right:0;top:0;min-width:32px;min-height:32px;background:white;border-radius:50%}.screenshot-recovery textarea{display:block;width:100%;box-sizing:border-box;margin:10px 0}.screenshot-recovery summary{cursor:pointer;padding:10px 0}.recovery-visual{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:.85rem}.screenshot-recovery [role=status]{font-size:.85rem}.screenshot-recovery [role=status]:empty,.screenshot-recovery .attachment-status:empty,.screenshot-recovery .recovery-previews:empty{display:none}
.screenshot-picker{position:relative;display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px;margin-top:16px;border-radius:12px;overflow:hidden;cursor:pointer}.screenshot-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}.screenshot-picker:focus-within,.screenshot-picker:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.screenshot-picker[aria-disabled=true]{opacity:.6;cursor:wait}.recovery-previews>div{display:flex;flex-wrap:wrap;gap:4px;flex-basis:110px}.recovery-previews img{width:110px;display:block}.recovery-previews button{position:static;min-height:44px;min-width:44px;border:1px solid var(--line);border-radius:8px;font-size:12px;flex:1}.attachment-status{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.attachment-status:empty{display:none}

.legal-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin:22px 0}.legal-links a{color:var(--accent-deep,#be123c);font-size:14px;line-height:1.6;padding:6px 0;text-underline-offset:3px}

.ai-privacy-dialog .confirm-actions,.content-report-dialog .confirm-actions{display:flex;flex-wrap:wrap;gap:10px}.ai-privacy-dialog .confirm-actions button,.content-report-dialog .confirm-actions button{min-height:44px;flex:1 1 auto}.content-report-dialog input[type="checkbox"]{display:inline-block;width:auto;margin-right:8px}
/* Existing support inbox: review controls appear only for verified operators. */
.support-review-item{display:grid;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line);min-width:0}.support-review-item p{white-space:pre-wrap;overflow-wrap:anywhere}.support-review-item select,.support-review-item button{min-height:44px}.support-review-item textarea{width:100%;min-height:96px;box-sizing:border-box}
.collection-actions:has([data-delete-learning]),.library-footer .collection-actions{flex-wrap:wrap;min-width:0}.collection-actions [data-delete-learning],.collection-actions [data-delete-shared-post],.collection-actions [data-remove-library]{display:inline-flex;align-items:center;gap:6px;min-height:44px;width:auto;padding:8px;font-size:12px}.shared-item-actions [data-delete-shared-post]{color:var(--accent-deep,#be123c)}

/* Account deletion confirmation only; keep retention detail on its linked page. */
.account-deletion-dialog{max-width:480px;padding:24px;overflow-y:auto}
.account-deletion-dialog h2{font-size:24px;margin:0 0 12px}
.account-deletion-dialog p{font-size:16px;line-height:1.5;margin:0 0 16px}
.account-deletion-dialog .deletion-account{font-size:14px;line-height:1.5;margin-bottom:16px;overflow-wrap:anywhere;color:var(--muted)}
.account-deletion-dialog .deletion-confirmation{display:flex;flex-direction:row;align-items:flex-start;gap:12px;min-height:48px;padding:12px;border:1px solid var(--line);border-radius:12px;font-size:16px;line-height:1.5;cursor:pointer}
.account-deletion-dialog .deletion-confirmation input{width:20px;height:20px;flex:none;margin:2px 0 0;padding:0;accent-color:var(--accent)}
.account-deletion-dialog input[type=password]{font-size:16px}
.account-deletion-dialog [data-deletion-error]{margin-top:16px;line-height:1.5;color:#b42332}
.account-deletion-dialog .confirm-actions{gap:12px;flex-wrap:wrap;margin-top:20px}
.account-deletion-dialog .confirm-actions button{min-height:44px;flex:1 1 auto;padding:12px 16px;border-radius:10px;white-space:nowrap}
.account-deletion-dialog [hidden]{display:none!important}
@media(max-width:600px){.account-deletion-dialog{padding:20px;padding-bottom:calc(20px + env(safe-area-inset-bottom))}}
/* Today on Refine: the shared dark learning card, within the light Learn page. */
#todayLesson[hidden],.daily-learn-badge[hidden]{display:none!important}
.today-card{background:#161616;color:#f7f7f7;border:1px solid #e50046;border-radius:17px;padding:15px 15px 10px;margin:0 0 18px;box-shadow:inset 0 0 0 1px #e5004612;text-align:left}
.today-label{color:#f02a60;font-size:13px;font-weight:750;letter-spacing:.045em;line-height:1.3;margin:0 0 10px}
.today-content{display:flex;align-items:flex-start;gap:13px;min-width:0}
.today-icon{background:#36111e;color:#f32660;display:grid;place-items:center;flex:0 0 41px;width:41px;height:39px;border-radius:9px}
.today-icon .ico{width:24px;height:24px;stroke-width:1.65}
.today-copy{min-width:0;flex:1}
.today-copy h2{color:#fafafa;font-size:19px;font-weight:750;line-height:1.2;letter-spacing:-.015em;margin:0 0 7px;overflow-wrap:anywhere}
.today-copy p{color:#d0d0d0;font-size:14px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.today-footer{border-top:1px solid #535353;margin-top:15px;padding-top:8px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.today-meta{color:#d0d0d0;font-size:12px;line-height:1.4;white-space:nowrap}
.today-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-shrink:0}
.today-card button{font-family:inherit;font-size:13px;line-height:1.2;min-height:34px;border:0;cursor:pointer;white-space:nowrap}
.today-card .today-dismiss{background:transparent;color:#d0d0d0;padding:8px 4px;border-radius:20px}
.today-card .today-read{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 15px;background:#ed0045;color:white;border-radius:22px;font-weight:700}
.today-read .ico{width:18px;height:18px}
.today-card button:focus-visible{outline:2px solid white;outline-offset:3px}
.today-card button:hover{filter:brightness(1.13)}
.today-error{font-size:12px;color:#ffb7cd;margin:9px 0 2px}
.daily-learning-objective{font-size:14px;line-height:1.5;color:#555}
.today-invitation{padding:18px;border:1px solid #e5b5c2;border-radius:20px;background:#fff8fa;margin-bottom:18px}
.today-invitation h2{font-size:20px;margin:8px 0}
.today-invitation>p:not(.today-label){color:#555;line-height:1.5;margin:8px 0 14px}
.ai-consent-recipients{font-size:14px;line-height:1.5}
.ai-consent-links{display:flex;flex-wrap:wrap;gap:8px 16px;margin:14px 0;font-size:14px}
.ai-privacy-dialog .confirm-actions{flex-wrap:wrap}
.mobile-nav button[data-view="journey"]{position:relative}
.mobile-nav .daily-learn-badge{position:absolute;top:2px;left:calc(50% + 6px);display:grid;place-items:center;min-width:17px;height:17px;padding:0 3px;border-radius:12px;background:#ed0045;color:#fff;font-size:11px;font-weight:700;line-height:1;border:1.5px solid #fff;z-index:1}
@media(min-width:600px){.today-card{padding:20px 22px 14px}.today-label{font-size:13px;margin-bottom:13px}.today-content{gap:15px}.today-copy h2{font-size:24px}.today-copy p{font-size:15px}.today-icon{width:45px;height:43px;flex-basis:45px}.today-footer{margin-top:20px;padding-top:10px}.today-meta,.today-card button{font-size:14px}.today-card button{min-height:38px}.today-actions{gap:12px}}
@media(max-width:359px){.today-card{padding:12px 12px 10px}.today-content{gap:10px}.today-copy h2{font-size:18px}.today-icon{width:35px;height:35px;flex-basis:35px}.today-meta{font-size:11px}.today-actions{gap:3px}.today-card button{font-size:12px}.today-card .today-read{padding:8px 10px}.today-footer{flex-wrap:wrap}.today-actions{margin-left:auto}}
