:root {
  --cds-blue: #0056D2;
  --cds-blue-hover: #00419E;
  --cds-blue-light: #E8F0FE;
  --cds-blue-highlight: #D2E3FC;
  --cds-blue-tint: #F2F7FF;

  --cds-green: #1D7C50;
  --cds-green-bg: #E6F4EA;

  --cds-text-primary: #1F1F1F;
  --cds-text-secondary: #5B6780;
  --cds-text-muted: #636363;

  --cds-bg-page: #F5F7F8;
  --cds-bg-white: #FFFFFF;
  --cds-bg-hover: #F2F5FA;

  --cds-border: #D9DDE8;
  --cds-border-light: #E5E7EB;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Source Sans 3', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--cds-bg-white);
  color: var(--cds-text-primary);
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cds-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

.cds-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

/* ══════════════════════════════════════════════════════════════
   1. COURSERA GLOBAL HEADER (56px, Clean & Non-overlapping)
   ══════════════════════════════════════════════════════════════ */
.cds-header {
  height: 56px;
  background: var(--cds-bg-white);
  border-bottom: 1px solid var(--cds-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
  flex-shrink: 0;
  z-index: 40;
}

.cds-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 1;
}

.cds-app-grid-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--cds-text-secondary);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.cds-app-grid-btn:hover {
  background: var(--cds-bg-hover);
  color: var(--cds-blue);
}

.cds-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.9px;
  color: var(--cds-blue) !important;
  text-decoration: none !important;
  flex-shrink: 0;
}

.cds-header-sep {
  width: 1px;
  height: 22px;
  background: var(--cds-border);
  flex-shrink: 0;
}

.cds-course-switcher-wrap {
  min-width: 0;
}

.cds-header-course-select {
  appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B6780' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 5px 26px 5px 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--cds-text-primary);
  cursor: pointer;
  max-width: 320px;
  text-overflow: ellipsis;
}
.cds-header-course-select:hover {
  background-color: var(--cds-bg-hover);
  border-color: var(--cds-border);
}
.cds-header-course-select:focus {
  outline: none;
  border-color: var(--cds-blue);
}

.cds-header-center {
  flex: 1;
  max-width: 380px;
  min-width: 180px;
}

.cds-search-bar {
  display: flex;
  align-items: center;
  height: 36px;
  border: 1px solid #8C95A6;
  border-radius: 999px;
  padding: 0 3px 0 14px;
  background: var(--cds-bg-white);
  cursor: pointer;
  transition: border-color 0.15s;
}
.cds-search-bar:hover {
  border-color: var(--cds-blue);
}
.cds-search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--cds-text-secondary);
  cursor: pointer;
}
.cds-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--cds-text-muted);
  background: var(--cds-bg-page);
  border: 1px solid var(--cds-border);
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 6px;
  flex-shrink: 0;
}
.cds-search-circle-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cds-blue);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

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

.cds-top-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--cds-text-secondary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}
.cds-top-link-btn:hover {
  background: var(--cds-bg-hover);
  color: var(--cds-blue);
}

.cds-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #00255D;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   2. MAIN BODY & VIEW 1: COURSERA COURSE HOME
   ══════════════════════════════════════════════════════════════ */
.cds-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.cds-course-home {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: var(--cds-bg-page);
}

/* Left Navigation Sidebar in Course Home */
.cds-home-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--cds-bg-white);
  border-right: 1px solid var(--cds-border-light);
  overflow-y: auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
}

.cds-home-brand-block {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--cds-border-light);
  margin-bottom: 12px;
}
.cds-home-partner-logo {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #00255D;
  background: #E8F0FE;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.cds-home-course-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--cds-text-primary);
  line-height: 1.35;
}
.cds-home-partner-sub {
  font-size: 12.5px;
  color: var(--cds-text-muted);
  margin-top: 4px;
}

.cds-home-nav-list {
  display: flex;
  flex-direction: column;
}

.cds-home-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 20px;
  border: none;
  border-left: 4px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cds-text-primary);
  cursor: pointer;
  text-align: left;
}
.cds-home-nav-btn:hover {
  background: var(--cds-bg-hover);
}
.cds-home-nav-btn.active {
  border-left-color: var(--cds-blue);
  background: var(--cds-blue-tint);
  color: var(--cds-blue);
}

.cds-home-module-links {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.cds-home-mod-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px 9px 32px;
  border: none;
  border-left: 4px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--cds-text-secondary);
  cursor: pointer;
  text-align: left;
}
.cds-home-mod-link:hover {
  background: var(--cds-bg-hover);
  color: var(--cds-text-primary);
}
.cds-home-mod-link.active {
  border-left-color: var(--cds-blue);
  background: var(--cds-blue-tint);
  color: var(--cds-blue);
  font-weight: 700;
}

.cds-mod-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #8C95A6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cds-mod-dot.done {
  background: var(--cds-green);
  border-color: var(--cds-green);
  color: #fff;
}
.cds-mod-dot.in-progress {
  border-color: var(--cds-blue);
}

/* Main Content Column in Course Home */
.cds-home-stage {
  flex: 1;
  overflow-y: auto;
  padding: 28px 36px 64px;
}

