/* =========================================================
   NINZY CORE — extras.css  (styling fitur tambahan batch 3)
   Dimuat setelah style.css & theme-violet.css. Pakai variabel tema
   yang sama (--ink-2, --line-soft, --brass, --seal, --grad, …) jadi
   ikut semua tema + warna aksen kustom.
   ========================================================= */

/* ---------- util ---------- */
.cx-pad{padding:4px 2px 10px;}
.cx-danger{color:#ff7b7b !important;border-color:rgba(255,123,123,.45) !important;}
.cx-input{
  flex:1; min-width:0; background:var(--ink-2); border:1px solid var(--line-soft); color:var(--paper);
  border-radius:12px; padding:10px 14px; font-size:14px; font-family:inherit;
}
.cx-input:focus{outline:none; border-color:var(--seal-hi); box-shadow:0 0 0 3px rgba(var(--accent-rgb,124,58,237),.22);}
.btn.cx-on,.chip.cx-on{border-color:var(--seal-hi); background:rgba(var(--accent-rgb,124,58,237),.28); color:var(--paper);}

/* ---------- [23] banner offline/online ---------- */
.cx-net{
  position:fixed; left:50%; top:calc(10px + env(safe-area-inset-top,0px)); transform:translate(-50%,-140%);
  z-index:250; padding:9px 16px; border-radius:999px; font-size:12.5px; font-weight:700;
  max-width:calc(100vw - 24px); text-align:center; line-height:1.35;
  box-shadow:var(--shadow,0 8px 24px rgba(0,0,0,.45)); transition:transform .25s ease; pointer-events:none;
}
.cx-net--show{transform:translate(-50%,0);}
.cx-net--off{background:#3a1d1d; color:#ffd6d6; border:1px solid rgba(255,123,123,.5);}
.cx-net--on{background:#143323; color:#c8f7dc; border:1px solid rgba(80,200,140,.5);}

/* ---------- [25] swatch warna aksen ---------- */
.cx-accent-row{display:flex; flex-wrap:wrap; gap:10px;}
.cx-swatch{
  width:34px; height:34px; border-radius:50%; border:2px solid var(--line-soft); cursor:pointer;
  background:var(--ink-3); color:var(--paper-dim); font-size:15px; display:flex; align-items:center; justify-content:center; padding:0;
}
.cx-swatch.active{border-color:var(--paper); box-shadow:0 0 0 3px rgba(var(--accent-rgb,124,58,237),.45);}
.cx-settings-links{display:flex; flex-wrap:wrap; gap:8px; margin-top:6px;}
.cx-settings-links .btn{width:auto; padding:8px 12px; text-decoration:none; display:inline-flex; align-items:center;}

/* ---------- [26] kelola penyimpanan ---------- */
.cx-modal__box{max-width:460px; width:100%; max-height:88vh; overflow-y:auto;}
.cx-store{display:flex; flex-direction:column; gap:2px; margin-top:8px;}
.cx-store__row{display:grid; grid-template-columns:1fr auto auto; gap:10px; align-items:center; padding:9px 2px; border-bottom:1px solid var(--line-soft); font-size:13.5px;}
.cx-store__row:last-child{border-bottom:none;}
.cx-store__n{font-weight:800; color:var(--brass); min-width:28px; text-align:right;}
.cx-store__row .btn{padding:6px 10px; font-size:12px; width:auto;}

/* ---------- [28][29] kartu: tombol cepat + badge ---------- */
.cx-quick{
  position:absolute; top:42px; right:8px; z-index:2; width:28px; height:28px; border-radius:50%;
  background:rgba(var(--ink-rgb,20,18,15),.78); border:1px solid var(--line-soft); color:var(--paper);
  font-size:15px; line-height:1; display:flex; align-items:center; justify-content:center; padding:0; cursor:pointer;
  opacity:0; transition:opacity .15s, background .15s;
}
.card:hover .cx-quick,.card:focus-within .cx-quick,.cx-quick--on{opacity:1;}
@media (max-width:860px){ .cx-quick{opacity:1;} }
.cx-quick--on{background:var(--grad,var(--seal)); border-color:transparent; color:#fff; font-size:13px; font-weight:800;}
.cx-quick:disabled{opacity:.55;}
.card--inlib{box-shadow:0 0 0 1.5px var(--seal-hi), 0 6px 20px rgba(4,2,30,.45);}

/* ---------- [1]–[8] reader ---------- */
.reader__page{position:relative;}
/* header situs di mobile tinggi (~190px) & nutupin bagian atas panel, jadi sisakan ruang buat itu; sisanya di-scroll di dalam panel */
.reader-menu-panel{max-height:calc(100vh - 350px); max-height:calc(100dvh - 350px); min-height:180px; overflow-y:auto; overscroll-behavior:contain;}
.cx-timeinfo{margin-top:8px; font-size:11.5px; color:var(--paper-dim); text-align:center; min-height:1em;}
.cx-tappable{cursor:pointer; text-decoration:underline dotted; text-underline-offset:3px;}
.cx-warm{position:fixed; inset:0; z-index:30; pointer-events:none; mix-blend-mode:multiply; transition:background .2s;}
.cx-jump{
  position:fixed; left:50%; transform:translateX(-50%); z-index:48; width:min(420px, calc(100vw - 28px));
  bottom:calc(152px + env(safe-area-inset-bottom,0px)); /* di atas tombol ☰ (bottom 88 + tinggi 50) biar gak nutupin */
  background:var(--ink-2); border:1px solid var(--line-soft); border-radius:18px; padding:12px 14px 14px;
  box-shadow:var(--glow,0 10px 30px rgba(0,0,0,.5));
}
.cx-jump__head{display:flex; align-items:center; justify-content:space-between; font-size:13px; margin-bottom:8px;}
.cx-jump__x{background:none; border:none; color:var(--paper-dim); font-size:22px; line-height:1; cursor:pointer; padding:0 4px;}
.cx-jump__row{display:flex; align-items:center; gap:12px;}
.cx-jump__row input{flex:1; accent-color:var(--seal-hi);}
.cx-jump__row span{font-family:var(--font-mono,monospace); font-size:12.5px; color:var(--brass); min-width:54px; text-align:right;}
.cx-endcard{
  max-width:520px; margin:6px auto 22px; padding:22px 18px 20px; text-align:center;
  background:var(--ink-2); border:1px solid var(--line-soft); border-radius:20px; color:var(--paper);
}
.cx-endcard__ico{width:46px; height:46px; margin:0 auto 10px; border-radius:50%; background:var(--grad,var(--seal)); color:#fff; font-size:22px; font-weight:800; display:flex; align-items:center; justify-content:center;}
.cx-endcard__title{font-family:var(--font-display,inherit); font-weight:800; font-size:17px;}
.cx-endcard__sub{color:var(--paper-dim); font-size:13px; margin:4px 0 14px;}
.cx-endcard__row{display:flex; flex-wrap:wrap; gap:8px; justify-content:center;}
.cx-endcard__row .btn{width:auto; padding:10px 18px; text-decoration:none;}
.cx-endcard__count{margin-top:12px; font-size:13px; color:var(--brass);}
.cx-endcard__cancel{background:none; border:1px solid var(--line-soft); color:var(--paper); border-radius:999px; padding:3px 12px; margin-left:6px; font-size:12px; cursor:pointer;}
.cx-retry{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:3;
  background:rgba(var(--ink-rgb,20,18,15),.9); color:var(--paper); border:1px solid var(--seal-hi);
  border-radius:999px; padding:10px 18px; font-size:13px; font-weight:700; cursor:pointer;
}

/* ---------- [9]–[13] detail ---------- */
.cx-readbar{margin:0 0 12px; padding:12px 14px; background:var(--ink-2); border:1px solid var(--line-soft); border-radius:16px;}
.cx-readbar__top{display:flex; align-items:center; gap:12px; font-size:12.5px; color:var(--paper-dim); margin-bottom:10px;}
.cx-readbar__top span{white-space:nowrap; font-weight:700; color:var(--paper);}
.cx-readbar__track{flex:1; height:6px; border-radius:999px; background:var(--ink-3); overflow:hidden;}
.cx-readbar__track i{display:block; height:100%; width:0; background:var(--grad,var(--seal)); border-radius:999px; transition:width .25s;}
.cx-readbar__chips{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px;}
.cx-readbar__chips .chip{padding:6px 12px; font-size:12.5px;}
.cx-readbar__next{width:100%; justify-content:center;}
.cx-readbar__empty{margin-top:10px; font-size:12.5px; color:var(--paper-dim); text-align:center;}
#chapterListEl[data-cx-filter="unread"] .chapter-row.cx-read{display:none;}
#chapterListEl[data-cx-filter="read"] .chapter-row:not(.cx-read){display:none;}
.chapter-row.cx-read{opacity:.62;}
.chapter-row.cx-read .chapter-row__num{background:rgba(var(--accent-rgb,124,58,237),.28); color:var(--paper);}
.cx-read-toggle{
  flex-shrink:0; width:30px; height:30px; border-radius:50%; border:1px solid var(--line-soft); background:var(--ink-3);
  color:var(--paper-dim); font-size:13px; line-height:1; padding:0; cursor:pointer;
}
.chapter-row.cx-read .cx-read-toggle{background:var(--grad,var(--seal)); color:#fff; border-color:transparent;}
.cx-clamp:not(.cx-open){display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical; overflow:hidden;}
.cx-more{background:none; border:none; color:var(--brass); font-weight:700; font-size:13px; padding:8px 2px 0; cursor:pointer;}
.cx-track{margin:10px 0; padding:12px 14px; background:var(--ink-2); border:1px solid var(--line-soft); border-radius:14px;}
.cx-track__title{font-size:13px; font-weight:700; margin-bottom:10px;}
.cx-track__title small{color:var(--paper-dim); font-weight:500;}
.cx-track__grid{display:grid; grid-template-columns:repeat(3,1fr); gap:10px;}
.cx-track__grid label{display:flex; flex-direction:column; gap:5px; font-size:11.5px; color:var(--paper-dim); min-width:0;}
.cx-track__grid .filter-select{width:100%; min-width:0; padding:8px 8px; font-size:13px;}
@media (max-width:420px){ .cx-track__grid{grid-template-columns:1fr 1fr;} .cx-track__grid label:first-child{grid-column:1/-1;} }

/* ---------- [14]–[17] Rak Saya ---------- */
.cx-libtools{margin-bottom:6px;}
.cx-libtools__row{display:flex; gap:8px; align-items:center; margin-bottom:10px;}
.cx-libtools .chip-row{margin-bottom:8px;}
.cx-libtools__count{font-size:12px; color:var(--paper-dim); margin:0 2px 10px;}
.cx-libtools__empty{padding:18px; text-align:center; color:var(--paper-dim); font-size:13.5px;}
.cx-score{color:var(--brass); font-weight:700;}
#libList.cx-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(112px,1fr)); gap:12px;}
#libList.cx-grid .lib-item{flex-direction:column; align-items:stretch; padding:0; margin:0; overflow:hidden; position:relative; gap:0;}
#libList.cx-grid .lib-item__cover{width:100%; height:auto; aspect-ratio:2/3; border:none; border-radius:0;}
#libList.cx-grid .lib-item__info{padding:8px 9px 10px;}
#libList.cx-grid .lib-item__title{font-size:12.5px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.6em;}
#libList.cx-grid .lib-item__meta,
#libList.cx-grid .lib-item__note{display:none;}
#libList.cx-grid .lib-item__progress{margin-top:6px;}
#libList.cx-grid .lib-item__progress-text{font-size:10.5px;}
#libList.cx-grid .lib-item__actions{position:absolute; top:6px; right:6px; flex-direction:row; gap:4px;}
#libList.cx-grid .lib-item__actions button{background:rgba(var(--ink-rgb,20,18,15),.8);}
#libList.cx-selecting .lib-item{cursor:pointer; user-select:none;}
#libList.cx-selecting .lib-item__actions{visibility:hidden;}
.lib-item.cx-selected{border-color:var(--seal-hi); box-shadow:0 0 0 2px var(--seal-hi) inset;}
.lib-item.cx-selected::after{
  content:"✓"; position:absolute; top:6px; left:6px; width:24px; height:24px; border-radius:50%;
  background:var(--grad,var(--seal)); color:#fff; font-weight:800; font-size:14px; display:flex; align-items:center; justify-content:center; z-index:2;
}
.lib-item{position:relative;}
.cx-selbar{
  position:fixed; left:50%; transform:translateX(-50%); z-index:60; width:min(520px, calc(100vw - 20px));
  bottom:calc(var(--bottomnav-h,68px) + 10px + env(safe-area-inset-bottom,0px));
  background:var(--ink-2); border:1px solid var(--seal-hi); border-radius:18px; padding:10px 12px;
  box-shadow:var(--glow,0 10px 30px rgba(0,0,0,.5)); display:flex; flex-direction:column; gap:8px;
}
@media (min-width:861px){ .cx-selbar{bottom:18px;} }
.cx-selbar__top{display:flex; align-items:center; justify-content:space-between; font-size:13px; font-weight:700;}
.cx-selbar__row{display:flex; gap:8px;}
.cx-selbar__row>*{flex:1; min-width:0; width:auto;}
.cx-selbar .filter-select{padding:8px 8px; font-size:12.5px;}
.cx-selbar .btn{padding:8px 8px; font-size:12.5px; width:auto;}

/* ---------- [18] riwayat ---------- */
.cx-histsearch{display:flex; margin-bottom:12px;}
.cx-day{font-family:var(--font-display,inherit); font-size:13px; font-weight:700; color:var(--brass); margin:16px 2px 8px; text-transform:none; letter-spacing:.2px;}
.cx-day:first-child{margin-top:4px;}

/* ---------- [21][22] widget beranda ---------- */
.cx-home{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:14px 0 6px;}
@media (max-width:560px){ .cx-home{grid-template-columns:1fr;} }
.cx-goal,.cx-streak{
  display:flex; align-items:center; gap:12px; padding:12px 14px; min-width:0;
  background:var(--ink-2); border:1px solid var(--line-soft); border-radius:16px;
}
.cx-streak--warn{border-color:#f59e0b; background:linear-gradient(90deg, rgba(245,158,11,.14), var(--ink-2) 70%);}
.cx-goal__ico{font-size:26px; flex-shrink:0; width:44px; text-align:center;}
.cx-card__txt{display:flex; flex-direction:column; gap:2px; min-width:0; flex:1;}
.cx-card__txt b{font-size:14px;}
.cx-card__txt span{font-size:12px; color:var(--paper-dim); line-height:1.35;}
.cx-goal .btn{width:auto; flex-shrink:0;}
.cx-ring{width:52px; height:52px; flex-shrink:0;}
.cx-ring__bg{fill:none; stroke:var(--ink-3); stroke-width:7;}
.cx-ring__fg{fill:none; stroke:var(--seal-hi); stroke-width:7; stroke-linecap:round; transition:stroke-dashoffset .5s;}
.cx-ring__txt{fill:var(--paper); font-size:15px; font-weight:800; font-family:var(--font-display,inherit);}

/* ---------- [19][20] statistik ---------- */
.cx-statgrid{display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; margin-bottom:14px;}
.cx-stat{padding:14px 12px; text-align:center; background:var(--ink-2); border:1px solid var(--line-soft); border-radius:16px;}
.cx-stat b{display:block; font-size:24px; font-weight:800; color:var(--brass); font-family:var(--font-display,inherit); line-height:1.1;}
.cx-stat span{display:block; margin-top:4px; font-size:11.5px; color:var(--paper-dim);}
.cx-block{max-width:none;}
.cx-bars{display:flex; align-items:flex-end; gap:8px; height:150px; margin:4px 0 8px;}
.cx-bar{flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; height:100%; min-width:0;}
.cx-bar__val{font-size:10.5px; color:var(--paper-dim); min-height:1.2em;}
.cx-bar__col{flex:1; width:100%; display:flex; align-items:flex-end; background:var(--ink-3); border-radius:8px; overflow:hidden;}
.cx-bar__col i{display:block; width:100%; background:var(--grad,var(--seal)); border-radius:8px 8px 0 0; min-height:2px;}
.cx-bar--today .cx-bar__lbl{color:var(--brass); font-weight:800;}
.cx-bar__lbl{font-size:11px; color:var(--paper-dim);}
.cx-goalrow{display:flex; align-items:center; gap:12px; flex-wrap:wrap;}
.cx-goalrow .filter-select{min-width:130px;}
.cx-heatwrap{overflow-x:auto; padding-bottom:4px;}
.cx-heat{display:flex; gap:4px; width:max-content;}
.cx-heat__col{display:flex; flex-direction:column; gap:4px;}
.cx-heat__c{display:block; width:16px; height:16px; border-radius:4px; background:var(--ink-3);}
.cx-heat__c--none{background:transparent;}
.cx-heat__c--1{background:rgba(var(--accent-rgb,124,58,237),.30);}
.cx-heat__c--2{background:rgba(var(--accent-rgb,124,58,237),.55);}
.cx-heat__c--3{background:rgba(var(--accent-rgb,124,58,237),.78);}
.cx-heat__c--4{background:var(--seal-hi);}
.cx-heat__legend{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; font-size:11.5px; color:var(--paper-dim); flex-wrap:wrap;}
.cx-heat__scale{display:inline-flex; align-items:center; gap:4px;}
.cx-heat__scale .cx-heat__c{width:12px; height:12px; border-radius:3px;}

/* ---------- [6] galeri panel favorit ---------- */
.cx-panels{display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:14px;}
.cx-panel{position:relative; background:var(--ink-2); border:1px solid var(--line-soft); border-radius:16px; overflow:hidden;}
.cx-panel__thumb{display:block; aspect-ratio:3/4; background:var(--ink-3);}
.cx-panel__thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.cx-panel__info{padding:9px 10px 11px;}
.cx-panel__title{font-size:12.5px; font-weight:700; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.cx-panel__meta{margin-top:3px; font-size:11px; color:var(--brass);}
.cx-panel__del{
  position:absolute; top:6px; right:6px; width:26px; height:26px; border-radius:50%;
  background:rgba(var(--ink-rgb,20,18,15),.82); border:1px solid var(--line-soft); color:var(--paper); font-size:16px; line-height:1; padding:0; cursor:pointer;
}

/* ---------- [27] cari semua sumber ---------- */
.cx-srchead{margin-top:18px;}
.cx-srchead:first-child{margin-top:4px;}

/* ---------- mode terang: tweak kecil ---------- */
[data-theme="light"] .cx-net--off{background:#ffe3e3; color:#8a1f1f;}
[data-theme="light"] .cx-net--on{background:#ddf7e8; color:#14502f;}

/* ---------- pengaturan: baris jangan ikut menyusut (kolom flex ber-scroll) ---------- */
#settingsModal .settings-row,
#settingsModal .cx-settings-links,
#settingsModal .settings-divider{flex-shrink:0;}
#settingsModal .cx-accent-row{padding-top:2px;}

/* ---------- halaman Statistik/Panel: style blok sendiri (.profile-block aslinya cuma di-inject di halaman Profil) ---------- */
.cx-block{margin-bottom:14px; padding:14px 16px 16px; background:var(--ink-2); border:1px solid var(--line-soft); border-radius:16px;}
.cx-block .profile-block__title{
  font-family:var(--font-display,inherit); font-size:15.5px; margin:0 0 12px; padding-bottom:10px;
  border-bottom:1px solid var(--line-soft); display:flex; align-items:center; gap:8px;
}
.cx-block .hint,.cx-pad{font-size:12.5px; color:var(--paper-dim); line-height:1.5;}
.cx-block .hint{margin:8px 0 0;}
.cx-pad{padding:2px 2px 12px;}

/* ---------- [31]–[34] jumlah baca ---------- */
.cx-reads{margin-top:5px; font-size:11px; color:var(--brass); font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
#cxReadsStat b{color:var(--brass);}
.cx-toprow{text-decoration:none; color:inherit; align-items:center;}
.cx-toprow__rank{
  flex-shrink:0; width:28px; text-align:center; font-family:var(--font-display,inherit); font-weight:800; font-size:16px; color:var(--paper-dim);
}
.cx-toprow__rank--top{color:var(--brass); font-size:19px;}
.cx-toprow__n{flex-shrink:0; text-align:right; display:flex; flex-direction:column; gap:1px; min-width:52px;}
.cx-toprow__n b{font-size:15px; color:var(--brass); font-family:var(--font-display,inherit);}
.cx-toprow__n span{font-size:10.5px; color:var(--paper-dim);}
#cxHomeTop{margin-top:18px;}

/* hero: gambar sebagai <img> (no-referrer) menggantikan CSS background-image */
.hero__bg{overflow:hidden;}
.hero__bg-img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center top; display:block;}

/* halaman detail sumber yang belum bisa dibaca (SoftKomik) */
.cx-unsup{display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:6px 0 24px;}
.cx-unsup .btn{width:auto; text-decoration:none;}

.cx-unsup-search{display:flex; gap:8px; align-items:center; margin:4px 0 10px;}
.cx-unsup-search .btn{width:auto; flex-shrink:0;}

/* =========================================================
   BATCH 5 (fitur 35–54)
   ========================================================= */
/* [35] redupkan & [36] balik warna & [37] garis progres */
.cx-dim{position:fixed; inset:0; z-index:31; pointer-events:none; transition:background .15s;}
body.cx-invert .reader__page img{filter:invert(1) hue-rotate(180deg);}
.cx-progress{position:fixed; top:0; left:0; right:0; height:3px; z-index:60; pointer-events:none;}
.cx-progress i{display:block; height:100%; width:0; background:var(--grad,var(--seal-hi)); border-radius:0 3px 3px 0;}
.cx-breakrow{display:flex; align-items:center; justify-content:space-between; gap:10px;}
.cx-breakrow label{font-size:13px; color:var(--paper-dim);}
.cx-breakrow .filter-select{width:auto; min-width:120px; padding:7px 8px; font-size:12.5px;}

/* [43][44] detail */
.cx-readbar__acts{display:flex; gap:8px; margin-top:8px;}
.cx-readbar__acts .btn{flex:1; width:auto; justify-content:center; font-size:12.5px;}
.cx-newbanner{margin:0 0 10px; padding:9px 12px; border-radius:12px; font-size:13px; font-weight:700; color:var(--paper);
  background:linear-gradient(90deg, rgba(var(--accent-rgb,124,58,237),.30), transparent); border:1px solid var(--seal-hi);}
.cx-newtag{flex-shrink:0; font-size:10px; font-weight:800; letter-spacing:.5px; padding:3px 7px; border-radius:999px; background:var(--grad,var(--seal)); color:#fff;}

/* [42] tag pribadi */
.cx-tags{margin-top:12px; padding-top:12px; border-top:1px solid var(--line-soft);}
.cx-tags__title{font-size:12px; color:var(--paper-dim); margin-bottom:8px;}
.cx-tags__list{display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; min-height:1.6em;}
.cx-tag{display:inline-flex; align-items:center; gap:4px; padding:4px 6px 4px 10px; border-radius:999px; font-size:12.5px; background:rgba(var(--accent-rgb,124,58,237),.22); border:1px solid var(--line-soft); color:var(--paper);}
.cx-tag__x{background:none; border:none; color:var(--paper-dim); font-size:15px; line-height:1; padding:0 4px; cursor:pointer;}
.cx-tags__add{display:flex; gap:8px; align-items:center;}
.cx-tags__add .btn{width:auto; flex-shrink:0;}

/* [45][46][53] Rak */
.cx-libtools__countrow{display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 2px 10px;}
.cx-libtools__countrow .cx-libtools__count{margin:0;}
.cx-linkbtn{background:none; border:none; color:var(--brass); font-size:12.5px; font-weight:700; cursor:pointer; padding:2px 0;}
#cxLibTags .chip small{opacity:.7; margin-left:2px;}

/* [47] pencarian */
body.cx-hide-inlib #searchGrid a.card--inlib{display:none;}

/* [48][49][50] statistik */
.cx-records{display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px;}
.cx-records div{padding:10px 8px; text-align:center; background:var(--ink-3); border-radius:12px; min-width:0;}
.cx-records b{display:block; font-size:14.5px; color:var(--brass); font-family:var(--font-display,inherit); line-height:1.25; word-break:break-word;}
.cx-records span{display:block; margin-top:3px; font-size:11px; color:var(--paper-dim);}
.cx-genre{display:grid; grid-template-columns:96px 1fr 28px; align-items:center; gap:10px; margin:7px 0; font-size:13px;}
.cx-genre__n{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cx-genre__bar{height:9px; border-radius:999px; background:var(--ink-3); overflow:hidden;}
.cx-genre__bar i{display:block; height:100%; background:var(--grad,var(--seal)); border-radius:999px;}
.cx-genre__c{text-align:right; color:var(--paper-dim); font-size:12px;}
.cx-badges{display:grid; grid-template-columns:repeat(auto-fill,minmax(128px,1fr)); gap:10px;}
.cx-badge{padding:12px 8px; text-align:center; border-radius:14px; background:var(--ink-3); border:1px solid var(--line-soft); opacity:.45; filter:grayscale(1);}
.cx-badge--on{opacity:1; filter:none; border-color:var(--seal-hi); background:linear-gradient(180deg, rgba(var(--accent-rgb,124,58,237),.18), var(--ink-3));}
.cx-badge i{display:block; font-style:normal; font-size:26px; margin-bottom:4px;}
.cx-badge b{display:block; font-size:12.5px; line-height:1.25;}
.cx-badge span{display:block; font-size:10.5px; color:var(--paper-dim); margin-top:3px; line-height:1.3;}

/* [51] kolom kartu */
body[data-cx-cols="2"] .grid:has(> a.card){grid-template-columns:repeat(2,minmax(0,1fr));}
body[data-cx-cols="3"] .grid:has(> a.card){grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px;}
body[data-cx-cols="4"] .grid:has(> a.card){grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px;}
body[data-cx-cols="3"] .grid:has(> a.card) .card__title,
body[data-cx-cols="4"] .grid:has(> a.card) .card__title{font-size:12px;}
body[data-cx-cols="4"] .cx-quick,body[data-cx-cols="4"] .card__share{transform:scale(.8); transform-origin:top right;}

/* [52] kurangi animasi */
body.cx-reduce *,body.cx-reduce *::before,body.cx-reduce *::after{
  animation-duration:.001ms !important; animation-iteration-count:1 !important;
  transition-duration:.001ms !important; scroll-behavior:auto !important;
}

/* =========================================================
   BATCH 6 (fitur 55–64)
   ========================================================= */
/* [55][56] panel favorit */
.cx-panel__note{margin-top:5px; font-size:11.5px; color:var(--paper); line-height:1.35; cursor:pointer; word-break:break-word; min-height:1.2em;}
.cx-panel__add{color:var(--paper-dim); font-style:italic;}
.cx-panel__noteinp{width:100%; padding:6px 8px; font-size:12px; border-radius:8px;}
.cx-panel__dl{
  position:absolute; top:6px; left:6px; width:26px; height:26px; border-radius:50%;
  background:rgba(var(--ink-rgb,20,18,15),.82); border:1px solid var(--line-soft); color:var(--paper); font-size:13px; line-height:1; padding:0; cursor:pointer;
}

/* [57][60] detail */
.cx-eta{margin:0 0 10px; font-size:12.5px; color:var(--brass); line-height:1.45;}
.cx-donebar{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 10px; padding:10px 12px; border-radius:12px; font-size:13px; font-weight:700;
  background:linear-gradient(90deg, rgba(var(--accent-rgb,124,58,237),.28), transparent); border:1px solid var(--seal-hi);}
.cx-donebar[hidden]{display:none;}
.cx-donebar span{flex:1 1 100%;}
.cx-donebar .btn{width:auto;}

/* [59] hitungan di chip status */
.cx-libtools .chip small{opacity:.75; margin-left:3px; font-weight:700;}

/* [61] minggu ini vs lalu */
.cx-cmp{display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px; text-align:center;}
.cx-cmp b{display:block; font-size:18px; color:var(--brass); font-family:var(--font-display,inherit);}
.cx-cmp span{display:block; margin-top:3px; font-size:11px; color:var(--paper-dim);}
.cx-cmp__mid{font-size:13px;}
.cx-delta{display:inline-block; padding:6px 10px; border-radius:999px; font-weight:800; font-size:13px; background:var(--ink-3); color:var(--paper-dim);}
.cx-delta--up{background:rgba(80,200,140,.2); color:#7be0ad;}
.cx-delta--down{background:rgba(255,123,123,.18); color:#ff9d9d;}

/* [62] jam baca favorit */
.cx-hours{display:flex; align-items:flex-end; gap:3px; height:110px; margin:4px 0 8px;}
.cx-hr{flex:1; min-width:0; height:100%; display:flex; flex-direction:column; align-items:center; gap:3px;}
.cx-hr i{display:block; width:100%; margin-top:auto; background:rgba(var(--accent-rgb,124,58,237),.55); border-radius:4px 4px 0 0; min-height:2px;}
.cx-hr--top i{background:var(--seal-hi);}
.cx-hr span{font-size:9.5px; color:var(--paper-dim); height:1.1em; line-height:1.1em;}
.cx-hr > i{flex:0 0 auto;}
.cx-hr{justify-content:flex-end;}

/* [64] timer tidur */
.cx-sleep{position:fixed; inset:0; z-index:90; background:rgba(0,0,0,.94); display:flex; align-items:center; justify-content:center; padding:24px;}
.cx-sleep__box{max-width:340px; text-align:center; color:var(--paper);}
.cx-sleep__ico{font-size:54px; margin-bottom:8px;}
.cx-sleep__box b{display:block; font-size:19px; font-family:var(--font-display,inherit);}
.cx-sleep__box p{margin:8px 0 18px; font-size:13px; color:var(--paper-dim); line-height:1.5;}
.cx-sleep__row{display:flex; gap:10px; justify-content:center; flex-wrap:wrap;}
.cx-sleep__row .btn{width:auto; text-decoration:none;}

/* =========================================================
   BATCH 7 (fitur 65–92)  — dipakai extras2.js
   ========================================================= */
/* [65] latar reader */
body.cx-in-reader.cx-rbg-black,body.cx-rbg-black .reader{background:#000 !important;}
body.cx-in-reader.cx-rbg-gray,body.cx-rbg-gray .reader{background:#1d1d22 !important;}
body.cx-in-reader.cx-rbg-white,body.cx-rbg-white .reader{background:#ffffff !important;}
body.cx-in-reader.cx-rbg-sepia,body.cx-rbg-sepia .reader{background:#f1e4c8 !important;}
body.cx-rbg-white .reader__topbar,body.cx-rbg-sepia .reader__topbar{color:#222;}

/* [66] jam */
.cx-clock{position:fixed; top:calc(8px + env(safe-area-inset-top,0px)); right:10px; z-index:70; padding:3px 9px; border-radius:999px; font-size:11.5px; font-weight:700; color:#fff; background:rgba(0,0,0,.55); pointer-events:none; font-variant-numeric:tabular-nums;}

/* [71] tombol scroll melayang */
.cx-float{position:fixed; right:14px; bottom:calc(150px + env(safe-area-inset-bottom,0px)); z-index:44; display:flex; flex-direction:column; gap:10px;}
.cx-float__b{width:44px; height:44px; border-radius:50%; border:1px solid var(--line-soft); background:rgba(var(--ink-rgb,20,18,15),.82); color:var(--paper); font-size:16px; cursor:pointer; padding:0;}

/* [67] kunci sentuhan */
.cx-lock{position:fixed; inset:0; z-index:80; touch-action:none; background:transparent;}
.cx-lock__pill{position:absolute; left:50%; bottom:calc(96px + env(safe-area-inset-bottom,0px)); transform:translateX(-50%); max-width:calc(100vw - 32px); text-align:center; padding:10px 16px; border-radius:999px; font-size:12.5px; font-weight:700; color:#fff; background:rgba(0,0,0,.72); border:1px solid rgba(255,255,255,.25); user-select:none;}
.cx-lock__pill--hold{background:var(--seal); border-color:var(--seal-hi);}

/* [68] layar privasi */
.cx-privacy{position:fixed; inset:0; z-index:200; background:#f2f2f2; display:flex; align-items:center; justify-content:center; touch-action:none; user-select:none;}
.cx-privacy__txt{color:#9a9a9a; font:600 15px/1.4 system-ui,sans-serif; text-align:center;}
.cx-privacy__txt small{display:block; margin-top:6px; font-weight:400; font-size:11px; color:#c2c2c2;}

/* [72]–[77] detail */
.cx-fav-toggle,.cx-more-btn{flex-shrink:0; width:30px; height:30px; border-radius:50%; border:1px solid var(--line-soft); background:var(--ink-3); color:var(--paper-dim); font-size:14px; line-height:1; padding:0; cursor:pointer;}
.cx-fav-toggle[aria-pressed="true"]{color:#ff6b9a; border-color:#ff6b9a;}
.chapter-row.cx-fav{border-color:rgba(255,107,154,.55);}
.chapter-row.cx-hasnote .cx-more-btn{border-color:var(--seal-hi);}
.cx-lasttag{flex-shrink:0; font-size:10px; font-weight:800; letter-spacing:.4px; padding:3px 7px; border-radius:999px; border:1px solid var(--brass); color:var(--brass);}
.cx-chtime{color:var(--brass);}
#chapterListEl[data-cx-f2="fav"] .chapter-row:not(.cx-fav){display:none;}
#chapterListEl[data-cx-f2="note"] .chapter-row:not(.cx-hasnote){display:none;}
.chapter-row.cx-flash{animation:cxFlash 1.6s ease;}
@keyframes cxFlash{0%,60%{box-shadow:0 0 0 3px var(--seal-hi);}100%{box-shadow:0 0 0 0 transparent;}}
.cx-readbar__acts2{margin-top:6px;}
.cx-fieldlbl{display:block; font-size:12px; color:var(--paper-dim); margin:10px 0 6px;}
.cx-textarea{width:100%; box-sizing:border-box; background:var(--ink-2); border:1px solid var(--line-soft); color:var(--paper); border-radius:12px; padding:10px 12px; font:inherit; font-size:14px; resize:vertical; min-height:84px;}
.cx-textarea:focus{outline:none; border-color:var(--seal-hi);}
.cx-chmodal__row{display:flex; gap:8px; margin:10px 0 8px;}
.cx-chmodal__row .btn{flex:1; width:auto;}
.cx-chmodal__wide{width:100%; margin-top:6px;}

/* [78]–[80] Rak */
.cx-hide2{display:none !important;}
.cx-libmore{margin:0 0 8px;}
.cx-libmore .chip small{opacity:.75; margin-left:3px;}
.cx-dup{margin:10px 0; padding:10px 12px; background:var(--ink-3); border-radius:12px;}
.cx-dup b{display:block; font-size:14px; margin-bottom:6px;}
.cx-dup__row{display:flex; justify-content:space-between; gap:10px; padding:7px 0; border-top:1px solid var(--line-soft); color:var(--paper); text-decoration:none; font-size:13px;}
.cx-dup__row small{color:var(--paper-dim);}

/* [81]–[83] beranda */
.cx-greet{margin:14px 0 4px; display:flex; flex-direction:column; gap:2px;}
.cx-greet b{font-size:18px; font-family:var(--font-display,inherit);}
.cx-greet span{font-size:12.5px; color:var(--paper-dim);}
.cx-week{margin:12px 0; padding:12px 14px; background:var(--ink-2); border:1px solid var(--line-soft); border-radius:16px;}
.cx-week__head{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; font-size:14px;}
.cx-week__head span{color:var(--brass); font-weight:800; font-size:13px;}
.cx-week__head .btn{width:auto;}
.cx-week__dots{display:grid; grid-template-columns:repeat(7,1fr); gap:6px; text-align:center;}
.cx-dot{display:flex; flex-direction:column; align-items:center; gap:4px; font-size:10.5px; color:var(--paper-dim);}
.cx-dot i{display:block; width:26px; height:26px; border-radius:50%; background:var(--ink-3); border:1px solid var(--line-soft);}
.cx-dot--on i{background:var(--grad,var(--seal)); border-color:transparent;}
.cx-dot--today span{color:var(--brass); font-weight:800;}
.cx-dot--today i{box-shadow:0 0 0 2px var(--seal-hi);}
.cx-dot--future{opacity:.5;}
.cx-week__msg{margin-top:10px; font-size:12.5px; color:var(--paper-dim);}
.cx-stale{margin:12px 0; padding:12px 14px; background:var(--ink-2); border:1px solid var(--line-soft); border-radius:16px;}
.cx-stale__head{display:flex; flex-direction:column; gap:2px; margin-bottom:8px;}
.cx-stale__head small{font-size:11.5px; color:var(--paper-dim);}
.cx-stale__row{display:flex; gap:10px; align-items:center; padding:7px 0; border-top:1px solid var(--line-soft); color:var(--paper); text-decoration:none;}
.cx-stale__row img{width:38px; height:54px; object-fit:cover; border-radius:6px; flex-shrink:0; background:var(--ink-3);}
.cx-stale__row b{display:block; font-size:13.5px;}
.cx-stale__row span{font-size:11.5px; color:var(--paper-dim);}

/* [84] palet perintah */
#cxPalette .cx-modal__box{padding:12px; max-width:480px;}
.cx-pal__in{width:100%; box-sizing:border-box; margin-bottom:8px;}
.cx-pal__list{display:flex; flex-direction:column; gap:2px; max-height:52vh; overflow-y:auto;}
.cx-pal__item{display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:10px 12px; border:none; border-radius:10px; background:transparent; color:var(--paper); font:inherit; font-size:14px; cursor:pointer;}
.cx-pal__item--on,.cx-pal__item:hover{background:rgba(var(--accent-rgb,124,58,237),.25);}
.cx-pal__item span{width:22px; text-align:center;}
.cx-pal__hint{margin-top:8px; font-size:11px; color:var(--paper-dim); text-align:center;}

/* [85] daftar incaran */
.cx-wl__add{display:flex; gap:8px; margin:6px 0 12px;}
.cx-wl__add .btn{width:auto; flex-shrink:0;}
.cx-wl{display:flex; flex-direction:column; gap:8px;}
.cx-wl__row{display:flex; align-items:center; gap:10px; padding:10px 12px; background:var(--ink-2); border:1px solid var(--line-soft); border-radius:14px;}
.cx-wl__q{flex:1; min-width:0; font-size:14px; word-break:break-word;}
.cx-wl__row--done .cx-wl__q{text-decoration:line-through; opacity:.55;}
.cx-wl__go{width:auto; text-decoration:none; flex-shrink:0;}
.cx-wl__del{background:none; border:none; color:var(--paper-dim); font-size:20px; line-height:1; cursor:pointer; padding:0 4px;}
.cx-wl__chk{width:18px; height:18px; accent-color:var(--seal-hi); flex-shrink:0;}

/* [86] kontras tinggi  [87] tombol besar */
body.cx-contrast{--paper-dim:var(--paper) !important; --line-soft:color-mix(in srgb, var(--paper) 55%, transparent) !important;}
body.cx-contrast .card__title,body.cx-contrast .chapter-row__title{font-weight:800;}
body.cx-bigtap .btn,body.cx-bigtap .chip,body.cx-bigtap .filter-select,body.cx-bigtap .settings-row,body.cx-bigtap .cx-pal__item{min-height:48px;}
body.cx-bigtap .cx-read-toggle,body.cx-bigtap .cx-fav-toggle,body.cx-bigtap .cx-more-btn{width:42px; height:42px; font-size:16px;}
body.cx-bigtap .bottomnav a{min-height:56px;}

/* [89] versi baru */
.cx-update{position:fixed; left:50%; transform:translateX(-50%); z-index:120; bottom:calc(var(--bottomnav-h,68px) + 14px + env(safe-area-inset-bottom,0px)); width:min(460px, calc(100vw - 20px)); display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:16px; background:var(--ink-2); border:1px solid var(--seal-hi); box-shadow:var(--glow,0 10px 30px rgba(0,0,0,.5)); font-size:13px; font-weight:700;}
.cx-update span{flex:1;}
.cx-update .btn{width:auto;}
.cx-update__x{background:none; border:none; color:var(--paper-dim); font-size:20px; line-height:1; cursor:pointer; padding:0 4px;}

/* [90]–[92] statistik */
.cx-bars--sm{height:120px;}
.cx-toptitle{display:flex; align-items:center; gap:10px; padding:9px 0; border-top:1px solid var(--line-soft); color:var(--paper); text-decoration:none;}
.cx-toptitle:first-of-type{border-top:none;}
.cx-toptitle__i{width:22px; text-align:center; font-weight:800; color:var(--brass);}
.cx-toptitle b{flex:1; min-width:0; font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cx-toptitle small{color:var(--brass); font-weight:700; flex-shrink:0;}

/* rapikan baris chapter di layar sempit: penanda TERAKHIR ikut sebaris dengan judul, tombol lebih kecil */
.cx-lasttag{margin-left:6px; vertical-align:middle; white-space:nowrap;}
@media (max-width:480px){
  .chapter-row .cx-read-toggle,.chapter-row .cx-fav-toggle,.chapter-row .cx-more-btn{width:28px; height:28px; font-size:12.5px;}
  .chapter-row{gap:8px;}
  body.cx-bigtap .chapter-row .cx-read-toggle,body.cx-bigtap .chapter-row .cx-fav-toggle,body.cx-bigtap .chapter-row .cx-more-btn{width:40px; height:40px;}
}

/* =========================================================
   PREMIUM — lencana kunci, ajakan, daftar fitur
   ========================================================= */
button.cx-lk::after,.chip.cx-lk::after,.btn.cx-lk::after{content:" 💎"; font-size:.85em;}
.cx-fav-toggle.cx-lk::after,.cx-more-btn.cx-lk::after,.cx-tag__x.cx-lk::after,.cx-swatch.cx-lk::after,.cx-float__b.cx-lk::after{content:none;}
.cx-fav-toggle.cx-lk,.cx-more-btn.cx-lk,.cx-swatch.cx-lk{opacity:.55;}
select.cx-lk,input.cx-lk{opacity:.6;}
.cx-lk-row{position:relative;}
.cx-lk-row::before{content:"💎"; position:absolute; top:3px; right:6px; font-size:11px; z-index:2; pointer-events:none;}
.cx-progress[hidden]{display:none;}
.cx-home--locked{grid-template-columns:1fr;}
.cx-lockcard{text-decoration:none; color:inherit; border-style:dashed;}
.cx-prem{text-align:center;}
.cx-prem__ico{font-size:46px; margin-bottom:6px;}
.cx-prem h2{margin:0 0 6px;}
.cx-prem p{margin:0 0 14px; color:var(--paper-dim); font-size:14px; line-height:1.5;}
.cx-prem__row{display:flex; gap:8px; justify-content:center; flex-wrap:wrap;}
.cx-prem__row .btn{width:auto; text-decoration:none;}
.cx-prem .cx-linkbtn{margin-top:12px;}
.cx-prem__h{font-size:13.5px; margin:14px 0 6px; font-family:var(--font-display,inherit);}
.cx-prem__ul{margin:0; padding:0 0 0 18px; columns:2; column-gap:18px; font-size:12.5px; line-height:1.55; color:var(--paper-dim);}
.cx-prem__ul--p{color:var(--paper);}
#cxPremList .cx-modal__box{max-height:86vh; overflow-y:auto;}
.cx-premrow small{margin-left:4px;}

/* lencana 💎 untuk baris berisi pilihan (select) di menu reader: taruh di samping label, bukan di atas panah dropdown */
.cx-breakrow.cx-lk-row::before{content:none;}
.cx-breakrow.cx-lk-row label::after{content:" 💎"; font-size:.85em;}
.reader-menu-panel__row--slider.cx-lk-row::before{top:2px; right:2px;}
