:root {
  --page: #ece4d7;
  --panel: rgba(251, 247, 240, 0.82);
  --panel-strong: #fffaf1;
  --panel-soft: rgba(255, 255, 255, 0.42);
  --panel-deep: rgba(244, 235, 224, 0.9);
  --ink: #16120f;
  --muted: #6d655b;
  --line: rgba(22, 18, 15, 0.11);
  --line-strong: rgba(154, 74, 37, 0.24);
  --accent: #98411f;
  --accent-deep: #6f2a12;
  --accent-soft: rgba(152, 65, 31, 0.12);
  --moss: #395047;
  --success: #3c5a45;
  --danger: #8a2d1f;
  --shadow-lg: 0 28px 64px rgba(53, 38, 22, 0.14);
  --shadow-md: 0 16px 34px rgba(53, 38, 22, 0.11);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --font-ui: "Segoe UI Variable Display", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-display: "Bahnschrift", "Segoe UI Variable Display", "Microsoft YaHei UI", sans-serif;
  --font-mono: "Cascadia Code", "Consolas", "SFMono-Regular", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 0% 0%, rgba(152, 65, 31, 0.18), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(57, 80, 71, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 28%),
    var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
}

body {
  min-height: 100dvh;
}

button,
select,
input,
textarea {
  font: inherit;
}

button:disabled {
  cursor: progress;
  opacity: 0.78;
}

a {
  color: inherit;
  text-decoration: none;
}

