/* ==========================================================================
   2ne1.com — Prototype D2: The Split-Pane Workbench Browser
   Master-Detail File / Synth Preset Explorer & Technical Datasheet Index
   Inspired by monome.org, Teenage Engineering field manuals, Panic & NeXTSTEP
   ========================================================================== */

:root,
html[data-theme="dark"] {
  --bg-app: #0b0d10;
  --bg-pane-left: #0f1217;
  --bg-pane-right: #0b0d10;
  --bg-elevated: #141820;
  --bg-row-hover: #181d27;
  --bg-row-active: #1c2433;
  --bg-code: #080a0d;

  --text-primary: #edf0f5;
  --text-secondary: #a3adbf;
  --text-muted: #687387;
  --text-invert: #0b0d10;

  --border-hairline: #232936;
  --border-strong: #3a4459;

  --accent-primary: #ff5722;    /* Teenage Engineering field orange */
  --accent-ai: #38bdf8;         /* Oscilloscope cyan */
  --accent-alife: #34d399;      /* Phosphor emerald */
  --accent-hardware: #f59e0b;   /* Amber LED */
  --accent-archive: #c084fc;    /* Ultraviolet */

  --badge-bg: rgba(255, 255, 255, 0.05);
  --shadow-sheet: 0 16px 48px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

html[data-theme="paper"] {
  --bg-app: #f3f0e6;
  --bg-pane-left: #ebe7db;
  --bg-pane-right: #f7f4ec;
  --bg-elevated: #efece2;
  --bg-row-hover: #e3decb;
  --bg-row-active: #161615;
  --bg-code: #e6e2d5;

  --text-primary: #151514;
  --text-secondary: #3f3e3a;
  --text-muted: #6e6b63;
  --text-invert: #f7f4ec;

  --border-hairline: #cbc5b4;
  --border-strong: #8c8676;

  --accent-primary: #d93800;    /* International engineering orange */
  --accent-ai: #0353a4;         /* Blueprint cobalt */
  --accent-alife: #0b6e4f;      /* Bio-ink green */
  --accent-hardware: #b45309;   /* Copper / amber */
  --accent-archive: #6d28d9;    /* Archival violet */

  --badge-bg: rgba(0, 0, 0, 0.055);
  --shadow-sheet: 0 16px 48px rgba(20, 20, 18, 0.18);
  color-scheme: light;
}

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

html,
body {
  height: 100%;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 960px) {
  body {
    overflow: hidden;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

/* ==========================================================================
   1. TOP PROTOTYPE SWITCHER BAR (32px)
   ========================================================================== */
.proto-bar {
  height: 32px;
  background: var(--bg-code);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  z-index: 100;
}

.proto-bar__left,
.proto-bar__links,
.proto-bar__right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.proto-bar__label {
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.proto-link {
  padding: 2px 7px;
  border: 1px solid transparent;
  color: var(--text-secondary);
  transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}

.proto-link:hover {
  color: var(--text-primary);
  border-color: var(--border-hairline);
  background: var(--bg-elevated);
}

.proto-link--active {
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
  border-color: var(--accent-primary);
}

.proto-link--root {
  color: var(--accent-ai);
  border-color: var(--border-hairline);
  margin-left: 4px;
}

.theme-toggle-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-primary);
}

/* ==========================================================================
   2. MASTER-DETAIL SPLIT-PANE WORKBENCH (100dvh - 32px)
   ========================================================================== */
.workbench {
  display: grid;
  grid-template-columns: minmax(335px, 34%) 1fr;
  height: calc(100dvh - 32px);
  width: 100%;
  overflow: hidden;
}

/* ==========================================================================
   3. LEFT PANE: PERSISTENT DIRECTORY TREE
   ========================================================================== */
.master-pane {
  background: var(--bg-pane-left);
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  user-select: none;
}

.master-header {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.master-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.master-brand__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.master-brand__title span {
  color: var(--accent-primary);
  font-family: 'JetBrains Mono', monospace;
}

.master-brand__tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-muted);
}

.master-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.master-search-input {
  width: 100%;
  background: var(--bg-app);
  border: 1px solid var(--border-hairline);
  padding: 4px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-primary);
  outline: none;
}

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

.master-search-clear {
  background: var(--bg-app);
  border: 1px solid var(--border-hairline);
  padding: 4px 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  cursor: pointer;
}

.master-search-clear:hover {
  color: var(--text-primary);
}

.master-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
}

.cat-pills {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.cat-pill {
  background: var(--bg-app);
  border: 1px solid var(--border-hairline);
  padding: 1px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-secondary);
  cursor: pointer;
}

.cat-pill:hover {
  color: var(--text-primary);
}

.cat-pill[aria-pressed="true"] {
  background: var(--text-primary);
  color: var(--text-invert);
  border-color: var(--text-primary);
  font-weight: 600;
}

.kbd-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}

