/* Repo Layout Redesign - ADA Style */

/* Override Style.css globals for full-screen application feel */
body {
  overflow: hidden;
  /* We handle scrolling in sidebar/content */
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

#appMain {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 100% !important;
  /* Override style.css limit */
  margin: 0 !important;
  padding: 0 !important;
  padding-top: var(--topbar-height) !important;
  padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom)) !important;
}

/* Encabezado: usa el mismo topbar global (style.css) */

.sidebar-toggle-lateral {
  position: fixed !important;
  left: 0;
  top: auto;
  bottom: max(24px, env(safe-area-inset-bottom)) !important;
  z-index: 60;
  width: 50px;
  height: 120px;
  border-radius: 0 14px 14px 0;
  border: 1px solid color-mix(in oklab, var(--brand-2) 30%, var(--border));
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand-3) 65%, transparent), var(--card));
  color: var(--brand-1);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0;
  padding: 0;
}

body.has-footer .sidebar-toggle-lateral {
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + var(--footer-height)) !important;
}

@media (max-width: 768px) {
  .sidebar-toggle-lateral {
    bottom: max(24px, env(safe-area-inset-bottom));
  }
}

.sidebar-toggle-lateral::before {
  content: "›";
  display: block;
  font-size: 2.6rem;
  transform: translateX(3px);
  transition: transform 0.2s ease;
}

.sidebar-toggle-lateral.is-open::before {
  content: "‹";
  transform: translateX(-1px);
}

/* New Layout Container */
.repo-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: 100%;
}

.repo-sidebar,
.repo-sidebar-scroll,
.repo-content,
.resource-doc-frame-host,
.adi-reaction-tooltip {
  scrollbar-width: thin;
  scrollbar-color:
    color-mix(in oklab, var(--brand-2) 48%, var(--border))
    color-mix(in oklab, var(--card) 82%, var(--bg));
  scrollbar-gutter: stable;
}

.repo-sidebar::-webkit-scrollbar,
.repo-sidebar-scroll::-webkit-scrollbar,
.repo-content::-webkit-scrollbar,
.resource-doc-frame-host::-webkit-scrollbar,
.adi-reaction-tooltip::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.repo-sidebar::-webkit-scrollbar-track,
.repo-sidebar-scroll::-webkit-scrollbar-track,
.repo-content::-webkit-scrollbar-track,
.resource-doc-frame-host::-webkit-scrollbar-track,
.adi-reaction-tooltip::-webkit-scrollbar-track {
  background: color-mix(in oklab, var(--card) 84%, var(--bg));
  border-radius: 999px;
}

.repo-sidebar::-webkit-scrollbar-thumb,
.repo-sidebar-scroll::-webkit-scrollbar-thumb,
.repo-content::-webkit-scrollbar-thumb,
.resource-doc-frame-host::-webkit-scrollbar-thumb,
.adi-reaction-tooltip::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--brand-3) 58%, white),
      color-mix(in oklab, var(--brand-2) 48%, var(--border)));
  border: 2px solid color-mix(in oklab, var(--card) 84%, var(--bg));
  border-radius: 999px;
  min-height: 34px;
}

.repo-sidebar::-webkit-scrollbar-thumb:hover,
.repo-sidebar-scroll::-webkit-scrollbar-thumb:hover,
.repo-content::-webkit-scrollbar-thumb:hover,
.resource-doc-frame-host::-webkit-scrollbar-thumb:hover,
.adi-reaction-tooltip::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--brand-3) 72%, white),
      color-mix(in oklab, var(--brand-2) 62%, var(--border)));
}

.repo-sidebar::-webkit-scrollbar-corner,
.repo-sidebar-scroll::-webkit-scrollbar-corner,
.repo-content::-webkit-scrollbar-corner,
.resource-doc-frame-host::-webkit-scrollbar-corner,
.adi-reaction-tooltip::-webkit-scrollbar-corner {
  background: transparent;
}

/* Sidebar */
.repo-sidebar {
  width: 340px;
  background: var(--card);
  border-right: 1px solid var(--border);
  overflow: hidden;
  padding: 20px 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.repo-sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.repo-progress-card {
  position: relative;
  top: 0;
  z-index: 2;
  margin-bottom: 8px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--brand-2) 22%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--brand-3) 42%, transparent), color-mix(in oklab, var(--card) 98%, white)),
    var(--card);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.repo-progress-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.repo-progress-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.repo-progress-percent {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 800;
  color: #c99718;
  flex-shrink: 0;
}

