/* ==========================================================================
   SISTELNOT Curso Notarial · Editorial Legal / Fe Pública Contemporánea
   Palette: Obsidian Slate, Warm Archival Parchment, Burnished Gold, Crimson, Emerald
   ========================================================================== */

:root {
  --ink: #111827;
  --ink-soft: #374151;
  --ink-muted: #64748b;
  --obsidian: #0b1320;
  --navy: #14253d;
  --navy-elevated: #1c3252;
  --parchment: #f7f4ee;
  --parchment-deep: #ede7db;
  --paper: #fffdf9;
  --border: #dcd4c4;
  --border-dark: rgba(255, 255, 255, 0.12);
  --gold: #b48422;
  --gold-bright: #d4a43c;
  --gold-soft: #f6eed8;
  --crimson: #9b1c1c;
  --crimson-soft: #fdf2f2;
  --emerald: #14633a;
  --emerald-soft: #eef8f2;
  --amber: #a15c07;
  --amber-soft: #fef6e7;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-stage: 0 28px 70px rgba(3, 8, 18, 0.55), 0 0 0 1px rgba(212, 164, 60, 0.22);
  --shadow-card: 0 4px 18px rgba(17, 24, 39, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(17, 24, 39, 0.06);
  padding: 0.12em 0.42em;
  border-radius: 4px;
  color: var(--navy);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   TOPBAR NAVIGATION
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(11, 19, 32, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  color: #f8fafc;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-seal {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  color: var(--obsidian);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(212, 164, 60, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
}

.mode-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mode-tab {
  border: none;
  background: transparent;
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.18s ease, color 0.18s ease;
}

.mode-tab .tab-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-bright);
  opacity: 0.8;
}

.mode-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.mode-tab.active {
  background: var(--parchment);
  color: var(--obsidian);
}

.mode-tab.active .tab-num {
  color: var(--gold);
  opacity: 1;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.ghost-btn:hover {
  background: rgba(212, 164, 60, 0.18);
  border-color: var(--gold-bright);
  color: #ffffff;
}

/* ==========================================================================
   VIEWS SWITCHING
   ========================================================================== */

.view {
  display: none;
}

.view.active {
  display: block;
}

#view-slides.active {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 61px);
  background:
    radial-gradient(circle at 18% 12%, rgba(212, 164, 60, 0.1), transparent 42%),
    radial-gradient(circle at 82% 88%, rgba(28, 50, 82, 0.55), transparent 50%),
    var(--obsidian);
}

/* ==========================================================================
   PRESENTATION MODE · MODULE RIBBON & STAGE
   ========================================================================== */

.module-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 20px 4px;
}

.mod-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.mod-pill span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-bright);
}

.mod-pill:hover {
  color: #ffffff;
  border-color: rgba(212, 164, 60, 0.45);
}

.mod-pill.active {
  background: rgba(212, 164, 60, 0.16);
  border-color: var(--gold-bright);
  color: #ffffff;
}

.stage-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px 20px;
}

.slide-frame {
  width: 100%;
  max-width: 1160px;
  min-height: 610px;
  background: var(--parchment);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-stage);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideReveal 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle legal folio top bar inside light slides */
.slide-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 55%, var(--gold-bright) 100%);
  z-index: 2;
}

.slide-inner {
  flex: 1;
  padding: 36px 46px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.slide-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.slide-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  color: var(--gold);
  margin-bottom: 6px;
}

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 6px;
}

.slide-subtitle {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* --- SLIDE TYPE: COVER & CLOSING (Dark Sovereign Navy) --- */
.slide-frame.theme-dark {
  background:
    radial-gradient(circle at 88% 18%, rgba(212, 164, 60, 0.22), transparent 44%),
    linear-gradient(135deg, #0d1a2d 0%, #152944 60%, #101e33 100%);
  color: #f8fafc;
}

.cover-layout {
  flex: 1;
  padding: 54px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.cover-watermark {
  position: absolute;
  right: 48px;
  bottom: 24px;
  font-family: var(--font-display);
  font-size: 210px;
  line-height: 1;
  color: rgba(212, 164, 60, 0.08);
  pointer-events: none;
  user-select: none;
}

.cover-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cover-tag::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold-bright);
}

.cover-main h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  margin: 18px 0 12px;
  max-width: 780px;
}

