/* public/course-builder/styles.css
   Course Builder dark theme. Reuses TMA's navy + teal/cyan palette.
   Class prefix: .cb- (Course Builder).
*/

:root {
  --cb-bg:        #050b14;
  --cb-panel:     rgba(13, 25, 43, 0.55);
  --cb-panel-2:   rgba(13, 25, 43, 0.78);
  --cb-line:      rgba(255, 255, 255, 0.06);
  --cb-line-hi:   rgba(54, 241, 225, 0.18);
  --cb-text:      #f5f8ff;
  --cb-muted:     #96a5ba;
  --cb-faint:     #c1cbdb;
  --cb-teal:      #36f1e1;
  --cb-cyan:      #61b9ff;
  --cb-blue:      #2f6fff;
  --cb-green:     #4de8a7;
  --cb-gold:      #ffc85a;
  --cb-violet:    #926dff;
  --cb-pink:      #ff6cb4;
  --cb-danger:    #ff5370;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  /* Atmospheric navy canvas (lifted off pure black) + soft top glows so the
     page reads as rich as the nav instead of flat/dingy. */
  background:
    radial-gradient(1200px 560px at 12% -8%, rgba(54,241,225,0.07), transparent 58%),
    radial-gradient(1000px 640px at 100% -6%, rgba(47,111,255,0.08), transparent 52%),
    linear-gradient(180deg, #0b1424 0%, #080f1d 100%);
  color: var(--cb-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
}

/* App frame: 260px nav + flex main */
.cb-frame { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

/* Left rail */
.cb-nav {
  background: linear-gradient(180deg, rgba(13,25,43,0.9) 0%, rgba(13,25,43,0.6) 100%);
  border-right: 1px solid var(--cb-line-hi);
  padding: 18px 12px;
  min-height: 100vh;
}
.cb-nav .cb-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 10px 18px;
  border-bottom: 1px solid var(--cb-line);
  margin-bottom: 16px;
}
.cb-nav .cb-brand .cb-logo {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--cb-teal), var(--cb-blue));
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 700; color: var(--cb-bg); font-size: 13px;
}
.cb-nav .cb-brand .cb-name { font-weight: 600; letter-spacing: 0.3px; font-size: 13px; }
.cb-nav .cb-brand .cb-sub {
  font-size: 10px; color: var(--cb-muted);
  text-transform: uppercase; letter-spacing: 1.2px;
}
.cb-nav-back {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; margin-bottom: 18px;
  color: var(--cb-muted); font-size: 12px; cursor: pointer;
  border-radius: 6px; text-decoration: none;
}
.cb-nav-back:hover { background: rgba(255,255,255,0.03); color: var(--cb-text); }
.cb-nav h4 {
  text-transform: uppercase; letter-spacing: 1.4px; font-size: 11px;
  color: var(--cb-cyan); margin: 18px 12px 6px; font-weight: 600;
}
.cb-nav h4:first-of-type { margin-top: 0; }
.cb-nav-item {
  padding: 7px 12px; margin: 1px 0; border-radius: 6px;
  color: var(--cb-faint); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 9px;
  text-decoration: none;
}
.cb-nav-item:hover { background: rgba(255,255,255,0.03); color: var(--cb-text); }
.cb-nav-item.is-active {
  background: linear-gradient(90deg, rgba(54,241,225,0.14) 0%, rgba(54,241,225,0.03) 100%);
  color: var(--cb-teal); font-weight: 500;
  box-shadow: inset 2px 0 0 var(--cb-teal);
}

/* Main canvas */
.cb-main { padding: 22px 28px 60px; max-width: 1280px; }

@media (max-width: 760px) {
  .cb-frame {
    display: block;
  }
  .cb-nav {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--cb-line-hi);
  }
  .cb-main {
    max-width: none;
    padding: 18px 14px 44px;
  }
}
.cb-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cb-line);
  margin-bottom: 22px;
}
.cb-topbar h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: 0.2px; }
.cb-topbar .cb-sub { color: var(--cb-muted); font-size: 12px; margin-top: 4px; }
.cb-topbar .cb-tools { display: flex; gap: 10px; align-items: center; }