.cds-home-container {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* White Card in Course Home */
.cds-card {
  background: var(--cds-bg-white);
  border: 1px solid var(--cds-border-light);
  border-radius: 8px;
  padding: 24px 28px;
}

.cds-module-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--cds-text-primary);
  margin-bottom: 12px;
}

.cds-module-stats-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: var(--cds-text-muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cds-border-light);
}
.cds-stat-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cds-section-accordion {
  border-bottom: 1px solid var(--cds-border-light);
  padding: 16px 0;
}
.cds-section-accordion:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cds-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 6px 0;
  user-select: none;
}
.cds-section-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cds-section-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--cds-text-primary);
}

.cds-section-items {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

.cds-syllabus-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 28px;
  border-radius: 6px;
  cursor: pointer;
  gap: 16px;
  transition: background 0.12s;
}
.cds-syllabus-item:hover {
  background: var(--cds-bg-hover);
}

.cds-syllabus-item-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.cds-check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #8C95A6;
  background: var(--cds-bg-white);
  color: var(--cds-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.15s;
}
.cds-check-circle:hover {
  border-color: var(--cds-blue);
  color: var(--cds-blue);
}
.cds-check-circle.completed {
  background: var(--cds-green);
  border-color: var(--cds-green);
  color: #fff;
}

.cds-syllabus-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--cds-text-primary);
  line-height: 1.35;
}
.cds-syllabus-item:hover .cds-syllabus-item-title {
  color: var(--cds-blue);
}
.cds-syllabus-item-meta {
  font-size: 13px;
  color: var(--cds-text-muted);
  margin-top: 2px;
}

/* Coursera Buttons */
.cds-btn-primary {
  background: var(--cds-blue);
  color: #fff !important;
  border: 1px solid var(--cds-blue);
  padding: 8px 18px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s;
}
.cds-btn-primary:hover {
  background: var(--cds-blue-hover);
}

.cds-btn-outline {
  background: var(--cds-bg-white);
  color: var(--cds-blue) !important;
  border: 1px solid var(--cds-blue);
  padding: 7px 15px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s;
}
.cds-btn-outline:hover:not(:disabled) {
  background: var(--cds-blue-tint);
}
.cds-btn-outline:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cds-btn-completed {
  background: var(--cds-green-bg);
  color: var(--cds-green) !important;
  border: 1px solid var(--cds-green);
  padding: 8px 18px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ══════════════════════════════════════════════════════════════
   3. VIEW 2: COURSERA LECTURE / ITEM VIEW
   ══════════════════════════════════════════════════════════════ */
.cds-lecture-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: var(--cds-bg-white);
}

/* Left Curriculum Sidebar in Lecture View */
.cds-lecture-sidebar {
  width: 310px;
  flex-shrink: 0;
  background: var(--cds-bg-white);
  border-right: 1px solid var(--cds-border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: margin-left 0.2s ease;
}
.cds-lecture-sidebar.collapsed {
  margin-left: -310px;
}

.cds-lecture-sidebar-top {
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--cds-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cds-hide-menu-btn,
.cds-show-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--cds-blue);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.cds-hide-menu-btn:hover,
.cds-show-menu-btn:hover {
  background: var(--cds-blue-tint);
}

.cds-back-home-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--cds-text-secondary);
}

.cds-lecture-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 32px;
}

.cds-drawer-section-header {
  padding: 14px 18px 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cds-text-primary);
}

.cds-drawer-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 18px;
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: background 0.12s;
}
.cds-drawer-item:hover {
  background: var(--cds-bg-hover);
}
.cds-drawer-item.active {
  border-left-color: var(--cds-blue);
  background: var(--cds-blue-tint);
}

.cds-drawer-item-text {
  flex: 1;
  min-width: 0;
}
.cds-drawer-item-line1 {
  font-size: 13.5px;
  color: var(--cds-text-primary);
  line-height: 1.35;
}
.cds-drawer-item.active .cds-drawer-item-line1 {
  color: var(--cds-blue);
  font-weight: 600;
}
.cds-drawer-item-line2 {
  font-size: 12px;
  color: var(--cds-text-muted);
  margin-top: 2px;
}

/* Right Main Lecture Stage */
.cds-lecture-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--cds-bg-white);
}

.cds-lecture-breadcrumb-bar,
.cds-lecture-\ breadcrumb-bar {
  height: 48px;
  padding: 0 28px;
  border-bottom: 1px solid var(--cds-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  background: var(--cds-bg-white);
  position: sticky;
  top: 0;
  z-index: 20;
}

.cds-lecture-bc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cds-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--cds-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cds-bc-link {
  color: var(--cds-blue);
  cursor: pointer;
  font-weight: 500;
}
.cds-bc-link:hover {
  text-decoration: underline;
}

.cds-lecture-bc-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.cds-prev-next-link {
  background: transparent;
  border: none;
  color: var(--cds-blue);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
}
.cds-prev-next-link:hover:not(:disabled) {
  background: var(--cds-blue-tint);
}
.cds-prev-next-link:disabled {
  color: #CBD5E1;
  cursor: not-allowed;
}

/* Lecture Content Inner Column */
.cds-lecture-content {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 28px 80px;
}

/* Video Player Container (Top of Lecture) */
.cds-player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 18px;
}
.cds-player-box video,
.cds-player-box iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.cds-video-loading {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}
.cds-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cds-spin 0.8s linear infinite;
}
@keyframes cds-spin {
  to { transform: rotate(360deg); }
}

