.admin-chapters{min-width:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:rgba(8,14,26,.72)}
.admin-chapters .chapter-toolbar{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.65rem;margin:0;padding:.85rem;background:rgba(9,15,28,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.admin-chapters .chapter-toolbar select,.chapter-search input{width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:11px;background:#0b1220;color:var(--ink);padding:.65rem .75rem}
.chapter-search{grid-column:1/-1;min-width:0}.admin-chapter-scroll{max-height:clamp(360px,66dvh,720px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
.admin-chapter-list{list-style:none;padding:0;margin:0}.admin-chapter-row{display:grid;grid-template-columns:3.25rem minmax(0,1fr) auto auto;gap:.7rem;align-items:center;min-height:64px;padding:.65rem .85rem;border-bottom:1px solid var(--line)}
.admin-chapter-row:last-child{border-bottom:0}.admin-chapter-number{color:var(--muted);font-variant-numeric:tabular-nums;font-weight:600}.admin-chapter-title{min-width:0;color:var(--ink);line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.admin-chapter-status{border:1px solid rgba(167,139,250,.35);border-radius:999px;padding:.28rem .55rem;color:#c4b5fd;background:rgba(139,92,246,.1);font-size:.75rem;white-space:nowrap}.admin-chapter-status.status-draft{color:var(--muted);border-color:var(--line);background:rgba(255,255,255,.04)}.admin-chapter-status.status-scheduled{color:#f2cd83;border-color:rgba(242,205,131,.3);background:rgba(242,205,131,.08)}
.admin-chapter-delete{min-height:38px;border:1px solid rgba(248,113,113,.28);border-radius:999px;padding:.4rem .75rem;color:#fca5a5;background:rgba(248,113,113,.08)}.admin-chapter-empty{margin:0;padding:2rem 1rem;text-align:center;color:var(--muted)}
@media(max-width:640px){.admin-chapter-scroll{max-height:62dvh}.admin-chapter-row{grid-template-columns:2.35rem minmax(0,1fr) auto;gap:.55rem;padding:.68rem .72rem}.admin-chapter-status{grid-column:2;justify-self:start;margin-top:-.15rem}.admin-chapter-delete{grid-column:3;grid-row:1/span 2}}

.admin-chapters .chapter-toolbar{grid-template-columns:minmax(0,1fr) auto auto}
.btn-intro{border:1px solid rgba(167,139,250,.48);color:#ddd6fe;background:rgba(139,92,246,.13);white-space:nowrap}
.admin-chapter-row.is-intro{background:linear-gradient(90deg,rgba(139,92,246,.12),rgba(139,92,246,.025))}
.admin-chapter-row.is-intro .admin-chapter-number{color:#a78bfa;font-size:1.15rem}
.admin-chapter-row.is-intro .admin-chapter-title{color:#ddd6fe;font-weight:600}
.intro-type-value{display:flex;align-items:center;gap:.55rem;min-height:48px;padding:.7rem .8rem;border:1px solid rgba(167,139,250,.38);border-radius:11px;color:#ddd6fe;background:rgba(139,92,246,.1);font-weight:600}
.intro-type-value small{color:var(--muted);font-weight:400}
.chapter-list .intro-num,.intro-toc-row .num{color:#a78bfa!important}
.intro-toc-row a{background:rgba(139,92,246,.08);border-radius:10px}
@media(max-width:640px){.admin-chapters .chapter-toolbar{grid-template-columns:1fr 1fr}.admin-chapters .chapter-toolbar select{grid-column:1/-1}.admin-chapters .chapter-toolbar>.btn{width:100%;padding-inline:.55rem}.intro-type-value{align-items:flex-start;flex-direction:column;gap:.2rem}}