.cb-pill {
  padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: var(--cb-faint); font-size: 12px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.cb-pill:hover { border-color: rgba(54,241,225,0.4); color: var(--cb-text); }
.cb-pill.is-primary {
  background: linear-gradient(90deg, var(--cb-teal) 0%, var(--cb-blue) 100%);
  border: none; color: var(--cb-bg); font-weight: 600;
}

/* Catalog grid */
.cb-catalog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.cb-card {
  background: var(--cb-panel);
  border: 1px solid var(--cb-line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s, transform .12s;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.cb-card:hover {
  border-color: var(--cb-line-hi);
  transform: translateY(-2px);
}
.cb-card .cb-card-cover {
  height: 140px;
  background: linear-gradient(135deg, rgba(54,241,225,0.15), rgba(47,111,255,0.15));
  background-size: cover; background-position: center;
}
.cb-card .cb-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.cb-card .cb-card-title { font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.cb-card .cb-card-meta {
  color: var(--cb-muted); font-size: 11px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-bottom: 10px;
}
.cb-card .cb-card-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.cb-card .cb-card-price { color: var(--cb-teal); font-weight: 600; }
.cb-card .cb-card-learners { color: var(--cb-muted); }

.cb-status-chip {
  padding: 2px 8px; border-radius: 4px; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600;
}
.cb-status-draft     { background: rgba(255,200,90,0.15);  color: var(--cb-gold); }
.cb-status-published { background: rgba(77,232,167,0.15);  color: var(--cb-green); }
.cb-status-archived  { background: rgba(255,83,112,0.15);  color: var(--cb-danger); }

/* Filters bar */
.cb-filters {
  display: flex; gap: 10px; margin-bottom: 18px; align-items: center; flex-wrap: wrap;
}
.cb-filters select, .cb-filters input {
  background: var(--cb-panel); color: var(--cb-text);
  border: 1px solid var(--cb-line); border-radius: 6px;
  padding: 7px 10px; font-size: 12px;
}
.cb-filters select:focus, .cb-filters input:focus {
  outline: none; border-color: var(--cb-teal);
}

/* Modal (new-Module wizard) */
.cb-modal-overlay {
  position: fixed; inset: 0; background: rgba(5,11,20,0.7); backdrop-filter: blur(6px);
  display: grid; place-items: center; z-index: 1000;
}
.cb-modal-overlay[hidden] { display: none; }
.cb-modal {
  background: var(--cb-bg); border: 1px solid var(--cb-line-hi);
  border-radius: 14px; width: min(640px, 92vw); max-height: 86vh;
  padding: 26px 28px; overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}
.cb-modal h2 { margin: 0 0 6px; font-size: 20px; }
.cb-modal .cb-sub { color: var(--cb-muted); font-size: 13px; margin-bottom: 18px; }
.cb-modal label { display: block; font-size: 12px; color: var(--cb-muted); margin: 14px 0 4px; }
.cb-modal input, .cb-modal select, .cb-modal textarea {
  width: 100%; background: var(--cb-panel); color: var(--cb-text);
  border: 1px solid var(--cb-line); border-radius: 6px;
  padding: 9px 12px; font-size: 14px;
}
.cb-modal-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px;
}

/* Buttons */
.cb-btn-primary {
  padding: 9px 18px; border-radius: 8px;
  background: linear-gradient(90deg, var(--cb-teal) 0%, var(--cb-blue) 100%);
  color: var(--cb-bg); font-weight: 600; font-size: 13px;
  border: none; cursor: pointer;
}
.cb-btn-ghost {
  padding: 9px 16px; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  color: var(--cb-faint); font-size: 13px; cursor: pointer;
}
.cb-btn-ghost:hover { border-color: rgba(54,241,225,0.3); color: var(--cb-text); }

/* Empty state */
.cb-empty {
  text-align: center; padding: 80px 20px; color: var(--cb-muted);
}
.cb-empty h3 { color: var(--cb-text); margin-bottom: 8px; }


/* ============================================================
   Outline Editor — Hour cards
   ============================================================ */

/* Outline stat pills — live inside the hero, mirror catalog stat chips. */
.cb-outline-stats {
  position: relative; z-index: 1;
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 20px;
}
.cb-outline-stats span {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(5,11,20,0.5);
  border: 1px solid var(--cb-line);
  color: var(--cb-muted); font-size: 12px; text-transform: capitalize;
}
.cb-outline-stats strong { color: var(--cb-teal); font-weight: 700; }

.cb-hour-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0 0 36px;
}
.cb-hour-list::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 72px;
  width: 1px;
  background: linear-gradient(180deg, rgba(54,241,225,0), rgba(54,241,225,0.34) 12%, rgba(97,185,255,0.18) 88%, rgba(54,241,225,0));
}

.cb-hour-card {
  position: relative;
  display: grid;
  grid-template-columns: 22px 76px minmax(0, 1fr) auto;
  grid-template-areas:
    "grab num body actions"
    ". . detail detail";
  align-items: center;
  column-gap: 18px;
  row-gap: 14px;
  min-height: 104px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(193,203,219,0.13);
  border-radius: 0;
  padding: 22px 18px 22px 0;
  transition: border-color .15s, background .15s, box-shadow .15s;
  cursor: pointer;
  box-shadow: none;
}
.cb-hour-card:hover {
  border-color: rgba(54,241,225,0.24);
  background:
    linear-gradient(90deg, rgba(54,241,225,0.055), rgba(54,241,225,0) 36%),
    rgba(255,255,255,0.008);
  box-shadow: none;
}
.cb-hour-card.cb-hour-drafted { opacity: 0.9; border-style: dashed; }

.cb-hour-card .cb-hour-num {
  grid-area: num;
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(54,241,225,0.32);
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  color: var(--cb-teal); min-width: 42px;
  text-align: center;
  background:
    radial-gradient(120% 120% at 30% 0%, rgba(54,241,225,0.14), transparent 58%),
    rgba(5,11,20,0.72);
  box-shadow: inset 0 0 24px rgba(54,241,225,0.07), 0 12px 28px -24px rgba(54,241,225,0.8);
}
.cb-hour-card .cb-hour-grab {
  grid-area: grab;
  color: rgba(193,203,219,0.32); font-size: 14px;
  cursor: grab; padding: 0 4px;
}
.cb-hour-card .cb-hour-grab:active { cursor: grabbing; }

.cb-hour-card .cb-hour-body { grid-area: body; flex: 1; min-width: 0; }
.cb-hour-card .cb-hour-title {
  font-size: 18px; font-weight: 750;
  color: var(--cb-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cb-hour-card .cb-hour-meta {
  font-size: 12px; color: var(--cb-muted);
  margin-top: 7px; display: flex; gap: 9px; align-items: center; flex-wrap: wrap;
}

/* Type chips (per Spec §3) */
.cb-hour-chip {
  padding: 2px 8px; border-radius: 4px; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600;
}
.cb-hour-chip-standard  { background: rgba(97,185,255,0.15);  color: var(--cb-cyan); }
.cb-hour-chip-test      { background: rgba(255,200,90,0.15);  color: var(--cb-gold); }
.cb-hour-chip-group     { background: rgba(146,109,255,0.15); color: var(--cb-violet); }
.cb-hour-chip-milestone { background: rgba(77,232,167,0.15);  color: var(--cb-green); }
.cb-hour-chip-draft     { background: rgba(255,83,112,0.15);  color: var(--cb-danger); }

.cb-hour-card .cb-hour-actions {
  grid-area: actions;
  display: flex; gap: 6px; opacity: 0; transition: opacity .15s;
}
.cb-hour-card:hover .cb-hour-actions { opacity: 1; }
.cb-hour-iconbtn {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: var(--cb-muted); cursor: pointer; font-size: 12px;
}
.cb-hour-iconbtn:hover { background: rgba(54,241,225,0.1); color: var(--cb-teal); }
.cb-hour-iconbtn.is-danger:hover { background: rgba(255,83,112,0.12); color: var(--cb-danger); }

.cb-hour-empty {
  font-size: 11px; color: var(--cb-muted); font-style: italic;
}

/* Sortable.js ghost / chosen visuals */
.sortable-ghost {
  opacity: 0.4; background: rgba(54,241,225,0.08) !important;
  border-style: dashed !important; border-color: var(--cb-teal) !important;
}
.sortable-chosen { cursor: grabbing !important; }

/* Add-hour CTA */
.cb-add-hour {
  margin-top: 14px;
  text-align: center; padding: 18px;
  background: rgba(13,25,43,0.4);
  border: 1px dashed rgba(54,241,225,0.18);
  border-radius: 10px;
}
.cb-add-hour-buttons {
  display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.cb-add-hour .cb-btn-ghost { font-size: 12px; }

/* Inline type-edit popover */
.cb-type-pop {
  position: absolute; z-index: 1100;
  background: var(--cb-bg);
  border: 1px solid var(--cb-line-hi);
  border-radius: 8px;
  padding: 6px; min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.cb-type-pop[hidden] { display: none; }
.cb-type-pop button {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 7px 10px;
  background: transparent; border: none; cursor: pointer;
  color: var(--cb-text); font-size: 13px; text-align: left;
  border-radius: 5px;
}
.cb-type-pop button:hover { background: rgba(54,241,225,0.08); }


/* ============================================================
   Activity rows inside expanded Hours (Plan 2b)
   ============================================================ */

.cb-hour-card { cursor: pointer; flex-wrap: wrap; }
.cb-hour-expanded {
  border: 1px solid rgba(54,241,225,0.36);
  border-radius: 18px;
  margin: 18px 0;
  padding: 26px 22px 26px 0;
  background:
    radial-gradient(120% 150% at 10% -20%, rgba(54,241,225,0.14), transparent 46%),
    linear-gradient(180deg, rgba(16,34,58,0.94), rgba(7,17,31,0.86));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 0 1px rgba(54,241,225,0.04),
    0 22px 46px -30px rgba(0,0,0,1);
}
.cb-hour-expanded .cb-hour-actions { opacity: 1; }
.cb-hour-expanded .cb-hour-num {
  color: #07111f;
  background: linear-gradient(135deg, var(--cb-teal), var(--cb-blue));
  border-color: transparent;
  box-shadow: 0 18px 36px -22px rgba(54,241,225,0.95);
}

.cb-hour-detail {
  grid-area: detail;
  width: 100%;
  padding: 0 6px 0 0;
  display: none;
}
.cb-hour-expanded .cb-hour-detail { display: block; }

.cb-activity-list {
  display: flex; flex-direction: column; gap: 7px;
  min-height: 32px;
  padding: 8px 0;
}

.cb-act-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(5,11,20,0.28);
  border: 1px solid rgba(193,203,219,0.1);
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.cb-act-row:hover {
  background: rgba(10,22,39,0.68);
  border-color: rgba(54,241,225,0.22);
}
.cb-act-row.is-main {
  background:
    linear-gradient(90deg, rgba(54,241,225,0.16), rgba(54,241,225,0.055)),
    rgba(5,18,31,0.62);
  border-color: rgba(54,241,225,0.42);
  box-shadow: inset 3px 0 0 0 var(--cb-teal), 0 0 24px -18px rgba(54,241,225,0.8);
}

.cb-act-grab {
  color: rgba(193,203,219,0.36); font-size: 12px;
  cursor: grab; padding: 0 2px; flex-shrink: 0;
}
.cb-act-grab:active { cursor: grabbing; }

.cb-act-tile {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 12px; flex-shrink: 0;
}
.cb-act-tile-scorm        { background: rgba(97,185,255,0.15);  color: var(--cb-cyan); }
.cb-act-tile-video        { background: rgba(47,111,255,0.15);  color: var(--cb-blue); }
.cb-act-tile-audio        { background: rgba(255,108,180,0.15); color: var(--cb-pink); }
.cb-act-tile-quiz         { background: rgba(255,200,90,0.15);  color: var(--cb-gold); }
.cb-act-tile-game         { background: rgba(146,109,255,0.15); color: var(--cb-violet); }
.cb-act-tile-embed        { background: rgba(54,241,225,0.15);  color: var(--cb-teal); }
.cb-act-tile-note         { background: rgba(150,165,186,0.15); color: var(--cb-muted); }
.cb-act-tile-cert_trigger { background: rgba(77,232,167,0.15);  color: var(--cb-green); }
.cb-act-tile-lti          { background: rgba(255,159,67,0.15);  color: #ff9f43; }
.cb-act-tile-handout,
.cb-act-tile-slides,
.cb-act-tile-image,
.cb-act-tile-form,
.cb-act-tile-other        { background: rgba(193,203,219,0.1);  color: var(--cb-faint); }

.cb-act-name {
  flex: 1; min-width: 0;
  font-size: 13px; font-weight: 600; color: var(--cb-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.cb-act-main-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--cb-teal); cursor: pointer;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(54,241,225,0.13);
  flex-shrink: 0;
}
.cb-act-main-badge:hover { background: rgba(54,241,225,0.2); }

.cb-act-detail {
  font-size: 11px; color: var(--cb-muted); flex-shrink: 0;
  white-space: nowrap;
}

.cb-act-actions {
  display: flex; gap: 3px; opacity: 0; transition: opacity .12s;
  flex-shrink: 0;
}
.cb-act-row:hover .cb-act-actions { opacity: 1; }
.cb-act-iconbtn {
  width: 24px; height: 24px; border-radius: 5px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid transparent;
  color: var(--cb-muted); cursor: pointer; font-size: 11px;
}
.cb-act-iconbtn:hover { background: rgba(54,241,225,0.1); color: var(--cb-teal); }
.cb-act-iconbtn.is-danger:hover { background: rgba(255,83,112,0.12); color: var(--cb-danger); }

.cb-act-empty {
  font-size: 11px; color: var(--cb-muted); font-style: italic;
  padding: 8px 0;
}

/* Add bar under each expanded Hour */
.cb-hour-addbar {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 10px 0 0;
  border-top: 1px solid var(--cb-line);
}
.cb-btn-add {
  padding: 6px 14px; border-radius: 6px; border: none; cursor: pointer;
  font-size: 12px; font-weight: 600;
  background: linear-gradient(90deg, var(--cb-teal) 0%, var(--cb-blue) 100%);
  color: var(--cb-bg);
}
.cb-btn-add:hover { filter: brightness(1.1); }
.cb-btn-ai {
  color: var(--cb-violet) !important;
  border-color: rgba(146,109,255,0.2) !important;
}

/* Outline action buttons: solid surface so they don't wash out over dark backdrops */
.cb-hour-addbar .cb-btn-ghost,
.cb-add-hour .cb-btn-ghost {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  color: var(--cb-text);
}
.cb-hour-addbar .cb-btn-ghost:hover,
.cb-add-hour .cb-btn-ghost:hover {
  background: rgba(54,241,225,0.12);
  border-color: rgba(54,241,225,0.45);
}

@media (max-width: 760px) {
  .cb-hour-list {
    padding-left: 0;
  }
  .cb-hour-list::before {
    display: none;
  }
  .cb-hour-card,
  .cb-hour-expanded {
    grid-template-columns: 18px 54px minmax(0, 1fr);
    grid-template-areas:
      "grab num body"
      ". . actions"
      ". . detail";
    column-gap: 12px;
    min-height: 88px;
    padding: 18px 12px 18px 0;
    margin: 0;
    border-radius: 0;
  }
  .cb-hour-expanded {
    margin: 12px 0;
    padding: 18px 12px 18px 0;
    border-radius: 14px;
  }
  .cb-hour-card .cb-hour-num {
    width: 54px;
    height: 54px;
    border-radius: 13px;
    font-size: 24px;
    min-width: 54px;
  }
  .cb-hour-card .cb-hour-title {
    font-size: 15px;
  }
  .cb-hour-card .cb-hour-actions {
    justify-self: start;
    opacity: 1;
  }
  .cb-hour-detail {
    padding-right: 0;
  }
  .cb-act-row {
    align-items: flex-start;
  }
  .cb-act-detail,
  .cb-act-main-badge {
    white-space: normal;
  }
}

/* File dropzone overlay */
.cb-drop-active {
  position: relative;
}
.cb-drop-active::after {
  content: 'Drop SCORM .zip, video, or PDF here';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(5,11,20,0.85);
  border: 2px dashed var(--cb-teal);
  border-radius: 8px;
  color: var(--cb-teal); font-size: 14px; font-weight: 600;
  letter-spacing: 0.3px;
  z-index: 100;
  pointer-events: none;
}

.cb-uploading {
  font-size: 11px; color: var(--cb-teal); font-style: italic;
  padding: 6px 0;
}

/* Upload progress bar */
.cb-upload-progress {
  padding: 10px 0 6px;
}
.cb-upload-label {
  font-size: 11px; color: var(--cb-teal); font-weight: 600;
  margin-bottom: 6px;
}
.cb-upload-track {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.cb-upload-fill {
  height: 100%; width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cb-teal) 0%, var(--cb-cyan) 100%);
  transition: width .15s ease-out;
}

/* ============================================================
   Activity Picker modal (Plan 2b)
   ============================================================ */

.cb-picker-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5,11,20,0.74);
  display: grid; place-items: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cb-picker-overlay[hidden] { display: none; }

.cb-picker {
  background: #07111f;
  border: 1px solid var(--cb-line-hi);
  border-radius: 10px;
  width: min(960px, calc(100vw - 48px));
  height: min(720px, calc(100vh - 48px));
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
}
.cb-picker-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--cb-line);
  background: rgba(255,255,255,0.015);
}
.cb-picker-header h2 { margin: 0; font-size: 20px; font-weight: 600; }
.cb-picker-header .cb-sub { color: var(--cb-muted); font-size: 12px; margin-top: 3px; }
.cb-picker-title { min-width: 190px; }
.cb-picker-search {
  flex: 1;
  max-width: 360px;
  position: relative;
  display: flex;
  align-items: center;
}
.cb-picker-search span {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.cb-picker-search input {
  width: 100%;
  height: 38px;
  border-radius: 7px;
  border: 1px solid var(--cb-line);
  background: rgba(255,255,255,0.05);
  color: var(--cb-text);
  font-size: 13px;
  font-family: inherit;
  padding: 0 38px 0 12px;
}
.cb-picker-search input::placeholder { color: rgba(193,203,219,0.56); }
.cb-picker-search input:focus {
  outline: none;
  border-color: rgba(54,241,225,0.46);
  box-shadow: 0 0 0 3px rgba(54,241,225,0.08);
}
.cb-picker-search b {
  position: absolute;
  right: 12px;
  color: var(--cb-muted);
  font-size: 18px;
  font-weight: 400;
  pointer-events: none;
}
.cb-picker-close {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  color: var(--cb-muted); cursor: pointer; font-size: 16px;
}
.cb-picker-close:hover { background: rgba(255,83,112,0.12); color: var(--cb-danger); }

.cb-picker-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}
.cb-picker-sidebar {
  padding: 14px 10px;
  border-right: 1px solid var(--cb-line);
  overflow-y: auto;
}
.cb-picker-nav-item {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--cb-faint);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}
.cb-picker-nav-item span {
  width: 18px;
  display: inline-grid;
  place-items: center;
}
.cb-picker-nav-item:hover {
  background: rgba(255,255,255,0.035);
  color: var(--cb-text);
}
.cb-picker-nav-item.is-active {
  background: rgba(54,241,225,0.12);
  color: var(--cb-teal);
  box-shadow: inset 3px 0 0 var(--cb-teal);
}
.cb-picker-results {
  min-width: 0;
  overflow-y: auto;
  padding: 16px 24px 24px;
}
.cb-picker-section-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--cb-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.cb-picker-section + .cb-picker-section { margin-top: 22px; }
.cb-picker-group-label {
  margin: 20px 0 10px;
  color: var(--cb-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.cb-picker-section-label + .cb-picker-group-label { margin-top: 8px; }
.cb-picker-item + .cb-picker-item { margin-top: 10px; }
.cb-picker-item[hidden],
.cb-picker-section[hidden],
.cb-picker-empty-results[hidden],
.cb-picker-url-input[hidden] {
  display: none !important;
}
.cb-picker-tile {
  width: 100%;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--cb-faint);
  font-size: 13px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  position: relative;
  transition: border-color .12s, background .12s, color .12s;
}
.cb-picker-tile:hover {
  border-color: rgba(54,241,225,0.18);
  background: rgba(255,255,255,0.03);
  color: var(--cb-text);
}
.cb-picker-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cb-teal), var(--cb-blue));
  color: var(--cb-bg);
  font-size: 22px;
  box-shadow: 0 10px 22px -16px rgba(54,241,225,0.9);
}
.cb-picker-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cb-picker-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cb-picker-copy strong {
  color: var(--cb-text);
  font-size: 16px;
  font-weight: 700;
  min-width: 0;
}
.cb-picker-copy em {
  color: var(--cb-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}
.cb-picker-copy small {
  color: var(--cb-cyan);
  font-size: 11px;
  font-weight: 700;
}
.cb-picker-tile.is-disabled {
  opacity: 0.48; cursor: default;
}
.cb-picker-tile.is-disabled:hover {
  border-color: transparent;
  background: transparent;
  color: var(--cb-faint);
}
.cb-picker-badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255,200,90,0.82);
  color: var(--cb-bg);
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Inline URL input (for embed/youtube/vimeo) */
.cb-picker-url-input {
  display: flex;
  gap: 8px;
  margin: 10px 0 0 70px;
  max-width: 520px;
}
.cb-picker-url-input input {
  flex: 1;
  padding: 9px 11px;
  border-radius: 7px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--cb-line);
  color: var(--cb-text); font-size: 13px;
  font-family: inherit;
}
.cb-picker-url-input input:focus {
  outline: none; border-color: var(--cb-teal);
}
.cb-picker-url-input button {
  padding: 9px 16px; border-radius: 7px; border: none; cursor: pointer;
  background: linear-gradient(90deg, var(--cb-teal), var(--cb-blue));
  color: var(--cb-bg); font-size: 12px; font-weight: 700;
}
.cb-picker-empty-results {
  margin-top: 56px;
  text-align: center;
  color: var(--cb-muted);
  font-size: 13px;
}
@media (max-width: 760px) {
  .cb-picker-overlay { padding: 12px; }
  .cb-picker {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
  }
  .cb-picker-header {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .cb-picker-title { flex: 1 1 calc(100% - 48px); }
  .cb-picker-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .cb-picker-grid {
    grid-template-columns: 1fr;
  }
  .cb-picker-sidebar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--cb-line);
    padding: 10px;
  }
  .cb-picker-nav-item {
    width: auto;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .cb-picker-results { padding: 14px 14px 20px; }
  .cb-picker-tile {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
  }
  .cb-picker-icon {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
  .cb-picker-copy strong { font-size: 14px; }
  .cb-picker-copy em { font-size: 12px; }
  .cb-picker-badge {
    margin-top: 2px;
  }
  .cb-picker-url-input {
    margin-left: 0;
    flex-direction: column;
  }
}

/* Toast for set-up-needed tiles */
.cb-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  padding: 10px 20px; border-radius: 8px;
  background: var(--cb-panel-2); border: 1px solid var(--cb-line-hi);
  color: var(--cb-text); font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 3000;
  animation: cb-toast-in .25s ease-out;
}
@keyframes cb-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}


