                                                                                
                                                                             
                                                                             
                                                                              
                                  
                                                                                

:root {
                                                                                     
                                                                              
                                                                           
  --font-prose: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
  --font-ui: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: var(--font-prose);                                            
  --font-sans: var(--font-ui);                                                

                                                                        
  --bg: #e2ded5;
  --bg-elev: #eeeae2;
  --bg-input: #f2eee6;
  --fg: #1d2227;
  --fg-muted: #595e64;
  --line: #c8c4bc;                                           
  --line-strong: #b3afa7;
  --page-bg: #e2ded5;
  --sheet-bg: #eeeae2;
  --on-accent: #f2eee6;                                           
  --accent: #446a72;                                                         
  --accent-soft: rgba(68, 106, 114, 0.13);
  --hl: rgba(68, 106, 114, 0.22);                           
  --hl-s: rgba(68, 106, 114, 0.09);                          
  --radius: 4px;                                                       
  --scrim: rgba(25, 29, 34, 0.42);
}

[data-theme="sepia"] {
  --bg: #e7ddc8;
  --bg-elev: #eee3cf;
  --bg-input: #f3e9d7;
  --fg: #362c24;
  --fg-muted: #73675a;
  --line: #c1b6a2;
  --line-strong: #ab9f8a;
  --page-bg: #e7ddc8;
  --sheet-bg: #eee3cf;
  --on-accent: #f7f1e4;
  --hl: rgba(64, 107, 116, 0.24);
  --hl-s: rgba(64, 107, 116, 0.10);
}

            
[data-theme="dark"] {
  --bg: #191d22;                                              
  --bg-elev: #22272c;                                         
  --bg-input: #2c3136;                                        
  --fg: #e2ded5;                              
  --fg-muted: #a0a5ab;                                        
  --line: #3a4148;                                            
  --line-strong: #4c535b;                                     
  --page-bg: #191d22;
  --sheet-bg: #22272c;
  --on-accent: #0b1015;
  --accent: #699199;                                               
  --accent-soft: rgba(105, 145, 153, 0.16);
  --hl: rgba(105, 145, 153, 0.30);
  --hl-s: rgba(105, 145, 153, 0.13);
  --scrim: rgba(0, 0, 0, 0.55);
}

                                                                           
                                                                              