.cover-highlight {
  display: inline-block;
  color: var(--gold-bright);
  border-bottom: 3px solid rgba(212, 164, 60, 0.55);
  padding-bottom: 2px;
}

.cover-subtitle {
  font-size: 17px;
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 680px;
  margin: 14px 0 0;
}

.cover-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cover-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cover-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 164, 60, 0.35);
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
}

.cover-norm {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #94a3b8;
}

/* --- SLIDE TYPE: AGENDA --- */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  flex: 1;
}

.agenda-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, border-color 0.16s ease;
  cursor: pointer;
  text-align: left;
}

.agenda-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.agenda-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agenda-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.agenda-dur {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--parchment-deep);
  padding: 3px 8px;
  border-radius: 999px;
}

.agenda-card h3 {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.agenda-card p {
  margin: 0;
  font-size: 12.8px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* --- SLIDE TYPE: COMPARISON --- */
.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
}

.comp-col {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  border-top: 4px solid var(--navy);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comp-col.accent-gold { border-top-color: var(--gold); }
.comp-col.accent-crimson { border-top-color: var(--crimson); }

.comp-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.comp-col.accent-crimson .comp-badge { color: var(--crimson); }

.comp-col h3 {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 0;
  color: var(--navy);
}

.comp-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: -4px 0 4px;
}

.comp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comp-list li {
  font-size: 13.4px;
  line-height: 1.45;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.comp-list li strong {
  color: var(--navy);
  display: inline-block;
  margin-right: 5px;
}

.slide-callout {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #5c4009;
}

/* --- SLIDE TYPE: PILLARS --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  flex: 1;
}

.pillar-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.pillar-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--navy);
}

.pillar-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* --- SLIDE TYPE: PROHIBITED --- */
.prohibited-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  flex: 1;
}

.prohibited-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prohibited-item {
  background: var(--crimson-soft);
  border: 1px solid #f5c6c6;
  border-left: 4px solid var(--crimson);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4a1010;
}

.prohibited-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--crimson);
  font-size: 12px;
}

.exam-chip {
  margin-left: auto;
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.allowed-box {
  background: var(--emerald-soft);
  border: 1px solid #b9dfc8;
  border-top: 4px solid var(--emerald);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.allowed-box h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--emerald);
  margin: 0 0 8px;
}

.allowed-box p {
  font-size: 13.8px;
  line-height: 1.55;
  color: #164029;
  margin: 0;
}

.allowed-rule {
  background: #ffffff;
  border: 1px dashed #8cc4a2;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* --- SLIDE TYPE: ROLES --- */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  flex: 1;
}

.role-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-card.featured {
  background: var(--navy);
  color: #f8fafc;
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(20, 37, 61, 0.26);
}

.role-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
}

.role-card.featured .role-code { color: var(--gold-bright); }

.role-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0;
  color: var(--navy);
}