/* ============================================================
   Settings form panels (Plan 3a)
   ============================================================ */

.cb-settings-panel {
  max-width: 680px; padding: 0;
}
.cb-settings-panel h2 {
  font-size: 20px; font-weight: 600; margin: 0 0 4px;
}
.cb-settings-panel .cb-sub {
  color: var(--cb-muted); font-size: 12px; margin-bottom: 24px;
}

.cb-settings-group {
  padding: 18px 0;
  border-bottom: 1px solid var(--cb-line);
}
.cb-settings-group:last-of-type { border-bottom: none; }

.cb-settings-label {
  display: block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--cb-muted); margin-bottom: 6px;
}

.cb-settings-input,
.cb-settings-textarea,
.cb-settings-select {
  width: 100%; padding: 9px 12px; border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--cb-line);
  color: var(--cb-text); font-size: 13px;
  font-family: inherit;
  transition: border-color .12s;
}
.cb-settings-input:focus,
.cb-settings-textarea:focus,
.cb-settings-select:focus {
  outline: none; border-color: var(--cb-teal);
}
.cb-settings-textarea { resize: vertical; min-height: 80px; }
.cb-settings-select { appearance: auto; }
.cb-settings-input[type="number"] { max-width: 160px; }

/* Native <option> popups don't inherit the select's dark theme, so option
   text rendered dark-on-dark (invisible). Set them explicitly per theme. */
select option { background: #0f1d31; color: var(--cb-text); }
body.page-light select option { background: #fff; color: #101828; }

.cb-settings-row {
  display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
}
.cb-settings-row > * { flex: 1; min-width: 140px; }

/* Radio group */
.cb-settings-radios {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.cb-settings-radio {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--cb-line);
  cursor: pointer; font-size: 13px; color: var(--cb-faint);
  transition: border-color .12s, background .12s;
}
.cb-settings-radio:hover {
  border-color: var(--cb-line-hi);
}
.cb-settings-radio.is-selected {
  border-color: var(--cb-teal);
  background: rgba(54,241,225,0.08);
  color: var(--cb-text);
}
.cb-settings-radio input[type="radio"] { display: none; }

/* Toggle switch */
.cb-settings-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 13px; color: var(--cb-faint);
}
.cb-settings-toggle-track {
  width: 38px; height: 20px; border-radius: 10px;
  background: rgba(255,255,255,0.1);
  position: relative; transition: background .15s;
  flex-shrink: 0;
}
.cb-settings-toggle-track::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cb-faint);
  transition: transform .15s, background .15s;
}
.cb-settings-toggle.is-on .cb-settings-toggle-track {
  background: rgba(54,241,225,0.3);
}
.cb-settings-toggle.is-on .cb-settings-toggle-track::after {
  transform: translateX(18px);
  background: var(--cb-teal);
}

/* Range slider */
.cb-settings-range-wrap {
  display: flex; align-items: center; gap: 12px;
}
.cb-settings-range {
  flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.1); border-radius: 2px; outline: none;
}
.cb-settings-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px;
  border-radius: 50%; background: var(--cb-teal); cursor: pointer;
}
.cb-settings-range-val {
  font-size: 14px; font-weight: 600; color: var(--cb-teal);
  min-width: 40px; text-align: right;
}

/* Checkbox list for prereqs/cohorts */
.cb-settings-checklist {
  max-height: 220px; overflow-y: auto;
  border: 1px solid var(--cb-line); border-radius: 7px;
  padding: 6px;
}
.cb-settings-check-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 5px;
  cursor: pointer; font-size: 13px; color: var(--cb-faint);
  transition: background .1s;
}
.cb-settings-check-row:hover { background: rgba(255,255,255,0.03); }
.cb-settings-check-row input[type="checkbox"] {
  accent-color: var(--cb-teal);
}
.cb-settings-checklist-empty {
  font-size: 12px; color: var(--cb-muted); font-style: italic;
  padding: 12px 8px;
}

/* Cover image upload area */
.cb-settings-cover {
  display: flex; gap: 16px; align-items: flex-start;
}
.cb-settings-cover-preview {
  width: 160px; height: 100px; border-radius: 8px;
  background: var(--cb-panel);
  border: 1px solid var(--cb-line);
  display: grid; place-items: center;
  overflow: hidden; flex-shrink: 0;
  font-size: 11px; color: var(--cb-muted);
}
.cb-settings-cover-preview img {
  width: 100%; height: 100%; object-fit: cover;
}
.cb-settings-cover-actions {
  display: flex; flex-direction: column; gap: 6px;
}

/* Save button */
.cb-settings-save {
  margin-top: 24px;
  padding: 10px 28px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600;
  background: linear-gradient(90deg, var(--cb-teal) 0%, var(--cb-blue) 100%);
  color: var(--cb-bg);
  transition: filter .12s;
}
.cb-settings-save:hover { filter: brightness(1.1); }
.cb-settings-save:disabled {
  opacity: 0.5; cursor: default; filter: none;
}

/* Decorative badge for future features */
.cb-settings-decorative {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 6px;
  background: rgba(255,200,90,0.08);
  border: 1px solid rgba(255,200,90,0.15);
  color: var(--cb-gold); font-size: 11px; font-weight: 600;
  letter-spacing: 0.3px;
}

