:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --panel-2: #eef3f3;
  --text: #182223;
  --muted: #627173;
  --line: #d7e0e1;
  --line-strong: #b9c7c8;
  --accent: #0f766e;
  --accent-2: #2563eb;
  --warn: #b45309;
  --bad: #b91c1c;
  --good: #047857;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

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

.app-frame {
  min-height: 100vh;
}

.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 440px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.auth-card h1 {
  font-size: 30px;
  line-height: 1.1;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.5;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 27, 31, 0.42);
}

.confirm-modal {
  width: min(100%, 760px);
  max-height: min(88vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.2);
  padding: 18px;
}

.confirm-summary {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

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

.confirm-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 10px;
  min-width: 0;
}

.confirm-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.confirm-value {
  margin-top: 4px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.confirm-note {
  border: 1px solid #f3d6a8;
  border-radius: 8px;
  background: #fff8ed;
  color: #7c4a03;
  line-height: 1.45;
  padding: 10px 12px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.home-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.home-banner h1 {
  margin-top: 5px;
  font-size: 34px;
  line-height: 1.1;
}

.banner-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 260px));
  gap: 10px;
}

.home-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  min-height: 68px;
  padding: 12px 14px;
  text-align: left;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: var(--shadow);
}

.home-action:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.home-action.active {
  background: #102a43;
  border-color: #102a43;
  color: #fff;
}

.workspace-view {
  min-height: calc(100vh - 121px);
}

#generate-view {
  padding: 22px;
}

#generate-view .submit-section {
  max-width: 1040px;
  margin: 0 auto;
}

.live-monitor {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 14px 22px;
}

.live-monitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto 10px;
}

.live-monitor-head h2 {
  font-size: 18px;
}

.live-monitor-head p {
  color: var(--muted);
  margin-top: 4px;
}

.live-monitor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  max-width: 1440px;
  margin: 0 auto;
}

.live-run-card {
  border: 1px solid #a7d8d3;
  border-radius: 8px;
  background: #f0fdfa;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 11px 12px;
  text-align: left;
}

.live-run-card:hover {
  border-color: var(--accent);
  background: #e5f7f4;
}

.live-run-title {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.live-run-meta,
.live-run-stage {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.live-run-stage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  min-height: calc(100vh - 121px);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #fbfcfc;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.sidebar-head {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 20px;
  line-height: 1.2;
}

h2 {
  font-size: 24px;
  line-height: 1.2;
  margin-top: 4px;
}

h3 {
  font-size: 15px;
  line-height: 1.2;
}

.eyebrow,
#run-count,
#run-subtitle,
#last-updated,
.muted {
  color: var(--muted);
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 9px 10px;
  outline: none;
}

.search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

#run-search {
  margin: 12px 18px;
  width: calc(100% - 36px);
}

.run-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 12px;
}

.filter-chip,
.section-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.filter-chip {
  padding: 5px 9px;
}

.filter-chip.active,
.section-tab.active {
  background: #102a43;
  border-color: #102a43;
  color: #fff;
}

.icon-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.logout-button {
  min-height: 34px;
}

.runs-list {
  overflow: auto;
  padding: 0 10px 14px;
}

.run-row {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  padding: 10px 9px;
  cursor: pointer;
  display: grid;
  gap: 6px;
}

.run-row:hover {
  background: var(--panel-2);
}

.run-row.active {
  background: #e5f4f2;
  border-color: #a7d8d3;
}

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

.run-id {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.run-subid {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.run-scope {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.run-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  background: #fff;
}

.main {
  min-width: 0;
  padding: 22px;
  overflow: auto;
}

.topbar,
.submit-section,
.progress-section,
.artifact-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.topbar {
  padding: 18px;
}

.run-hero {
  align-items: flex-start;
}

.run-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#run-id-small {
  text-transform: none;
  letter-spacing: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

#run-title {
  max-width: 980px;
  font-size: 22px;
  line-height: 1.25;
}

#run-subtitle {
  max-width: 1040px;
  margin-top: 8px;
  line-height: 1.5;
}

.run-panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.run-panel-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  min-height: 40px;
  padding: 8px 12px;
  font-weight: 750;
  box-shadow: var(--shadow);
}

.run-panel-tab:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.run-panel-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.run-panel {
  min-width: 0;
}

.run-panel-empty {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 180px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.run-panel-empty h3 {
  color: var(--text);
  font-size: 17px;
}

.run-panel-empty p {
  max-width: 520px;
  line-height: 1.5;
}

.report-content {
  min-height: 420px;
}

.report-placeholder {
  text-align: center;
  padding: 30px;
}

.report-placeholder h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.report-markdown {
  max-width: none;
}

.submit-section {
  padding: 14px;
  margin-bottom: 14px;
}

.submit-head h3 {
  margin-top: 4px;
}

.job-form {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.job-form.collapsed {
  display: none;
}

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

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span,
.radio-field legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="password"],
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 9px 10px;
  outline: none;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.45;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.radio-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.radio-field label,
.toggle-grid label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
}

.radio-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.radio-field legend {
  padding: 0 4px;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.toggle-grid label.disabled {
  color: #9aa6a8;
}

.advanced {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px 12px;
}

.advanced summary {
  cursor: pointer;
  padding: 12px 0;
  color: var(--muted);
  font-weight: 750;
}

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

.submit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.primary-button {
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 750;
}

.primary-button:hover {
  background: #0b645e;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.job-status {
  color: var(--muted);
  line-height: 1.4;
}

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

.job-status.error {
  color: var(--bad);
}

.job-status a {
  color: inherit;
  font-weight: 750;
}

.status-panel {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.run-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 320px;
}

.run-action-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  min-height: 30px;
  padding: 6px 9px;
}