.role-card.featured h3 { color: #ffffff; }

.role-scope {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-card.featured .role-scope { color: var(--gold-bright); }

.role-card ul {
  margin: 4px 0 0;
  padding-left: 16px;
  font-size: 12.8px;
  line-height: 1.5;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-card.featured ul { color: #dbe5f3; }

/* --- SLIDE TYPE: STEPS --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  flex: 1;
}

.step-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
}

.step-badge {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  color: var(--navy);
}

.step-card p {
  margin: 0;
  font-size: 13.3px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.alert-strip {
  background: var(--crimson-soft);
  border-left: 4px solid var(--crimson);
  padding: 11px 15px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.2px;
  font-weight: 600;
  color: #5c1313;
}

/* --- SLIDE TYPE: TECH GRID --- */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
}

.tech-col {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.tech-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.tech-col-header h3 {
  margin: 0;
  font-size: 16.5px;
  color: var(--navy);
}

.mini-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #704e0c;
  white-space: nowrap;
}

.tech-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* --- SLIDE TYPE: FLOW (8 Stages) --- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  flex: 1;
  align-content: center;
}

.flow-node {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.flow-node.final {
  background: var(--navy);
  color: #fff;
  border-top-color: var(--gold-bright);
}

.flow-step {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.flow-node.final .flow-step { color: var(--gold-bright); }

.flow-node h3 {
  margin: 4px 0 6px;
  font-size: 15.5px;
  color: var(--navy);
}

.flow-node.final h3 { color: #ffffff; }

.flow-node p {
  margin: 0;
  font-size: 12.6px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.flow-node.final p { color: #cbd5e1; }

/* --- SLIDE TYPE: UI SIM --- */
.uisim-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.uisim-bar {
  background: var(--navy);
  color: #e2e8f0;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
}

.uisim-status {
  background: rgba(212, 164, 60, 0.2);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 164, 60, 0.5);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
}

.uisim-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uisim-path {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--navy);
  background: var(--parchment);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

.uisim-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.action-card {
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--parchment);
}

.action-btn-mock {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  color: #fff;
  margin-bottom: 8px;
}

.action-btn-mock.emerald { background: var(--emerald); }
.action-btn-mock.amber { background: var(--amber); }
.action-btn-mock.crimson { background: var(--crimson); }

.action-card p {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.tips-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tip-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12.6px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* --- SLIDE TYPE: FIELDS --- */
.fields-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 20px;
  flex: 1;
}

.panel-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.panel-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.field-row {
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}

.field-row:last-child { border-bottom: none; }

.field-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}

.field-ex {
  font-size: 12.8px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* --- SLIDE TYPE: DUAL PANEL (Document Transfer) --- */
.transfer-row {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 14px;
  align-items: center;
}

.doc-panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.doc-panel h3 {
  margin: 0 0 3px;
  font-size: 15px;
  color: var(--navy);
}

.doc-panel small {
  color: var(--ink-muted);
  display: block;
  margin-bottom: 10px;
}

.doc-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  margin-bottom: 7px;
  color: var(--ink);
}

.transfer-btn-mock {
  background: var(--navy);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid var(--gold);
}

.doc-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}

.doc-action-row:last-child { border-bottom: none; }

.modal-audit-box {
  background: var(--emerald-soft);
  border: 1px solid #b8dec6;
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.modal-audit-box h4 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--emerald);
  text-transform: uppercase;
}

.modal-audit-box ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  font-size: 13px;
  color: #163d27;
}

/* --- SLIDE TYPE: BILLING --- */
.formula-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--navy);
  color: #f8fafc;
  padding: 14px 20px;
  border-radius: var(--radius-md);
}

.formula-piece {
  font-size: 13.5px;
  font-weight: 600;
}

.formula-piece.gold {
  color: var(--gold-bright);
  font-family: var(--font-mono);
  background: rgba(212, 164, 60, 0.14);
  padding: 4px 10px;
  border-radius: 6px;
}

.formula-result {
  background: var(--gold-bright);
  color: var(--obsidian);
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.billing-cols {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  flex: 1;
}

/* --- SLIDE TYPE: HANDOFF --- */
.handoff-files {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.file-spec-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ext-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold-bright);
}

.handoff-cta {
  background: var(--navy);
  color: #f8fafc;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.handoff-cta-btn {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  background: var(--gold-bright);
  color: var(--obsidian);
  padding: 10px 16px;
  border-radius: 8px;
  white-space: nowrap;
}

.boundary-box {
  background: var(--amber-soft);
  border: 1px solid #f0d095;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13.5px;
  color: #573205;
}

/* --- SLIDE TYPE: ARCHIVE (5 DAYS) --- */
.deadline-hero {
  background: var(--crimson);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.deadline-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.archive-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  flex: 1;
}