[data-level="a2"]   { --accent: #557c84; }
[data-level="b1"]   { --accent: #446a72; }
[data-level="b2"]   { --accent: #365c64; }
[data-level="a1"]   { --accent: #628a92; }
[data-level="orig"] { --accent: #2d4d55; }
[data-theme="dark"][data-level="a2"]   { --accent: #abcbd1; }
[data-theme="dark"][data-level="b1"]   { --accent: #87acb4; }
[data-theme="dark"][data-level="b2"]   { --accent: #699199; }
[data-theme="dark"][data-level="a1"]   { --accent: #c2dade; }
[data-theme="dark"][data-level="orig"] { --accent: #557c85; }

* { box-sizing: border-box; }
                                                                             
                                                                           
                                              
html, body { margin: 0; padding: 0; height: 100%; overscroll-behavior: none; }
                                                                                                          
                                                                                                        
                                                                                                  
                               
html { touch-action: manipulation; }
body { overflow-x: hidden; overflow-x: clip; }
                                                                             
                                                                         
                                                                          
                                                                             
html.tg, html.tg body { height: var(--tg-h, 100%); }

                                                                              
                                          

                                                                       
                                                                        
                                                                            
                                                                        
                                                                      
                                                                        
                                                          

                                                                            
                                                                             
                                                                            
                                            
html.reading:not(.tg), html.reading:not(.tg) body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}
                                                                            
                                                                             
                              
html { background: var(--bg); }
body {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
.app { min-height: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }

                                                                                  
.meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-muted);
}

                                                                           
                                                                          
                                                               
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { display: flex; gap: 2px; flex: none; }
.logo-mark i { display: block; width: 11px; height: 21px; }
.logo-mark i:first-child { background: var(--fg); transform: skewY(8deg); }
.logo-mark i:last-child { background: var(--accent); transform: skewY(-8deg); }
.logo-word { font-family: var(--font-prose); font-size: 23px; line-height: 1; font-weight: 400; }
.logo-mark.lg i { width: 16px; height: 30px; gap: 3px; }
.logo.lg .logo-word { font-size: 32px; }

                                                                          
                                                                              
                                                                         
                                                                       
                                                                            
.boot-splash {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; animation: boot-in .4s ease 1s forwards; pointer-events: none;
}
.boot-splash .logo-mark { transform: scale(1.8); animation: boot-pulse 1.8s ease-in-out 1.4s infinite; }
@keyframes boot-in { to { opacity: 1; } }
@keyframes boot-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  .boot-splash .logo-mark { animation: none; }
}

                                                                            
.lib {
                                                                            
                                                                     
  --lib-pad: 20px;
                                                                            
                                                                          
                                                                            
                   
  --card-w: clamp(122px, 33vw, 168px);
  max-width: 1080px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 20px) var(--lib-pad) 48px;
}
.shelf-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.shelf-promise { color: var(--fg-muted); font-size: 14px; margin-top: 6px; max-width: 46ch; }
.lib-sub { color: var(--fg-muted); font-size: 14px; margin: 0 0 20px; }
.sec-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 12px;
}
.sec-h h2 { font-family: var(--font-prose); font-weight: 400; font-size: 26px; line-height: 1.25; margin: 0; }

                                                                   
.cont {
  display: flex; gap: 16px; align-items: stretch; padding: 16px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 32px;
}
.cont-cover { width: 66px; flex: 0 0 66px; aspect-ratio: 2 / 3; overflow: hidden; background: var(--bg-input); }
.cont-cover img { width: 100%; height: 100%; object-fit: cover; }
.cont-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.cont-title { font-family: var(--font-prose); font-size: 20px; line-height: 1.2; }
.cont-where { font-size: 13px; color: var(--fg-muted); }
.cont-bar { height: 3px; background: var(--line); margin-top: auto; }
.cont-bar i { display: block; height: 100%; background: var(--accent); }
.cont-go {
  align-self: flex-start; margin-top: 8px; min-height: 40px; display: inline-flex; align-items: center;
  padding: 10px 18px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 14px; border-radius: var(--radius);
}
@media (max-width: 420px) { .cont-go { align-self: stretch; justify-content: center; } }

                                                                       
                                                                           
                                                                        
                                   
                                                                      
                                                                             
                                                                            
                                                                       
                                                                         
                                                                          
                                                         
                                                                      
                                                                        
                                                                            
                                                                           
.card { display: flex; flex-direction: column; }
.card-foot { margin-top: auto; }
.card-cover {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--bg-elev);
  border: 1px solid var(--line); transition: border-color .18s ease;
}
.card:active .card-cover { border-color: var(--accent); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover.placeholder {
  display: flex; align-items: flex-end; padding: 12px; font-family: var(--font-prose);
  font-size: 16px; line-height: 1.25; color: var(--fg-muted);
}
                                                                         
                                                                              
                                                                  
.badge-new {
  position: absolute; left: 0; top: 0; padding: 4px 8px; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent);
}
                                                                        
                                                                       
                                                           
.badge-done {
  position: absolute; left: 0; top: 0; padding: 4px 8px; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--fg); color: var(--bg);
}
.badge-partial {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 8px; text-align: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  background: rgba(25, 29, 34, 0.82); color: #e2ded5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
                                                                             
                                                                               
.card-title {
  font-family: var(--font-prose); font-size: 17px; margin: 10px 0 2px; line-height: 1.25;
  min-height: 2.5em;
}
.card-author { color: var(--fg-muted); font-size: 13px; line-height: 1.4; min-height: 1.4em; }
                                                                             
.card-title, .card-author { overflow-wrap: break-word; }
.card-genres, .card-time { color: var(--fg-muted); font-size: 12px; line-height: 1.4; min-height: 1.4em; }
.card-genres { margin-top: 3px; overflow: hidden; }
                                                                          
                                                                          
                                                                             
                                                                             
                                                                         
                                                          
.card-genres > div { display: flex; flex-wrap: wrap; margin-left: -1em; }
.card-genres span { white-space: nowrap; }
.card-genres span::before { content: '·'; display: inline-block; width: 1em; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; padding: 3px 8px;
  border: 1px solid var(--line-strong); border-radius: 2px; color: var(--fg);
}
.chip[data-level="a2"]   { color: #557c84; border-color: #557c84; }
.chip[data-level="b1"]   { color: #446a72; border-color: #446a72; }
.chip[data-level="b2"]   { color: #365c64; border-color: #365c64; }
.chip[data-level="orig"] { color: #2d4d55; border-color: #2d4d55; }
[data-theme="dark"] .chip[data-level="a2"]   { color: #abcbd1; border-color: #4c6c72; }
[data-theme="dark"] .chip[data-level="b1"]   { color: #87acb4; border-color: #47646a; }
[data-theme="dark"] .chip[data-level="b2"]   { color: #699199; border-color: #435c62; }
[data-theme="dark"] .chip[data-level="orig"] { color: #557c85; border-color: #3f5459; }
.card-bar { height: 3px; background: var(--line); margin-top: 6px; }
.card-bar i { display: block; height: 100%; background: var(--accent); }

                                                                                
                                                                              
                                                                              
                                                                            
                                                                           
                                                                          
                                                           
.shelf-row { margin-bottom: 36px; }
.rail { position: relative; }
.rail-track {
  display: flex; gap: 16px;
  overflow-x: auto; overflow-y: hidden;
                                                                              
                                                                           
                                                                   
  padding: 2px var(--lib-pad) 6px;
  margin: -2px calc(var(--lib-pad) * -1) 0;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--lib-pad);
  scroll-behavior: smooth;
                                                                               
                           
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
                                                                             
                                                                              
                                                                       
                                                                            
                                                                          
                                                                            
                                                                           
                                                                              
.rail-track > .card { flex: 0 0 var(--card-w); min-width: 0; scroll-snap-align: start; }
                                                                        
                                                                           
                                          
.rail-track > .card:last-child { scroll-snap-align: end; }
.rail-track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

                                                                        
                                                                           
                                                                         
.rail-arm { display: none; }
@media (hover: hover) and (pointer: fine) {
  .rail-arm {
    position: absolute; z-index: 2;
                                                                              
                                                                
    top: calc(var(--card-w) * 0.75); transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 48px;
    background: var(--bg-elev); border: 1px solid var(--line-strong);
    color: var(--fg); border-radius: var(--radius);
    opacity: 0; transition: opacity .16s ease, color .16s ease, border-color .16s ease;
  }
  .rail-arm .ico {
    width: 20px; height: 20px; display: block;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .rail-prev { left: calc(var(--lib-pad) * -1); }
  .rail-next { right: calc(var(--lib-pad) * -1); }
  .rail:hover .rail-arm, .rail:focus-within .rail-arm { opacity: 1; }
  .rail-arm:hover { color: var(--accent); border-color: var(--accent); }
                                                                       
                                             
  .rail[data-at-start] .rail-prev, .rail[data-at-end] .rail-next {
    opacity: 0; pointer-events: none;
  }
}
                                                          
@media (prefers-reduced-motion: reduce) { .rail-track { scroll-behavior: auto; } }

                                                                        
                                                                          
                                                                        
.strip {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  gap: 10px 12px; margin-top: 32px; padding: 12px 14px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
}
.strip-ic { flex: none; width: 22px; height: 22px; color: var(--accent); }
.strip-ic .ico { width: 22px; height: 22px; display: block; }
.strip-txt { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--fg); }
.strip-go {
  flex: none; padding: 9px 14px; min-height: 40px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 13.5px;
}
.strip-x { flex: none; width: 32px; height: 32px; color: var(--fg-muted); font-size: 14px; }
                                                                        
                                                      
@media (max-width: 520px) {
  .strip { grid-template-columns: auto 1fr auto; }
                                                                         
                                           
  .strip-ic  { grid-area: 1 / 1; }
  .strip-txt { grid-area: 1 / 2; }
  .strip-x   { grid-area: 1 / 3; }
  .strip-go  { grid-area: 2 / 1 / 3 / -1; justify-self: stretch; text-align: center; }
}

                                                                    
                                                                        
                                                                         
                                                                        
                                                                          
                                                                          
                                                     

                                                                            
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
                                                                          
                                       
.sec-sub {
  display: block; margin-top: 3px;
  font-family: var(--font-ui); font-size: 13px; line-height: 1.4; color: var(--fg-muted);
}
.sec-more {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center;
}

                                                                       
                                                                        
                                                           
.hero-track {
  display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden;
  padding: 0 var(--lib-pad); margin: 0 calc(var(--lib-pad) * -1);
  scroll-snap-type: x mandatory; scroll-padding-left: var(--lib-pad);
  scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero {
  flex: 0 0 clamp(264px, calc(100% - 28px), 344px); min-width: 0; scroll-snap-align: start;
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px 16px; align-content: start;
  padding: 16px; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.hero:only-child { flex-basis: 100%; }
.hero:active { border-color: var(--accent); }
.hero-cover { aspect-ratio: 2 / 3; overflow: hidden; background: var(--bg-input); border: 1px solid var(--line); }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-head { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero-title { font-family: var(--font-prose); font-size: 25px; line-height: 1.1; text-wrap: balance; overflow-wrap: break-word; }
.hero-author { font-size: 14px; color: var(--fg-muted); }
                                                                        
                                                     
.hero-blurb {
  grid-column: 1 / -1; font-size: 15px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-foot {
  grid-column: 1 / -1; align-self: end;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.hero-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--fg-muted); }
.hero-go {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 22px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 15px; border-radius: var(--radius);
}

                                                                           
.qchips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 0 var(--lib-pad); margin-left: calc(var(--lib-pad) * -1); margin-right: calc(var(--lib-pad) * -1);
  scrollbar-width: none;
}
.qchips::-webkit-scrollbar { display: none; }
.qchip {
  flex: none; min-height: 40px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: 20px;
  font-size: 14px; white-space: nowrap; color: var(--fg);
}
.qchip:active { background: var(--accent-soft); }
.qchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

                                                               
.rail-track > .ranked {
  flex: 0 0 calc(var(--card-w) + 34px); min-width: 0; scroll-snap-align: start;
  display: grid; grid-template-columns: 34px minmax(0, 1fr);
}
.ranked-n {
  font-family: var(--font-prose); font-size: 54px; line-height: 1; color: var(--line-strong);
  text-align: right; padding-right: 4px;
                                                                            
  height: calc(var(--card-w) * 1.5); display: flex; align-items: flex-end; justify-content: flex-end;
}

                                                                           
                                         
.sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.set {
  display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 14px 16px 14px 14px; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.set:active { border-color: var(--accent); }
.set-fan { position: relative; height: 104px; }
.set-fan img {
  position: absolute; top: 0; left: 0; width: 70px; height: 104px; object-fit: cover;
  border: 1px solid var(--bg-elev); z-index: 3;
}
.set-fan img:nth-child(2) { left: 29px; top: 6px; width: 62px; height: 92px; z-index: 2; filter: brightness(.93); }
.set-fan img:nth-child(3) { left: 56px; top: 12px; width: 54px; height: 80px; z-index: 1; filter: brightness(.86); }
.set-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.set-title { font-family: var(--font-prose); font-size: 21px; line-height: 1.15; text-wrap: balance; }
.set-who { font-size: 13px; color: var(--fg-muted); }
.set-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--fg-muted); }

                                                              
.pills {
  display: grid; grid-auto-flow: column; grid-template-rows: auto auto; gap: 8px; justify-content: start;
  overflow-x: auto; padding: 0 var(--lib-pad); margin: 0 calc(var(--lib-pad) * -1); scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }
.apill { font-family: var(--font-prose); font-size: 16px; }
.apill i { font: normal 11px var(--font-mono); color: var(--fg-muted); }

                                                                    
.genre-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; border-top: 1px solid var(--line); }
.genre-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-prose); font-size: 18px; line-height: 1.25;
}
.genre-list a:active { color: var(--accent); }
@media (min-width: 760px) { .genre-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.btn-secondary.all-books { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 36px; padding: 12px 16px; }

                                                                   
.plus-offer-h { font-family: var(--font-prose); font-weight: 500; font-size: 20px; line-height: 1.2; margin: 14px 0 0; }
.plus-offer-lead { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--fg-muted); }
.shelf-row > .plus-offer { margin-top: 0; }

                                                                                 
.lib-list { max-width: 720px; }
.list-title { font-family: var(--font-prose); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 4px 0 8px; text-wrap: balance; }
.list-lead { color: var(--fg-muted); font-size: 15px; line-height: 1.5; margin: 0 0 18px; max-width: 46ch; }
.lib-search {
  width: 100%; min-height: 44px; padding: 0 12px; margin: 6px 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg-input); color: var(--fg); font: inherit; font-size: 16px;
}
.lib-list > .qchips { margin-bottom: 10px; }
.list-count {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-muted); padding: 8px 0;
}
.row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.row:active .row-title { color: var(--accent); }
.row-cover { aspect-ratio: 2 / 3; overflow: hidden; background: var(--bg-elev); border: 1px solid var(--line); align-self: start; }
.row-cover img { width: 100%; height: 100%; object-fit: cover; }
.row-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-title { font-family: var(--font-prose); font-size: 18px; line-height: 1.2; overflow-wrap: break-word; }
.row-author { font-size: 13px; color: var(--fg-muted); }
.row-hook {
  font-size: 14px; line-height: 1.45; margin: 3px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--fg-muted); }
                                                                                           
.row-ru { font-family: var(--font-prose); font-size: 15px; line-height: 1.2; color: var(--fg-muted); }

                                                                                         
                                                                             
.seo-lead { font-size: 15px; line-height: 1.6; margin: 4px 0 22px; max-width: 64ch; }
                                                                          
.seo-more { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.seo-more a { color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
                                                                             
                                           
.app-tall { min-height: 100vh; min-height: 100svh; }
                                                                         
.home-seo { max-width: 720px; margin: 0 auto; padding: 22px 20px 48px; border-top: 1px solid var(--line); color: var(--fg-muted); }
.home-seo h1 { font-family: var(--font-prose); font-weight: 400; font-size: 19px; line-height: 1.3; margin: 0 0 8px; color: var(--fg); text-wrap: balance; }
.home-seo-lead { font-size: 13.5px; line-height: 1.55; margin: 0 0 12px; max-width: 70ch; }
.home-seo-line { font-size: 13.5px; line-height: 1.8; margin: 0; }
.home-seo-line b { font-weight: 600; color: var(--fg); }
.home-seo-line a { color: var(--accent); white-space: nowrap; }
                                                                    
.article-body { font-size: 16px; line-height: 1.65; max-width: 64ch; }
.article-body h2 { font-family: var(--font-prose); font-weight: 400; font-size: 24px; line-height: 1.25; margin: 28px 0 10px; }
.article-body h3 { font-size: 17px; margin: 22px 0 8px; }
.article-body a { color: var(--accent); }
.article-body .rows { margin: 14px 0; }

                                                                              
.done { padding-top: calc(env(safe-area-inset-top) + 36px); }
.done-title { font-family: var(--font-prose); font-weight: 400; font-size: 34px; line-height: 1.08; margin: 10px 0 22px; text-wrap: balance; }
.done-facts { display: flex; gap: 28px; padding: 14px 0; margin-bottom: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.done-facts b { display: block; font-family: var(--font-prose); font-weight: 400; font-size: 28px; line-height: 1; }
.done-facts span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); }
.done > .plus-offer { margin: 0 0 20px; }

.shelf-foot {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  font-size: 13px; color: var(--fg-muted);
}
.shelf-foot a { color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
.shelf-foot .foot-note { flex-basis: 100%; line-height: 1.5; max-width: 68ch; }

                                                                            
.book { max-width: 720px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 8px) 20px 60px; }
.topnav { display: flex; align-items: center; gap: 8px; height: 44px; margin-bottom: 8px; }
                                                                           
                                                                         
                                                         
.btn-icon {
  width: 44px; height: 44px; border-radius: var(--radius); display: inline-flex;
  align-items: center; justify-content: center; color: var(--fg); font-size: 15px;
  border: 1px solid var(--line-strong);
}
.btn-icon .ico { width: 20px; height: 20px; display: block; }
                                                                         
                                                                          
                                                              
.btn-icon .ico, .strip-ic .ico {
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.shelf-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.shelf-actions .btn-icon { color: var(--fg-muted); }
.shelf-actions .btn-icon:hover { color: var(--fg); }
.btn-icon:active { background: var(--accent-soft); border-color: var(--accent); }
.book-head { display: flex; gap: 20px; align-items: flex-start; }
.book-cover { width: 120px; flex: 0 0 120px; overflow: hidden; border: 1px solid var(--line); }
.book-cover img { width: 100%; height: auto; }
.book-title { font-family: var(--font-prose); font-size: 32px; font-weight: 400; line-height: 1.15; margin: 0 0 6px; }
.book-author { color: var(--fg-muted); font-size: 15px; }
.book-genres { color: var(--fg-muted); font-size: 13px; margin-top: 4px; }
.book-blurb { font-size: 15px; line-height: 1.6; margin: 18px 0 24px; color: var(--fg); }
                                                                  
                                                                  
.book-title-ru { display: block; font-size: 19px; line-height: 1.25; color: var(--fg-muted); margin-top: 6px; }

                                                                             
                                                                          
                                                                       
.book-seo { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.book-seo-crumbs { font-size: 13px; color: var(--fg-muted); margin: 0 0 22px; line-height: 1.5; }
.book-seo-crumbs a { color: var(--accent); }
.book-seo h2 { font-family: var(--font-prose); font-weight: 400; font-size: 23px; line-height: 1.25; margin: 0 0 16px; text-wrap: balance; }
.book-seo-pair { margin: 0 0 20px; }
.book-seo-pair p[lang="en"] { font-family: var(--font-prose); font-size: 18px; line-height: 1.6; margin: 0 0 6px; }
.book-seo-ru { font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); margin: 0; padding-left: 12px; border-left: 2px solid var(--line); }
.book-seo-on { font-size: 14px; color: var(--fg-muted); margin: 26px 0 10px; }
.book-seo-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 0 0 36px; }
.book-seo-levels .btn-secondary { margin-top: 0; }
.book-seo-more { list-style: none; margin: 0; padding: 0; }
.book-seo-more li { border-bottom: 1px solid var(--line); }
.book-seo-more a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-prose); font-size: 18px; color: var(--fg); }
.book-seo-more span { color: var(--fg-muted); font-size: 13px; margin-left: 6px; }
                                                                            
.partial { display: block; color: var(--fg-muted); font-weight: 400; }
.book-title .partial { font-size: 14px; letter-spacing: 0.01em; margin-top: 4px; font-family: var(--font-ui); }

.levels { display: grid; gap: 8px; margin-bottom: 16px; }
.level-opt {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 14px;
  min-height: 44px; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--line);
}
.level-opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.level-opt[data-level="a2"]   { --accent: #557c84; }
.level-opt[data-level="b1"]   { --accent: #446a72; }
.level-opt[data-level="b2"]   { --accent: #365c64; }
.level-opt[data-level="orig"] { --accent: #2d4d55; }
[data-theme="dark"] .level-opt[data-level="a2"]   { --accent: #abcbd1; }
[data-theme="dark"] .level-opt[data-level="b1"]   { --accent: #87acb4; }
[data-theme="dark"] .level-opt[data-level="b2"]   { --accent: #699199; }
[data-theme="dark"] .level-opt[data-level="orig"] { --accent: #557c85; }
.level-badge {
  width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-family: var(--font-mono); font-weight: 500; font-size: 14px;
  background: var(--accent); color: var(--on-accent); flex: 0 0 44px;
}
                                                                
.level-badge .ico { width: 24px; height: 24px; fill: currentColor; }
.level-opt-name { font-weight: 600; font-size: 15px; }
.level-opt-hint { font-size: 13px; color: var(--fg-muted); margin-top: 2px; line-height: 1.4; }
.level-opt-min { white-space: nowrap; }

.btn-primary {
  display: block; width: 100%; min-height: 48px; padding: 14px; border-radius: var(--radius);
  text-align: center; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 16px;
}
.btn-primary:active { filter: brightness(1.06); }
.btn-primary .sub { display: block; font-weight: 400; font-size: 12.5px; opacity: 0.85; margin-top: 2px; }
.btn-secondary {
  display: block; width: 100%; min-height: 44px; padding: 12px; border-radius: var(--radius);
  text-align: center; border: 1px solid var(--line-strong); color: var(--fg); font-weight: 600; margin-top: 8px;
}
.btn-secondary:active { background: var(--accent-soft); }

.toc { margin-top: 32px; }
.toc-h { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 8px; }
.toc-part { font-family: var(--font-prose); font-size: 18px; margin: 20px 0 6px; color: var(--fg); }
.toc-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 6px;
  min-height: 44px; border-bottom: 1px solid var(--line);
}
.toc-item:active { background: var(--accent-soft); }
.toc-num { font-family: var(--font-prose); font-size: 17px; min-width: 44px; }
.toc-words { font-family: var(--font-mono); color: var(--fg-muted); font-size: 11px; margin-left: auto; white-space: nowrap; }
.toc-item .chips { margin: 0; }
.toc-item .chip { font-size: 10px; padding: 2px 6px; }
.toc-item.current { background: var(--accent-soft); }

                                                                                   
                                                                   
                                                                        
                                                           
                                                                          
                                                                      
.reader {
  position: fixed; inset: 0; background: var(--page-bg); color: var(--fg);
  overflow: hidden; overflow: clip;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
                                                                           
                                                                           
                                                                               
                                                                           
                                                                   
                                                                              
                                                                               
                                                                             
                                                                               
.rd-stage {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 44px + 10px);                                          
  bottom: calc(env(safe-area-inset-bottom) + 26px);
  left: max(env(safe-area-inset-left), 22px);
  right: max(env(safe-area-inset-right), 22px);
  padding: 4px 0;
  overflow: hidden; overflow: clip; touch-action: none;
}
                                                                             
                                                                           
@media (min-width: 700px) {
  .rd-stage { left: max(env(safe-area-inset-left), calc((100vw - 640px) / 2)); right: max(env(safe-area-inset-right), calc((100vw - 640px) / 2)); top: 72px; bottom: 40px; }
}
@media (min-width: 1000px) {
  .rd-stage { left: max(48px, calc((100vw - 1000px) / 2)); right: max(48px, calc((100vw - 1000px) / 2)); }
}
.rd-content {
  font-family: var(--font-prose);
  font-size: var(--fs, 19px);
  line-height: 1.75;
  height: 100%;
  column-fill: auto;
  overflow: visible;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  hyphens: auto; -webkit-hyphens: auto;
  text-align: justify;
  orphans: 2; widows: 2;
}
.rd-content.font-sans { font-family: var(--font-sans); line-height: 1.7; }
.rd-content.animate { transition: transform .28s cubic-bezier(.2,.7,.2,1); }
                                                                            
                                                                             
.rd-content p { margin: 0 0 0.7em; text-indent: 0; }
.rd-content p.quote { margin: 0.5em 0 0.7em 1.4em; font-style: italic; }
.rd-content p.quote + p.quote { margin-top: 0; }
.rd-content p.quote em { font-style: normal; }
.rd-content h1, .rd-content h2, .rd-content h3 {
  font-family: var(--font-prose); font-weight: 400; text-align: center;
  font-size: 1.35em; line-height: 1.25; letter-spacing: 0; text-transform: none;
  margin: 1.2em 0 1.4em; break-after: avoid; -webkit-column-break-after: avoid;
}
.rd-content h1 { font-size: 1.45em; }
.rd-content hr { border: 0; height: 1.8em; margin: 0; break-inside: avoid; }
.rd-content hr::after { content: ""; display: block; width: 3em; height: 1px; background: var(--fg-muted); opacity: 0.5; margin: 0.9em auto 0; }
.rd-content .w { cursor: pointer; }
                                                                             
                                                                          
                                                                          
                                                                            
                                                                     
.rd-content .w.hl { background: var(--hl); box-shadow: inset 0 -2px 0 var(--accent); }
                                                                            
                                                                            
                                                                        
                                                                           
.rd-content .w.hl.hl-j, .tr-en .hl.hl-j { padding-right: 0.3em; margin-right: -0.3em; }
.rd-content .s.hl-s { background: var(--hl-s); }
.rd-content p.hl-p { background: var(--hl-s); }
.rd-end { text-align: center; padding-top: 2.5em; text-indent: 0; break-before: avoid; }
.rd-end .rd-end-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 1.4em; }
.rd-end button {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; padding: 12px 20px; min-height: 44px;
  border-radius: var(--radius); background: var(--accent); color: var(--on-accent); margin: 6px;
  display: inline-block; text-indent: 0;
}
.rd-end button.ghost { background: none; border: 1px solid var(--line-strong); color: var(--fg); }

.rd-foot {
  position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 6px);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); pointer-events: none;
}
                                                                              
.rd-page {
  pointer-events: auto; font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted);
  letter-spacing: 0.08em; padding: 6px 12px; border-radius: 2px; background: var(--accent-soft);
  min-width: 72px; text-align: center;
}
.rd-page:active { background: var(--accent); color: var(--on-accent); }
.rd-back-jump {
  pointer-events: auto; font-family: var(--font-ui); font-size: 12px; padding: 7px 12px;
  border-radius: 2px; background: var(--accent); color: var(--on-accent); font-weight: 600; white-space: nowrap;
}
                                                                             
                                                                              
                                                          
.rd-probe { position: absolute; left: -200vw; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; z-index: -1; }
                                                                                  
.rd-content.swap { opacity: 0; }
.rd-content { transition: opacity .14s ease; }
.rd-content p.flash { animation: flash 1.4s ease-out; }
@keyframes flash { from { background: var(--hl); } to { background: transparent; } }
.rd-progress { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); opacity: 0.7; width: 0; transition: width .2s; }

                                                                             
.rd-top {
  position: absolute; left: 0; right: 0; top: 0; padding: env(safe-area-inset-top) 6px 0;
  height: calc(env(safe-area-inset-top) + 44px); display: flex; align-items: center; gap: 2px;
  background: var(--page-bg); font-family: var(--font-ui); z-index: 4;
}
.rd-top .btn-icon { width: 38px; height: 38px; font-size: 14px; }
.rd-top .btn-icon .ico { width: 18px; height: 18px; }
.rd-top-title { flex: 1; min-width: 0; text-align: center; font-size: 13px; padding: 0 2px; }
.rd-top-title .t1 { font-family: var(--font-prose); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-top-title .t2 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
                                                                                    
.pill {
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; padding: 7px 8px 7px 10px;
  border-radius: 2px; background: var(--accent); color: var(--on-accent); letter-spacing: 0.06em;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; min-height: 32px;
}
.pill .caret { font-size: 9px; opacity: 0.8; font-weight: 400; }
.pill .ico { width: 15px; height: 15px; fill: currentColor; display: block; }
.pill:active { filter: brightness(1.08); }

                                                                             
.bubble {
  position: absolute; z-index: 5; max-width: min(320px, 86vw);
  background: var(--fg); color: var(--bg); font-family: var(--font-ui);
  padding: 9px 12px; border-radius: var(--radius);
  font-size: 14.5px; line-height: 1.35; cursor: pointer; opacity: 0; transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease; pointer-events: none;
}
.bubble.show { opacity: 1; transform: none; pointer-events: auto; }
.bubble .b-line { display: block; }
.bubble .b-word { font-family: var(--font-prose); font-weight: 500; opacity: 0.7; font-size: 14px; margin-right: 6px; }
.bubble .b-ru { font-weight: 500; }
.bubble .b-more { opacity: 0.6; margin-left: 8px; font-size: 12px; }
                                                                       
                                                     
.bubble .b-gen { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.3; opacity: 0.65; }
.bubble .b-gen .b-lab { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; margin-right: 5px; opacity: 0.8; }
.bubble::after {
  content: ""; position: absolute; left: var(--arrow-x, 50%); bottom: -5px; width: 10px; height: 10px;
  background: var(--fg); transform: translateX(-50%) rotate(45deg);
}
.bubble.below::after { bottom: auto; top: -5px; }
.bubble.muted { background: var(--bg-elev); color: var(--fg-muted); border: 1px solid var(--line-strong); }
.bubble.muted::after { background: var(--bg-elev); border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); }
.bubble.below.muted::after { border: 0; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }

                         
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 8; }
.scrim.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; font-family: var(--font-ui);
  background: var(--sheet-bg); color: var(--fg); border-top: 1px solid var(--line-strong);
  border-radius: var(--radius) var(--radius) 0 0;
  max-height: 88%; display: flex; flex-direction: column;
  transform: translateY(105%); transition: transform .26s cubic-bezier(.2,.7,.2,1);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.show { transform: translateY(0); }
@media (min-width: 700px) {
  .sheet { left: 50%; right: auto; width: 560px; border: 1px solid var(--line-strong); transform: translate(-50%, 105%); }
  .sheet.show { transform: translate(-50%, 0); }
}
.sheet-handle { width: 36px; height: 3px; background: var(--line-strong); margin: 9px auto 4px; flex: 0 0 auto; }
                                                                              
                                                                       
                                                                      
                                     
.sheet-handle, .sheet-head, .sheet-gloss, .sheet-title, .nav-page, .seg, .set-row,
.bubble, .scrim, .rd-top, .rd-foot { touch-action: none; }
.nav-slider { touch-action: none; }                                           
                                                                  
                                                                        
.sheet-inner { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.sheet.dragging { transition: none; }
.sheet-head { padding: 6px 18px 4px; flex: 0 0 auto; display: flex; align-items: baseline; gap: 10px; }
.sheet-head .h-word { font-family: var(--font-prose); font-size: 22px; font-weight: 500; }
.sheet-head .h-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-left: auto; white-space: nowrap; }
                                                  
.sheet-gloss { padding: 0 18px 8px; flex: 0 0 auto; }
.sheet-gloss .g-row { display: flex; gap: 8px; align-items: baseline; line-height: 1.4; margin-top: 2px; }
.sheet-gloss .g-lab { flex: 0 0 84px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); }
.sheet-gloss .g-val { font-size: 15px; }
.sheet-gloss .g-row + .g-row .g-val { font-size: 14px; color: var(--fg-muted); }
.sheet-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; padding: 0 18px 18px; touch-action: pan-y;
  user-select: text; -webkit-user-select: text;
}
.seg[hidden] { display: none; }
.seg {
  display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden; margin: 4px 0 14px; flex: 0 0 auto;
}
.seg button { flex: 1; padding: 10px 6px; font-size: 13.5px; font-weight: 500; color: var(--fg-muted); min-height: 40px; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.tr-en { font-family: var(--font-prose); font-size: 16px; line-height: 1.6; color: var(--fg-muted); margin: 0 0 10px; }
.tr-en .hl { background: var(--hl); }
                                                                            
                                                                        
                                                                            
                                                                          
.tr-ru { font-size: 16px; line-height: 1.6; margin: 0 0 14px; white-space: pre-line; }
.tr-none { font-size: 14px; color: var(--fg-muted); font-style: italic; margin: 0 0 14px; }
.lvl-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 12px; }
.lvl-row .lab { font-size: 13px; color: var(--fg-muted); }
.lvl-btn {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; padding: 8px 12px;
  min-height: 36px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--fg);
}
.lvl-btn[data-level="a2"]   { color: #557c84; border-color: #557c84; }
.lvl-btn[data-level="b1"]   { color: #446a72; border-color: #446a72; }
.lvl-btn[data-level="orig"] { color: #2d4d55; border-color: #2d4d55; }
[data-theme="dark"] .lvl-btn[data-level="a2"]   { color: #abcbd1; border-color: #4c6c72; }
[data-theme="dark"] .lvl-btn[data-level="b1"]   { color: #87acb4; border-color: #47646a; }
[data-theme="dark"] .lvl-btn[data-level="orig"] { color: #557c85; border-color: #3f5459; }
.lvl-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.alt-text {
  font-family: var(--font-prose); font-size: 16px; line-height: 1.7; padding: 12px 14px;
  border-left: 2px solid var(--accent); background: var(--accent-soft); margin: 0 0 12px;
}
.alt-text .dim { opacity: 0.5; }
.alt-text .match { opacity: 1; background: var(--hl); }
.alt-text .alt-p + .alt-p { margin-top: 0.5em; }
.sheet .note { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }

                                                   
.nav-page { padding: 0 18px 6px; flex: 0 0 auto; }
.nav-page-lab { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--fg-muted); margin-bottom: 4px; }
.nav-page-lab .nv-now { color: var(--fg); display: inline-flex; align-items: center; gap: 6px; }
                                                                           
                                             
.nv-page {
  width: 5ch; min-height: 30px; padding: 4px 6px; text-align: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--fg);
  background: var(--bg-input); border: 1px solid var(--line-strong); border-radius: 2px;
  -webkit-appearance: none; appearance: none; -moz-appearance: textfield;
}
.nv-page::-webkit-outer-spin-button, .nv-page::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nv-page:focus { outline: none; border-color: var(--accent); }
.nav-slider { width: 100%; margin: 2px 0 4px; accent-color: var(--accent); height: 26px; }
.nav-body { padding-top: 2px; }
.toc-list { padding-bottom: 4px; }
.toc-row {
  display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left;
  padding: 12px 4px; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.toc-row:last-child { border-bottom: 0; }
.toc-row.current { background: var(--accent-soft); font-weight: 600; }
.toc-row[disabled] { opacity: 0.45; }
.toc-row .toc-name { font-family: var(--font-prose); font-size: 17px; }
.toc-row .toc-note { font-size: 11.5px; color: var(--fg-muted); }
.toc-row .toc-w { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); white-space: nowrap; }
.find-q {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--bg-input); color: var(--fg); -webkit-appearance: none;
}
.find-q:focus { outline: none; border-color: var(--accent); }
.find .note { margin: 8px 0 4px; }
.find-row {
  display: block; width: 100%; text-align: left; padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}
.find-row:last-child { border-bottom: 0; }
.find-row .find-ch { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 3px; }
.find-row .find-txt { display: block; font-size: 14.5px; line-height: 1.5; }
.find-row .find-txt[lang="en"] { font-family: var(--font-prose); font-size: 15.5px; }
.find-row mark { background: var(--hl); color: inherit; padding: 0 1px; }

                               
.sheet-title { font-family: var(--font-prose); font-weight: 400; font-size: 22px; padding: 4px 18px 12px; flex: 0 0 auto; }
.opt-list { padding: 0 12px 10px; overflow-y: auto; min-height: 0; touch-action: pan-y; }
.opt-list .level-opt { margin-bottom: 8px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; min-height: 56px; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-lab { font-size: 15px; }
.set-ctl { display: flex; gap: 6px; }
.set-btn {
  padding: 10px 14px; min-height: 44px; min-width: 44px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); color: var(--fg); font-weight: 500; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.set-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.set-btn.big { font-size: 18px; }
.set-btn.wide { width: 100%; margin: 12px 0 4px; }
.theme-dot { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.theme-dot[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }

          
.toast {
  position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 44px); transform: translateX(-50%) translateY(10px);
  background: var(--fg); color: var(--bg); font-family: var(--font-ui); font-size: 13.5px;
  padding: 10px 14px; border-radius: var(--radius);
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 20;
  white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--fg-muted); font-family: var(--font-ui); font-size: 14px; }

                                                                                  
                                                                                
                                           
                                                                             
                                                                             
                                                                            
                                                                        
                                                                          
                                                          
                                                                            
                    
.modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: auto;
  height: 100%;
  height: 100dvh;
  z-index: 50; display: flex; align-items: flex-end; justify-content: center;
}
                                                                       
                                                                          
                                                                         
html.sheet-open, html.sheet-open body { overflow: hidden; overscroll-behavior: none; }
.modal-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .18s; }
.modal.show .modal-scrim { opacity: 1; }
.modal-card {
                                                                       
                                                                         
                                                                             
                                                                   
  position: relative; width: 100%; max-width: 520px; overflow-y: auto;
  max-height: 88%;
  max-height: 88dvh;
  background: var(--sheet-bg); border-top: 1px solid var(--line-strong);
  border-radius: var(--radius) var(--radius) 0 0;
                                                                 
  padding: calc(env(safe-area-inset-top) + 22px) 14px calc(env(safe-area-inset-bottom) + 20px);
  transform: translateY(16px); opacity: 0; transition: transform .18s ease, opacity .18s ease;
}
.modal.show .modal-card { transform: none; opacity: 1; }
@media (min-width: 640px) {
  .modal { align-items: center; }
                                                                      
                                 
  .modal-card { max-width: 700px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 32px; }
}
.modal-close {
  position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--fg-muted);
}
.modal-close:active { background: var(--accent-soft); }
.wel-lead { font-size: 16px; line-height: 1.6; margin: 18px 0 18px; color: var(--fg); text-wrap: pretty; }
                                                                           
                                                                            
                                                                         
                                                                             
                          
.wel-ex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 620px) { .wel-ex { gap: 14px; } }
@media (max-width: 359px) { .wel-ex { grid-template-columns: 1fr; gap: 12px; } }
.wel-ex-col { border-left: 2px solid var(--accent); padding: 2px 0 2px clamp(7px, 2vw, 10px); }
.wel-ex-col[data-level="a2"]   { --accent: #557c84; }
.wel-ex-col[data-level="b1"]   { --accent: #446a72; }
.wel-ex-col[data-level="orig"] { --accent: #2d4d55; }
[data-theme="dark"] .wel-ex-col[data-level="a2"]   { --accent: #abcbd1; }
[data-theme="dark"] .wel-ex-col[data-level="b1"]   { --accent: #87acb4; }
[data-theme="dark"] .wel-ex-col[data-level="orig"] { --accent: #557c85; }
                                                                             
                                                                         
                                                                      
                                                                             
.wel-ex-h { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; flex-wrap: wrap; }
.wel-ex-badge {
  width: 26px; height: 26px; flex: 0 0 26px; font-size: 11px; border-radius: 3px;
}
.wel-ex-badge .ico { width: 15px; height: 15px; }
.wel-ex-lab {
  font-family: var(--font-mono); font-size: clamp(9.5px, 2.5vw, 11px); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); line-height: 1.2;
}
                                                                           
                                                   
@media (max-width: 419px) {
  .wel-ex-h { gap: 5px; }
  .wel-ex-badge { width: 24px; height: 24px; flex: 0 0 24px; font-size: 10px; }
}
.wel-ex-col p {
  margin: 0; font-family: var(--font-prose); font-size: clamp(11.5px, 3.1vw, 15px);
  line-height: 1.5; color: var(--fg);
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
}
@media (min-width: 620px) { .wel-ex-col p { line-height: 1.55; } }
                                                                       
                                                                         
                                                                         
                                  
.wel-ex-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-top: 10px;
}
.wel-ex-src {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-muted); text-align: right;
}
@media (max-width: 419px) {
  .wel-ex-foot { flex-direction: column; align-items: flex-start; gap: 0; }
  .wel-ex-src { text-align: left; }
}
                                                                     
.wel-tg {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--fg);
}
.wel-tg:active { background: var(--accent-soft); border-color: var(--accent); }
.wel-tg-ic { flex: none; width: 22px; height: 22px; color: var(--accent); }
.wel-tg-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wel-tg-txt { flex: 1; min-width: 0; }
.wel-tg-txt b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.wel-tg-txt span { display: block; font-size: 13px; color: var(--fg-muted); line-height: 1.4; margin-top: 2px; }
.wel-tg-go { flex: none; color: var(--accent); font-size: 20px; line-height: 1; }

.wel-note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13.5px; line-height: 1.5; color: var(--fg-muted); margin: 14px 0 0; text-wrap: pretty;
}
.wel-note + .wel-note { margin-top: 8px; }
.wel-body .btn-primary, .wel-body .btn-secondary { margin-top: 20px; }
                                                                       
                                                               
.wel-h { font-family: var(--font-prose); font-size: 22px; line-height: 1.25; }
.wel-more {
  font-size: 13.5px; color: var(--accent); min-height: 44px; line-height: 44px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}

                                                                          
                                                                              
                                                                             
                                                   
.wel-two { display: flex; gap: 10px; margin-top: 10px; }
.wel-btn {
  flex: 1 1 0; min-width: 0; min-height: 46px; padding: 12px 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: transparent; color: var(--fg); font: inherit;
  font-weight: 600; font-size: 14px; line-height: 1.25; text-align: center;
  cursor: pointer;
}
.wel-btn:active { background: var(--accent-soft); border-color: var(--accent); }
.wel-btn-one { width: 100%; margin-top: 14px; }
                                                                           
                                                 
@media (max-width: 359px) {
  .wel-two { flex-direction: column; }
}
.wel-levels { margin-top: 8px; }
.wel-levels .lv { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wel-levels .lv:last-child { border-bottom: 0; }
.wel-levels .lv b { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; flex: 0 0 72px; color: var(--accent); }
.wel-levels .lv span { font-size: 13.5px; color: var(--fg-muted); line-height: 1.5; }

                                                                                
                                                                            
                                                                      
                                                                             
                                                
.onb { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.onb-mask { position: absolute; background: rgba(9, 16, 21, 0.45); pointer-events: auto; }
.onb.pass-through .onb-mask { pointer-events: none; }                                
.onb-hole {
  position: absolute; border-radius: var(--radius); pointer-events: none;
  outline: 1px solid var(--accent); outline-offset: 0;
}
.onb-hole.pulse { animation: onb-pulse 1.2s ease-in-out infinite; }
@keyframes onb-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .onb-hole.pulse { animation: none; } }
.onb-card {
  position: absolute; width: min(320px, calc(100vw - 32px)); background: var(--sheet-bg); color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 14px 10px;
  font-family: var(--font-ui); pointer-events: auto;
}
.onb-card::after {
  content: ""; position: absolute; left: var(--arrow-x, 50%); width: 10px; height: 10px;
  background: var(--sheet-bg); border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong);
  transform: translateX(-50%) rotate(45deg);
}
.onb-card.above::after { bottom: -6px; transform: translateX(-50%) rotate(225deg); }
.onb-card.below::after { top: -6px; }
.onb-text { font-size: 15px; line-height: 1.5; margin: 0 0 12px; text-wrap: pretty; }
.onb-foot { display: flex; align-items: center; gap: 12px; }
.onb-dots { display: flex; gap: 5px; }
.onb-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.onb-dots i.on { background: var(--accent); }
.onb-skip { font-size: 13px; color: var(--fg-muted); padding: 10px 4px; min-height: 40px; }
.onb-next {
  margin-left: auto; padding: 9px 16px; min-height: 40px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 14px;
}
                                                                        
.swipe-hint {
  position: absolute; right: 14px; top: 50%; z-index: 21; pointer-events: none;
  font-size: 34px; line-height: 1; color: var(--accent); opacity: 0;
  animation: swipe-go 1.5s ease-in-out 3;
}
.swipe-hint.words { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
@keyframes swipe-go {
  0% { opacity: 0; transform: translate(10px, -50%); }
  35% { opacity: 0.85; transform: translate(0, -50%); }
  100% { opacity: 0; transform: translate(-26px, -50%); }
}
@media (prefers-reduced-motion: reduce) { .swipe-hint { animation: none; opacity: 0.7; } }

                                                                           
                                                                        
.lite-tip {
  position: absolute; z-index: 21; pointer-events: none; max-width: min(300px, calc(100vw - 24px));
  padding: 8px 12px; border-radius: var(--radius); background: var(--fg); color: var(--bg);
  font-family: var(--font-ui); font-size: 14px; line-height: 1.4;
  animation: lite-in .32s cubic-bezier(.2,.7,.2,1);
}
                                                                         
.lite-swipe {
  position: absolute; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 4px); z-index: 21; pointer-events: none;
  display: flex; align-items: center; gap: 6px; height: 24px;
  font-family: var(--font-ui); font-size: 12.5px; color: var(--accent); font-weight: 600;
  animation: lite-in .32s cubic-bezier(.2,.7,.2,1);
}
.lite-swipe-arrow { display: inline-block; font-size: 22px; line-height: 1; animation: lite-swipe 1.5s ease-in-out infinite; }
@keyframes lite-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes lite-swipe { 0%, 100% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(-8px); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .lite-tip, .lite-swipe, .lite-swipe-arrow { animation: none; } }

                                                                                    
.entry-strip {
  position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 44px); z-index: 4;
  height: 46px; padding: 5px 16px 0; text-align: center; background: var(--page-bg);
  border-bottom: 1px solid var(--line); font-family: var(--font-ui); font-size: 12.5px; line-height: 1.45;
}
.entry-strip-what { color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-strip-links { color: var(--fg-muted); }
.entry-strip-links button, .entry-strip-links a { color: var(--accent); font-weight: 600; font-size: 12.5px; padding: 0 2px; }
.reader.rd-has-strip .rd-stage { top: calc(env(safe-area-inset-top) + 44px + 46px + 10px); }
@media (min-width: 700px) {
  .reader.rd-has-strip .rd-stage { top: calc(72px + 46px); }
}

                                                      
.entry-pick { max-width: 640px; }
.entry-lead { font-family: var(--font-prose); font-size: 22px; line-height: 1.3; margin: 0 0 6px; text-wrap: pretty; }
.entry-start { color: var(--fg-muted); font-size: 14px; margin: 0 0 18px; }
.entry-cards { display: flex; flex-direction: column; gap: 14px; }
.entry-card {
  display: flex; gap: 14px; padding: 14px; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.entry-cover { width: 72px; flex: 0 0 72px; aspect-ratio: 2 / 3; overflow: hidden; background: var(--bg-input); align-self: flex-start; }
.entry-cover img { width: 100%; height: 100%; object-fit: cover; }
.entry-body { min-width: 0; flex: 1; }
.entry-title { font-family: var(--font-prose); font-size: 19px; line-height: 1.2; }
.entry-meta { font-size: 12.5px; color: var(--fg-muted); margin-top: 3px; }
.entry-hook { font-size: 14px; line-height: 1.45; margin: 8px 0 10px; text-wrap: pretty; }
.entry-btns { display: flex; gap: 8px; }
.entry-btns .btn-primary, .entry-btns .btn-secondary { flex: 1; min-height: 42px; padding: 10px 6px; font-size: 14px; margin-top: 0; }
.entry-which {
  display: block; margin: 18px auto 0; padding: 10px 8px; min-height: 44px;
  color: var(--accent); font-weight: 600; font-size: 15px;
}
.entry-all { margin-top: 10px; }

                                                                          

                                                                          
                                                                        
                                                                          
                                                                           
                                                                          
                                            
                                                                       
                                                                       
.trial {
  display: block; margin: 18px 0 4px;
  padding: 12px 14px; background: var(--bg-elev);
  border: 1px solid var(--line); border-left: 2px solid var(--accent);
  border-radius: var(--radius); color: var(--fg);
}
.trial:active { background: var(--accent-soft); }
.trial-txt { font-size: 13.5px; line-height: 1.45; }
.trial-txt b { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 2px; }

                                                                           
                                                           
.ava {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-ui); font-weight: 600; font-size: 13px; line-height: 1;
}
.ava.lg { width: 46px; height: 46px; font-size: 20px; }
                                                      
                                                                            
                                                                             
                                                                 
.btn-icon.has-ava {
  padding: 0; border: 0; background: none; width: 40px; height: 40px;
}
.btn-icon.has-ava:active { background: none; }
                                                                         
                                                                           
                                                                         
                                                                           
                           
.btn-icon.has-ava > .ava { width: 36px; height: 36px; font-size: 17px; }
.btn-icon.has-ava > .ava-ring { --size: 36px; }

             
.acct-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.acct-name { font-weight: 600; font-size: 17px; line-height: 1.3; }
.acct-sub { font-size: 13px; color: var(--fg-muted); line-height: 1.45; margin: 2px 0 0; }
.acct-guest {
  margin: 4px 0 18px; padding: 16px; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.acct-guest .login { margin-top: 14px; }
.acct-rows {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev); padding: 4px 14px 12px;
}
.acct-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.acct-row:last-of-type { border-bottom: 0; }
.acct-row span { color: var(--fg-muted); }
.acct-row b { font-weight: 600; text-align: right; }
.acct-note { font-size: 12.5px; line-height: 1.5; color: var(--fg-muted); margin: 4px 0 0; }
.acct-list { display: flex; flex-direction: column; gap: 10px; }
.acct-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
}
.acct-item:active { background: var(--accent-soft); }
.acct-cover { flex: none; width: 44px; }
.acct-cover img { display: block; width: 100%; border-radius: 2px; }
.acct-body { flex: 1; min-width: 0; }
.acct-title { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.acct-where { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-muted); margin: 3px 0 6px; }
.acct-out { margin-top: 28px; }

                                                                         
                                         

                                                                             
                                                                     
                                                              
                                                                           
                                                           
.auth .modal-card { text-align: left; }
                                                                       
                                                                          
                                                                           
                                                                 
.modal.buy { z-index: 51; }
                                                                       
.auth-wall .modal-card { position: relative; }
.auth-wall .auth-h { padding-right: 40px; }
                                                                           
                                                
.paywall-back { display: inline-block; margin-top: 16px; text-decoration: none; }
.auth-h { font-weight: 600; font-size: 18px; line-height: 1.3; margin: 4px 0 10px; }
.auth-t { font-size: 14.5px; line-height: 1.55; margin: 0 0 18px; text-wrap: pretty; }
.auth-note { font-size: 12.5px; line-height: 1.5; color: var(--fg-muted); margin: 12px 0 0; }
.auth-err { font-size: 13px; line-height: 1.5; color: var(--accent); margin: 0 0 14px; }
.auth .btn-secondary { margin-top: 14px; }

                                                                          
                                                                            
                                                                       
                                                                     
.login-or {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 12px; font-size: 12.5px; color: var(--fg-muted);
}
.login-or::before, .login-or::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

                                                                             
                                                                        
                                                                           
                                                                
                                                            
.login-ways { display: flex; gap: 14px; justify-content: center; }
.login-way {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; flex: none; margin: 0;
  transition: transform 0.12s ease;
}
.login-way:active { transform: scale(0.94); }
.login-way .way-mark { width: 100%; height: 100%; display: block; }
.login-way-google { background: #fff; border: 1px solid #747775; }
.login-way-yandex { background: #FC3F1D; }
                                                                       
                                                                        
                                                                        
                                             
[data-theme="dark"] .login-way-google { background: #131314; border-color: #8E918F; }
                                                                          
                            
.login-mail, .login-code { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.login-mail input, .login-code input {
  flex: 1 1 190px; min-width: 0; min-height: 44px; padding: 11px 13px;
  background: var(--bg-input); border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--fg);
  font-family: var(--font-ui); font-size: 16px;                                   
}
.login-mail input:focus, .login-code input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.login-mail .btn-secondary, .login-code .btn-primary {
  flex: 0 1 auto; width: auto; margin-top: 0; padding-left: 18px; padding-right: 18px;
}
                                                                           
.login-code input {
  font-family: var(--font-mono); letter-spacing: 0.24em; text-align: center;
  flex-basis: 150px;
}
.login-sent { font-size: 14px; line-height: 1.5; margin: 0 0 12px; overflow-wrap: anywhere; }
.login-hint { font-size: 12.5px; line-height: 1.45; color: var(--fg-muted); margin: 10px 0 0; }
.login-again { display: flex; gap: 8px; margin-top: 12px; }
                                                                        
                                    
@media (max-width: 460px) {
  .login-mail .btn-secondary, .login-code .btn-primary { flex: 1 1 100%; }
}
                                                                      
                                                                           
.auth-spin { display: flex; gap: 6px; justify-content: center; margin: 22px 0; }
.auth-spin i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.3; animation: auth-beat 1.2s ease-in-out infinite; }
.auth-spin i:nth-child(2) { animation-delay: 0.15s; }
.auth-spin i:nth-child(3) { animation-delay: 0.3s; }
@keyframes auth-beat { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .auth-spin i { animation: none; opacity: 0.6; } }

                                                                           
                                                                      

                                                                       
                                                                       
                                                                  
                                                              

.buy-plate {
  display: flex; align-items: center; gap: 14px;
  margin: 8px 0 4px; padding: 12px 14px;
  background: var(--bg-elev); border: 1px solid var(--line);
                                                                           
                                                                              
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
}
.buy-plate-txt { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--fg-muted); }
.buy-plate-txt b {
  display: block; font-weight: 600; font-size: 14.5px; color: var(--fg);
  margin-bottom: 3px; letter-spacing: -0.01em;
}
.buy-plate-go {
  flex: none; min-height: 40px; padding: 10px 18px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.buy-plate-go:active { filter: brightness(1.06); }
                                                                            
                                                                             
                                  
.buy-plate-ic { flex: none; width: 22px; height: 22px; color: var(--accent); }
.buy-plate-ic .ico { width: 22px; height: 22px; display: block; }
                                                                           
                                             
@media (max-width: 419px) {
  .buy-plate { flex-wrap: wrap; }
  .buy-plate-go { width: 100%; }
}

                                                                       
                                                            
.buy .modal-card { text-align: left; }
                                                                           
                                                                             
                                                                        
                       
.buy .modal-close {
  position: sticky; float: right; top: -8px; right: 0; margin: -8px -6px 0 0;
  background: var(--sheet-bg); border-radius: 50%;
}
.buy-h {
  font-weight: 600; font-size: 18px; line-height: 1.3;
  margin: 4px 40px 12px 0; letter-spacing: -0.01em;
}
.buy-h2 { font-weight: 600; font-size: 17px; line-height: 1.3; margin: 0 0 8px; }
.buy-lead { font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); margin: 0 0 20px; text-wrap: pretty; }
.buy-note { text-align: center; padding: 8px 0 4px; }
.buy-note .buy-lead { margin-bottom: 18px; }
.buy-note .btn-primary { margin-top: 4px; }
.buy-big-ic { display: block; width: 40px; height: 40px; margin: 4px auto 14px; color: var(--accent); }
.buy-big-ic .ico { width: 40px; height: 40px; display: block; stroke-width: 2; }

                                                                           
                                      
.buy-field { display: block; margin: 0 0 4px; }
                                                                         
                                                         
.buy-field[hidden] { display: none; }
.buy-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.buy-input {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg-input); border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--fg);
  font-family: var(--font-ui); font-size: 16px;                                  
}
.buy-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.buy-hint { display: block; font-size: 12.5px; line-height: 1.45; color: var(--fg-muted); margin-top: 6px; }
.buy-err { font-size: 13px; line-height: 1.5; color: var(--accent); margin: 8px 0 0; font-weight: 500; }

                                                                           
                                                                         
                         
.buy-methods { margin: 18px 0 4px; }
.buy-methods-h { font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.buy-group + .buy-group { margin-top: 12px; }
.buy-group-h {
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--fg-muted); margin-bottom: 6px;
}
                                                                       
                                                                         
                                                                           
                                                            
.buy-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 339px) { .buy-ways { grid-template-columns: 1fr; } }

