:root{
  --red:#F05454;
  --bg:#ffffff;
  --nav:#f6f0ee;
  --text:#222;
  --muted:#6a6a6a;
  --border:rgba(0,0,0,.08);
  --shadow:0 10px 28px rgba(0,0,0,.06);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:"Poppins", sans-serif;
  color:var(--text);
  background:var(--bg);
}

/* ===== MAIN LAYOUT ===== */
.cb-main{
  padding:26px 0 60px;
}

.cb-wrap{
  width:min(980px, 92vw);
  margin:0 auto;
  display:grid;
  grid-template-columns:260px 1fr;
  gap:26px;
  align-items:start;
}

.cb-right-col{
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* ===== COVER BOX ===== */
.cb-cover-box{
  position:relative;
  background:#f3f3f3;
  border:1px solid var(--border);
  border-radius:2px;
  height:320px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:10px;
  overflow:hidden;
}

.cb-cover-placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.cb-cover-icon{
  color:#8c8c8c;
  opacity:.95;
}

.cb-cover-text{
  margin:0;
  color:#777;
  font-size:13px;
  font-weight:500;
  text-align:center;
  padding:0 12px;
}

.cb-cover-preview{
  display:none;
  width:100%;
  height:100%;
  object-fit:cover;
}

.cb-cover-btn{
  position:relative;
  z-index:2;
  margin-top:6px;
  font-size:12px;
  font-weight:700;
  color:#444;
  padding:8px 12px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  cursor:pointer;
}

.cb-help-dot{
  position:absolute;
  right:10px;
  bottom:10px;
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  font-weight:800;
  font-size:12px;
  cursor:pointer;
  color:#444;
  z-index:2;
}

/* ===== FORM CARD ===== */
.cb-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:2px;
  box-shadow:var(--shadow);
}

.cb-card-inner{
  padding:18px 22px 16px;
}

.cb-card-title{
  margin:0;
  font-size:16px;
  font-weight:700;
}

.cb-divider{
  height:4px;
  background:rgba(0,0,0,.15);
  margin:10px 0 16px;
  border-radius:2px;
}

/* ===== FORM ===== */
.cb-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.cb-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.cb-label{
  font-size:13px;
  font-weight:600;
  color:#222;
}

.cb-label-row{
  display:flex;
  align-items:center;
  gap:8px;
}

.cb-info{
  width:16px;
  height:16px;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  font-size:11px;
  font-weight:800;
  color:#666;
  border:1px solid rgba(0,0,0,.18);
}

.cb-input,
.cb-textarea{
  width:100%;
  border:1px solid rgba(0,0,0,.10);
  border-radius:2px;
  padding:10px 10px;
  font-family:"Poppins", sans-serif;
  font-size:12px;
  outline:none;
  background:#fff;
}

.cb-input::placeholder{
  color:#9a9a9a;
}

.cb-textarea{
  height:130px;
  resize:none;
}

/* ===== TEXT / HELPERS ===== */
.cb-note{
  margin:0;
  font-size:12px;
  color:var(--muted);
  line-height:1.4;
}

.series-subtitle{
  margin:0 0 8px;
  font-size:14px;
  font-weight:700;
  color:#222;
}

/* ===== ACTIONS ===== */
.cb-actions{
  display:flex;
  justify-content:flex-end;
  padding-top:4px;
}

.cb-next{
  border:none;
  background:#ff3b3b;
  color:#fff;
  font-weight:800;
  font-size:14px;
  padding:10px 14px;
  border-radius:4px;
  cursor:pointer;
}

.cb-next:hover{
  filter:brightness(.95);
}

/* ===== BOOKS SECTION ===== */
.cb-books-card{
  width:100%;
}

.series-books-actions{
  display:flex;
  justify-content:flex-end;
  padding-top:8px;
}

.series-books-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.series-book-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:8px;
  background:#fff;
}

.series-book-left{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.series-book-right{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}

.series-book-cover{
  width:54px;
  height:74px;
  object-fit:cover;
  border-radius:4px;
  border:1px solid rgba(0,0,0,.08);
  background:#f1f1f1;
  flex-shrink:0;
}

.series-book-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.series-book-title{
  margin:0;
  font-size:14px;
  font-weight:700;
  color:#222;
}

.series-book-sub{
  margin:0;
  font-size:12px;
  color:#666;
}

.series-book-btn{
  border:none;
  background:#ff3b3b;
  color:#fff;
  font-weight:700;
  font-size:12px;
  padding:8px 12px;
  border-radius:6px;
  cursor:pointer;
}

.series-book-btn:hover{
  filter:brightness(.95);
}

.series-book-btn-secondary{
  background:#444;
}

.standalone-books-panel{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid rgba(0,0,0,.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px){
  .cb-wrap{
    grid-template-columns:1fr;
  }

  .cb-cover-box{
    height:260px;
  }
}