.archive-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 18px;
}

.archive-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--navy);
}

.archive-card p {
  margin: 8px 0 0;
  font-size: 13.2px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* --- SLIDE TYPE: ERRORS (8 cards) --- */
.errors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  flex: 1;
}

.error-row {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--crimson);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.error-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--crimson);
  padding-top: 2px;
}

.error-row h4 {
  margin: 0 0 3px;
  font-size: 13.8px;
  color: var(--navy);
}

.error-row p {
  margin: 0;
  font-size: 12.4px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* --- SLIDE TYPE: CASES --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  flex: 1;
}

.case-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.case-id {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.case-scenario {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 6px 0 0;
}

.case-verdict {
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.case-verdict summary {
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.case-verdict[open] summary {
  margin-bottom: 10px;
}

.verdict-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 4px 10px;
  border-radius: 5px;
  margin-bottom: 6px;
}

.verdict-pill.crimson { background: var(--crimson); }
.verdict-pill.amber { background: var(--amber); }
.verdict-pill.navy { background: var(--navy); }

.case-reason {
  margin: 0;
  font-size: 12.4px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* --- SLIDE TYPE: CLOSING --- */
.closing-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.closing-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 164, 60, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
}

.closing-card span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-bright);
}

.closing-card h3 {
  margin: 8px 0 6px;
  font-size: 17px;
  color: #ffffff;
}

.closing-card p {
  margin: 0;
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

.closing-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

/* ==========================================================================
   PRESENTER NOTES & BOTTOM CONTROLS
   ========================================================================== */

.notes-drawer {
  max-width: 1160px;
  width: calc(100% - 56px);
  margin: 0 auto 12px;
  background: #132238;
  border: 1px solid rgba(212, 164, 60, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: #e2e8f0;
  display: none;
}

.notes-drawer.open {
  display: block;
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.notes-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
}

.notes-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 15px;
}

.notes-body {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.55;
}

.deck-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(11, 19, 32, 0.92);
  border-top: 1px solid var(--border-dark);
  color: #cbd5e1;
}

.controls-left,
.controls-center,
.controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
}

.ctrl-btn:hover,
.ctrl-btn.active {
  background: rgba(212, 164, 60, 0.18);
  border-color: var(--gold-bright);
  color: #fff;
}

.nav-arrow {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(212, 164, 60, 0.45);
  background: rgba(212, 164, 60, 0.12);
  color: var(--gold-bright);
  font-size: 17px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: all 0.16s ease;
}

.nav-arrow:hover:not(:disabled) {
  background: var(--gold-bright);
  color: var(--obsidian);
}

.nav-arrow:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.progress-readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 140px;
}

#slide-counter {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: #f8fafc;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold-bright);
  width: 5%;
  transition: width 0.25s ease;
}

.kbd-hint {
  font-size: 12px;
  color: #94a3b8;
}

kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1px 6px;
  border-radius: 4px;
  color: #f1f5f9;
}

/* ==========================================================================
   VIEWS 2 & 3: GUIDES, CHECKLISTS & QUIZ (Light Parchment Surface)
   ========================================================================== */

#view-guides,
#view-quiz {
  background: var(--parchment);
  min-height: calc(100vh - 61px);
  padding: 36px 24px 64px;
}

.content-shell {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-hero {
  background: var(--navy);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  border-bottom: 4px solid var(--gold-bright);
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.section-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  margin: 8px 0 10px;
  font-weight: 600;
}

.section-hero p {
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.6;
  max-width: 780px;
}

.section-hero code {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-bright);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.primary-btn {
  background: var(--gold-bright);
  color: var(--obsidian);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
}

.primary-btn:hover {
  background: #e1b34b;
}

.outline-btn {
  background: transparent;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
}

.outline-btn:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.quiz-scoreboard .outline-btn {
  color: var(--navy);
  border-color: var(--border);
}

.quiz-scoreboard .outline-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* Checklists */
.checklists-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checklist-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
}

