/* ================================================
   SLOT OVERLAY — Expanded slot detail view
   Extracted from style.css for maintainability
   ================================================ */

/* ══════════════════════════════════════════
   SLOT OVERLAY (expanded detail view)
   ══════════════════════════════════════════ */
.slot-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 3, 10, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.slot-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.slot-overlay-inner {
  width: min(1240px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(10, 10, 16, 0.97);
  border: 1px solid var(--glass-8);
  border-radius: 18px;
  padding: 28px 36px 32px;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s ease;
  will-change: transform, opacity;
}
.slot-overlay.active .slot-overlay-inner {
  transform: translateY(0) scale(1);
}
.slot-overlay-inner::-webkit-scrollbar { width: 5px; }
.slot-overlay-inner::-webkit-scrollbar-track { background: transparent; }
.slot-overlay-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

/* Scroll hint: bottom fade when content overflows */
.slot-overlay-inner::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(10, 10, 16, 0.85));
  pointer-events: none;
  margin-top: -40px;
  z-index: 1;
}

/* Border color per phase */
.slot-overlay-inner.phase-conv { border-color: rgba(255,111,0,0.3); }
.slot-overlay-inner.phase-p1   { border-color: rgba(139,195,74,0.3); }
.slot-overlay-inner.phase-p2,
.slot-overlay-inner.phase-p2a,
.slot-overlay-inner.phase-p2b  { border-color: rgba(66,165,245,0.3); }
.slot-overlay-inner.phase-p3   { border-color: rgba(171,71,188,0.3); }

/* Navigation bar */
.overlay-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.overlay-slot-nav {
  display: flex;
  gap: 6px;
}
.overlay-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 10px;
  min-height: 44px;
  border: 1px solid var(--glass-8);
  background: var(--glass-3);
  border-radius: 16px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.overlay-nav-btn:hover {
  background: var(--glass-7);
  border-color: var(--glass-15);
  color: var(--text-secondary);
}
.overlay-nav-btn:active {
  transform: scale(0.97);
}
.overlay-nav-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Overlay header */
.overlay-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 12px;
  min-height: 44px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.overlay-back-btn:hover { color: var(--text); background: var(--glass-3); }
.overlay-back-btn:active { transform: scale(0.97); }
.overlay-back-btn svg { flex-shrink: 0; }

.overlay-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.overlay-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.overlay-meta .dur-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  background: var(--glass-5);
  border: 1px solid var(--glass-8);
  font-size: 0.7rem;
}
.overlay-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 20px 0;
}

/* -- Expandable sections -- */
.overlay-section {
  margin-bottom: 0;
}
.overlay-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  padding: 14px 12px;
  min-height: 44px;
  border-radius: 8px;
  transition: background 0.15s;
  border-bottom: 1px solid var(--glass-4);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-align: left;
}
.overlay-section-header:hover {
  background: var(--glass-3);
}
.overlay-section-header:active {
  transform: scale(0.99);
}
.overlay-section-nr {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}
.overlay-section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.overlay-section-dur {
  font-size: 0.68rem;
  color: var(--text-faint);
  font-weight: 500;
  white-space: nowrap;
}
.overlay-section-chevron {
  color: var(--text-faint);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.overlay-section.collapsed .overlay-section-chevron {
  transform: rotate(-90deg);
}
.overlay-section-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.25s ease, opacity 0.25s ease;
  opacity: 1;
}
.overlay-section-body-inner {
  overflow: hidden;
  min-height: 0;
  padding: 8px 12px 16px 50px;
}
.overlay-section.collapsed .overlay-section-body {
  grid-template-rows: 0fr;
  opacity: 0;
}
.overlay-section-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.overlay-section-body li {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 6px 0 6px 18px;
  line-height: 1.55;
  position: relative;
}
.overlay-section-body li::before {
  content: '\203A';
  position: absolute;
  left: 2px;
  font-weight: 700;
  color: var(--text-faint);
}

