/* Everything this site adds on top of the ported stylesheet.
 *
 * style.css is UMT_LLM_TUTOR's, carried over byte for byte so the graph view, the
 * review panel and the modal keep working without a diff to maintain. This file holds
 * the site frame (the header, the brochure, the login card) and the two panels that
 * are ours: model status (.ms-) and runs (.rn-). Same variables, same dark palette.
 */

/* The one colour style.css does not carry. The learning-loop map draws a concept's
 * confidence as a ramp from --err through to --ok, and mixing those two directly
 * passes through olive rather than amber, so the middle of the ramp has to be a real
 * stop of its own. */
:root { --warn: #d9a441; }

.hidden { display: none !important; }

/* --- form controls -------------------------------------------------------- */

/* The ported stylesheet themes bare `input[type="text"]` globally, but themes
 * `textarea` and `select` only inside `.create-form`, which the modals do not
 * use. A textarea or a dropdown in the review edit form or the Add-edge dialog
 * therefore fell back to the browser default, a white box in a dark panel. Same
 * declarations as the two rules it is filling in between, so a control looks the
 * same wherever it appears. */
textarea,
select {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  font-family: inherit;
  width: 100%;
}

textarea { resize: vertical; min-height: 5rem; }

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

/* --- the creatable combobox ----------------------------------------------- */

/* The ported `.searchable-select` is a closed vocabulary. The Add-edge target
 * picker opens it, react-select `Creatable` style: the `+ Create "..."` row is
 * the last row of the SAME listbox, the trigram neighbours the subsequence
 * matcher could not see are tagged "similar" above it, and once a create is
 * staged the strip under the box keeps those neighbours on screen while the rest
 * of the form is filled in. */
.ss-create {
  border-top: 1px solid var(--border);
  color: var(--accent);
  margin-top: 0.2rem;
  padding-top: 0.45rem;
}

.ss-note {
  color: var(--muted);
  float: right;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* The optional filter's scope line: what the list is narrowed to, and the one
 * click out of it. */
.ss-scope {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.75rem;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
.ss-scope b { color: var(--text); font-weight: 600; }

.ss-showall {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
}
.ss-showall:hover { border-color: var(--accent); }

.ss-dupe {
  background: rgba(224, 99, 122, 0.08);
  border: 1px solid var(--err);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.78rem;
  margin-top: 0.4rem;
  padding: 0.5rem 0.6rem;
}
.ss-dupe ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }
.ss-dupe li { margin-top: 0.15rem; }
.ss-dupe span { color: var(--muted); }

/* --- the review graph ----------------------------------------------------- */

/* An edge is clickable here: it brings that edge up as the record under review,
 * the same as a node. The ported stylesheet gives its hit line no cursor, since
 * over there an edge was only ever a drag target. */
.gv-edge .gv-hit { cursor: pointer; }

/* --- the frame ------------------------------------------------------------ */

.site-header { justify-content: space-between; }

.site-brand { display: flex; align-items: baseline; gap: 0.5rem; text-decoration: none; color: inherit; }

/* The text keeps its baseline alignment; only the mark centres against it. */
.site-mark { width: 1.75rem; height: 1.75rem; align-self: center; }

.site-by {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-nav { display: flex; align-items: center; gap: 1rem; }

.site-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.site-link:hover { color: var(--text); }

/* Sign in and sign out are `.site-link` in button clothing: a bordered control beside
 * the download button would read as a second, equal choice, and most visitors cannot
 * sign in. Same place, same id, same handler, less weight. */
.site-signin {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.25rem 0;
}

.site-who { font-size: 0.8rem; color: var(--muted); }

.btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { border-color: var(--accent); background: rgba(91, 140, 255, 0.15); }
.btn.danger { border-color: var(--err); color: var(--err); }
.btn small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 0.2rem;
  font-weight: 400;
}

#api-status { margin: 0.75rem 0; }

/* --- the marketing page --------------------------------------------------- */

/* The brochure and the dashboard are one document served by one stylesheet, so this
 * section adds no colours of its own: everything comes from the variables style.css
 * already defines. What it does add is a scale, because a page that has to persuade a
 * stranger needs display type and real vertical rhythm, and the dashboard needs
 * neither. Depth is surface lightness and hairline borders, never shadow, which is
 * invisible on this ground anyway.
 *
 * Every word of the copy is in index.html, so the page reads with scripts disabled.
 * The one moving part, the learning-loop panel, ships a static first question and a
 * static map in the markup and only moves once its module has loaded. */

:root {
  --wrap: 68rem;
  --wrap-prose: 38rem;
  --band-y: clamp(3.5rem, 8vw, 7rem);
  --t-display: clamp(2.1rem, 1.2rem + 3.2vw, 3.4rem);
  --t-h2: clamp(1.55rem, 1.1rem + 1.6vw, 2.3rem);
  --t-lede: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
}

/* The header is not sticky, but an anchor jump should still not land its target
 * against the very top of the viewport. */
html { scroll-padding-top: 5rem; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--text);
  padding: 0.6rem 1rem;
  text-decoration: none;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.brochure :focus-visible,
.site-header :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- bands and measures --------------------------------------------------- */

.band { padding: var(--band-y) 1.25rem; }
.band + .band { border-top: 1px solid var(--border); }

.wrap { max-width: var(--wrap); margin-inline: auto; }
.wrap.narrow { max-width: var(--wrap-prose); }
.wrap.center { text-align: center; }
/* Prose measure inside a band that also carries something full width. */
.wrap .prose { max-width: var(--wrap-prose); }

.brochure h2,
.brochure h3 {
  color: var(--text);
  text-wrap: balance;
}
.brochure h2 {
  font-size: var(--t-h2);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1.1rem;
}
.brochure h3 { font-size: 1rem; margin: 0 0 0.5rem; }

.brochure p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1.1rem;
  max-width: 68ch;
  text-wrap: pretty;
}
.brochure p:last-child { margin-bottom: 0; }

.brochure .display {
  font-size: var(--t-display);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.lede { font-size: var(--t-lede); }

/* The one emphasised line at the end of a section. */
.rule {
  border-left: 2px solid var(--accent);
  color: var(--text);
  padding-left: 1rem;
}
.rule b { color: var(--text); }

.wrap-note { margin-top: 2rem; }

/* --- hero ----------------------------------------------------------------- */

.hero {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
@media (max-width: 62rem) {
  .hero { grid-template-columns: 1fr; }
}

.cta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* The only filled control on the page. Sign-in is text, and `.cta-quiet` is text, so
 * nothing on the page is a second thing to click. */
.cta {
  background: rgba(91, 140, 255, 0.18);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--text);
  display: inline-block;
  font-size: 1rem;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
}
.cta:hover { background: rgba(91, 140, 255, 0.28); }

.cta-quiet {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cta-quiet:hover { color: var(--text); }

/* --- the question card ---------------------------------------------------- */

.qcard {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0;
  padding: 1.1rem;
}

.qcard-head {
  color: var(--muted);
  display: flex;
  font-size: 0.7rem;
  justify-content: space-between;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brochure .qcard-q {
  color: var(--text);
  font-size: 1.05rem;
  margin: 0.9rem 0 1rem;
  /* A prompt out of the bank can carry its own line breaks, and they are part of the
   * question when it is a list or a stem over a table. */
  white-space: pre-wrap;
}

.qcard-opts { list-style: none; margin: 0; padding: 0; }
.qcard-opts li {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.8rem;
}
.qcard-opts .is-picked { border-color: var(--accent); color: var(--text); }
.qcard-opts .is-wrong { border-color: var(--err); color: var(--text); }
.qcard-opts .is-right { border-color: var(--ok); color: var(--text); }
/* Right, and not picked. A third state needs a third colour: marking a missed answer
 * green says the reader got it, and marking it red says they chose it. */
.qcard-opts .is-missed { border-color: var(--warn); color: var(--text); }

/* The option is the control, so the whole row is the hit area rather than a radio the
 * size of a fingernail. */
.qcard-opt {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex: 1;
  gap: 0.6rem;
  min-width: 0;
}
.qcard-opt input { accent-color: var(--accent); flex: none; margin: 0; }
.qcard-opt input:disabled { cursor: default; }
.qcard-opt-text { flex: 1; min-width: 0; }

.qcard-sort li { cursor: default; }
.qcard-rank {
  color: var(--muted);
  flex: none;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  width: 1rem;
}
.qcard-moves { display: flex; flex: none; gap: 0.25rem; }
.qcard-move {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.3rem 0.45rem;
}
.qcard-move:hover:not(:disabled) { border-color: var(--accent); }
.qcard-move:disabled { color: var(--muted); cursor: default; opacity: 0.4; }

/* Colour is never the only carrier: the marks are here and the verdict says it in
 * words as well. */
.qcard-mark { flex: none; font-weight: 700; }
.is-wrong .qcard-mark { color: var(--err); }
.is-right .qcard-mark { color: var(--ok); }
.is-missed .qcard-mark { color: var(--warn); }

/* --- the confidence step -------------------------------------------------- */

/* Between answering and finding out, the same step the app takes. What it is for is
 * the gap between the two: sure and wrong is a different problem from unsure and wrong,
 * and the engine cannot tell them apart unless it is asked. */
.qcard-confidence {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 0.9rem;
}
.brochure .qcard-ask {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0 0 0.7rem;
}
.qcard-scale {
  color: var(--muted);
  display: flex;
  font-size: 0.7rem;
  justify-content: space-between;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.qcard-range {
  accent-color: var(--accent);
  display: block;
  margin: 0.35rem 0 0;
  width: 100%;
}
.brochure .qcard-percent {
  color: var(--accent);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin: 0.35rem 0 0;
  text-align: center;
}

/* --- the action row and the answer ---------------------------------------- */

.qcard-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.qcard-submit {
  background: rgba(91, 140, 255, 0.18);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
}
.qcard-submit:hover:not(:disabled) { background: rgba(91, 140, 255, 0.28); }
.qcard-submit:disabled { border-color: var(--border); color: var(--muted); cursor: default; }
.qcard-next {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.5rem 0.2rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.qcard-next:hover { color: var(--text); }

.qcard-feedback {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 0.9rem;
}
.brochure .qcard-verdict {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}
.qcard-verdict.is-right { color: var(--ok); }
.qcard-verdict.is-wrong { color: var(--err); }
.qcard-verdict.is-revealed { color: var(--warn); }
.brochure .qcard-why {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0.5rem 0 0;
  white-space: pre-wrap;
}

.brochure .qcard-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0.75rem 0 0;
}

/* KaTeX sets its own font size relative to the block it lands in; inside a card this
 * reads a size larger than the text around it. */
.qcard .katex { font-size: 1em; }

/* --- the learning loop ---------------------------------------------------- */

/* pages/brochure/loop.js runs this, one question every 4.6 seconds, for as long as
 * the section is on screen. Everything below is a resting state and a transition to
 * travel through; the module supplies the classes and, for a node, the colour itself.
 * Keyframes are what forced the old fixed cycle, so there are none left.
 *
 * Inside a beat: the card slides in, an option is chosen at 1.4s and resolved at 1.9s,
 * the node it belongs to slides along the ramp by 2.7s, a ring pulses on whichever
 * concept is coming next at 3.1s and its line draws out to the left by 4.2s, and the
 * card leaves at 4.3s so the next one arrives on that line. Those are the offsets at
 * a speed of one, which is where the slider starts. */

/* --rl-scale is the reciprocal of the speed the slider is set to, written by the
 * module, and every duration below is in terms of it. The offsets inside a beat are
 * milliseconds in JavaScript and the travel between them is a CSS transition, so both
 * have to stretch together or the two come apart: a beat at triple pace with a
 * connector still taking 0.9s to draw is a connector the reader never sees arrive. */
.rl {
  --rl-scale: 1;
  align-items: center;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 17.5rem) minmax(0, 36rem);
  justify-content: start;
  margin: 2.5rem 0 0;
}
@media (max-width: 48rem) {
  .rl { grid-template-columns: 1fr; }
}

.rl-phone,
.rl-map-wrap { position: relative; }

.rl-phone {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.9rem;
}

.rl-screen {
  min-height: 13.5rem;
  overflow: hidden;
  position: relative;
}

/* The resting state is the card in place and readable, which is what a reader with
 * JavaScript off is left holding. is-next parks it off to the right ready to come in,
 * is-out sends it off to the left. */
.rl-card {
  inset: 0;
  position: absolute;
  transition: opacity calc(0.35s * var(--rl-scale)) ease,
              transform calc(0.35s * var(--rl-scale)) ease;
}
.rl-card.is-next { opacity: 0; transform: translateX(24px); }
.rl-card.is-out { opacity: 0; transform: translateX(-24px); }

/* Set while something is being repositioned rather than moved: a card jumping back to
 * the right hand side, a ring jumping to a new node. Without it the jump animates and
 * the reader watches the setup instead of the beat. */
.rl-still { transition: none !important; }

.rl-tag {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brochure .rl-q {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0.6rem 0 0.9rem;
}

.rl-opts { list-style: none; margin: 0; padding: 0; }
.rl-opts li {
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
  padding: 0.55rem 0.7rem;
  transition: border-color calc(0.25s * var(--rl-scale)) ease,
              color calc(0.25s * var(--rl-scale)) ease;
}

/* The chosen option runs accent while it is being weighed, then lands on right or
 * wrong. The mark inside it fades in on the same beat. */
.rl-pick { position: relative; }
.rl-opts li.is-chosen { border-color: var(--accent); color: var(--text); }
.rl-opts li.is-right { border-color: var(--ok); color: var(--text); }
.rl-opts li.is-wrong { border-color: var(--err); color: var(--text); }

.rl-mk {
  float: right;
  font-style: normal;
  font-weight: 700;
  opacity: 0;
  transition: opacity calc(0.2s * var(--rl-scale)) ease;
}
.is-right .rl-mk { color: var(--ok); }
.is-wrong .rl-mk { color: var(--err); }
.rl-mk.is-shown { opacity: 1; }

/* --- the map -------------------------------------------------------------- */

.rl-map { height: auto; width: 100%; }

.rl-edges path {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
}

/* This is both the untouched look and the travel. Once a concept has been answered
 * the module writes fill and stroke straight onto the node off the ramp, and the
 * transition is what turns a new score into a slide rather than a jump. */
.rl-n {
  fill: var(--panel);
  stroke: var(--border);
  stroke-width: 2;
  transition: fill calc(0.5s * var(--rl-scale)) ease,
              stroke calc(0.5s * var(--rl-scale)) ease;
}

.rl-ring {
  fill: none;
  opacity: 1;
  r: 13px;
  stroke: var(--accent);
  stroke-width: 2;
  transition: r calc(0.5s * var(--rl-scale)) ease-out,
              opacity calc(0.5s * var(--rl-scale)) ease-out;
}
.rl-ring.is-pulsing { opacity: 0; r: 27px; }

.rl-link {
  fill: none;
  opacity: 0;
  stroke: var(--accent);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  stroke-width: 2;
  transition: stroke-dashoffset calc(0.9s * var(--rl-scale)) linear,
              opacity calc(0.2s * var(--rl-scale)) ease;
}
.rl-link.is-drawn { opacity: 1; stroke-dashoffset: 0; }

/* Above the node rather than beside it, because beside is where the connector leaves
 * from. Below 48rem the map is too small to carry it and the card's tag says the same
 * thing in a readable size.
 *
 * It is drawn over the field, so it crosses edges. `paint-order: stroke` lays a halo of
 * the page background down under the glyphs first, which is what keeps it readable
 * without a rectangle behind it. */
.rl-label {
  fill: var(--text);
  font-size: 0.72rem;
  opacity: 0;
  paint-order: stroke;
  stroke: var(--bg);
  stroke-linejoin: round;
  stroke-width: 4px;
  text-anchor: middle;
  transition: opacity calc(0.3s * var(--rl-scale)) ease;
}
.rl-label.is-shown { opacity: 1; }
@media (max-width: 48rem) {
  .rl-label { display: none; }
}

/* --- the controls --------------------------------------------------------- */

/* Built by the module, so they are only here when there is something behind them.
 * Under the map because both of them act on the map's clock, and the card beside it is
 * a picture of a phone rather than a thing to press. */
.rl-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.1rem;
}

.rl-speed {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.8rem;
  gap: 0.6rem;
}
/* The rule above sets display, so the hidden attribute needs saying again to beat it.
 * A page that is not running on a clock has no pace to set. */
.rl-speed[hidden] { display: none; }

.rl-speed input {
  accent-color: var(--accent);
  cursor: pointer;
  width: 8rem;
}

/* Tabular figures so the number does not shuffle the row about as it is dragged. */
.rl-rate {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  min-width: 2.1rem;
}

/* --- the three steps ------------------------------------------------------ */

.rl-steps {
  display: grid;
  gap: 1.25rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}
.rl-steps li {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  padding-top: 0.9rem;
}
.rl-steps b { color: var(--text); }

.rl-close { margin-top: 3rem; }

/* The whole thing is decoration over copy that already says it. Stopping it costs the
 * reader nothing, so the module never starts a beat and nothing here travels. What is
 * left is the opening card and the map before anything has been answered. */
@media (prefers-reduced-motion: reduce) {
  .rl-card,
  .rl-opts li,
  .rl-mk,
  .rl-n,
  .rl-ring,
  .rl-link,
  .rl-label { transition: none !important; }
}

/* --- what you do with it -------------------------------------------------- */

/* Eight capabilities read as eight things only if each one is bounded. Without the
 * border and the panel behind it the grid gaps alone are not enough separation, and
 * the section scans as one wall of prose. The cards stretch to the row height, so a
 * row reads as a row. */
.cols {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.cols > div {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
}

.cols > div h3 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.cols > div p { font-size: 0.92rem; }

/* --- download ------------------------------------------------------------- */

.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.dl {
  border-radius: 6px;
  display: inline-block;
  font-size: 1rem;
  min-width: 8rem;
  padding: 0.7rem 1.4rem;
  text-align: center;
  text-decoration: none;
}
.dl:not(.dl-soon) {
  background: rgba(91, 140, 255, 0.18);
  border: 1px solid var(--accent);
  color: var(--text);
}

/* A platform with no build yet is visibly not a link, rather than a link that fails. */
.dl-soon {
  border: 1px dashed var(--border);
  color: var(--muted);
  cursor: default;
}
.dl-soon small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

/* --- footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 2rem 1.25rem;
  text-align: center;
}
.brochure .site-footer p { color: var(--muted); margin: 0 auto; max-width: none; }

/* --- login ---------------------------------------------------------------- */

.login-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  max-width: 24rem;
  margin: 4rem auto;
  text-align: center;
}
.login-card h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.login-card p { margin: 0 0 1.5rem; font-size: 0.85rem; }
.login-card #google-button { display: flex; justify-content: center; }
.login-card .status { margin-top: 1rem; }

.login-form { display: flex; flex-direction: column; gap: 0.9rem; text-align: left; }

.login-field { display: flex; flex-direction: column; gap: 0.3rem; }
.login-field span { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.login-field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  padding: 0.55rem 0.7rem;
  width: 100%;
}
.login-field input:focus { outline: none; border-color: var(--accent); }

.login-form .btn { margin-top: 0.4rem; width: 100%; justify-content: center; }

.login-divider {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.75rem;
  gap: 0.75rem;
  margin: 1.25rem 0;
  text-transform: uppercase;
}
.login-divider::before,
.login-divider::after { background: var(--border); content: ""; flex: 1; height: 1px; }

/* --- model status --------------------------------------------------------- */

.ms-run h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.ms-run p { margin: 0; font-size: 0.8rem; }

.ms-table { max-width: 32rem; }

.ms-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1rem;
}

.ms-chart {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
}
.ms-chart figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.ms-chart img {
  width: 100%;
  display: block;
  border-radius: 4px;
  background: #fff;
}

/* --- runs ----------------------------------------------------------------- */

.rn-launch { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.rn-launch .btn { text-align: left; padding: 0.6rem 1rem; }

.rn-table tbody tr { cursor: pointer; }
.rn-table tbody tr:hover { background: rgba(91, 140, 255, 0.06); }
.rn-selected { background: rgba(91, 140, 255, 0.12); }

.rn-status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
}
.rn-queued { color: var(--muted); }
.rn-running { color: var(--accent); border-color: var(--accent); }
.rn-succeeded { color: var(--ok); border-color: var(--ok); }
.rn-failed { color: var(--err); border-color: var(--err); }

.rn-log {
  background: #0b0d12;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
  font-size: 0.78rem;
  line-height: 1.45;
  max-height: 28rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