.landing-body {
  background:
    radial-gradient(circle at 18% 0%, rgba(152, 65, 31, 0.22), transparent 26%),
    radial-gradient(circle at 100% 18%, rgba(57, 80, 71, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 24%),
    var(--page);
}

.landing-shell {
  max-width: 1560px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.landing-topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  margin-bottom: 18px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(22, 18, 15, 0.08);
  background: rgba(248, 241, 232, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 30px rgba(53, 38, 22, 0.08);
}

.landing-topbar,
.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-topbar {
  margin-bottom: 18px;
}

.landing-topbar-actions,
.studio-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  gap: 22px;
  min-height: auto;
  align-items: stretch;
}

.landing-hero-copy,
.showcase-card,
.landing-benchmark-card,
.cta-panel,
.product-shot-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(250, 244, 236, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}

.landing-hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 560px;
  padding: 44px;
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(57, 80, 71, 0.18), transparent 30%),
    rgba(250, 244, 236, 0.84);
  animation: panel-rise 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-brand {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-hero-copy h1 {
  margin: 0;
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.6vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.landing-summary {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-subnote {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-button:hover {
  transform: translateY(-1px);
}

.landing-button-primary {
  color: #fff7f1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 18px 28px rgba(111, 42, 18, 0.22);
}

.landing-button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.landing-hero-visual {
  display: grid;
  gap: 14px;
  align-content: end;
}

.hero-visual-frame {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(22, 18, 15, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 18%),
    rgba(250, 244, 236, 0.9);
  box-shadow: var(--shadow-lg);
  animation: panel-rise 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(22, 18, 15, 0.08);
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-visual-toolbar strong {
  margin-left: 4px;
  color: var(--ink);
}

.hero-visual-toolbar span:last-child {
  margin-left: auto;
}

.hero-visual-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(152, 65, 31, 0.26);
}

.hero-visual-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1.34 / 1;
  object-fit: cover;
  object-position: top center;
}

.hero-proof-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-proof-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(22, 18, 15, 0.08);
  background: rgba(250, 244, 236, 0.82);
  box-shadow: var(--shadow-md);
}

.hero-proof-card strong {
  font-size: 1.1rem;
  line-height: 1.35;
}

.hero-proof-card span,
.landing-section-head p,
.benchmark-summary,
.benchmark-footnote,
.workflow-step span {
  color: var(--muted);
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.workflow-step {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(22, 18, 15, 0.08);
  background: rgba(249, 242, 234, 0.72);
  box-shadow: var(--shadow-md);
}

.workflow-step strong {
  font-size: 1.16rem;
  line-height: 1.3;
}

.landing-section {
  margin-top: 28px;
}

.landing-product {
  margin-top: 28px;
}

.landing-section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.landing-section-head h2 {
  margin: 0;
}

.landing-section-head p {
  margin: 0;
  max-width: 68ch;
  line-height: 1.7;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.showcase-card,
.landing-benchmark-card,
.product-shot-card {
  padding: 20px;
  border-radius: 30px;
}

.product-shot-card {
  display: grid;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 22%),
    rgba(250, 244, 236, 0.9);
}

.product-shot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.54 / 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 34px rgba(53, 38, 22, 0.12);
}

.product-shot-card figcaption {
  display: grid;
  gap: 6px;
}

.product-shot-card strong {
  font-size: 1.16rem;
}

.product-shot-card span {
  color: var(--muted);
  line-height: 1.65;
}

.showcase-head {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.showcase-head strong {
  font-size: 1.2rem;
}

.showcase-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.showcase-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-columns pre {
  min-height: 220px;
  margin: 0;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

.landing-benchmark-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.benchmark-meta-row,
.benchmark-score-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.benchmark-meta-row {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.benchmark-score-strip {
  margin-bottom: 14px;
}

.benchmark-score-strip > div {
  min-width: 130px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.benchmark-score-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 1.4rem;
}

.benchmark-summary {
  margin: 0;
  line-height: 1.75;
}

.benchmark-footnote {
  margin: 16px 0 0;
  font-size: 12px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-radius: 32px;
}

.cta-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.studio-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 22%),
    radial-gradient(circle at 0% 0%, rgba(152, 65, 31, 0.12), transparent 24%),
    var(--page);
}

.studio-shell {
  max-width: 1680px;
  margin: 0 auto;
  padding: 20px 18px 40px;
}

.studio-topbar {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(250, 244, 236, 0.84);
  box-shadow: var(--shadow-md);
}

.studio-topbar-copy {
  display: grid;
  gap: 6px;
}

.studio-brand {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.studio-topbar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.studio-topbar-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.studio-link,
.studio-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(720px, 1.6fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.page-shell {
  max-width: 1720px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.hero-copy,
.hero-rail,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}

.hero-copy::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 32%);
  pointer-events: none;
}

.eyebrow,
.section-kicker,
.label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(1.72rem, 2.8vw, 2.6rem);
  line-height: 0.95;
}

.hero-text,
.hint,
.empty-state,
.run-item p,
.rail-card span,
.path-line span {
  color: var(--muted);
}

.hero-pills span,
.toggle,
.run-item,
.log-line,
.thread-item,
.chapter-item,
.path-line,
.stat-card,
.rail-card {
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.hero-pills span,
.toggle {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 22px;
}

.quickstart-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(154, 74, 37, 0.18);
  background:
    linear-gradient(135deg, rgba(152, 65, 31, 0.08), rgba(255, 255, 255, 0.28)),
    rgba(255, 249, 242, 0.78);
}

.quickstart-copy {
  display: grid;
  gap: 6px;
}

.quickstart-copy h3 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.quickstart-copy p {
  margin: 0;
}

.quickstart-steps,
.empty-state-steps {
  display: grid;
  gap: 8px;
}

.quickstart-steps span,
.empty-state-steps span {
  display: block;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.44);
  color: var(--muted);
  line-height: 1.55;
}

.quickstart-actions {
  display: grid;
  gap: 8px;
}

.form-panel,
.recent-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100svh - 36px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(111, 42, 18, 0.35) transparent;
}

.form-panel {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.92), rgba(247, 240, 230, 0.74)),
    var(--panel);
}

.status-panel {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 22%),
    var(--panel-deep);
}

.workspace-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.workspace-head-note {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.workspace-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.workspace-tab {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  box-shadow: none;
}

.workspace-tab:hover {
  box-shadow: none;
  transform: none;
}

.workspace-tab.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff7f1;
}