.run-action-button:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.run-action-button.danger {
  border-color: #fecaca;
  background: #fff5f5;
  color: var(--bad);
}

.run-action-button.danger:hover {
  background: #fee2e2;
}

.status-running,
.stage-running {
  color: var(--accent-2);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.status-completed,
.stage-completed {
  color: var(--good);
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.status-failed,
.stage-failed {
  color: var(--bad);
  border-color: #fecaca;
  background: #fef2f2;
}

.status-created,
.stage-pending,
.status-unknown {
  color: var(--muted);
  border-color: var(--line);
  background: #fff;
}

.current-stage {
  color: var(--muted);
  font-size: 13px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.metric-value {
  font-size: 20px;
  font-weight: 750;
}

.progress-section,
.artifact-section {
  margin-top: 14px;
  padding: 14px;
}

.stage-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.stage-cell {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: #fff;
  min-height: 58px;
}

.stage-cell-name {
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.stage-cell-status {
  display: inline-flex;
  margin-top: 6px;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  border: 1px solid var(--line);
}

.artifact-head {
  align-items: flex-start;
}

.workflow-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
}

.section-count {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  place-items: center;
  border-radius: 999px;
  background: rgba(98, 113, 115, 0.13);
  font-size: 11px;
}

.section-tab.active .section-count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.artifact-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: min(430px, 50%);
}

.artifact-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-bottom: 12px;
}

.artifact-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
}

.artifact-tab.exists {
  border-color: #a7d8d3;
}

.artifact-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.artifact-tab.missing {
  color: #96a3a5;
  cursor: not-allowed;
  background: #f6f8f8;
}

.artifact-content {
  margin-top: 14px;
  min-height: 360px;
}

.empty-state {
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.compact-empty {
  min-height: 110px;
}

.funnel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.funnel-step {
  position: relative;
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow);
}

.funnel-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}

.funnel-step:last-child::after {
  display: none;
}

.funnel-label,
.metric-label {
  text-transform: none;
}

.funnel-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.funnel-value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
}

.funnel-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.overview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  box-shadow: var(--shadow);
}

.overview-card h4 {
  margin: 0 0 9px;
}

.overview-card p {
  line-height: 1.45;
}

.coverage-bars {
  display: grid;
  gap: 8px;
  margin: 5px 0 10px;
}

.coverage-row {
  display: grid;
  grid-template-columns: minmax(88px, 130px) minmax(80px, 1fr) 38px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.coverage-track {
  height: 8px;
  border-radius: 999px;
  background: #e5ebec;
  overflow: hidden;
}

.coverage-track div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.badge-block {
  margin-bottom: 12px;
}

.badge-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.big-line {
  font-size: 18px;
  font-weight: 800;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  vertical-align: top;
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef3f3;
  color: #364446;
  font-size: 12px;
  font-weight: 750;
}

td {
  line-height: 1.35;
}

tr:last-child td {
  border-bottom: 0;
}

.cell-title {
  font-weight: 700;
  color: var(--text);
}

.cell-sub {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}

.detail {
  margin: 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
}

.detail-body {
  padding: 0 12px 12px;
}

.trace-card {
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.trace-card summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
}

.trace-card[open] summary {
  border-bottom: 1px solid var(--line);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.trace-title {
  font-weight: 800;
  line-height: 1.3;
}

.trace-tags {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.trace-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.trace-column {
  min-width: 0;
  border-left: 3px solid #d8e5e6;
  padding-left: 12px;
}

.trace-column h4 {
  margin: 0 0 10px;
}

.raw {
  white-space: pre-wrap;
  word-break: break-word;
  background: #111827;
  color: #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
  max-height: 720px;
}

.markdown {
  white-space: pre-wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  line-height: 1.45;
  overflow: auto;
}

.markdown-rendered {
  max-width: 980px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  line-height: 1.58;
}

.markdown-rendered h2 {
  margin: 24px 0 10px;
  font-size: 22px;
}

.markdown-rendered h3 {
  margin: 20px 0 8px;
  font-size: 17px;
}

.markdown-rendered h4,
.markdown-rendered h5 {
  margin: 16px 0 8px;
}

.markdown-rendered p,
.markdown-rendered ul,
.markdown-rendered ol {
  margin: 0 0 12px;
}

.markdown-rendered details {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px 12px;
}

.markdown-rendered summary {
  cursor: pointer;
  padding: 12px 0;
}

.markdown-rendered code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f6f8f8;
  padding: 1px 4px;
}

.md-code {
  white-space: pre-wrap;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  padding: 12px;
  overflow: auto;
}

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

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

.section-block h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .home-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .home-actions {
    grid-template-columns: 1fr;
  }

  .home-banner h1 {
    font-size: 30px;
  }

  .live-monitor-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .sidebar {
    max-height: 45vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

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

  .topbar,
  .sidebar-head,
  .submit-head,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-panel {
    justify-items: start;
  }

  .run-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .artifact-tools {
    width: 100%;
    min-width: 0;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .trace-body {
    grid-template-columns: 1fr;
  }

  .trace-card summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .funnel-step::after {
    display: none;
  }
}