.repo-progress-meta {
  margin: 4px 0 0;
  font-size: 0.83rem;
  color: var(--text);
}

.repo-progress-track {
  width: 100%;
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in oklab, var(--brand-3) 30%, var(--bg));
}

.repo-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c99718, #f2d072);
  transition: width 0.22s ease;
}

.repo-progress-card[data-progress-tone="green"] .repo-progress-percent {
  color: var(--brand-1);
}

.repo-progress-card[data-progress-tone="green"] .repo-progress-fill {
  background: linear-gradient(90deg, var(--brand-2), color-mix(in oklab, var(--brand-1) 74%, #163a24));
}

body.has-footer .repo-content {
  padding-bottom: calc(20px + var(--footer-height) + env(safe-area-inset-bottom));
}

body.has-footer .repo-sidebar-scroll {
  padding-bottom: calc(20px + var(--footer-height) + env(safe-area-inset-bottom));
}

/* Resize sidebar for mobile */
@media (max-width: 768px) {
  .repo-progress-card {
    padding: 10px 11px;
  }

  .repo-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .repo-sidebar.open {
    transform: translateX(0);
  }
}

/* Sidebar Tree Items */
.sidebar-unit {
  margin-bottom: 8px;
}

.sidebar-unit-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 8px 12px;
  background: color-mix(in oklab, var(--brand-3) 40%, transparent);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-unit-title::after {
  content: '▼';
  font-size: 0.7em;
  margin-left: auto;
  transition: transform 0.2s;
}

details[open]>.sidebar-unit-title::after {
  transform: rotate(180deg);
}

.sidebar-topic {
  margin-left: 8px;
  margin-top: 4px;
}

.sidebar-topic-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-topic-title:hover {
  background: rgba(0, 0, 0, 0.03);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 24px;
  cursor: pointer;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.2s;
  text-decoration: none;
}

.sidebar-unit-resource {
  margin-left: 8px;
  margin-top: 4px;
  padding: 6px 12px;
  border-top: none;
  color: var(--text);
  font-weight: 700;
  gap: 8px;
}

.sidebar-unit-resource .sidebar-item-label-text {
  font-weight: 700;
}

.sidebar-unit-resource svg,
.sidebar-unit-resource i {
  display: none;
}

.sidebar-unit-resource:hover {
  background: rgba(0, 0, 0, 0.03);
}

.sidebar-item:hover {
  background: var(--bg);
  color: var(--text);
}

.sidebar-item.active {
  background: var(--brand-3);
  color: var(--brand-1);
  font-weight: 600;
}

.sidebar-item i,
.sidebar-item svg {
  width: 18px;
  opacity: 0.7;
}

.sidebar-item .status-icon {
  margin-left: auto;
  font-size: 14px;
  color: var(--brand-2);
}

/* Main Content Area */
.repo-content {
  flex: 1;
  background: var(--bg);
  overflow-y: auto;
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .repo-content {
    padding: 20px;
  }

  .resource-paginator {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.empty-state-card {
  max-width: 520px;
  margin: 40px auto;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.14), rgba(46, 125, 50, 0.02));
  color: var(--brand-1);
}

.empty-state-icon svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.empty-state-card h2 {
  margin: 0 0 10px;
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--text);
}

.empty-state-card p {
  margin: 6px 0;
  color: var(--text-muted);
}

.content-header {
  margin-bottom: 24px;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.content-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.content-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 800px;
}

.content-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.resource-paginator {
  width: min(100%, 680px);
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
}

.resource-paginator.is-compact {
  width: min(100%, 420px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.resource-paginator-btn,
.resource-paginator-status {
  min-width: 0;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, var(--brand-2) 20%, var(--border));
  background: var(--card);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.045);
}

.resource-paginator-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.resource-paginator.is-compact .resource-paginator-btn {
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  text-align: center;
}

.resource-paginator-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.resource-paginator-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.resource-paginator-btn.is-primary {
  background: linear-gradient(135deg, var(--brand-2), color-mix(in oklab, var(--brand-1) 74%, #163a24));
  color: #fff;
  border-color: transparent;
}

.resource-paginator-kicker {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.resource-paginator-btn.is-primary .resource-paginator-kicker,
.resource-paginator-btn.is-primary .resource-paginator-meta {
  color: rgba(255, 255, 255, 0.82);
}

.resource-paginator-title {
  font-size: 0.81rem;
  line-height: 1.22;
}

.resource-paginator-meta {
  font-size: 0.69rem;
  line-height: 1.22;
  color: var(--text-muted);
}

.resource-paginator.is-compact .resource-paginator-title,
.resource-paginator.is-compact .resource-paginator-meta {
  display: none;
}

.resource-paginator.is-compact .resource-paginator-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: currentColor;
}

.resource-paginator-status {
  min-width: 128px;
  padding: 8px 10px;
  display: grid;
  place-items: center;
  text-align: center;
  background: color-mix(in oklab, var(--card) 92%, var(--bg));
}

.resource-paginator-status strong {
  display: block;
  font-size: 0.74rem;
  color: var(--text);
}

.resource-paginator-status span {
  display: block;
  margin-top: 2px;
  font-size: 0.66rem;
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .resource-paginator {
    grid-template-columns: 1fr;
  }

  .resource-paginator-status {
    min-width: 0;
    order: -1;
  }
}

html[data-theme="dark"] .repo-progress-card,
html[data-theme="system"][data-system="dark"] .repo-progress-card {
  border-color: color-mix(in oklab, var(--brand-2) 26%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--brand-3) 60%, transparent), color-mix(in oklab, var(--card) 96%, #08140d)),
    color-mix(in oklab, var(--card) 96%, #08140d);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .repo-progress-meta,
html[data-theme="system"][data-system="dark"] .repo-progress-meta {
  color: color-mix(in oklab, var(--text) 90%, white);
}

html[data-theme="dark"] .repo-progress-card[data-progress-tone="gold"] .repo-progress-percent,
html[data-theme="system"][data-system="dark"] .repo-progress-card[data-progress-tone="gold"] .repo-progress-percent {
  color: #f3cc5c;
}

html[data-theme="dark"] .repo-progress-card[data-progress-tone="gold"] .repo-progress-fill,
html[data-theme="system"][data-system="dark"] .repo-progress-card[data-progress-tone="gold"] .repo-progress-fill {
  background: linear-gradient(90deg, #b8860b, #f0cf63);
}

html[data-theme="dark"] .repo-progress-track,
html[data-theme="system"][data-system="dark"] .repo-progress-track {
  background: color-mix(in oklab, var(--brand-3) 65%, #0b1711);
}

html[data-theme="dark"] .resource-paginator-btn,
html[data-theme="dark"] .resource-paginator-status,
html[data-theme="system"][data-system="dark"] .resource-paginator-btn,
html[data-theme="system"][data-system="dark"] .resource-paginator-status {
  border-color: color-mix(in oklab, var(--brand-2) 24%, var(--border));
  background: color-mix(in oklab, var(--card) 96%, #08140d);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .resource-paginator-btn.is-primary,
html[data-theme="system"][data-system="dark"] .resource-paginator-btn.is-primary {
  background: linear-gradient(135deg, color-mix(in oklab, var(--brand-2) 88%, #8fda95), color-mix(in oklab, var(--brand-1) 72%, #17311c));
}

html[data-theme="dark"] .resource-paginator-kicker,
html[data-theme="dark"] .resource-paginator-meta,
html[data-theme="dark"] .resource-paginator-status span,
html[data-theme="system"][data-system="dark"] .resource-paginator-kicker,
html[data-theme="system"][data-system="dark"] .resource-paginator-meta,
html[data-theme="system"][data-system="dark"] .resource-paginator-status span {
  color: color-mix(in oklab, var(--text-muted) 88%, white);
}

.content-actions .btn-ver {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 999px;
  text-decoration: none;
}

/* Video Player Container */
.video-player-container {
  width: 100%;
  max-width: 980px;
  margin: 12px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-player-container > .resource-paginator {
  width: 100%;
  max-width: none;
  margin: 0;
}

.video-player-container > .resource-paginator.is-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.video-player-container > .resource-paginator.is-compact .resource-paginator-btn {
  width: max-content;
  max-width: 100%;
}

.video-player-container > .resource-paginator.is-compact .resource-paginator-btn:first-child {
  justify-self: start;
}

.video-player-container > .resource-paginator.is-compact .resource-paginator-btn:last-child {
  justify-self: end;
}

/* Video Wrapper */
.video-wrapper {
  position: relative;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  aspect-ratio: 16/9;
}

.video-wrapper iframe,
.video-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.resource-doc-wrapper,
.resource-link-wrapper {
  aspect-ratio: auto;
  background: #f7faf8;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.resource-canva-wrapper {
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--card) 96%, white), color-mix(in oklab, var(--brand-3) 22%, white));
  min-height: clamp(360px, 72vh, 860px);
}

.resource-doc-frame,
.resource-link-frame {
  width: 100%;
  flex: 1;
  min-height: 460px;
  border: none;
  background: #fff;
}

.resource-canva-frame {
  min-height: clamp(320px, 68vh, 810px);
  background: transparent;
}

.resource-link-message {
  flex: 1;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.resource-link-message .video-fallback {
  margin-top: 0;
  max-width: 560px;
  line-height: 1.6;
  color: var(--text-muted);
}

.resource-doc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
}

.resource-doc-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

.resource-link-footer {
  padding: 8px 12px;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--card) 98%, white), color-mix(in oklab, var(--brand-3) 24%, white));
}

.resource-link-hint {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.resource-link-hint-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: color-mix(in oklab, var(--brand-1) 76%, #8a6a10);
  background: linear-gradient(135deg, color-mix(in oklab, #f3cc5c 72%, white), color-mix(in oklab, var(--brand-3) 44%, white));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, #e2b94c 44%, transparent);
}

.resource-link-hint-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.resource-link-hint-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.resource-link-hint-title {
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--text);
}

.resource-link-hint-text {
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--text-muted);
}

.resource-link-hint-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--brand-2) 24%, var(--border));
  background: color-mix(in oklab, var(--card) 90%, white);
  color: var(--brand-1);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, filter 0.18s ease, background 0.18s ease;
}

.resource-link-hint-action:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
  background: color-mix(in oklab, var(--brand-3) 34%, white);
}

.resource-pdf-nav {
  justify-content: center;
  gap: 10px;
}

.resource-doc-frame-host {
  width: 100%;
  flex: 1;
  min-height: 460px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}

.resource-pdf-stage {
  position: relative;
  width: 100%;
  min-height: 460px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
}

.resource-pdf-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.resource-pdf-annotation-layer {
  position: absolute;
  pointer-events: auto;
}

.resource-pdf-annotation-link {
  position: absolute;
  display: block;
  cursor: pointer;
}

.resource-pdf-page-info {
  min-width: 96px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.resource-pdf-nav-btn {
  border: 1px solid color-mix(in oklab, var(--brand-2) 28%, var(--border));
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.18s ease, opacity 0.18s ease;
}

.resource-pdf-nav-btn svg {
  width: 16px;
  height: 16px;
}

.resource-pdf-nav-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.resource-pdf-nav-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.resource-pdf-nav-btn.is-primary {
  background: var(--brand-2);
  color: #fff;
  border-color: transparent;
}

.resource-doc-open {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 0.88rem;
  text-decoration: none;
}

html[data-theme="dark"] .resource-doc-wrapper,
html[data-theme="system"][data-system="dark"] .resource-doc-wrapper,
html[data-theme="dark"] .resource-link-wrapper,
html[data-theme="system"][data-system="dark"] .resource-link-wrapper {
  background: color-mix(in oklab, var(--card) 92%, #08140d);
}

html[data-theme="dark"] .resource-canva-wrapper,
html[data-theme="system"][data-system="dark"] .resource-canva-wrapper {
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--card) 94%, #08140d), color-mix(in oklab, var(--brand-3) 34%, #08140d));
}

html[data-theme="dark"] .resource-doc-footer,
html[data-theme="system"][data-system="dark"] .resource-doc-footer {
  background: color-mix(in oklab, var(--card) 94%, #0a1610);
  border-top-color: color-mix(in oklab, var(--brand-2) 22%, var(--border));
}

html[data-theme="dark"] .resource-doc-note,
html[data-theme="system"][data-system="dark"] .resource-doc-note {
  color: color-mix(in oklab, var(--text) 92%, white);
}

html[data-theme="dark"] .resource-link-footer,
html[data-theme="system"][data-system="dark"] .resource-link-footer {
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--card) 94%, #08140d), color-mix(in oklab, var(--brand-3) 40%, #08140d));
}

html[data-theme="dark"] .resource-link-hint-title,
html[data-theme="system"][data-system="dark"] .resource-link-hint-title {
  color: color-mix(in oklab, var(--text) 92%, white);
}

html[data-theme="dark"] .resource-link-hint-text,
html[data-theme="system"][data-system="dark"] .resource-link-hint-text {
  color: color-mix(in oklab, var(--text-muted) 88%, white);
}

html[data-theme="dark"] .resource-link-hint-icon,
html[data-theme="system"][data-system="dark"] .resource-link-hint-icon {
  color: #f1cf6a;
  background: linear-gradient(135deg, color-mix(in oklab, #5a4612 84%, #0d1711), color-mix(in oklab, var(--brand-3) 52%, #08140d));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, #d6b65c 22%, transparent);
}

html[data-theme="dark"] .resource-link-hint-action,
html[data-theme="system"][data-system="dark"] .resource-link-hint-action {
  border-color: color-mix(in oklab, var(--brand-2) 24%, var(--border));
  background: color-mix(in oklab, var(--card) 92%, #0f1a14);
  color: #c5f3c8;
}

html[data-theme="dark"] .resource-pdf-nav-btn,
html[data-theme="system"][data-system="dark"] .resource-pdf-nav-btn {
  background: color-mix(in oklab, var(--card) 94%, #08140d);
  border-color: color-mix(in oklab, var(--brand-2) 24%, var(--border));
}

@media (max-width: 768px) {
  .video-player-container > .resource-paginator.is-compact {
    gap: 10px;
  }

  .video-player-container > .resource-paginator.is-compact .resource-paginator-btn {
    min-height: 40px;
    padding: 9px 11px;
  }

  .resource-doc-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .resource-doc-open {
    text-align: center;
  }

  .resource-link-footer {
    gap: 8px;
  }

  .resource-link-hint-action {
    width: 100%;
  }
}

.video-overlay {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.55));
}

.btn-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}

.btn-play:hover {
  transform: translateY(-1px) scale(1.02);
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-play svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.btn-play svg circle {
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
}

.btn-play svg polygon {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0.6;
}

/* Header Adjustments */
.logo-ada-text {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--text);
  margin-left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-area {
  display: flex;
  align-items: center;
}

/* Search Bar (Mock from image) */
.search-bar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 400px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 24px;
}

@media (max-width: 900px) {
  .search-bar {
    display: none;
  }
}

.visto-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-2);
  display: inline-grid;
  place-items: center;
  color: white;
  font-size: 10px;
  margin-left: auto;
}

/* Mobile Toggle */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  margin-right: 12px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .sidebar-toggle {
    display: block;
  }
}

.sidebar-nav {
  margin-top: 16px;
  padding: 12px;
  background: color-mix(in oklab, var(--brand-3) 35%, transparent);
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--brand-2) 20%, var(--border));
}

