:root {
  --bg0: #0b0d12;
  --bg1: #141822;
  --bg2: #131a2a;
  --panel: rgba(20, 24, 34, 0.62);
  --panel-border: rgba(120, 138, 177, 0.32);
  --text: #eceff8;
  --muted: #b6bfd4;
  --accent: #e54d67;
  --accent-soft: #f4b4c1;
  --link: #f3b5c0;
  --line: #2b3447;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  --glass: rgba(255, 255, 255, 0.035);
  --top-chrome-height: 3.9rem;
  --content-top: calc(var(--top-chrome-height) + 1.15rem);
  --content-bottom: 1.2rem;
  --side-pane-height: calc(100dvh - var(--content-top) - var(--content-bottom));
  --divider-width: 1.35rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg0);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(229, 77, 103, 0.24), transparent 28%),
    radial-gradient(circle at 88% 6%, rgba(63, 98, 186, 0.2), transparent 25%),
    linear-gradient(160deg, var(--bg0) 0%, var(--bg1) 55%, var(--bg2) 100%);
  background-attachment: fixed;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(var(--top-chrome-height) + 1rem) 1rem 1rem;
  display: grid;
  gap: 1.5rem;
}

.workspace-grid {
  position: relative;
}

body.sidebar-open {
  overflow: hidden;
}

.top-chrome {
  position: fixed;
  inset: 0 0 auto 0;
  border-bottom: 1px solid rgba(120, 138, 177, 0.35);
  background: rgba(13, 17, 27, 0.78);
  backdrop-filter: blur(10px);
  z-index: 2200;
}

.top-chrome-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: var(--top-chrome-height);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.top-chrome-title {
  font-family: "IBM Plex Serif", serif;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  white-space: nowrap;
}

.top-controls-wrap {
  position: relative;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.top-controls-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  width: min(500px, 92vw);
  z-index: 2305;
}

.top-controls-popover .controls-host {
  background: rgba(16, 21, 33, 0.9);
  border-color: rgba(120, 138, 177, 0.52);
}

.chrome-icon-btn {
  z-index: 2200;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: none;
  transition: color 160ms ease;
  padding: 0;
  line-height: 1;
}

.chrome-icon-btn:hover {
  background: transparent;
  color: var(--accent-soft);
}

.chrome-icon-btn.active {
  background: transparent;
  color: var(--accent-soft);
}

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.chrome-icon {
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms ease;
}