.panel-head {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.panel-head-compact {
  margin-bottom: 16px;
}

.run-form,
.field-grid,
.result-grid,
.run-meta,
.stats-grid {
  display: grid;
  gap: 14px;
}

.workspace-block {
  margin-bottom: 16px;
}

.workspace-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.workspace-block-head h3 {
  margin: 4px 0 0;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.workspace-path {
  max-width: 45%;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.workspace-block-primary {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.3);
}

.workspace-block-feature {
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(154, 74, 37, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 34%),
    rgba(255, 251, 245, 0.54);
}

.field-grid,
.run-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.run-meta-wide {
  margin-bottom: 14px;
}

.run-form {
  gap: 16px;
}

.form-section {
  display: grid;
  gap: 14px;
  padding: 0;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 40%),
    rgba(255, 255, 255, 0.32);
}

.form-section-primary {
  padding: 0;
}

.form-section-final {
  padding-bottom: 0;
}

.form-section-summary {
  display: block;
  position: relative;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.form-section-summary::-webkit-details-marker {
  display: none;
}

.form-section-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.form-section[open] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 40%),
    rgba(255, 255, 255, 0.38);
}

.form-section-summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 16px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.form-section[open] .form-section-summary::after {
  content: "−";
}

.form-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.form-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.form-panel .form-section-head {
  flex-direction: column;
  align-items: flex-start;
}

.form-section-head h3 {
  margin: 4px 0 0;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.field-note {
  max-width: 28ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.field-grid-slim {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.model-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.model-span-wide {
  grid-column: span 2;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 700;
}

.field input[type="text"],
.field input[type="number"],
.field select,
.field textarea,
.upload-box {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 14px 16px;
  transition: border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.field input[type="text"]:focus,
.field input[type="number"]:focus,
.field select:focus,
.field textarea:focus,
.upload-box:focus-within {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(152, 65, 31, 0.1);
}

.field textarea {
  resize: vertical;
  min-height: 126px;
}

.single-tail {
  grid-template-columns: minmax(0, 1fr);
  max-width: calc((100% - 28px) / 3);
}

.upload-box {
  display: grid;
  gap: 8px;
  min-height: 132px;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(152, 65, 31, 0.06), rgba(57, 80, 71, 0.04)),
    var(--panel-strong);
}

.upload-box input {
  padding: 0;
  border: none;
  background: transparent;
}

.upload-box strong {
  font-size: 1.08rem;
}

.toggle-row,
.action-row,
.progress-meta,
.card-headline,
.progress-note {
  display: flex;
  gap: 12px;
}

.toggle-row {
  flex-wrap: wrap;
}

.action-row,
.progress-meta,
.card-headline {
  justify-content: space-between;
  align-items: center;
}

.action-row-sticky {
  position: sticky;
  bottom: -2px;
  margin: 4px -4px -6px;
  padding: 14px 4px 0;
  background: linear-gradient(180deg, rgba(247, 240, 230, 0), rgba(247, 240, 230, 0.96) 30%);
}

.progress-note {
  margin-top: 8px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 12px;
}

button {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff7f1;
  padding: 14px 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 28px rgba(111, 42, 18, 0.22);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.utility-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  box-shadow: none;
}

.utility-button:hover {
  transform: none;
  box-shadow: none;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(111, 42, 18, 0.26);
}

button:active {
  transform: scale(0.98);
}

.hidden {
  display: none !important;
}

.empty-state,
.progress-wrap,
.result-card {
  border-radius: 26px;
}

.empty-state,
.progress-wrap,
.result-card,
.status-banner {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.44);
}

.empty-state {
  padding: 24px;
  line-height: 1.75;
}

.empty-state-title {
  margin: 0 0 4px;
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--ink);
}

.empty-state-actions {
  margin-top: 14px;
}

.status-banner {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-color: rgba(138, 45, 31, 0.2);
  background: rgba(138, 45, 31, 0.08);
  color: var(--danger);
}

.progress-wrap {
  padding: 14px;
  margin-bottom: 16px;
}

.progress-bar {
  height: 11px;
  border-radius: 999px;
  background: rgba(22, 18, 15, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d8703f 0%, #7a3218 100%);
  transition: width 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 16px;
}

.stat-card {
  display: grid;
  gap: 8px;
  border-radius: 22px;
  padding: 14px 16px;
}

.stat-card strong {
  font-size: 1.22rem;
  line-height: 1.05;
}

.result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.result-grid-emphasis {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.result-grid-triple {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.02fr) minmax(0, 1.26fr);
}

.result-card {
  padding: 16px;
}

.result-card-feature {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 28%),
    rgba(255, 255, 255, 0.5);
}

.result-card-dense {
  min-width: 0;
}

.preview-card,
.logs-card,
.benchmark-card {
  margin-top: 14px;
}

.benchmark-head {
  margin-top: 22px;
}

.sub-panel-head {
  margin-top: 18px;
}

pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.72;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}