.sidebar-nav-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sidebar-nav-btn {
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
}

.sidebar-nav-btn.primary {
  background: var(--brand-2);
  color: #fff;
  border-color: transparent;
}

.sidebar-nav-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ===== PROGRESS TRACKING CHECKBOXES ===== */
.resource-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.resource-checkbox:hover {
  border-color: var(--brand-2);
  transform: scale(1.1);
}

.resource-checkbox.checked {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  border-color: transparent;
  animation: checkPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.resource-checkbox.checked::after {
  content: '';
  color: white;
  font-size: 12px;
  font-weight: 700;
  animation: checkFade 0.2s ease-in 0.1s both;
}

@keyframes checkPop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes checkFade {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

html[data-theme="dark"] .resource-checkbox,
html[data-theme="system"][data-system="dark"] .resource-checkbox {
  border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .resource-checkbox:hover,
html[data-theme="system"][data-system="dark"] .resource-checkbox:hover {
  border-color: #9be29f;
}

#btnToggleSidebar {
  position: fixed !important;
  left: 0 !important;
  bottom: max(24px, env(safe-area-inset-bottom)) !important;
}

.adi-reactions-card {
  width: 100%;
  max-width: 500px;
  margin: 8px auto 0;
  padding: 8px 10px;
  border: 1px solid color-mix(in oklab, var(--brand-2) 18%, var(--border));
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, color-mix(in oklab, var(--brand-3) 55%, transparent), transparent 42%),
    linear-gradient(180deg, color-mix(in oklab, var(--card) 94%, #f4fbf7), var(--card));
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.video-reaction-shell {
  width: 100%;
  max-width: 980px;
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.video-reaction-shell .video-reaction-sidecar {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  order: -1;
  position: relative;
  z-index: 6;
}

.video-reaction-shell .video-player-container {
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
  z-index: 1;
}

.video-reaction-shell .adi-reactions-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.video-reaction-shell .adi-reactions-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.video-reaction-shell .adi-reaction-option {
  padding: 4px 2px;
  gap: 3px;
}

.video-reaction-shell .adi-reaction-media {
  max-width: 33px;
}

.video-reaction-shell .adi-reaction-preview {
  transform: none;
}

.video-reaction-shell .adi-reaction-label {
  font-size: 0.5rem;
  line-height: 1.05;
}

.video-reaction-shell .adi-reaction-metric {
  font-size: 0.45rem;
}

.video-reaction-shell .adi-reactions-title {
  font-size: 0.72rem;
}

.video-reaction-shell .adi-reactions-helper {
  font-size: 0.62rem;
  margin-top: 5px;
}

.video-reaction-toggle {
  align-self: flex-end;
  min-height: 32px;
  border: 1px solid color-mix(in oklab, var(--brand-2) 24%, var(--border));
  background: color-mix(in oklab, var(--card) 92%, white);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.video-reaction-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  border-color: color-mix(in oklab, var(--brand-2) 44%, var(--border));
}

.video-reaction-toggle__icon {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-2);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-2) 18%, transparent);
  flex: 0 0 auto;
}

.video-reaction-shell.is-reactions-collapsed .adi-reactions-card {
  display: none;
}

.video-reaction-shell.is-reactions-collapsed .video-reaction-sidecar {
  width: auto;
  max-width: none;
  align-self: flex-end;
}

.adi-reactions-card.is-disabled {
  opacity: 0.8;
}

.adi-reactions-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.adi-reactions-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.01em;
}

.adi-reactions-subtitle,
.adi-reactions-helper {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  text-align: center;
}

.adi-reactions-subtitle {
  display: none;
}

.adi-reactions-helper {
  margin-top: 7px;
}

.adi-reactions-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  position: relative;
  z-index: 2;
}