/* Access settings: LearnWorlds-style administrative table layout */
.cb-settings-access {
  max-width: 1056px;
  margin: -22px -28px -60px;
  padding: 0 32px 48px;
  min-height: calc(100vh - 0px);
  background: #f2f2f2;
  color: #2d3748;
}
.cb-access-topbar {
  margin: 0 -32px 16px;
  padding: 22px 32px 16px;
  border-bottom: 1px solid #d9dde4;
  background: #fff;
}
.cb-access-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #50545c;
}
.cb-settings-access h2 {
  margin: 0;
  color: #3e4248;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}
.cb-settings-access .cb-sub {
  margin: 6px 0 0;
  color: #545b66;
  font-size: 13px;
  line-height: 1.35;
}
.cb-access-help {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid #6b7280;
  border-radius: 50%;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}
.cb-access-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.cb-access-primary,
.cb-access-copy,
.cb-access-inline-btn {
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: #2f6fff;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.cb-access-primary:hover,
.cb-access-copy:hover,
.cb-access-inline-btn:hover {
  background: #1f57e0;
}
.cb-access-preview {
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #525963;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}
.cb-access-preview::before {
  content: "o";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 7px;
  border: 1px solid #6b7280;
  border-radius: 50%;
  color: transparent;
  box-shadow: inset 0 0 0 4px #fff;
  background: #6b7280;
  vertical-align: -3px;
}
.cb-access-section {
  display: grid;
  grid-template-columns: 35% 65%;
  min-height: 156px;
  margin-bottom: 14px;
  border: 1px solid #d9dde4;
  background: #fff;
}
.cb-access-section-copy {
  padding: 14px 12px;
  border-right: 1px solid #eef0f3;
  background: #fff;
}
.cb-access-section-copy h3 {
  margin: 0 0 8px;
  color: #2f3744;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}
.cb-access-section-copy p {
  margin: 0 0 24px;
  max-width: 345px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}
.cb-access-section-copy h3:not(:first-child) {
  margin-top: 24px;
}
.cb-access-course-grid {
  min-height: 514px;
}
.cb-access-options {
  padding: 17px 20px 16px;
}
.cb-access-radio {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  margin-bottom: 14px;
  color: #151922;
  cursor: pointer;
  font-size: 14px;
}
.cb-access-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cb-access-radio-dot {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1px solid #c5cbd3;
  border-radius: 50%;
  background: #fff;
}
.cb-access-radio.is-selected .cb-access-radio-dot {
  border: 2px solid #2f6fff;
  box-shadow: inset 0 0 0 3px #fff;
  background: #2f6fff;
}
.cb-access-radio-title {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
}
.cb-access-radio-copy {
  display: block;
  max-width: 690px;
  margin-top: 6px;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}
.cb-access-inline-btn {
  margin-left: 6px;
  vertical-align: 1px;
}
.cb-access-enroll-card {
  max-width: 346px;
  margin-top: 8px;
  padding: 13px 12px 10px;
  border: 1px solid #dcdfe5;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,0.06);
}
.cb-access-enroll-card h4 {
  margin: 0 0 10px;
  color: #2f3744;
  font-size: 14px;
  font-weight: 700;
}
.cb-access-enroll-card h4::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 7px;
  border: 1px solid #6b7280;
  border-radius: 50%;
  color: #4b5563;
  font-size: 11px;
  font-weight: 800;
}
.cb-access-enroll-card p {
  margin: 0 0 9px 22px;
  color: #2f3744;
  font-size: 13px;
}
.cb-access-enroll-card button {
  display: block;
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  background: #c9ac84;
  color: #17110a;
  cursor: default;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
}
.cb-access-table-section {
  min-height: 410px;
}
.cb-access-value-table {
  display: grid;
  gap: 30px;
  align-content: start;
  padding: 17px 20px 20px;
}
.cb-access-url-row,
.cb-access-id-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.cb-access-url-combo {
  display: grid;
  grid-template-columns: minmax(180px, 52%) minmax(120px, 1fr);
  min-width: 0;
}
.cb-access-url-combo span,
.cb-access-url-combo input,
.cb-access-id-row input,
.cb-access-store-row input {
  min-width: 0;
  height: 35px;
  border: 0;
  border-radius: 4px;
  background: #eeeeee;
  color: #111827;
  font-family: inherit;
  font-size: 14px;
}
.cb-access-url-combo span {
  display: block;
  overflow: hidden;
  padding: 8px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cb-access-url-combo input,
.cb-access-id-row input,
.cb-access-store-row input {
  padding: 0 10px;
  outline: none;
}
.cb-access-id-row input {
  max-width: 520px;
  border-bottom: 1px solid #edf0f3;
  background: transparent;
  color: #b8bdc5;
  font-size: 16px;
}
.cb-access-store-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.cb-access-store-row label {
  grid-column: 1 / -1;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.cb-access-expiration {
  min-height: 156px;
}
.cb-access-expiration > div:last-child,
.cb-access-navigation > div:last-child,
.cb-access-rules > div:last-child {
  padding: 21px 20px;
}
.cb-access-field-label {
  display: block;
  margin: 0 0 8px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.cb-access-select {
  min-width: 236px;
  min-height: 35px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: #f1f1f1;
  color: #404752;
  font-family: inherit;
  font-size: 16px;
}
.cb-access-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 345px;
  padding: 11px 12px;
  border: 1px solid #ffba45;
  border-radius: 4px;
  color: #4d5561;
  font-size: 12px;
  line-height: 1.35;
}
.cb-access-note::before {
  content: "!";
  color: #ffae22;
  font-weight: 800;
}
.cb-access-navigation {
  min-height: 500px;
}
.cb-access-nav-options {
  max-width: 720px;
}
.cb-access-nav-mode {
  margin-bottom: 14px;
}
.cb-access-nav-choice {
  margin-left: 20px;
}
.cb-access-rules .cb-settings-input {
  max-width: 180px;
  border-color: #d9dde4;
  background: #fff;
  color: #111827;
}
.cb-access-rule-tables {
  display: grid;
  gap: 12px;
}
.cb-settings-access .cb-settings-checklist {
  max-height: 180px;
  border-color: #d9dde4;
  background: #fff;
}
.cb-settings-access .cb-settings-check-row {
  color: #4b5563;
}
.cb-settings-access .cb-settings-check-row:hover {
  background: #f7f8fa;
}
@media (max-width: 900px) {
  .cb-settings-access {
    margin: -18px -14px -44px;
    padding: 0 14px 36px;
  }
  .cb-access-topbar {
    margin: 0 -14px 14px;
    padding: 18px 14px 14px;
  }
  .cb-access-section {
    grid-template-columns: 1fr;
  }
  .cb-access-section-copy {
    border-right: 0;
    border-bottom: 1px solid #eef0f3;
  }
  .cb-access-url-row,
  .cb-access-id-row,
  .cb-access-store-row {
    grid-template-columns: 1fr;
  }
  .cb-access-url-combo {
    grid-template-columns: 1fr;
  }
  .cb-access-copy {
    justify-self: start;
  }
}
@media (max-width: 560px) {
  .cb-access-topbar,
  .cb-access-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cb-access-primary,
  .cb-access-preview {
    width: 100%;
  }
  .cb-access-section-copy p,
  .cb-access-note {
    max-width: none;
  }
  .cb-access-nav-choice {
    margin-left: 0;
  }
}

/* Pricing settings: same light admin system as Access */
.cb-settings-pricing {
  max-width: 1006px;
  margin: -22px -28px -60px;
  padding: 0 32px 48px;
  min-height: 100vh;
  background: #f2f2f2;
  color: #2d3748;
}
.cb-pricing-topbar {
  margin: 0 -32px 16px;
  padding: 14px 32px 16px;
  border-bottom: 1px solid #d9dde4;
  background: #fff;
}
.cb-pricing-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #50545c;
}
.cb-settings-pricing h2 {
  margin: 0;
  color: #3e4248;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}
.cb-settings-pricing .cb-sub {
  margin: 6px 0 0;
  color: #545b66;
  font-size: 13px;
  line-height: 1.35;
}
.cb-pricing-section {
  display: grid;
  grid-template-columns: 35% 65%;
  min-height: 88px;
  margin-bottom: 12px;
  border: 1px solid #d9dde4;
  background: #fff;
}
.cb-pricing-section-copy {
  padding: 14px 12px;
  border-right: 1px solid #eef0f3;
  background: #fff;
}
.cb-pricing-section-copy h3 {
  margin: 0 0 8px;
  color: #4a4f58;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}
.cb-pricing-section-copy h3:not(:first-child) {
  margin-top: 22px;
}
.cb-pricing-section-copy p {
  margin: 0 0 16px;
  max-width: 360px;
  color: #767d88;
  font-size: 12px;
  line-height: 1.45;
}
.cb-pricing-fields {
  padding: 20px 18px;
}
.cb-pricing-price-section {
  min-height: 194px;
}
.cb-pricing-enroll-section {
  min-height: 188px;
}
.cb-pricing-compact-section {
  min-height: 88px;
}
.cb-pricing-note,
.cb-pricing-warning {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 335px;
  padding: 9px 10px;
  border: 1px solid #ffba45;
  border-radius: 4px;
  color: #4d5561;
  font-size: 12px;
  line-height: 1.35;
}
.cb-pricing-note::before {
  content: "!";
  color: #ffae22;
  font-weight: 800;
}
.cb-pricing-warning {
  max-width: 620px;
  border-color: #ffc28d;
  background: #fff7ef;
}
.cb-pricing-warning::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid #ff8a2b;
  border-radius: 50%;
  color: #ff7a1a;
  font-size: 10px;
  font-weight: 900;
  flex: 0 0 auto;
}
.cb-price-money-field {
  display: inline-grid;
  grid-template-columns: 32px 88px;
  align-items: center;
  margin-bottom: 28px;
}
.cb-price-money-field span {
  display: grid;
  place-items: center;
  height: 35px;
  border-radius: 4px 0 0 4px;
  background: #f0f0f0;
  color: #111827;
  font-size: 15px;
}
.cb-price-money-field .cb-settings-input {
  width: 88px;
  max-width: none;
  height: 35px;
  padding: 0 10px;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: #f0f0f0;
  color: #111827;
  font-size: 14px;
}
.cb-price-money-field.is-disabled {
  opacity: 0.42;
}
.cb-pricing-checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: #56606d;
  font-size: 12px;
}
.cb-pricing-checkbox input {
  width: 14px;
  height: 14px;
  accent-color: #2f6fff;
}
.cb-pricing-enroll-preview {
  max-width: 334px;
  margin-top: 12px;
}
.cb-pricing-empty {
  margin: 0 0 8px;
  color: #767d88;
  font-size: 12px;
  font-style: italic;
}
.cb-pricing-manage {
  min-width: 108px;
}
@media (max-width: 900px) {
  .cb-settings-pricing {
    margin: -18px -14px -44px;
    padding: 0 14px 36px;
  }
  .cb-pricing-topbar {
    margin: 0 -14px 14px;
    padding: 18px 14px 14px;
  }
  .cb-pricing-section {
    grid-template-columns: 1fr;
  }
  .cb-pricing-section-copy {
    border-right: 0;
    border-bottom: 1px solid #eef0f3;
  }
}

/* ===== Access & Pricing — dark navy/blue theme (match the rest of the builder) =====
   These panels were originally a light LearnWorlds admin look. This block retones
   them onto the navy canvas using the shared --cb tokens. Color-only overrides;
   layout/geometry above is untouched. */
.cb-settings-access,
.cb-settings-pricing {
  background: transparent;
  color: var(--cb-text);
}
.cb-access-topbar,
.cb-pricing-topbar {
  background: linear-gradient(100deg, rgba(47,111,255,0.12) 0%, rgba(16,29,49,0.9) 58%, rgba(10,19,34,0.85) 100%);
  border-bottom: 1px solid var(--cb-line-hi);
}
.cb-access-title-row,
.cb-pricing-title-row { color: var(--cb-faint); }
.cb-settings-access h2,
.cb-settings-pricing h2 { color: var(--cb-text); }
.cb-settings-access .cb-sub,
.cb-settings-pricing .cb-sub { color: var(--cb-muted); }
.cb-access-help { border-color: rgba(193,203,219,0.4); color: var(--cb-faint); }
.cb-access-preview { color: var(--cb-muted); }
.cb-access-preview::before {
  border-color: rgba(193,203,219,0.45);
  background: var(--cb-muted);
  box-shadow: inset 0 0 0 4px #0b1424;
}
/* Cards / sections */
.cb-access-section,
.cb-pricing-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(193,203,219,0.12);
  border-radius: 12px;
  background:
    radial-gradient(420px 200px at 0% 0%, rgba(54,241,225,0.05), transparent 62%),
    linear-gradient(100deg, rgba(47,111,255,0.05) 0%, rgba(16,29,49,0.86) 55%, rgba(10,19,34,0.8) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
/* Signature gradient side-bar (gold → teal → blue) down the left edge */
.cb-access-section::before,
.cb-pricing-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cb-gold) 0%, var(--cb-teal) 45%, var(--cb-blue) 100%);
}
.cb-access-section-copy,
.cb-pricing-section-copy {
  background: transparent;
  border-right: 1px solid rgba(193,203,219,0.1);
}
.cb-access-section-copy h3,
.cb-pricing-section-copy h3 { color: var(--cb-text); }
.cb-access-section-copy p,
.cb-pricing-section-copy p { color: var(--cb-muted); }
/* Radios */
.cb-access-radio { color: var(--cb-text); }
.cb-access-radio-dot { border-color: rgba(193,203,219,0.4); background: rgba(5,11,20,0.4); }
.cb-access-radio.is-selected .cb-access-radio-dot { box-shadow: inset 0 0 0 3px #0b1424; }
.cb-access-radio-title { color: var(--cb-text); }
.cb-access-radio-copy { color: var(--cb-muted); }
/* Enroll preview card */
.cb-access-enroll-card {
  border-color: rgba(193,203,219,0.14);
  background: rgba(5,11,20,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.cb-access-enroll-card h4 { color: var(--cb-text); }
.cb-access-enroll-card h4::before { border-color: rgba(193,203,219,0.4); color: var(--cb-faint); }
.cb-access-enroll-card p { color: var(--cb-faint); }
/* Value table — URLs / IDs */
.cb-access-url-combo span,
.cb-access-url-combo input,
.cb-access-store-row input {
  background: rgba(5,11,20,0.45);
  color: var(--cb-text);
}
.cb-access-id-row input {
  background: transparent;
  border-bottom-color: rgba(193,203,219,0.14);
  color: var(--cb-muted);
}
.cb-access-store-row label,
.cb-access-field-label { color: var(--cb-muted); }
/* Selects */
.cb-access-select {
  border: 1px solid rgba(193,203,219,0.13);
  background: rgba(5,11,20,0.45);
  color: var(--cb-text);
}
/* Rules inputs / checklists */
.cb-access-rules .cb-settings-input {
  border-color: rgba(193,203,219,0.13);
  background: rgba(5,11,20,0.34);
  color: var(--cb-text);
}
.cb-settings-access .cb-settings-checklist {
  border-color: rgba(193,203,219,0.13);
  background: rgba(5,11,20,0.34);
}
.cb-settings-access .cb-settings-check-row { color: var(--cb-faint); }
.cb-settings-access .cb-settings-check-row:hover { background: rgba(255,255,255,0.04); }
/* Notes (keep amber accent, lift the text) */
.cb-access-note,
.cb-pricing-note { color: var(--cb-faint); }
/* Pricing money field */
.cb-price-money-field span,
.cb-price-money-field .cb-settings-input {
  background: rgba(5,11,20,0.45);
  color: var(--cb-text);
}
.cb-pricing-checkbox { color: var(--cb-faint); }
.cb-pricing-empty { color: var(--cb-muted); }

/* General settings: enterprise course-identity workspace */
.cb-settings-general {
  max-width: 1180px;
  padding-bottom: 48px;
}
.cb-settings-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 28px 30px 28px 36px;
  border: 1px solid rgba(54,241,225,0.18);
  border-radius: 18px;
  /* complementary wash: warm orange + light blue on the LEFT → deep navy on the RIGHT */
  background:
    radial-gradient(520px 240px at 0% 0%, rgba(255,170,80,0.16), transparent 60%),
    linear-gradient(100deg,
      rgba(54,241,225,0.12) 0%,
      rgba(47,111,255,0.10) 26%,
      rgba(16,34,58,0.92) 58%,
      rgba(8,17,31,0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 22px 50px -38px rgba(0,0,0,1);
}
/* vertical accent bar — runs orange → teal → blue down the left edge */
.cb-settings-hero::before,
.cb-settings-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cb-gold) 0%, var(--cb-teal) 45%, var(--cb-blue) 100%);
}
.cb-settings-hero h2 {
  margin: 3px 0 6px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}
.cb-settings-hero .cb-sub {
  max-width: 620px;
  margin: 0;
  color: #b8c8dc;
  font-size: 13px;
}
.cb-settings-eyebrow,
.cb-settings-kicker {
  color: var(--cb-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1;
  text-transform: uppercase;
}
.cb-settings-hero .cb-settings-save {
  margin-top: 0;
  min-width: 138px;
  box-shadow: 0 14px 30px -18px rgba(54,241,225,0.95);
}
.cb-settings-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.45fr);
  gap: 34px;
  margin-top: 14px;
  padding: 26px 28px 26px 34px;
  border: 1px solid rgba(193,203,219,0.12);
  border-radius: 14px;
  /* lighter blue + faint orange on the LEFT, settling into deep navy on the RIGHT */
  background:
    radial-gradient(420px 200px at 0% 0%, rgba(255,170,80,0.08), transparent 62%),
    linear-gradient(100deg,
      rgba(54,241,225,0.06) 0%,
      rgba(47,111,255,0.05) 30%,
      rgba(16,29,49,0.86) 62%,
      rgba(10,19,34,0.78) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
}
.cb-settings-card-identity {
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.3fr);
  align-items: start;
}
.cb-settings-card-intro h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: 0;
}
.cb-settings-card-intro p {
  margin: 0;
  color: var(--cb-muted);
  font-size: 13px;
  line-height: 1.45;
}
.cb-settings-form-stack {
  min-width: 0;
}
.cb-settings-general .cb-settings-group {
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom-color: rgba(193,203,219,0.12);
}
.cb-settings-general .cb-settings-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.cb-settings-general .cb-settings-input,
.cb-settings-general .cb-settings-textarea,
.cb-settings-general .cb-settings-select {
  min-height: 40px;
  border-color: rgba(193,203,219,0.13);
  background: rgba(5,11,20,0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}
.cb-settings-general .cb-settings-textarea {
  min-height: 136px;
  line-height: 1.45;
}
.cb-settings-general .cb-settings-input:focus,
.cb-settings-general .cb-settings-textarea:focus,
.cb-settings-general .cb-settings-select:focus {
  border-color: rgba(54,241,225,0.58);
  box-shadow: 0 0 0 3px rgba(54,241,225,0.08), inset 0 1px 0 rgba(255,255,255,0.045);
}
.cb-settings-row-premium {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(130px, 0.7fr);
  gap: 16px;
}
.cb-settings-row-premium > * {
  min-width: 0;
}
.cb-settings-row-premium .cb-settings-input[type="number"] {
  max-width: none;
}
.cb-course-preview-card {
  margin-top: 20px;
  width: min(100%, 360px);
  overflow: hidden;
  border: 1px solid rgba(193,203,219,0.14);
  border-radius: 12px;
  background: rgba(5,11,20,0.48);
  box-shadow: 0 20px 42px -32px rgba(0,0,0,1);
}
.cb-course-preview-cover {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(54,241,225,0.18), transparent 55%),
    linear-gradient(135deg, rgba(47,111,255,0.22), rgba(5,11,20,0.72));
  color: var(--cb-muted);
  font-size: 12px;
  overflow: hidden;
}
.cb-course-preview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cb-course-preview-body {
  padding: 16px;
}
.cb-course-preview-meta,
.cb-course-preview-footer {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.cb-course-preview-meta span,
.cb-course-preview-footer span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(97,185,255,0.1);
  color: var(--cb-cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.cb-course-preview-meta span:first-child {
  background: rgba(54,241,225,0.12);
  color: var(--cb-teal);
}
.cb-course-preview-card h4 {
  margin: 13px 0 7px;
  color: var(--cb-text);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}
.cb-course-preview-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 54px;
  margin: 0;
  overflow: hidden;
  color: #aebbd0;
  font-size: 13px;
  line-height: 1.4;
}
.cb-course-preview-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(193,203,219,0.11);
}
.cb-course-preview-footer span {
  background: rgba(193,203,219,0.08);
  color: var(--cb-muted);
}
.cb-settings-general .cb-settings-cover {
  align-items: center;
  padding: 12px;
  border: 1px dashed rgba(54,241,225,0.22);
  border-radius: 12px;
  background: rgba(5,11,20,0.24);
}
.cb-settings-general .cb-settings-cover-preview {
  width: 196px;
  height: 110px;
  border-radius: 10px;
}
.cb-settings-help {
  max-width: 300px;
  color: var(--cb-muted);
  font-size: 12px;
  line-height: 1.4;
}
.cb-keyword-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 30px;
  margin-top: 12px;
}
.cb-keyword-preview span,
.cb-keyword-preview em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(54,241,225,0.16);
  background: rgba(54,241,225,0.08);
  color: var(--cb-faint);
  font-size: 12px;
  font-style: normal;
}
.cb-keyword-preview em {
  border-style: dashed;
  background: rgba(255,255,255,0.025);
  color: var(--cb-muted);
}
.cb-category-editor,
.cb-email-settings,
.cb-seo-panel {
  min-width: 0;
}
.cb-tag-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 44px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid rgba(193,203,219,0.13);
  border-radius: 10px;
  background: rgba(5,11,20,0.28);
}
.cb-tag-box button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  max-width: 100%;
  padding: 5px 9px 5px 11px;
  border: 1px solid rgba(54,241,225,0.16);
  border-radius: 999px;
  background: rgba(54,241,225,0.1);
  color: var(--cb-faint);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
}
.cb-tag-box button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cb-tag-box button b {
  color: var(--cb-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.cb-tag-box button:hover {
  border-color: rgba(54,241,225,0.42);
  color: var(--cb-text);
}
.cb-tag-box em {
  color: var(--cb-muted);
  font-size: 12px;
  font-style: normal;
}
.cb-category-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.cb-category-preset {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(193,203,219,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: var(--cb-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
}
.cb-category-preset:hover,
.cb-category-preset.is-active {
  border-color: rgba(54,241,225,0.36);
  background: rgba(54,241,225,0.11);
  color: var(--cb-teal);
}
.cb-settings-email-choice {
  align-items: flex-start;
  width: 100%;
  margin-bottom: 10px;
  padding: 13px 14px;
}
.cb-settings-email-choice span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cb-settings-email-choice strong {
  color: var(--cb-text);
  font-size: 13px;
}
.cb-settings-email-choice small {
  color: var(--cb-muted);
  font-size: 12px;
  line-height: 1.4;
}
.cb-email-checklist {
  display: grid;
  gap: 9px;
  margin: 14px 0 0 34px;
  padding: 16px;
  border: 1px solid rgba(193,203,219,0.1);
  border-radius: 12px;
  background: rgba(5,11,20,0.24);
}
.cb-email-checklist label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cb-faint);
  font-size: 13px;
}
.cb-email-checklist input {
  accent-color: var(--cb-teal);
}
.cb-email-checklist.is-disabled {
  opacity: 0.42;
}
.cb-google-preview {
  max-width: 520px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(193,203,219,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  color: #202124;
  box-shadow: 0 18px 34px -28px rgba(0,0,0,0.9);
}
.cb-google-preview.is-mobile {
  max-width: 360px;
}
.cb-google-label {
  color: #777;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.cb-google-tabs {
  display: flex;
  gap: 22px;
  margin: 0 -16px 12px;
  padding: 0 16px;
  border-bottom: 1px solid #dadce0;
}
.cb-google-tabs button {
  padding: 0 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #777;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}
.cb-google-tabs button.is-active {
  border-bottom-color: #00a39b;
  color: #202124;
}
.cb-google-title {
  color: #1a0dab;
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 2px;
}
.cb-google-url {
  color: #008000;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.cb-google-desc {
  color: #4d5156;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
}
.cb-seo-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 14px 0 18px;
  padding: 15px;
  border: 1px solid rgba(54,241,225,0.16);
  border-radius: 12px;
  background: rgba(54,241,225,0.06);
}
.cb-seo-toggle-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cb-text);
  font-size: 13px;
}
.cb-seo-toggle-row small {
  color: var(--cb-muted);
  font-size: 12px;
  line-height: 1.4;
}
.cb-seo-manual {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(193,203,219,0.1);
  border-radius: 12px;
  background: rgba(5,11,20,0.22);
}
.cb-seo-manual.is-disabled {
  opacity: 0.42;
}
.cb-seo-manual .cb-btn-ghost {
  justify-self: start;
}
.cb-char-count {
  color: var(--cb-muted);
  font-size: 11px;
  text-align: right;
}

@media (max-width: 980px) {
  .cb-settings-card,
  .cb-settings-card-identity {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .cb-course-preview-card {
    width: 100%;
    max-width: 420px;
  }
}
@media (max-width: 760px) {
  .cb-settings-hero {
    flex-direction: column;
    padding: 22px;
    border-radius: 14px;
  }
  .cb-settings-hero h2 {
    font-size: 24px;
  }
  .cb-settings-hero .cb-settings-save {
    width: 100%;
  }
  .cb-settings-card {
    padding: 20px;
    border-radius: 12px;
  }
  .cb-settings-row-premium {
    grid-template-columns: 1fr;
  }
  .cb-settings-general .cb-settings-cover {
    align-items: stretch;
    flex-direction: column;
  }
  .cb-settings-general .cb-settings-cover-preview {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .cb-email-checklist {
    margin-left: 0;
  }
  .cb-seo-toggle-row {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ============================================================
   Video Library inventory + Player settings extras (Plan 3b)
   ============================================================ */

.cb-video-summary {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--cb-line);
  margin-bottom: 18px;
}
.cb-video-summary-item {
  font-size: 13px; color: var(--cb-muted);
}
.cb-video-summary-item strong {
  color: var(--cb-text); font-weight: 600;
}

.cb-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.cb-video-card {
  background: var(--cb-panel);
  border: 1px solid var(--cb-line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .12s;
}
.cb-video-card:hover { border-color: var(--cb-line-hi); }

.cb-video-thumb {
  height: 120px;
  background: rgba(47,111,255,0.08);
  display: grid; place-items: center;
  font-size: 32px; color: var(--cb-blue);
}

.cb-video-meta {
  padding: 10px 12px 12px;
}
.cb-video-name {
  font-size: 13px; font-weight: 600; color: var(--cb-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 4px;
}
.cb-video-details {
  font-size: 11px; color: var(--cb-muted);
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.cb-video-hour-badge {
  font-size: 10px; color: var(--cb-cyan);
  background: rgba(97,185,255,0.1);
  padding: 2px 6px; border-radius: 4px;
}
.cb-video-main-badge {
  font-size: 10px; font-weight: 700;
  color: var(--cb-teal);
  background: rgba(54,241,225,0.1);
  padding: 2px 6px; border-radius: 4px;
}

/* Color input with swatch preview */
.cb-settings-color {
  display: flex; align-items: center; gap: 10px;
}
.cb-settings-color input[type="color"] {
  width: 36px; height: 36px; border: none; border-radius: 6px;
  background: transparent; cursor: pointer; padding: 0;
}
.cb-settings-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.cb-settings-color input[type="color"]::-webkit-color-swatch {
  border: 2px solid var(--cb-line); border-radius: 6px;
}
.cb-settings-color-hex {
  font-size: 12px; color: var(--cb-muted); font-family: monospace;
}

/* Time input pair */
.cb-settings-time-row {
  display: flex; gap: 12px; align-items: center;
}
.cb-settings-time-row input[type="time"] {
  padding: 7px 10px; border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--cb-line);
  color: var(--cb-text); font-size: 13px;
  font-family: inherit;
}
.cb-settings-time-row input[type="time"]:focus {
  outline: none; border-color: var(--cb-teal);
}
.cb-settings-time-row span {
  font-size: 12px; color: var(--cb-muted);
}


/* ============================================================
   Automations rule cards + form (Plan 3c)
   ============================================================ */

.cb-auto-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 16px;
}

.cb-auto-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 8px;
  background: var(--cb-panel);
  border: 1px solid var(--cb-line);
  transition: border-color .12s;
}
.cb-auto-card:hover { border-color: var(--cb-line-hi); }
.cb-auto-card.is-disabled { opacity: 0.45; }

.cb-auto-trigger {
  font-size: 13px; color: var(--cb-faint);
}
.cb-auto-arrow {
  color: var(--cb-teal); font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.cb-auto-action {
  font-size: 13px; color: var(--cb-text); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cb-auto-actions {
  display: flex; gap: 3px; opacity: 0; transition: opacity .12s;
  flex-shrink: 0;
}
.cb-auto-card:hover .cb-auto-actions { opacity: 1; }

.cb-auto-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(255,200,90,0.1);
  color: var(--cb-gold); font-size: 10px; font-weight: 600;
  letter-spacing: 0.4px; flex-shrink: 0;
}

.cb-auto-empty {
  font-size: 12px; color: var(--cb-muted); font-style: italic;
  padding: 18px 0;
}

/* Inline add/edit form */
.cb-auto-form {
  background: var(--cb-panel-2);
  border: 1px solid var(--cb-line-hi);
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
}
.cb-auto-form-row {
  margin-bottom: 12px;
}
.cb-auto-form-row:last-child { margin-bottom: 0; }
.cb-auto-form-row label {
  display: block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--cb-muted); margin-bottom: 5px;
}
.cb-auto-form-row select,
.cb-auto-form-row input,
.cb-auto-form-row textarea {
  width: 100%; padding: 8px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--cb-line);
  color: var(--cb-text); font-size: 13px;
  font-family: inherit;
}
.cb-auto-form-row select:focus,
.cb-auto-form-row input:focus,
.cb-auto-form-row textarea:focus {
  outline: none; border-color: var(--cb-teal);
}
.cb-auto-form-row textarea { resize: vertical; min-height: 60px; }
.cb-auto-form-row select { appearance: auto; }
.cb-auto-form-btns {
  display: flex; gap: 8px; margin-top: 14px;
}


/* ============================================================
   Insights — shared components (Plan 4)
   ============================================================ */

/* Stat cards */
.cb-stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.cb-stat-card {
  background: var(--cb-panel);
  border: 1px solid var(--cb-line);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.cb-stat-val {
  font-size: 28px; font-weight: 700; color: var(--cb-text);
}
.cb-stat-label {
  font-size: 11px; color: var(--cb-muted);
  text-transform: uppercase; letter-spacing: 0.8px;
}
.cb-stat-trend {
  font-size: 11px; display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px; border-radius: 4px; margin-top: 4px; width: fit-content;
}
.cb-stat-trend.is-up   { background: rgba(77,232,167,0.12); color: var(--cb-green); }
.cb-stat-trend.is-down { background: rgba(255,83,112,0.12); color: var(--cb-danger); }
.cb-stat-trend.is-flat { background: rgba(150,165,186,0.1); color: var(--cb-muted); }

/* Data tables */
.cb-data-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.cb-data-table th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--cb-muted); border-bottom: 1px solid var(--cb-line);
  padding: 8px 12px; text-align: left; position: sticky; top: 0;
  background: var(--cb-bg); z-index: 1;
}
.cb-data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cb-data-table tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.cb-data-table tr:hover { background: rgba(54,241,225,0.04); }
.cb-data-table .cb-grade-pass { background: rgba(77,232,167,0.10); }
.cb-data-table .cb-grade-fail { background: rgba(255,83,112,0.10); }
.cb-data-table .cb-grade-na   { color: var(--cb-muted); }
.cb-data-table .cb-row-summary td {
  font-weight: 700; border-top: 2px solid var(--cb-line);
}

/* Progress inline bar */
.cb-progress-inline {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px;
}
.cb-progress-track {
  height: 6px; width: 80px; border-radius: 3px;
  background: rgba(255,255,255,0.08);
}
.cb-progress-fill {
  height: 100%; border-radius: 3px; background: var(--cb-teal);
}

/* Status badges */
.cb-status-badge {
  padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; display: inline-block;
}
.cb-status-active    { background: rgba(54,241,225,0.12);  color: var(--cb-teal); }
.cb-status-completed { background: rgba(77,232,167,0.12);  color: var(--cb-green); }
.cb-status-inactive  { background: rgba(255,200,90,0.12);  color: var(--cb-gold); }
.cb-status-withdrawn { background: rgba(150,165,186,0.12); color: var(--cb-muted); }
.cb-status-pass      { background: rgba(77,232,167,0.12);  color: var(--cb-green); }
.cb-status-fail      { background: rgba(255,83,112,0.12);  color: var(--cb-danger); }
.cb-status-issued    { background: rgba(77,232,167,0.12);  color: var(--cb-green); }
.cb-status-pending   { background: rgba(255,200,90,0.12);  color: var(--cb-gold); }

/* Filter bar */
.cb-filter-bar {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 18px; flex-wrap: wrap;
}
.cb-filter-pill {
  padding: 6px 14px; border-radius: 6px;
  border: 1px solid var(--cb-line); cursor: pointer;
  font-size: 12px; color: var(--cb-faint);
  background: transparent; transition: border-color .12s, background .12s;
}
.cb-filter-pill:hover {
  border-color: var(--cb-line-hi);
}
.cb-filter-pill.is-active {
  border-color: var(--cb-teal);
  background: rgba(54,241,225,0.08);
  color: var(--cb-teal);
}
.cb-filter-search {
  flex: 1; min-width: 160px; padding: 7px 12px; border-radius: 7px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--cb-line);
  color: var(--cb-text); font-size: 13px; font-family: inherit;
}
.cb-filter-search:focus { outline: none; border-color: var(--cb-teal); }

/* ============================================================
   Insights — bar chart (Plan 4 Dashboard)
   ============================================================ */

.cb-bar-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 120px; padding-top: 8px;
}
.cb-bar-col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; height: 100%;
}
.cb-bar {
  width: 100%; border-radius: 4px 4px 0 0;
  background: rgba(54,241,225,0.6);
  transition: height .3s;
}
.cb-bar-label {
  font-size: 10px; text-align: center; color: var(--cb-muted);
  margin-top: 4px;
}