.run-list,
.log-list,
.thread-list,
.chapter-list,
.path-list {
  display: grid;
  gap: 10px;
}

#benchmark-summary,
#output-preview {
  max-height: 420px;
  overflow: auto;
  scrollbar-width: thin;
}

#run-logs {
  max-height: 320px;
  overflow: auto;
  scrollbar-width: thin;
}

.run-item,
.log-line,
.thread-item,
.chapter-item,
.path-line {
  border-radius: 18px;
  padding: 12px 14px;
}

.run-item {
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    background 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.run-item:hover,
.run-item.active {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.62);
}

.run-item strong,
.run-meta strong {
  display: block;
  margin-top: 4px;
}

.run-item p {
  margin: 6px 0 0;
  line-height: 1.55;
}

.thread-item,
.chapter-item,
.path-line {
  display: grid;
  gap: 6px;
}

.thread-item span,
.chapter-item span {
  line-height: 1.55;
}

.thread-item strong,
.chapter-item strong,
.path-line strong {
  font-size: 0.98rem;
}

.path-line code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--muted);
}

.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.recent-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 24%),
    rgba(250, 244, 236, 0.88);
}

.recent-panel .panel-head h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.inspector-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.inspector-tab {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  box-shadow: none;
}

.inspector-tab:hover {
  transform: none;
  box-shadow: none;
}

.inspector-tab.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff7f1;
}

.status-running {
  color: var(--moss);
}

.status-completed {
  color: var(--success);
}

.status-failed {
  color: var(--danger);
}

.tone-error {
  color: var(--danger);
}

.run-view > .workspace-block[data-tab-panel] {
  display: block;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1260px) {
  .landing-hero,
  .workflow-strip,
  .product-shot-grid,
  .showcase-grid,
  .landing-benchmark-list,
  .studio-layout {
    grid-template-columns: 1fr;
  }

  .form-panel,
  .recent-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-grid-triple {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-hero-copy {
    min-height: auto;
  }

  .hero-proof-strip {
    grid-template-columns: 1fr;
  }

  .workspace-head,
  .workspace-block-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-head-note,
  .workspace-path {
    max-width: none;
    text-align: left;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .landing-shell,
  .studio-shell,
  .page-shell {
    padding: 16px 12px 28px;
  }

  .landing-hero-copy,
  .product-shot-card,
  .showcase-card,
  .landing-benchmark-card,
  .panel {
    padding: 18px;
    border-radius: 24px;
  }

  .landing-topbar,
  .studio-topbar,
  .field-grid,
  .showcase-columns,
  .run-meta,
  .stats-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .model-span-wide {
    grid-column: auto;
  }

  .landing-topbar,
  .studio-topbar,
  .workspace-tabs,
  .inspector-tabs,
  .action-row,
  .form-inline-actions,
  .form-section-head,
  .progress-meta,
  .card-headline {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-section-summary::after {
    right: 18px;
  }
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