/* Directory Tree Scroll Area */
.directory-tree {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.dir-group {
  border-bottom: 1px solid var(--border-hairline);
}

.dir-group__header {
  padding: 4px 10px;
  background: var(--bg-code);
  border-bottom: 1px solid var(--border-hairline);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dir-item {
  width: 100%;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 4.5px 10px;
  border: none;
  border-bottom: 1px solid var(--border-hairline);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.08s;
}

.dir-item:last-child {
  border-bottom: none;
}

.dir-item:hover {
  background: var(--bg-row-hover);
}

.dir-item[aria-selected="true"] {
  background: var(--bg-row-active);
  border-left: 3px solid var(--accent-primary);
  padding-left: 7px;
}

html[data-theme="paper"] .dir-item[aria-selected="true"] {
  color: var(--text-invert);
}

html[data-theme="paper"] .dir-item[aria-selected="true"] .dir-item__idx,
html[data-theme="paper"] .dir-item[aria-selected="true"] .dir-item__meta {
  color: #d6d2c4;
}

.dir-item__idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.dir-item[aria-selected="true"] .dir-item__idx {
  color: var(--accent-primary);
}

.dir-item__title {
  font-size: 12.2px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dir-item[aria-selected="true"] .dir-item__title {
  font-weight: 600;
}

.dir-item__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  padding: 1px 4px;
  background: var(--badge-bg);
  border: 1px solid var(--border-hairline);
  white-space: nowrap;
}

.master-footer {
  padding: 6px 10px;
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.master-footer__links {
  display: flex;
  gap: 8px;
}

.master-footer__links a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* ==========================================================================
   4. RIGHT PANE: INSTANT SPECIMEN & DATASHEET STAGE
   ========================================================================== */
.detail-pane {
  background: var(--bg-pane-right);
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Sticky Top Specimen Control Bar */
.stage-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-hairline);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.stage-topbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-back-btn {
  display: none;
  background: var(--accent-primary);
  color: #fff;
  border: 1px solid var(--accent-primary);
  padding: 3px 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.spec-id-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  background: var(--accent-primary);
  color: #fff;
  letter-spacing: 0.04em;
}

.spec-year-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 2px 7px;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}

.spec-substrate-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.stage-topbar__right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.wb-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: var(--bg-app);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.12s, background-color 0.12s;
}

.wb-btn:hover {
  border-color: var(--accent-primary);
  background: var(--bg-row-hover);
}

.wb-btn--primary {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
}

.wb-btn--primary:hover {
  filter: brightness(1.1);
  background: var(--accent-primary);
}

.wb-btn--cyan {
  border-color: var(--accent-ai);
  color: var(--accent-ai);
}

.wb-btn--amber {
  border-color: var(--accent-hardware);
  color: var(--accent-hardware);
}

/* Stage Body */
.stage-content {
  padding: 18px 22px 48px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

/* Specimen Title Header Block */
.datasheet-header {
  border: 1px solid var(--border-hairline);
  background: var(--bg-elevated);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.datasheet-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.datasheet-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 8px;
}

.datasheet-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 82ch;
  line-height: 1.55;
}

.datasheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
}

/* Hairline Technical Specs Grid */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  border-top: 1px solid var(--border-hairline);
  border-left: 1px solid var(--border-hairline);
  margin-bottom: 16px;
  background: var(--bg-app);
}

.spec-cell {
  padding: 8px 12px;
  border-right: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.spec-cell__label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.spec-cell__val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Datasheet Panels & Sections */
.ds-panel {
  border: 1px solid var(--border-hairline);
  background: var(--bg-elevated);
  margin-bottom: 16px;
}

.ds-panel__bar {
  padding: 7px 12px;
  background: var(--bg-code);
  border-bottom: 1px solid var(--border-hairline);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ds-panel__body {
  padding: 14px 16px;
}

.ds-panel__body--flush {
  padding: 0;
}

.ds-prose h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--text-primary);
}

.ds-prose h3:first-child {
  margin-top: 0;
}

.ds-prose p {
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
  max-width: 78ch;
}

.ds-prose ul {
  margin: 6px 0 12px 18px;
  color: var(--text-secondary);
}

.ds-prose li {
  margin-bottom: 5px;
  line-height: 1.5;
}

.ds-prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 1px 5px;
  background: var(--bg-code);
  border: 1px solid var(--border-hairline);
}

/* ==========================================================================
   5. ITEM 00: MONOME-STYLE FULL 1997–2026 MASTER DATASHEET TABLE
   ========================================================================== */
.overview-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-hairline);
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.overview-table th,
.overview-table td {
  border-bottom: 1px solid var(--border-hairline);
  border-right: 1px solid var(--border-hairline);
  padding: 6px 10px;
  text-align: left;
  vertical-align: middle;
}

.overview-table th:last-child,
.overview-table td:last-child {
  border-right: none;
}

