/* BB MANGA v246 — shared tokens and reader components. */
:root {
  color-scheme:dark;
  --bg:#0b0b10;--card:#15151e;--card2:#1d1d29;--surface:#15151e;
  --accent:#9278f5;--accent-bright:#baa7ff;--text:#f4f4f7;--muted:#a5a5b6;
  --line:#2a2a36;--success:#81d7a6;--danger:#ffacb7;
  --space-xs:4px;--space-sm:8px;--space-md:16px;--space-lg:24px;--space-xl:32px;
  --radius:14px;--font:system-ui,-apple-system,"Segoe UI",sans-serif;
  --app-inline-space:24px;
  --bb-device-top:0px;--bb-device-bottom:0px;--bb-device-left:0px;--bb-device-right:0px;
  --bb-chrome-top:0px;--bb-chrome-bottom:0px;--bb-chrome-left:0px;--bb-chrome-right:0px;--bb-fullscreen-top:0px;
  --bb-content-top:max(var(--bb-fullscreen-top),calc(max(env(safe-area-inset-top,0px),var(--tg-safe-area-inset-top,0px),var(--bb-device-top)) + max(var(--tg-content-safe-area-inset-top,0px),var(--bb-chrome-top))));
  --bb-bottom-inset:calc(max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px),var(--bb-device-bottom)) + max(var(--tg-content-safe-area-inset-bottom,0px),var(--bb-chrome-bottom)));
  --bb-left-inset:calc(max(env(safe-area-inset-left,0px),var(--tg-safe-area-inset-left,0px),var(--bb-device-left)) + max(var(--tg-content-safe-area-inset-left,0px),var(--bb-chrome-left)));
  --bb-right-inset:calc(max(env(safe-area-inset-right,0px),var(--tg-safe-area-inset-right,0px),var(--bb-device-right)) + max(var(--tg-content-safe-area-inset-right,0px),var(--bb-chrome-right)));
  --nav-height:68px;--nav-edge:12px;--nav-content-gap:20px;
  --nav-bottom:calc(var(--nav-edge) + var(--bb-bottom-inset));
}
html {background:var(--bg);scroll-padding-top:24px}
body {margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:15px;font-weight:400;letter-spacing:0;line-height:1.5;min-height:100dvh}
body::before,body::after{display:none}
*{box-sizing:border-box}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button{font-weight:500}
button:disabled{cursor:default}
[hidden]{display:none!important}
button,a{color:inherit}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent-bright);outline-offset:3px}
input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
input,textarea,select{max-width:100%;min-width:0;color:var(--text)}
button{min-height:44px}
a{overflow-wrap:anywhere}
.app-shell,.telegram-fullscreen .app-shell{width:100%;max-width:1120px;min-height:100dvh;margin:auto;padding:max(16px,calc(var(--bb-content-top) + 12px)) max(var(--app-inline-space),var(--bb-right-inset)) calc(var(--nav-height) + var(--nav-bottom) + var(--nav-content-gap)) max(var(--app-inline-space),var(--bb-left-inset))}
#view{min-width:0}
h1,h2,h3,p{overflow-wrap:anywhere}
h1,h2,h3{font-family:var(--font);font-weight:650;color:var(--text);letter-spacing:-.025em}
h1{margin:0;font-size:32px;line-height:1.18}
h2{margin:0;font-size:22px;line-height:1.3}
h3{font-size:17px;line-height:1.4}
p{color:var(--muted);line-height:1.55}
.ui-icon{display:inline-block;width:22px;height:22px;flex:0 0 22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.eyebrow,.kicker{display:block;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.12em;line-height:1.4}
.icon-button{display:inline-grid;width:44px;height:44px;min-width:44px;padding:10px;place-items:center;border-radius:12px;border:0;background:transparent;color:var(--muted)}
.icon-button:hover{background:var(--card2);color:var(--text)}
.primary,.outline,.text-action,.library-continue{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 16px;border-radius:var(--radius);font-size:14px;font-weight:600;text-decoration:none;line-height:1.4;box-shadow:none;transition:background .15s ease}
.primary{margin:0;color:#130d28;background:var(--accent);border:1px solid transparent}
.primary:hover{background:#a58cfb}
.outline{background:var(--card2);border:1px solid var(--line);color:var(--text)}
.outline:hover{background:#262633}
.text-action{background:transparent;border:0;color:var(--accent-bright);padding:8px 0;font-size:13px}
.text-action .ui-icon{width:18px;height:18px;flex-basis:18px}
.primary:disabled,.outline:disabled{opacity:.55}
.app-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;min-height:44px;margin:0 0 28px}
.app-header>[data-back]{grid-column:1;grid-row:1}
.app-brand{display:grid;grid-column:2;grid-row:1;justify-self:center;place-items:center;width:44px;height:44px;min-width:0;padding:4px;background:transparent}
.app-brand img{display:block;width:36px;height:36px;object-fit:contain;filter:brightness(0) invert(1)}
.header-search{grid-column:3;grid-row:1;justify-self:end;margin:0;background:var(--card)}
.nav{position:fixed;z-index:80;bottom:var(--nav-bottom);height:var(--nav-height);left:50%;right:auto;transform:translateX(-50%);display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important;width:min(calc(100% - 24px - max(var(--bb-left-inset),var(--bb-right-inset)) - max(var(--bb-left-inset),var(--bb-right-inset))),520px);padding:6px!important;border:1px solid #30303d!important;border-radius:18px;background:rgba(21,21,30,.97)!important;box-shadow:0 8px 32px #0005!important;backdrop-filter:blur(12px)}
.nav button{display:flex;min-width:0;min-height:57px;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:7px 2px;border-radius:12px;background:transparent;color:#a5a5b6;box-shadow:none;border:0}
.nav button.active:not(.nav-logo){background:#29233d!important;color:#c8b6ff;box-shadow:none}
.nav button::after,.nav button::before{display:none}
.nav button .ui-icon{width:21px;height:21px;flex-basis:21px}
.nav button:not(.nav-logo) small{font-size:11px!important;line-height:1.15;font-weight:500!important;letter-spacing:0;white-space:nowrap;margin-top:0!important;color:inherit!important;overflow:visible!important}
.page-heading{margin:0 0 24px}
.page-heading p{max-width:600px;margin:10px 0 0;font-size:15px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px}
.section-heading h2{font-size:21px}
.section-heading .text-action{flex-shrink:0}
.continue-card{display:grid;grid-template-columns:116px minmax(0,1fr);gap:24px;padding:24px;border:1px solid #333041;border-radius:16px;background:linear-gradient(100deg,#211c32,#17151f 70%)}
.continue-cover{padding:0;background:transparent;align-self:start;border-radius:10px;overflow:hidden}
.continue-card .cover{display:block;width:116px;height:164px;min-width:0;border-radius:10px}
.continue-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}
.continue-copy .eyebrow{color:#c2b5ea;font-size:10px}
.continue-copy h2{margin:10px 0 6px;max-width:600px;font-size:25px;font-weight:650}
.continue-copy p{margin:0 0 16px;font-size:13px}
.continue-copy .primary{justify-content:flex-start}
.continue-empty{display:flex;gap:18px;align-items:center;padding:22px;background:var(--card);border-radius:16px;border:1px solid var(--line)}
.continue-empty>.ui-icon{width:32px;height:32px;flex-basis:32px;color:var(--accent-bright)}
.continue-empty>div{flex:1;min-width:0}.continue-empty h2{font-size:19px}.continue-empty p{margin:5px 0 0;font-size:13px}
.home-personal{margin-top:32px}.home-feed{margin-top:0}.home-feed-heading{align-items:center}.home-feed-heading h2{flex:1;min-width:0}.home-feed-heading .text-action{padding:8px 0 8px 8px;white-space:nowrap}
.personal-updates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.personal-update{display:flex;align-items:center;gap:14px;padding:14px;background:var(--card);border-radius:var(--radius);min-width:0}
.personal-update>button{background:transparent;padding:0;flex:0 0 auto}
.personal-update>div{min-width:0;flex:1}
.personal-update .cover{width:54px;height:76px;border-radius:8px}
.plain-title{display:block;min-height:44px;min-width:0;padding:3px 0;background:transparent;text-align:left;color:var(--text);font-size:16px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.new-chapter-link{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-height:44px;padding:4px 0 0;background:transparent;color:var(--accent-bright);font-size:13px}
.new-chapter-link .ui-icon{width:16px;height:16px;flex-basis:16px;margin-left:4px}.new-chapter-link small{color:var(--muted)}
.unread-dot{display:inline-block;flex:0 0 5px;width:5px;height:5px;border-radius:50%;background:var(--accent-bright)}
.personal-empty{display:flex;align-items:center;gap:14px;padding:20px;background:var(--card);border-radius:var(--radius)}
.personal-empty>.ui-icon{color:var(--accent-bright)}.personal-empty b{font-weight:550}.personal-empty p{font-size:13px;margin:4px 0 0}
/* Compact update rows: one cover, a single-line title, two chapter links and all chapters. */
.feed-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}
.feed-card{display:flex;align-items:stretch;gap:14px;min-width:0;padding:12px 14px;background:var(--card);border-radius:18px}
.feed-cover{position:relative;display:block;flex:0 0 92px;align-self:stretch;width:92px;height:auto;min-height:0;margin:0;padding:0;background:transparent;border-radius:9px;overflow:hidden}
.feed-card .cover{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;border-radius:inherit;overflow:hidden}
.feed-cover img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:350px){.feed-cover{flex-basis:60px;width:60px}}
.feed-copy{display:flex;flex:1;flex-direction:column;align-items:stretch;gap:4px;min-width:0}
.feed-copy>.plain-title{display:flex;align-items:center;flex:0 0 32px;width:100%;height:32px;min-height:32px;margin:0;padding:0;font-size:15px;line-height:22px;overflow:hidden;text-align:left}
.feed-copy>.plain-title>span{display:block;flex:1;min-width:0;overflow:hidden;white-space:nowrap;line-height:22px;text-overflow:ellipsis}
.feed-copy>.plain-title:hover{color:var(--accent-bright)}
.feed-copy>.feed-all{display:inline-flex;align-self:flex-start;align-items:center;gap:6px;min-height:28px;margin:0;padding:4px 0;background:transparent;border:0;color:var(--accent-bright);font-size:12px;line-height:20px;white-space:nowrap}
.feed-all .ui-icon{width:14px;height:14px;flex:0 0 14px}
.title-page .title-chapters{scroll-margin-top:calc(var(--bb-content-top) + 12px)}
.feed-chapters{display:grid;align-content:start;gap:0;min-width:0;margin:0;padding:0}
.feed-chapters:empty{display:none}
.feed-chapter{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:36px;margin:0;padding:8px 0;background:transparent;border:0;border-radius:6px;text-align:left;font-size:13px;line-height:20px;color:#bdb9cd}
.feed-chapter:hover{background:#201c2e;color:var(--accent-bright)}
.feed-chapter>span{display:flex;align-items:center;gap:4px;min-width:0;white-space:nowrap}
.feed-chapter time{display:block;flex:0 0 auto;color:#a5a0b3;font-size:12px;font-weight:400;line-height:20px;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
.support-card{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:none;margin:24px 0;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--card);box-shadow:none;overflow:hidden}
.support-card>div{flex:1;min-width:0}.support-card h2{font-size:18px;margin:6px 0}.support-card p{margin:0 0 12px;font-size:13px}.support-card .kicker{font-size:10px;letter-spacing:.1em}.support-card .primary,.support-card .outline{margin:0;flex:0 0 auto;font-size:13px;min-width:110px}
.support-progress{height:5px;max-width:400px;border:0;border-radius:4px;background:#30303e}.support-progress i{background:var(--accent);box-shadow:none}
/* Team support uses one full-width column at every phone size. */
.support-card:not(.support-project-card){display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:16px;text-align:center}
.support-card:not(.support-project-card)>div{width:100%;min-width:0}
.support-card:not(.support-project-card) h2{width:100%;max-width:none;margin:6px 0 8px;font-size:clamp(20px,5.4vw,24px);font-weight:650;line-height:1.2;text-wrap:balance}
.support-card:not(.support-project-card) p{margin:0 0 12px;font-size:13px;line-height:1.5}
.support-card:not(.support-project-card) .kicker,.support-card:not(.support-project-card) .eyebrow{font-size:10px;letter-spacing:.11em}
.support-card:not(.support-project-card) .support-progress{width:100%;max-width:none;height:5px}
.support-card:not(.support-project-card) .primary,.support-card:not(.support-project-card) .outline{width:100%;min-height:44px;font-size:14px}
.support-project-cover{flex:0 0 50px!important;width:50px;height:72px}.support-project-cover img{width:100%;height:100%;object-fit:cover;border-radius:8px}
.search-field{display:flex;align-items:center;gap:10px;min-width:0;min-height:50px;padding:0 15px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);color:var(--muted)}
.search-field input,.search-field .search{flex:1;width:100%;min-width:0;height:48px;margin:0;padding:10px 0;color:var(--text);background:transparent;border:0;border-radius:0;box-shadow:none;font-size:16px;outline:none}
.search-field:focus-within{border-color:var(--accent)}
.search-field .ui-icon{width:19px;height:19px;flex-basis:19px}


select{min-height:44px;padding:9px 28px 9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);font-size:13px}
#catalog-results{margin-top:22px}
.catalog-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:28px 20px}
.catalog-card{min-width:0}.catalog-card>button{display:block;width:100%;padding:0;background:transparent;text-align:left}
.catalog-card .cover{display:block;width:100%;height:auto;aspect-ratio:2/3;border-radius:12px;background:var(--card2)}
.catalog-card strong{display:block;margin-top:12px;color:var(--text);font-size:15px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.catalog-card p{display:flex;flex-wrap:wrap;gap:3px 8px;font-size:12px;margin:7px 0 0}.catalog-card p span{color:#818191}
.cover,.detail-cover{background:var(--card2);box-shadow:none;color:var(--muted)}
.cover img,.detail-cover img{width:100%;height:100%;object-fit:cover}
.missing-cover{position:relative;display:grid!important;place-items:center;color:#767486;background:linear-gradient(145deg,#252334,#17151f)}
.missing-cover .ui-icon{width:32px;height:32px}.missing-cover::after{content:'BB MANGA';position:absolute;bottom:14%;left:0;right:0;text-align:center;font-size:10px;font-weight:650;letter-spacing:.13em}
.load-more{display:flex;margin:26px auto 8px;min-width:190px}
.ui-empty,.empty-catalog,.empty-favorites{margin:20px 0;padding:32px 20px;text-align:center;border:1px dashed var(--line);border-radius:var(--radius);background:var(--card);box-shadow:none}
.ui-empty>.ui-icon{width:34px;height:34px;margin-bottom:16px;color:var(--accent-bright)}
.ui-empty h2{font-size:20px}.ui-empty p{max-width:430px;margin:12px auto 20px;font-size:14px}
.error-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;padding:14px;border:1px solid #62434d;border-radius:12px;color:var(--danger);font-size:13px}.error-panel .text-action{color:var(--danger)}
.loading-state{padding:36px;text-align:center}.inline-notice{padding:12px 16px;border-radius:12px;background:var(--card2);font-size:13px}
.library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px}
.segmented{display:flex;gap:4px;padding:4px;background:var(--card);border-radius:12px}
.segmented button{padding:9px 14px;border-radius:9px;background:transparent;color:var(--muted);font-size:13px}
.segmented button[aria-pressed=true]{background:#2b263c;color:#cbbaff}
.filter-hint{max-width:560px;margin:10px 0 22px;color:#9999aa;font-size:12px}
.library-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.library-card{position:relative;display:flex;align-items:flex-start;gap:16px;min-width:0;padding:18px;background:var(--card);border-radius:var(--radius)}
.library-cover{padding:0;background:transparent;flex:0 0 auto}.library-cover .cover{width:86px;height:124px;border-radius:10px}
.library-copy{min-width:0;flex:1;padding-right:26px}.library-copy .plain-title{font-size:16px}.library-copy>p{margin:7px 0;font-size:12px}.library-more{position:absolute;top:7px;right:3px;width:44px;min-width:44px;padding:10px}
.library-labels{display:flex;gap:6px 10px;flex-wrap:wrap;color:var(--muted);font-size:11px}.unread-label{display:inline-flex;align-items:center;gap:5px;color:var(--accent-bright)}
.library-continue{justify-content:flex-start;padding:8px 0;margin-top:8px;background:transparent;border:0;color:var(--accent-bright);font-size:12px;min-height:44px}.library-continue .ui-icon{width:16px;height:16px;flex-basis:16px}
.library-notices{display:flex;margin:24px auto 0}
.title-page{max-width:820px;margin:auto;background:none}
.title-page::before,.title-page::after{display:none}
.title-overview{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:start;gap:28px}
.title-overview .detail-cover{width:180px;height:260px;max-width:none;min-width:0;margin:0;border-radius:12px}
.title-summary{min-width:0;padding-top:6px}.title-summary h1{margin:10px 0 12px;font-size:30px;line-height:1.2}.title-alternatives{display:grid;gap:4px;margin:0 0 2px;padding:0;list-style:none;font-size:15px;line-height:1.55;color:#b6b3c4;overflow-wrap:anywhere}.title-alternatives li{min-width:0;margin:0;padding:0}
.status-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border:0;border-radius:6px;background:var(--card2);color:var(--muted);font-size:11px;font-weight:550;line-height:1.5}
.status-chip.active{background:#1a2e26;color:var(--success)}.status-chip.break{background:#322c1d;color:#daca92}
.title-summary .status-chip{min-height:28px;margin:14px 0 0;padding:5px 10px;border-radius:7px;font-size:12px}.title-stats{display:flex;gap:10px 16px;align-items:center;flex-wrap:wrap;margin:14px 0 0;color:#ddd9e8;font-size:15px;font-weight:550}.title-stats span{display:flex;gap:6px;align-items:center;white-space:nowrap}.title-stats .ui-icon{width:19px;height:19px;flex-basis:19px;color:var(--accent-bright)}
.title-page .read-first{display:flex;grid-template-columns:none;width:100%;justify-content:center;gap:10px;margin:24px 0 12px;padding:14px 16px;min-height:52px;border-radius:14px;background:var(--accent);color:#130d28;box-shadow:none;border:0;text-align:center;font-size:15px}
.title-page .read-first span{display:block;width:auto;height:auto;min-width:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;box-shadow:none;font-size:15px;line-height:1.4}
.title-page .title-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 28px}.title-actions .outline{font-size:13px;font-weight:550;padding:10px 8px;min-height:46px;background:var(--card);border-color:var(--line)}
.title-actions .selected-action{border-color:#48405c;background:#231e31;color:#c5b4ff}
.title-description{margin:0 0 20px}.title-description h2{font-size:17px}.title-description p{font-size:15px;line-height:1.65;margin:10px 0 0;white-space:pre-line}.title-description .text-action{margin-top:4px}
.title-interest{display:flex!important;align-items:center;gap:10px;width:100%;min-height:64px;margin:0 0 28px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card)!important;box-shadow:none!important;text-align:left}
.title-interest::before,.title-interest::after{display:none}.title-interest-dot{width:6px;height:6px;flex:0 0 6px;box-shadow:none}.title-interest-copy{flex:1;min-width:0}.title-interest-copy .kicker{font-size:9px;letter-spacing:.07em}.title-interest-copy strong{display:block;font-size:13px;font-weight:550;line-height:1.45}.title-interest-copy small{display:block;color:var(--muted);font-size:11px}.title-interest-open{flex:0 0 auto;display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}.title-interest-open b{font-size:16px}.title-interest-open span{display:none}
.chapter-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}.chapter-heading h2{margin:0;font-size:21px}.chapter-heading h2 small{color:var(--muted);font-size:14px;font-weight:400;margin-left:5px}.sort-chapters{min-height:44px;padding:8px 10px;border:0;border-radius:10px;background:var(--card);color:var(--muted);font-size:12px;font-weight:500}
.chapter-bulk-actions{display:block;margin:0 0 20px}.chapter-bulk-actions .outline{width:100%;min-height:46px;padding:11px 14px;border:1px solid #453d5a;border-radius:12px;background:#211c30;color:#c6b5fc;font-size:13px;font-weight:600;box-shadow:none}.chapter-bulk-actions .outline.is-read{border-color:#294737;background:#14251d;color:var(--success)}
.chapter-bulk-actions p{margin:8px 0 0;text-align:center;color:var(--muted);font-size:11px;line-height:1.5}.chapter-bulk-actions p.is-error{color:var(--danger)}
.title-page .chapter-tools{display:block;margin:0 0 16px;padding:0;border:0;background:transparent}.chapter-tools .search-field{min-height:46px}.chapter-tools input[data-chapter-search]{width:100%;flex:1;background:transparent;border:0;padding:10px 0}.chapter-tools>span{display:block;margin:7px 0;color:var(--muted);font-size:11px}
.chapters{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.chapters .chapter-line{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:65px;margin:0;padding:7px 13px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.chapters .chapter-line{content-visibility:visible}.chapters .chapter-line:last-child{border-bottom:0}.chapters .chapter-open{min-height:48px;padding:4px 0;min-width:0;flex:1;line-height:1.3;margin:0;background:transparent;border:0;border-radius:0}.chapters .chapter-open b{display:flex;gap:7px;align-items:center;font-size:14px;font-weight:550}.chapters .chapter-open small{display:block;color:var(--muted);font-size:10px;margin-top:4px;line-height:1.4}
.chapters .chapter-read-toggle{width:auto;min-width:105px;min-height:44px;margin:0;padding:9px 7px;border:0;border-radius:8px;background:transparent;color:#aaa8b9;font-size:11px;font-weight:500;white-space:nowrap}.chapters .chapter-read-toggle.is-read{border:0;background:#1a2a23;color:var(--success)}.chapters .chapter-line.read-chapter .chapter-open{color:#b2b2c1}.chapter-new-badge{display:inline-flex;width:16px;height:16px;margin:0;color:#bea9ff;background:none!important;border:0!important;box-shadow:none!important}.chapter-new-badge svg{width:15px;height:15px}.locked-chapter{opacity:.5}
.profile-identity{display:flex;gap:15px;align-items:center;margin:0 0 24px;padding:0;background:transparent;border:0;box-shadow:none}.profile-identity>div:last-child{min-width:0}.profile-identity h2{font-size:21px;font-weight:600}.profile-identity p{margin:4px 0 0;font-size:13px}.profile-avatar{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border:1px solid #494052;background:#302541;border-radius:50%;font-size:22px;font-weight:600;color:#cab9f9;overflow:hidden}
.access-summary{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px;padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card)}.access-summary>div{flex:1}.access-summary h2{font-size:19px;margin:7px 0 0}.access-summary p{font-size:12px;margin:5px 0}.access-summary>.text-action{flex-basis:100%;justify-content:space-between;border-top:1px solid var(--line);border-radius:0;padding:12px 0 0}
.reading-stat{display:flex;justify-content:space-between;align-items:center;padding:20px 0;margin:4px 0 16px;border-bottom:1px solid var(--line)}.reading-stat>div{display:flex;align-items:center;gap:12px}.reading-stat b{font-size:30px;font-weight:650;color:var(--text)}.reading-stat span{max-width:150px;font-size:12px;color:var(--muted);line-height:1.45}
.profile-group{overflow:hidden;margin:0 0 28px;background:var(--card);border-radius:var(--radius)}.profile-group>h2{padding:17px 16px 9px;color:var(--muted);font-size:12px;font-weight:500;letter-spacing:.015em}.profile-link{display:flex;align-items:center;gap:13px;width:100%;min-height:59px;padding:12px 16px;background:transparent;text-align:left;border-bottom:1px solid #242430;border-radius:0}.profile-link:last-child{border:0}.profile-link>.ui-icon:first-child{color:#a99acb;width:20px;height:20px;flex-basis:20px}.profile-link>.ui-icon:last-child{color:#777789;width:17px;height:17px;flex-basis:17px}.profile-link>span{flex:1;min-width:0}.profile-link b{font-size:14px;font-weight:500}.profile-link small{display:block;margin-top:3px;font-size:11px;color:var(--muted)}
.profile-footer{text-align:center;font-size:11px;letter-spacing:.12em;color:#7b778e}.profile-footer span{display:block;letter-spacing:0;font-size:11px;margin-top:5px}
body[data-screen=profile] #view,body[data-screen=feedback] #view,body[data-screen=title-order] #view,body[data-screen=reader-settings] #view,body[data-screen=community] #view,body[data-screen=premium] #view{max-width:650px;margin:auto}
.card,.hero,.reader-preferences,.profile-facts,.history-entry,.schedule-card,.title-order-info{border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:none}
.reader-preferences{margin:22px 0;padding:20px}.reader-preferences h3{font-size:18px;margin:0 0 8px}.reader-preferences p{font-size:14px;margin:0 0 18px}.reader-preferences small{display:block;color:var(--muted);font-size:12px;margin-top:12px}
.interface-scale-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.interface-scale-heading h3{margin:0}.interface-scale-heading output{flex-shrink:0;color:var(--accent-bright);font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}
.interface-scale-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:14px}.interface-scale-controls button{height:44px;min-width:44px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--card2);font-size:24px}.interface-scale-controls button:disabled,.interface-scale-reset:disabled{opacity:.4}.interface-scale-controls input{width:100%;min-width:0;height:44px;margin:0;padding:0;accent-color:var(--accent);cursor:pointer}.interface-scale-limits{display:flex;justify-content:space-between;margin:0 58px;color:var(--muted);font-size:12px}.interface-scale-reset{margin-top:12px;min-height:44px;padding:8px 0;font-size:13px}
.reader-mode-options{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:0;border-radius:12px;background:var(--bg)}.reader-mode-options button{min-height:48px;font-size:12px;font-weight:550;border:0!important;border-radius:8px;background:transparent;color:var(--muted)}.reader-mode-options button.active{background:#2b253b;color:#cab7ff;box-shadow:none}
.title-order-page>h1,.settings-page>h1,.schedule-page>h1{margin-bottom:16px}.title-order-info{padding:20px;margin:20px 0}.title-order-info h3{margin:20px 0 9px;font-size:16px}.title-order-info p{font-size:14px;color:var(--muted)}.title-order-info-head{display:none}.order-form{padding:22px;margin:24px 0}.order-form h2{font-size:21px}.order-form .field{display:grid;gap:8px;margin:20px 0}.order-form .field span{color:var(--muted);font-size:13px;font-weight:450}.order-form .field input,.feedback-form textarea{min-height:48px;padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);box-shadow:none;font-size:16px}.order-form .field input:focus{border-color:var(--accent);box-shadow:none}.order-form .primary{margin-top:14px}.notice{font-size:13px;color:var(--muted);line-height:1.6}
.feedback-choice{gap:10px;margin:24px 0}.feedback-choice button{padding:12px;background:var(--card);border:1px solid var(--line);border-radius:12px;font-size:14px;font-weight:550}.feedback-choice button.active{background:#2b253b;border-color:#796399;color:#d3c3fb}.feedback-form textarea{min-height:145px}.support-contact{margin:8px 0!important}
.schedule-card img{max-height:none;width:100%;height:auto;object-fit:contain}.schedule-image-button{background:var(--bg)}.schedule-card>div{padding:22px}.schedule-card h2{font-size:20px}.schedule-card p{font-size:15px;white-space:pre-line}.schedule-empty{padding:28px;border:1px dashed var(--line);border-radius:14px;background:var(--card)}
.reader-dialog{position:fixed;inset:var(--bb-content-top) var(--bb-right-inset) var(--bb-bottom-inset) var(--bb-left-inset);max-width:min(650px,calc(100% - 24px));max-height:calc(100dvh - var(--bb-content-top) - var(--bb-bottom-inset) - 24px);width:100%;padding:20px;border:1px solid #3b374c;border-radius:18px;color:var(--text);background:var(--card);box-shadow:0 25px 70px #0008;overflow:auto}.reader-dialog::backdrop{background:#050509bf;backdrop-filter:blur(3px)}.reader-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.reader-dialog>header h2{font-size:19px;line-height:1.4}.reader-dialog header>.icon-button{flex-shrink:0}.dialog-actions .profile-link{padding-left:0;padding-right:0}.dialog-actions p{font-size:12px}.schedule-full{overflow:auto}.schedule-full img{display:block;max-width:100%;height:auto}.interest-guide-card{padding:0;width:auto;max-width:none;border:0;background:transparent;box-shadow:none}.interest-guide-card>h2{font-size:23px}.interest-guide-card>p{font-size:14px}.interest-guide-row{border-color:var(--line);background:var(--bg);font-size:12px}.interest-guide-row b{font-size:12px}.interest-guide-note{color:var(--muted)}
.history-entry{margin:14px 0}.history-open{padding:16px;background:transparent}.history-open .cover{width:55px;height:77px}.history-open strong{font-size:15px;font-weight:600}.history-chapters{padding:0 16px 16px}.history-chapters button{min-height:44px;padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:var(--card2);font-size:12px;font-weight:500}.profile-section>h1{margin-bottom:18px}
.notification-card{background:var(--card)!important;border:1px solid var(--line)!important;border-radius:14px!important}.notification-card .notification-open{padding:16px!important}.notification-card .notification-open strong{white-space:normal!important;line-height:1.4!important;font-size:15px!important;font-weight:600!important}.notification-card .notification-open small{font-size:11px!important;font-weight:400!important;color:var(--muted)!important}.notification-card .notification-open b{font-size:13px!important;font-weight:500!important}.notification-card .notification-seen{min-height:44px;background:var(--card2)!important;border-color:var(--line)!important;font-weight:500!important}.notification-broadcast-text{border-color:var(--line)!important;font-size:14px!important;font-weight:400!important}
body.reader-mode{background:#08080b}.reader-mode .app-header,.reader-mode .nav{display:none}.reader-mode .app-shell,.telegram-fullscreen.reader-mode .app-shell{max-width:868px;padding:calc(72px + var(--bb-content-top)) max(24px,var(--bb-right-inset)) calc(24px + var(--bb-bottom-inset)) max(24px,var(--bb-left-inset));margin:0 auto}
body.reader-mode .reader-chapter-nav,.telegram-fullscreen.reader-mode .reader-chapter-nav{position:fixed;top:0;bottom:auto;left:0;right:0;width:100%;height:calc(66px + var(--bb-content-top,0px));display:grid;grid-template-columns:44px minmax(120px,170px) 44px 52px;gap:8px;align-items:center;justify-content:center;margin:0;padding:calc(8px + var(--bb-content-top)) max(12px,var(--bb-right-inset)) 8px max(12px,var(--bb-left-inset));background:rgba(18,18,25,.97);border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;transform:none;backdrop-filter:blur(12px)}
body.reader-mode .reader-toolbar-button,body.reader-mode .reader-chapter-stepper{min-height:44px;height:44px;border:0;background:var(--card2);border-radius:10px;color:#dedbe7}.reader-toolbar-button{padding:10px}.reader-toolbar-button svg{width:20px;height:20px}.reader-chapter-stepper{grid-template-columns:44px minmax(35px,1fr) 44px!important}.reader-chapter-stepper button{min-height:44px!important;height:44px!important;font-weight:400}.reader-chapter-stepper strong{font-size:14px;font-weight:550}.reader-comments-jump{display:flex;gap:3px;align-items:center;justify-content:center;padding:5px!important}.reader-comments-jump small{font-size:11px!important}.reader-toolbar-toast{font-size:12px;color:var(--text);background:var(--card2);border-color:var(--line);box-shadow:none}
body.reader-mode.reader-clean .reader-chapter-nav{transform:translateY(-100%)}
body.reader-mode .comic-pages{width:100%;margin:0 auto;max-width:820px;padding:0;border:0;border-radius:0;background:#08080b}.comic-page-slot{margin:0;padding:0;border:0;border-radius:0}.comic-page-slot.is-loaded{background:transparent}body.reader-mode .comic-pages img{display:block;width:100%;max-width:820px;height:auto;margin:0;padding:0;content-visibility:visible}
.reader-finish,.chapter-comments,.chapter-reactions{width:100%;margin:20px auto;padding:22px;max-width:820px;border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:none}
.reader-finish{text-align:left;scroll-margin-top:calc(80px + var(--bb-content-top))}.reader-finish h2{margin:0 0 6px;font-size:20px}.reader-finish>p{margin:0;color:var(--muted);font-size:14px}.reader-finish-actions{margin-top:16px}
.reader-finish-actions .reader-read-button{min-height:46px;padding:12px 16px;border:1px solid #4c405f;border-radius:10px;background:#261f35;color:#cdb9ff;font-size:14px;font-weight:550;box-shadow:none}
.reader-finish-actions .reader-read-button.is-read{background:#17281f;color:var(--success);border-color:#294737}.reader-finish>[data-reader-action-message]:empty{display:none}
.chapter-reactions .kicker{color:var(--muted)}.chapter-reactions h2{font-size:19px;margin:7px 0}.chapter-reactions [data-reaction-status]{margin:8px 0 16px;font-size:13px}.chapter-reactions .is-error{color:var(--danger)}
.chapter-reaction-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.chapter-reaction-grid button{display:grid;grid-template-columns:1fr auto;align-content:center;align-items:center;gap:6px;min-width:44px;min-height:86px;padding:12px 10px;border:1px solid #383646;border-radius:10px;background:var(--card2);text-align:left;color:var(--text);box-shadow:none}
.chapter-reaction-grid button>span{font-size:23px;line-height:1.2}.chapter-reaction-grid button>b{font-size:14px;font-weight:600;color:var(--muted)}.chapter-reaction-grid button>small{grid-column:1/-1;font-size:12px;font-weight:500;line-height:1.3;overflow-wrap:anywhere}
.chapter-reaction-grid button.is-selected{background:#302441;border-color:#a38acb;box-shadow:inset 0 0 0 1px #a38acb}.chapter-reaction-grid button.is-selected>b{color:#e0caff}
.chapter-comments{scroll-margin-top:calc(80px + var(--bb-content-top))}.chapter-comments h2{margin:0;font-size:20px}.chapter-comments h2 small{background:var(--card2);color:var(--muted);font-size:12px;vertical-align:2px}.chapter-comments .kicker{margin-bottom:6px}
.chapter-comments form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin:20px 0}
.chapter-comments textarea{width:100%;min-width:0;min-height:112px;padding:14px;border:1px solid #3b394b;border-radius:10px;font-size:16px;background:var(--bg);color:var(--text);line-height:1.5;resize:vertical}.chapter-comments textarea:focus{border-color:var(--accent);box-shadow:none}
.chapter-comments form>button{min-width:44px;min-height:46px;padding:12px 18px;background:var(--accent);color:#130d28;border-radius:10px;font-size:14px;font-weight:600}
.chapter-comments .comment-reply-target{min-width:0;background:var(--card2);color:var(--muted);font-size:13px}.comment-reply-target>span{min-width:0;overflow-wrap:anywhere}.comment-reply-target>button{width:44px;min-height:44px;flex-shrink:0}
.chapter-comment{padding:16px 0;border-color:var(--line);background:transparent}.chapter-comment-avatar{background:#322843;font-weight:600}.chapter-comment-head a,.chapter-comment-head b{white-space:normal;overflow-wrap:anywhere;font-size:14px;font-weight:600}.chapter-comment-head>div{flex-wrap:wrap}.chapter-comment-head em{font-size:10px;font-weight:500;border-color:#655077;color:#d2b9ee}.chapter-comment p{margin:8px 0;font-size:15px;line-height:1.55;color:#dedbe5}.chapter-comment-meta{flex-wrap:wrap;gap:4px 12px}.chapter-comment-meta button{min-width:44px;min-height:44px;padding:8px 10px;font-size:12px;font-weight:500;background:var(--card2);border-color:var(--line)}.chapter-comment-meta time,.chapter-comment-replying{font-size:12px;color:var(--muted)}
.chapter-comments-empty,.chapter-comments-error{font-size:14px;line-height:1.5;border-color:var(--line);color:var(--muted)}.comment-form-status{font-size:14px;color:var(--success)}.chapter-comments-error,.comment-form-status.is-error{color:var(--danger)}
@media(max-width:650px){.chapter-reaction-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.chapter-comments form{grid-template-columns:minmax(0,1fr)}.chapter-comments form>button{width:100%}}
.reader-edge-return{z-index:45;min-height:44px;background:var(--card2);color:var(--text);border:1px solid var(--line);border-radius:12px}
/* Access is a dedicated component; legacy service-card selectors do not apply. */
body.access-locked{background:var(--bg)}body.access-locked .app-shell{padding-top:max(16px,calc(var(--bb-content-top,0px) + 12px));padding-bottom:calc(24px + env(safe-area-inset-bottom));background:var(--bg)}body.access-locked #view{margin-top:0}
#access-options.access-page{padding:0;margin:0}.access-page .page-heading{margin-bottom:20px}
.access-overview{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 24px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--card)}.access-overview>div{flex:1;min-width:150px}.access-overview b{font-size:15px;font-weight:600}.access-overview p{margin:4px 0 0;font-size:13px}.access-overview.is-confirmed{background:#14231d;border-color:#304c3d}.access-overview.is-confirmed>.ui-icon{color:var(--success)}
.access-method{padding:22px;margin:0 0 16px;border:1px solid var(--line);border-radius:14px;background:var(--card)}.access-method:last-child{margin-bottom:0}.access-method>header{display:flex;align-items:center;gap:12px}.access-method h2{font-size:20px}.access-service-icon{display:grid;flex:0 0 40px;width:40px;height:40px;place-items:center;border-radius:10px;font-size:18px;font-weight:750}.service-vk{background:#182c43;color:#88bafa}.service-boosty{background:#33241f}.service-boosty img{width:26px;height:26px;object-fit:contain}.service-stars{background:#322b1c;color:#eac674}.service-code{background:#2a2239;color:#c5aaf4}
.access-method>p{margin:14px 0;font-size:14px;line-height:1.6}.access-method .access-footnote{font-size:13px;color:var(--muted);margin:12px 0}.access-method-status{display:flex;align-items:center;gap:8px;color:var(--muted)}.access-method-status>.ui-icon{width:18px;height:18px;flex-basis:18px}.access-method-status.is-confirmed{color:var(--success)}.access-method .access-method-message{padding:12px;border:1px solid #534653;border-radius:9px;background:#272029;color:#e5d0de;overflow-wrap:anywhere}
.access-method-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px}.access-method-actions .text-action{font-size:13px}.access-method .outline,.access-method .primary{border-radius:10px}
.access-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.access-plans button{display:grid;grid-template-columns:1fr auto;gap:5px 8px;min-height:76px;padding:13px 14px;border:1px solid #55466d;border-radius:10px;background:#241f31;color:var(--text);text-align:left}.access-plans button:hover{background:#302640}.access-plans button>span{font-size:14px}.access-plans button>b{font-size:14px;color:#d5c3ff}.access-plans button>small{grid-column:1/-1;color:var(--muted);font-size:12px}.access-plans button:disabled{opacity:.55}
.access-code-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin-top:16px}.access-code-form label{display:grid;gap:8px;font-size:13px;color:var(--muted)}.access-code-form input{width:100%;min-height:48px;padding:12px;border:1px solid #3f3a4c;border-radius:10px;background:var(--bg);font-size:16px;letter-spacing:.02em}.access-code-form .primary{min-height:48px}
.access-extra{margin:12px 0}.access-extra summary{padding:12px 0;min-height:44px;color:var(--accent-bright);font-size:14px;cursor:pointer}
@media(max-width:520px){.access-method{padding:18px 16px}.access-method-actions{align-items:stretch}.access-method-actions>.primary,.access-method-actions>.outline{width:100%}.access-code-form{grid-template-columns:minmax(0,1fr)}.access-plans button{grid-template-columns:1fr}.access-plans button>small{grid-column:1}}
/* Inputs remain visible when a mobile keyboard reduces the visual viewport. */
body.keyboard-open .nav{display:none}body.keyboard-open:not(.reader-mode):not(.access-locked) .app-shell{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.order-form input,.order-form textarea,.access-code-form input{scroll-margin-block:90px 24px}
.reader-dialog .interest-guide-card{border-radius:0;overflow:visible}.reader-dialog .interest-guide-card::before{display:none}.reader-dialog .interest-guide-card .kicker{font-size:10px}.reader-dialog .interest-guide-row{grid-template-columns:8px minmax(0,1fr);gap:4px 10px;padding:12px;border-radius:10px}.reader-dialog .interest-guide-row i{grid-row:1/3;width:6px;height:6px;box-shadow:none}.reader-dialog .interest-guide-row span{grid-column:2;text-align:left;font-size:12px;color:var(--muted)}
.chapter-error-panel,.chapter-launch{max-width:650px;margin:16px auto;padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--card)}.chapter-error-panel h2{font-size:23px}.chapter-error-panel p{font-size:15px;line-height:1.6}.chapter-error-actions{display:flex;flex-wrap:wrap;gap:10px}.chapter-error-panel .primary{flex-basis:100%}
@media(min-width:768px){body[data-screen=home] .continue-card{grid-template-columns:130px minmax(0,1fr);padding:28px 32px}.continue-card .cover{width:130px;height:182px}.continue-copy h2{font-size:30px}.home-personal{margin-top:36px}.library-card{min-height:177px}}
@media(max-width:1000px){.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.library-list{grid-template-columns:1fr}}
@media(max-width:767px){:root{--app-inline-space:20px}.app-header{margin-bottom:24px}.personal-updates,.feed-list{grid-template-columns:1fr}.personal-updates{gap:10px}.personal-update{padding:12px 14px}.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px}.section-heading h2{font-size:20px}.title-overview{grid-template-columns:140px minmax(0,1fr);gap:20px}.title-overview .detail-cover{width:140px;height:203px}.title-summary h1{font-size:26px}.section-heading .text-action{font-size:12px}}
@media(max-width:520px){
  :root{--app-inline-space:18px}h1{font-size:29px}.app-header{margin-bottom:22px}
  .continue-card{grid-template-columns:96px minmax(0,1fr);gap:16px;padding:18px}.continue-card .cover{width:96px;height:144px}.continue-copy h2{margin:8px 0 6px;font-size:19px;line-height:1.25}.continue-copy .eyebrow{font-size:8px;letter-spacing:.08em}.continue-copy p{margin-bottom:10px;font-size:11px}.continue-copy .primary{gap:6px;min-height:42px;padding:10px;font-size:11px}.continue-copy .primary .ui-icon{width:15px;height:15px;flex-basis:15px}
  .section-heading{align-items:center;gap:8px}.section-heading h2{font-size:20px;max-width:230px}.home-personal>.section-heading h2{max-width:190px}.home-personal>.section-heading .text-action{max-width:105px;font-size:11px;gap:4px;line-height:1.4}.home-personal>.section-heading .text-action .ui-icon{width:16px;flex-basis:16px}.home-personal{margin-top:28px}
  .personal-update .plain-title{font-size:14px}.personal-update .cover{width:47px;height:67px}.personal-update{gap:12px}.new-chapter-link{font-size:12px;min-height:44px}.personal-empty{padding:16px}.personal-empty b{font-size:14px}
  
  .support-card{flex-wrap:wrap;gap:15px;margin:22px 0;padding:18px}.support-card>div{flex-basis:100%}.support-card h2{font-size:17px}.support-card .primary,.support-card .outline{width:100%;min-height:44px}.support-project-content{flex-basis:calc(100% - 80px)!important}
  .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}.catalog-card strong{font-size:14px}.catalog-card p{font-size:11px}.page-heading p{font-size:14px}
  .library-card{padding:15px;gap:13px}.library-cover .cover{width:78px;height:117px}.library-copy .plain-title{font-size:15px}.library-copy>p{font-size:11px}.library-continue{font-size:11px}.library-labels{font-size:10px}.library-more{top:5px;right:0}.library-copy{padding-right:15px}.segmented button{font-size:12px;padding:9px 12px}
  .title-overview{grid-template-columns:112px minmax(0,1fr);gap:17px}.title-overview .detail-cover{width:112px;height:166px}.title-summary{padding-top:0}.title-summary h1{font-size:23px;margin:7px 0 9px;line-height:1.22}.title-summary .eyebrow{font-size:9px}.title-alternatives{font-size:14px}.title-summary .status-chip{margin-top:10px}.title-stats{margin-top:12px;gap:8px 14px;font-size:14px}.title-page .title-actions{gap:8px;margin-bottom:25px}.title-actions .outline{font-size:11px;padding:10px 5px;gap:6px}.title-actions .ui-icon{width:17px;height:17px;flex-basis:17px}.title-description p{font-size:15px}.title-page .read-first{margin-top:22px;min-height:50px}
  .chapter-heading h2{font-size:21px}.chapter-read-toggle{min-width:99px!important}.chapters .chapter-line{gap:5px;padding:6px 10px}.chapters .chapter-open b{font-size:14px}.chapter-bulk-actions p{font-size:11px}
  .reading-stat{padding:18px 0}.profile-identity h2{font-size:20px}.profile-group{margin-bottom:24px}.reader-dialog{padding:16px;max-height:calc(100dvh - var(--bb-content-top) - var(--bb-bottom-inset) - 24px)}.reader-dialog>header h2{font-size:17px}
  body.reader-mode .app-shell,.telegram-fullscreen.reader-mode .app-shell{padding-left:var(--bb-left-inset);padding-right:var(--bb-right-inset);padding-top:calc(66px + var(--bb-content-top))}.reader-finish,.chapter-comments,.chapter-reactions{width:calc(100% - 24px);padding:18px 14px}.chapter-comments form{grid-template-columns:1fr}.chapter-comments form>button{justify-self:end;padding:10px 18px}.chapter-comments textarea{width:100%}.reader-finish h2{font-size:22px}.reader-finish p{font-size:13px}
}
@media(max-width:370px){:root{--app-inline-space:14px}.nav small{font-size:10px!important}.continue-card{grid-template-columns:84px minmax(0,1fr);padding:14px;gap:13px}.continue-card .cover{width:84px;height:130px}.continue-copy h2{font-size:18px}.continue-copy .primary{font-size:10px}.title-overview{grid-template-columns:103px minmax(0,1fr);gap:14px}.title-overview .detail-cover{width:103px;height:155px}.title-summary h1{font-size:21px}.library-card{padding:13px;gap:12px}.library-cover .cover{width:66px;height:102px}.library-copy .plain-title{font-size:14px}.library-continue{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.nav .nav-notifications{position:relative;overflow:visible!important}
.nav .notification-badge{position:absolute;top:1px;right:calc(50% - 22px);display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border:2px solid var(--card);border-radius:999px;background:#e54c65;color:#fff;font-size:10px;line-height:16px;font-weight:700;pointer-events:none}
.notifications-page .section-title-row{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;margin-bottom:14px}.notifications-page .section-title-row h1{margin:0}.notifications-page .notification-mark-all{font-size:13px}.notifications-page .error-panel{margin-bottom:16px}.notifications-page .notification-seen:disabled{opacity:.5}
.preview-indicator{margin:0 0 12px;padding:5px 8px;border-radius:6px;text-align:center;font:10px system-ui;background:#24202f;color:#c7bfdc}

.home-feed-heading h2{max-width:none}.home-feed-heading .text-action{flex-shrink:0}

/* Scale application content in flow; the reader and Telegram-safe navigation
   keep their original viewport geometry. Narrow cards reflow instead of clipping. */
body.ui-enlarged:not(.reader-mode) #view{zoom:var(--bb-interface-scale,1);container-type:inline-size;container-name:interface}
.ui-enlarged .catalog-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))}
.ui-enlarged .feed-list,.ui-enlarged .personal-updates,.ui-enlarged .library-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
@container interface (max-width:600px){
  .title-overview{grid-template-columns:140px minmax(0,1fr);gap:20px}.title-overview .detail-cover{width:140px;height:203px}
}
@container interface (max-width:360px){
  .feed-card{display:grid;grid-template-columns:76px minmax(0,1fr);gap:4px 12px;padding:12px 10px}
  .feed-copy{display:contents}.feed-cover{grid-column:1;grid-row:1 / 3;align-self:center;width:76px;height:114px}
  .feed-copy>.plain-title{grid-column:2;grid-row:1;align-self:end;height:32px}.feed-copy>.feed-all{grid-column:2;grid-row:2;align-self:start}
  .feed-chapters{grid-column:1 / -1;grid-row:3;margin-top:6px}
  .continue-card{grid-template-columns:1fr;gap:16px}.continue-cover{justify-self:center}.continue-copy{align-items:stretch}.continue-copy .primary{justify-content:center}
  .title-overview{grid-template-columns:minmax(0,1fr);gap:18px}.title-overview .detail-cover{justify-self:center}
  .title-page .title-actions{grid-template-columns:1fr}.chapter-heading,.library-toolbar,.section-heading{flex-wrap:wrap}
  .chapter-heading h2{flex:1}.chapters .chapter-line{flex-wrap:wrap}.chapters .chapter-read-toggle{min-width:0!important}
  .library-card{flex-wrap:wrap}.library-cover{margin:auto}.library-copy{flex-basis:100%;padding:0}.library-more{top:7px;right:3px}
  .support-project-card{flex-wrap:wrap}.support-project-card .primary{width:100%}
}
@container interface (max-width:250px){
  .reader-mode-options,.feedback-choice{grid-template-columns:1fr}
  .reader-preferences{padding:14px}.interface-scale-heading{flex-wrap:wrap;gap:6px}.interface-scale-controls{gap:8px}.interface-scale-limits{margin:0 52px}
  .profile-identity{flex-wrap:wrap}.reading-stat>div{flex-wrap:wrap}.reading-stat>div>span{max-width:none}
  .feed-chapter{font-size:12px;gap:4px}.feed-chapter time{font-size:11px}
  .load-more{min-width:0;width:100%}.title-interest{flex-wrap:wrap}.title-interest-copy{min-width:120px}
}
