/* Tokens and page chrome come from /pinon-ui.css (PinonUICore); this
   file was the one base.css was measured against, so everything above
   `code` was byte-for-byte the shared rule and is gone. What stays is
   Kiln's alone: firings, logs, tabs, the secret forms. */

code { font-family: ui-monospace, monospace; font-size: 0.85em; }
tr.firing { cursor: pointer; }
tr.firing:hover, tr.firing.selected { background: var(--well); }
/* The five lifecycle states, on the tokens the suite promoted for them
   (theme.md, 2026-09-18). Three of these used to render as body text.
   Colour alone does not carry the state -- --chile and --ochre sit a
   hair from --resin in luminance -- so each dark one has a second cue. */
.stage-status.queued { color: var(--muted); }
.stage-status.running { color: var(--ochre); font-style: italic; }
.stage-status.succeeded { color: var(--ok); }
.stage-status.failed { color: var(--chile); font-weight: 600; }
.stage-status.cancelled { color: var(--resin); text-decoration: line-through; }
pre.log {
  margin: 0;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  overflow: auto;
  max-height: 28rem;
  font: 12px/1.4 ui-monospace, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Views: firings / secrets / workers / owners. Same tokens as above --
   no new colours, so the three themes keep working without a fourth
   set of values to maintain. */
.tabs {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}
.tabs .tab {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 4px 4px 0 0;
}
.tabs .tab:hover {
  background: var(--well);
  color: var(--fg);
}
.tabs .tab.on {
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-color: var(--card);
  margin-bottom: -0.5rem;
  font-weight: 600;
}
/* Pushes the logout button to the far end without absolute positioning,
   so it stays put when the tabs wrap on a narrow window. */
.tabs button {
  margin-left: auto;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 34rem;
}
.stack label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--muted);
}
.stack input,
.stack select,
.stack textarea {
  font: inherit;
  color: var(--fg);
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
}
.stack textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  resize: vertical;
}
.stack button {
  align-self: flex-start;
}

code.dim {
  color: var(--muted);
}
button.danger {
  color: var(--bad);
}
/* A minted token is shown exactly once, so it has to be easy to select
   and hard to mistake for decoration. */
.token-once {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--well);
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 0.6rem;
  overflow-wrap: anywhere;
  user-select: all;
}