/* -- Inline point badges ([input], [hinweis], [reflect], [machen]) -- */
.point-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}
.point-badge svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.point-badge-input {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
}
.point-badge-hinweis {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}
.point-badge-reflect {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.point-badge-machen {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.point-badge-discuss {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
}
/* Remove default bullet for badge items */
.overlay-section-body li:has(.point-badge)::before {
  display: none;
}
.overlay-section-body li:has(.point-badge) {
  padding-left: 0;
}

/* -- Section type badges -- */
.overlay-section-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.overlay-section-type svg {
  flex-shrink: 0;
}
.section-type-hands-on {
  background: rgba(52,211,153,0.12);
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.25);
}
.section-type-interactive {
  background: rgba(168,85,247,0.12);
  color: #a855f7;
  border: 1px solid rgba(168,85,247,0.25);
}
.section-type-discuss {
  background: rgba(168,85,247,0.12);
  color: #a855f7;
  border: 1px solid rgba(168,85,247,0.25);
}
.section-type-info {
  background: rgba(96,165,250,0.10);
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,0.18);
}
/* Expanded sections: subtle tinted background by phase color */
.overlay-section:not(.collapsed) {
  border-radius: 8px;
  margin: 2px 0;
}
.phase-conv .overlay-section:not(.collapsed) { background: rgba(255,111,0,0.03); }
.phase-neck .overlay-section:not(.collapsed) { background: rgba(212,160,84,0.03); }
.phase-p1 .overlay-section:not(.collapsed) { background: rgba(139,195,74,0.03); }
.phase-p2 .overlay-section:not(.collapsed),
.phase-p2a .overlay-section:not(.collapsed),
.phase-p2b .overlay-section:not(.collapsed) { background: rgba(66,165,245,0.03); }
.phase-p3 .overlay-section:not(.collapsed) { background: rgba(171,71,188,0.03); }

/* -- Section label (shared between overlay sections) -- */
.overlay-section-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-top: 20px;
  margin-bottom: 10px;
}

/* -- Tool grid table -- */
.tool-grid {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4px;
}
.tool-grid th {
  padding: 8px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--glass-10);
}
.tool-grid th:first-child {
  width: 120px;
}
.tool-grid td {
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--glass-4);
  line-height: 1.5;
  vertical-align: top;
}
.tool-grid .row-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.74rem;
  white-space: nowrap;
}
.tool-grid .tool-name {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--glass-4);
  border: 1px solid var(--border);
  margin: 2px 4px 2px 0;
  font-size: 0.76rem;
}

/* -- Links section -- */
.overlay-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.overlay-links li {
  margin-bottom: 4px;
}
.overlay-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.overlay-links a:hover {
  background: var(--glass-5);
  color: var(--text);
}
.overlay-links .link-icon {
  flex-shrink: 0;
  opacity: 0.4;
}
.overlay-links .link-ext {
  font-size: 0.62rem;
  color: var(--text-faint);
  margin-left: 2px;
}

/* ══════════════════════════════════════════
   CONTENT LAYOUT (two-column: sections | tools)
   ══════════════════════════════════════════ */
.overlay-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 20px;
  align-items: start;
  margin-top: 4px;
}
.overlay-content-grid.has-one-sidebar {
  grid-template-columns: 1fr minmax(200px, 280px);
}
.overlay-content-grid.has-two-sidebars {
  grid-template-columns: 1fr minmax(160px, 240px) minmax(160px, 240px);
}
.overlay-sections-col {
  min-width: 0;
}

/* ══════════════════════════════════════════
   TOOL SIDEBAR (right column)
   ══════════════════════════════════════════ */
.overlay-tool-sidebar {
  padding: 16px;
  background: var(--glass-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: sticky;
  top: 0;
}
.sidebar-categories-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-category-card {
  min-width: 0;
}
.sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-title svg {
  flex-shrink: 0;
  opacity: 0.6;
}
.sidebar-cat {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 6px;
}
.sidebar-alt-label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-top: 4px;
  margin-bottom: 3px;
  opacity: 0.7;
}
.sidebar-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 2px;
}
.sidebar-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.sidebar-chip-primary {
  background: var(--glass-4);
  border: 1px solid var(--glass-8);
  color: var(--text);
}
.sidebar-chip-alt {
  background: transparent;
  border: 1px solid var(--glass-4);
  color: var(--text-faint);
  font-size: 0.66rem;
  padding: 3px 8px;
}
.chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 800;
  flex-shrink: 0;
  font-family: var(--font-heading);
}
.chip-icon-logo svg {
  display: block;
}