.buy-way {
  display: flex; align-items: center; gap: 9px; min-height: 48px;
  padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-input);
  cursor: pointer; position: relative;
}
                                                                      
                                                                           
                                 
.buy-way input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.buy-way:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.buy-way:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-soft); }
.buy-way-ic { flex: none; width: 24px; height: 24px; color: var(--fg-muted); }
.buy-way:has(input:checked) .buy-way-ic { color: var(--accent); }
.buy-way-ic .ico {
  width: 24px; height: 24px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.buy-way-txt { min-width: 0; }
.buy-way-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.buy-way-note { display: block; font-size: 11.5px; line-height: 1.35; color: var(--fg-muted); margin-top: 2px; }

.buy-submit { margin-top: 20px; }
.buy-secure { font-size: 12px; line-height: 1.5; color: var(--fg-muted); margin: 12px 0 0; text-align: center; }

                                                                         
                                                                     
                                                                     
                                         
.buy-terms, .login-legal, .wel-legal, .acct-legal {
  font-size: 12px; line-height: 1.5; color: var(--fg-muted); text-wrap: pretty;
}
.buy-terms a, .login-legal a, .wel-legal a, .acct-legal a, .foot-note a {
  color: inherit; text-decoration: underline; text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.buy-terms { margin: 12px 0 0; text-align: center; }
.login-legal { margin: 14px 0 0; }
.wel-legal { margin: 16px 0 0; text-align: center; }
.acct-legal { margin: 36px 0 0; }

                                                                         
                         
.buy-wait { display: flex; gap: 6px; justify-content: center; margin: 22px 0; }
.buy-wait i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  opacity: 0.3; animation: auth-beat 1.2s ease-in-out infinite;
}
.buy-wait i:nth-child(2) { animation-delay: 0.15s; }
.buy-wait i:nth-child(3) { animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) { .buy-wait i { animation: none; opacity: 0.6; } }

                                                                            
                             
.buy-page { max-width: 560px; }
.buy-page-head { margin: 4px 0 18px; }
.buy-back {
  min-height: 40px; padding: 8px 0; color: var(--fg-muted);
  font-size: 14px; font-weight: 500;
}
.buy-back::before { content: '‹ '; }
.buy-back:active { color: var(--fg); }
.buy-page .buy-h { font-size: 22px; margin-right: 0; }

                                                                             
                                                                           
                                                                              
                                   
.ava { position: relative; }

                                           
                                                                              
                                                                              
                                                       

                                                                            
                                               

                                                                            
                                                                           
                                                                           
                                                                         
                                                          
.ava-ring {
  position: relative; display: grid; place-items: center;
  --size: 26px; width: var(--size); height: var(--size);
  --ring: calc(var(--size) * 0.05); --gap: calc(var(--size) * 0.075);
}
.ava-ring i {
  position: absolute; inset: calc(var(--ring) * -1); border-radius: 50%;
  background: conic-gradient(var(--ava-r1), var(--ava-r2), var(--ava-r3), var(--ava-r4), var(--ava-r1));
  animation: ava-spin 8s linear infinite;
}
.ava-ring::after {
                                                                          
                                                                        
                                                              
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--ring-gap-bg, var(--bg));
}
.ava-ring .ava {
                                                                           
                                                                              
  position: relative; z-index: 1;
  width: calc(100% - var(--gap) * 2); height: calc(100% - var(--gap) * 2);
                                                                              
                                                                             
                                                                   
  font-size: calc(var(--size) * 0.4);
  background: var(--ava-face); color: #f5f1ea;
  font-family: var(--font-prose); font-weight: 400;
}
.ava-ring.lg { --size: 46px; }
@keyframes ava-spin { to { transform: rotate(360deg); } }
                                                                           
