:root {
  --dir: 1;
}

[dir="rtl"] {
  --dir: -1;
}

.search-dialog {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-dialog.open {
  opacity: 1;
  pointer-events: auto;
}

.search-dialog-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
  transition: background-color 0.3s ease;
}

.search-dialog.open .search-dialog-overlay {
  background-color: rgba(0, 0, 0, 0.85);
}

.search-dialog-box {
  position: absolute;
  top: 15vh;
  inset-inline-start: 50%;
  transform: translateX(calc(var(--dir, 1) * -50%)) translateY(-20px);
  width: 75%;
  max-height: 70vh;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.search-dialog.open .search-dialog-box {
  transform: translateX(calc(var(--dir, 1) * -50%)) translateY(0);
  opacity: 1;
}

.search-dialog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.search-dialog-header svg {
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #333;
  background: transparent;
}

.search-input::placeholder {
  color: #999;
}

.search-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  border-radius: 4px;
  transition: background 0.2s;
}

.search-close:hover {
  background: #f5f5f5;
}

.search-loading {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.search-results ul {
  list-style: none;
  margin: 0;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.search-results li {
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 5px;
}

.search-results li:hover,
.search-results li.search-result-selected {
  background: #f0efef;
}

.search-result-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.search-result-title mark {
  background: #ffd54f;
}

.search-result-content {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.4;
}

.search-no-results {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

.search-help {
  padding: 20px;
  text-align: center;
  color: #666;
}

.search-help p {
  margin-bottom: 16px;
}

.search-shortcuts {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.8125rem;
}

.search-shortcuts span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-shortcuts kbd {
  padding: 4px 8px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-family: monospace;
  min-width: 24px;
  text-align: center;
  color: #000;
}

/* ----- My Report Panel ----- */
.my-report-container {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  z-index: 997;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

.my-report-container.open {
  pointer-events: auto;
}

.my-report-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
  transition: background-color 0.3s ease;
}

.my-report-container.open .my-report-overlay {
  background-color: rgba(0, 0, 0, 0.85);
}

.my-report-box {
  position: absolute;
  inset-inline-end: 0;
  width: 35vw;
  min-width: 400px;
  max-width: 500px;
  height: 100%;
  z-index: 2;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  transform: translateX(calc(var(--dir, 1) * 100%));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.my-report-container.open .my-report-box {
  transform: translateX(0);
}

.my-report-header {
  width: 100%;
  padding: 24px 28px;
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.my-report-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.my-report-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.my-report-content::-webkit-scrollbar {
  width: 6px;
}
.my-report-content::-webkit-scrollbar-track {
  background: transparent;
}
.my-report-content::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 3px;
}
.my-report-content::-webkit-scrollbar-thumb:hover {
  background: #d0d0d0;
}

.my-report-content .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.my-report-content .empty-state svg {
  margin-bottom: 20px;
  color: #ccc;
}

.my-report-content .empty-state p {
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  margin: 0 0 8px 0;
}

.my-report-content .empty-state span {
  font-size: 0.875rem;
  color: #999;
}

.my-report-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.my-report-content li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid #e8e8e8;
  padding: 16px;
  border-radius: 12px;
  background-color: #ffffff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.my-report-content li:hover {
  border-color: #d0d0d0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.item-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.item-pdf-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-color: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-pdf-icon svg {
  width: 18px;
  height: 18px;
  fill: #666;
}

.item-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
  font-size: 0.875rem;
  line-height: 1.5;
}

.my-report-content .actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.action-btn {
  width: 36px;
  height: 36px;
  border: none;
  background-color: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
  padding: 0;
  line-height: 1;
  transition:
    background 0.2s,
    transform 0.15s;
}

.action-btn svg {
  display: block;
}

.action-btn:hover {
  background-color: #e2e2e2;
}
.action-btn:active {
  transform: scale(0.95);
}

.my-report-footer {
  padding: 20px 24px;
  border-top: 1px solid #f0f0f0;
  background-color: #fafafa;
}

.download-pdf-btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}

.download-pdf-btn:hover:not(:disabled) {
  background-color: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-pdf-btn:active:not(:disabled) {
  transform: translateY(0);
}

.download-pdf-btn:disabled {
  background-color: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

/* Close buttons (shared between panels) */
.close-btn {
  width: 36px;
  height: 36px;
  border: none;
  background-color: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
}

.close-btn:hover {
  background-color: #f0f0f0;
  color: #1a1a1a;
}
.close-btn:active {
  transform: scale(0.95);
}

/* ----- Accessibility Panel ----- */
.accessibility-container {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  z-index: 998;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

.accessibility-container.open {
  pointer-events: auto;
}

.accessibility-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
  transition: background-color 0.3s ease;
  pointer-events: none;
}

.accessibility-container.open .accessibility-overlay {
  background-color: rgba(0, 0, 0, 0.85);
  pointer-events: auto;
}

.accessibility-box {
  position: absolute;
  inset-inline-end: 0;
  width: 35vw;
  min-width: 400px;
  max-width: 500px;
  height: 100%;
  z-index: 2;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  transform: translateX(calc(var(--dir, 1) * 100%));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.accessibility-container.open .accessibility-box {
  transform: translateX(0);
}

.accessibility-header {
  width: 100%;
  padding: 24px 28px;
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accessibility-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.accessibility-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.accessibility-content::-webkit-scrollbar {
  width: 6px;
}
.accessibility-content::-webkit-scrollbar-track {
  background: transparent;
}
.accessibility-content::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 3px;
}
.accessibility-content::-webkit-scrollbar-thumb:hover {
  background: #d0d0d0;
}

.accessibility-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accessibility-content li {
  width: 100%;
}

.accessibility-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  cursor: pointer;
  transition:all 0.2s ease;
  text-align: start;
  outline: none;
}

.accessibility-option:hover {
  border-color: var(--hot-red);
  box-shadow: 0 2px 8px rgba(79, 155, 143, 0.1);
}

.accessibility-option.active {
  background: hsl(349, 100%, 97%);
  border-color: var(--hot-red);
}

.accessibility-option.active .option-icon {
  background: var(--hot-red);
  color: #ffffff;
}

.accessibility-option.active .option-icon svg {
  color: #ffffff;
}

.accessibility-option.active h3 {
  color: var(--hot-red);
}

.option-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border-radius: 10px;
  flex-shrink: 0;
  transition:
    background 0.2s,
    color 0.2s;
}

.option-icon svg {
  color: #666;
}

.option-content {
  flex: 1;
  min-width: 0;
}

.option-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px 0;
  transition: color 0.2s;
}

.option-content span {
  font-size: 0.875rem;
  color: #666;
  display: block;
}

.accessibility-footer {
  padding: 20px 24px;
  border-top: 1px solid #f0f0f0;
  background-color: #fafafa;
}

.reset-btn {
  width: 100%;
  padding: 14px 20px;
  background: #ffffff;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  color: #666;
}

.reset-btn:hover {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reset-btn:active {
  transform: translateY(0);
}

/* ----- Reading Mask Overlay ----- */
.reading-mask-overlay {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

.mask-top,
.mask-bottom {
  position: absolute;
  inset-inline-start: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.mask-top {
  top: 0;
}

.mask-bottom {
  bottom: 0;
}

.reading-line {
  position: absolute;
  inset-inline-start: 0;
  width: 100%;
  height: 80px;
  background: transparent;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  pointer-events: none;
}

/* ----- Accessibility Effect Classes (applied to <html>) ----- */
html.bigger-text {
  font-size: 1.125rem;
}

html.highlight-links a {
  background: yellow !important;
  color: #000 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
  padding: 2px 4px !important;
}

html.invert-colors {
  filter: invert(1);
  -webkit-filter: invert(1);
}

html.invert-colors img,
html.invert-colors video,
html.invert-colors picture,
html.invert-colors figure,
html.invert-colors canvas {
  filter: invert(1);
  -webkit-filter: invert(1);
}

html.big-cursor,
html.big-cursor * {
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 48 48'%3E%3Cpath fill='%23E0E0E0' d='M27.8 39.7c-.1 0-.2 0-.4-.1s-.4-.3-.6-.5l-3.7-8.6-4.5 4.2c-.1.2-.3.3-.6.3-.1 0-.3 0-.4-.1-.3-.1-.6-.5-.6-.9V12c0-.4.2-.8.6-.9.1-.1.3-.1.4-.1.2 0 .5.1.7.3l16 15c.3.3.4.7.3 1.1-.1.4-.5.6-.9.7l-6.3.6 3.9 8.5c.1.2.1.5 0 .8-.1.2-.3.5-.5.6l-2.9 1.3c-.2-.2-.4-.2-.5-.2z'/%3E%3Cpath fill='%23212121' d='m18 12 16 15-7.7.7 4.5 9.8-2.9 1.3-4.3-9.9L18 34V12m0-2c-.3 0-.5.1-.8.2-.7.3-1.2 1-1.2 1.8v22c0 .8.5 1.5 1.2 1.8.3.2.6.2.8.2.5 0 1-.2 1.4-.5l3.4-3.2 3.1 7.3c.2.5.6.9 1.1 1.1.2.1.5.1.7.1.3 0 .5-.1.8-.2l2.9-1.3c.5-.2.9-.6 1.1-1.1.2-.5.2-1.1 0-1.5l-3.3-7.2 4.9-.4c.8-.1 1.5-.6 1.7-1.3.3-.7.1-1.6-.5-2.1l-16-15c-.3-.5-.8-.7-1.3-.7z'/%3E%3C/svg%3E")
      24 16,
    auto !important;
}

/* Note Slider */
.note-slider-container {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  z-index: 1000;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

.note-slider-container.open {
  pointer-events: auto;
}

.note-slider-container .note-slider-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
  transition: background-color 0.3s ease;
}

.note-slider-container.open .note-slider-overlay {
  background-color: rgba(0, 0, 0, 0.85);
}

.note-slider-container .note-slider-box {
  position: absolute;
  inset-inline-end: 0;
  width: 50vw;
  height: 100%;
  z-index: 2;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  transform: translateX(calc(var(--dir, 1) * 100%));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.note-slider-container .note-slider-box .note-slider-header {
  position: relative;
  width: 100%;
  padding: 24px 28px;
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.note-slider-container .note-slider-box .note-slider-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.note-slider-container .note-slider-box .note-slider-header .close-btn {
  width: 36px;
  height: 36px;
  border: none;
  background-color: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
}

.note-slider-container .note-slider-box .note-slider-header .close-btn:hover {
  background-color: #f0f0f0;
  color: #1a1a1a;
}

.note-slider-container .note-slider-box .note-slider-header .close-btn:active {
  transform: scale(0.95);
}

.note-slider-container .note-slider-box .note-slider-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}

.note-slider-container .note-slider-box .note-slider-content::-webkit-scrollbar {
  width: 6px;
}

.note-slider-container .note-slider-box .note-slider-content::-webkit-scrollbar-track {
  background: transparent;
}

.note-slider-container .note-slider-box .note-slider-content::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 3px;
}

.note-slider-container .note-slider-box .note-slider-content::-webkit-scrollbar-thumb:hover {
  background: #d0d0d0;
}

.note-slider-container.open .note-slider-box {
  transform: translateX(0) !important;
}

/* ----- Toast Notifications ----- */
.if-toast-container {
  position: fixed;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

/* Position variants */
.if-toast-container--bottom-right {
  bottom: 24px;
  inset-inline-end: 24px;
  align-items: flex-end;
}
.if-toast-container--bottom-left {
  bottom: 24px;
  inset-inline-start: 24px;
  align-items: flex-start;
}
.if-toast-container--bottom-center {
  bottom: 24px;
  inset-inline-start: 50%;
  transform: translateX(calc(var(--dir, 1) * -50%));
  align-items: center;
}
.if-toast-container--top-right {
  top: 24px;
  inset-inline-end: 24px;
  align-items: flex-end;
}
.if-toast-container--top-left {
  top: 24px;
  inset-inline-start: 24px;
  align-items: flex-start;
}
.if-toast-container--top-center {
  top: 24px;
  inset-inline-start: 50%;
  transform: translateX(calc(var(--dir, 1) * -50%));
  align-items: center;
}

.if-toast {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
  max-width: 400px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #ffffff;
  color: #111111;
  font-size: 0.8rem;
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: -0.01em;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* Top-positioned toasts slide down instead of up */
.if-toast-container--top-right .if-toast,
.if-toast-container--top-left .if-toast,
.if-toast-container--top-center .if-toast {
  transform: translateY(-10px);
}

.if-toast.if-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.if-toast.if-toast--hiding {
  opacity: 0;
  transform: translateY(10px);
}

.if-toast-container--top-right .if-toast.if-toast--hiding,
.if-toast-container--top-left .if-toast.if-toast--hiding,
.if-toast-container--top-center .if-toast.if-toast--hiding {
  transform: translateY(-10px);
}

.if-toast span {
  flex: 1;
}

.if-toast svg {
  flex-shrink: 0;
}

@media(max-width: 768px){
  .search-shortcuts {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   DOWNLOAD CENTER  —  all selectors prefixed with "dc-" to avoid
   conflicts with the rest of the page styles.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Full Report download card ────────────────────────────────── */
.dc-full-report-card {
  display: inline-flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 32px;
  width: 280px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.dc-full-report-cover {
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.dc-full-report-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.dc-full-report-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.dc-full-report-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--hot-red);
  color: #ffffff;
  border-radius: 10px;
  padding-block: 5px;
  padding-inline: 20px 5px;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dc-full-report-btn:hover {
  opacity: 0.9;
  color: #ffffff;
  text-decoration: none;
}

.dc-full-report-icon {
  width: 35px;
  height: 35px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--hot-red);
}

/* ─── Wrapper (the #dc-list element) ───────────────────────────── */
#dc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#dc-list:empty::after {
  content: "No downloads available at this time.";
  color: #999;
  font-size: 0.9375rem;
  padding: 40px 0;
  display: block;
}

/* ─── Section card ──────────────────────────────────────────────────── */
.dc-section {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.dc-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ─── Section header (accordion trigger) ───────────────────────────── */
.dc-header {
  width: 100%;
  padding: 20px 24px;
  background: #fafafa;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: start;
}

.dc-header:hover {
  background: #f5f5f5;
}

.dc-header.open {
  background: #f0f0f0;
}

.dc-header.open .dc-chevron {
  transform: rotate(180deg);
}

.dc-header h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  text-align: start;
}

.dc-chevron {
  color: #888;
  transition: transform 0.35s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* ─── Section body (accordion panel) ───────────────────────────────── */
.dc-body {
  height: 0;
  overflow: hidden;
  /* JS handles transitions inline */
}

/* ─── Items list inside a section ───────────────────────────────────── */
.dc-items {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ─── Individual download item ──────────────────────────────────────── */
.dc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: transparent;
  transition: background 0.2s ease;
  min-width: 0;
}

.dc-item:last-child {
  border-bottom: none;
}

.dc-item:hover {
  background: #fafafa;
}

/* ─── Item info ─────────────────────────────────────────────────────── */
.dc-item-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dc-file-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff5f5;
  border: 1px solid #fde0e0;
  border-radius: 8px;
  flex-shrink: 0;
}

.dc-item-details {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.dc-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* ─── Item actions ──────────────────────────────────────────────────── */
.dc-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.dc-action-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #e8e8e8;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.dc-action-btn svg {
  color: #666;
  transition: color 0.2s ease;
}

.dc-action-btn:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dc-action-btn:hover svg {
  color: #ffffff;
}

.dc-action-btn:active {
  transform: translateY(0);
}

/* ─── RTL support ───────────────────────────────────────────────────── */
[dir="rtl"] .dc-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .dc-item-info {
  flex-direction: row-reverse;
}

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .dc-header {
    padding: 16px 18px;
  }

  .dc-items {
    grid-template-columns: 1fr;
  }

  .dc-header h2 {
    font-size: 0.9375rem;
  }

  .dc-item {
    padding: 14px 18px;
    gap: 12px;
  }

  .dc-file-icon {
    display: none;
  }

  .dc-action-btn {
    width: 34px;
    height: 34px;
  }

  .note-slider-container .note-slider-box {
    width: 90%;
  }
}