/* ══════════════════════════════════════════
   SIDEBAR DOCUMENTS
   ══════════════════════════════════════════ */
.overlay-docs {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-8);
}
.sidebar-docs-title {
  margin-bottom: 10px;
}
.sidebar-doc-link svg.doc-link-icon {
  flex-shrink: 0;
  opacity: 0.45;
  margin-right: 2px;
}
.sidebar-docs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-doc-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--glass-2);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.3;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sidebar-doc-link:hover {
  background: var(--glass-5);
  border-color: var(--border-strong);
  color: var(--text);
}

/* ══════════════════════════════════════════
   INLINE SECTION LINKS
   ══════════════════════════════════════════ */
.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--glass-4);
}
.section-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.section-links a:hover {
  background: var(--glass-5);
  color: var(--text);
}
.section-links .link-icon {
  flex-shrink: 0;
  opacity: 0.4;
}
.section-links-group {
  margin-top: 8px;
}
.section-links-group-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}

/* ══════════════════════════════════════════
   OVERLAY VISUAL ENHANCEMENTS
   ══════════════════════════════════════════ */

/* -- Phase-colored title gradient -- */
.overlay-title.c-conv {
  background: linear-gradient(135deg, var(--orange) 20%, #ffb74d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.overlay-title.c-p1 {
  background: linear-gradient(135deg, var(--p1) 20%, #c6ff73 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.overlay-title.c-p2 {
  background: linear-gradient(135deg, var(--p2) 20%, #82cbff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.overlay-title.c-p3 {
  background: linear-gradient(135deg, var(--p3) 20%, #d47ee0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -- Phase-colored section number badges -- */
.slot-overlay-inner.phase-conv .overlay-section-nr {
  background: rgba(255,111,0,0.15);
  color: var(--orange);
}
.slot-overlay-inner.phase-p1 .overlay-section-nr {
  background: rgba(139,195,74,0.15);
  color: var(--p1);
}
.slot-overlay-inner.phase-p2 .overlay-section-nr,
.slot-overlay-inner.phase-p2a .overlay-section-nr,
.slot-overlay-inner.phase-p2b .overlay-section-nr {
  background: rgba(66,165,245,0.15);
  color: var(--p2);
}
.slot-overlay-inner.phase-p3 .overlay-section-nr {
  background: rgba(171,71,188,0.15);
  color: var(--p3);
}

/* -- Active section left accent -- */
.overlay-section {
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.slot-overlay-inner.phase-conv .overlay-section:not(.collapsed) {
  border-left-color: rgba(255,111,0,0.4);
  border-radius: 0 8px 8px 0;
}
.slot-overlay-inner.phase-p1 .overlay-section:not(.collapsed) {
  border-left-color: rgba(139,195,74,0.4);
  border-radius: 0 8px 8px 0;
}
.slot-overlay-inner.phase-p2 .overlay-section:not(.collapsed),
.slot-overlay-inner.phase-p2a .overlay-section:not(.collapsed),
.slot-overlay-inner.phase-p2b .overlay-section:not(.collapsed) {
  border-left-color: rgba(66,165,245,0.4);
  border-radius: 0 8px 8px 0;
}
.slot-overlay-inner.phase-p3 .overlay-section:not(.collapsed) {
  border-left-color: rgba(171,71,188,0.4);
  border-radius: 0 8px 8px 0;
}

/* -- Staggered section entrance -- */
@keyframes sectionReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Subtle highlight pulse when section expands */
@keyframes sectionExpand {
  0% { background-color: rgba(255,255,255,0.04); }
  100% { background-color: transparent; }
}
.overlay-section:not(.collapsed) .overlay-section-header {
  animation: sectionExpand 0.2s ease-out;
}

.slot-overlay.active .overlay-section {
  animation: sectionReveal 0.3s ease-out both;
}
.slot-overlay.active .overlay-sections-col .overlay-section:nth-child(1) { animation-delay: 0.03s; }
.slot-overlay.active .overlay-sections-col .overlay-section:nth-child(2) { animation-delay: 0.07s; }
.slot-overlay.active .overlay-sections-col .overlay-section:nth-child(3) { animation-delay: 0.11s; }
.slot-overlay.active .overlay-sections-col .overlay-section:nth-child(4) { animation-delay: 0.15s; }
.slot-overlay.active .overlay-sections-col .overlay-section:nth-child(5) { animation-delay: 0.19s; }
.slot-overlay.active .overlay-sections-col .overlay-section:nth-child(6) { animation-delay: 0.23s; }

/* -- Tool section entrance -- */
@keyframes sidebarReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.slot-overlay.active .overlay-tool-sidebar {
  animation: sidebarReveal 0.35s ease-out 0.15s both;
}

/* -- Tool sidebar phase tint -- */
.slot-overlay-inner.phase-conv .overlay-tool-sidebar {
  border-color: rgba(255,111,0,0.12);
  background: linear-gradient(180deg, rgba(255,111,0,0.03) 0%, rgba(255,255,255,0.02) 100%);
}
.slot-overlay-inner.phase-p1 .overlay-tool-sidebar {
  border-color: rgba(139,195,74,0.12);
  background: linear-gradient(180deg, rgba(139,195,74,0.03) 0%, rgba(255,255,255,0.02) 100%);
}
.slot-overlay-inner.phase-p2 .overlay-tool-sidebar,
.slot-overlay-inner.phase-p2a .overlay-tool-sidebar,
.slot-overlay-inner.phase-p2b .overlay-tool-sidebar {
  border-color: rgba(66,165,245,0.12);
  background: linear-gradient(180deg, rgba(66,165,245,0.03) 0%, rgba(255,255,255,0.02) 100%);
}
.slot-overlay-inner.phase-p3 .overlay-tool-sidebar {
  border-color: rgba(171,71,188,0.12);
  background: linear-gradient(180deg, rgba(171,71,188,0.03) 0%, rgba(255,255,255,0.02) 100%);
}

/* -- Phase glow on overlay -- */
.slot-overlay-inner.phase-conv {
  box-shadow: 0 0 60px rgba(255,111,0,0.06), 0 0 120px rgba(255,111,0,0.02);
}
.slot-overlay-inner.phase-p1 {
  box-shadow: 0 0 60px rgba(139,195,74,0.06), 0 0 120px rgba(139,195,74,0.02);
}
.slot-overlay-inner.phase-p2,
.slot-overlay-inner.phase-p2a,
.slot-overlay-inner.phase-p2b {
  box-shadow: 0 0 60px rgba(66,165,245,0.06), 0 0 120px rgba(66,165,245,0.02);
}
.slot-overlay-inner.phase-p3 {
  box-shadow: 0 0 60px rgba(171,71,188,0.06), 0 0 120px rgba(171,71,188,0.02);
}

/* -- Tool chip hover micro-interactions -- */
.sidebar-chip-primary {
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.sidebar-chip-primary:hover {
  transform: translateY(-1px);
  background: var(--glass-7);
  border-color: var(--border-strong);
}
.sidebar-chip-alt {
  transition: color 0.15s ease;
}
.sidebar-chip-alt:hover {
  color: var(--text-muted);
}

/* -- Link hover slide -- */
.section-links a {
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.section-links a:hover {
  transform: translateX(2px);
}

/* -- Chevron rotation smoothing -- */
.overlay-section-chevron {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════
   RESPONSIVE - stack on narrow screens
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .overlay-content-grid.has-one-sidebar,
  .overlay-content-grid.has-two-sidebars {
    grid-template-columns: 1fr;
  }
  .overlay-tool-sidebar {
    position: static;
  }
}

/* ══════════════════════════════════════════
   LIGHT MODE OVERRIDES
   ══════════════════════════════════════════ */

/* ── Light mode overlay ── */
[data-theme="light"] .slot-overlay {
  background: rgba(30, 30, 60, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
[data-theme="light"] .slot-overlay-inner {
  background: rgba(245, 247, 252, 0.98);
  border-color: var(--border-strong);
  box-shadow: 0 16px 64px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}
[data-theme="light"] .slot-overlay-inner::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.10);
}
[data-theme="light"] .slot-overlay-inner::after {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.85));
}
[data-theme="light"] .overlay-divider {
  background: rgba(0,0,0,0.08);
}
[data-theme="light"] .point-badge-input {
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.20);
}
[data-theme="light"] .point-badge-hinweis {
  background: rgba(217, 119, 6, 0.10);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.20);
}
[data-theme="light"] .point-badge-reflect {
  background: rgba(126, 34, 206, 0.10);
  color: #7e22ce;
  border-color: rgba(126, 34, 206, 0.20);
}
[data-theme="light"] .point-badge-machen {
  background: rgba(22, 163, 74, 0.10);
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.20);
}
[data-theme="light"] .point-badge-discuss {
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.20);
}
[data-theme="light"] .overlay-section-header {
  border-bottom-color: var(--glass-4);
}
[data-theme="light"] .overlay-section-header:hover {
  background: var(--glass-3);
}
[data-theme="light"] .overlay-section-nr {
  background: rgba(0,0,0,0.06);
}
[data-theme="light"] .section-type-hands-on {
  background: rgba(22, 163, 74, 0.10);
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.20);
}
[data-theme="light"] .section-type-interactive,
[data-theme="light"] .section-type-discuss {
  background: rgba(126, 34, 206, 0.10);
  color: #7e22ce;
  border-color: rgba(126, 34, 206, 0.20);
}
[data-theme="light"] .section-type-info {
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.20);
}
[data-theme="light"] .phase-conv .overlay-section:not(.collapsed) { background: rgba(229,98,0,0.04); }
[data-theme="light"] .phase-neck .overlay-section:not(.collapsed) { background: rgba(191,140,62,0.04); }
[data-theme="light"] .phase-p1 .overlay-section:not(.collapsed) { background: rgba(85,139,47,0.04); }
[data-theme="light"] .phase-p2 .overlay-section:not(.collapsed),
[data-theme="light"] .phase-p2a .overlay-section:not(.collapsed),
[data-theme="light"] .phase-p2b .overlay-section:not(.collapsed) { background: rgba(25,118,210,0.04); }
[data-theme="light"] .phase-p3 .overlay-section:not(.collapsed) { background: rgba(142,36,170,0.04); }
[data-theme="light"] .overlay-section:not(.collapsed) .overlay-section-header {
  animation-name: sectionExpandLight;
}
@keyframes sectionExpandLight {
  0% { background-color: rgba(0,0,0,0.04); }
  100% { background-color: transparent; }
}
[data-theme="light"] .overlay-meta .dur-badge {
  background: var(--glass-5);
  border-color: var(--glass-8);
}

