@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Spectral:wght@400;600&display=swap");

:root {
  --bg: #eef3f6;
  --ink: #142025;
  --ink-soft: #4b5b66;
  --teal: #0b6f7b;
  --teal-dark: #07515a;
  --mint: #9ed6dd;
  --sun: #f3b74f;
  --coral: #d0634f;
  --stone: #d9e2e8;
  --panel: #fdfefe;
  --shadow: rgba(15, 28, 36, 0.12);
  --shadow-strong: rgba(15, 28, 36, 0.22);
  --state-wait: #6f7f8b;
  --state-run: #1c7ed6;
  --state-done: #2f9e44;
  --state-fail: #d9480f;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #f8fbfd 0%, var(--bg) 42%, #e7f1f6 100%);
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.6;
  z-index: 0;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, #c8ecf2, transparent 70%);
  top: -140px;
  right: -120px;
}

.orb-b {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 70% 50%, #e6f1ff, transparent 70%);
  bottom: -220px;
  left: -160px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, rgba(11, 111, 123, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 111, 123, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--teal), var(--mint));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: "Spectral", serif;
  font-size: 20px;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--ink-soft);
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lang-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(16, 42, 45, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.lang-btn {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
}

.lang-btn.active {
  background: var(--teal);
  color: #fff;
}

.layout {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 40px 40px;
}

.app-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 107, 111, 0.12);
  box-shadow: 0 14px 30px var(--shadow);
  width: fit-content;
}

.tab-run-context {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(16, 42, 45, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.88);
  margin-bottom: 12px;
}

.run-context-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  width: min(360px, 100%);
}

.run-context-select > span {
  font-size: 12px;
  color: var(--ink-soft);
}

.run-context-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.setup-run-reuse {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 260px;
  flex: 1;
}

.setup-run-reuse-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.run-context-hint {
  font-size: 12px;
  color: var(--ink-soft);
}

.run-context-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.run-context-item .label {
  color: var(--ink-soft);
}

.run-context-item .value {
  font-weight: 600;
}