.checklist-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.checklist-top h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 6px 0 4px;
  color: var(--navy);
}

.checklist-top p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.chk-progress-box {
  min-width: 190px;
  text-align: right;
}

.chk-progress-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald);
}

.chk-bar {
  margin-top: 6px;
  height: 7px;
  background: var(--parchment-deep);
  border-radius: 999px;
  overflow: hidden;
}

.chk-bar-fill {
  height: 100%;
  background: var(--emerald);
  transition: width 0.2s ease;
}

.phase-block {
  margin-top: 20px;
}

.phase-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: var(--parchment);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  margin: 0 0 10px;
}

.chk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chk-item label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  transition: background 0.15s ease;
}

.chk-item label:hover {
  background: var(--parchment);
}

.chk-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--emerald);
  flex-shrink: 0;
}

.chk-item.checked label {
  background: var(--emerald-soft);
  border-color: #c7e6d3;
  color: #2c523b;
  text-decoration: line-through;
}

/* Reference cards */
.reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ref-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}

.ref-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.ref-badge.crimson { background: var(--crimson-soft); color: var(--crimson); }
.ref-badge.gold { background: var(--gold-soft); color: #755008; }
.ref-badge.navy { background: #e8eef6; color: var(--navy); }

.ref-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 10px 0 6px;
  color: var(--navy);
}

.ref-card-header p {
  margin: 0 0 16px;
  font-size: 13.8px;
  color: var(--ink-soft);
}

.ref-numbered-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #4a1010;
}

.glossary-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.glossary-row {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

.glossary-row:last-child { border-bottom: none; padding-bottom: 0; }

.glossary-row dt {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.glossary-row dd {
  margin: 3px 0 0;
  font-size: 13.3px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.program-item {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.program-item h3 {
  margin: 6px 0;
  font-size: 15px;
  color: var(--navy);
}

.program-item p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ==========================================================================
   VIEW 3: QUIZ SIMULATOR
   ========================================================================== */

.quiz-scoreboard {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 72px;
  z-index: 20;
}

.score-stat {
  display: flex;
  flex-direction: column;
}

.score-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.score-stat strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
}

.text-emerald { color: var(--emerald) !important; }

.quiz-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quiz-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
}

.quiz-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.q-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  background: var(--navy);
  color: var(--gold-bright);
  padding: 3px 9px;
  border-radius: 5px;
}

.q-mod {
  font-size: 12px;
  color: var(--ink-muted);
  margin-left: auto;
}

.quiz-card h3 {
  margin: 0 0 16px;
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--navy);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.quiz-opt {
  text-align: left;
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  gap: 11px;
  align-items: flex-start;
  transition: all 0.15s ease;
}

.quiz-opt:hover:not(:disabled) {
  border-color: var(--gold);
  background: #fbf7ee;
}

.quiz-opt:disabled {
  cursor: default;
}

.opt-letter {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--navy);
}

.quiz-opt.is-correct {
  background: var(--emerald-soft);
  border-color: var(--emerald);
  color: #104428;
  font-weight: 600;
}

.quiz-opt.is-wrong {
  background: var(--crimson-soft);
  border-color: var(--crimson);
  color: #6b1414;
}

.quiz-feedback {
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
}

.quiz-feedback.ok {
  background: var(--emerald-soft);
  border-left: 4px solid var(--emerald);
  color: #124228;
}

.quiz-feedback.bad {
  background: var(--crimson-soft);
  border-left: 4px solid var(--crimson);
  color: #5c1313;
}

.quiz-result-banner {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border-left: 6px solid var(--gold-bright);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.quiz-result-banner h2 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 26px;
}

.quiz-result-banner p {
  margin: 0;
  color: #cbd5e1;
}

/* ==========================================================================
   SLIDE OVERVIEW MODAL
   ========================================================================== */

.grid-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 14, 25, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 24px 32px;
}

.grid-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-dark);
}

.modal-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-bright);
}

