
:root {
  --bg:#f8f9fa; --paper:#ffffff; --ink:#202124; --muted:#666b72;
  --line:#b3b7bd; --strong:#292d32; --accent:#8b302b; --soft:#edf0f2;
  --serif:Georgia,'Times New Roman',serif; --sans:Arial,Helvetica,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;overscroll-behavior:none}
body{background:#e5e7eb;color:var(--ink);font:14px var(--sans);-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit;color:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button{border:0;background:none;cursor:pointer;touch-action:manipulation}
button:disabled{opacity:.5;cursor:default}
button:active{opacity:.7}
a{color:inherit;text-decoration:none;touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:400}img{display:block;max-width:100%;object-fit:cover}
.skip{position:fixed;top:-100px;left:calc(50% - 190px);z-index:120;background:var(--ink);color:white;padding:12px}
.skip:focus{top:10px}
#app{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:28px 16px}
.workspace{position:relative;display:flex;flex-direction:column;width:430px;height:calc(100dvh - 56px);max-height:930px;min-height:420px;overflow:hidden;background:var(--bg);border:1px solid #45494f;border-radius:20px;box-shadow:0 18px 55px #20212415}
.app-header{flex-shrink:0;padding:11px 21px 0;background:var(--bg);z-index:5}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;height:53px}
.brand{font-family:var(--serif);font-size:35px;letter-spacing:-1.2px;line-height:1;font-weight:600;white-space:nowrap}
.brand-period{color:var(--accent)}
.icon-btn{width:44px;height:44px;display:inline-grid;place-items:center;border:1px solid var(--strong);border-radius:4px;flex-shrink:0;background:var(--bg)}
.icon-btn svg{width:18px;height:18px}.settings-button{border:0}
.edition-line{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:2px solid var(--strong);border-bottom:1px solid var(--strong);min-height:31px;font-size:8px;letter-spacing:1.1px;text-transform:uppercase}
.edition-line button{font-size:8px;letter-spacing:1.1px;text-transform:uppercase;padding:8px 0;min-height:30px}.edition-line button span{color:var(--accent);padding:0 4px}.edition-line>span{color:var(--muted)}
.main{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:19px 21px 24px;scrollbar-width:none}
.main::-webkit-scrollbar{display:none}
.mobile-nav{display:grid;grid-template-columns:repeat(3,1fr);flex-shrink:0;position:relative;z-index:20;border-top:1.5px solid var(--strong);background:var(--bg);padding:7px 10px 13px;gap:4px}
.mobile-nav button{position:relative;min-height:53px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#6c737c;font-size:10px;font-weight:500;border-radius:0;padding:7px 3px 1px}
.mobile-nav button.active{color:var(--accent);font-weight:700}
.mobile-nav button.active::before{content:'';position:absolute;top:-8px;height:3px;width:34px;background:var(--accent)}
.mobile-nav button.active svg{stroke-width:2.2}.mobile-nav svg{width:22px;height:22px}
.nav-count{position:absolute;top:0;right:20px;font-size:8px;line-height:14px;min-width:14px;padding:0 3px;background:var(--accent);color:var(--paper);border-radius:8px}
.discover-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 15px}
.discover-heading h1{font:34px/1 var(--serif);letter-spacing:-.7px}
.pro-link{font-size:10px;display:flex;align-items:center;gap:2px;padding:10px 0 10px 8px;color:var(--accent);min-height:40px;font-weight:600}.pro-link svg{width:13px;height:13px}
.search-row{display:flex;gap:8px;margin-bottom:12px}
.search-box{min-width:0;display:flex;align-items:center;gap:10px;padding:0 12px;flex:1;border:1px solid var(--strong);border-radius:4px;background:var(--paper)}
.search-box>svg{width:18px;color:#50565e}
.search-box:focus-within{outline:1px solid var(--accent);border-color:var(--accent)}
.search-box input{width:100%;min-width:0;height:46px;border:0;background:none;outline:none;font-size:12px;border-radius:0}
.search-box input::placeholder{color:#777d85}
.import-btn{width:47px;min-height:47px;display:grid;place-items:center;border:1px solid var(--strong);border-radius:4px;background:var(--ink);color:var(--paper);flex-shrink:0}
.filters{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -21px 20px;padding:0 21px 1px;align-items:center}
.filters::-webkit-scrollbar{display:none}
.chip{font-size:10px;white-space:nowrap;min-height:38px;padding:9px 12px;border:1px solid var(--line);border-radius:3px;background:var(--bg);color:#606770}
.chip.active{border-color:var(--ink);background:var(--ink);color:var(--paper)}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.section-heading h2{font:600 9px var(--sans);color:var(--accent);letter-spacing:1.4px;text-transform:uppercase}
.section-heading>span{font-size:9px;color:var(--muted)}
.hero-card{position:relative;border:1px solid var(--strong);background:var(--paper);border-radius:3px;overflow:hidden;margin-bottom:26px}
.hero-image{display:block;position:relative;width:100%;height:177px;padding:0;border-bottom:1px solid var(--strong);background:var(--soft)}
.hero-image img{width:100%;height:100%;object-position:center 70%;filter:saturate(.65)}
.hero-content{padding:16px 17px}
.meta-line{display:flex;align-items:center;gap:7px;font-size:9px;color:var(--muted);flex-wrap:wrap}
.meta-line .category{font-size:8px;letter-spacing:1px;text-transform:uppercase;color:var(--accent);font-weight:700}
.dot{display:inline-block;width:2px;height:2px;border-radius:50%;background:var(--muted);flex-shrink:0}
.level{font-size:8px;font-weight:600;color:#4c5158;border:1px solid #a0a7b0;padding:1px 4px;border-radius:2px}
.hero-content h2{font:33px/1.03 var(--serif);letter-spacing:-.65px;margin:12px 0 10px}
.title-link{padding:0;text-align:left;font:inherit;line-height:inherit;color:inherit}
.hero-content>p{font-size:11px;line-height:1.7;color:#6c737c;margin-bottom:12px}
.source-mini{font-size:9px;color:var(--muted);display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.source-mini strong{color:#494e55;font-weight:500}
.source-symbol{font-family:Georgia,serif;font-size:12px;color:var(--ink)}
.hero-footer{display:flex;gap:10px;margin-top:16px}
.primary-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:12px 16px;font-size:12px;font-weight:500;border:1px solid var(--accent);border-radius:3px;background:var(--accent);color:var(--paper)}
.primary-btn svg{width:16px;height:16px}.hero-footer .primary-btn{flex:1;justify-content:space-between}
.bookmark{border:1px solid var(--strong);border-radius:3px;width:44px;height:44px;display:inline-grid;place-items:center;flex-shrink:0;background:var(--paper);color:var(--ink)}
.bookmark svg{width:18px;height:18px}.bookmark.saved{color:var(--accent);border-color:var(--accent);background:#f2f3f5}.bookmark.saved svg{fill:#e8c8bf}
.cards{display:flex;flex-direction:column;border-top:1px solid var(--strong)}
.article-card{position:relative;display:grid;grid-template-columns:94px minmax(0,1fr);gap:13px;padding:16px 0;border-bottom:1px solid var(--line)}
.card-image{width:94px;height:112px;padding:0;border:1px solid #9298a1;border-radius:2px;background:var(--soft);overflow:hidden}
.card-image img{width:100%;height:100%;filter:saturate(.65)}
.card-body{min-width:0}.card-body .meta-line{gap:5px}.card-body .meta-line .category{font-size:7px;letter-spacing:.5px}
.card-body h3{font:24px/1.07 var(--serif);letter-spacing:-.25px;margin:9px 0 5px}
.card-footer{display:flex;gap:6px;justify-content:space-between;align-items:center}.card-footer .source-mini{font-size:8px;gap:4px}.card-footer .bookmark{width:38px;height:40px}.card-footer .bookmark svg{width:16px}
.image-fallback{height:100%;display:grid;place-items:center;color:var(--muted);background:var(--soft)}.image-fallback svg{width:30px;height:30px}
.note-banner{display:flex;gap:9px;align-items:flex-start;margin-top:23px;font-size:9px;line-height:1.7;color:var(--muted)}.note-banner svg{width:14px;height:14px;margin-top:2px}
.about-link{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:10px;min-height:44px;margin-top:8px;padding:0}.about-link svg{width:12px;height:12px}
.page-heading{margin-bottom:22px}.eyebrow{font-size:9px;letter-spacing:1.4px;text-transform:uppercase;color:var(--accent);font-weight:600}
.page-heading .eyebrow{margin-bottom:10px}.page-heading h1{font:38px/1.04 var(--serif);letter-spacing:-.8px}.page-heading p{font-size:12px;line-height:1.7;color:var(--muted);margin-top:10px}
.empty{padding:33px 18px;text-align:center;border:1px solid var(--line);background:var(--paper);border-radius:3px}
.empty>svg{width:30px;height:30px;color:var(--accent);margin-bottom:18px}.empty h2{font:30px/1.12 var(--serif);margin-bottom:12px}.empty p{font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:22px}
.small-btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:44px;border:1px solid var(--strong);border-radius:3px;background:var(--paper);padding:10px 13px;font-size:11px}.small-btn svg{width:16px;height:16px}
.text-btn{font-size:11px;text-decoration:underline;text-underline-offset:4px;padding:10px 0;color:var(--muted);min-height:40px}
.word-toolbar{display:flex;flex-direction:column;gap:14px;margin-bottom:18px}.word-toolbar .filters{margin:0;padding:0;max-width:100%}.word-toolbar>div:last-child:not(.filters){display:flex;gap:8px}.word-toolbar .primary-btn{flex:1;font-size:11px}
.word-list{display:grid;gap:12px}.word-row{display:flex;gap:10px;border:1px solid var(--line);border-left:2px solid var(--accent);border-radius:2px;padding:15px;background:var(--paper)}
.word-main{min-width:0;flex:1}.word-row h3{font:29px/1.1 var(--serif);overflow-wrap:anywhere}.word-row .translation{font-size:13px;color:var(--accent);margin-top:7px}.word-row .context{font-size:11px;line-height:1.6;color:var(--muted);margin-top:12px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.word-row.known{border-left-color:#737980}.word-actions{display:flex;flex-direction:column;gap:8px}.word-actions .icon-btn{width:40px;height:40px}.word-actions .is-known{background:var(--soft)}
.reader-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-4px 0 18px}
.back-btn{display:flex;align-items:center;gap:7px;min-height:44px;padding:0;font-size:10px;color:var(--muted)}.back-btn svg{width:16px}
.reader-tools{display:flex;gap:5px}.reader-tools .icon-btn,.reader-tools .bookmark{width:37px;height:40px;font-size:12px}
.reader h1{font:39px/1.05 var(--serif);letter-spacing:-.7px;margin:16px 0}
.reader .byline{font-size:10px;color:var(--muted);line-height:1.7;display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.reader .byline a{text-decoration:underline;text-underline-offset:3px}
.reader-visual{width:100%;height:172px;object-position:center 65%;filter:saturate(.65);border:1px solid var(--line)}
.reader-hint{display:flex;align-items:center;gap:9px;border-left:2px solid var(--accent);padding:9px 11px;background:var(--soft);font-size:10px;line-height:1.6;color:#606770;margin:19px 0 23px}.reader-hint svg{width:17px;height:17px}
.reader-copy{font-family:Georgia,serif;line-height:1.85;color:#30343a}.reader-copy p{margin-bottom:24px}.word{max-width:100%;overflow-wrap:anywhere;white-space:normal;font:inherit;line-height:inherit;padding:0;border:0;border-radius:1px;color:inherit;background:transparent}.word.selected{background:#e4e7eb;box-shadow:0 2px 0 var(--accent)}.word.saved-word{text-decoration:underline;text-decoration-color:#ba8a79;text-underline-offset:5px;text-decoration-thickness:1px}
.article-end{border-top:1px solid var(--strong);padding:23px 0 8px;display:flex;flex-direction:column;gap:17px}.article-end p{font-size:12px;line-height:1.7;color:var(--muted)}
.attribution{font-size:9px;line-height:1.9;color:var(--muted);margin-top:20px}.attribution a{text-decoration:underline;text-underline-offset:3px}
.progress-track{height:2px;flex-shrink:0;background:#e5e8eb}.progress-fill{width:0;height:100%;background:var(--accent)}
.word-popup{position:fixed;z-index:50;width:320px;max-width:calc(100vw - 24px);padding:18px;background:var(--paper);border:1px solid var(--strong);border-top:3px solid var(--accent);border-radius:4px;box-shadow:0 9px 26px #20212428}.word-popup[hidden]{display:none}
.popup-top{display:flex;align-items:center;gap:5px}.popup-top h3{font:30px/1.1 var(--serif);overflow-wrap:anywhere;flex:1;min-width:0}.popup-top button{width:36px;height:40px;display:grid;place-items:center;flex-shrink:0}.popup-top svg{width:17px;height:17px}
.popup-language{font-size:8px;letter-spacing:1.2px;color:var(--muted);margin-top:13px}.popup-translation{font-size:20px;color:var(--accent);margin:7px 0 11px}.popup-note{font-size:11px;line-height:1.6;color:var(--muted)}
.popup-saved{display:flex;align-items:center;gap:5px;font-size:9px;border-top:1px solid var(--line);margin-top:14px;padding-top:8px;color:var(--muted)}.popup-saved svg{width:12px;height:12px}.popup-saved button{margin-left:auto;font-size:9px;text-decoration:underline;min-height:36px;padding:0}
.word-popup .missing{font-size:12px;line-height:1.7;color:var(--muted);margin:12px 0}.word-popup input{width:100%;border:1px solid var(--strong);border-radius:3px;padding:10px;margin:8px 0 12px;background:var(--bg)}
#toast{position:fixed;z-index:100;bottom:max(94px,calc((100dvh - 930px)/2 + 90px));left:50%;transform:translate(-50%,10px);opacity:0;pointer-events:none;background:var(--ink);color:var(--paper);font-size:11px;line-height:1.5;text-align:center;padding:12px 17px;border-radius:4px;max-width:360px;width:max-content;transition:opacity .16s,transform .16s}#toast.visible{opacity:1;transform:translate(-50%,0)}
dialog{border:1px solid var(--strong);border-top:3px solid var(--accent);border-radius:8px;max-width:388px;width:calc(100% - 32px);padding:23px;color:var(--ink);background:var(--bg);max-height:calc(100dvh - 70px);overflow:auto;box-shadow:0 18px 60px #20212422}
dialog::backdrop{background:#20212466;backdrop-filter:blur(2px)}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;margin-bottom:18px}.modal-head h2{font:33px/1.08 var(--serif);letter-spacing:-.5px}.modal-head .eyebrow{margin-bottom:10px}.modal-head .icon-btn{width:36px;height:40px;border:0;background:transparent}
.modal-copy{font-size:12px;line-height:1.8;color:var(--muted);margin:14px 0 22px}
.field{display:block;margin:17px 0;font-size:11px;font-weight:600}.field input,.field textarea,.field select{display:block;width:100%;margin-top:8px;border:1px solid #818892;background:var(--paper);padding:12px;border-radius:3px;font-size:13px}.field textarea{min-height:130px;resize:vertical;line-height:1.7}.field small{display:block;font-size:10px;font-weight:400;color:var(--muted);line-height:1.6;margin-top:7px}
.modal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:23px}.form-error{font-size:12px;line-height:1.6;color:var(--accent);padding-top:10px}
.pro-art{background:var(--soft);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:25px 15px;text-align:center;margin-bottom:24px}.pro-art>svg{width:29px;height:29px;color:var(--accent);margin-bottom:12px}.pro-art h3{font:32px var(--serif);margin-bottom:12px}.price{font-size:29px;letter-spacing:-1px}.price span{font-size:10px;letter-spacing:0;color:var(--muted)}
.benefits{display:grid;gap:15px;font-size:12px;line-height:1.6;margin:23px 0}.benefits>div{display:flex;gap:10px;align-items:flex-start}.benefits svg{width:16px;height:16px;color:var(--accent);margin-top:2px}
.demo-note{font-size:10px;line-height:1.7;text-align:center;color:var(--muted);margin-top:12px}.full-width{width:100%}
.settings-row{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding:17px 0;font-size:11px}.settings-row span{color:var(--muted)}.settings-row strong{font-weight:500;text-align:right;line-height:1.6}
.review-progress{text-align:center;font-size:10px;color:var(--muted);margin-top:20px}.review-card{border:1px solid var(--strong);border-top:3px solid var(--accent);border-radius:3px;background:var(--paper);padding:30px 20px;margin:18px 0;text-align:center}.review-card h2{font:43px/1.1 var(--serif);margin:23px 0;overflow-wrap:anywhere}.review-card .context{font:15px/1.7 Georgia,serif;color:var(--muted);margin-bottom:23px}.review-answer{font-size:24px;color:var(--accent);margin:18px 0}.review-actions{display:flex;gap:8px}.review-actions button{flex:1;font-size:11px;padding:12px 7px}
.widget-preview{border:1px solid var(--strong);border-top:4px solid var(--accent);border-radius:14px;max-width:300px;margin:24px auto;padding:23px;background:var(--paper)}.widget-preview .eyebrow{font-size:8px;display:flex;justify-content:space-between;align-items:center}.widget-preview h3{font:37px var(--serif);margin:20px 0 10px;overflow-wrap:anywhere}.widget-preview p{font-size:12px;line-height:1.6;color:var(--muted)}.widget-preview button{font-size:12px;color:var(--accent);min-height:44px;padding:10px 0 0}
.result-info{font-size:11px;line-height:1.6;color:var(--muted);margin-bottom:17px}.demo-ad{border:1px dashed var(--line);padding:25px 15px;text-align:center}.demo-ad h3{font:29px var(--serif);margin:15px 0}.demo-ad p{font-size:12px;line-height:1.8}.search-confirm{border:1px solid var(--line);padding:18px;background:var(--paper);margin:20px 0}.search-confirm h3{font:27px/1.1 var(--serif);margin:11px 0}.read-check{font-size:9px;color:var(--accent);display:flex;gap:4px;align-items:center}.read-check svg{width:12px;height:12px}
@media(max-width:520px){
  .search-box input,.field input,.field textarea,.field select,.word-popup input{font-size:16px}
  body{background:var(--bg)}#app{padding:0;min-height:100dvh}.workspace{width:100%;height:100dvh;max-height:none;min-height:0;border:0;border-radius:0;box-shadow:none}
  .app-header{padding-top:max(7px,env(safe-area-inset-top))}.mobile-nav{padding-bottom:max(12px,env(safe-area-inset-bottom))}
  #toast{bottom:88px;max-width:calc(100vw - 32px)}dialog{max-height:calc(100dvh - 34px)}
}
@media(max-width:360px){.filters{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.word-toolbar .filters{margin:0;padding:0}.main{padding-left:16px;padding-right:16px}.app-header{padding-left:16px;padding-right:16px}.brand{font-size:32px}.hero-content{padding:14px}.hero-content h2{font-size:30px}.article-card{grid-template-columns:80px minmax(0,1fr);gap:10px}.card-image{width:80px;height:110px}.card-body h3{font-size:22px}.reader-tools{gap:4px}.reader-tools .icon-btn,.reader-tools .bookmark{width:34px}.reader h1{font-size:35px}.source-mini time{font-size:8px}}
@media(max-height:540px) and (min-width:521px){#app{padding:0}.workspace{height:100dvh;max-height:none;min-height:0;border-radius:0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* App edition: one quiet reading surface, with options kept in sheets. */
.topbar{justify-content:center;height:57px;border-bottom:3px double var(--strong)}
.app-header{padding-bottom:0}.mobile-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
.discover-main{padding-top:17px}.unified-search{display:flex;border:1px solid var(--strong);border-radius:4px;background:var(--paper);margin-bottom:22px;min-height:49px}
.unified-search .search-box{border:0;background:none;border-radius:4px 0 0 4px}.unified-search .search-box input{font-size:14px}
.filter-button{display:grid;place-items:center;width:48px;flex-shrink:0;border-left:1px solid var(--line);position:relative}
.filter-button.has-filters::after{content:'';position:absolute;width:6px;height:6px;border-radius:50%;right:7px;top:7px;background:var(--accent)}
.hero-card{border:0;border-bottom:1px solid var(--strong);border-radius:0;margin:0 0 9px;background:transparent;overflow:visible}
.hero-image{height:172px;border-radius:3px;overflow:hidden}.hero-content{padding:15px 0 13px}.hero-content h2{font-size:32px;line-height:1.06;margin:10px 0 9px}.hero-content .card-footer{margin-top:0}
.article-card{padding:19px 0}.card-body h3{font-size:25px}.page-heading{margin:12px 0 26px}.page-heading h1{font-size:42px;line-height:1.03}.page-heading>p:last-child:not(.eyebrow){margin-top:14px;font-size:14px;line-height:1.65}
.field-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.field{min-width:0}.field input,.field select{min-height:48px;width:100%;min-width:0}.field-help{font-size:12px;line-height:1.6;color:var(--muted);margin:6px 0 18px}.field select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.import-section{border-top:1px solid var(--line);padding-top:15px;margin-top:25px}.form-section-title{font-size:12px;font-weight:700;margin:24px 0 12px}
.auth-page,.welcome,.onboarding{padding-top:10px}.auth-page .page-heading{margin-top:32px}.account-workspace .main{padding-bottom:25px}.welcome .page-heading{margin:19px 0 23px}.welcome .page-heading h1{font-size:43px;line-height:1.04}.welcome .page-heading>p{max-width:285px}
.welcome-paper{border:1px solid var(--strong);border-top:4px double var(--strong);padding:22px 20px;background:var(--paper);margin-bottom:26px}.welcome-paper>p{font:38px/1.06 var(--serif);margin:22px 0 18px;max-width:260px}.welcome-paper>p span{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:1px;text-underline-offset:5px}.welcome-gloss{border-top:1px solid var(--line);padding-top:13px;font-size:12px}.welcome-gloss span{color:var(--accent);margin-left:10px}.paper-lines{height:19px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:19px;opacity:.45}
.auth-actions,.account-actions{display:grid;gap:10px}.auth-actions button{min-height:49px}.demo-note{line-height:1.65;font-size:11px}.demo-panel{border:1px dashed var(--line);padding:15px;margin-top:24px;text-align:center}.demo-panel .demo-note{margin:6px 0 0}.demo-panel button{min-height:36px}.auth-switch{font-size:12px;text-align:center;margin:24px 0}.auth-switch button{font-size:12px;padding:8px}.recovery-link{display:block;margin:12px auto;font-size:12px;min-height:44px}.code-input{text-align:center;letter-spacing:.45em;font-size:23px!important}.code-help{font-size:12px;line-height:1.7;margin:10px 0 22px}.code-help strong{color:var(--accent)}
.onboarding-top{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted)}.setup-progress{display:flex;gap:6px;margin:20px 0 35px}.setup-progress span{height:3px;background:var(--line);flex:1}.setup-progress .done{background:var(--accent)}.onboarding .page-heading{margin-bottom:32px}.setup-footer{margin-top:30px;display:grid;gap:10px;text-align:center}.setup-footer>button{min-height:48px}.onboarding>.field-help{text-align:center;margin-top:18px}
.interest-grid{display:grid;gap:9px}.interest-choice{display:flex;align-items:center;justify-content:space-between;min-height:52px;text-align:left;border:1px solid var(--line);border-radius:3px;padding:12px 14px;background:var(--paper);font-size:13px}.interest-choice.selected{border-color:var(--accent);box-shadow:inset 3px 0 var(--accent);color:var(--accent)}.interest-choice svg{width:17px;height:17px}.goal-options{border:0;margin:0;padding:0;display:grid;gap:10px}.goal-options label{display:flex;gap:13px;align-items:center;padding:17px 15px;border:1px solid var(--line);border-radius:3px;background:var(--paper);cursor:pointer}.goal-options label:has(input:checked){border-color:var(--accent);box-shadow:inset 3px 0 var(--accent)}.goal-options input{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}.goal-options strong{display:block;font-size:14px}.goal-options small{display:block;color:var(--muted);font-size:11px;margin-top:5px}
.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}
.profile-heading{display:flex;align-items:center;gap:13px;margin:15px 0 27px}.profile-heading>div{flex:1;min-width:0}.profile-heading h1{font:36px/1.1 var(--serif);overflow-wrap:anywhere}.profile-heading .eyebrow{font-size:8px;margin-bottom:6px}.profile-heading .icon-btn{border:0}.avatar{display:grid;place-items:center;width:46px;height:46px;background:var(--soft);border:1px solid var(--strong);border-radius:50%;font:26px var(--serif);flex-shrink:0}
.progress-card{border:1px solid var(--strong);border-top:3px double var(--strong);background:var(--paper);padding:18px;margin-bottom:25px}.streak-title{display:flex;justify-content:space-between;align-items:center}.streak-title strong{font:54px/1 var(--serif);color:var(--accent)}.streak-title span{font-size:13px;margin-left:10px}.streak-title .icon-btn{border:0;background:transparent}.week-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin:23px 0}.week-strip>div{text-align:center;font-size:10px;color:var(--muted)}.week-strip span{display:block;margin-bottom:8px}.week-strip b{display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;aspect-ratio:1;font-size:17px;font-weight:400}.week-strip .complete b{background:var(--accent);border-color:var(--accent);color:var(--paper)}.week-strip .today b{outline:1px solid var(--accent);outline-offset:3px}.week-strip svg{width:15px;height:15px}.goal-caption{display:flex;justify-content:space-between;gap:8px;font-size:11px;margin-bottom:10px}.goal-caption strong{font-weight:500}.progress-card progress{display:block;width:100%;height:5px;border:0;background:var(--soft);accent-color:var(--accent)}progress::-webkit-progress-bar{background:var(--soft)}progress::-webkit-progress-value{background:var(--accent)}.weekly-caption{border-top:1px solid var(--line);padding-top:13px;margin-top:18px;font-size:11px;color:var(--muted)}
.setting-link{width:100%;display:flex;align-items:center;gap:14px;padding:17px 0;border-bottom:1px solid var(--line);text-align:left;min-height:68px}.setting-link>span{flex:1;font-size:14px;font-weight:500;min-width:0}.setting-link small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:5px;line-height:1.5}.setting-link>svg:first-child{color:var(--accent);width:21px}.setting-link>svg:last-child{width:16px}.profile-settings .setting-link:last-child{border:0}
@media(max-width:520px){.unified-search .search-box input{font-size:16px}.topbar{height:55px}.hero-image{height:164px}}
@media(max-width:360px){.hero-content h2{font-size:29px}.welcome .page-heading h1{font-size:38px}.welcome-paper>p{font-size:33px}.week-strip{gap:5px}.field-pair{gap:8px}.page-heading h1{font-size:37px}.word-toolbar{flex-wrap:wrap;gap:12px}.card-body h3{font-size:23px}}
.edition-cover{height:100%;width:100%;background:var(--soft);border:1px solid var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--accent);position:relative}.edition-cover span{font:24px var(--serif);text-align:center}.edition-cover b{font-size:9px;letter-spacing:3px;font-weight:500}.edition-cover>svg{width:27px;height:27px}.card-image .edition-cover span{font-size:17px}.card-image .edition-cover{padding:8px;gap:7px}.publisher-card{padding:20px 0;border-bottom:1px solid var(--line)}.publisher-card a{display:block}.publisher-card h3{font:27px/1.12 var(--serif);margin:10px 0}.publisher-link{font-size:11px;color:var(--accent)}.publisher-card .eyebrow{font-size:8px;letter-spacing:1px}.source-entry{padding:15px 0;border-bottom:1px solid var(--line)}.source-entry a{font-weight:600;display:inline-block;min-height:30px;padding-top:5px}.source-entry small{display:block;color:var(--muted);font-size:11px;line-height:1.6}.feed-state{padding:40px 15px;text-align:center;color:var(--muted);font-size:13px}.reader-author{font-size:11px;width:100%;margin-top:4px}.hero-image{width:100%}.reader .byline{flex-wrap:wrap}.article-card{min-width:0}.card-body h3,.hero-content h2{overflow-wrap:anywhere}

.meaning-choices{display:grid;gap:7px;margin:12px 0}.meaning-choices button{border:1px solid var(--line);border-radius:3px;text-align:left;padding:11px 12px;min-height:44px;font-size:14px;background:var(--paper)}

.connection-note{border:1px solid var(--line);background:var(--paper);padding:20px;margin:24px 0}.connection-note h3{font:26px var(--serif);margin-bottom:10px}.connection-note p{color:var(--muted);line-height:1.6}

/* Installable edition: clear controls and quiet connection states. */
.language-switch{display:flex;justify-content:flex-end;gap:4px;margin:0 0 16px}.language-switch button{padding:8px 11px;min-height:40px;font-size:12px;border:1px solid var(--line);border-radius:3px;background:var(--paper)}.language-switch [aria-pressed="true"]{border-color:var(--strong);background:var(--soft);font-weight:700}.connection-status{padding:8px 16px;text-align:center;font-size:11px;line-height:1.5;border-bottom:1px solid var(--line);background:var(--soft);flex-shrink:0}.install-preview{text-align:center;margin:20px 0}.install-preview img{width:78px;height:78px;border-radius:18px}.install-steps{font-size:13px;line-height:1.8;padding-left:22px;color:var(--muted)}.install-steps li{padding:4px 0}.danger-text{color:var(--accent)}.danger-button{background:var(--accent);border-color:var(--accent)}.privacy-details h3{font:22px var(--serif);margin:22px 0 8px}.privacy-details p{font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:14px}button:disabled{cursor:not-allowed;opacity:.55}.personal-text{overflow-wrap:anywhere}

.install-preview strong,.install-preview>span,.install-steps li>span{display:block}.install-preview strong{font:24px var(--serif);margin:10px 0 4px}.install-preview>span{font-size:11px;color:var(--muted)}

.paste-link{border-top:1px solid var(--line);margin-top:22px;padding-top:8px}.paste-link summary{cursor:pointer;min-height:44px;display:list-item;list-style-position:inside;padding:13px 0;font-size:12px;color:var(--muted)}.paste-link .field-help{margin-top:8px}.paste-link summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