/* ============================================================
   Insights — completion funnel (Plan 4 Module Insights)
   ============================================================ */

.cb-funnel-list { display: flex; flex-direction: column; gap: 6px; }
.cb-funnel-row {
  display: flex; align-items: center; gap: 12px;
}
.cb-funnel-label {
  width: 200px; font-size: 12px; text-align: right;
  color: var(--cb-faint); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0;
}
.cb-funnel-track {
  flex: 1; height: 22px; background: rgba(255,255,255,0.04);
  border-radius: 4px; overflow: hidden;
}
.cb-funnel-bar {
  height: 100%; border-radius: 4px;
  transition: width .3s;
}
.cb-funnel-bar.type-standard  { background: var(--cb-teal); }
.cb-funnel-bar.type-test      { background: var(--cb-gold); }
.cb-funnel-bar.type-group     { background: var(--cb-violet); }
.cb-funnel-bar.type-milestone { background: var(--cb-green); }
.cb-funnel-pct {
  font-size: 11px; color: var(--cb-muted); min-width: 40px;
  flex-shrink: 0;
}

/* ============================================================
   Insights — heatmap (Plan 4 Activity Matrix)
   ============================================================ */

.cb-heatmap-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px; font-size: 11px; color: var(--cb-muted);
  align-items: center;
}
.cb-heatmap-legend-swatch {
  width: 16px; height: 12px; border-radius: 2px;
  display: inline-block; vertical-align: middle; margin-right: 4px;
}
.cb-heatmap-wrap {
  overflow-x: auto; border: 1px solid var(--cb-line); border-radius: 10px;
  background: var(--cb-bg);
}
.cb-heatmap-grid {
  display: grid; min-width: fit-content;
}
.cb-heatmap-corner {
  position: sticky; left: 0; z-index: 3;
  background: var(--cb-bg); border-right: 1px solid var(--cb-line);
  border-bottom: 1px solid var(--cb-line);
}
.cb-heatmap-hdr-row {
  display: contents;
}
.cb-heatmap-header {
  height: 90px; display: flex; align-items: flex-end;
  padding-bottom: 4px; border-bottom: 1px solid var(--cb-line);
}
.cb-heatmap-header span {
  display: block; transform: rotate(-45deg); transform-origin: bottom left;
  font-size: 10px; white-space: nowrap; color: var(--cb-faint);
  width: 48px; overflow: hidden; text-overflow: ellipsis;
}
.cb-heatmap-hour-sep {
  border-left: 2px solid var(--cb-line);
}
.cb-heatmap-name {
  position: sticky; left: 0; z-index: 2;
  background: var(--cb-bg); padding: 6px 12px;
  font-size: 12px; color: var(--cb-text);
  border-right: 1px solid var(--cb-line);
  display: flex; align-items: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cb-heatmap-cell {
  width: 48px; height: 32px; border-radius: 3px;
  margin: 1px; position: relative; cursor: default;
}
.cb-heat-5 { background: rgba(34,180,85,0.85); }
.cb-heat-4 { background: rgba(77,232,167,0.7); }
.cb-heat-3 { background: rgba(54,241,225,0.55); }
.cb-heat-2 { background: rgba(255,200,90,0.6); }
.cb-heat-1 { background: rgba(255,83,112,0.6); }
.cb-heat-0 { background: rgba(150,165,186,0.15); }
.cb-heatmap-cell:hover::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: var(--cb-bg); border: 1px solid var(--cb-line-hi);
  border-radius: 6px; padding: 4px 8px; font-size: 11px;
  white-space: nowrap; z-index: 10; color: var(--cb-text);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ============================================================
   Insights — pending reviews (Plan 4)
   ============================================================ */

.cb-pending-list { display: flex; flex-direction: column; gap: 8px; }
.cb-pending-cat {
  font-size: 12px; font-weight: 600; color: var(--cb-muted);
  text-transform: uppercase; letter-spacing: 0.8px;
  margin: 16px 0 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--cb-line);
}
.cb-pending-cat:first-child { margin-top: 0; }
.cb-pending-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 8px;
  background: var(--cb-panel); border: 1px solid var(--cb-line);
  transition: border-color .12s;
}
.cb-pending-item:hover { border-color: var(--cb-line-hi); }
.cb-pending-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
  color: var(--cb-bg);
}
.cb-pending-body { flex: 1; min-width: 0; }
.cb-pending-desc { font-size: 13px; color: var(--cb-text); }
.cb-pending-date { font-size: 11px; color: var(--cb-muted); margin-top: 2px; }
.cb-pending-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ============================================================
   Insights — form cards (Plan 4)
   ============================================================ */

