/* ============================================================
   Pipeline log pane (2026-10-06)

   A tail of the run's newest log file, shown on demand from the
   spine. It reads as a terminal because it is one: the page's ink
   (--content) becomes the ground and the page's paper (--b2) the
   text, so the pane darkens with any palette retune instead of
   holding a second, frozen dark scheme. Every rule is scoped under
   #logbox — nothing else on the page may inherit a terminal voice
   by accident. Global form rules (full‑width inputs, block labels,
   the card‑styled pre, the loud pill button) are reversed here one
   by one, because the pane is chrome, not a form.
   ============================================================ */

/* Pane container – a dark terminal. */
#logbox {
  margin-top: 10px;
  border: 1px solid var(--b3);
  border-radius: var(--r-inner);
  overflow: hidden;
  background: var(--content);   /* ink becomes background */
  color: var(--b2);              /* paper becomes text */
}
#logbox[hidden] { display: none; }

/* Top row – file name, follow toggle, close button. */
#logbox .logtop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  /* The page's border greys are tuned for light surfaces; on a dark
     background we prefer a very light hairline to keep the line visible
     without adding another palette variable. */
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: .72rem;
  color: var(--grey);           /* muted‑on‑dark */
}

#logbox #logfile {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--grey);
}

#logbox .logtop .hint {
  margin: 0 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: var(--grey);
  cursor: pointer;
}

/* The follow checkbox – the global rule forces width:100%; we need a
   natural size. */
#logbox input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  margin: 0;
}

/* The close button – the global button style is a teal‑pill; here we want
   a quiet ghost button. */
#logbox #logclose {
  padding: 2px 10px;
  font-size: .68rem;
  font-weight: 500;
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--b2);
}
#logbox #logclose:hover {
  border-color: var(--primary);
  color: #ffffff;
}

/* Log body – undo the global pre styling (light background, border,
   radius, .73rem). */
#logbox #logbody {
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  max-height: 320px;
  overflow-y: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: .85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}
#logbox #logbody:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--primary);
}
