/* ==========================================================================
   LANDSCAPE PRESENTATION DECK — CHAPTER 5: VALUES & ETHICS
   Typography: Space Grotesk + JetBrains Mono
   Strict Landscape 16:9 Canvas with Auto-fit Viewport
   ========================================================================== */

:root {
  /* Light Theme (Default) */
  --bg-app: #ffffff;
  --bg-card: #f9fafb;
  --bg-card-hover: #f3f4f6;
  --bg-input: #f3f4f6;
  --border-subtle: #e5e7eb;
  --border-medium: #d1d5db;
  --border-dark: #111827;

  --text-main: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;

  --badge-bg: #f3f4f6;
  --badge-text: #1f2937;
  --accent-color: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.12);

  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --content-font-scale: 1;
}

/* Dark Theme */
body.dark-mode {
  --bg-app: #0a0a0c;
  --bg-card: #141418;
  --bg-card-hover: #1f1f26;
  --bg-input: #1a1a20;
  --border-subtle: #27272e;
  --border-medium: #3f3f4a;
  --border-dark: #f4f4f5;

  --text-main: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-faint: #52525b;

  --badge-bg: #27272e;
  --badge-text: #e4e4e7;
  --accent-color: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
}

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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.presentation-app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
}

/* ==========================================================================
   1. SLIM TOP HEADER
   ========================================================================== */
.deck-header {
  height: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-app);
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.chapter-label {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chapter-divider {
  color: var(--border-medium);
  font-weight: 300;
}

.chapter-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 32px;
  padding: 0 0.8rem;
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.control-pill:hover {
  background-color: var(--bg-card);
  border-color: var(--border-medium);
  color: var(--text-main);
}

.control-pill.active {
  background-color: var(--bg-card);
  border-color: var(--border-dark);
  color: var(--text-main);
  font-weight: 600;
}

.control-pill kbd {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 600;
}

.control-pill svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

/* Font Size & Zoom Widget */
.zoom-widget {
  display: flex;
  align-items: center;
  height: 30px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  background-color: transparent;
}

.zoom-btn {
  width: 26px;
  height: 100%;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.12s;
}

.zoom-btn:hover {
  background-color: var(--bg-card);
  color: var(--text-main);
}

.zoom-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-main);
  padding: 0 0.5rem;
  min-width: 60px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   2. PRESENTATION VIEWPORT (16:9 LANDSCAPE CANVAS)
   ========================================================================== */
.presentation-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-app);
}

