/* web/kiln.css -- the Kiln: the tools, the stage and the panel side by side; stacked on a
   phone. Colours and type come from chrome.css and notebook.css (--rule, --muted, --blue,
   --amber, --green, --red, --mono), as the robot bench's do. */
main.kiln-page { max-width: none; }
.kiln { display: grid; grid-template-columns: 200px minmax(0, 1fr) 320px; gap: 16px; margin-top: 20px; height: calc(100vh - 210px); min-height: 560px; }
.tools, .panel { overflow-y: auto; border: 1px solid var(--rule); padding: 8px 12px; }
/* The panel's tools first, each on a row or two, so that every button shows at 1280 x 720; the
   last edit's fields take what height is left, and scroll in it. */
.panel { display: flex; flex-direction: column; }
.panel section { flex: none; }
.panel section.last { flex: 1 1 auto; min-height: 96px; overflow-y: auto; align-content: start; }
.tools h2, .panel h2 { font-size: 13px; margin: 10px 0 4px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.panel .row h2 { margin: 0; min-width: 52px; }
.tools .group { display: flex; flex-wrap: wrap; gap: 4px; }
/* The buttons in the site's graphite, as the bench's toolbar: no fill of their own; pressed is blue. */
.kiln button { font: inherit; font-size: 13px; padding: 3px 8px; border: 1px solid #5F5E5A; color: var(--fg); background: var(--bg); cursor: pointer; }
.kiln button:hover { border-color: var(--fg); }
.kiln button:disabled { color: var(--muted); border-color: var(--rule); cursor: default; }
.kiln button[aria-pressed="true"]:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.kiln kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.kiln .stage { position: relative; margin: 0; height: auto; min-height: 0; }
.kiln .stage canvas { width: 100%; height: 100%; display: block; }
/* The gizmo's canvas over the view's: drawn over the surface, and the pointer goes through it. */
.kiln .stage canvas.overlay { position: absolute; left: 0; top: 0; pointer-events: none; }
/* The stage note: what runs (with Stop), what a drag does, or what a click does. It lets the
   pointer through to the view, but for Stop. */
.stage-bar { position: absolute; left: 16px; right: 16px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; pointer-events: none; }
.stage-bar[hidden] { display: none; }
.stage-bar button { pointer-events: auto; }
.stage-note { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.stage-note.idle { font-family: inherit; }
.crash { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; background: rgba(28, 27, 26, 0.92); z-index: 2; }
.crash[hidden] { display: none; }
.crash p { margin: 0; max-width: 480px; color: var(--red); font-family: var(--mono); font-size: 13px; }
.panel section { padding: 7px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.panel section.stats { gap: 2px; }
#report, #stats { font-size: 12px; }
#report:empty { display: none; }
.panel section:last-child { border-bottom: 0; }
.fields { display: grid; gap: 4px; }
.fields label { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; align-items: center; font-size: 13px; }
.fields label[hidden] { display: none; }
.fields input[type="checkbox"] { justify-self: start; }
.kiln input { font: inherit; font-size: 13px; }
.row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.muted { color: var(--muted); margin: 0; }
.mono { font-family: var(--mono); }
.small { font-size: 13px; }
.panel p { margin: 0; }
/* A refusal, beside the tool that met it: the kernel's words, its figures, a hint. */
.refusal { border-left: 2px solid var(--red); padding: 4px 8px; font-size: 13px; }
.refusal[hidden] { display: none; }
.refusal p { margin: 0; font-family: var(--mono); }
.refusal .hint { font-family: inherit; color: var(--amber); margin-top: 4px; }
.refusal dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 4px 0 0; }
.refusal dt { color: var(--muted); }
.refusal dd { margin: 0; font-family: var(--mono); }
@media (max-width: 1000px) {
  .kiln { grid-template-columns: minmax(0, 1fr); height: auto; }
  .kiln .stage { height: 60vh; }
  .tools { max-height: 50vh; }
  /* Stacked, the page scrolls: the panel is as tall as it needs. */
  .panel section.last { overflow-y: visible; }
}