.grid-modal-header h2 {
  font-family: var(--font-display);
  margin: 4px 0 0;
  font-size: 24px;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 18px;
}

.grid-modal-body {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  padding-top: 20px;
}

.grid-thumb {
  background: var(--parchment);
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.grid-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
}

.grid-thumb.current {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(212, 164, 60, 0.25);
}

.grid-thumb-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.grid-thumb-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

.grid-thumb-tag {
  font-size: 11px;
  color: var(--ink-muted);
}

/* ==========================================================================
   PRINT SUPPORT (Clean A4 Handouts or Slide Deck PDF)
   ========================================================================== */

.print-slides-only {
  display: none;
}

@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .topbar,
  .module-ribbon,
  .deck-controls,
  .notes-drawer,
  .hero-actions,
  .score-actions,
  .grid-modal {
    display: none !important;
  }

  body.printing-slides #view-slides,
  body.printing-slides #view-guides,
  body.printing-slides #view-quiz {
    display: none !important;
  }

  body.printing-slides .print-slides-only {
    display: block !important;
  }

  .print-slide-page {
    page-break-after: always;
    break-after: page;
    margin-bottom: 20px;
  }

  .print-slide-page .slide-frame {
    animation: none;
    box-shadow: none !important;
    border: 1px solid #d1d5db;
    min-height: 0;
  }

  #view-guides,
  #view-quiz {
    padding: 0 !important;
    background: #ffffff !important;
  }

  .checklist-card,
  .ref-card,
  .quiz-card {
    box-shadow: none !important;
    break-inside: avoid;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 960px) {
  .topbar {
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .slide-inner {
    padding: 24px 22px;
  }

  .cover-layout {
    padding: 32px 26px;
  }

  .agenda-grid,
  .comp-grid,
  .pillars-grid,
  .prohibited-layout,
  .roles-grid,
  .steps-grid,
  .tech-grid,
  .flow-grid,
  .uisim-actions,
  .tips-strip,
  .fields-layout,
  .transfer-row,
  .billing-cols,
  .handoff-files,
  .archive-pillars,
  .errors-grid,
  .cases-grid,
  .closing-actions,
  .reference-grid,
  .program-grid,
  .modal-audit-box ul {
    grid-template-columns: 1fr;
  }

  .handoff-cta,
  .deadline-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .deadline-num {
    border-right: none;
    padding-right: 0;
  }

  .controls-right {
    display: none;
  }

  .mode-tabs {
    flex-wrap: wrap;
  }

  .deck-controls {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 14px;
  }
}

/* ==========================================================================
   TOPBAR USER BADGE & LOGOUT + LOGIN GATE
   ========================================================================== */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold-bright);
  background: rgba(212, 164, 60, 0.14);
  border: 1px solid rgba(212, 164, 60, 0.35);
  padding: 6px 11px;
  border-radius: 999px;
}

.logout-btn:hover {
  background: rgba(155, 28, 28, 0.3) !important;
  border-color: #f87171 !important;
  color: #fecaca !important;
}

.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 15%, rgba(212, 164, 60, 0.16), transparent 44%),
    radial-gradient(circle at 84% 85%, rgba(28, 50, 82, 0.65), transparent 52%),
    var(--obsidian);
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: 100%;
  max-width: 490px;
}

.login-card {
  position: relative;
  overflow: hidden;
  background: var(--parchment);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px 36px 28px;
  box-shadow: var(--shadow-stage);
  border-top: 5px solid var(--gold);
}

.login-watermark {
  position: absolute;
  right: 18px;
  top: -10px;
  font-family: var(--font-display);
  font-size: 160px;
  line-height: 1;
  color: rgba(20, 37, 61, 0.05);
  pointer-events: none;
  user-select: none;
}

.login-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.login-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.login-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.login-subkicker {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
}

.login-header {
  margin-top: 22px;
  position: relative;
}

.login-header h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.15;
}

.login-header p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.login-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.login-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.login-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.login-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 132, 34, 0.18);
}

.login-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 13px 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: transparent;
}