.overview-table thead th {
  background: var(--bg-code);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.overview-row {
  cursor: pointer;
  transition: background-color 0.08s;
}

.overview-row:hover {
  background: var(--bg-row-hover);
}

.overview-inline-detail {
  background: var(--bg-code);
}

.overview-inline-detail td {
  padding: 12px 16px;
}

/* ==========================================================================
   6. INTERACTIVE WIDGETS IN RIGHT PANE
   ========================================================================== */

/* 6A. Evolution & Foundation 6-Generation Scrubber */
.evo-workbench {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
}

@media (max-width: 820px) {
  .evo-workbench {
    grid-template-columns: 1fr;
  }
}

.evo-stage-media {
  background: #050608;
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.evo-stage-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  min-height: 310px;
}

.evo-stage-img-wrap img {
  max-width: 100%;
  max-height: 380px;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--border-hairline);
}

.evo-scrubber-controls {
  padding: 10px 12px;
  background: var(--bg-code);
  border-top: 1px solid var(--border-hairline);
}

.evo-gen-buttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.evo-gen-pill {
  padding: 5px 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  cursor: pointer;
  text-align: center;
}

.evo-gen-pill:hover {
  border-color: var(--accent-primary);
}

.evo-gen-pill[aria-pressed="true"] {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  font-weight: 700;
}

.evo-rationale-box {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  padding: 8px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
}

/* 6B. Lux Automata Interactive 3D Voxel Canvas */
.lux-stage-wrap {
  position: relative;
  background: #06080c;
  height: 320px;
  border-bottom: 1px solid var(--border-hairline);
  overflow: hidden;
}

.lux-stage-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.lux-hud-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--bg-code);
  border-bottom: 1px solid var(--border-hairline);
}

/* 6C. Uncropped Contact Sheets (Zero-Crop Image Grids) */
.contact-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.contact-sheet--dense {
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}

.contact-frame {
  border: 1px solid var(--border-hairline);
  background: var(--bg-code);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: zoom-in;
  transition: border-color 0.12s;
}

.contact-frame:hover {
  border-color: var(--accent-primary);
}

.contact-frame__img-box {
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07090c;
  min-height: 150px;
}

.contact-frame__img-box img {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.contact-frame__caption {
  padding: 6px 8px;
  border-top: 1px solid var(--border-hairline);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

/* 6D. iPad Patch Notebook PDF Explorer */
.pdf-workbench {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 540px;
}

@media (max-width: 820px) {
  .pdf-workbench {
    grid-template-columns: 1fr;
  }
}

.pdf-list {
  border-right: 1px solid var(--border-hairline);
  background: var(--bg-code);
  display: flex;
  flex-direction: column;
}

.pdf-item-btn {
  padding: 7px 10px;
  border: none;
  border-bottom: 1px solid var(--border-hairline);
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdf-item-btn:hover {
  background: var(--bg-row-hover);
}

.pdf-item-btn[aria-selected="true"] {
  background: var(--bg-row-active);
  border-left: 3px solid var(--accent-primary);
}

html[data-theme="paper"] .pdf-item-btn[aria-selected="true"] {
  color: var(--text-invert);
}

.pdf-viewer-stage {
  display: flex;
  flex-direction: column;
  background: #0a0c10;
}

.pdf-viewer-iframe {
  width: 100%;
  height: 500px;
  border: none;
  background: #1a1d24;
}

/* 6E. E-Ink Bistable Dither Flash Effect */
@keyframes einkBistableFlash {
  0% { filter: invert(1) contrast(3) grayscale(1); }
  35% { filter: invert(0) contrast(2.5) grayscale(1); }
  65% { filter: invert(0.85) contrast(2) sepia(0.3); }
  100% { filter: none; }
}

.is-eink-flashing {
  animation: einkBistableFlash 0.55s steps(4) forwards;
}

/* ==========================================================================
   7. MOBILE RESPONSIVE SLIDE-OVER DRAWER (< 960px)
   ========================================================================== */
@media (max-width: 959px) {
  .workbench {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100dvh - 32px);
    overflow: visible;
  }

  .master-pane {
    height: auto;
    border-right: none;
  }

  .directory-tree {
    overflow: visible;
  }

  .detail-pane {
    position: fixed;
    inset: 32px 0 0 0;
    z-index: 80;
    background: var(--bg-pane-right);
    transform: translateX(102%);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: var(--shadow-sheet);
  }

  body.mobile-detail-open .detail-pane {
    transform: translateX(0);
  }

  .mobile-back-btn {
    display: inline-flex;
  }
}

/* ==========================================================================
   8. LIGHTBOX MODAL (<dialog>) FOR UNCROPPED CONTACT SHEETS
   ========================================================================== */
.lightbox-dialog {
  margin: auto;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  max-width: min(94vw, 1100px);
  max-height: 90dvh;
  width: 100%;
  padding: 0;
  box-shadow: var(--shadow-sheet);
}

.lightbox-dialog::backdrop {
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(3px);
}

.lightbox-dialog__bar {
  padding: 8px 12px;
  background: var(--bg-code);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}

.lightbox-dialog__body {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050608;
  max-height: calc(90dvh - 50px);
  overflow: auto;
}

.lightbox-dialog__body img {
  max-width: 100%;
  max-height: 78dvh;
  object-fit: contain;
}