.sidebar-panel {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(360px, 88vw);
  height: 100dvh;
  z-index: 2300;
  background: linear-gradient(165deg, #0f1320, #161e2f);
  border-right: 1px solid rgba(120, 138, 177, 0.38);
  transform: translateX(-102%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}

body.sidebar-open .sidebar-panel {
  transform: translateX(0);
}

.sidebar-scrim {
  position: fixed;
  inset: 0;
  z-index: 2250;
  background: rgba(2, 5, 12, 0.62);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: opacity 200ms ease;
}

body.sidebar-open .sidebar-scrim {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.sidebar-header-title {
  margin: 0;
  font-family: "IBM Plex Serif", serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.sidebar-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.sidebar-close:hover {
  color: var(--text);
}

.sidebar-body {
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 1rem;
}

.sidebar-home-btn {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.sidebar-home-icon {
  font-size: 1rem;
  line-height: 1;
}

.sidebar-home-btn:hover {
  border-color: var(--accent-soft);
  background: rgba(229, 77, 103, 0.13);
}

.sidebar-home-btn.active {
  background: rgba(229, 77, 103, 0.2);
  border-color: var(--accent-soft);
}

.panel {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

h1 {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}

h2 {
  font-family: "IBM Plex Serif", serif;
  font-size: 1.2rem;
  margin: 0;
  color: var(--text);
}

h3 {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-block {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

.controls-host {
  gap: 0.65rem;
}

.meta-pill {
  border: 1px solid var(--line);
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
}

#meta {
  display: grid;
  gap: 0.9rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.output-list {
  display: grid;
  gap: 0.55rem;
}

.mode-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.mode-btn {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.45rem 0.75rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.mode-btn:hover {
  border-color: var(--accent-soft);
  background: rgba(229, 77, 103, 0.13);
}

.mode-btn.active {
  background: rgba(229, 77, 103, 0.2);
  border-color: var(--accent-soft);
}

.sidebar-output-btn {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
}

.sidebar-output-btn:hover {
  border-color: var(--accent-soft);
  background: rgba(229, 77, 103, 0.13);
}

.sidebar-output-btn.active {
  background: rgba(229, 77, 103, 0.15);
  border-color: var(--accent-soft);
}

.sidebar-output-label {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.9rem;
  line-height: 1.35;
}

.sidebar-output-label p {
  margin: 0;
}

.sidebar-output-label :is(.mjx-container, .katex-display) {
  margin: 0;
}

.content-grid {
  display: grid;
  column-gap: 0.2rem;
  grid-template-columns: minmax(18rem, var(--main-col-width, 50%)) var(--divider-width) minmax(0, 1fr);
  align-items: start;
}

.column-divider {
  position: sticky;
  top: var(--content-top);
  width: var(--divider-width);
  height: var(--side-pane-height);
  cursor: col-resize;
  touch-action: none;
  align-self: start;
  user-select: none;
  z-index: 10;
}

.column-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(120, 138, 177, 0.6);
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.column-divider:hover::before,
.column-divider.dragging::before {
  background: rgba(244, 180, 193, 0.92);
  box-shadow: 0 0 0 1px rgba(244, 180, 193, 0.42);
}

body.resizing-columns {
  cursor: col-resize;
  user-select: none;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 0;
}

.step-card {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
}

.step-header {
  border: 0;
  width: 100%;
  font-family: "IBM Plex Sans", sans-serif;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: transparent;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
}

.step-head-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.step-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

.step-card:not(.collapsed) .step-header {
  border-bottom-color: var(--line);
}

.step-index {
  font-family: "IBM Plex Serif", serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-soft);
  flex: 0 0 auto;
}

.step-steer {
  display: block;
  flex: 1 1 auto;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  margin-left: 0.5rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-chevron {
  color: var(--accent-soft);
  font-size: 0.9rem;
}

.stat-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border: 1.5px solid var(--line);
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
}

.step-body {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.step-body.collapsed {
  display: none;
}

.cluster-grid {
  display: grid;
  gap: 0.5rem;
}

.cluster-row {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.cluster-row.top-cluster {
  border-color: rgba(244, 180, 193, 0.78);
}

.cluster-row.top-cluster[open] {
  border-color: var(--line);
}

.cluster-row>summary {
  padding: 0.7rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
}

.cluster-row>summary::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0%);
  background: rgba(229, 77, 103, 0.08);
  pointer-events: none;
}

.cluster-row>summary::-webkit-details-marker {
  display: none;
}

.cluster-row>summary::marker {
  content: "";
}

.cluster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cluster-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.cluster-caret {
  color: var(--accent-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  transition: transform 150ms ease;
}

.cluster-row[open] .cluster-caret {
  transform: rotate(90deg);
}

.cluster-name {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cluster-tags {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.cluster-count,
.cluster-unique {
  border: 1px solid rgba(244, 180, 193, 0.52);
  background: rgba(229, 77, 103, 0.09);
  color: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.7rem;
  padding: 0.12rem 0.45rem;
}

.cluster-body {
  display: grid;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem 0.7rem;
}

.hidden-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.candidate-panel {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.01);
  display: grid;
  gap: 0.55rem;
}

.candidate-panel.chosen {
  border-color: rgba(244, 180, 193, 0.58);
  background: rgba(229, 77, 103, 0.03);
}

.candidate-panel.selected {
  border-color: var(--accent-soft);
  background: rgba(229, 77, 103, 0.05);
}

.candidate-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.candidate-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
}

.candidate-inline-strip {
  flex: 1;
  min-width: 0;
}

.chosen-structure {
  border: 1px dashed rgba(120, 138, 177, 0.45);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem;
  display: grid;
  gap: 0.35rem;
}

.chosen-tag {
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.chosen-token-strip {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.45;
}

.chosen-exec-strip.clamped {
  max-height: calc(1.45em * 4);
  overflow: hidden;
}

.chosen-exec-fallback {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.chosen-exec-fallback.clamped {
  max-height: calc(1.45em * 4);
  overflow: hidden;
}

.token-strip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

.token-chip {
  cursor: help;
  padding: 0 1px;
  border-radius: 0.15rem;
}

.exec-md {
  font-size: 0.95rem;
  line-height: 1.65;
}

.exec-md h1,
.exec-md h2,
.exec-md h3,
.exec-md h4 {
  font-family: "IBM Plex Serif", serif;
  margin: 1rem 0 0.6rem;
  color: var(--text);
}

.exec-md p {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.exec-md ul,
.exec-md ol {
  margin: 0.3rem 0 0.9rem;
  padding-left: 1.35rem;
}

.exec-md li {
  margin: 0.25rem 0;
}

.exec-md code {
  font-family: ui-monospace, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 0.3rem;
  font-size: 0.85rem;
}

.exec-md pre {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.exec-md blockquote {
  margin: 0.6rem 0;
  padding: 0.4rem 0.8rem;
  border-left: 2px solid var(--accent);
  color: #d7dff0;
  background: rgba(255, 255, 255, 0.02);
}

.exec-md a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

.exec-md a:hover {
  color: #ffd0d8;
}

.exec-md hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.9rem 0;
}

.exec-md .katex-display {
  margin: 0.75rem 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.exec-md section {
  margin: 0.75rem 0;
}

.exec-md section>eqn {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
}

.final-answer-md {
  min-height: 0;
}

.side-column {
  --side-gap: 1rem;
  --section-min: clamp(6rem, 12.4vh, 8.4rem);
  --section-max: calc((100% - (2 * var(--side-gap))) / 3);
  position: sticky;
  top: var(--content-top);
  height: var(--side-pane-height);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--side-gap);
}

.report-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.prompt-section,
.final-section {
  flex: 0 1 auto;
  min-height: var(--section-min);
  max-height: var(--section-max);
}

.trajectory-section {
  flex: 1 1 var(--section-max);
  min-height: var(--section-max);
}

.report-section-title {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0;
  padding: 0.05rem 0 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.report-section-meta {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-left: 0.35rem;
}

.trajectory-title-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-width: 0;
}

.trajectory-token-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  min-width: 0;
}

.trajectory-token-legend-chip {
  display: inline-block;
  border-radius: 0.16rem;
  padding: 0 0.24rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
}

.trajectory-token-legend-text {
  color: var(--muted);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.report-section-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 0.4rem 0.1rem 2rem 0;
}

.trajectory-fullscreen-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0.15rem;
  line-height: 1;
}

.trajectory-fullscreen-btn:hover {
  color: var(--accent-soft);
}

.trajectory-fullscreen-btn .material-symbols-rounded {
  font-size: 1.15rem;
}

#timeline {
  overscroll-behavior: contain;
}

.trajectory-pre {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.see-more-btn {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.77rem;
  padding: 0.22rem 0.6rem;
  cursor: pointer;
}

.see-more-btn:hover {
  border-color: var(--accent-soft);
  background: rgba(229, 77, 103, 0.13);
}

.tag {
  border: 1px solid rgba(120, 138, 177, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0.08rem 0.45rem;
}

.tooltip {
  position: fixed;
  z-index: 3000;
  background: #141822;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.5rem;
  box-shadow: var(--shadow);
  pointer-events: none;
  font-size: 0.8rem;
}

.trajectory-overlay {
  position: fixed;
  inset: 0;
  z-index: 3500;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 16, 0.68);
  backdrop-filter: blur(8px);
}

.trajectory-overlay-panel {
  width: min(1100px, 92vw);
  height: calc(100dvh - 2rem);
  margin: 0 auto;
  padding: 1rem 1rem 0.8rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.6rem;
  position: relative;
}

.trajectory-overlay-title {
  margin: 0;
  padding-right: 2.8rem;
}

.trajectory-overlay-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.2rem;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trajectory-overlay-close:hover {
  color: var(--accent-soft);
}

.trajectory-overlay-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.3rem 0.15rem 2rem 0;
}

body.trajectory-overlay-open {
  overflow: hidden;
}

.alt-grid {
  display: grid;
  gap: 0.3rem;
  min-width: 11.5rem;
}

.alt-row {
  position: relative;
  display: grid;
  grid-template-columns: 0.7rem 1fr auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.16rem 0.3rem;
  border-radius: 0.4rem;
  overflow: hidden;
}

.alt-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0%);
  background: rgba(188, 196, 211, 0.22);
  pointer-events: none;
}

.alt-row.selected {
  border: 1px solid rgba(244, 180, 193, 0.84);
}

.alt-swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.alt-token,
.alt-prob {
  position: relative;
  z-index: 1;
}

.alt-token {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #f2f6ff;
}

.alt-prob {
  color: #d6dfef;
  font-size: 0.74rem;
}

.alt-legend {
  margin-top: 0.34rem;
  padding-top: 0.32rem;
  border-top: 1px solid rgba(120, 138, 177, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

.alt-legend-chip {
  display: inline-block;
  border-radius: 0.16rem;
  padding: 0 0.24rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

.alt-legend-text {
  color: #d6dfef;
  font-size: 0.71rem;
  letter-spacing: 0.01em;
}

.home-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.home-output-card {
  padding: 1.1rem;
  appearance: none;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  color: var(--text);
  text-align: left;
  width: 100%;
  cursor: pointer;
  display: grid;
  gap: 0.65rem;
  align-content: start;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.home-output-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 180, 193, 0.74);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.32);
  background: linear-gradient(165deg, rgba(229, 77, 103, 0.12), rgba(255, 255, 255, 0.02));
}

.home-output-card:focus-visible {
  outline: 2px solid rgba(244, 180, 193, 0.84);
  outline-offset: 2px;
}

.home-output-title {
  font-size: 1.05rem;
  line-height: 1.35;
}

.home-output-prompt {
  font-size: 0.84rem;
  line-height: 1.45;
}

.home-output-prompt p {
  margin: 0;
}

.pipeline-block {
  gap: 0.75rem;
}

.pipeline-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pipeline-list strong {
  color: var(--text);
  font-weight: 600;
}

.home-output-title :is(.mjx-container, .katex-display) {
  margin: 0;
}

.hidden-block {
  display: none !important;
}

.hidden {
  display: none;
}

@media (max-width: 1024px) {
  :root {
    --top-chrome-height: 3.5rem;
    --content-top: calc(var(--top-chrome-height) + 0.9rem);
    --content-bottom: 0.8rem;
  }

  .top-chrome-title {
    font-size: 0.72rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  .column-divider {
    display: none;
  }

  .side-column {
    position: static;
    height: auto;
    --section-max: none;
  }

  .prompt-section,
  .trajectory-section,
  .final-section {
    max-height: none;
    min-height: 0;
  }
}