.cds-subtitle-overlay {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 85%;
  text-align: center;
  pointer-events: none;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cds-sub-en,
.cds-sub-vi {
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 15.5px;
}
.cds-sub-vi {
  color: #FDE047;
  font-size: 14.5px;
}

/* Video Title & Action Row Below Player (Authentic Coursera Position!) */
.cds-video-below-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.cds-lecture-h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--cds-text-primary);
  line-height: 1.3;
}
.cds-lecture-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Underline Tabs Row */
.cds-underline-tabs-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--cds-border);
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.cds-tabs-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cds-u-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 2px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--cds-text-secondary);
  cursor: pointer;
}
.cds-u-tab:hover {
  color: var(--cds-blue);
}
.cds-u-tab.active {
  color: var(--cds-blue);
  border-bottom-color: var(--cds-blue);
}

.cds-tabs-right-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
}

.cds-select-sm {
  border: 1px solid var(--cds-border);
  border-radius: 4px;
  background: var(--cds-bg-white);
  color: var(--cds-text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 8px;
  cursor: pointer;
}

/* Coursera Paragraph-Style Interactive Transcript (No Nested Scrollbar!) */
.cds-transcript-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.cds-transcript-search-input {
  width: 280px;
  border: 1px solid var(--cds-border);
  border-radius: 4px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 14px;
}
.cds-transcript-search-input:focus {
  outline: none;
  border-color: var(--cds-blue);
}

.cds-transcript-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cds-para-block {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.cds-para-time {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cds-blue);
  width: 48px;
  flex-shrink: 0;
  padding-top: 3px;
  cursor: pointer;
}
.cds-para-time:hover {
  text-decoration: underline;
}

.cds-para-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.75;
  color: var(--cds-text-primary);
}

.cds-phrase {
  cursor: pointer;
  padding: 2px 3px;
  border-radius: 3px;
  transition: background 0.1s;
}
.cds-phrase:hover {
  background: var(--cds-bg-hover);
  text-decoration: underline;
}
.cds-phrase.active {
  background: var(--cds-blue-highlight);
  color: #00255D;
  font-weight: 600;
}
.cds-phrase-vi {
  display: block;
  font-size: 14px;
  color: var(--cds-text-secondary);
  margin-top: 2px;
}

/* Reading Page Styling */
.cds-reading-container {
  max-width: 780px;
}
.cds-reading-body {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--cds-text-primary);
  margin: 20px 0 28px;
}
.cds-reading-body p {
  margin-bottom: 18px;
}
.cds-reading-body h1,
.cds-reading-body h2,
.cds-reading-body h3 {
  margin: 24px 0 12px;
  font-weight: 700;
}
.cds-reading-body ul,
.cds-reading-body ol {
  margin: 0 0 18px 24px;
}
.cds-reading-body li {
  margin-bottom: 8px;
}

.cds-pdf-embed-card {
  border: 1px solid var(--cds-border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 28px;
}
.cds-pdf-embed-bar {
  padding: 12px 16px;
  background: var(--cds-bg-page);
  border-bottom: 1px solid var(--cds-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.cds-pdf-iframe {
  width: 100%;
  height: 740px;
  border: none;
  display: block;
}

.cds-reading-bottom-bar {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--cds-border-light);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Downloads & Drive Links Table */
.cds-downloads-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cds-border-light);
  border-radius: 6px;
  overflow: hidden;
}
.cds-download-row {
  padding: 14px 18px;
  border-bottom: 1px solid var(--cds-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cds-download-row:last-child {
  border-bottom: none;
}

/* Modals */
.cds-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
}
.cds-modal-dialog {
  background: var(--cds-bg-white);
  border: 1px solid var(--cds-border);
  border-radius: 8px;
  width: 100%;
  max-width: 760px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.cds-modal-search-bar,
.cds-modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--cds-border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cds-modal-header {
  justify-content: space-between;
}
.cds-modal-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15.5px;
}
.cds-icon-close {
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--cds-text-secondary);
  cursor: pointer;
  padding: 4px 8px;
}
.cds-modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cds-search-result-item {
  border: 1px solid var(--cds-border-light);
  border-radius: 6px;
  padding: 12px 16px;
  cursor: pointer;
}
.cds-search-result-item:hover {
  border-color: var(--cds-blue);
  background: var(--cds-bg-hover);
}
.cds-search-snippet {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--cds-text-secondary);
}
.cds-search-snippet mark {
  background: #FEF08A;
  color: #1F1F1F;
  padding: 0 2px;
}
.cds-empty-state {
  text-align: center;
  color: var(--cds-text-muted);
  padding: 28px 16px;
}