.cb-forms-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.cb-form-card {
  background: var(--cb-panel);
  border: 1px solid var(--cb-line);
  border-radius: 10px; padding: 16px;
  transition: border-color .12s;
}
.cb-form-card:hover { border-color: var(--cb-line-hi); }
.cb-form-card-name {
  font-size: 14px; font-weight: 600; color: var(--cb-text);
  margin-bottom: 4px;
}
.cb-form-card-hour {
  font-size: 11px; color: var(--cb-muted); margin-bottom: 10px;
}
.cb-form-card-stats {
  display: flex; gap: 14px; font-size: 12px; color: var(--cb-faint);
  margin-bottom: 10px;
}
.cb-form-card-stats strong { color: var(--cb-text); font-weight: 600; }
.cb-form-mini-bars {
  display: flex; align-items: flex-end; gap: 4px; height: 40px;
}
.cb-form-mini-bar {
  flex: 1; border-radius: 3px 3px 0 0;
  background: rgba(54,241,225,0.5);
}

/* ============================================================
   Insights — dashboard mini panels (Plan 4)
   ============================================================ */

.cb-dash-bottom {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 24px;
}
.cb-dash-panel {
  background: var(--cb-panel);
  border: 1px solid var(--cb-line);
  border-radius: 10px; padding: 16px;
}
.cb-dash-panel h3 {
  font-size: 13px; font-weight: 600; margin: 0 0 12px;
  color: var(--cb-text);
}
.cb-event-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  font-size: 12px; color: var(--cb-faint);
}
.cb-event-icon { font-size: 14px; flex-shrink: 0; }
.cb-event-time { font-size: 10px; color: var(--cb-muted); min-width: 50px; flex-shrink: 0; }
.cb-perf-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; font-size: 12px;
}
.cb-perf-rank {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.cb-perf-rank.rank-1 { background: rgba(255,200,90,0.2); color: var(--cb-gold); }
.cb-perf-rank.rank-2 { background: rgba(193,203,219,0.2); color: var(--cb-faint); }
.cb-perf-rank.rank-3 { background: rgba(205,127,50,0.2); color: #cd7f32; }
.cb-perf-rank.rank-other { background: rgba(150,165,186,0.1); color: var(--cb-muted); }
.cb-perf-name { flex: 1; color: var(--cb-text); }

/* Insights panels shared layout */
.cb-insights-panel { max-width: 960px; }
.cb-insights-panel h2 {
  font-size: 20px; font-weight: 600; margin: 0 0 4px;
}
.cb-insights-panel .cb-sub {
  color: var(--cb-muted); font-size: 12px; margin-bottom: 24px;
}
.cb-insights-section {
  margin-bottom: 28px;
}
.cb-insights-section h3 {
  font-size: 14px; font-weight: 600; margin: 0 0 12px;
  color: var(--cb-text);
}
.cb-insights-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}

/* ============================================================
   Insights live-data — sample badge + empty state (Plan 5c)
   ============================================================ */

.cb-sample-badge {
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--cb-gold); background: rgba(255,200,90,0.12);
  padding: 2px 8px; border-radius: 4px; margin-left: 10px; vertical-align: middle;
}
.cb-insights-empty {
  text-align: center; padding: 48px 24px; color: var(--cb-muted);
  border: 1px dashed var(--cb-line); border-radius: 12px;
}
.cb-insights-empty h3 { color: var(--cb-faint); font-size: 15px; margin: 0 0 6px; }
.cb-insights-empty p { font-size: 12px; margin: 0; }

/* Mobile hover guard (per feedback_mobile_hover_guard.md) */
@media (hover: none) {
  .cb-card:hover { transform: none; }
  .cb-hour-card:hover {
    background: transparent;
    border-color: rgba(193,203,219,0.13);
  }
  .cb-hour-expanded:hover {
    border-color: rgba(54,241,225,0.36);
    background:
      radial-gradient(120% 150% at 10% -20%, rgba(54,241,225,0.14), transparent 46%),
      linear-gradient(180deg, rgba(16,34,58,0.94), rgba(7,17,31,0.86));
  }
  .cb-hour-card .cb-hour-actions { opacity: 1; }
  .cb-act-row:hover { background: rgba(5,11,20,0.28); border-color: rgba(193,203,219,0.1); }
  .cb-act-actions { opacity: 1; }
  .cb-settings-radio:hover { border-color: var(--cb-line); }
  .cb-data-table tr:hover { background: transparent; }
  .cb-heatmap-cell:hover::after { display: none; }
  .cb-pending-item:hover { border-color: var(--cb-line); }
  .cb-filter-pill:hover { border-color: var(--cb-line); }
  .cb-form-card:hover { border-color: var(--cb-line); }
}