.adi-reaction-option {
  --adi-selected-bg: color-mix(in oklab, #e3f1ff 76%, white);
  --adi-selected-border: color-mix(in oklab, #5f9ed6 64%, var(--border));
  --adi-selected-text: color-mix(in oklab, #2f6da0 82%, var(--text));
  --adi-selected-ring: color-mix(in oklab, #8dc0eb 42%, transparent);
  position: relative;
  border: 1px solid color-mix(in oklab, #86b9e8 30%, var(--border));
  background: color-mix(in oklab, var(--card) 90%, white);
  border-radius: 9px;
  padding: 5px 4px;
  display: grid;
  gap: 5px;
  cursor: pointer;
  color: var(--text);
  text-align: center;
  transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.adi-reaction-tooltip {
  --adi-tooltip-bg: color-mix(in oklab, var(--text) 92%, #102018);
  position: fixed;
  left: 0;
  top: 0;
  max-width: min(280px, calc(100svw - 20px));
  max-height: min(180px, calc(100svh - 24px));
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--adi-tooltip-bg);
  color: white;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
  font-size: 0.64rem;
  line-height: 1.35;
  font-weight: 600;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1200;
}

.adi-reaction-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.adi-reaction-tooltip::after {
  content: "";
  position: absolute;
  left: var(--adi-tooltip-arrow-x, 24px);
  width: 12px;
  height: 12px;
  background: var(--adi-tooltip-bg);
  transform: translateX(-50%) rotate(45deg);
}

.adi-reaction-tooltip[data-side="top"]::after {
  top: calc(100% - 6px);
}

.adi-reaction-tooltip[data-side="bottom"]::after {
  bottom: calc(100% - 6px);
}

.adi-reaction-option:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.01);
  border-color: color-mix(in oklab, #5e9dd6 54%, var(--border));
  box-shadow: 0 7px 14px rgba(15, 23, 42, 0.07);
}

.adi-reaction-option:focus-visible {
  outline: 2px solid color-mix(in oklab, #5d9fd7 72%, white);
  outline-offset: 2px;
}

.adi-reaction-option:disabled {
  cursor: not-allowed;
}

.adi-reaction-option.is-selected {
  border-color: var(--adi-selected-border);
  background: var(--adi-selected-bg);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.adi-reaction-option[data-video-reaction="blushing"] {
  --adi-selected-bg: color-mix(in oklab, #cfeec9 74%, white);
  --adi-selected-border: color-mix(in oklab, #54a857 72%, var(--border));
  --adi-selected-text: color-mix(in oklab, #1e6f31 82%, var(--text));
  --adi-selected-ring: color-mix(in oklab, #7ccf80 44%, transparent);
}

.adi-reaction-option[data-video-reaction="normal"] {
  --adi-selected-bg: color-mix(in oklab, #d9ebff 74%, white);
  --adi-selected-border: color-mix(in oklab, #4f8fca 70%, var(--border));
  --adi-selected-text: color-mix(in oklab, #2f6da0 82%, var(--text));
  --adi-selected-ring: color-mix(in oklab, #7fb3e3 44%, transparent);
}

.adi-reaction-option[data-video-reaction="sad"] {
  --adi-selected-bg: color-mix(in oklab, #eceff3 78%, white);
  --adi-selected-border: color-mix(in oklab, #8a96a8 68%, var(--border));
  --adi-selected-text: color-mix(in oklab, #4f5a69 82%, var(--text));
  --adi-selected-ring: color-mix(in oklab, #b8c0cd 46%, transparent);
}

.adi-reaction-option[data-video-reaction="crying"] {
  --adi-selected-bg: color-mix(in oklab, #fff3bf 72%, white);
  --adi-selected-border: color-mix(in oklab, #d0a22c 72%, var(--border));
  --adi-selected-text: color-mix(in oklab, #8a6517 82%, var(--text));
  --adi-selected-ring: color-mix(in oklab, #e2c05d 44%, transparent);
}

.adi-reaction-option[data-video-reaction="angry"] {
  --adi-selected-bg: color-mix(in oklab, #ffd4d2 74%, white);
  --adi-selected-border: color-mix(in oklab, #ce5c59 74%, var(--border));
  --adi-selected-text: color-mix(in oklab, #9a302d 84%, var(--text));
  --adi-selected-ring: color-mix(in oklab, #e68f8c 46%, transparent);
}

.adi-reaction-media {
  position: relative;
  width: 100%;
  max-width: 54px;
  justify-self: center;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1.12 / 1.08;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.62), transparent 52%),
    linear-gradient(180deg, #eef7ff, #dcecff);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, #7ab0e3 34%, var(--border));
}

.adi-reaction-preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  object-position: center;
  transform: none;
  transform-origin: center center;
}

.adi-reaction-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.15;
}

.adi-reaction-metric {
  display: block;
  font-size: 0.58rem;
  line-height: 1;
  font-weight: 800;
  color: var(--brand-1);
  opacity: 0.88;
}

html[data-theme="dark"] .adi-reactions-card,
html[data-theme="system"][data-system="dark"] .adi-reactions-card {
  background:
    radial-gradient(circle at top right, color-mix(in oklab, var(--brand-2) 18%, transparent), transparent 44%),
    linear-gradient(180deg, color-mix(in oklab, var(--card) 96%, #09150f), color-mix(in oklab, var(--card) 94%, #07110d));
  border-color: color-mix(in oklab, var(--brand-2) 24%, var(--border));
}

html[data-theme="dark"] .adi-reaction-option,
html[data-theme="system"][data-system="dark"] .adi-reaction-option {
  background: color-mix(in oklab, var(--card) 94%, #0a1610);
}

html[data-theme="dark"] .adi-reaction-option.is-selected,
html[data-theme="system"][data-system="dark"] .adi-reaction-option.is-selected {
  background: var(--adi-selected-bg);
  border-color: var(--adi-selected-border);
}

@media (max-width: 860px) {
  .adi-reactions-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .adi-reactions-card {
    max-width: 360px;
    padding: 6px 7px;
    border-radius: 11px;
  }

  .adi-reactions-title {
    font-size: 0.7rem;
  }

  .adi-reactions-helper {
    font-size: 0.6rem;
  }

  .adi-reactions-grid {
    gap: 4px;
  }

  .adi-reaction-option {
    padding: 4px 2px;
  }

  .adi-reaction-media {
    max-width: 36px;
  }

  .adi-reaction-preview {
    object-position: center;
    transform: none;
  }

  .adi-reaction-label {
    font-size: 0.5rem;
  }

  .adi-reaction-metric {
    font-size: 0.46rem;
  }

  .video-reaction-shell {
    max-width: 360px;
    gap: 6px;
  }

  .video-reaction-shell .video-reaction-sidecar {
    max-width: 310px;
    gap: 5px;
    align-self: center;
  }

  .video-reaction-shell .adi-reactions-card {
    max-width: 310px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .video-reaction-shell .adi-reactions-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
  }

  .video-reaction-shell .adi-reaction-option {
    padding: 2px 0;
    gap: 2px;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .video-reaction-shell .adi-reaction-media {
    max-width: 28px;
  }

  .video-reaction-shell .adi-reaction-preview {
    transform: none;
  }

  .video-reaction-shell .adi-reaction-label {
    font-size: 0.44rem;
  }

  .video-reaction-shell .adi-reaction-metric,
  .video-reaction-shell .adi-reactions-header,
  .video-reaction-shell .adi-reactions-helper {
    display: none;
  }

  .video-reaction-toggle {
    display: inline-flex;
    align-self: center;
    min-height: 26px;
    padding: 4px 8px;
    font-size: 0.6rem;
    gap: 5px;
  }

  .video-reaction-shell .adi-reaction-option.is-selected {
    background: var(--adi-selected-bg);
    border: 1px solid var(--adi-selected-border);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
    border-radius: 8px;
  }

  .video-reaction-shell .adi-reaction-option.is-selected .adi-reaction-media {
    box-shadow:
      inset 0 0 0 1px color-mix(in oklab, #6aa8dc 34%, var(--border)),
      0 0 0 2px var(--adi-selected-ring);
  }

  .video-reaction-shell .adi-reaction-option.is-selected .adi-reaction-label {
    color: var(--adi-selected-text);
  }

  .video-reaction-shell.is-reactions-collapsed .adi-reactions-card {
    display: none;
  }

  .video-reaction-shell.is-reactions-collapsed .video-reaction-sidecar {
    width: 100%;
    max-width: 310px;
    align-self: center;
  }
}

@media (max-width: 460px) {
  .adi-reactions-card {
    max-width: 300px;
    padding: 6px 7px;
  }

  .adi-reactions-grid {
    gap: 4px;
  }

  .adi-reaction-media {
    max-width: 38px;
  }

  .adi-reaction-preview {
    object-position: center;
    transform: none;
  }

  .adi-reaction-label {
    font-size: 0.56rem;
  }

  .video-reaction-shell {
    max-width: 300px;
    gap: 5px;
  }

  .video-reaction-shell .video-reaction-sidecar {
    max-width: 288px;
    gap: 4px;
    align-self: center;
  }

  .video-reaction-shell .adi-reactions-card {
    max-width: 288px;
    padding: 0;
  }

  .video-reaction-shell .adi-reactions-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
  }

  .video-reaction-shell .adi-reaction-option {
    padding: 3px 1px;
  }

  .video-reaction-shell .adi-reaction-media {
    max-width: 24px;
  }

  .video-reaction-shell .adi-reaction-preview {
    transform: none;
  }

  .video-reaction-shell .adi-reaction-label {
    font-size: 0.4rem;
  }

  .video-reaction-shell.is-reactions-collapsed .video-reaction-sidecar {
    max-width: 288px;
    align-self: center;
  }

  .video-reaction-toggle {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 0.56rem;
  }
}

@media (min-width: 901px) {
  .video-reaction-shell {
    max-width: 1120px;
    margin: 12px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 980px) 118px;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .video-reaction-shell .video-reaction-sidecar {
    order: 0;
    width: 118px;
    max-width: 118px;
    gap: 0;
    align-self: stretch;
    justify-content: center;
  }

  .video-reaction-shell .video-player-container {
    max-width: 980px;
  }

  .video-reaction-shell .adi-reactions-card {
    width: 118px;
    max-width: 118px;
    margin: 0;
    padding: 8px 6px;
    border-left: 0;
    border-radius: 0 14px 14px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .video-reaction-toggle {
    align-self: stretch;
    min-height: 34px;
    padding: 7px 6px;
    border-left: 0;
    border-radius: 0 14px 14px 0;
    margin-bottom: 6px;
  }

  .video-reaction-shell .adi-reactions-header {
    display: none;
  }

  .video-reaction-shell .adi-reactions-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .video-reaction-shell .adi-reaction-option {
    padding: 5px 3px;
    gap: 4px;
  }

  .video-reaction-shell .adi-reaction-media {
    max-width: 44px;
  }

  .video-reaction-shell .adi-reaction-label {
    font-size: 0.57rem;
  }

  .video-reaction-shell .adi-reaction-metric {
    font-size: 0.52rem;
  }

  .video-reaction-shell .adi-reactions-helper {
    margin-top: 6px;
    font-size: 0.64rem;
  }

  .video-reaction-shell.is-reactions-collapsed {
    grid-template-columns: minmax(0, 980px) 42px;
  }

  .video-reaction-shell.is-reactions-collapsed .video-reaction-sidecar {
    width: 42px;
    max-width: 42px;
    align-self: center;
  }

  .video-reaction-shell.is-reactions-collapsed .video-reaction-toggle {
    min-height: 188px;
    margin-bottom: 0;
    padding: 10px 4px;
    border-radius: 0 14px 14px 0;
  }

  .video-reaction-shell.is-reactions-collapsed .video-reaction-toggle__label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.62rem;
    letter-spacing: 0.03em;
  }

  .video-reaction-shell.is-reactions-collapsed .video-reaction-toggle__icon {
    display: none;
  }
}