.global-monitor-bar {
  position: sticky;
  top: 14px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(11, 111, 123, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px var(--shadow);
  backdrop-filter: blur(8px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.global-monitor-main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.global-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.kpi-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tab-btn {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab-btn.active {
  background: linear-gradient(140deg, var(--teal), var(--teal-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 107, 111, 0.25);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeUp 0.35s ease;
}

.tab-grid {
  display: grid;
  gap: 24px;
}

.tab-content-shell {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 4px 10px 12px;
}

.tab-panel[data-tab="setup"] .tab-content-shell {
  max-width: 1580px;
}

.monitor-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

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

.analyze-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.analyze-kpi {
  border: 1px solid rgba(11, 111, 123, 0.14);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 22px var(--shadow);
}

.analyze-compare {
  order: 1;
}

.analyze-file-preview {
  order: 6;
}

.analyze-runcompare {
  order: 3;
}

.analyze-hitlist {
  order: 4;
}

.analyze-report {
  order: 5;
}

.analyze-feedback {
  order: 7;
}

.analyze-experiment {
  order: 8;
}

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

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px var(--shadow);
  padding: 24px;
  position: relative;
}

.panel-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.panel-header h3 {
  margin: 0;
  font-family: "Spectral", serif;
  font-size: 20px;
}

.panel-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.panel-header.small h3 {
  font-size: 16px;
}

.panel-header.small p {
  font-size: 12px;
}

.panel-divider {
  height: 1px;
  width: 100%;
  background: rgba(16, 42, 45, 0.08);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 107, 111, 0.08);
  pointer-events: none;
}

.panel-chat {
  min-height: 640px;
}

.tab-panel[data-tab="setup"] .panel-chat {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
}

.setup-shell {
  padding: 18px;
}

.setup-ux-grid {
  display: grid;
  grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
  gap: 16px;
  justify-content: center;
  align-items: start;
}

.setup-lane {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(16, 42, 45, 0.1);
  box-shadow: 0 10px 24px var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.setup-lane-execution {
  justify-self: center;
  width: 100%;
}

.setup-section-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.setup-section-title h3 {
  margin: 0;
  font-size: 16px;
  font-family: "Spectral", serif;
}

.setup-section-title p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.setup-stepper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.setup-step-meta {
  font-size: 12px;
  color: var(--ink-soft);
}

.setup-step-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.setup-step-dot {
  border-radius: 999px;
  border: 1px solid rgba(16, 42, 45, 0.2);
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  padding: 6px 10px;
}

.setup-step-dot.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.setup-step-actions {
  display: flex;
  gap: 8px;
}

.section-stack {
  gap: 10px;
}

.setup-lane-execution .section-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.setup-lane-execution .section-stack.workflow-layout {
  grid-template-columns: 1fr;
}

.setup-lane-execution .section-stack > .question-card {
  min-width: 0;
}

.setup-lane-execution .section-stack .question-card.workflow-designer,
.setup-lane-execution .section-stack .question-card.parameter-board,
.setup-lane-execution .section-stack .question-card.run-mode-card {
  grid-column: 1 / -1;
}

.setup-lane-execution .section-stack .question-card.run-mode-card .choice-group {
  max-width: 100%;
}

.messages {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.monitor-messages {
  max-height: 220px;
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.monitor-messages .message {
  max-width: 100%;
}

.question-summary {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
}

.status-card.compact {
  padding: 14px;
}

.error-details {
  margin-top: 2px;
  border: 1px solid rgba(217, 72, 15, 0.28);
  border-radius: 10px;
  background: rgba(217, 72, 15, 0.06);
  padding: 8px 10px;
}

.error-details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--state-fail);
}

.error-details pre {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
}

.state-badge {
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid rgba(111, 127, 139, 0.25);
  background: rgba(111, 127, 139, 0.12);
  color: var(--state-wait);
  font-size: 12px;
  font-weight: 700;
}

.state-badge[data-state="running"] {
  border-color: rgba(28, 126, 214, 0.3);
  background: rgba(28, 126, 214, 0.12);
  color: var(--state-run);
}

.state-badge[data-state="launching"] {
  border-color: rgba(11, 111, 123, 0.3);
  background: rgba(11, 111, 123, 0.12);
  color: #0b6f7b;
}

.state-badge[data-state="completed"],
.state-badge[data-state="done"] {
  border-color: rgba(47, 158, 68, 0.3);
  background: rgba(47, 158, 68, 0.12);
  color: var(--state-done);
}

.state-badge[data-state="failed"],
.state-badge[data-state="error"],
.state-badge[data-state="cancelled"],
.state-badge[data-state="timed_out"] {
  border-color: rgba(217, 72, 15, 0.3);
  background: rgba(217, 72, 15, 0.12);
  color: var(--state-fail);
}

.login-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.login-card {
  width: min(380px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 14px 30px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeUp 0.6s ease;
}

.login-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-card h1 {
  margin: 0;
  font-family: "Spectral", serif;
  font-size: 28px;
}

.login-card p {
  margin: 0;
  color: var(--ink-soft);
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

input,
textarea,
select {
  font-family: "Space Grotesk", sans-serif;
  border: 1px solid rgba(16, 42, 45, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button {
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--shadow);
}

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

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

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(15, 107, 111, 0.4);
  outline-offset: 2px;
}

.primary {
  background: linear-gradient(140deg, var(--teal), var(--teal-dark));
  color: #fff;
}

.ghost {
  background: transparent;
  border: 1px solid rgba(16, 42, 45, 0.2);
  color: var(--ink);
}

.hidden {
  display: none;
}

.chat-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.chat-header h2 {
  margin: 0;
  font-family: "Spectral", serif;
  font-size: 24px;
}

.chat-header p {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.user-badge {
  background: rgba(15, 107, 111, 0.1);
  color: var(--teal-dark);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  padding: 14px 16px;
  border-radius: 14px;
  max-width: 80%;
  line-height: 1.4;
  white-space: pre-line;
  animation: fadeUp 0.35s ease;
}

.message.ai {
  background: rgba(15, 107, 111, 0.08);
  border: 1px solid rgba(15, 107, 111, 0.2);
}

.message.user {
  align-self: flex-end;
  background: rgba(244, 185, 74, 0.2);
  border: 1px solid rgba(244, 185, 74, 0.4);
}

.composer {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(16, 42, 45, 0.08);
}

.composer-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.question-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.question-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 42, 45, 0.1);
  box-shadow: 0 2px 8px rgba(16, 42, 45, 0.07);
  animation: fadeUp 0.35s ease;
}

.question-card.required {
  border: 1px solid rgba(224, 122, 95, 0.6);
}

.question-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.question-help {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.question-error {
  font-size: 12px;
  color: #b0413e;
  margin-top: 8px;
}

.input-row {
  display: grid;
  gap: 12px;
}

.input-row.two {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.choice-btn {
  border: 1px solid rgba(16, 42, 45, 0.2);
  background: rgba(255, 249, 235, 0.8);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.choice-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(16, 42, 45, 0.12);
}

.choice-btn.selected {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.choice-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.workflow-designer {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(235, 247, 248, 0.85));
}

.workflow-designer-layout {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-width: 0;
}

.workflow-designer-main,
.workflow-designer-side {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.workflow-designer-side {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.workflow-block {
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.workflow-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 2px;
}

.workflow-block-help {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.workflow-stage-guide-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.workflow-stage-guide-desc {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  min-height: 48px;
}

.workflow-palette {
  margin-top: 0;
}

.workflow-palette-btn {
  background: rgba(237, 246, 250, 0.9);
}

.workflow-canvas {
  margin-top: 0;
  border: 1px dashed rgba(11, 111, 123, 0.35);
  border-radius: 14px;
  padding: 10px;
  min-height: 86px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  min-width: 0;
  width: 100%;
}

.workflow-node {
  position: relative;
  border: 1px solid rgba(11, 111, 123, 0.24);
  background: #ffffff;
  color: var(--ink);
  border-radius: 12px;
  min-width: 96px;
  padding: 8px 28px 8px 10px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  box-shadow: 0 8px 16px rgba(12, 35, 38, 0.08);
  animation: nodePop 0.32s ease both;
  cursor: pointer;
  flex: 0 0 auto;
}

.workflow-node.checkpoint {
  border-color: rgba(11, 111, 123, 0.5);
  background: linear-gradient(150deg, rgba(226, 244, 248, 0.94), rgba(255, 255, 255, 0.95));
}

.workflow-node.final-node {
  border-color: rgba(243, 183, 79, 0.5);
}

.workflow-node:hover {
  transform: translateY(-1px);
}

.workflow-node:focus-visible {
  outline: 2px solid rgba(11, 111, 123, 0.34);
  outline-offset: 2px;
}

.workflow-node-title {
  font-size: 12px;
  font-weight: 700;
}

.workflow-node-badges {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.workflow-node-badge {
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(11, 111, 123, 0.12);
  border: 1px solid rgba(11, 111, 123, 0.24);
  font-size: 10px;
  color: var(--teal-dark);
}

.workflow-node-badge.final {
  background: rgba(243, 183, 79, 0.16);
  border-color: rgba(243, 183, 79, 0.38);
  color: #7d4f00;
}

.workflow-node-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  border-radius: 999px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  padding: 0;
  border: 1px solid rgba(16, 42, 45, 0.2);
  background: #f8fbfc;
  color: var(--ink-soft);
  font-size: 11px;
}

.workflow-edge {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-dark);
  opacity: 0.72;
  flex: 0 0 auto;
}

.workflow-toggle-wrap {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.workflow-toggle {
  justify-content: flex-start;
  gap: 8px;
}

.parameter-board {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(238, 248, 251, 0.9));
}

.mode-guide {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.mode-guide-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.mode-guide-item {
  border: 1px solid rgba(16, 42, 45, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}

.mode-guide-item.selected {
  border-color: rgba(11, 111, 123, 0.45);
  background: linear-gradient(160deg, rgba(229, 246, 248, 0.9), rgba(255, 255, 255, 0.96));
}

.mode-guide-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.mode-guide-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.option-board {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 250, 0.9));
}

.parameter-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.option-board-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.option-field .choice-group {
  margin-top: 2px;
}

.option-field .choice-note {
  margin-top: 4px;
}

.parameter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(16, 42, 45, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
}

.parameter-field.required {
  border-color: rgba(224, 122, 95, 0.55);
}

.parameter-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.parameter-help {
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink-soft);
}

.parameter-help.inactive {
  color: #7b8790;
}

.parameter-field input,
.parameter-field textarea {
  width: 100%;
}

.parameter-error {
  min-height: 1.2em;
  font-size: 11px;
  color: #b0413e;
}

.parameter-field.inactive {
  opacity: 0.78;
  background: rgba(247, 250, 251, 0.96);
}

.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.attachment-item {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 249, 235, 0.8);
  border: 1px dashed rgba(16, 42, 45, 0.2);
}

.attachment-item.required {
  border-color: rgba(224, 122, 95, 0.6);
}

.attachment-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.attachment-help {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.attachment-meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.file-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.file-input-native {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.file-name {
  font-size: 12px;
  color: var(--ink-soft);
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.setup-residue-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.residue-picker-launcher {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.residue-picker-launcher .question-help {
  margin-bottom: 0;
}

.setup-residue-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.setup-residue-picker-head-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 320px;
}

.setup-residue-picker-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.setup-residue-picker-mode-row,
.setup-residue-picker-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.setup-residue-picker-threshold {
  display: grid;
  grid-template-columns: auto minmax(88px, 110px) minmax(180px, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.setup-residue-picker-threshold-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.setup-residue-picker-threshold input {
  width: 100%;
}

.setup-residue-picker-threshold-help {
  font-size: 12px;
  color: var(--ink-soft);
}

.mode-chip.selected,
.preset-chip.selected {
  border-color: rgba(11, 111, 123, 0.24);
  background: rgba(11, 111, 123, 0.08);
  color: var(--teal);
}

.setup-residue-picker-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 10px;
}

.setup-residue-picker-sequence,
.setup-residue-picker-view {
  min-height: 120px;
  border-radius: 12px;
  border: 1px dashed rgba(16, 42, 45, 0.24);
  background: rgba(255, 255, 255, 0.9);
  padding: 8px;
}

.setup-residue-picker-sequence-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
}

.sequence-track-block {
  border: 1px solid rgba(16, 42, 45, 0.08);
  border-radius: 10px;
  padding: 8px;
  background: rgba(249, 253, 254, 0.96);
}

.sequence-track-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.sequence-track-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sequence-track-row + .sequence-track-row {
  margin-top: 8px;
}

.sequence-track-grid,
.sequence-track-labels {
  display: grid;
  gap: 2px;
}

.sequence-track-residue {
  min-width: 20px;
  min-height: 34px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 2px 0 0;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.sequence-track-residue:hover {
  background: rgba(11, 111, 123, 0.06);
  border-color: rgba(11, 111, 123, 0.18);
}

.sequence-track-aa {
  line-height: 1;
}

.sequence-track-bar {
  width: calc(100% - 2px);
  height: 4px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--residue-color, #9ca3af);
}

.sequence-track-residue.selected {
  border-color: rgba(11, 111, 123, 0.32);
  background: rgba(255, 244, 199, 0.92);
  box-shadow: inset 0 0 0 1px rgba(199, 154, 0, 0.18);
  transform: translateY(-1px);
}

.sequence-track-labels {
  min-height: 14px;
  font-size: 10px;
  color: var(--ink-soft);
}

.sequence-track-label {
  align-self: start;
  justify-self: start;
  transform: translateX(-10%);
  white-space: nowrap;
}

.sequence-track-label.edge {
  font-weight: 700;
}

.setup-residue-picker-viewer {
  height: 420px;
}

.setup-residue-picker-notice {
  color: var(--ink-soft);
}

.detached-picker-root {
  width: 100%;
}

.detached-picker-shell {
  width: min(1600px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 12px 0 8px;
}

.detached-picker-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-radius: 22px;
  border: 1px solid rgba(16, 42, 45, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 250, 0.98));
  padding: 18px 20px;
  box-shadow: 0 18px 34px rgba(16, 42, 45, 0.08);
}

.detached-picker-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 520px;
}

.detached-picker-copy strong {
  font-size: 1.05rem;
  color: var(--ink);
}

.detached-picker-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.detached-picker-card-slot {
  min-width: 0;
}

.detached-picker-card {
  margin: 0;
  box-shadow: 0 24px 40px rgba(16, 42, 45, 0.1);
}

.detached-picker-card .setup-residue-picker-workspace {
  grid-template-columns: minmax(0, 1.7fr) minmax(420px, 1fr);
  gap: 16px;
}

.detached-picker-card .setup-residue-picker-sequence-body {
  max-height: min(72vh, 960px);
}

.detached-picker-card .setup-residue-picker-viewer {
  height: min(72vh, 960px);
}

@media (max-width: 980px) {
  .setup-residue-picker-workspace {
    grid-template-columns: 1fr;
  }

  .setup-residue-picker-threshold {
    grid-template-columns: 1fr;
  }

  .detached-picker-card .setup-residue-picker-workspace {
    grid-template-columns: 1fr;
  }
}

.run-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.run-inline-status {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 42, 45, 0.15);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  color: var(--ink-soft);
}

.run-inline-status[data-state="running"] {
  border-color: rgba(28, 126, 214, 0.4);
  background: rgba(28, 126, 214, 0.1);
  color: var(--state-run);
}

.run-inline-status[data-state="launching"] {
  border-color: rgba(11, 111, 123, 0.36);
  background: rgba(11, 111, 123, 0.12);
  color: #0b6f7b;
}

.run-inline-status[data-state="completed"],
.run-inline-status[data-state="done"] {
  border-color: rgba(47, 158, 68, 0.4);
  background: rgba(47, 158, 68, 0.1);
  color: var(--state-done);
}

.run-inline-status[data-state="failed"] {
  border-color: rgba(217, 72, 15, 0.4);
  background: rgba(217, 72, 15, 0.1);
  color: var(--state-fail);
}

.run-inline-status[data-state="error"],
.run-inline-status[data-state="cancelled"],
.run-inline-status[data-state="canceled"],
.run-inline-status[data-state="timed_out"] {
  border-color: rgba(217, 72, 15, 0.4);
  background: rgba(217, 72, 15, 0.1);
  color: var(--state-fail);
}

.workflow-review {
  margin-top: 4px;
  border-radius: 12px;
  border: 1px solid rgba(11, 111, 123, 0.2);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(232, 245, 247, 0.9));
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workflow-review-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.workflow-review-state {
  color: var(--ink-soft);
  font-size: 12px;
}

.workflow-review-meta {
  font-size: 12px;
  color: var(--ink-soft);
}

.workflow-mini-chart {
  border: 1px solid rgba(16, 42, 45, 0.12);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.86);
  overflow-x: auto;
}

.workflow-mini-chart svg {
  width: 100%;
  min-width: 320px;
  height: 140px;
}

.workflow-mini-chart line {
  stroke: rgba(16, 42, 45, 0.3);
  stroke-width: 1;
}

.workflow-mini-bar rect {
  fill: rgba(11, 111, 123, 0.72);
}

.workflow-mini-bar text {
  font-size: 10px;
  fill: #20343d;
}

.workflow-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workflow-results {
  border: 1px solid rgba(16, 42, 45, 0.12);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workflow-results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.workflow-results-count {
  font-size: 11px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.workflow-results-hint {
  font-size: 12px;
  color: var(--ink-soft);
}

.workflow-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}

.workflow-result-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workflow-result-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.workflow-result-group-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workflow-result-item {
  width: 100%;
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.workflow-result-item:hover,
.workflow-result-item:focus-visible {
  border-color: rgba(15, 107, 111, 0.4);
  outline: none;
}

.workflow-result-path {
  font-size: 12px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.workflow-result-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.workflow-rerun-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(16, 42, 45, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  color: var(--ink-soft);
}

.workflow-rerun-wrap select {
  min-width: 120px;
  font-size: 12px;
}

.hint {
  font-size: 13px;
  color: var(--ink-soft);
}

.copilot-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 26, 0.32);
  backdrop-filter: blur(4px);
  z-index: 23;
}

.copilot-backdrop.hidden {
  display: none;
}

.copilot-drawer {
  position: fixed;
  top: 78px;
  right: 20px;
  bottom: 18px;
  width: min(520px, calc(100vw - 32px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 250, 251, 0.97));
  border: 1px solid rgba(16, 42, 45, 0.14);
  border-radius: 22px;
  box-shadow: 0 26px 64px rgba(11, 30, 33, 0.28);
  z-index: 24;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.copilot-drawer.hidden {
  display: none;
}

.copilot-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 25;
  border-radius: 999px;
  padding: 11px 18px;
  min-height: 46px;
  border: 1px solid rgba(16, 42, 45, 0.18);
  box-shadow: 0 14px 34px rgba(12, 30, 33, 0.24);
}

.copilot-fab::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-right: 1px solid rgba(16, 42, 45, 0.18);
  border-bottom: 1px solid rgba(16, 42, 45, 0.18);
  transform: rotate(45deg);
}

.copilot-fab.hidden {
  display: none;
}

.copilot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(16, 42, 45, 0.08);
  background: linear-gradient(180deg, rgba(248, 252, 252, 0.98), rgba(248, 252, 252, 0.92));
}

.copilot-header h4 {
  margin: 0;
  font-family: "Spectral", serif;
  font-size: 22px;
  line-height: 1.1;
}

.copilot-header p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 320px;
}

.copilot-header-actions {
  display: inline-flex;
  gap: 8px;
  flex-shrink: 0;
}

.copilot-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.copilot-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.copilot-section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

.copilot-panel {
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

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

.copilot-summary-card {
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 249, 0.95));
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.copilot-summary-card.tone-teal {
  border-color: rgba(15, 107, 111, 0.22);
}

.copilot-summary-card.tone-amber {
  border-color: rgba(244, 185, 74, 0.3);
}

.copilot-summary-card.tone-rose {
  border-color: rgba(224, 122, 95, 0.3);
}

.copilot-summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.copilot-summary-value {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  word-break: break-word;
}

.copilot-summary-meta {
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.copilot-context {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copilot-context-row {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.copilot-context-row strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.copilot-context-row span {
  word-break: break-word;
  line-height: 1.45;
}

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

.copilot-action-btn {
  width: 100%;
  border: 1px solid rgba(16, 42, 45, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 249, 0.92));
  color: inherit;
  font: inherit;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.copilot-action-btn:hover,
.copilot-action-btn:focus-visible {
  border-color: rgba(15, 107, 111, 0.34);
  box-shadow: 0 10px 22px rgba(12, 30, 33, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.copilot-action-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.copilot-action-desc {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-soft);
}

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

@media (max-width: 1180px) {
  .copilot-section-grid,
  .copilot-summary,
  .copilot-quick {
    grid-template-columns: 1fr;
  }
}

.copilot-quick .ghost {
  min-height: 44px;
  font-size: 12px;
  line-height: 1.3;
  justify-content: flex-start;
  text-align: left;
  padding: 9px 11px;
}

.copilot-chat-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.copilot-messages {
  border: 1px solid rgba(16, 42, 45, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 240px;
  overflow: auto;
}

.copilot-message {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 92%;
}

.copilot-message.user {
  align-self: flex-end;
}

.copilot-message.ai {
  align-self: flex-start;
}

.copilot-message-meta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.copilot-bubble {
  border-radius: 14px;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.copilot-message.user .copilot-bubble {
  background: rgba(15, 107, 111, 0.1);
  border: 1px solid rgba(15, 107, 111, 0.2);
}

.copilot-message.ai .copilot-bubble {
  background: rgba(244, 185, 74, 0.14);
  border: 1px solid rgba(244, 185, 74, 0.35);
}

.copilot-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(16, 42, 45, 0.08);
  background: rgba(248, 252, 252, 0.96);
}

.copilot-input-row input {
  flex: 1;
  min-width: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 30, 33, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

.overlay.hidden {
  display: none;
}

.overlay-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 60px var(--shadow-strong);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overlay-header h4 {
  margin: 0;
  font-family: "Spectral", serif;
  font-size: 18px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.help-card {
  width: min(720px, 100%);
  max-height: 80vh;
  overflow: auto;
}

.report-card {
  width: min(900px, 100%);
  max-height: 85vh;
  overflow: hidden;
}

.report-modal-content {
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 12px;
  background: #fafafa;
  padding: 16px;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  overflow: auto;
  max-height: 70vh;
}

.report-modal-content h1,
.report-modal-content h2,
.report-modal-content h3 {
  margin: 12px 0 8px;
  font-family: "Spectral", serif;
}

.report-modal-content p {
  margin: 8px 0;
}

.report-modal-content ul,
.report-modal-content ol {
  margin: 8px 0 8px 18px;
  padding: 0;
}

.report-modal-content li {
  margin: 4px 0;
}

.report-modal-content code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(15, 107, 111, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.report-modal-content pre {
  background: #0f1f21;
  color: #e7f0f2;
  padding: 12px;
  border-radius: 10px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
}

.report-modal-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border: 1px solid rgba(16, 42, 45, 0.12);
  border-radius: 10px;
  background: #fff;
}

.report-modal-content img.report-image-missing {
  min-height: 20px;
  opacity: 0.65;
  border-style: dashed;
}

.report-modal-content table.md-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 12px;
  white-space: normal;
}

.report-modal-content table.md-table th,
.report-modal-content table.md-table td {
  border: 1px solid rgba(16, 42, 45, 0.12);
  padding: 6px 8px;
  vertical-align: top;
}

.report-modal-content table.md-table thead th {
  background: rgba(15, 107, 111, 0.08);
  font-weight: 600;
}

.help-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.help-section h5 {
  margin: 0 0 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.help-section ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
}

.side-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.side-section h3 {
  margin: 0;
  font-family: "Spectral", serif;
  font-size: 20px;
}

.status-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(16, 42, 45, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-actions {
  display: flex;
  gap: 10px;
}

.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.score-row-compact {
  gap: 6px;
}

.score-row-compact .score-pill {
  padding: 4px 8px;
  font-size: 11px;
}

.score-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 107, 111, 0.08);
  border: 1px solid rgba(15, 107, 111, 0.2);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.status-row-run-select {
  align-items: flex-start;
}

.run-id-select-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 220px;
}

.run-selector {
  min-width: 220px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.run-selector-compact {
  min-width: 0;
  width: 100%;
  max-width: 220px;
}

.status-row .label {
  color: var(--ink-soft);
}

.status-detail-row {
  align-items: flex-start;
}

.status-detail-value {
  max-width: 68%;
  text-align: right;
  word-break: break-word;
  line-height: 1.35;
}

.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.progress-label {
  color: var(--ink-soft);
  font-weight: 600;
}

.progress-percent {
  color: var(--ink);
  font-weight: 700;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(16, 42, 45, 0.1);
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1c7ed6, #0b6f7b);
  transition: width 180ms ease;
}

.progress-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.progress-stage {
  border-radius: 999px;
  border: 1px solid rgba(16, 42, 45, 0.15);
  background: #fff;
  color: var(--state-wait);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

.progress-stage.done {
  border-color: rgba(47, 158, 68, 0.45);
  background: rgba(47, 158, 68, 0.12);
  color: var(--state-done);
}

.progress-stage.current {
  border-color: rgba(28, 126, 214, 0.6);
  background: rgba(28, 126, 214, 0.14);
  color: var(--state-run);
}

.progress-stage.failed {
  border-color: rgba(217, 72, 15, 0.45);
  background: rgba(217, 72, 15, 0.14);
  color: var(--state-fail);
}

.status-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.completeness-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 30px;
}

.completeness-badge {
  border-radius: 999px;
  border: 1px solid rgba(16, 42, 45, 0.18);
  background: rgba(16, 42, 45, 0.08);
  color: var(--ink-soft);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
}

.completeness-badge.good {
  border-color: rgba(47, 158, 68, 0.4);
  background: rgba(47, 158, 68, 0.12);
  color: var(--state-done);
}

.completeness-badge.warn {
  border-color: rgba(244, 185, 74, 0.45);
  background: rgba(244, 185, 74, 0.15);
  color: #8a5b00;
}

.completeness-badge.bad {
  border-color: rgba(217, 72, 15, 0.4);
  background: rgba(217, 72, 15, 0.13);
  color: var(--state-fail);
}

.status-actions #cancelRunBtn {
  border-color: rgba(224, 122, 95, 0.5);
  color: var(--coral);
}

.status-actions #cancelRunBtn:hover {
  background: rgba(224, 122, 95, 0.1);
}

.status-subtitle {
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

.run-subtitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.run-subtitle button {
  text-transform: none;
  letter-spacing: 0;
  padding: 4px 10px;
  font-size: 11px;
}

.run-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
}

.agent-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agent-status {
  font-size: 12px;
  color: var(--ink-soft);
}

.agent-panel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.agent-event {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 42, 45, 0.1);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.agent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.agent-stage {
  font-weight: 600;
}

.agent-decision {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
}

.agent-decision.decision-proceed {
  background: rgba(15, 107, 111, 0.12);
  color: var(--teal);
  border-color: rgba(15, 107, 111, 0.3);
}

.agent-decision.decision-monitor,
.agent-decision.decision-review {
  background: rgba(244, 185, 74, 0.16);
  color: #a46b00;
  border-color: rgba(244, 185, 74, 0.4);
}

.agent-decision.decision-recover {
  background: rgba(224, 122, 95, 0.16);
  color: var(--coral);
  border-color: rgba(224, 122, 95, 0.4);
}

.agent-details {
  color: var(--ink-soft);
}

.agent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.agent-note {
  flex: 1;
  min-width: 140px;
  border: 1px solid rgba(16, 42, 45, 0.15);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 12px;
}

.agent-feedback-status {
  font-size: 11px;
  color: var(--ink-soft);
}

.report-review {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agent-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.agent-badge {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(16, 42, 45, 0.08);
  font-size: 10px;
  color: var(--ink-soft);
}

.agent-badge.status-ok {
  background: rgba(15, 107, 111, 0.12);
  color: var(--teal-dark);
}

.agent-badge.status-warn {
  background: rgba(244, 185, 74, 0.18);
  color: #a46b00;
}

.agent-badge.status-error {
  background: rgba(224, 122, 95, 0.18);
  color: var(--coral);
}

.run-item {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(16, 42, 45, 0.1);
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.run-item:hover {
  border-color: rgba(15, 107, 111, 0.4);
}

.run-item.active {
  border-color: rgba(15, 107, 111, 0.45);
  background: rgba(15, 107, 111, 0.08);
}

.run-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.run-delete {
  border: 1px solid rgba(224, 122, 95, 0.4);
  color: var(--coral);
  background: rgba(224, 122, 95, 0.08);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
}

.run-delete:hover {
  border-color: rgba(224, 122, 95, 0.7);
  background: rgba(224, 122, 95, 0.16);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.artifact-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.artifact-controls .artifact-select {
  min-width: 140px;
}

.artifact-monitor-hint {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.artifact-monitor-hint .hint {
  margin: 0;
}

.comparison-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding: 2px 2px 2px 0;
}

.comparison-card {
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.comparison-card h4 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.comparison-table th,
.comparison-table td {
  padding: 6px 4px;
  border-bottom: 1px solid rgba(16, 42, 45, 0.08);
  text-align: right;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
}

.comparison-note {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 6px;
}

.comparison-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.comparison-kpis div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  border-bottom: 1px dashed rgba(16, 42, 45, 0.12);
  padding-bottom: 4px;
}

.comparison-kpis span {
  color: var(--ink-soft);
}

.comparison-kpis strong {
  text-align: right;
  word-break: break-word;
}

.comparison-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.run-compare-controls {
  align-items: flex-end;
  justify-content: space-between;
}

.run-compare-controls > label {
  min-width: 260px;
  flex: 1;
}

.run-compare-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.hit-list-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hit-list-controls > label {
  max-width: 360px;
}

.hint-inline {
  font-size: 12px;
  color: var(--ink-soft);
}

.hit-list-weights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hit-list-note {
  font-size: 12px;
  color: var(--ink-soft);
}

.hit-list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chart-explorer {
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-explorer-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.chart-explorer-head > label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 260px;
}

.chart-canvas {
  min-height: 320px;
  border-radius: 10px;
  border: 1px dashed rgba(16, 42, 45, 0.22);
  background: linear-gradient(180deg, rgba(249, 253, 254, 0.95), rgba(255, 255, 255, 0.95));
  padding: 8px;
  overflow: auto;
}

.chart-canvas-report {
  min-height: 300px;
}

.chart-canvas .placeholder {
  min-height: 240px;
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-caption {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.chart-explorer-report {
  margin-top: 2px;
}

.hit-list-table-wrap {
  max-height: 360px;
  overflow: auto;
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 12px;
  background: #fff;
}

.hit-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.hit-list-table th,
.hit-list-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(16, 42, 45, 0.08);
  white-space: nowrap;
}

.hit-list-table thead th {
  position: sticky;
  top: 0;
  background: #f7fbfc;
  z-index: 1;
  text-align: left;
}

.hit-list-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hit-list-row-pass {
  background: rgba(47, 158, 68, 0.06);
}

.hit-list-row-missing {
  opacity: 0.72;
}

.artifact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.artifact-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.artifact-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  padding: 0 6px;
}

.artifact-group-title {
  font-weight: 600;
}

.artifact-group-count {
  font-variant-numeric: tabular-nums;
}

.artifact-group-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.artifact-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 42, 45, 0.1);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.artifact-item:hover {
  border-color: rgba(15, 107, 111, 0.4);
}

.stage-tag {
  background: rgba(15, 107, 111, 0.1);
  color: var(--teal-dark);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.artifact-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tier-tag {
  background: rgba(244, 185, 74, 0.2);
  color: #7a4b00;
}

.type-tag {
  background: rgba(16, 42, 45, 0.08);
  color: var(--ink-soft);
}

.artifact-preview {
  min-height: 200px;
  border-radius: 16px;
  border: 1px dashed rgba(16, 42, 45, 0.2);
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  overflow: auto;
}

.artifact-compare-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}

.artifact-compare-controls .artifact-select {
  min-width: 190px;
}

.compare-reference-strip,
.compare-preset-strip,
.compare-manifest-strip {
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(250, 253, 254, 0.96), rgba(255, 255, 255, 0.98));
  padding: 10px 12px;
}

.compare-strip-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.compare-reference-list,
.compare-preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-manifest-list {
  display: grid;
  gap: 8px;
}

.compare-manifest-chip {
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 10px;
  color: var(--ink);
  font-size: 12px;
}

.compare-reference-disclosure {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-reference-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.compare-reference-summary::-webkit-details-marker {
  display: none;
}

.compare-reference-summary::after {
  content: "+";
  font-size: 14px;
  line-height: 1;
  color: var(--ink-soft);
}

.compare-reference-disclosure[open] .compare-reference-summary::after {
  content: "-";
}

.compare-reference-disclosure .compare-reference-list {
  margin-top: 2px;
}

.compare-preset-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: min(320px, 100%);
}

.compare-reference-chip {
  min-width: min(240px, 100%);
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 12px;
  border: 1px solid rgba(16, 42, 45, 0.1);
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 10px;
}

.compare-reference-chip.is-missing {
  background: rgba(16, 42, 45, 0.04);
  border-style: dashed;
}

.compare-reference-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compare-reference-value {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
  word-break: break-word;
}

.compare-preset-btn {
  border-color: rgba(16, 42, 45, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.compare-preset-btn.is-active,
.compare-preset-btn:hover {
  border-color: rgba(28, 126, 214, 0.35);
  background: rgba(28, 126, 214, 0.1);
  color: #0a568e;
}

.compare-preset-group.is-active .compare-preset-select {
  border-color: rgba(28, 126, 214, 0.35);
  box-shadow: 0 0 0 2px rgba(28, 126, 214, 0.08);
}

.compare-preset-select {
  min-width: 118px;
  border-radius: 999px;
  border: 1px solid rgba(16, 42, 45, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 7px 12px;
  font-size: 12px;
  line-height: 1.2;
}

.compare-studio-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 12px;
}

.compare-studio-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.compare-studio-column .artifact-preview {
  min-height: 460px;
}

.compare-studio-column .comparison-summary {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.compare-studio-mount:empty {
  display: none;
}

.compare-meta-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.compare-meta-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.compare-meta-help {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.info-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(11, 111, 123, 0.2);
  background: rgba(11, 111, 123, 0.08);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: help;
}

.compare-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.compare-meta-card {
  border: 1px solid rgba(16, 42, 45, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 252, 0.95));
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-meta-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.compare-meta-card-subtitle {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.compare-meta-list {
  display: grid;
  gap: 8px;
}

.compare-meta-item {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.compare-meta-label-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-width: 0;
}

.compare-meta-label {
  font-size: 11px;
  color: var(--ink-soft);
}

.compare-inline-help {
  display: inline-flex;
  align-items: center;
  cursor: help;
}

.compare-inline-help .compare-meta-label {
  text-decoration: underline dotted rgba(11, 111, 123, 0.55);
  text-underline-offset: 2px;
}

.compare-tooltip-bubble {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  transform: translateY(-4px);
  min-width: 180px;
  max-width: 260px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(16, 42, 45, 0.96);
  color: #fff;
  font-size: 11px;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(16, 42, 45, 0.24);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 120ms ease, transform 120ms ease;
}

.compare-tooltip-bubble::before {
  content: "";
  position: absolute;
  left: 12px;
  top: -6px;
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent rgba(16, 42, 45, 0.96) transparent;
}

.compare-inline-help:hover .compare-tooltip-bubble,
.compare-inline-help:focus-within .compare-tooltip-bubble {
  opacity: 1;
  transform: translateY(0);
}

.compare-meta-value {
  font-size: 12px;
  color: var(--ink);
  word-break: break-word;
}

.compare-meta-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
}

.viewer3d {
  width: 100%;
  height: 240px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(16, 42, 45, 0.1);
}

.viewer3d-legend {
  margin: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: calc(100% - 20px);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(16, 42, 45, 0.12);
  border: 1px solid rgba(16, 42, 45, 0.08);
}

.viewer3d-legend-line {
  white-space: normal;
}

.viewer3d-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.viewer3d-pane {
  border: 1px solid rgba(16, 42, 45, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.viewer3d-pane-header {
  padding: 6px 8px;
  font-size: 11px;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(16, 42, 45, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewer3d-pane-body {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.viewer3d-diff-note {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-soft);
}

.compare-seq-panel {
  margin-top: 10px;
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-seq-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.compare-seq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.compare-seq-box {
  border: 1px solid rgba(16, 42, 45, 0.08);
  border-radius: 10px;
  background: rgba(249, 253, 254, 0.95);
  padding: 8px;
  min-width: 0;
}

.compare-seq-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.compare-seq-fasta {
  margin: 0;
  max-height: 180px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  line-height: 1.4;
  white-space: pre;
  color: #11363d;
}

@media (max-width: 980px) {
  .compare-meta-grid,
  .compare-seq-grid,
  .viewer3d-compare {
    grid-template-columns: 1fr;
  }
}

.residue-linked {
  margin-top: 10px;
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.residue-linked-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-soft);
}

.residue-linked-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.legend-chip {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  border: 1px solid rgba(16, 42, 45, 0.12);
  background: #fff;
  color: var(--ink-soft);
}

.legend-chip.low {
  background: rgba(207, 213, 220, 0.55);
}

.legend-chip.mid {
  background: rgba(230, 167, 0, 0.22);
}

.legend-chip.high {
  background: rgba(214, 39, 40, 0.22);
}

.legend-chip.selected {
  background: rgba(11, 111, 123, 0.14);
  color: var(--teal);
}

.residue-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 88px;
  overflow: auto;
  padding: 2px;
}

.residue-chip {
  border: 1px solid rgba(16, 42, 45, 0.18);
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 11px;
  cursor: pointer;
  background: #fff;
}

.residue-chip.low {
  background: rgba(207, 213, 220, 0.55);
}

.residue-chip.mid {
  background: rgba(230, 167, 0, 0.22);
}

.residue-chip.high {
  background: rgba(214, 39, 40, 0.22);
}

.residue-chip.selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px rgba(11, 111, 123, 0.28);
}

.residue-table-wrap {
  max-height: 180px;
  overflow: auto;
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 10px;
}

.residue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.residue-table th,
.residue-table td {
  padding: 5px 6px;
  border-bottom: 1px solid rgba(16, 42, 45, 0.08);
}

.residue-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.residue-table tr {
  cursor: pointer;
}

.residue-table tr:hover {
  background: rgba(11, 111, 123, 0.08);
}

.residue-table tr.selected {
  background: rgba(11, 111, 123, 0.16);
}

.preview-image {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(16, 42, 45, 0.1);
}

.artifact-preview pre {
  white-space: pre-wrap;
  font-size: 12px;
}

.placeholder {
  color: var(--ink-soft);
  font-size: 13px;
}

.report-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}

.report-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(16, 42, 45, 0.1);
  background: #fff;
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.report-link span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-link:hover {
  border-color: rgba(15, 107, 111, 0.4);
}

.settings-card {
  width: 100%;
  padding: 22px;
}

.admin-card {
  width: min(440px, 100%);
}

.settings-fixed {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-section {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-label {
  font-weight: 600;
  font-size: 13px;
}

.settings-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  background: rgba(16, 42, 45, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
}

.settings-actions {
  display: flex;
  gap: 10px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nodePop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1100px) {
  .global-monitor-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-ux-grid {
    grid-template-columns: 1fr;
  }

  .setup-lane-execution .section-stack {
    grid-template-columns: 1fr;
  }

  .monitor-grid {
    grid-template-columns: 1fr;
  }

  .analyze-grid {
    grid-template-columns: 1fr;
  }

  .analyze-summary {
    grid-template-columns: 1fr;
  }

  .hit-list-weights {
    grid-template-columns: 1fr 1fr;
  }

  .chart-explorer-head {
    flex-direction: column;
    align-items: stretch;
  }

  .chart-explorer-head > label {
    min-width: 0;
  }

  .compare-studio-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .tab-run-context {
    align-items: stretch;
    flex-direction: column;
  }

  .run-context-select {
    width: 100%;
  }

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

.studio-shell-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.studio-toolbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.studio-session-panel {
  flex: 1 1 320px;
  min-width: min(100%, 320px);
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.studio-session-list {
  max-height: 180px;
}

.studio-session-item {
  cursor: default;
  align-items: center;
}

.studio-session-item:hover {
  border-color: rgba(16, 42, 45, 0.1);
}

.studio-session-item.active:hover {
  border-color: rgba(15, 107, 111, 0.45);
}

.studio-session-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.studio-session-copy strong {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-session-meta {
  font-size: 11px;
  color: var(--ink-soft);
}

.studio-session-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.studio-session-action {
  padding: 2px 8px;
  font-size: 11px;
}

.studio-toolbar-actions {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1 1 360px;
}

.studio-run-panel {
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 251, 0.98));
  padding: 14px 16px;
  box-shadow: 0 12px 24px var(--shadow);
}

.studio-run-panel[data-state="running"] {
  border-color: rgba(28, 126, 214, 0.24);
  box-shadow: 0 16px 28px rgba(28, 126, 214, 0.12);
}

.studio-run-panel[data-state="launching"] {
  border-color: rgba(11, 111, 123, 0.22);
  box-shadow: 0 16px 28px rgba(11, 111, 123, 0.1);
}

.studio-run-panel[data-state="completed"],
.studio-run-panel[data-state="done"] {
  border-color: rgba(47, 158, 68, 0.22);
}

.studio-run-panel[data-state="failed"],
.studio-run-panel[data-state="error"],
.studio-run-panel[data-state="cancelled"],
.studio-run-panel[data-state="canceled"],
.studio-run-panel[data-state="timed_out"] {
  border-color: rgba(217, 72, 15, 0.22);
}

.studio-run-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.studio-run-inline-status {
  margin-top: 0;
}

.studio-run-panel-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.studio-run-stat {
  border-radius: 14px;
  border: 1px solid rgba(16, 42, 45, 0.08);
  background: rgba(255, 255, 255, 0.84);
  padding: 10px 12px;
  min-width: 0;
}

.studio-run-stat .label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.studio-run-stat .value {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.studio-run-stat #studioRunIdValue {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
}

.studio-run-stat #studioRunStateValue {
  display: inline-flex;
}

.workflow-studio-root {
  min-height: 420px;
}

.studio-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px dashed rgba(11, 111, 123, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(237, 245, 248, 0.96));
  padding: 28px;
  text-align: center;
  box-shadow: 0 16px 32px var(--shadow);
}

.studio-empty strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.studio-empty p {
  margin: 0;
  max-width: 560px;
  color: var(--ink-soft);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
}

.studio-stage-rail,
.studio-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.studio-section {
  border-radius: 20px;
  border: 1px solid rgba(11, 111, 123, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 251, 0.98));
  padding: 16px;
  box-shadow: 0 14px 30px var(--shadow);
}

.studio-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.studio-section-head strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.studio-stage-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-stage-btn {
  width: 100%;
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.studio-stage-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 111, 123, 0.26);
  background: rgba(158, 214, 221, 0.18);
}

.studio-stage-btn.active {
  border-color: rgba(11, 111, 123, 0.36);
  background: rgba(158, 214, 221, 0.28);
  box-shadow: 0 10px 24px rgba(11, 111, 123, 0.12);
}

.studio-stage-btn.completed {
  border-color: rgba(47, 158, 68, 0.24);
}

.studio-stage-btn.failed {
  border-color: rgba(217, 72, 15, 0.2);
  background: rgba(208, 99, 79, 0.08);
}

.studio-stage-btn.running {
  border-color: rgba(28, 126, 214, 0.24);
  background: rgba(28, 126, 214, 0.08);
}

.studio-stage-btn.launching {
  border-color: rgba(11, 111, 123, 0.22);
  background: rgba(11, 111, 123, 0.08);
}

.studio-stage-btn.skipped {
  border-color: rgba(153, 127, 44, 0.2);
  background: rgba(214, 177, 77, 0.08);
}

.studio-stage-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
}

.studio-stage-meta {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

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

.studio-summary-card {
  border-radius: 16px;
  border: 1px solid rgba(16, 42, 45, 0.08);
  background: rgba(255, 255, 255, 0.88);
  padding: 12px;
}

.studio-summary-card .label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.studio-summary-card .value {
  display: block;
  font-size: 0.98rem;
  color: var(--ink);
}

.studio-summary-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 42, 45, 0.08);
}

.studio-validation-panel {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(16, 42, 45, 0.1);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
}

.studio-validation-panel.ok {
  border-color: rgba(47, 158, 68, 0.22);
  background: rgba(47, 158, 68, 0.08);
}

.studio-validation-panel.loading {
  border-color: rgba(11, 111, 123, 0.18);
  background: rgba(11, 111, 123, 0.08);
}

.studio-validation-panel.warn {
  border-color: rgba(243, 183, 79, 0.22);
  background: rgba(243, 183, 79, 0.1);
}

.studio-validation-panel.error {
  border-color: rgba(208, 99, 79, 0.22);
  background: rgba(208, 99, 79, 0.1);
}

.studio-validation-title {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.studio-validation-message {
  margin-top: 6px;
  color: var(--ink);
  font-weight: 600;
}

.studio-validation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.studio-validation-group strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.84rem;
}

.studio-validation-group ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.studio-validation-group li + li {
  margin-top: 3px;
}

.studio-inline-slot {
  margin-top: 14px;
}

.studio-residue-picker-card {
  margin: 0;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.88);
}

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

.studio-field {
  border-radius: 16px;
  border: 1px solid rgba(16, 42, 45, 0.08);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
}

.studio-field.full {
  grid-column: 1 / -1;
}

.studio-field-head {
  margin-bottom: 10px;
}

.studio-field-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.studio-field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.studio-field-help {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.studio-field-note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.studio-field input[type="text"],
.studio-field input[type="number"],
.studio-field select,
.studio-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(16, 42, 45, 0.12);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

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

.studio-field input::placeholder,
.studio-field textarea::placeholder {
  color: rgba(75, 91, 102, 0.72);
}

.studio-field-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.studio-field-error {
  margin-top: 8px;
  color: var(--state-fail);
  font-size: 0.82rem;
}

.studio-multiselect {
  border: 1px solid rgba(16, 42, 45, 0.12);
  border-radius: 12px;
  background: #fff;
}

.studio-multiselect summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  color: var(--ink);
}

.studio-multiselect summary::-webkit-details-marker {
  display: none;
}

.studio-multiselect[open] summary {
  border-bottom: 1px solid rgba(16, 42, 45, 0.08);
}

.studio-multiselect-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.studio-multiselect-menu .ghost {
  align-self: flex-start;
  padding: 8px 10px;
}

.studio-multiselect-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-multiselect-option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.studio-note {
  margin-top: 12px;
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(243, 183, 79, 0.12);
  border: 1px solid rgba(243, 183, 79, 0.2);
  color: #7b5721;
  font-size: 0.88rem;
}

.studio-note.warn {
  background: rgba(208, 99, 79, 0.12);
  border-color: rgba(208, 99, 79, 0.18);
  color: #8c3d30;
}

.studio-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-artifact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-result-primary {
  width: 100%;
  border: 1px solid rgba(16, 42, 45, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 13px 14px;
  text-align: left;
  cursor: pointer;
}

.studio-result-primary strong {
  display: block;
  font-size: 0.96rem;
}

.studio-result-primary:hover {
  border-color: rgba(11, 111, 123, 0.26);
  background: rgba(158, 214, 221, 0.18);
}

.studio-result-primary.active {
  border-color: rgba(11, 111, 123, 0.34);
  background: rgba(158, 214, 221, 0.24);
}

.studio-result-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.studio-result-meta {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.studio-result-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.studio-result-select select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(16, 42, 45, 0.12);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

.studio-artifact-item {
  width: 100%;
  border: 1px solid rgba(16, 42, 45, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
}

.studio-artifact-item:hover {
  border-color: rgba(11, 111, 123, 0.26);
  background: rgba(158, 214, 221, 0.18);
}

.studio-artifact-item.active {
  border-color: rgba(11, 111, 123, 0.34);
  background: rgba(158, 214, 221, 0.24);
}

.studio-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-history-item {
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.studio-artifact-preview {
  min-height: 260px;
}

.studio-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(16, 42, 45, 0.08);
  color: var(--ink-soft);
}

.studio-badge.running {
  background: rgba(28, 126, 214, 0.12);
  color: var(--state-run);
}

.studio-badge.launching {
  background: rgba(11, 111, 123, 0.12);
  color: #0b6f7b;
}

.studio-badge.completed {
  background: rgba(47, 158, 68, 0.12);
  color: var(--state-done);
}

.studio-badge.skipped {
  background: rgba(214, 177, 77, 0.16);
  color: #8a6a00;
}

.studio-badge.failed {
  background: rgba(208, 99, 79, 0.12);
  color: var(--state-fail);
}

.studio-badge.error,
.studio-badge.cancelled,
.studio-badge.canceled,
.studio-badge.stopped {
  background: rgba(208, 99, 79, 0.12);
  color: var(--state-fail);
}

@media (max-width: 720px) {
  .topbar {
    padding: 18px 20px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .layout {
    padding: 0 20px 30px;
  }

  .tabbar {
    width: 100%;
  }

  .tab-content-shell {
    padding: 2px 0 8px;
  }

  .panel {
    padding: 18px;
  }

  .studio-run-panel-grid {
    grid-template-columns: 1fr;
  }

  .global-monitor-bar {
    top: 8px;
    padding: 12px;
    width: 100%;
  }

  .global-monitor-main {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .message {
    max-width: 100%;
  }

  .run-id-select-wrap {
    min-width: 0;
    width: 100%;
    align-items: stretch;
  }

  .run-selector {
    min-width: 0;
    width: 100%;
  }

  .viewer3d-compare {
    grid-template-columns: 1fr;
  }

  .compare-seq-grid {
    grid-template-columns: 1fr;
  }

  .hit-list-weights {
    grid-template-columns: 1fr;
  }

  .workflow-designer-layout {
    grid-template-columns: 1fr;
  }

  .workflow-stage-guide-desc {
    min-height: 0;
  }

  .workflow-node {
    min-width: 96px;
  }

  .artifact-compare-controls .artifact-select {
    min-width: 0;
    width: 100%;
  }

  .compare-reference-chip {
    min-width: 0;
    flex-basis: 100%;
  }

  .copilot-drawer {
    top: 70px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: none;
    padding: 0;
  }

  .copilot-fab {
    right: 10px;
    bottom: 12px;
    min-height: 42px;
    padding: 9px 14px;
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .studio-summary-grid,
  .studio-editor-grid {
    grid-template-columns: 1fr;
  }
}