/* Tool grid */
[data-theme="light"] .tool-grid th {
  border-bottom-color: var(--glass-10);
}
[data-theme="light"] .tool-grid td {
  border-bottom-color: var(--glass-4);
}
[data-theme="light"] .tool-grid .tool-name {
  background: var(--glass-4);
  border-color: var(--glass-7);
}

/* Links */
[data-theme="light"] .overlay-links a:hover {
  background: var(--glass-5);
}
[data-theme="light"] .section-links a:hover {
  background: var(--glass-5);
}
[data-theme="light"] .section-links {
  border-top-color: var(--glass-4);
}

/* Tool sidebar */
[data-theme="light"] .overlay-tool-sidebar {
  background: var(--glass-2);
  border-color: var(--border);
}
[data-theme="light"] .sidebar-title {
  border-bottom-color: var(--border);
}
[data-theme="light"] .sidebar-chip-primary {
  background: var(--glass-4);
  border-color: var(--glass-8);
}
[data-theme="light"] .sidebar-chip-primary:hover {
  background: var(--glass-7);
  border-color: var(--glass-15);
}
[data-theme="light"] .sidebar-chip-alt {
  border-color: var(--glass-4);
}
[data-theme="light"] .overlay-docs {
  border-bottom-color: var(--border);
}
[data-theme="light"] .sidebar-doc-link {
  background: var(--glass-2);
  border-color: var(--border);
}
[data-theme="light"] .sidebar-doc-link:hover {
  background: var(--glass-5);
  border-color: var(--border-strong);
}

