/* Frame 3 — Diff Lineage Threads.
 *
 * Hairline SVG connectors between matching numerics in the AI Draft and
 * Reviewer Final panes of the review-detail surface. Signature move #2 —
 * lineage threads on hover, never always-on. Strictly visual; no data
 * dependency.
 */

/* Numeric span emitted by diff_lineage.js. Dotted-underline teases the
 * affordance without shouting. */
.diff-lineage-numeric {
  border-bottom: 1px dotted var(--primary, #1F5EFF);
  padding-bottom: 1px;
  cursor: help;
  transition: background 120ms ease;
}

.diff-lineage-numeric--hover {
  background: var(--primary-soft, #EDF3FF);
  border-radius: 2px;
}

/* Full-page SVG overlay — pointer-events:none so the thread never
 * steals hover from the pane text. */
#diff-lineage-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.diff-lineage-thread {
  fill: none;
  stroke: var(--primary, #1F5EFF);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.65;
  stroke-linecap: round;
}

/* ==========================================================================
 * Frame 3 — queue chrome + sticky action bar
 *
 * Mirrors `Frame3_Inbox.jsx`: the top-strip carries an "N awaiting · X/Y"
 * set of chips with prev/next arrows; the bottom carries a single action
 * bar with the five canonical reviewer actions and their keyboard keys.
 * Both wrap the existing editor/diff scaffolding — no layout teardown.
 * ========================================================================== */

/* ---- Top-strip queue chrome (sits in the page-header right slot) ---- */
.review-queue-chrome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.review-queue-chrome .queue-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--border, #E5E9EE);
  border-radius: 2px;
  background: var(--surface, #fff);
  color: var(--text-secondary, #334155);
  font-size: 11px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-variant-numeric: tabular-nums;
}

.review-queue-chrome .queue-chip strong {
  color: var(--ink, #0F1720);
  font-weight: 600;
}

/* Current-position chip gets the subtle accent wash so the reviewer
 * always reads "where am I" before they read "how big is the queue." */
.review-queue-chrome .queue-chip-position {
  background: var(--accent-tint, var(--primary-soft, #EBF1FF));
  border-color: var(--accent-tint, var(--primary-soft, #EBF1FF));
  color: var(--primary, #1F5EFF);
}
.review-queue-chrome .queue-chip-position strong {
  color: var(--primary, #1F5EFF);
}

.review-queue-chrome .queue-nav-btn {
  min-width: 28px;
  padding: 0 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1;
}

.review-queue-chrome .queue-nav-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

/* ---- Diff card hero emphasis ----
 * The base `.rd-diff-card` looks like every other card; as the Frame 3
 * page hero it deserves a touch more structural weight (2px accent border
 * on the left edge) without shouting. */
.rd-diff-card.rd-diff-card--hero {
  border-left: 2px solid var(--accent, var(--primary, #1F5EFF));
}

/* ---- Sticky bottom action bar ---- */
.frame3-action-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin: 16px -32px 0;     /* bleed to the edges of .main-content padding */
  background: var(--surface, #fff);
  border-top: 1px solid var(--border, #E5E9EE);
  box-shadow: 0 -1px 3px rgba(15, 23, 32, 0.04);
  flex-wrap: wrap;
}

.frame3-action-bar .frame3-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.frame3-action-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  opacity: 0.7;
}

.frame3-action-hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted, #64748B);
  letter-spacing: 0.01em;
}

.frame3-action-hint .frame3-action-kbd {
  color: var(--text-muted, #64748B);
  margin: 0 2px;
}

@media (max-width: 900px) {
  .frame3-action-bar {
    margin: 16px -12px 0;
    padding: 10px 12px;
  }
  .frame3-action-hint {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 6px;
  }
}

@media print {
  .frame3-action-bar { display: none; }
  .review-queue-chrome { display: none; }
}