.slide-canvas {
  width: min(1380px, 94vw);
  max-width: 1380px;
  max-height: min(760px, calc(100vh - 110px));
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 1rem 0;
  position: relative;
  overflow-y: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.slide-canvas::-webkit-scrollbar {
  display: none;
}
.slide-canvas {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slide-eyebrow {
  font-family: var(--font-mono);
  font-size: calc(0.92rem * var(--content-font-scale));
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.slide-heading {
  font-family: var(--font-heading);
  font-size: calc(clamp(2rem, 3.2vw, 3rem) * var(--content-font-scale));
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 0.65rem;
  max-width: 100%;
}

.slide-synopsis {
  font-family: var(--font-sans);
  font-size: calc(clamp(1.05rem, 1.35vw, 1.25rem) * var(--content-font-scale));
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.slide-cards-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   3. SLIDE CONTENT COMPONENTS
   ========================================================================== */

/* A. Team Grid & Portrait Cards (Slide 2) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  width: 100%;
  margin-top: 0.5rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.team-photo-frame {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  margin-bottom: 0.85rem;
  background-color: var(--bg-input);
  position: relative;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.3s ease;
}

.team-card:hover .team-photo {
  transform: scale(1.03);
}

.team-role-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--text-main);
  color: var(--bg-app);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 0.45rem;
}

.team-name {
  font-family: var(--font-heading);
  font-size: calc(1.1rem * var(--content-font-scale));
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.team-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* B. Single Focus Card (The 8 Core Values) */
.single-focus-card {
  background: var(--bg-card);
  border: 2px solid var(--border-dark);
  border-radius: 8px;
  padding: 2.25rem 2.75rem;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.single-focus-badge {
  font-family: var(--font-mono);
  font-size: calc(0.85rem * var(--content-font-scale));
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.single-focus-term {
  font-family: var(--font-heading);
  font-size: calc(clamp(2.4rem, 4vw, 3.4rem) * var(--content-font-scale));
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.single-focus-desc {
  font-family: var(--font-sans);
  font-size: calc(clamp(1.2rem, 1.65vw, 1.45rem) * var(--content-font-scale));
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 1.75rem;
}

.single-focus-citation {
  font-family: var(--font-mono);
  font-size: calc(0.82rem * var(--content-font-scale));
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* C. Clean Editorial Table (Principles Table & Moral Courage Aspects) */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 0.5rem;
}

.table-clean {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-clean th {
  font-family: var(--font-mono);
  font-size: calc(0.85rem * var(--content-font-scale));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  padding: 12px 18px;
  border-bottom: 2px solid var(--border-dark);
  background: var(--bg-card);
}

.table-clean td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.table-clean td.col-title {
  font-family: var(--font-heading);
  font-size: calc(1.15rem * var(--content-font-scale));
  font-weight: 700;
  color: var(--text-main);
}

.table-clean td.col-desc {
  font-family: var(--font-sans);
  font-size: calc(1.05rem * var(--content-font-scale));
  color: var(--text-secondary);
  line-height: 1.55;
}

/* D. Quote Callout Box */
.quote-box {
  border-left: 4px solid var(--border-dark);
  background: var(--bg-card);
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
  width: 100%;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: calc(clamp(1.2rem, 1.7vw, 1.45rem) * var(--content-font-scale));
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-main);
  font-style: italic;
}

.quote-source {
  font-family: var(--font-mono);
  font-size: calc(0.8rem * var(--content-font-scale));
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* E. Layout Grids (grid-2, grid-3, data-stack) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  width: 100%;
}

.data-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.content-card:hover {
  border-color: var(--border-medium);
}

.card-number {
  font-family: var(--font-mono);
  font-size: calc(0.75rem * var(--content-font-scale));
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: calc(1.18rem * var(--content-font-scale));
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-family: var(--font-sans);
  font-size: calc(1.02rem * var(--content-font-scale));
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Full-width card in multi-column grids (e.g., Slide 26 Stakeholders & Ecology) */
.content-card.span-full {
  grid-column: 1 / -1;
}

/* Header row for objective cards with right-aligned page tag pill */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.45rem;
  gap: 0.75rem;
}

.card-header-row .card-title {
  margin-bottom: 0;
  flex: 1;
}

.card-ref-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   4. SLIM BOTTOM FOOTER
   ========================================================================== */
.deck-footer {
  height: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-app);
  z-index: 50;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.slide-index-counter {
  color: var(--text-muted);
}
.slide-index-counter strong {
  color: var(--text-main);
  font-weight: 700;
}

.footer-divider {
  color: var(--border-medium);
}

.footer-section-tag {
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

.footer-center {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 30px;
  padding: 0 0.85rem;
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.nav-pill:hover:not(:disabled) {
  background-color: var(--bg-card);
  border-color: var(--border-dark);
}

.nav-pill:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-pill kbd {
  color: var(--text-muted);
  font-size: 0.68rem;
}

/* ==========================================================================
   5. SLIDE INDEX MODAL (SINGLE COLUMN LIST)
   ========================================================================== */
.index-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  padding: 1.5rem;
}

.index-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.index-dialog {
  width: 100%;
  max-width: 820px;
  max-height: 82vh;
  background: var(--bg-app);
  border: 2px solid var(--border-dark);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.index-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
}

.index-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.drawer-close-btn:hover {
  color: var(--text-main);
  background: var(--border-subtle);
}

.index-list-rows {
  padding: 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.index-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s;
  border: 1px solid transparent;
}

.index-row:hover {
  background-color: var(--bg-card);
  border-color: var(--border-subtle);
}

.index-row.active {
  background-color: var(--bg-card);
  border-color: var(--border-dark);
}

.index-row-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.index-row-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 24px;
}

.index-row.active .index-row-num {
  color: var(--accent-color);
}

.index-row-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--bg-input);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
}

.index-row-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.index-row-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   6. DEFINITION & GLOSSARY DRAWER MODAL [D]
   ========================================================================== */
.def-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  padding: 1.5rem;
}

.def-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.def-dialog {
  width: 100%;
  max-width: 860px;
  max-height: 84vh;
  background: var(--bg-app);
  border: 2px solid var(--border-dark);
  border-radius: 8px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.def-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.def-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.def-header-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.def-tabs-and-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.def-tabs {
  display: flex;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
}

.def-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.12s;
}

.def-tab-btn.active {
  background: var(--border-dark);
  color: var(--bg-app);
}

.def-search-input {
  flex: 1;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s;
}

.def-search-input:focus {
  border-color: var(--accent-color);
}

.def-content-area {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.def-slide-card, .def-term-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.def-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.def-badge-slide {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--border-dark);
  color: var(--bg-app);
  padding: 2px 8px;
  border-radius: 4px;
}

.def-source-citation {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.def-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.def-term-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.def-term-context {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.def-formal-text {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-app);
  border-left: 3px solid var(--border-dark);
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
}

.def-talking-point {
  background: var(--bg-app);
  border: 1px dashed var(--border-medium);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.def-tp-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.def-tp-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.def-subterms-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.def-section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.35rem;
}

.def-term-citation {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.def-empty-notice {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.def-switch-btn {
  margin-top: 1rem;
  background: var(--border-dark);
  color: var(--bg-app);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   7. MODE SWITCH FLOATING TOAST
   ========================================================================== */
.mode-toast {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--border-dark);
  color: var(--bg-app);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 300;
  white-space: nowrap;
}

.mode-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   8. MOBILE PORTRAIT ROTATE OVERLAY
   ========================================================================== */
.rotate-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-app);
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.rotate-icon {
  width: 56px;
  height: 56px;
  color: var(--accent-color);
  margin-bottom: 1.25rem;
  animation: rotatePhone 2.5s infinite ease-in-out;
}

@keyframes rotatePhone {
  0%, 10% { transform: rotate(0deg); }
  45%, 55% { transform: rotate(90deg); }
  90%, 100% { transform: rotate(0deg); }
}

.rotate-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.rotate-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.rotate-bypass-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 768px) and (orientation: portrait) {
  .rotate-overlay {
    display: flex;
  }
}