.toggle-vis-btn {
  border: none;
  border-left: 1px solid var(--border);
  background: var(--parchment);
  color: var(--ink-soft);
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
}

.toggle-vis-btn:hover {
  color: var(--navy);
  background: var(--parchment-deep);
}

.login-error {
  background: var(--crimson-soft);
  border: 1px solid #f5c6c6;
  border-left: 4px solid var(--crimson);
  color: #6b1414;
  padding: 10px 13px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.login-submit-btn {
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold-bright);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.16s ease, transform 0.12s ease;
}

.login-submit-btn:hover:not(:disabled) {
  background: var(--navy-elevated);
}

.login-submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.login-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

/* ==========================================================================
   MODULE END-OF-SLIDE EVAL CTA, ASSESSMENT SELECTOR & NOTARIO DASHBOARD
   ========================================================================== */

.slide-eval-cta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slide-eval-info {
  font-size: 13px;
  color: var(--ink-soft);
}

.slide-eval-info strong {
  color: var(--navy);
}

.slide-eval-btn {
  background: var(--navy);
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.8px;
  font-weight: 700;
  transition: background 0.16s ease;
}

.slide-eval-btn:hover {
  background: var(--navy-elevated);
}

.assessment-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.assess-card {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.16s ease;
}

.assess-card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.assess-card.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--gold-bright);
  box-shadow: 0 8px 20px rgba(20, 37, 61, 0.22);
}

.assess-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.assess-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.assess-card.active .assess-tag {
  color: var(--gold-bright);
}

.assess-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.assess-card.active .assess-title {
  color: #ffffff;
}

.assess-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.assess-status.passed {
  color: var(--emerald);
  font-weight: 700;
}

.assess-status.retry {
  color: var(--amber);
  font-weight: 700;
}

.assess-card.active .assess-status {
  color: #cbd5e1;
}

.assess-card.active .assess-status.passed {
  color: #86efac;
}

.save-badge {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(134, 239, 172, 0.16);
  border: 1px solid rgba(134, 239, 172, 0.4);
  color: #86efac;
}

/* View 4: Notario Admin Dashboard */
#view-admin {
  background: var(--parchment);
  min-height: calc(100vh - 61px);
  padding: 36px 24px 64px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.kpi-card.gold { border-top-color: var(--gold); }
.kpi-card.emerald { border-top-color: var(--emerald); }

.kpi-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 4px;
}

.admin-table-card {
  padding: 24px 26px;
}

.admin-table-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-table-head h2 {
  margin: 6px 0 0;
}

.admin-timestamp {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.table-scroll {
  overflow-x: auto;
}

.grades-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.2px;
}

.grades-table th,
.grades-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}

.grades-table th:first-child,
.grades-table td:first-child {
  text-align: left;
}

.grades-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  background: var(--parchment);
}

.member-name {
  font-weight: 700;
  color: var(--navy);
}

.member-role {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6e4a07;
}

.grade-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.grade-chip.pass {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid #b9dfc8;
}

.grade-chip.warn {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid #f0d095;
}

.grade-chip.empty {
  color: var(--ink-muted);
}

.status-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-pill.aprobado {
  background: var(--emerald);
  color: #ffffff;
}

.status-pill.progreso {
  background: var(--gold-soft);
  color: #704c08;
}

.status-pill.pendiente {
  background: var(--parchment-deep);
  color: var(--ink-muted);
}

@media (max-width: 960px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media print {
  #view-admin {
    padding: 0 !important;
    background: #ffffff !important;
  }
}

.slide-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 760px;
  margin: 18px auto 0;
}
.media-item { margin: 0; }
.media-item video,
.media-item img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 10px;
  background: #0f172a;
}
.media-item figcaption { margin-top: 6px; font-size: 0.78rem; opacity: 0.75; }
.media-item .media-print { display: none; }
@media print {
  .media-item video { display: none; }
  .media-item .media-print { display: block; }
  .print-slide-page .slide-frame { display: block; }
}
