:root{--bg:#0b0b0f;--surface:#141419;--surface-2:#1b1b22;--surface-3:#23232c;--border:#2d2d37;--text:#f7f7fa;--muted:#a0a0ae;--subtle:#727280;--primary:#8b5cf6;--primary-soft:#211936;--gold:#fbbf24;--danger:#ef5b67;--success:#4ade80;--sidebar:224px;--top:74px;--radius:16px;color-scheme:dark}
html,body{overflow-x:hidden}.workspace,.view,#main{min-width:0}.poster-rail{width:100%;max-width:100%;min-width:0;contain:inline-size}.poster-rail>*{min-width:0}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:400 15px/1.5 Inter,system-ui,sans-serif;overscroll-behavior:contain}button,input,select{font:inherit}button,a{touch-action:manipulation}.material-symbols-rounded{font-variation-settings:'FILL' 0,'wght' 500,'GRAD' 0,'opsz' 24}.shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);padding:24px 16px;border-right:1px solid var(--border);background:#0e0e13;display:flex;flex-direction:column;z-index:20}.logo{border:0;background:none;color:var(--text);display:flex;align-items:center;gap:11px;text-align:left}.logo>span,.logo-mark{width:42px;height:42px;border-radius:12px;background:var(--primary);color:white;display:grid;place-items:center;font-weight:800;font-size:13px;letter-spacing:-.03em;box-shadow:0 8px 24px rgba(139,92,246,.2)}.logo b{text-transform:uppercase;font-size:12px;line-height:1.05;letter-spacing:.08em}.sidebar nav{display:grid;gap:6px;margin-top:42px}.sidebar nav button{height:48px;border:0;border-radius:12px;background:transparent;color:var(--muted);display:flex;align-items:center;gap:13px;padding:0 14px;font-weight:600;text-align:left;transition:.18s}.sidebar nav button:hover,.sidebar nav button.active{background:var(--primary-soft);color:#c4b5fd}.sidebar nav .material-symbols-rounded{font-size:22px}.bot-link{margin-top:auto;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:14px;padding:12px;display:flex;gap:10px;align-items:center;text-decoration:none}.bot-link>span:nth-child(2){display:grid}.bot-link small{color:var(--muted)}.workspace{margin-left:var(--sidebar);min-height:100vh}.topbar{height:var(--top);position:sticky;top:0;z-index:15;background:rgba(11,11,15,.9);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.06);display:flex;align-items:center;padding:0 clamp(20px,4vw,48px);gap:14px}.mobile-logo{display:none}.welcome{display:grid}.welcome small{color:var(--muted);font-size:11px}.welcome strong{font-size:14px}.credits-pill{margin-left:auto;min-height:42px;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:999px;display:flex;align-items:center;gap:8px;padding:0 14px;font-size:12px}.credits-pill>.material-symbols-rounded{color:var(--gold);font-size:18px;font-variation-settings:'FILL' 1}.credits-pill i{width:1px;height:18px;background:var(--border)}.credits-pill b{color:white}#main{max-width:1320px;margin:0 auto;padding:28px clamp(20px,4vw,48px) 64px}.view{display:none}.view.active{display:block;animation:appear .2s ease both}@keyframes appear{from{opacity:.4;transform:translateY(4px)}}.global-search{height:54px;max-width:720px;border:1px solid var(--border);background:var(--surface);border-radius:15px;display:flex;align-items:center;gap:10px;padding:0 6px 0 16px;margin-bottom:24px}.global-search:focus-within{border-color:#6d4cc9;box-shadow:0 0 0 3px rgba(139,92,246,.12)}.global-search>.material-symbols-rounded{color:var(--subtle)}.global-search input{flex:1;min-width:0;border:0;outline:0;background:none;color:var(--text);font-size:14px}.global-search button,.empty button,.load-more{height:42px;border:0;border-radius:11px;background:var(--primary);color:white;font-weight:700;padding:0 18px}.spotlight{height:min(48vw,410px);min-height:320px;border-radius:24px;overflow:hidden;position:relative;background:var(--surface);isolation:isolate}.spotlight img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.spotlight::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,8,12,.96) 0%,rgba(8,8,12,.78) 38%,rgba(8,8,12,.12) 75%),linear-gradient(0deg,rgba(8,8,12,.65),transparent 45%);z-index:0}.spotlight-copy{position:absolute;z-index:1;left:clamp(24px,5vw,64px);bottom:clamp(26px,5vw,60px);width:min(520px,72%)}.spotlight-copy>small,.section-title small,.page-heading small,.profile-header small{color:#a78bfa;font-size:10px;font-weight:800;letter-spacing:.16em}.spotlight-copy h1{font-size:clamp(30px,4.6vw,58px);line-height:.98;letter-spacing:-.045em;margin:10px 0 14px;max-width:620px}.spotlight-copy p{color:#d2d2db;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:560px}.spotlight-meta{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 20px}.tag{border:1px solid rgba(255,255,255,.17);background:rgba(10,10,14,.55);backdrop-filter:blur(8px);border-radius:999px;padding:6px 10px;font-size:11px}.primary-action,.secondary-action{min-height:46px;border-radius:12px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700}.primary-action{border:0;background:var(--primary);color:white}.secondary-action{border:1px solid rgba(255,255,255,.2);background:rgba(20,20,25,.75);color:white}.skeleton{background:linear-gradient(100deg,var(--surface) 20%,var(--surface-2) 40%,var(--surface) 60%);background-size:200% 100%;animation:shimmer 1.3s infinite}.skeleton::after{display:none}@keyframes shimmer{to{background-position:-200% 0}}.section-title{display:flex;align-items:end;justify-content:space-between;margin:36px 0 14px}.section-title h2{font-size:23px;letter-spacing:-.025em;margin:3px 0 0}.section-title>button{border:0;background:none;color:#b7a5ff;font-weight:700;padding:9px}.poster-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,17%);gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:1px 1px 8px;scrollbar-width:none}.poster-rail::-webkit-scrollbar{display:none}.poster-card,.catalog-card{border:0;background:none;color:var(--text);padding:0;text-align:left;min-width:0;position:relative}.poster-card{scroll-snap-align:start}.poster-card img,.catalog-card img{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:14px;background:var(--surface-2);display:block}.poster-card strong,.catalog-card strong{display:block;margin-top:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.poster-card small,.catalog-card small{display:block;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.poster-card:hover img,.catalog-card:hover img{outline:2px solid var(--primary);outline-offset:2px}.catalog-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:22px 15px}.catalog-grid.compact{grid-template-columns:repeat(5,minmax(0,1fr))}.continue-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.continue-card{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:14px;padding:9px;display:grid;grid-template-columns:54px 1fr auto;gap:11px;align-items:center;text-align:left}.continue-card img{width:54px;height:72px;object-fit:cover;border-radius:9px}.continue-card strong,.continue-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.continue-card small{color:var(--muted);font-size:11px;margin-top:4px}.continue-card .material-symbols-rounded{color:#a78bfa}.page-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:24px}.page-heading h1,.profile-header h1{font-size:clamp(34px,5vw,54px);line-height:1;letter-spacing:-.05em;margin:6px 0 10px}.page-heading p,.profile-header p{color:var(--muted);margin:0}.count-badge{border:1px solid var(--border);border-radius:999px;padding:8px 12px;color:var(--muted);font-size:12px}.explore-tools{position:sticky;top:calc(var(--top) + 8px);z-index:10;background:rgba(11,11,15,.94);backdrop-filter:blur(18px);padding:10px 0 14px}.explore-tools .global-search{max-width:none;margin-bottom:12px}.filter-row{display:flex;align-items:end;gap:12px}.filter-row label{display:grid;gap:5px;width:min(320px,46%);font-size:11px;color:var(--muted)}select{height:43px;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:11px;padding:0 12px;outline:0}.segmented{display:flex;border:1px solid var(--border);background:var(--surface);padding:3px;border-radius:12px}.segmented button{height:35px;border:0;border-radius:9px;background:none;color:var(--muted);padding:0 14px;font-weight:600}.segmented button.active{background:var(--surface-3);color:white}.genre-chips{display:flex;gap:7px;overflow-x:auto;margin-top:12px;scrollbar-width:none}.genre-chips button{white-space:nowrap;height:34px;border:1px solid var(--border);border-radius:999px;background:transparent;color:var(--muted);padding:0 12px;font-size:12px}.genre-chips button.active{background:var(--primary-soft);border-color:#6d4cc9;color:#c4b5fd}.catalog-status{min-height:38px;color:var(--muted);font-size:12px;display:flex;align-items:center}.load-more{display:block;margin:32px auto}.empty{text-align:center;padding:80px 20px;color:var(--muted)}.empty[hidden]{display:none}.empty>.material-symbols-rounded{font-size:48px;color:#7c6ea9}.empty h3{color:var(--text);margin:12px 0 6px}.empty p{margin:0 0 18px}.quota-banner{border:1px solid #49367a;background:var(--primary-soft);border-radius:18px;padding:18px;display:flex;align-items:center;gap:14px}.quota-banner>.material-symbols-rounded{width:48px;height:48px;border-radius:14px;background:#2d2250;display:grid;place-items:center;color:#c4b5fd}.quota-banner div{display:grid}.quota-banner small{color:#b8acd7}.quota-banner strong{font-size:20px}.quota-banner a{margin-left:auto;color:#0b0b0f;background:var(--gold);border-radius:10px;padding:10px 13px;text-decoration:none;font-weight:800;font-size:12px}.batch-list,.history-list{display:grid;gap:9px}.batch-item,.history-item{border:1px solid var(--border);background:var(--surface);border-radius:13px;padding:12px;display:flex;align-items:center;gap:12px}.batch-item>span:nth-child(2),.history-item>span:nth-child(2){flex:1;min-width:0}.batch-item strong,.history-item strong,.batch-item small,.history-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.batch-item small,.history-item small{color:var(--muted);font-size:11px}.status{font-size:10px;text-transform:uppercase;color:#c4b5fd;font-weight:800}.status.completed{color:var(--success)}.status.failed,.status.rejected{color:var(--danger)}.profile-header{display:flex;gap:18px;align-items:center;margin:12px 0 30px}.avatar{width:76px;height:76px;border-radius:20px;background:var(--primary);display:grid;place-items:center;font-weight:800;font-size:28px}.profile-header h1{font-size:32px}.quota-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.quota-grid article{border:1px solid var(--border);background:var(--surface);border-radius:18px;padding:20px;display:flex;gap:16px}.quota-grid article>.material-symbols-rounded{width:48px;height:48px;border-radius:14px;background:var(--surface-3);display:grid;place-items:center;color:#a78bfa}.quota-grid small,.quota-grid p{color:var(--muted);margin:0}.quota-grid strong{display:block;font-size:34px;line-height:1.1;margin:4px 0}.settings{margin-top:28px;border-top:1px solid var(--border)}.settings button,.settings a{width:100%;min-height:72px;border:0;border-bottom:1px solid var(--border);background:none;color:var(--text);display:flex;align-items:center;gap:13px;text-align:left;text-decoration:none}.settings>*>span:nth-child(2){flex:1;display:grid}.settings small{color:var(--muted)}.mobile-nav{display:none}.scrim{position:fixed;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(5px);z-index:40}.scrim[hidden],.manga-sheet[hidden],.reader[hidden],.language-modal[hidden],.telegram-gate[hidden]{display:none}.manga-sheet{position:fixed;z-index:41;right:0;top:0;bottom:0;width:min(580px,100%);background:var(--surface);border-left:1px solid var(--border);overflow:auto;padding:24px 24px 40px;box-shadow:-20px 0 80px rgba(0,0,0,.5)}.close-button{position:sticky;top:0;float:right;z-index:2;width:44px;height:44px;border:1px solid var(--border);border-radius:50%;background:rgba(20,20,25,.9);color:white}.detail-hero{display:grid;grid-template-columns:160px 1fr;gap:20px;align-items:end;padding-top:36px}.detail-hero img{width:160px;aspect-ratio:2/3;object-fit:cover;border-radius:15px}.detail-hero h2{font-size:28px;line-height:1.08;letter-spacing:-.035em;margin:8px 0}.detail-meta{color:var(--muted);font-size:12px}.detail-description{color:#c5c5cf;line-height:1.65}.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0}.chapter-head{display:flex;align-items:center;justify-content:space-between;margin:26px 0 10px}.chapter-list{display:grid;gap:6px}.chapter-row{min-height:54px;border:1px solid transparent;background:var(--surface-2);border-radius:11px;padding:7px 8px;display:grid;grid-template-columns:36px 1fr 44px;gap:8px;align-items:center}.chapter-row.selected{border-color:var(--primary)}.chapter-row input{accent-color:var(--primary);width:18px;height:18px}.chapter-row strong,.chapter-row small{display:block}.chapter-row small{color:var(--muted);font-size:10px}.chapter-row button{width:44px;height:44px;border:0;background:none;color:#b8a5ff}.batch-submit{position:sticky;bottom:0;width:100%;margin-top:12px}.reader{position:fixed;z-index:60;inset:0;background:#050506;overflow:auto}.reader header{height:64px;position:sticky;top:0;z-index:3;background:rgba(5,5,6,.92);backdrop-filter:blur(16px);display:grid;grid-template-columns:48px 1fr 48px;align-items:center;padding:0 max(8px,env(safe-area-inset-left));border-bottom:1px solid #202025}.reader header button{width:44px;height:44px;border:0;background:none;color:white}.reader header div{text-align:center;min-width:0}.reader header strong,.reader header small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reader header small{color:var(--muted);font-size:11px}.reader-progress{height:2px;position:sticky;top:64px;z-index:3;background:#19191d}.reader-progress i{display:block;height:100%;width:0;background:var(--primary)}#readerPages{padding:0;max-width:900px;margin:auto}#readerPages img{display:block;width:100%;height:auto;min-height:200px;background:#0f0f12}.reader footer{max-width:900px;margin:0 auto;padding:28px 14px calc(32px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between}.reader footer button{height:46px;border:1px solid var(--border);background:var(--surface);color:white;border-radius:11px;padding:0 13px;display:flex;align-items:center}.reader footer button:disabled{opacity:.35}.reader footer span{color:var(--muted);font-size:12px}.language-modal,.telegram-gate{position:fixed;z-index:80;inset:0;background:var(--bg);display:grid;place-items:center;padding:24px}.language-modal>div,.telegram-gate>div{width:min(420px,100%)}.language-modal h2,.telegram-gate h1{font-size:36px;line-height:1.05;letter-spacing:-.04em;margin:16px 0 8px}.language-modal p,.telegram-gate p{color:var(--muted)}.language-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:22px}.language-grid button,.telegram-gate a{min-height:52px;border:1px solid var(--border);background:var(--surface);border-radius:12px;color:white;font-weight:700;display:grid;place-items:center;text-decoration:none}.telegram-gate a{background:var(--primary);border:0;margin-top:20px}.toast{position:fixed;z-index:100;left:50%;bottom:24px;transform:translate(-50%,16px);opacity:0;background:white;color:#111;border-radius:11px;padding:11px 15px;font-size:12px;font-weight:700;transition:.18s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}.loader{width:28px;height:28px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite;margin:36px auto}@keyframes spin{to{transform:rotate(360deg)}}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(max-width:1050px){.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.catalog-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}.continue-row{grid-template-columns:1fr 1fr}.poster-rail{grid-auto-columns:23%}}
@media(max-width:720px){:root{--top:64px}.sidebar{display:none}.workspace{margin:0}.topbar{padding:0 14px}.mobile-logo{display:flex}.mobile-logo>span{width:38px;height:38px}.welcome{display:none}.credits-pill{padding:0 10px;font-size:10px;gap:6px}.credits-pill>.material-symbols-rounded{display:none}#main{padding:16px 14px calc(82px + env(safe-area-inset-bottom))}.global-search{height:50px;margin-bottom:16px}.global-search button{font-size:0;width:42px;padding:0}.global-search button::after{content:'→';font-size:18px}.spotlight{height:430px;min-height:0;border-radius:18px}.spotlight::after{background:linear-gradient(0deg,rgba(8,8,12,.98) 0%,rgba(8,8,12,.58) 45%,rgba(8,8,12,.04) 78%)}.spotlight-copy{left:20px;right:20px;bottom:22px;width:auto}.spotlight-copy h1{font-size:34px}.spotlight-copy p{font-size:12px}.section-title{margin-top:28px}.section-title h2{font-size:20px}.poster-rail{grid-auto-columns:41%;gap:11px}.catalog-grid,.catalog-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 11px}.continue-row{grid-template-columns:1fr}.continue-title{display:flex}.page-heading{align-items:start}.page-heading h1{font-size:36px}.count-badge{margin-top:8px}.explore-tools{top:var(--top)}.filter-row{align-items:stretch;flex-direction:column}.filter-row label{width:100%}.segmented{align-self:flex-start}.quota-banner{align-items:flex-start}.quota-banner a{font-size:0;padding:10px}.quota-banner a::after{content:'Boutique';font-size:11px}.quota-grid{grid-template-columns:1fr}.mobile-nav{position:fixed;z-index:30;left:0;right:0;bottom:0;height:calc(66px + env(safe-area-inset-bottom));padding:6px 6px env(safe-area-inset-bottom);background:rgba(14,14,19,.96);backdrop-filter:blur(18px);border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(5,1fr)}.mobile-nav button{border:0;background:none;color:var(--subtle);display:grid;place-items:center;align-content:center;gap:1px}.mobile-nav button.active{color:#b9a5ff}.mobile-nav small{font-size:9px}.manga-sheet{top:auto;left:0;width:100%;height:92vh;border-radius:22px 22px 0 0;border-left:0;border-top:1px solid var(--border);padding:18px 14px calc(26px + env(safe-area-inset-bottom))}.detail-hero{grid-template-columns:118px 1fr;gap:14px}.detail-hero img{width:118px}.detail-hero h2{font-size:23px}.language-modal h2,.telegram-gate h1{font-size:32px}.toast{bottom:calc(78px + env(safe-area-inset-bottom))}}
@media(max-width:370px){.credits-pill i,.credits-pill span:last-child{display:none}.spotlight{height:400px}.poster-rail{grid-auto-columns:45%}.detail-actions{grid-template-columns:1fr}}

/* ===== Manga Universe UX pass 2026-09-22 ===== */
body{
  font-size:16px;
  line-height:1.55;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
button,input,select{font-size:inherit}
button{min-height:44px}
.global-search input{font-size:15px}
.poster-card strong,.catalog-card strong{
  font-size:14px;
  line-height:1.32;
  white-space:normal;
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  min-height:37px;
}
.poster-card small,.catalog-card small{font-size:11.5px}
.page-heading p,.profile-header p,.detail-description{font-size:14px}
.genre-chips button{font-size:12.5px}
.manga-sheet{overscroll-behavior:contain}
.chapter-head{gap:10px}
.chapter-head>.secondary-action{min-height:40px;padding:0 12px;font-size:12px}
.chapter-tools{
  height:48px;
  border:1px solid var(--border);
  background:var(--surface-2);
  border-radius:12px;
  display:grid;
  grid-template-columns:24px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  padding:0 12px;
  margin:0 0 10px;
}
.chapter-tools>.material-symbols-rounded{font-size:19px;color:var(--subtle)}
.chapter-tools input{
  border:0;
  min-width:0;
  outline:0;
  background:transparent;
  color:var(--text);
}
.chapter-tools small{font-size:10.5px;color:var(--muted);white-space:nowrap}
.chapter-list{gap:8px}
.chapter-row{
  min-height:64px;
  grid-template-columns:36px minmax(0,1fr) auto;
  padding:6px 7px 6px 10px;
  border:1px solid var(--border);
  background:var(--surface-2);
  transition:border-color .16s,background .16s,transform .16s;
}
.chapter-row:hover{border-color:#464653;background:var(--surface-3)}
.chapter-row.selected{border-color:var(--primary);background:#211a35}
.chapter-check{
  width:30px;
  height:44px;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.chapter-check input{width:19px;height:19px;margin:0}
.chapter-main{
  min-width:0;
  min-height:50px;
  padding:5px 8px;
  border:0;
  background:none;
  color:var(--text);
  text-align:left;
}
.chapter-main strong{
  display:block;
  font-size:13.5px;
  line-height:1.3;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.chapter-main small{display:block;margin-top:3px;color:var(--muted);font-size:11px}
.chapter-read{
  min-width:72px;
  height:44px;
  padding:0 11px;
  border:1px solid rgba(139,92,246,.38);
  border-radius:10px;
  background:var(--primary-soft);
  color:#d8ccff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.chapter-read .material-symbols-rounded{font-size:18px}
.chapter-read b{font-size:12px}
.batch-submit{
  bottom:max(8px,env(safe-area-inset-bottom));
  box-shadow:0 -12px 28px rgba(20,20,25,.88);
}
.reader header{grid-template-columns:48px minmax(0,1fr) 48px}
.reader-heading{min-width:0}
.reader-head-count{
  justify-self:center;
  min-width:32px;
  color:var(--muted);
  font-size:11px;
  text-align:center;
}
.reader-toolbar{
  position:sticky;
  top:66px;
  z-index:4;
  min-height:56px;
  max-width:900px;
  margin:0 auto;
  padding:7px 12px;
  background:rgba(9,9,11,.94);
  backdrop-filter:blur(18px);
  border-bottom:1px solid #202025;
  display:grid;
  grid-template-columns:auto minmax(180px,1fr) auto;
  gap:10px;
  align-items:center;
}
.reader-toolbar label{
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:5px;
  font-size:11px;
  font-weight:700;
}
.reader-toolbar label .material-symbols-rounded{font-size:18px}
.reader-toolbar select{
  width:100%;
  height:42px;
  background:#17171c;
  border-color:#303038;
  font-size:13px;
  font-weight:600;
}
.reader-access{
  white-space:nowrap;
  border-radius:999px;
  padding:6px 9px;
  font-size:10.5px;
  font-weight:700;
  color:var(--muted);
  background:#17171c;
  border:1px solid #292932;
}
.reader-access.charged{color:#fde68a;border-color:#6f5313;background:#211a08}
.reader-access.pending{color:#c4b5fd;border-color:#5b45a1;background:#1d1730}
.reader-access.unlocked,.reader-access.included{color:#86efac;border-color:#225c37;background:#0f2117}
#readerPages{background:#050506}
#readerPages img{content-visibility:auto;contain-intrinsic-size:1200px 1800px}
.reader footer{gap:10px}
.reader footer button{font-size:12px;font-weight:700}
.reader footer>span{white-space:nowrap}
.batch-item,.history-item{min-height:60px}
.batch-item{border:1px solid var(--border);background:var(--surface);border-radius:15px;padding:13px;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px}
.batch-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:#1d1b2a;color:#c4b5fd}
.batch-copy{min-width:0;display:grid;gap:4px}
.batch-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.batch-copy small{color:var(--muted)}
.batch-progress{height:5px;border-radius:999px;overflow:hidden;background:#272730;margin-top:3px}
.batch-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7c3aed,#c4b5fd);transition:width .35s ease}
.live-sync{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;font-weight:700}
.live-sync i{width:7px;height:7px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 4px rgba(74,222,128,.1);animation:syncPulse 1.8s ease infinite}
@keyframes syncPulse{50%{opacity:.45;transform:scale(.82)}}
.status{letter-spacing:.05em;white-space:nowrap}
.status.completed{color:#86efac}.status.failed,.status.rejected{color:#fca5a5}.status.processing{color:#c4b5fd}.status.pending{color:#fde68a}
@media(max-width:1050px) and (min-width:721px){
  :root{--sidebar:190px}
  .sidebar{padding-inline:12px}
  #main{padding-inline:24px}
  .catalog-grid,.catalog-grid.compact{gap:20px 13px}
}
@media(max-width:720px){
  body{font-size:15px}
  #main{padding-left:max(12px,3.5vw);padding-right:max(12px,3.5vw)}
  .credits-pill{min-height:40px}
  .spotlight-copy h1{font-size:clamp(30px,9.2vw,38px);line-height:1.02}
  .poster-card strong,.catalog-card strong{font-size:13.5px;min-height:36px}
  .page-heading p{font-size:13px}
  .mobile-nav small{font-size:10px}
  .mobile-nav button{min-width:0}
  .manga-sheet{
    height:min(94dvh,980px);
    padding:16px 12px calc(22px + env(safe-area-inset-bottom));
  }
  .detail-description{font-size:13px;line-height:1.6}
  .chapter-tools{grid-template-columns:22px minmax(0,1fr)}
  .chapter-tools small{display:none}
  .chapter-row{grid-template-columns:32px minmax(0,1fr) 48px;min-height:62px}
  .chapter-read{min-width:44px;width:44px;padding:0}
  .chapter-read b{display:none}
  .reader-toolbar{
    top:66px;
    grid-template-columns:minmax(0,1fr) auto;
    padding:7px 10px;
  }
  .reader-toolbar label{display:none}
  .reader-toolbar select{font-size:12.5px}
  .reader-access{font-size:9.5px;padding:5px 7px}
  .reader footer{padding-left:10px;padding-right:10px}
  .reader footer button{padding:0 9px}
}
@media(max-width:430px){
  .credits-pill{gap:5px;padding:0 8px}
  .credits-pill span{font-size:9.5px}
  .catalog-grid,.catalog-grid.compact{gap:17px 9px}
  .detail-hero{grid-template-columns:104px minmax(0,1fr);gap:12px}
  .detail-hero img{width:104px}
  .detail-hero h2{font-size:21px}
  .chapter-head{align-items:flex-start}
  .chapter-head>.secondary-action{font-size:11px}
  .reader footer button span:not(.material-symbols-rounded){display:none}
}
@media(max-width:350px){
  .credits-pill i,.credits-pill span:last-child{display:none}
  .detail-actions{grid-template-columns:1fr}
  .chapter-row{grid-template-columns:28px minmax(0,1fr) 44px}
  .chapter-main{padding-inline:5px}
}


/* ===== Responsive polish v1.6 ===== */
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
h1,h2,h3,.logo b,.spotlight-copy h1,.detail-hero h2,.profile-header h1,.quota-grid strong{font-family:Manrope,Inter,system-ui,sans-serif}
h1,h2,h3,.detail-hero h2{letter-spacing:-.035em}
button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48;filter:saturate(.55)}
.icon-fallback .material-symbols-rounded.fallback-symbol{font-family:Inter,system-ui,sans-serif!important;font-variation-settings:normal!important;font-weight:700;letter-spacing:0;text-transform:none;line-height:1}
.icon-fallback .batch-icon.fallback-symbol{font-size:18px}.icon-fallback .history-item .fallback-symbol{font-size:16px}
.credits-pill b,.quota-grid strong{font-variant-numeric:tabular-nums}
.credit-updated{display:inline-block;animation:creditPulse .7s ease both}
@keyframes creditPulse{0%{transform:scale(1);color:inherit}35%{transform:scale(1.22);color:#fde68a}100%{transform:scale(1);color:white}}
.chapter-row{cursor:pointer}
.chapter-main{width:100%;cursor:pointer}
.chapter-check{position:relative;z-index:2}
.chapter-read{cursor:pointer}
.reader-toolbar{box-shadow:0 8px 24px rgba(0,0,0,.18)}
.reader footer{background:linear-gradient(180deg,transparent,#050506 24%)}
@media(max-width:720px){
 .topbar{gap:10px}.credits-pill{font-size:11px;min-height:42px;padding-inline:10px}.credits-pill span{white-space:nowrap}
 .page-heading h1{font-size:clamp(31px,9vw,38px)}.page-heading p{max-width:32rem}
 .manga-sheet{height:96dvh;border-radius:18px 18px 0 0}
 .close-button{top:2px;background:rgba(20,20,25,.96);box-shadow:0 5px 18px rgba(0,0,0,.35)}
 .detail-hero{padding-top:26px;align-items:center}
 .detail-actions{position:sticky;top:-1px;z-index:3;background:linear-gradient(180deg,var(--surface) 76%,transparent);padding:8px 0 12px;margin:8px 0 12px}
 .chapter-head{margin-top:18px}.chapter-head .secondary-action{gap:5px;white-space:nowrap}.chapter-head .secondary-action .material-symbols-rounded{font-size:17px}
 .batch-submit{position:sticky;bottom:8px;z-index:4;width:100%;box-shadow:0 10px 28px rgba(0,0,0,.42);margin-top:12px}
 .chapter-row{grid-template-columns:34px minmax(0,1fr) 68px;gap:6px;min-height:66px;padding:7px 7px 7px 8px}
 .chapter-main{min-height:52px;padding:4px 5px}.chapter-main strong{font-size:13px}.chapter-main small{font-size:10.5px}
 .chapter-read{width:68px;min-width:68px;padding:0 8px}.chapter-read b{display:inline;font-size:11px}.chapter-read .material-symbols-rounded{font-size:17px}
 .reader header{height:60px}.reader-progress{top:60px}.reader-toolbar{top:62px;min-height:54px}.reader-toolbar select{height:40px}
 .reader-access{max-width:110px;overflow:hidden;text-overflow:ellipsis}#readerPages img{min-height:120px}
 .batch-item{grid-template-columns:34px minmax(0,1fr);gap:10px;padding:12px}.batch-icon{width:34px;height:34px}.batch-item .status{grid-column:2;justify-self:start;font-size:9px}.live-sync{font-size:10px}
}
@media(max-width:390px){
 .credits-pill{font-size:10.5px;padding-inline:8px}.credits-pill i{height:16px}
 .detail-hero{grid-template-columns:96px minmax(0,1fr);gap:11px}.detail-hero img{width:96px}.detail-hero h2{font-size:20px}.detail-meta{font-size:11px}
 .chapter-head{display:grid;grid-template-columns:1fr auto;align-items:center}.chapter-head>.secondary-action{padding-inline:9px}
 .chapter-row{grid-template-columns:30px minmax(0,1fr) 62px}.chapter-read{width:62px;min-width:62px}
 .reader-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:6px}.reader-access{max-width:92px}
}
@media(max-width:350px){.chapter-row{grid-template-columns:28px minmax(0,1fr) 54px}.chapter-read{width:54px;min-width:54px}.chapter-read b{display:none}}

/* ===== Shop v1.7 ===== */
.shop-balance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0 22px}
.shop-balance article{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(145deg,rgba(124,58,237,.14),rgba(18,18,24,.92))}
.shop-balance article>.material-symbols-rounded{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:rgba(124,58,237,.18);color:#c4b5fd}
.shop-balance small,.shop-card small,.shop-balance p{color:var(--muted)}
.shop-balance strong{display:block;font-family:Manrope,Inter,sans-serif;font-size:28px;line-height:1;margin:4px 0}
.shop-balance p{margin:0;font-size:11px}
.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.shop-card{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px;border:1px solid var(--border);border-radius:17px;background:var(--surface);overflow:hidden}
.shop-card.featured{border-color:rgba(124,58,237,.5);background:linear-gradient(135deg,rgba(124,58,237,.16),var(--surface) 62%)}
.shop-card-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#1c1728;color:#c4b5fd}
.shop-card-copy{min-width:0;display:grid;gap:4px}.shop-card-copy strong{font-size:14px;line-height:1.25}
.shop-card-copy small{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.shop-buy{min-width:92px;border:0;border-radius:12px;padding:9px 12px;background:#7c3aed;color:#fff;display:grid;gap:2px;text-align:center}
.shop-buy span{font-size:12px;font-weight:800}.shop-buy b{font-size:10px;text-transform:uppercase;letter-spacing:.07em}
.shop-note{margin-top:16px;display:flex;gap:10px;align-items:flex-start;padding:13px 15px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.025);color:var(--muted)}
.shop-note p{margin:0;font-size:11px;line-height:1.55}.quota-banner>button{margin-left:auto;border:0;border-radius:12px;padding:11px 14px;background:#eab308;color:#141006;font-weight:800}
@media(max-width:720px){.shop-balance{grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 16px}.shop-balance article{padding:12px;gap:9px;border-radius:14px}.shop-balance article>.material-symbols-rounded{width:34px;height:34px;border-radius:10px}.shop-balance strong{font-size:22px}.shop-balance p{font-size:9.5px}.shop-grid{grid-template-columns:1fr;gap:9px}.shop-card{grid-template-columns:38px minmax(0,1fr) 82px;padding:12px;gap:9px}.shop-card-icon{width:38px;height:38px}.shop-buy{min-width:82px;padding:8px 9px}.quota-banner>button{padding:9px 10px;font-size:10px}}
@media(max-width:390px){.shop-balance{grid-template-columns:1fr}.shop-card-copy strong{font-size:13px}.shop-note{padding:11px}}

/* ===== Reader community v1.7 ===== */
.reader-community{max-width:900px;margin:0 auto;padding:30px 16px 10px;background:#0b0b0e;border-top:1px solid #1d1d24}
.community-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:14px}.community-head small{color:#a78bfa;font-size:9px;font-weight:800;letter-spacing:.15em}.community-head h2{margin:3px 0 0;font:800 22px/1.1 Manrope,Inter,sans-serif}
.comment-sort{display:flex;padding:3px;border:1px solid var(--border);border-radius:11px;background:#131318}.comment-sort button{min-height:34px;border:0;border-radius:8px;background:none;color:var(--muted);padding:0 11px;font-size:11px;font-weight:700}.comment-sort button.active{background:#272332;color:#d6ccff}
.reaction-row{display:flex;gap:7px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:none}.reaction-row button{min-width:58px;min-height:38px;border:1px solid var(--border);border-radius:999px;background:#141419;color:#ddd;display:flex;align-items:center;justify-content:center;gap:5px}.reaction-row button.active{border-color:#7c3aed;background:#211936}.reaction-row b{font-size:10px;color:var(--muted)}
.comment-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:3px 0 16px}.comment-form textarea{resize:none;min-height:54px;border:1px solid var(--border);border-radius:13px;background:#141419;color:#fff;padding:11px 12px;outline:0;font:inherit}.comment-form textarea:focus{border-color:#6d4cc9;box-shadow:0 0 0 3px rgba(139,92,246,.1)}.comment-form button{border:0;border-radius:12px;background:#7c3aed;color:#fff;padding:0 14px;display:flex;align-items:center;gap:7px;font-weight:800}
.comment-list{display:grid;gap:8px}.reader-comment{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;padding:12px;border:1px solid #24242c;border-radius:14px;background:#111116}.comment-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#2c2146;color:#c4b5fd;font-weight:800}.comment-body{min-width:0}.comment-meta{display:flex;align-items:center;gap:8px}.comment-meta strong{font-size:12px}.comment-meta small{margin-left:auto;color:var(--subtle);font-size:9px}.comment-body p{margin:5px 0 8px;color:#d4d4dc;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.comment-like{min-height:30px;border:0;background:none;color:var(--muted);padding:0 5px;font-size:11px}.comment-like.active{color:#c4b5fd}.community-empty{padding:28px 12px;text-align:center;color:var(--muted);font-size:12px}
@media(max-width:720px){.reader-community{padding:24px 10px 8px}.community-head h2{font-size:19px}.comment-sort button{padding:0 9px;font-size:10px}.comment-form{grid-template-columns:1fr}.comment-form button{justify-self:end;min-width:104px}.reader-comment{padding:10px}}


/* ===== Home cards + navigation + desktop touchpad v1.8 ===== */
.nav-icon{
  width:22px;
  height:22px;
  flex:0 0 22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.sidebar nav button.active .nav-icon{stroke-width:2.05}
.bot-link>.nav-icon{width:21px;height:21px;color:#c4b5fd}
.mobile-nav .nav-icon{width:21px;height:21px}
html,body{min-height:100%;overflow-y:auto}
body{overscroll-behavior-y:auto}
#latestGrid.catalog-grid.compact{
  grid-template-columns:repeat(auto-fill,minmax(156px,190px));
  justify-content:start;
  align-items:start;
  gap:20px 16px;
}
#latestGrid .catalog-card{
  width:100%;
  padding:7px 7px 10px;
  border:1px solid transparent;
  border-radius:16px;
  background:#111117;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
#latestGrid .catalog-card:hover{
  transform:translateY(-3px);
  border-color:#343440;
  background:#15151c;
}
#latestGrid .catalog-card img{
  width:100%;
  height:250px;
  aspect-ratio:auto;
  object-fit:cover;
  object-position:center top;
  border-radius:11px;
}
#latestGrid .catalog-card:hover img{outline:none}
#latestGrid .catalog-card strong{margin:9px 2px 0;min-height:0;-webkit-line-clamp:1}
#latestGrid .catalog-card small{margin:3px 2px 0}
.poster-rail,.genre-chips,.reaction-row{
  overscroll-behavior-x:contain;
  overscroll-behavior-y:auto;
}
@media(max-width:1050px) and (min-width:721px){
  #latestGrid.catalog-grid.compact{grid-template-columns:repeat(auto-fill,minmax(145px,175px));gap:18px 14px}
  #latestGrid .catalog-card img{height:235px}
}
@media(max-width:720px){
  #latestGrid.catalog-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}
  #latestGrid .catalog-card{padding:6px 6px 9px;border-radius:14px}
  #latestGrid .catalog-card img{height:clamp(208px,60vw,244px);border-radius:10px}
  .mobile-nav .nav-icon{width:20px;height:20px}
}
@media(max-width:370px){
  #latestGrid .catalog-card img{height:214px}
}


/* ===== Latest releases compact rail v1.8.1 ===== */
#latestGrid.catalog-grid.compact{
  display:flex;
  grid-template-columns:none;
  gap:14px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 2px 10px;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  scrollbar-color:#3a3a45 transparent;
  -webkit-overflow-scrolling:touch;
}
#latestGrid.catalog-grid.compact::-webkit-scrollbar{height:5px}
#latestGrid.catalog-grid.compact::-webkit-scrollbar-thumb{background:#3a3a45;border-radius:999px}
#latestGrid.catalog-grid.compact .catalog-card{
  flex:0 0 160px;
  width:160px;
  min-width:160px;
  max-width:160px;
  scroll-snap-align:start;
  padding:6px 6px 9px;
}
#latestGrid.catalog-grid.compact .catalog-card img{
  display:block;
  width:148px!important;
  height:222px!important;
  min-height:222px!important;
  max-height:222px!important;
  aspect-ratio:2/3!important;
  object-fit:cover!important;
  object-position:center top;
  border-radius:10px;
}
@media(max-width:720px){
  #latestGrid.catalog-grid.compact{gap:11px;padding-bottom:8px}
  #latestGrid.catalog-grid.compact .catalog-card{
    flex-basis:144px;
    width:144px;
    min-width:144px;
    max-width:144px;
  }
  #latestGrid.catalog-grid.compact .catalog-card img{
    width:132px!important;
    height:198px!important;
    min-height:198px!important;
    max-height:198px!important;
  }
}
@media(max-width:370px){
  #latestGrid.catalog-grid.compact .catalog-card{
    flex-basis:136px;
    width:136px;
    min-width:136px;
    max-width:136px;
  }
  #latestGrid.catalog-grid.compact .catalog-card img{
    width:124px!important;
    height:186px!important;
    min-height:186px!important;
    max-height:186px!important;
  }
}


/* ===== Dedicated Latest Releases component v1.8.2 ===== */
#latestGrid.catalog-grid.compact{
  display:flex!important;
  grid-template-columns:none!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:14px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:2px 2px 10px!important;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  scrollbar-color:#3a3a45 transparent;
}
#latestGrid .latest-card{
  appearance:none;
  -webkit-appearance:none;
  flex:0 0 164px!important;
  width:164px!important;
  min-width:164px!important;
  max-width:164px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--text);
  text-align:left;
  display:flex!important;
  flex-direction:column!important;
  gap:8px;
  overflow:visible!important;
  scroll-snap-align:start;
}
#latestGrid .latest-cover{
  display:block!important;
  position:relative;
  width:164px!important;
  height:224px!important;
  min-width:164px!important;
  min-height:224px!important;
  max-width:164px!important;
  max-height:224px!important;
  aspect-ratio:auto!important;
  overflow:hidden!important;
  border-radius:12px;
  background:#17171d;
  border:1px solid #292932;
}
#latestGrid .latest-cover img{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  object-position:center top!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
}
#latestGrid .latest-meta{
  display:block;
  min-width:0;
  padding:0 2px;
}
#latestGrid .latest-meta strong{
  display:block;
  font-size:13px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#latestGrid .latest-meta small{
  display:block;
  margin-top:3px;
  font-size:10.5px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#latestGrid .latest-card:hover .latest-cover{
  border-color:#5a4a78;
  transform:translateY(-2px);
  transition:transform .16s ease,border-color .16s ease;
}
@media(max-width:720px){
  #latestGrid.catalog-grid.compact{gap:10px!important}
  #latestGrid .latest-card{
    flex-basis:138px!important;
    width:138px!important;
    min-width:138px!important;
    max-width:138px!important;
  }
  #latestGrid .latest-cover{
    width:138px!important;
    height:188px!important;
    min-width:138px!important;
    min-height:188px!important;
    max-width:138px!important;
    max-height:188px!important;
    border-radius:10px;
  }
  #latestGrid .latest-meta strong{font-size:12.5px}
  #latestGrid .latest-meta small{font-size:10px}
}
@media(max-width:370px){
  #latestGrid .latest-card{
    flex-basis:130px!important;
    width:130px!important;
    min-width:130px!important;
    max-width:130px!important;
  }
  #latestGrid .latest-cover{
    width:130px!important;
    height:178px!important;
    min-width:130px!important;
    min-height:178px!important;
    max-width:130px!important;
    max-height:178px!important;
  }
}


/* ===== Explore / Search / Library compact cards v1.8.3 ===== */
#catalogGrid.catalog-grid,
#libraryGrid.catalog-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(148px,166px))!important;
  justify-content:start!important;
  align-items:start!important;
  gap:18px 14px!important;
}
.catalog-card-v2{
  appearance:none;
  -webkit-appearance:none;
  width:100%!important;
  min-width:0!important;
  max-width:166px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--text);
  text-align:left;
  display:flex!important;
  flex-direction:column!important;
  gap:8px;
  overflow:hidden!important;
}
.catalog-card-v2 .catalog-cover{
  display:block!important;
  position:relative;
  width:100%!important;
  height:218px!important;
  min-height:218px!important;
  max-height:218px!important;
  overflow:hidden!important;
  border-radius:12px;
  background:#17171d;
  border:1px solid #292932;
}
.catalog-card-v2 .catalog-cover img{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  object-position:center top!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
}
.catalog-card-v2 .catalog-meta{
  display:block;
  min-width:0;
  padding:0 2px 2px;
}
.catalog-card-v2 .catalog-meta strong{
  display:block;
  font-size:13px;
  line-height:1.28;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.catalog-card-v2 .catalog-meta small{
  display:block;
  margin-top:3px;
  font-size:10.5px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.catalog-card-v2:hover .catalog-cover{
  border-color:#5a4a78;
  transform:translateY(-2px);
  transition:transform .16s ease,border-color .16s ease;
}
@media(max-width:720px){
  #catalogGrid.catalog-grid,
  #libraryGrid.catalog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:15px 10px!important;
  }
  .catalog-card-v2{
    max-width:none!important;
  }
  .catalog-card-v2 .catalog-cover{
    height:204px!important;
    min-height:204px!important;
    max-height:204px!important;
    border-radius:10px;
  }
  .catalog-card-v2 .catalog-meta strong{font-size:12.5px}
  .catalog-card-v2 .catalog-meta small{font-size:10px}
}
@media(max-width:370px){
  .catalog-card-v2 .catalog-cover{
    height:190px!important;
    min-height:190px!important;
    max-height:190px!important;
  }
}


/* ===== Download diagnostics + partial state v1.8.4 ===== */
.batch-error{
  color:#fca5a5!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  line-height:1.3;
  font-size:10.5px!important;
  margin-top:1px;
}
.status.partial{color:#fbbf24}


/* ===== Chapter layout + i18n cleanup v1.8.7 ===== */
.chapter-row{
  grid-template-columns:30px minmax(0,1fr) auto!important;
  gap:8px!important;
}
.chapter-main{
  width:100%!important;
  height:auto!important;
  min-width:0!important;
  max-width:none!important;
  justify-self:stretch;
  overflow:hidden;
}
.chapter-main>span{
  display:block;
  width:100%;
  min-width:0;
  overflow:hidden;
}
.chapter-main strong,
.chapter-main small{
  width:100%;
  min-width:0;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.chapter-read{
  width:auto!important;
  min-width:72px!important;
  max-width:none!important;
  flex:0 0 auto;
  white-space:nowrap;
}
.chapter-list{
  padding-bottom:76px;
}
@media(max-width:480px){
  .chapter-row{
    grid-template-columns:28px minmax(0,1fr) auto!important;
    padding:7px 7px 7px 8px!important;
  }
  .chapter-main{
    padding:4px 5px!important;
  }
  .chapter-main strong{
    font-size:13px!important;
  }
  .chapter-main small{
    font-size:10px!important;
  }
  .chapter-read{
    min-width:64px!important;
    padding:0 8px!important;
    gap:4px!important;
  }
  .chapter-read b{
    font-size:11.5px!important;
  }
  .chapter-read .material-symbols-rounded{
    font-size:17px!important;
  }
  .chapter-tools{
    grid-template-columns:22px minmax(0,1fr)!important;
  }
  .chapter-tools small{
    display:none!important;
  }
}
