/* ═══════════════════════════════════════════
   LIGHT THEME: Encounter/event, narrative, scoring
   ═══════════════════════════════════════════ */

  [data-theme="light"] .event-card,

  [data-theme="light"] .event-narrative-section,

  [data-theme="light"] .round-score-section,

  [data-theme="light"] .encounter-summary-section,

  [data-theme="light"] .encounter-respond-btn,

  [data-theme="light"] .acknowledge-btn,

  [data-theme="light"] .encounter-flee-btn,

  [data-theme="light"] .event-choice-btn {
    background: linear-gradient(180deg, #e7e1d8, #dcd5ca) !important;
    border: 1.5px solid #a89e8f !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.5) !important;
  }

  [data-theme="light"] .event-status-strip {
    background: #e2dcd3;
    border-color: #b8ad9e;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }

  [data-theme="light"] .event-status-cell {
    border-right-color: #c4b9ab;
  }

  [data-theme="light"] .loot-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }

  [data-theme="light"] .encounter-summary-section {
    background: #e2dcd3;
    border-color: #b8ad9e;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }

  [data-theme="light"] .officer-hints-section {
    background: #e2dcd3;
    border-color: #b8ad9e;
    border-left: 3px solid var(--amber);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }

  [data-theme="light"] .officer-hint {
    color: #1c1917;
  }

  [data-theme="light"] .event-screen-header {
    background: linear-gradient(180deg, rgba(139,58,0,0.04), var(--bg2));
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  [data-theme="light"] .outcome-narrative {
    background: rgba(139,58,0,0.04);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }

  [data-theme="light"] .acknowledge-btn {
    background: linear-gradient(180deg, #8b3a00, #6b2d00);
    border: 1px solid #5a2500;
    color: #fff;
    box-shadow: 0 2px 6px rgba(139,58,0,0.35), 0 1px 2px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.15);
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  }

  [data-theme="light"] .acknowledge-btn:active {
    background: #5a2500;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(1px);
  }

  [data-theme="light"] .encounter-respond-btn {
    background: linear-gradient(180deg, #b45309, #9a4608);
    border: 2px solid #8a3f07;
    color: #fff;
    box-shadow: 0 2px 6px rgba(180,83,9,0.35), 0 1px 2px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.12);
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  }

  [data-theme="light"] .encounter-respond-btn:active {
    background: #8a3f07;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(1px);
  }

  [data-theme="light"] .encounter-flee-btn {
    border: 1px solid var(--red);
    color: var(--red);
    background: rgba(190,18,60,0.08);
    box-shadow: 0 1px 3px rgba(190,18,60,0.15);
    font-weight: 600;
  }

  [data-theme="light"] .encounter-flee-btn:hover {
    background: linear-gradient(180deg, #be123c, #a5102f);
    border-color: #a5102f;
    color: #fff;
    box-shadow: 0 2px 5px rgba(190,18,60,0.25);
  }

  [data-theme="light"] .encounter-flee-btn:active {
    background: #8e0e29;
    color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
    transform: translateY(1px);
  }

  [data-theme="light"] .event-choice-btn {
    background: linear-gradient(180deg, #e7e1d8, #dcd5ca);
    border: 1.5px solid #a89e8f;
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.5);
  }

  [data-theme="light"] .event-choice-btn:hover {
    background: linear-gradient(180deg, #dcd5ca, #d2cabe);
    border-color: var(--accent);
    box-shadow: 0 2px 6px rgba(139,58,0,0.2);
  }

  [data-theme="light"] .event-choice-btn:active {
    background: #cec6b8;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.12);
    transform: translateY(1px);
  }

  [data-theme="light"] .event-type-badge.hazard {
    background: rgba(190,18,60,0.07);
  }

  [data-theme="light"] .event-type-badge.encounter,

  [data-theme="light"] .event-type-badge.system {
    background: rgba(180,83,9,0.07);
  }

  [data-theme="light"] .event-type-badge.anomaly {
    background: rgba(139,58,0,0.07);
  }

  [data-theme="light"] .event-type-badge.salvage {
    background: rgba(21,128,61,0.07);
  }

  [data-theme="light"] .ambient-threat-section {
    border-left-color: var(--red);
  }

  [data-theme="light"] .salvage-section {
    background: rgba(180,83,9,0.05);
    box-shadow: 0 1px 3px rgba(180,83,9,0.06);
  }

  [data-theme="light"] .outcome-subsystem-warning {
    background: rgba(180,83,9,0.06);
  }

  [data-theme="light"] .round-score-section {
    background: #e2dcd3;
    border-color: #b8ad9e;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }

  [data-theme="light"] .event-narrative-section {
    background: rgba(139,58,0,0.03);
    border-bottom: 1px solid #c4b9ab;
  }

  [data-theme="light"] .event-screen-narrative {
    color: #1c1917;
  }

  [data-theme="light"] .ambient-threat-section {
    background: rgba(190,18,60,0.04);
    border-left-width: 3px;
  }

  [data-theme="light"] .ambient-threat-value {
    color: #44403c;
  }

  [data-theme="light"] .cumulative-damage-section {
    background: rgba(139,58,0,0.03);
    border-top: 1px solid #c4b9ab;
  }

  [data-theme="light"] .screen {
    background: transparent;
  }

/* ── Auto-generated gap fills ── */

[data-theme="light"] .narrative-mode-toggle .mode-opt.active {
  border-color: rgba(139,58,0,0.3);
  background: rgba(139,58,0,0.1);
}
[data-theme="light"] .diary-font-btn {
  background: var(--bg2) !important;
  border: 1px solid #a89880 !important;
}
[data-theme="light"] .diary-font-btn:active {
  border-color: #a89880 !important;
}
[data-theme="light"] .diary-toggle-all-btn {
  background: var(--bg2) !important;
  border: 1px solid #a89880 !important;
}
[data-theme="light"] .diary-toggle-all-btn:active {
  border-color: #a89880 !important;
}
[data-theme="light"] .diary-salvage {
  background: rgba(190,18,60,0.05);
}

/* ===== LIGHT THEME: SHIP'S LOG PARITY ===== */
[data-theme="light"] .diary-loading,
[data-theme="light"] .diary-empty {
  color: var(--dim);
}

[data-theme="light"] .diary-header {
  background: linear-gradient(180deg, #f7f2eb 0%, #ece4d9 100%);
  border-color: #c9beb0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 10px 22px rgba(0,0,0,0.05);
}

[data-theme="light"] .diary-date-group {
  background: linear-gradient(180deg, #f7f2eb 0%, #ece4d9 100%);
  border: 1px solid #c9beb0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 12px 24px rgba(0,0,0,0.05);
}

[data-theme="light"] .diary-date-header {
  background: transparent;
  border-bottom-color: #d3c8ba;
}

[data-theme="light"] .diary-date-label,
[data-theme="light"] .diary-manifest-name {
  color: var(--text);
}

[data-theme="light"] .diary-date-stats,
[data-theme="light"] .diary-encounter-title,
[data-theme="light"] .diary-meta,
[data-theme="light"] .diary-round-sep,
[data-theme="light"] .diary-loot-title {
  color: var(--dim);
}

[data-theme="light"] .diary-entry {
  background: linear-gradient(180deg, #faf6f0 0%, #eee6dd 100%);
  border-color: #d1c6b8;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.75),
    0 10px 20px rgba(0,0,0,0.04);
}

[data-theme="light"] .diary-entry-body,
[data-theme="light"] .diary-loot-section,
[data-theme="light"] .diary-entry-actions {
  border-top-color: #d6ccbf;
}

[data-theme="light"] .diary-action-btn {
  background: linear-gradient(180deg, #f3ede5 0%, #e7ded2 100%);
  border-color: #c9beb0;
  color: var(--dim);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 8px 18px rgba(0,0,0,0.04);
}

[data-theme="light"] .diary-share-btn {
  color: var(--accent);
  border-color: rgba(139,58,0,0.22);
}

[data-theme="light"] .diary-delete-btn {
  background: rgba(190,18,60,0.08) !important;
}

[data-theme="light"] .diary-salvage {
  border-left-color: rgba(190,18,60,0.3);
}

/* Strong overrides for diary components that inherit dark panel styling */
[data-theme="light"] .diary-header {
  background: linear-gradient(180deg, #f7f2eb 0%, #ece4d9 100%) !important;
  border-color: #c9beb0 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 10px 22px rgba(0,0,0,0.05) !important;
}

[data-theme="light"] .diary-date-group {
  background: linear-gradient(180deg, #f7f2eb 0%, #ece4d9 100%) !important;
  border-color: #c9beb0 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 12px 24px rgba(0,0,0,0.05) !important;
}

[data-theme="light"] .diary-entry {
  background: linear-gradient(180deg, #faf6f0 0%, #eee6dd 100%) !important;
  border-color: #d1c6b8 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.76),
    0 10px 20px rgba(0,0,0,0.04) !important;
}

[data-theme="light"] .diary-font-btn,
[data-theme="light"] .diary-toggle-all-btn,
[data-theme="light"] .diary-action-btn {
  background: linear-gradient(180deg, #f3ede5 0%, #e7ded2 100%) !important;
  border-color: #c9beb0 !important;
  color: var(--dim) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 8px 18px rgba(0,0,0,0.04) !important;
}

[data-theme="light"] .diary-share-btn {
  color: var(--accent) !important;
  border-color: rgba(139,58,0,0.22) !important;
}