/* ============================================================
   Catalog — Enterprise redesign (hero + glow/gleam cards)
   Overrides/extends the earlier .cb-card block. Later in file = wins.
   ============================================================ */

/* --- Hero band --- */
.cb-catalog-hero {
  position: relative;
  margin-bottom: 22px;
  padding: 26px 28px 22px;
  border: 1px solid var(--cb-line);
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 8% -20%, rgba(54,241,225,0.10), transparent 55%),
    radial-gradient(120% 160% at 100% 0%, rgba(47,111,255,0.12), transparent 50%),
    linear-gradient(180deg, rgba(13,25,43,0.85), rgba(13,25,43,0.55));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 40px -28px rgba(0,0,0,0.9);
}
.cb-hero-glow {
  position: absolute; inset: -40% 30% auto -10%;
  height: 220px;
  background: radial-gradient(closest-side, rgba(54,241,225,0.18), transparent);
  filter: blur(26px); pointer-events: none;
}
.cb-hero-row {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
}
.cb-hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--cb-teal); margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 8px;
}
.cb-hero-eyebrow::before {
  content: ''; width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--cb-teal), transparent);
}
.cb-hero-title {
  margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.5px;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff, #c5d4ec);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cb-hero-sub { margin: 8px 0 0; color: var(--cb-muted); font-size: 13px; max-width: 52ch; }
.cb-hero-cta {
  flex-shrink: 0; padding: 10px 18px; font-size: 13px;
  box-shadow: 0 10px 26px -10px rgba(54,241,225,0.7);
}
.cb-hero-cta span { font-size: 15px; line-height: 0; }

/* --- Stat chips --- */
.cb-catalog-stats {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 22px; min-height: 56px;
}
.cb-stat-chip {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 18px; border-radius: 12px;
  background: rgba(5,11,20,0.5);
  border: 1px solid var(--cb-line);
  min-width: 96px;
}
.cb-stat-chip-val { font-size: 22px; font-weight: 700; color: var(--cb-text); font-variant-numeric: tabular-nums; line-height: 1; }
.cb-stat-chip-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--cb-muted); }
.cb-stat-chip.is-pub   { border-color: rgba(77,232,167,0.25); }
.cb-stat-chip.is-pub   .cb-stat-chip-val { color: var(--cb-green); }
.cb-stat-chip.is-draft { border-color: rgba(255,200,90,0.22); }
.cb-stat-chip.is-draft .cb-stat-chip-val { color: var(--cb-gold); }
.cb-stat-chip.is-learn { border-color: rgba(97,185,255,0.25); }
.cb-stat-chip.is-learn .cb-stat-chip-val { color: var(--cb-cyan); }

/* --- Controls row (search + selects) --- */
.cb-catalog-controls {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.cb-search {
  position: relative; flex: 1; min-width: 220px;
  display: flex; align-items: center;
}
.cb-search svg { position: absolute; left: 13px; color: var(--cb-muted); pointer-events: none; }
.cb-search input {
  width: 100%; padding: 10px 14px 10px 36px; border-radius: 10px;
  background: rgba(5,11,20,0.5); border: 1px solid var(--cb-line);
  color: var(--cb-text); font-size: 13px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.cb-search input::placeholder { color: var(--cb-muted); }
.cb-search input:focus {
  outline: none; border-color: var(--cb-teal);
  box-shadow: 0 0 0 3px rgba(54,241,225,0.12);
}
.cb-control-group { display: flex; gap: 8px; flex-wrap: wrap; }
.cb-select {
  appearance: none; -webkit-appearance: none;
  padding: 10px 32px 10px 14px; border-radius: 10px;
  background: rgba(5,11,20,0.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2396a5ba' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--cb-line); color: var(--cb-faint);
  font-size: 12px; font-family: inherit; cursor: pointer;
  transition: border-color .15s;
}
.cb-select:hover { border-color: var(--cb-line-hi); }
.cb-select:focus { outline: none; border-color: var(--cb-teal); }

/* --- Grid --- */
.cb-catalog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

/* --- Premium card (overrides earlier .cb-card) --- */
.cb-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(20,34,56,0.7), rgba(11,20,35,0.85));
  border: 1px solid var(--cb-line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: flex; flex-direction: column;
  transform: translateY(0);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), border-color .22s, box-shadow .22s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 22px -16px rgba(0,0,0,0.9);
  opacity: 0;
  animation: cb-card-rise .5s cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay: calc(var(--cb-i, 0) * 45ms);
}
@keyframes cb-card-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Hover gleam ring + lift */
.cb-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 16px;
  padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(140deg, rgba(54,241,225,0.6), rgba(47,111,255,0.35) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .22s;
}
.cb-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 22px 42px -22px rgba(0,0,0,0.95),
    0 0 32px -8px rgba(54,241,225,0.28);
}
.cb-card:hover::before { opacity: 1; }

.cb-card .cb-card-cover {
  position: relative;
  height: 158px;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
/* hashed-hue gradient for cover-less modules */
.cb-card.is-coverless .cb-card-cover {
  background:
    radial-gradient(120% 120% at 80% 0%, hsla(var(--cb-hue,190), 80%, 45%, 0.45), transparent 60%),
    linear-gradient(150deg, hsl(var(--cb-hue,190), 55%, 20%), hsl(calc(var(--cb-hue,190) + 38), 50%, 11%));
}
.cb-card-mark {
  position: absolute; right: -6px; bottom: -22px;
  font-size: 120px; font-weight: 800; line-height: 1;
  color: rgba(255,255,255,0.06);
  letter-spacing: -4px; user-select: none; pointer-events: none;
}
/* bottom scrim so chips/badges stay legible on photo covers */
.cb-card-cover-grad {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,11,20,0.0) 35%, rgba(5,11,20,0.55) 100%);
}
/* diagonal sheen that sweeps across on hover */
.cb-card-sheen {
  position: absolute; top: 0; left: -120%; width: 70%; height: 100%;
  z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-18deg);
  transition: left .65s cubic-bezier(.2,.7,.3,1);
}
.cb-card:hover .cb-card-sheen { left: 130%; }

.cb-card .cb-status-chip {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
}
.cb-card-ce {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  padding: 3px 9px; border-radius: 999px;
  color: var(--cb-bg);
  background: linear-gradient(90deg, var(--cb-gold), #ffd98a);
  box-shadow: 0 4px 12px -4px rgba(255,200,90,0.6);
}

.cb-card .cb-card-body {
  padding: 15px 16px 16px; flex: 1;
  display: flex; flex-direction: column; gap: 8px;
}
.cb-card .cb-card-title {
  font-weight: 700; font-size: 15.5px; margin: 0; line-height: 1.3;
  letter-spacing: -0.2px; color: var(--cb-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cb-card-desc {
  margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--cb-faint);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cb-card-desc-empty { color: var(--cb-muted); font-style: italic; }

.cb-card-tags {
  display: flex; gap: 6px; flex-wrap: wrap; min-height: 4px;
}
.cb-tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.3px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(97,185,255,0.10);
  border: 1px solid rgba(97,185,255,0.18);
  color: var(--cb-cyan);
}
.cb-tag-sem {
  background: rgba(146,109,255,0.10);
  border-color: rgba(146,109,255,0.2);
  color: var(--cb-violet);
}

.cb-card .cb-card-foot {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--cb-line);
  display: flex; justify-content: space-between; align-items: center;
}
.cb-card .cb-card-price {
  color: var(--cb-teal); font-weight: 700; font-size: 15px;
  letter-spacing: -0.2px;
}
.cb-card .cb-card-learners {
  color: var(--cb-muted); font-size: 11.5px;
  display: inline-flex; align-items: center; gap: 5px;
}

/* --- Skeleton loaders --- */
.cb-card-skeleton {
  cursor: default; animation: none; opacity: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.cb-card-skeleton::before { display: none; }
.cb-card-skeleton .cb-card-cover {
  background: linear-gradient(100deg, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 70%);
  background-size: 200% 100%;
  animation: cb-shimmer 1.3s linear infinite;
}
.cb-sk-line {
  display: block; height: 11px; border-radius: 5px; margin-bottom: 9px;
  background: linear-gradient(100deg, rgba(255,255,255,0.05) 30%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 70%);
  background-size: 200% 100%; animation: cb-shimmer 1.3s linear infinite;
}
.cb-sk-line.short { width: 70%; }
.cb-sk-line.tiny  { width: 40%; }
@keyframes cb-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* --- Fancy empty state --- */
.cb-empty-fancy .cb-empty-orb {
  font-size: 40px; margin-bottom: 14px;
  display: inline-grid; place-items: center;
  width: 78px; height: 78px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(54,241,225,0.15), transparent);
  border: 1px solid var(--cb-line-hi);
  margin-left: auto; margin-right: auto;
}

/* --- Hero toolbar (Create / Import / Manage categories) --- */
.cb-hero-toolbar {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 18px;
}
.cb-hero-toolbar .cb-pill {
  padding: 9px 15px; font-size: 12.5px; font-weight: 600;
  background: rgba(5,11,20,0.5);
}
.cb-hero-toolbar .cb-pill svg { opacity: 0.85; }
.cb-hero-toolbar .cb-pill.is-primary {
  background: linear-gradient(90deg, var(--cb-teal) 0%, var(--cb-blue) 100%);
  box-shadow: 0 10px 26px -12px rgba(54,241,225,0.7);
}
.cb-hero-toolbar .cb-pill.is-primary svg { opacity: 1; }

/* --- Grid / list view toggle --- */
.cb-view-toggle {
  display: inline-flex; padding: 3px; gap: 2px;
  background: rgba(5,11,20,0.5); border: 1px solid var(--cb-line);
  border-radius: 10px;
}
.cb-view-btn {
  display: grid; place-items: center;
  width: 32px; height: 30px; border-radius: 7px;
  background: transparent; border: none; cursor: pointer;
  color: var(--cb-muted); transition: background .15s, color .15s;
}
.cb-view-btn:hover { color: var(--cb-text); }
.cb-view-btn.is-active {
  background: rgba(54,241,225,0.14); color: var(--cb-teal);
}

/* --- Result count --- */
.cb-result-count {
  font-size: 12px; color: var(--cb-muted); margin: -4px 0 14px;
}
.cb-result-count strong { color: var(--cb-faint); }

/* --- Card hover action cluster (clone · more · move) --- */
.cb-card-actions {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  display: flex; gap: 6px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .18s, transform .18s;
}
.cb-card:hover .cb-card-actions,
.cb-row:hover .cb-card-actions,
.cb-card-more.is-open .cb-card-actions,    /* keep visible while menu open */
.cb-card-actions:focus-within { opacity: 1; transform: translateY(0); }

.cb-card-iconbtn {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; cursor: pointer;
  color: #e7eefb;
  background: rgba(7,14,26,0.72);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.6);
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.cb-card-iconbtn:hover {
  background: rgba(54,241,225,0.16); color: var(--cb-teal);
  border-color: rgba(54,241,225,0.45); transform: translateY(-1px);
}
.cb-card-more { position: relative; }
.cb-card-more.is-open .cb-card-iconbtn[data-act="more"] {
  background: rgba(54,241,225,0.16); color: var(--cb-teal);
  border-color: rgba(54,241,225,0.45);
}

/* dropdown menu */
.cb-card-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 196px; padding: 6px; z-index: 20;
  background: var(--cb-panel-2);
  border: 1px solid var(--cb-line-hi);
  border-radius: 12px;
  box-shadow: 0 18px 44px -16px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.05);
  display: none;
  animation: cb-menu-pop .14s ease-out;
}
.cb-card-more.is-open .cb-card-menu { display: block; }
@keyframes cb-menu-pop {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cb-card-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border: none; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--cb-faint);
  font-size: 13px; font-family: inherit; text-align: left;
  transition: background .12s, color .12s;
}
.cb-card-menu button svg { color: var(--cb-muted); flex-shrink: 0; transition: color .12s; }
.cb-card-menu button:hover { background: rgba(54,241,225,0.1); color: var(--cb-text); }
.cb-card-menu button:hover svg { color: var(--cb-teal); }
.cb-card-menu button.is-danger:hover { background: rgba(255,83,112,0.12); color: var(--cb-danger); }
.cb-card-menu button.is-danger:hover svg { color: var(--cb-danger); }