@media (prefers-reduced-motion: reduce) { .ava-ring i { animation: none; } }

                                                                          
                                                                        
                                                                

                                                                        
                                                                              

.plate {
  margin: 10px 0 0; padding: 4px 14px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-left: 2px solid var(--accent); border-radius: var(--radius);
}
.plate:first-of-type { margin-top: 18px; }
                                                               
                                                                         
                                                                        
                                                                           
                                            
.plate + .sec-h,
.plate + .shelf-row,
.plate + .cont { margin-top: 36px; }
.plate-row { display: flex; align-items: center; gap: 8px; min-height: 46px; }

                                                                             
                                                                               
.plate-head {
  flex: 1; min-width: 0; display: flex; align-items: center;
  padding: 8px 0; text-align: left; color: var(--fg);
}
.plate-short {
  flex: 1; min-width: 0; font-weight: 600; font-size: 14px; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
                                                                          
                                                                             
                                                                            
                                                                      
                                                                      
                                                                        
.plate-chev {
  flex: none; width: 34px; height: 34px; margin-right: -5px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent);
  background: var(--accent-soft);
  transition: transform .22s cubic-bezier(.2, .7, .3, 1), background-color .15s;
}
.plate-chev svg {
  width: 15px; height: 15px; display: block;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.plate.is-open .plate-chev { transform: rotate(180deg); }
.plate-toggle:active ~ .plate-chev, .plate-chev:active { background: var(--hl); }

                                                                       
                                                                         
                                                                         
                                                                     
.plate-go {
  flex: none; min-height: 38px; padding: 9px 12px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 13px; white-space: nowrap;
}
.plate-go:active { filter: brightness(1.06); }

.plate-body {
  overflow: hidden;
  transition: height .26s cubic-bezier(.2, .7, .3, 1);
}
.plate-text {
  margin: 0; padding: 2px 0 14px; font-size: 13.5px; line-height: 1.5;
  color: var(--fg-muted); text-wrap: pretty;
}
.plate-text b { display: block; font-weight: 600; color: var(--fg); margin-bottom: 3px; }
@media (prefers-reduced-motion: reduce) {
  .plate-body, .plate-chev { transition: none; }
}
                                                                             
                                         
@media (max-width: 359px) {
  .plate-row { flex-wrap: wrap; }
  .plate-go { width: 100%; margin-bottom: 8px; }
}

                                                                        
                                                                             
                                                                          
                                                                     
.promo { margin: 18px 0 6px; }
.promo-open {
  padding: 6px 0; color: var(--fg-muted); font-size: 13.5px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.promo-open:active { color: var(--fg); }
.promo-form { padding-top: 10px; }
.promo-row { display: flex; gap: 8px; align-items: stretch; }
.promo-input {
  flex: 1 1 auto; min-width: 0; min-height: 42px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card); color: var(--fg);
  font: inherit; font-size: 16px; letter-spacing: .04em; text-transform: uppercase;                                             
}
.promo-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
                                          
                                                                              
                                                                              
                                                                    
                                                                        
.promo-go {
  flex: 0 0 auto; width: auto; min-width: 112px;
  min-height: 42px; padding: 10px 18px; font-size: 14.5px;
}
                                                                          
                                                   
@media (max-width: 380px) {
  .promo-row { flex-wrap: wrap; }
  .promo-input { flex: 1 1 100%; }
  .promo-go { flex: 1 1 100%; width: 100%; }
}
.promo-note { margin: 8px 0 0; font-size: 13px; color: var(--fg-muted); text-wrap: pretty; }
.promo-note.is-good { color: var(--fg); }
                                                                            
                                  
.promo-gift {
  margin: 12px 0 16px; padding: 16px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line); text-align: center;
}
.promo-gift-h { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.promo-gift-code {
  font-family: var(--mono, monospace); font-size: 14px; letter-spacing: .08em;
  color: var(--fg-muted);
}
.acct-sub.is-good { color: var(--fg); }
                                                                         
                                                                           
                                           
.promo-go2 { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.promo-go2 > * { text-align: center; }

                                                                       
                                                                              
.sec-h.sm h3 { font-size: 14px; font-weight: 600; color: var(--fg-muted); margin: 18px 0 6px; }
.acct-doors { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.acct-door {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 13px; background: var(--bg-card); font-size: 14px;
}
.acct-on { color: var(--fg-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.acct-off { color: var(--fg-faint, var(--fg-muted)); opacity: .5; }
.btn-quiet {
  padding: 6px 10px; border-radius: var(--radius); font-size: 13px;
  color: var(--accent); background: transparent; border: 1px solid var(--line);
}
.btn-quiet:active { background: var(--bg-hover, var(--bg-card)); }
                                                                           
                                                                         
                                                                           
                   
                                                                            
                                                                              
                                                                           
                                                                       
.acct-plus {
  padding: 14px 15px 13px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid var(--accent);
}
.acct-plus.is-off { background: var(--bg-card); border-color: var(--line); }
.acct-plus-h { display: flex; align-items: baseline; gap: 9px; }
.acct-plus-n { font-size: 20px; line-height: .72; }
.acct-plus.is-off .acct-plus-n { color: var(--fg-muted); }
.acct-plus-tag {
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--fg-muted);
}
.acct-plus-t { font-size: 13.5px; line-height: 1.45; margin: 6px 0 0; }
.acct-plus-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--fg-muted);
}
.acct-plus-line b { font-size: 14px; color: var(--fg); font-weight: 600; }
.acct-cancel {
  margin-top: 10px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 12.5px; color: var(--fg-muted);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.acct-cancel:active { color: var(--fg); }
                                                                           
                                                                 
                                                                      
                                                                          
                        
.acct-ask { display: flex; gap: 10px; align-items: stretch; margin-top: 18px; }
.acct-ask .btn-primary, .acct-ask .btn-secondary {
  width: auto; flex: 1; margin-top: 0; min-height: 48px; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
                                                                    
                                                                       
                                                                        
                                                                             
                                                       

                                                                             
                                                                              
                                                                

                                                                           
                                                                          
:root {
  --plus-a: #477b85;                                              
  --plus-b: #1d4952;                      
  --plus-glow: rgba(49, 93, 101, .35);
  --plus-ring: 0 0 0 0 transparent;
  --plus-fg: #fdfcf9;                                                  
                                                                           
                                                                            
                                                             

                                                                        
                                                                       
             

                                                                          
                                                                              
                                                      
                                                                             
                                                                        
                                                                              
                                                                          
                                                                            
                                                                            
                                                
  --ava-r1: #477b85; --ava-r2: #2a2e33; --ava-r3: #628f98; --ava-r4: #373b40;
  --ava-face: #265b65;
}
[data-theme="dark"] {
  --plus-a: #84adb5;
  --plus-b: #41727b;
  --plus-glow: rgba(74, 122, 132, .35);
  --plus-ring: 0 0 0 1px rgba(161, 197, 205, .55);
  --ava-r1: #9dc6cf; --ava-r2: #fefbf6; --ava-r3: #57838c; --ava-r4: #f2eee6;
  --ava-face: #326671;
}

                                                                      
                                     
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.plus-mark { display: inline-flex; align-items: center; gap: .235em; }
                                                                       
                                                                   
                                                      
.buy-h .plus-mark { font-size: 36px; }
.plus-mark-w { font-family: var(--font-prose); line-height: .72; }
                                                                              
                                                                         
                                                                          
.plus-badge {
  width: .917em; height: .917em; border-radius: .167em;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(150deg, var(--plus-a), var(--plus-b));
  box-shadow: var(--plus-ring), 0 .06em .22em var(--plus-glow);
  transform: translateY(-.1375em);
}
                               
                                                                      
                                                                       
                                                                              
                                                                       
                                                                          
         
                                                                        
                                                     
.plus-badge svg {
  width: 100%; height: 100%; display: block;
  fill: none; stroke: var(--plus-fg); stroke-width: 6.5;
}
.plus-mark.is-big .plus-badge {
  width: .735em; height: .735em; border-radius: .088em;
  box-shadow: var(--plus-ring), 0 .06em .24em var(--plus-glow);
  transform: translateY(-.14em);
}

                                                                   
                                                                           
                                                                             
                                                   

                                                                           
                                                                            
                                                                            
                                                                           
                                                                            
                        
.plus-offer {
  position: relative;
  margin: 18px 0 0; padding: 18px 16px 16px;
  border: 1px solid var(--line); border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background:
    radial-gradient(115% 130% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--bg-elev);
}
                                                                              
                                                    
.plus-offer + .sec-h,
.plus-offer + .shelf-row,
.plus-offer + .cont { margin-top: 36px; }
                                                                           
                                                                          
                                                                             
.acct-add {
  margin-top: 10px; padding: 8px 0; background: none; border: 0; font: inherit;
  font-size: 13.5px; color: var(--accent); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.acct-add:active { color: var(--fg); }
                                                                              
                                                                         
.link-mail-h { padding: 0 0 6px; }
.link-mail-t { margin: 0 0 14px; }

                                                                          
                                                        
.login-dev {
  margin: 8px 0 0; padding: 8px 10px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius); font-size: 13px; color: var(--fg-muted);
}
.login-dev b { font-family: var(--font-mono); font-size: 16px; letter-spacing: .12em; color: var(--fg); }

.plus-offer-mark { font-size: 27px; line-height: 1; }
                                                                             
                                                                        
                
                                                                            
                                                                           
                         
.plus-offer-list { margin: 15px 0 0; padding: 0; list-style: none; }
.plus-offer-list li {
  position: relative; padding-left: 16px; margin-top: 6px;
  font-size: 13.5px; line-height: 1.45; color: var(--fg); text-wrap: pretty;
}
.plus-offer-list li::before {
  content: ''; position: absolute; left: 0; top: .48em;
  width: 6px; height: 6px; border-radius: 1.5px;
  background: linear-gradient(150deg, var(--plus-a), var(--plus-b));
}
.plus-offer-go {
  display: block; width: 100%; min-height: 46px; margin-top: 16px;
  padding: 13px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 15px;
}
.plus-offer-go:active { filter: brightness(1.06); }
                                                                         
                                                                             
                                                                            
.plus-offer-fine {
  margin: 9px 0 0; font-size: 12.5px; line-height: 1.4;
  color: var(--fg-muted); text-align: center;
}
                                                                           
                                                                              
                                                                                
.plus-offer-was { opacity: .75; text-decoration-thickness: 1px; }
                                                                              
                                                                              
                         
@media (min-width: 520px) {
  .plus-offer-go { display: inline-block; width: auto; padding: 13px 26px; }
  .plus-offer-fine {
    display: inline-block; margin: 16px 0 0 14px; text-align: left;
    vertical-align: middle;
  }
}

                                                                           
                                                                           
.acct-adm { margin-top: 26px; }

                                                                           
                                                           
.buy-partner,
.acct-invited {
  margin: 12px 0 0; padding: 8px 12px; border-left: 2px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13.5px; color: var(--fg);
}
                                                                             
                                  
.acct-invited { margin: 0 0 14px; }
                                                                              
                                                                           
                                                                          
                                                                              
.buy-disc {
  display: block; margin-top: 3px;
  font-size: 13px; font-weight: 600; color: var(--accent);
}
                                                                           
                                                                          
            
.buy-partner > .buy-disc:only-child { margin-top: 0; }

                                                                            
                                               
.promo-at-login { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.promo-ask { margin: 0 0 4px; font-size: 13.5px; line-height: 1.45; color: var(--fg-muted); }
.promo-at-login .promo { margin: 0; }

                                                                          
                                                                      
.buy-known { margin: 14px 0 0; font-size: 13.5px; color: var(--fg-muted); }
.buy-known b { color: var(--fg); font-weight: 600; }
.buy-change {
  margin-left: 8px; padding: 0; border: 0; background: none; font: inherit;
  font-size: 12.5px; color: var(--accent);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
                                                                            
                                                                        
.buy-help { margin: 14px 0 0; font-size: 12.5px; color: var(--fg-muted); text-align: center; }
.buy-help a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.acct-buys { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.acct-buy { display: flex; justify-content: space-between; padding: 10px 13px;
  background: var(--bg-card); font-size: 14px; }
.acct-partner { padding: 4px 0; }
.acct-link { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.acct-link code {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; color: var(--fg-muted);
}
.acct-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 10px; }
.acct-nums div { text-align: center; padding: 10px 4px; background: var(--bg-card);
  border-radius: var(--radius); }
.acct-nums b { display: block; font-size: 16px; }
.acct-nums span { font-size: 11.5px; color: var(--fg-muted); }
.acct-out { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

                                                                            
                                                                          
                                                                              
.adm { max-width: 1100px; }
.adm-who { margin-left: auto; font-size: 13px; color: var(--fg-muted); }
.adm-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0 16px;
  border-bottom: 1px solid var(--line); }
.adm-tab {
  padding: 9px 13px; font-size: 14px; color: var(--fg-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.adm-tab.is-on { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.adm-card { padding: 14px; background: var(--bg-card); border-radius: var(--radius); }
.adm-card b { display: block; font-size: 22px; line-height: 1.2; }
.adm-card span { display: block; font-size: 12.5px; color: var(--fg-muted); margin-top: 2px; }
.adm-card i { display: block; font-size: 11.5px; color: var(--fg-muted); opacity: .8;
  margin-top: 6px; font-style: normal; }
.adm-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.adm-input {
  min-height: 38px; padding: 8px 11px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-card); color: var(--fg);
  font: inherit; font-size: 14px; flex: 1 1 180px; min-width: 0;
}
.adm-input.adm-sm { flex: 0 1 150px; }
.adm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 6px 0 18px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; white-space: nowrap; }
.adm-table th {
  text-align: left; padding: 8px 10px; font-weight: 600; font-size: 12px;
  color: var(--fg-muted); border-bottom: 1px solid var(--line);
}
.adm-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
                                                                         
                                                
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
                                                                           
                                          
.adm-table .adm-sub { display: block; margin-top: 2px; font-size: 11.5px; }
                                                                            
                                               
.adm-table tfoot td {
  border-top: 2px solid var(--line-strong); border-bottom: 0;
  background: var(--bg-elev);
}
.adm-dim { color: var(--fg-muted); font-size: 12.5px; }
.adm-link { color: var(--accent); text-align: left; font: inherit; }
.adm-link:active { opacity: .7; }
.adm-danger { color: #b3261e; }
.adm-h { margin: 10px 0 2px; font-size: 19px; }
.adm-h4 { margin: 20px 0 2px; font-size: 13px; color: var(--fg-muted); font-weight: 600; }
.adm-none { color: var(--fg-muted); font-size: 13px; padding: 8px 0 16px; }
.adm-note { font-size: 13px; color: var(--fg-muted); margin-top: 18px; text-wrap: pretty; }
                                                                             
                                                                    
.adm-forget { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.adm-forget-h { font-size: 13px; font-weight: 600; color: var(--fg-muted); }
.adm-forget .adm-note { margin-top: 6px; }
.adm-forget-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-top: 10px; }
                                                                         
                                 
.adm-forget-said { margin: 10px 0 0; font-size: 13px; color: var(--fg-muted); }
.adm-forget-said.is-good { color: var(--accent); font-weight: 600; }
                                                                   
                                                               
.adm-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.adm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; text-align: left; padding: 13px 14px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.adm-row:active { background: var(--accent-soft); }
.adm-row-main { display: grid; gap: 3px; min-width: 0; }
.adm-row-main b { font-weight: 600; font-size: 15px; }
.adm-row-main .adm-dim { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.adm-tag {
  flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px;
  color: var(--fg-muted); border: 1px solid var(--line); white-space: nowrap;
}
.adm-tag.is-open { color: var(--accent); border-color: var(--accent); }
                                                                        
                                                                   
.adm-check { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; font-size: 14px; }
.adm-check input { flex: none; margin-top: 3px; }
                                                                      
                                                                           
.adm-badge {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; vertical-align: 1px; white-space: nowrap;
  color: var(--accent); background: var(--accent-soft);
}

                                           
.adm-person { margin: 6px 0 22px; }
.adm-state { font-size: 14px; margin: 8px 0 0; color: var(--fg-muted); }
.adm-state.is-open { color: var(--accent); font-weight: 600; }

                                                                              
                                                                     
.adm-field { display: grid; gap: 8px; }
.adm-field[hidden] { display: none; }
.adm-label { font-size: 13px; font-weight: 600; }
.adm-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-pick {
  padding: 9px 15px; border-radius: var(--radius); font-size: 14px;
  border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--fg);
}
.adm-pick:active { background: var(--accent-soft); }
.adm-pick.is-on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

                                                                     
.adm-rare { margin-top: 26px; }
.adm-rare > summary {
  cursor: pointer; font-size: 13px; color: var(--fg-muted); padding: 6px 0;
}
.adm-rare[open] > summary { margin-bottom: 10px; }

                                                                        
.adm-warn {
  grid-column: 1 / -1; margin: 0; padding: 10px 12px; font-size: 12.5px;
  line-height: 1.5; text-wrap: pretty; color: var(--fg);
  background: var(--accent-soft); border-radius: var(--radius);
}
.adm-warn[hidden] { display: none; }
.adm-empty { padding: 40px 0; text-align: center; }
.adm-empty p { margin: 0 0 8px; }
.adm-new { margin-bottom: 14px; }
.adm-new summary { cursor: pointer; font-size: 14px; color: var(--accent); padding: 8px 0; }
.adm-form { display: grid; gap: 10px; padding: 14px; background: var(--bg-card);
  border-radius: var(--radius); margin-bottom: 10px; }
.adm-form label { display: grid; gap: 4px; font-size: 12.5px; color: var(--fg-muted); }
.adm-links { margin: 10px 0 16px; display: grid; gap: 8px; font-size: 13px; }
.adm-links code { color: var(--fg-muted); word-break: break-all; }
                                                                            
                                                
.adm-copy {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 10px; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.adm-copy > .adm-dim { flex: 0 0 auto; min-width: 96px; }
.adm-copy > code { flex: 1 1 220px; min-width: 0; color: var(--fg); }
.adm-copy > .btn-quiet { flex: 0 0 auto; white-space: nowrap; }
                                                               
.adm-mini { margin-left: 8px; padding: 2px 8px; font-size: 12px; }
                                                                            
                                                                        
.adm-table tr.is-spent > td:not(.adm-sent) { opacity: .45; }
.adm-sent { white-space: nowrap; }
                                                                             
                                                                       
.adm-pins { display: grid; gap: 8px; margin-bottom: 14px; }
.adm-pin {
  display: grid; gap: 6px; padding: 12px 14px;
  background: var(--bg-elev); border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.adm-pin-title { font-weight: 600; font-size: 15px; }
.adm-pin-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.adm-pin-code > code { font-size: 15px; margin-right: 4px; color: var(--fg); }
.adm-pin-code > .btn-quiet { white-space: nowrap; }

                                                                       
                                                                        
                                                                       
                                     
.buy-periods { margin: 18px 0 4px; }
.buy-period-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px;
}
.buy-period {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card); text-align: left; min-height: 68px;
}
.buy-period[aria-pressed="true"] {
  border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}
.buy-period-t { font-size: 13px; color: var(--fg-muted); }
                                                                      
                                                                      
                                                                        
.buy-period-p { font-size: 16px; font-weight: 600; white-space: nowrap; }
                                                                            
                                                                           
                                                            
.buy-period-was {
  font-size: 12.5px; font-weight: 500; color: var(--fg-muted);
  text-decoration-thickness: 1px; white-space: nowrap;
}
                                                                            
                                                                          
                                                                        
           
@media (max-width: 480px) {
  .buy-period-grid { grid-template-columns: repeat(2, 1fr); }
}
                                                                        
                                                                            
.buy-period-s { font-size: 11.5px; color: var(--accent); }

                                                                                 
.adm-lesson { flex-direction: column; align-items: stretch; cursor: default; }
.adm-lesson:active { background: none; }
.adm-lesson .adm-bar { margin: 4px 0 0; }
.adm-lesson .btn-secondary.adm-sm { display: inline-flex; align-items: center; width: auto; margin-top: 0; padding: 10px 14px; }

                                                                               
                                                                            
                                                                              
                                                                                    
[data-level="a2"] { --accent-fill: #446a72; }
[data-theme="dark"][data-level="a2"], [data-theme="dark"] [data-level="a2"] { --accent-fill: initial; }
.btn-primary, .pill, .rd-back-jump { background: var(--accent-fill, var(--accent)); }

                                                                            
                                                                                                              
                                                                                                       
                                                                                                    
                                                          
.rd-top-ex { border-bottom: 1px solid var(--line); }
.rd-top-ex .rd-top-title .t2 { color: var(--accent); }
                                                                                                        
                                                                                                            
                                                                                                                
                                                                                                              
                                                                                                                
                                                                                                                     
                                                                                                                      
.rd-ex-mark {
  display: flex; align-items: center; gap: 12px; height: 1.2em; margin: 0.5em 0 0.9em; break-after: avoid; break-inside: avoid;
}
.rd-ex-mark.is-quiet { height: 0; margin: 0; overflow: hidden; }
.rd-ex-mark.is-quiet::before, .rd-ex-mark.is-quiet::after, .rd-ex-mark.is-quiet i { display: none; }
.rd-ex-mark.is-left::before, .rd-ex-mark.is-left::after, .rd-ex-mark.is-left i { visibility: hidden; }
.rd-ex-mark::before, .rd-ex-mark::after { content: ''; flex: 1; height: 1px; background: var(--accent); opacity: 0.35; }
.rd-ex-mark i { flex: none; width: 7px; height: 7px; transform: rotate(45deg); background: var(--accent); }
.rd-ex-end {
  text-align: center; text-indent: 0; margin: 1.6em 0 1.2em; padding: 18px 16px 16px;
  border-radius: var(--radius); background: var(--accent-soft); break-inside: avoid;
  -webkit-hyphens: manual; hyphens: manual;
}
.rd-ex-end-t { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.rd-ex-end .rd-ex-next { font-family: var(--font-ui); font-size: 14px; color: var(--fg-muted); margin: 6px 0 12px; text-indent: 0; }
.rd-ex-end button {
  display: block; width: 100%; max-width: 320px; margin: 8px auto 0; min-height: 46px; padding: 12px 18px;
  border-radius: var(--radius); font-family: var(--font-ui); font-size: 15px; font-weight: 600; text-indent: 0;
}
.rd-ex-end .rd-ex-go { background: var(--accent); color: var(--on-accent); }
.rd-ex-end .rd-ex-more { background: none; border: 1px solid var(--line-strong); color: var(--fg); font-weight: 500; }
                                                            
.rd-lesson {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px 6px 8px;
  border-radius: 2px; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0;
}
.rd-lesson svg { width: 15px; height: 15px; }
.rd-hint {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 46px);
  z-index: 6; display: flex; align-items: center; gap: 6px; width: max-content; max-width: min(92vw, 520px);
  padding: 9px 6px 9px 14px; border-radius: var(--radius); background: var(--fg); color: var(--bg);
  font-family: var(--font-ui); font-size: 14px; line-height: 1.4;
}
.rd-hint[hidden] { display: none; }
.rd-hint.in { animation: rd-hint-in .32s cubic-bezier(.2,.7,.2,1); }
@keyframes rd-hint-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.rd-hint-x { flex: none; min-width: 36px; min-height: 36px; color: var(--bg); opacity: .75; font-size: 20px; line-height: 1; }
.rd-content .w.rd-hint-word { box-shadow: 0 0 0 2px var(--accent); border-radius: 2px; animation: rd-hint-pulse 1.6s ease-in-out infinite; }
@keyframes rd-hint-pulse { 50% { box-shadow: 0 0 0 4px var(--accent-soft); } }
@media (prefers-reduced-motion: reduce) { .rd-hint.in, .rd-content .w.rd-hint-word { animation: none; } }

                                                                               
                                                                               
                                                                               
                                                   
.wstar {
  --star: var(--accent);
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: 0; background: none; color: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.wstar .ico {
  width: 21px; height: 21px; display: block; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round;
  transition: fill .15s ease, stroke .15s ease;
}
.wstar.on .ico { fill: var(--star); stroke: var(--star); }
.wstar.pop .ico { animation: wstar-pop .34s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes wstar-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.wstar:focus-visible { outline: 2px solid var(--star); outline-offset: -4px; border-radius: var(--radius); }
                                                                               
.wstar[data-level="a2"]   { --star: #557c84; }
.wstar[data-level="b1"]   { --star: #446a72; }
.wstar[data-level="b2"]   { --star: #365c64; }
.wstar[data-level="a1"]   { --star: #628a92; }
.wstar[data-level="orig"] { --star: #2d4d55; }
[data-theme="dark"] .wstar[data-level="a2"]   { --star: #abcbd1; }
[data-theme="dark"] .wstar[data-level="b1"]   { --star: #87acb4; }
[data-theme="dark"] .wstar[data-level="b2"]   { --star: #699199; }
[data-theme="dark"] .wstar[data-level="a1"]   { --star: #c2dade; }
[data-theme="dark"] .wstar[data-level="orig"] { --star: #557c85; }
                                                                              
                                                                               
.bubble.has-star { display: flex; align-items: center; padding-right: 2px; }
.bubble .b-body { display: block; flex: 1 1 auto; min-width: 0; }
.bubble .wstar { position: relative; align-self: stretch; height: auto; min-height: 40px; margin: -9px 0 -9px 8px; }
.bubble .wstar::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px;
  background: currentColor; opacity: .22;
}
.bubble.ls-tip .wstar { pointer-events: auto; }
.bubble .wstar                     { --star: #87acb4; }
.bubble .wstar[data-level="a2"]    { --star: #abcbd1; }
.bubble .wstar[data-level="b1"]    { --star: #87acb4; }
.bubble .wstar[data-level="b2"]    { --star: #699199; }
.bubble .wstar[data-level="a1"]    { --star: #c2dade; }
.bubble .wstar[data-level="orig"]  { --star: #557c85; }
[data-theme="dark"] .bubble .wstar                    { --star: #446a72; }
[data-theme="dark"] .bubble .wstar[data-level="a2"]   { --star: #557c84; }
[data-theme="dark"] .bubble .wstar[data-level="b1"]   { --star: #446a72; }
[data-theme="dark"] .bubble .wstar[data-level="b2"]   { --star: #365c64; }
[data-theme="dark"] .bubble .wstar[data-level="a1"]   { --star: #628a92; }
[data-theme="dark"] .bubble .wstar[data-level="orig"] { --star: #2d4d55; }
@media (prefers-reduced-motion: reduce) { .wstar.pop .ico { animation: none; } }

                                                                                      
.rd-content .w.wflash { animation: wflash 2.4s ease-out; border-radius: 2px; }
@keyframes wflash {
  0%, 40% { background: var(--hl); box-shadow: 0 0 0 2px var(--hl); }
  100% { background: transparent; box-shadow: 0 0 0 2px transparent; }
}

                                     
.acct-words { margin: 0 0 18px; color: var(--fg); text-decoration: none; min-height: 52px; }
.acct-words-ic { display: inline-flex; color: var(--accent); }
.acct-words-ic .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.acct-words-n { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-muted); white-space: nowrap; }
.acct-words-go { color: var(--fg-muted); }

                                                                        
                                             
.wl { --danger-bg: #a6574f; --snack-act: #a9c6cc; max-width: 720px; }
[data-theme="dark"] .wl { --danger-bg: #8f4d46; --snack-act: #36606a; }
.wl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.wl-head .list-title { margin: 0; }
.wl-count {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-muted); white-space: nowrap;
}
.wl-search {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; margin: 0 0 12px;
  background: var(--bg-input); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg-muted);
}
.wl-search:focus-within { border-color: var(--accent); }
.wl-search .ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
                                                         
.wl-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--fg);
  font: 16px/1.2 var(--font-ui); outline: none; -webkit-appearance: none; appearance: none;
}
.wl-list { list-style: none; margin: 0 calc(-1 * var(--lib-pad)); padding: 0; }
.wl-row { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); touch-action: pan-y; }
.wl-row:first-child { border-top: 1px solid var(--line); }
.wl-card {
  position: relative; z-index: 1; display: block; background: var(--bg);
  padding: 12px var(--lib-pad) 13px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
}
.wl-card:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wl-row:not(.swiping) .wl-card:active { background: var(--bg-elev); }
@media (hover: hover) { .wl-row:not(.swiping) .wl-card:hover { background: var(--bg-elev); } }
.wl-top { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.wl-w { font-family: var(--font-prose); font-size: 21px; line-height: 1.2; color: var(--fg); }
                                                                                                       
.wl-ipa {
  flex: 1; min-width: 0; font-family: var(--font-prose); font-size: 15.5px; color: var(--fg-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wl-top .wstar { margin: -8px -10px -8px 0; color: var(--fg-muted); }
.wl-ru { font-weight: 500; font-size: 15px; line-height: 1.35; margin-top: 1px; }
.wl-gen { font-size: 12.5px; line-height: 1.35; color: var(--fg-muted); margin-top: 2px; }
.wl-gen .b-lab { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; margin-right: 5px; }
.wl-ex {
  font-family: var(--font-prose); font-size: 15.5px; line-height: 1.45; color: var(--fg); margin: 6px 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wl-ex mark {
  background: none; color: inherit; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.wl-src {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted);
}
.wl-src span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-go { font-size: 15px; letter-spacing: 0; }
                                                                              
.wl-bg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--lib-pad); background: var(--danger-bg); color: #fff; font: 500 14px/1 var(--font-ui);
}
.wl-bg span { display: inline-flex; align-items: center; gap: 8px; opacity: .6; transform: scale(.92); transition: opacity .15s, transform .15s; }
.wl-bg .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
                                                                                                              
                                                                                                                 
                                                                  
.wl-row:not(.swiping):not(.going):not(.hinting) .wl-bg { visibility: hidden; }
.wl-row.to-l .wl-bg-l, .wl-row:not(.to-l) .wl-bg-r { visibility: hidden; }
.wl-row.armed .wl-bg span { opacity: 1; transform: scale(1); }
.wl-row.back { animation: wl-back .32s ease-out; }
@keyframes wl-back { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.wl-snack {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 20px); z-index: 30;
  display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 16px; max-width: calc(100vw - 32px);
  background: var(--fg); color: var(--bg); border-radius: var(--radius); font: 14px/1.3 var(--font-ui);
  opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; white-space: nowrap;
}
.wl-snack.show { opacity: 1; transform: translate(-50%, 0); }
.wl-snack button {
  min-height: 40px; padding: 0 12px; border: 0; background: none; color: var(--snack-act);
  font: 600 14px/1 var(--font-ui); cursor: pointer;
}
.wl-empty { text-align: center; padding: 40px 12px 24px; color: var(--fg-muted); }
.wl-empty-ic { display: inline-flex; color: var(--accent); }
.wl-empty-ic .ico { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.wl-empty h2 { font-family: var(--font-prose); font-weight: 400; font-size: 24px; line-height: 1.25; color: var(--fg); margin: 14px 0 6px; }
.wl-empty p { font-size: 14.5px; line-height: 1.5; max-width: 34ch; margin: 0 auto 18px; }
.wl-none { color: var(--fg-muted); font-size: 14px; padding: 16px 0; margin: 0; }
@media (prefers-reduced-motion: reduce) { .wl-row.back { animation: none; } }

                                                                                                       
.auth-ask { display: grid; gap: 10px; margin-top: 4px; }
                                                          
.auth-points { list-style: none; margin: -6px 0 20px; padding: 0; display: grid; gap: 10px; }
.auth-points li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; text-wrap: pretty; }
.auth-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin-top: 2px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
                                                                                           
.login-tg-note {
  display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px;
  border-radius: var(--radius); background: var(--accent-soft);
  font-size: 13px; line-height: 1.45; color: var(--fg); text-align: left; text-wrap: pretty;
}
.login-tg-note b { color: var(--accent); font-weight: 600; }
.login-tg-ico { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; fill: var(--accent); }
.auth-ask .btn-primary, .auth-ask .btn-secondary { width: 100%; min-height: 48px; }

                                                                                                               
.rd-top .rd-words.bump .ico { animation: wstar-pop .38s cubic-bezier(.3, 1.6, .5, 1); }
.rd-top .rd-words.pulse { box-shadow: 0 0 0 0 var(--accent); animation: wbar-pulse 1.6s ease-out infinite; border-color: var(--accent); color: var(--accent); }
@keyframes wbar-pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-soft); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
                                                              
.wfly { position: fixed; z-index: 60; width: 22px; height: 22px; pointer-events: none; color: var(--accent); }
.wfly .ico { width: 22px; height: 22px; display: block; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

                                                                                                                 
.wtip {
  position: absolute; z-index: 7; width: min(280px, calc(100vw - 32px));
  background: var(--fg); color: var(--bg); border-radius: var(--radius); padding: 14px 14px 12px;
  font-family: var(--font-ui); font-size: 14.5px; line-height: 1.45;
  opacity: 0; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease;
}
.wtip.show { opacity: 1; transform: none; }
.wtip::before {
  content: ""; position: absolute; top: -5px; left: var(--arrow-x, 50%); width: 10px; height: 10px;
  background: var(--fg); transform: translateX(-50%) rotate(45deg);
}
.wtip p { margin: 0 0 12px; }
.wtip .btn-primary { width: 100%; min-height: 40px; padding: 9px; font-size: 15px; background: var(--bg); color: var(--fg); border-color: var(--bg); }
                                                                                                     
.wtip.wtip-pic { position: fixed; left: 50%; top: auto; bottom: calc(env(safe-area-inset-bottom) + 16px); transform: translate(-50%, 8px); z-index: 45; }
.wtip.wtip-pic.show { transform: translate(-50%, 0); }
.wtip.wtip-pic::before { display: none; }
.wtip-bar {
  display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px; margin: 0 0 12px;
  background: var(--bg); color: var(--fg); border-radius: var(--radius); overflow: hidden;
}
.wtip-bar .m-back { display: inline-flex; color: var(--fg-muted); }
.wtip-bar .m-back .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.wtip-bar .m-title { flex: 1; min-width: 0; font-family: var(--font-prose); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtip-bar .m-pill { font-family: var(--font-mono); font-size: 10px; padding: 3px 5px; border-radius: 2px; background: var(--accent); color: var(--on-accent); }
.wtip-bar .m-aa { font-size: 12px; color: var(--fg-muted); padding: 0 2px; }
.wtip-bar .m-star {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  color: var(--accent); box-shadow: 0 0 0 2px var(--accent); animation: wbar-pulse 1.6s ease-out infinite;
}
.wtip-bar .m-star .ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
  .rd-top .rd-words.pulse, .wtip-bar .m-star { animation: none; }
  .rd-top .rd-words.bump .ico { animation: none; }
}

                                                                                          
.sheet.sheet-words { height: 88%; }
.wl-sheet { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; --lib-pad: 18px; }
.wl-sheet .wl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; }
.wl-sheet .sheet-body { padding-bottom: 72px; }
.wl-sheet .wl-empty { padding-top: 24px; }
.wl-sheet .wl-card { background: var(--sheet-bg); }                                                
.wl-sheet .wl-snack { position: absolute; }

                                                                            
.wl-row.hinting .wl-bg span { opacity: 1; transform: none; }

                                                                               
                                                                           
                                                                              
                                                                              
                                                                               
                                                                             
                                                                         
                                                                         
                                                                           
.rail-track > .lcard { flex: 0 0 var(--lcard-w); min-width: 0; scroll-snap-align: start; }
.rail-track > .lcard:last-child { scroll-snap-align: end; }
.lcard {
  --lcard-w: clamp(300px, 88vw, 440px);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 26% 1fr; column-gap: 16px; align-items: start;
  padding: 18px 16px 15px 18px; min-height: calc(var(--lcard-w) * .62);
  background: #1a2129; color: #f3efe7; border: 1px solid var(--line);
  transition: border-color .18s ease;
}
.lcard:active { border-color: var(--accent); }
.lcard-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lcard::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13, 17, 23, .22) 0%, rgba(13, 17, 23, .66) 36%, rgba(13, 17, 23, .86) 100%);
}
.lcard-cover {
  display: block; margin-top: 4px; aspect-ratio: 2 / 3; overflow: hidden; transform: rotate(-3deg);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .14);
}
.lcard-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lcard-body { display: flex; flex-direction: column; min-width: 0; height: 100%; }
                                                                                                         
.lcard-plus { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 12px; color: rgba(243, 239, 231, .86); }
.lcard-plus .plus-mark { font-size: 15px; color: #f3efe7; }
.lcard-no {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(243, 239, 231, .68);
}
.lcard-title {
  font-family: var(--font-prose); font-size: clamp(19px, 5.4vw, 23px); line-height: 1.15; margin-top: 5px;
  overflow-wrap: break-word;
}
.lcard-book { margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: rgba(243, 239, 231, .78); overflow-wrap: break-word; }
.lcard-book em { font-family: var(--font-prose); font-size: 13.5px; }
.lcard-perks { display: grid; gap: 6px; margin: 12px 0 0; }
.lcard-perk { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; line-height: 1.35; }
.lcard-perk .ico {
  flex: none; width: 15px; height: 15px; margin-top: 1px; fill: none; stroke: #e9c98f; stroke-width: 1.7;
}
.lcard-perk b { font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; color: #f6e2bb; }
.lcard-meta { margin-top: auto; padding-top: 11px; font-size: 11.5px; color: rgba(243, 239, 231, .66); }
                                                                                                           
.badge-lesson {
  position: absolute; right: 0; top: 0; padding: 4px 8px; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(20, 26, 33, .86); color: #f3efe7;
}
.book-lesson { margin-top: 28px; }
.book-lesson .lcard { --lcard-w: 100%; max-width: 460px; }

                                                                           
                                                                                                                  
                                                                                                             
                                                                                                                
.shelf-head.with-tabs { border-bottom: 0; padding-bottom: 6px; margin-bottom: 4px; }
.tabs {
  display: flex; gap: 28px; margin: 0 0 28px;
  border-bottom: 1px solid var(--line);
}
.tab {
  position: relative; display: inline-flex; align-items: baseline; gap: 5px;
  min-height: 48px; padding: 10px 0 12px;
  font-family: var(--font-prose); font-size: 23px; line-height: 1.1; color: var(--fg-muted);
  transition: color .18s ease;
}
.tab:hover { color: var(--fg); }
.tab i {
  font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--fg-muted); transform: translateY(-.85em);
}
.tab[aria-current="page"] { color: var(--fg); }
.tab[aria-current="page"] i { color: var(--accent); }
.tab[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); animation: tab-in .32s cubic-bezier(.2, .7, .2, 1);
}
@keyframes tab-in { from { transform: scaleX(.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tab[aria-current="page"]::after { animation: none; } }

                                                                          
                                                                                                                 
                                                                                                      
                                                                                                               
.lx-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0 calc(var(--lib-pad) * -1) 36px; color: #f3efe7;
  background:
    radial-gradient(90% 70% at 0% 100%, rgba(105, 145, 153, .26), transparent 62%),
    radial-gradient(60% 50% at 100% 0%, rgba(233, 201, 143, .10), transparent 70%),
    #11161c;
}
                                                                                      
[data-theme="dark"] .lx-hero { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
                                                                                                                 
                                                                             
.lx-reel {
  overflow: hidden; padding: 16px 0;
  background: #0b0f13;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.lx-reel-track {
  --fh: 92px;
  position: relative; display: flex; width: max-content;
  animation: lx-reel calc(var(--n, 8) * 7s) linear infinite;
}
.lx-reel-track::before, .lx-reel-track::after {
  content: ''; position: absolute; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, rgba(243, 239, 231, .16) 0 9px, transparent 9px 21px);
}
.lx-reel-track::before { top: -11px; }
.lx-reel-track::after { bottom: -11px; }
.lx-reel img {
  display: block; flex: none; height: var(--fh); width: calc(var(--fh) * 16 / 9); margin-right: 8px;
  object-fit: cover; border-radius: 2px; filter: saturate(.9) contrast(1.04);
}
@keyframes lx-reel { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lx-reel-track { animation: none; } }
.lx-hero-txt { position: relative; padding: 26px var(--lib-pad) 28px; }
.lx-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: #9cc3cb;
}
.lx-h1 {
  margin: 12px 0 0; font-family: var(--font-prose); font-weight: 400;
  font-size: clamp(36px, 10vw, 60px); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance;
}
.lx-lead { margin: 16px 0 0; max-width: 58ch; font-size: 15.5px; line-height: 1.6; color: rgba(243, 239, 231, .78); }
                                                                                                               
                                                                      
.lx-stats {
  list-style: none; margin: 24px 0 0; padding: 18px 0 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  border-top: 1px solid rgba(243, 239, 231, .14);
}
.lx-stats li {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 10px; text-align: center;
  border-right: 1px solid rgba(243, 239, 231, .14);
}
.lx-stats li:last-child { border-right: 0; }
.lx-stats b { font-family: var(--font-prose); font-weight: 400; font-size: 28px; line-height: 1; white-space: nowrap; }
.lx-stats span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(243, 239, 231, .6);
}
@media (max-width: 380px) {
  .lx-stats b { font-size: 24px; }
}
                                                                             
.lx-pick { margin-top: 22px; background: #f3efe7; color: #12181d; }
.lx-pick:hover { background: #fff; }
@media (min-width: 760px) {
  .lx-hero { margin: 0 0 44px; border-radius: var(--radius); }
  .lx-reel { padding: 18px 0; }
  .lx-reel-track { --fh: 128px; }
  .lx-hero-txt {
    padding: 36px 40px 40px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas: "eye eye" "h1 stats" "lead pick"; column-gap: 48px; align-items: end;
  }
  .lx-eyebrow { grid-area: eye; }
  .lx-h1 { grid-area: h1; }
  .lx-lead { grid-area: lead; }
  .lx-stats { grid-area: stats; align-self: end; margin: 0; }
  .lx-pick { grid-area: pick; margin: 0; }
}

                                                                                                               
.lx-cont { margin-bottom: 0; }
.lx-cont-shot { flex: 0 0 120px; aspect-ratio: 16 / 10; overflow: hidden; background: #1a2129; align-self: flex-start; }
.lx-cont-shot img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 420px) { .lx-cont-shot { flex-basis: 92px; } }

                                                                                                        
.lx-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.lx-steps li { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; padding-bottom: 20px; }
.lx-steps li:not(:last-child)::before {
  content: ''; position: absolute; left: 22.5px; top: 50px; bottom: 4px; width: 1px; background: var(--line);
}
.lx-ic {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--accent); background: var(--bg);
}
.lx-ic .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lx-step { display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.lx-n { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--accent); }
.lx-step b { font-family: var(--font-prose); font-weight: 400; font-size: 21px; line-height: 1.2; }
.lx-step > span:last-child { font-size: 14px; line-height: 1.5; color: var(--fg-muted); }
.lx-note {
  margin: 4px 0 0; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; color: var(--fg-muted);
  background: var(--bg-elev); border-left: 2px solid var(--accent);
}
@media (min-width: 760px) {
  .lx-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
  .lx-steps li { grid-template-columns: 1fr; row-gap: 14px; padding-bottom: 22px; }
  .lx-steps li:not(:last-child)::before { left: 58px; right: -14px; top: 23px; bottom: auto; width: auto; height: 1px; }
}

                                                                                                                  
                                                                                                                      
                                                                                                                   
                                                                                                 
.lx-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.lx-card {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; min-height: 200px;
  border-radius: var(--radius); background: #1a2129; color: #f3efe7;
  box-shadow: 0 1px 2px rgba(29, 34, 39, .1), 0 10px 22px -14px rgba(29, 34, 39, .55);
  transition: transform .18s ease, box-shadow .18s ease;
}
.lx-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(29, 34, 39, .12), 0 16px 28px -16px rgba(29, 34, 39, .6); }
.lx-card:active { transform: none; }
.lx-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lx-shot { position: absolute; inset: 0; display: block; }
.lx-shot img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.lx-card:hover .lx-shot img { transform: scale(1.04); }
.lx-shot::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 19, .62) 0%, rgba(11, 15, 19, 0) 24%, rgba(11, 15, 19, .08) 40%,
    rgba(11, 15, 19, .72) 68%, rgba(11, 15, 19, .9) 100%);
}
.lx-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(243, 239, 231, .25); }
.lx-bar i { display: block; height: 100%; background: #9cc3cb; }
.lx-body {
  position: relative; z-index: 1; height: 100%; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 13px 15px 14px;
}
.lx-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lx-topic {
  flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4;
  color: rgba(243, 239, 231, .92);
}
.lx-low { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; align-items: end; min-width: 0; }
                                                                                                  
.lx-cover {
  display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 2px; background: #2a3138;
  transform: rotate(-3deg); margin-bottom: 2px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .14);
}
.lx-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lx-txt { display: flex; flex-direction: column; min-width: 0; }
.lx-title {
  font-family: var(--font-prose); font-size: 23px; line-height: 1.12; overflow-wrap: break-word;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.lx-book {
  margin-top: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 12.5px; line-height: 1.35; color: rgba(243, 239, 231, .74);
}
.lx-book em { font-family: var(--font-prose); font-size: 13.5px; color: rgba(243, 239, 231, .95); }
.lx-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.lx-rk {
  margin-right: -4px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(243, 239, 231, .62);
}
.lx-rule1 {
  max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; line-height: 1.4;
  padding: 2px 7px; border-radius: 2px; background: rgba(156, 195, 203, .22); color: #dcecef;
}
.lx-card .lx-meta { color: rgba(243, 239, 231, .74); }
.lx-card.is-started .lx-meta { color: #9cc3cb; }
.lx-card .lx-acc { flex: none; color: rgba(243, 239, 231, .8); }
.lx-card .lx-acc .plus-mark { color: #f3efe7; }
.lx-card .lx-acc.is-free { color: #cfe3e7; border-color: rgba(207, 227, 231, .7); background: rgba(11, 15, 19, .45); }
@media (min-width: 760px) {
  .lx-grid { gap: 16px; }
  .lx-title { font-size: 21px; }
}
                                             
.lx-head-txt .chip, .lx-rule .chip { font-size: 10px; padding: 1px 6px; }
.lx-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }
.lx-rule { display: flex; align-items: baseline; gap: 8px; }
.lx-rule .chip { flex: none; }
.lx-rule b { font-family: var(--font-mono); font-weight: 500; font-size: 13.5px; line-height: 1.4; }
.lx-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; color: var(--fg-muted); }
.lx-acc { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--fg-muted); }
.lx-acc .plus-mark { font-size: 15px; color: var(--fg); }
.lx-acc.is-free {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); padding: 3px 7px; border: 1px solid var(--accent); border-radius: 2px;
}

                                                                                                                     
.lx-idx { border-top: 1px solid var(--line); }
.lx-idx-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "rule go" "what go";
  row-gap: 6px; column-gap: 12px; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--line);
  transition: background-color .18s ease;
}
.lx-idx-row:hover { background: var(--accent-soft); }
.lx-idx-rule { grid-area: rule; display: flex; flex-direction: column; gap: 4px; }
.lx-idx-rule .lx-rule b { font-size: 14.5px; }
.lx-idx-what { grid-area: what; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lx-idx-t { font-family: var(--font-prose); font-size: 17px; line-height: 1.25; }
.lx-idx-b { font-size: 12.5px; color: var(--fg-muted); }
.lx-idx-b em { font-family: var(--font-prose); font-size: 13.5px; }
.lx-idx-go { grid-area: go; color: var(--fg-muted); display: flex; }
.lx-idx-go .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (min-width: 700px) {
  .lx-idx-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 20px; grid-template-areas: "rule what go"; padding: 16px 6px; }
}

                                                                    
.lx-teach {
  display: grid; gap: 18px; padding: 22px 20px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
}
.lx-teach h3 { margin: 8px 0 0; font-family: var(--font-prose); font-weight: 400; font-size: 26px; line-height: 1.2; }
.lx-teach p { margin: 10px 0 0; max-width: 62ch; font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); }
.lx-teach .btn-secondary { margin: 0; }
@media (min-width: 700px) {
  .lx-teach { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 28px 32px; column-gap: 40px; }
  .lx-teach .btn-secondary { width: auto; padding: 12px 24px; white-space: nowrap; }
}