/* Phase tool sidebar tints - lighten */
[data-theme="light"] .slot-overlay-inner.phase-conv .overlay-tool-sidebar {
  border-color: rgba(229,98,0,0.15);
  background: linear-gradient(180deg, rgba(229,98,0,0.04) 0%, var(--glass-2) 100%);
}
[data-theme="light"] .slot-overlay-inner.phase-p1 .overlay-tool-sidebar {
  border-color: rgba(85,139,47,0.15);
  background: linear-gradient(180deg, rgba(85,139,47,0.04) 0%, var(--glass-2) 100%);
}
[data-theme="light"] .slot-overlay-inner.phase-p2 .overlay-tool-sidebar,
[data-theme="light"] .slot-overlay-inner.phase-p2a .overlay-tool-sidebar,
[data-theme="light"] .slot-overlay-inner.phase-p2b .overlay-tool-sidebar {
  border-color: rgba(25,118,210,0.15);
  background: linear-gradient(180deg, rgba(25,118,210,0.04) 0%, var(--glass-2) 100%);
}
[data-theme="light"] .slot-overlay-inner.phase-p3 .overlay-tool-sidebar {
  border-color: rgba(142,36,170,0.15);
  background: linear-gradient(180deg, rgba(142,36,170,0.04) 0%, var(--glass-2) 100%);
}