/* --- List view --- */
.cb-catalog-list { display: flex; flex-direction: column; gap: 10px; }
.cb-row {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 14px; padding-right: 120px;
  border: 1px solid var(--cb-line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(20,34,56,0.6), rgba(11,20,35,0.8));
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color .18s, transform .18s, box-shadow .18s;
  opacity: 0; animation: cb-card-rise .45s cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay: calc(var(--cb-i, 0) * 30ms);
}
.cb-row:hover {
  border-color: var(--cb-line-hi); transform: translateX(2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 26px -10px rgba(54,241,225,0.25);
}
.cb-row:has(.cb-card-more.is-open) { z-index: 5; }
.cb-row-thumb {
  width: 92px; height: 60px; border-radius: 10px; flex-shrink: 0;
  background-size: cover; background-position: center;
  display: grid; place-items: center; overflow: hidden;
}
.cb-row-thumb.is-coverless {
  background:
    radial-gradient(120% 120% at 80% 0%, hsla(var(--cb-hue,190), 80%, 45%, 0.5), transparent 60%),
    linear-gradient(150deg, hsl(var(--cb-hue,190), 55%, 22%), hsl(calc(var(--cb-hue,190) + 38), 50%, 12%));
}
.cb-row-thumb.is-coverless span {
  font-size: 26px; font-weight: 800; color: rgba(255,255,255,0.6);
}
.cb-row-main { flex: 1; min-width: 0; }
.cb-row-titlerow {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px;
}
.cb-row-title {
  margin: 0; font-size: 15px; font-weight: 700; color: var(--cb-text);
  letter-spacing: -0.2px;
}
.cb-row .cb-status-chip { position: static; backdrop-filter: none; }
.cb-row-desc {
  margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--cb-faint);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.cb-row-meta {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  text-align: right;
}
.cb-row .cb-card-actions { top: 50%; right: 14px; transform: translateY(-50%); }
.cb-card:hover .cb-card-actions,
.cb-row:hover .cb-card-actions { transform: translateY(0); }
.cb-row:hover .cb-card-actions { transform: translateY(-50%); }
.cb-row .cb-card-menu { top: calc(100% + 8px); }

@media (max-width: 720px) {
  .cb-row { padding-right: 14px; flex-wrap: wrap; }
  .cb-row-meta { position: static; transform: none; flex-direction: row; gap: 12px; align-items: center; }
  .cb-row .cb-card-actions { position: static; transform: none; opacity: 1; margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cb-card, .cb-row { animation: none; opacity: 1; }
  .cb-card-sheen { display: none; }
}
@media (hover: none) {
  .cb-card:hover { transform: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 22px -16px rgba(0,0,0,0.9); }
  .cb-card:hover::before { opacity: 0; }
  .cb-card:hover .cb-card-sheen { left: -120%; }
  .cb-row:hover { transform: none; }
  .cb-card-actions { opacity: 1; transform: none; }      /* always reachable on touch */
  .cb-row .cb-card-actions { transform: translateY(-50%); }
}

/* Course Page Layout editor */
.cb-pl-wrap { display: grid; grid-template-columns: minmax(360px, 1fr) 1fr; gap: 20px; align-items: start; }
.cb-pl-form { min-width: 0; }
.cb-pl-preview { position: sticky; top: 16px; border: 1px solid var(--cb-border, #1e3354); border-radius: 12px; overflow: hidden; background: #0a1422; }
.cb-pl-preview-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 12px; color: var(--cb-muted, #7e93b8); border-bottom: 1px solid var(--cb-border, #1e3354); }
.cb-pl-preview-head a { color: var(--cb-accent, #36f1e1); text-decoration: none; }
.cb-pl-preview iframe { width: 100%; height: 70vh; border: 0; display: block; background: #fff; }
.cb-pl-gallery-item { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cb-pl-gallery-item img { width: 64px; height: 40px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.cb-pl-gallery-item input { flex: 1 1 auto; }
@media (max-width: 900px) { .cb-pl-wrap { grid-template-columns: 1fr; } .cb-pl-preview { position: static; } }

/* ============================================================
   Appearance switcher + light/white theme variants
   Per-browser preference (localStorage 'cbTheme'); DARK is default.
   Fully themed so far: Catalog (Course Manager) + Course Outline.
   ============================================================ */

.cb-theme-switch {
  position: fixed; top: 12px; right: 16px; z-index: 900;
  display: inline-flex; gap: 3px; padding: 4px;
  background: rgba(7,14,26,0.78); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 11px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px -10px rgba(0,0,0,0.7);
}
.cb-theme-switch button {
  padding: 6px 11px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid transparent;
  color: var(--cb-muted); font-size: 11.5px; font-weight: 600; font-family: inherit;
  transition: background .14s, color .14s, border-color .14s;
}
.cb-theme-switch button:hover { color: var(--cb-text); }
.cb-theme-switch button.on { background: rgba(54,241,225,0.16); color: var(--cb-teal); border-color: rgba(54,241,225,0.4); }
@media (max-width: 640px) {
  .cb-theme-switch { top: 8px; right: 8px; padding: 3px; }
  .cb-theme-switch button { padding: 5px 8px; font-size: 10.5px; }
}

/* ---------- white cards (shared by cards-white + page-light) ---------- */
/* Catalog cards */
body.cards-white .cb-card, body.page-light .cb-card {
  background: #fff; border: 1px solid #e6e9f0;
  box-shadow: 0 1px 2px rgba(16,24,40,0.06), 0 8px 22px -16px rgba(0,0,0,0.4);
}
body.cards-white .cb-card::before, body.page-light .cb-card::before {
  background: linear-gradient(140deg, rgba(13,148,136,0.5), rgba(47,111,255,0.28) 45%, transparent 72%);
}
body.cards-white .cb-card:hover, body.page-light .cb-card:hover {
  border-color: transparent; transform: translateY(-5px);
  box-shadow: 0 18px 34px -14px rgba(16,24,40,0.45), 0 0 0 1px rgba(13,148,136,0.15);
}
body.cards-white .cb-card-title, body.page-light .cb-card-title { color: #101828; }
body.cards-white .cb-card-desc, body.page-light .cb-card-desc { color: #475467; }
body.cards-white .cb-card-desc-empty, body.page-light .cb-card-desc-empty { color: #98a2b3; }
body.cards-white .cb-card-foot, body.page-light .cb-card-foot { border-top-color: #eef1f6; }
body.cards-white .cb-card-price, body.page-light .cb-card-price { color: #0d9488; }
body.cards-white .cb-card-learners, body.page-light .cb-card-learners { color: #667085; }
body.cards-white .cb-tag, body.page-light .cb-tag { background: #eff4ff; border-color: #d6e4ff; color: #2563eb; }
body.cards-white .cb-tag-sem, body.page-light .cb-tag-sem { background: #f4f0fe; border-color: #e5dbff; color: #7c3aed; }
/* Catalog list rows */
body.cards-white .cb-row, body.page-light .cb-row { background: #fff; border-color: #e6e9f0; box-shadow: 0 1px 2px rgba(16,24,40,0.06); }
body.cards-white .cb-row:hover, body.page-light .cb-row:hover { border-color: #cbd5e1; box-shadow: 0 12px 26px -14px rgba(16,24,40,0.4); }
body.cards-white .cb-row-title, body.page-light .cb-row-title { color: #101828; }
body.cards-white .cb-row-desc, body.page-light .cb-row-desc { color: #475467; }

/* Outline hour cards */
body.cards-white .cb-hour-card, body.page-light .cb-hour-card {
  background: #fff; border-color: #e6e9f0;
  box-shadow: 0 1px 2px rgba(16,24,40,0.06), 0 8px 22px -16px rgba(0,0,0,0.4);
}
body.cards-white .cb-hour-card:hover, body.page-light .cb-hour-card:hover {
  background: #fff; border-color: #cbd5e1; box-shadow: 0 12px 26px -14px rgba(16,24,40,0.4);
}
body.cards-white .cb-hour-card.cb-hour-expanded, body.page-light .cb-hour-card.cb-hour-expanded {
  border-color: rgba(13,148,136,0.5); box-shadow: 0 0 0 1px rgba(13,148,136,0.15), 0 12px 26px -14px rgba(16,24,40,0.4);
}
body.cards-white .cb-hour-title, body.page-light .cb-hour-title { color: #101828; }
body.cards-white .cb-hour-meta, body.page-light .cb-hour-meta,
body.cards-white .cb-hour-empty, body.page-light .cb-hour-empty { color: #667085; }
body.cards-white .cb-hour-num, body.page-light .cb-hour-num {
  background: #f1f4f9; border-color: #e0e4ec;
  background-image: linear-gradient(180deg, #1f2937, #64748b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.cards-white .cb-hour-card.cb-hour-expanded .cb-hour-num,
body.page-light .cb-hour-card.cb-hour-expanded .cb-hour-num {
  background-image: linear-gradient(180deg, #0d9488, #0ea5a0);
  -webkit-background-clip: text; background-clip: text; border-color: rgba(13,148,136,0.35);
}
body.cards-white .cb-hour-iconbtn, body.page-light .cb-hour-iconbtn { color: #667085; background: #f1f4f9; border-color: #e6e9f0; }

/* Outline activity rows */
body.cards-white .cb-act-row, body.page-light .cb-act-row { background: #f6f8fb; }
body.cards-white .cb-act-row:hover, body.page-light .cb-act-row:hover { background: #eef1f6; border-color: #e0e4ec; }
body.cards-white .cb-act-row.is-main, body.page-light .cb-act-row.is-main {
  background: rgba(13,148,136,0.08); border-color: rgba(13,148,136,0.35);
  box-shadow: inset 3px 0 0 0 #0d9488, 0 0 18px -12px rgba(13,148,136,0.5);
}
body.cards-white .cb-act-name, body.page-light .cb-act-name { color: #101828; }
body.cards-white .cb-act-type, body.page-light .cb-act-type { color: #475467; }
body.cards-white .cb-act-meta, body.page-light .cb-act-meta { color: #667085; }
body.cards-white .cb-act-mainflag, body.page-light .cb-act-mainflag { color: #0d9488; }
body.cards-white .cb-act-grab, body.page-light .cb-act-grab { color: #b6bfce; }
body.cards-white .cb-act-iconbtn, body.page-light .cb-act-iconbtn { color: #667085; }

/* Outline add-hour panel */
body.cards-white .cb-add-hour, body.page-light .cb-add-hour {
  background: radial-gradient(120% 140% at 50% -40%, rgba(13,148,136,0.06), transparent 60%), #f3f6fa;
  border-color: rgba(13,148,136,0.25);
}
body.cards-white .cb-add-hour-label, body.page-light .cb-add-hour-label { color: #475467; }
body.cards-white .cb-add-hour .cb-btn-ghost, body.page-light .cb-add-hour .cb-btn-ghost { background: #fff; border-color: #e0e4ec; color: #344054; }

/* ---------- page-light only: lighten page + hero + controls ---------- */
body.page-light, body.page-light .cb-main { background: #eef1f6; }
body.page-light .cb-catalog-hero {
  background: linear-gradient(180deg, #fff, #f7f9fc); border-color: #e6e9f0;
  box-shadow: 0 1px 2px rgba(16,24,40,0.05), 0 12px 30px -22px rgba(16,24,40,0.4);
}
body.page-light .cb-hero-glow { display: none; }
body.page-light .cb-hero-eyebrow { color: #0d9488; }
body.page-light .cb-hero-title { background: none; -webkit-text-fill-color: initial; color: #101828; }
body.page-light .cb-hero-sub { color: #667085; }
body.page-light .cb-hero-sub code { background: #eef1f6; border-color: #dfe4ec; color: #0d9488; }
body.page-light .cb-hero-toolbar .cb-pill { background: #fff; border-color: #e0e4ec; color: #344054; }
body.page-light .cb-hero-toolbar .cb-pill.is-primary { color: #04201d; }
body.page-light .cb-stat-chip { background: #fff; border-color: #e6e9f0; }
body.page-light .cb-stat-chip-val { color: #101828; }
body.page-light .cb-stat-chip-lbl { color: #667085; }
body.page-light .cb-outline-stats span { background: #fff; border-color: #e6e9f0; color: #667085; }
body.page-light .cb-outline-stats span strong { color: #0d9488; }
body.page-light .cb-search input, body.page-light .cb-select, body.page-light .cb-view-toggle { background: #fff; border-color: #e0e4ec; color: #344054; }
body.page-light .cb-search svg { color: #98a2b3; }
body.page-light .cb-result-count { color: #667085; }
body.page-light .cb-view-btn { color: #98a2b3; }
body.page-light .cb-view-btn.is-active { color: #0d9488; background: rgba(13,148,136,0.1); }

/* light-mode switcher chrome */
body.page-light .cb-theme-switch { background: rgba(255,255,255,0.92); border-color: #e0e4ec; box-shadow: 0 8px 22px -10px rgba(16,24,40,0.25); }
body.page-light .cb-theme-switch button { color: #667085; }
body.page-light .cb-theme-switch button:hover { color: #101828; }
body.page-light .cb-theme-switch button.on { background: rgba(13,148,136,0.12); color: #0d9488; border-color: rgba(13,148,136,0.4); }
