/* Results Desk — full-screen sheet over the app, matching the Data Room's paper-and-ink language. */
#rd-overlay {
  /* above the Data Room panel (700), below the file viewer (6100) */
  position: fixed; inset: 0; z-index: 6000;
  background: rgba(24, 22, 15, 0.35);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
#rd-overlay[hidden] { display: none; }

.rd-sheet {
  width: min(1240px, calc(100vw - 48px));
  height: min(860px, calc(100vh - 48px));
  background: var(--bg);
  border-radius: var(--r);
  box-shadow: var(--glass-shadow);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.rd-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 18px 22px 12px; border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}
.rd-title { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0; }
.rd-sub { font-size: 12px; color: var(--muted); margin: 3px 0 0; max-width: 720px; }
.rd-close {
  border: none; background: none; font-size: 26px; line-height: 1;
  color: var(--faint); cursor: pointer; padding: 2px 6px;
}
.rd-close:hover { color: var(--ink); }

.rd-controls {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  padding: 12px 22px; background: var(--surface-warm); border-bottom: 1px solid var(--hairline-soft);
}
.rd-controls label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.rd-controls input, .rd-controls select {
  border: 1px solid var(--hairline); border-radius: 8px; background: var(--surface);
  padding: 7px 9px; font: 13px var(--sans); color: var(--ink); width: 108px;
}
.rd-controls .rd-holes-lbl input { width: 220px; }
.rd-unit { text-transform: none; color: var(--faint); }

.rd-hint { font-size: 12px; color: var(--muted); margin: 0; padding: 8px 22px; }
.rd-hint.err { color: #9E1B1B; }

.rd-body {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.rd-pane {
  min-height: 0; display: flex; flex-direction: column;
  padding: 14px 22px 18px; overflow: hidden;
}
.rd-pane + .rd-pane { border-left: 1px solid var(--hairline); background: var(--surface); }
.rd-pane-title {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.rd-actions-inline { display: flex; gap: 8px; }

.rd-table { flex: 1; overflow: auto; }
.rd-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rd-table th {
  text-align: left; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--faint); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; background: var(--bg);
}
.rd-table td { padding: 7px 8px; border-bottom: 1px solid var(--hairline-soft); color: var(--ink); }
.rd-row { cursor: pointer; }
.rd-row:hover td { background: var(--accent-soft); }
.rd-flag {
  font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent-soft); border-radius: 4px; padding: 1px 5px; margin-left: 6px;
}
.rd-audit td {
  background: var(--surface-warm); font: 11.5px var(--mono); color: var(--muted); padding: 8px 10px;
}
.rd-audit-t { color: var(--faint); font-family: var(--sans); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; margin-right: 6px; }
.rd-nohits { font-size: 11.5px; color: var(--muted); padding: 10px 2px 0; }

.rd-release { flex: 1; overflow: auto; font-size: 13px; line-height: 1.55; color: var(--ink); }
.rd-release h1 { font-size: 19px; margin: 12px 0 6px; }
.rd-release h2 { font-size: 14px; margin: 16px 0 6px; }
.rd-release table { border-collapse: collapse; font-size: 12px; margin: 8px 0; }
.rd-release th, .rd-release td { border: 1px solid var(--hairline); padding: 4px 8px; }
.rd-release blockquote {
  margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); color: var(--accent-ink); font-size: 12px;
}
.rd-empty { color: var(--faint); font-size: 12.5px; }

@media (max-width: 900px) {
  .rd-body { grid-template-columns: 1fr; overflow: auto; }
  .rd-pane + .rd-pane { border-left: none; border-top: 1px solid var(--hairline); }
}