/* Phase glow - subtle in light mode */
[data-theme="light"] .slot-overlay-inner.phase-conv { box-shadow: 0 4px 24px rgba(229,98,0,0.08); }
[data-theme="light"] .slot-overlay-inner.phase-p1 { box-shadow: 0 4px 24px rgba(85,139,47,0.08); }
[data-theme="light"] .slot-overlay-inner.phase-p2,
[data-theme="light"] .slot-overlay-inner.phase-p2a,
[data-theme="light"] .slot-overlay-inner.phase-p2b { box-shadow: 0 4px 24px rgba(25,118,210,0.08); }
[data-theme="light"] .slot-overlay-inner.phase-p3 { box-shadow: 0 4px 24px rgba(142,36,170,0.08); }

/* Vercel triangle icon */
[data-theme="light"] .overlay-tool-sidebar svg path[fill="#a3a3a3"] {
  fill: #3d3d5c;
}

/* JS-created chip icons: override inline rgba(255,255,255,0.04) */
[data-theme="light"] .chip-icon-logo {
  background: rgba(0,0,0,0.05) !important;
}

/* ══════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  /* Disable section stagger animation */
  .slot-overlay.active .overlay-section {
    animation: none;
  }
  /* Disable sidebar reveal animation */
  .slot-overlay.active .overlay-tool-sidebar {
    animation: none;
  }
  /* Disable section expand animation */
  .overlay-section:not(.collapsed) .overlay-section-header {
    animation: none;
  }
  [data-theme="light"] .overlay-section:not(.collapsed) .overlay-section-header {
    animation: none;
  }
  /* Set all transition durations to near-instant */
  .slot-overlay,
  .slot-overlay-inner,
  .overlay-back-btn,
  .overlay-section,
  .overlay-section-header,
  .overlay-section-chevron,
  .overlay-section-body,
  .overlay-links a,
  .section-links a,
  .sidebar-chip-primary,
  .sidebar-chip-alt,
  .sidebar-doc-link {
    transition-duration: 0.01s !important;
  }
  /* Disable chip hover transform */
  .sidebar-chip-primary:hover {
    transform: none;
  }
  .section-links a:hover {
    transform: none;
  }
}
