:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg-page: #f4f8fd;
  --bg-page-alt: #fbfdff;
  --surface-1: #ffffff;
  --surface-2: #f7faff;
  --surface-3: #eef4fb;
  --text-primary: #1f2a3d;
  --text-secondary: #3d4b61;
  --text-muted: #61718a;
  --border: #dce6f1;
  --border-strong: #bdd5fa;
  --accent-primary: #4776b7;
  --accent-primary-strong: #365f98;
  --accent-primary-soft: #e3eeff;
  --accent-secondary: #765eb5;
  --accent-secondary-soft: #f0ebff;
  --success: #39755d;
  --success-soft: #e6f6ee;
  --warning: #7b5a13;
  --warning-soft: #fff4d8;
  --danger: #a34550;
  --danger-soft: #fdebed;
  --button-primary-text: #ffffff;
  --button-primary-bg: linear-gradient(135deg, #4776b7 0%, #6f63b2 100%);
  --button-primary-bg-hover: linear-gradient(135deg, #365f98 0%, #5f4f9d 100%);
  --focus-ring: rgba(71, 118, 183, 0.2);
  --shadow-sm: 0 1px 2px rgba(31, 42, 61, 0.04), 0 6px 18px rgba(54, 95, 152, 0.06);
  --shadow-md: 0 2px 4px rgba(31, 42, 61, 0.04), 0 16px 40px rgba(54, 95, 152, 0.09);
  --page-atmosphere:
    radial-gradient(62% 42% at 8% 0%, rgba(189, 213, 250, 0.58), transparent 72%),
    radial-gradient(48% 34% at 92% 10%, rgba(213, 201, 248, 0.46), transparent 74%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8fd 48%, #ffffff 100%);
  --hero-atmosphere:
    radial-gradient(72% 68% at 20% 8%, rgba(227, 238, 255, 0.95), transparent 72%),
    radial-gradient(58% 62% at 90% 88%, rgba(240, 235, 255, 0.9), transparent 74%),
    rgba(255, 255, 255, 0.86);
  --header-bg: rgba(251, 253, 255, 0.86);
  --backdrop: rgba(13, 23, 39, 0.48);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --duration-fast: 160ms;
  --duration-base: 240ms;
  --duration-slow: 420ms;
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #0d1727;
  --bg-page-alt: #111d30;
  --surface-1: #142137;
  --surface-2: #17243a;
  --surface-3: #1b2b44;
  --text-primary: #f1f6ff;
  --text-secondary: #c6d1e1;
  --text-muted: #91a2ba;
  --border: rgba(159, 185, 220, 0.18);
  --border-strong: #638fc8;
  --accent-primary: #89b7ef;
  --accent-primary-strong: #a4ccfb;
  --accent-primary-soft: #1d3555;
  --accent-secondary: #b8a8ee;
  --accent-secondary-soft: #292443;
  --success: #91d3b5;
  --success-soft: #17372f;
  --warning: #efc56d;
  --warning-soft: #3b3120;
  --danger: #f0a0ac;
  --danger-soft: #3b2028;
  --button-primary-text: #0c1726;
  --button-primary-bg: linear-gradient(135deg, #93c2f7 0%, #bba9ef 100%);
  --button-primary-bg-hover: linear-gradient(135deg, #acd2fb 0%, #cabaf3 100%);
  --focus-ring: rgba(137, 183, 239, 0.24);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.16), 0 10px 28px rgba(2, 8, 20, 0.24);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.18), 0 22px 58px rgba(2, 8, 20, 0.32);
  --page-atmosphere:
    radial-gradient(58% 42% at 8% 0%, rgba(79, 124, 182, 0.3), transparent 74%),
    radial-gradient(48% 36% at 92% 8%, rgba(122, 100, 182, 0.26), transparent 75%),
    linear-gradient(180deg, #0d1727 0%, #111d30 48%, #0c1626 100%);
  --hero-atmosphere:
    radial-gradient(72% 68% at 16% 8%, rgba(47, 82, 126, 0.52), transparent 72%),
    radial-gradient(58% 62% at 90% 88%, rgba(82, 65, 126, 0.48), transparent 74%),
    rgba(17, 28, 46, 0.8);
  --header-bg: rgba(13, 23, 39, 0.84);
  --backdrop: rgba(2, 8, 20, 0.72);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-page);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-primary);
  background: var(--page-atmosphere);
  background-attachment: fixed;
  font-family: Onest, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: color var(--duration-base) ease, background-color var(--duration-base) ease;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

h1,
h2,
h3 {
  color: var(--text-primary);
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.7vw, 48px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.16;
}

p {
  color: var(--text-secondary);
}

.container {
  width: min(calc(100% - 48px), 1240px);
  margin-inline: auto;
}

.narrow-container {
  max-width: 980px;
}

.page-shell {
  min-height: calc(100vh - 86px);
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--button-primary-text);
  background: var(--accent-primary-strong);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}

.surface {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .surface {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), var(--shadow-sm);
}

.app-header {
  position: sticky;
  z-index: 60;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(1.2);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 8px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  color: var(--accent-primary-strong);
  background: var(--accent-primary-soft);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: -0.015em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.header-actions,
.hero-actions,
.card-actions,
.button-row,
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  min-height: 44px;
  padding: 11px 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--accent-primary-strong);
}

.theme-toggle,
.icon-button,
.dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 10px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text-secondary);
  background: var(--surface-1);
  cursor: pointer;
}

.theme-toggle:hover,
.icon-button:hover {
  border-color: var(--border-strong);
  color: var(--accent-primary-strong);
  background: var(--surface-2);
}

.theme-icon {
  grid-area: 1 / 1;
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}

html[data-theme="light"] .theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.72);
}

.logout-form {
  margin: 0;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--duration-fast) ease, background-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.button-primary {
  border: 0;
  color: var(--button-primary-text);
  background: var(--button-primary-bg);
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: var(--button-primary-bg-hover);
  box-shadow: var(--shadow-md);
}

.button-secondary {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.button-danger {
  border: 0;
  color: #fff;
  background: #a34550;
}

.button-danger-ghost {
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--border));
  color: var(--danger);
  background: var(--danger-soft);
}

.button-compact {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 14px;
}

.button-small {
  min-height: 44px;
  padding-inline: 16px;
  font-size: 14px;
}

.button-full {
  width: 100%;
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.eyebrow,
.section-kicker,
.mono-label,
.metric-kicker,
.field-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 0 5px var(--focus-ring);
}

.section-kicker,
.mono-label,
.metric-kicker {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.mono-label {
  color: var(--text-muted);
}

.lead {
  max-width: 56ch;
  margin-bottom: 30px;
  color: var(--text-secondary);
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.5;
}

.muted {
  color: var(--text-muted);
}

.text-accent {
  color: var(--accent-primary-strong);
}

.mono-value,
.mono-title,
.mono-link,
.mono-input {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.mono-title {
  color: var(--accent-secondary);
}

.mono-link {
  color: var(--accent-primary-strong);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.mono-link:hover,
.text-link:hover,
.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link,
.back-link {
  color: var(--accent-primary-strong);
  font-weight: 650;
  text-decoration: none;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  margin-bottom: 30px;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.hero-section {
  padding: 82px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
}

.hero-copy {
  grid-column: span 5;
  padding-right: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.trust-note,
.trust-line {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 550;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-scene {
  position: relative;
  grid-column: span 7;
  min-height: 520px;
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--hero-atmosphere);
  box-shadow: var(--shadow-md);
}

html[data-theme="dark"] .hero-scene {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), var(--shadow-md);
}

.process-surface::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent-primary) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent-primary) 7%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
}

.scene-heading,
.account-topline,
.progress-topline,
.telemetry-row,
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.scene-heading,
.flow-route,
.scene-result {
  position: relative;
  z-index: 1;
}

.flow-route-horizontal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.flow-node {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
}

.flow-node:nth-of-type(3),
.flow-node:nth-of-type(4) {
  margin-top: 0;
}

.flow-node strong,
.flow-node small {
  display: block;
}

.flow-node strong {
  margin: 12px 0 4px;
  font-size: 15px;
}

.flow-node small {
  color: var(--text-muted);
  font-size: 11px;
}

.node-index {
  color: var(--text-muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
}

.state-analysis {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  background: var(--accent-secondary-soft);
}

.state-active {
  border-color: var(--border-strong);
  color: var(--accent-primary-strong);
  background: var(--accent-primary-soft);
}

.state-complete {
  border-color: color-mix(in srgb, var(--success) 45%, var(--border));
  background: var(--success-soft);
}

.route-arrow {
  display: none;
  align-self: center;
  color: var(--accent-primary);
  font-size: 22px;
}

.scene-result {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  margin-top: 34px;
  padding: 20px;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-2);
}

.scene-result strong,
.metric-kicker {
  display: block;
}

.scene-result strong {
  margin-top: 4px;
  font-size: 17px;
}

.result-plus {
  color: var(--text-muted);
}

.result-check {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--success);
  background: var(--success-soft);
  font-weight: 800;
}

.section-block {
  padding: 104px 0;
}

.section-tight {
  padding-top: 40px;
}

.section-alt {
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-page-alt) 82%, transparent);
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-top: 8px;
  margin-bottom: 0;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.compact-row h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.account-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  gap: 22px;
}

.account-card h3 {
  margin-bottom: 6px;
}

.account-card .mono-value {
  color: var(--text-muted);
  font-size: 12px;
}

.card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 10px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 15px;
}

.icon-sky {
  color: var(--accent-primary-strong);
  background: var(--accent-primary-soft);
}

.icon-lavender {
  color: var(--accent-secondary);
  background: var(--accent-secondary-soft);
}

.icon-mint {
  color: var(--success);
  background: var(--success-soft);
}

.icon-warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.icon-danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.account-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-block: 16px;
  gap: 12px;
  border-block: 1px solid var(--border);
}

.account-stats span,
.account-stats strong {
  display: block;
}

.account-stats span {
  color: var(--text-muted);
  font-size: 11px;
}

.account-stats strong {
  margin-bottom: 3px;
  color: var(--text-primary);
  font-size: 14px;
}

.card-actions {
  margin-top: auto;
  flex-wrap: wrap;
}

.card-actions form {
  margin: 0;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  padding: 5px 10px;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
}

.status-large {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
}

.status-icon:not(:empty) {
  font-weight: 800;
}

.status-active,
.status-running,
.status-ready {
  border-color: color-mix(in srgb, var(--accent-primary) 28%, transparent);
  color: var(--accent-primary-strong);
  background: var(--accent-primary-soft);
}

.status-active .status-icon,
.status-running .status-icon,
.status-scanning .status-icon,
.status-verifying .status-icon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-success,
.status-success_with_errors.status-success,
.status-success:not(.status-success_with_errors) {
  border-color: color-mix(in srgb, var(--success) 28%, transparent);
  color: var(--success);
  background: var(--success-soft);
}

.status-success_with_errors,
.status-failed,
.status-cancelled {
  border-color: color-mix(in srgb, var(--danger) 28%, transparent);
  color: var(--danger);
  background: var(--danger-soft);
}

.status-warning,
.status-paused {
  border-color: color-mix(in srgb, var(--warning) 28%, transparent);
  color: var(--warning);
  background: var(--warning-soft);
}

.status-analysis,
.status-scanning,
.status-verifying {
  border-color: color-mix(in srgb, var(--accent-secondary) 28%, transparent);
  color: var(--accent-secondary);
  background: var(--accent-secondary-soft);
}

.status-muted,
.status-draft {
  border-color: var(--border);
  color: var(--text-muted);
  background: var(--surface-2);
}

.empty-state {
  display: grid;
  min-height: 330px;
  padding: 42px;
  place-items: center;
  border-radius: var(--radius-xl);
  text-align: center;
}

.empty-state p {
  max-width: 52ch;
}

.inline-empty {
  display: flex;
  min-height: 100px;
  padding: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 20px;
  color: var(--text-secondary);
}

.table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--text-secondary);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

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

td small,
.mapped-field span,
.map-rule small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
}

.route-inline {
  margin-inline: 8px;
  color: var(--accent-primary);
}

.number-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.flash-wrap {
  position: relative;
  z-index: 50;
  padding-top: 20px;
}

.notice {
  display: flex;
  min-height: 48px;
  padding: 12px 16px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-secondary);
  background: var(--surface-2);
  font-size: 14px;
}

.notice-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.notice-success {
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
  color: var(--success);
  background: var(--success-soft);
}

.notice-success .notice-dot {
  background: var(--success);
}

.notice-error {
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
  color: var(--danger);
  background: var(--danger-soft);
}

.notice-error .notice-dot {
  background: var(--danger);
}

.notice-warning {
  border-color: color-mix(in srgb, var(--warning) 30%, transparent);
  color: var(--warning);
  background: var(--warning-soft);
}

.notice-warning .notice-dot {
  background: var(--warning);
}

.app-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-page-alt);
}

.footer-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}

/* Login */
.auth-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-items: center;
  overflow: hidden;
  padding: 56px 0;
}

.auth-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 55% at 82% 40%, color-mix(in srgb, var(--accent-secondary-soft) 78%, transparent), transparent 76%),
    radial-gradient(42% 56% at 14% 30%, color-mix(in srgb, var(--accent-primary-soft) 82%, transparent), transparent 78%);
  pointer-events: none;
}

.auth-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
}

.auth-intro {
  grid-column: 1 / span 6;
  padding-right: 50px;
}

.auth-card {
  display: grid;
  grid-column: 8 / span 5;
  padding: clamp(28px, 4vw, 44px);
  gap: 24px;
  border-radius: var(--radius-xl);
}

.auth-card h2 {
  margin-top: 8px;
  font-size: 34px;
}

.form-stack {
  display: grid;
  gap: 18px;
}

.field-group {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.field-group small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  color: var(--text-primary);
  background: var(--surface-1);
  font-size: 15px;
  font-weight: 500;
}

.input::placeholder {
  color: var(--text-muted);
  opacity: 0.86;
}

.input:focus-visible {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.textarea {
  min-height: 108px;
  padding-block: 14px;
  resize: vertical;
}

.select {
  padding-right: 44px;
  appearance: auto;
}

.input-affix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-affix .input {
  padding-right: 132px;
}

.input-affix > span {
  position: absolute;
  right: 16px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 550;
  pointer-events: none;
}

/* Connect and form pages */
.content-hero {
  padding: 64px 0 28px;
}

.content-hero h1 {
  max-width: 900px;
  font-size: clamp(46px, 5.5vw, 70px);
}

.connection-grid,
.form-layout,
.job-content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.connection-card {
  grid-column: span 7;
  padding: clamp(28px, 4vw, 42px);
}

.connection-side {
  display: grid;
  grid-column: span 5;
  gap: 24px;
}

.featured-card {
  border-color: var(--border-strong);
  background:
    radial-gradient(60% 30% at 100% 0%, var(--accent-primary-soft), transparent 72%),
    var(--surface-1);
}

.soft-card {
  background: var(--surface-2);
}

.card-heading,
.step-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.card-heading h2,
.card-heading h3,
.step-heading h2 {
  margin: 6px 0 0;
}

.card-heading h2 {
  font-size: 32px;
}

.compact-heading {
  align-items: flex-start;
}

.check-list,
.plain-list {
  display: grid;
  margin: 20px 0 0;
  padding: 0;
  gap: 13px;
  color: var(--text-secondary);
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-list li span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--success);
  background: var(--success-soft);
  font-size: 12px;
  font-weight: 800;
}

.migration-form {
  grid-column: span 9;
  padding: clamp(26px, 4vw, 42px);
}

.form-aside {
  grid-column: span 3;
}

.sticky-card {
  position: sticky;
  top: 102px;
}

.form-section {
  padding-block: 4px 32px;
}

.divided-section {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.step-heading {
  align-items: flex-start;
}

.step-heading p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.step-heading h2 {
  font-size: 30px;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  color: var(--accent-primary-strong);
  background: var(--accent-primary-soft);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
}

.field-route-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.large-route-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  margin-top: 8px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-primary-strong);
  background: var(--accent-primary-soft);
  font-size: 20px;
}

.route-validation {
  min-height: 28px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.route-validation.valid {
  color: var(--success);
}

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

.choice-card {
  position: relative;
  display: grid;
  min-height: 122px;
  padding: 18px;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--border-strong);
  background: var(--accent-primary-soft);
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-card:has(input:focus-visible) {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}

.choice-control {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--surface-2);
}

.choice-card:has(input:checked) .choice-control {
  background: var(--accent-primary);
  box-shadow: inset 0 0 0 4px var(--accent-primary-soft);
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card strong {
  margin-bottom: 5px;
}

.choice-card small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.choice-card .status-pill {
  grid-column: 2;
  justify-self: start;
}

.form-footer {
  display: flex;
  padding-top: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
}

.mini-route,
.event-list {
  position: relative;
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  gap: 22px;
  list-style: none;
}

.mini-route::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 17px;
  width: 1px;
  background: var(--border);
  content: "";
}

.mini-route li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-route li > span {
  display: grid;
  z-index: 1;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  background: var(--surface-1);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
}

.mini-route li.active > span {
  border-color: var(--border-strong);
  color: var(--accent-primary-strong);
  background: var(--accent-primary-soft);
}

.mini-route strong,
.mini-route small {
  display: block;
}

.mini-route strong {
  font-size: 13px;
}

.mini-route small {
  color: var(--text-muted);
  font-size: 10px;
}

/* Job detail */
.job-header-section {
  padding: 56px 0 34px;
}

.job-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.job-title-row h1 {
  margin-bottom: 0;
  font-size: clamp(48px, 6vw, 74px);
}

.job-title-row .eyebrow {
  display: flex;
}

.field-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr) minmax(160px, 0.62fr);
  margin-top: 34px;
  padding: 24px;
  align-items: center;
  gap: 18px;
  border-radius: var(--radius-lg);
}

.mapped-field,
.map-rule {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-2);
}

.mapped-field strong,
.map-rule strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.field-role {
  color: var(--text-muted);
  font-size: 9px;
}

.map-arrow {
  display: flex;
  align-items: center;
  color: var(--accent-primary);
  font-size: 20px;
}

.map-arrow span {
  width: 100%;
  height: 1px;
  background: var(--border-strong);
}

.map-rule {
  border: 1px solid color-mix(in srgb, var(--success) 25%, transparent);
  background: var(--success-soft);
}

.stage-section {
  padding: 16px 0 28px;
}

.stage-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20px, 0.3fr) minmax(0, 1fr) minmax(20px, 0.3fr) minmax(0, 1fr) minmax(20px, 0.3fr) minmax(0, 1fr);
  padding: 20px;
  align-items: center;
  border-radius: 22px;
}

.stage-node {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.stage-node > span {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  background: var(--surface-2);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
}

.stage-node strong,
.stage-node small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-node strong {
  font-size: 13px;
}

.stage-node small {
  color: var(--text-muted);
  font-size: 10px;
}

.stage-node.complete > span {
  border-color: color-mix(in srgb, var(--success) 35%, transparent);
  color: var(--success);
  background: var(--success-soft);
}

.stage-node.active > span {
  border-color: var(--border-strong);
  color: var(--accent-primary-strong);
  background: var(--accent-primary-soft);
}

.stage-node.analysis > span {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  background: var(--accent-secondary-soft);
}

.stage-node.error > span {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

.stage-line {
  height: 1px;
  margin-inline: 8px;
  background: var(--border);
}

.stage-line.complete {
  height: 2px;
  background: var(--success);
}

.job-main-column {
  display: grid;
  min-width: 0;
  grid-column: span 9;
  gap: 54px;
}

.job-aside {
  display: grid;
  grid-column: span 3;
  gap: 24px;
}

.action-panel,
.result-hero {
  display: flex;
  min-height: 190px;
  padding: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-radius: var(--radius-lg);
}

.panel-copy {
  max-width: 62ch;
}

.panel-copy h2,
.result-hero h2 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 3vw, 42px);
}

.panel-copy p,
.result-hero p {
  margin: 0;
}

.analysis-panel {
  border-color: color-mix(in srgb, var(--accent-secondary) 30%, var(--border));
  background:
    radial-gradient(70% 100% at 100% 0%, var(--accent-secondary-soft), transparent 76%),
    var(--surface-1);
}

.warning-panel {
  border-color: color-mix(in srgb, var(--warning) 35%, var(--border));
  background:
    radial-gradient(70% 100% at 100% 0%, var(--warning-soft), transparent 76%),
    var(--surface-1);
}

.running-panel {
  border-color: var(--border-strong);
  background:
    radial-gradient(70% 100% at 100% 0%, var(--accent-primary-soft), transparent 76%),
    var(--surface-1);
}

.success-panel {
  border-color: color-mix(in srgb, var(--success) 36%, var(--border));
  background: var(--success-soft);
}

.danger-panel {
  border-color: color-mix(in srgb, var(--danger) 36%, var(--border));
  background: var(--danger-soft);
}

.result-symbol {
  display: grid;
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 24px;
  color: var(--success);
  font-size: 32px;
  font-weight: 800;
}

.danger-panel .result-symbol {
  color: var(--danger);
}

.live-indicator {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--accent-secondary);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 650;
}

.live-indicator span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.metrics-section,
.detail-section {
  display: grid;
}

.metric-grid,
.verification-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  min-height: 160px;
  padding: 22px;
}

.metric-card span,
.metric-card strong,
.metric-card small,
.verification-card span,
.verification-card strong {
  display: block;
}

.metric-card > span,
.verification-card span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.metric-card > strong {
  margin: 15px 0 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(25px, 2.7vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-card small {
  color: var(--text-muted);
  font-size: 10px;
}

.accent-metric {
  border-color: var(--border-strong);
  background: var(--accent-primary-soft);
}

.danger-metric {
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
  background: var(--danger-soft);
}

.progress-card {
  margin-top: 16px;
  padding: 24px;
  border-radius: 20px;
}

.progress-topline {
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 13px;
}

.progress-topline strong {
  color: var(--text-primary);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--surface-3);
}

progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--surface-3);
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.telemetry-row {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 10px;
}

.telemetry-row strong {
  color: var(--text-secondary);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.stats-pair-grid,
.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.breakdown-grid {
  margin-top: 16px;
}

.stat-row {
  min-height: 42px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
}

.stat-row:last-child {
  border-bottom: 0;
}

.stat-row strong {
  color: var(--text-primary);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.preview-table {
  max-height: 680px;
}

.value-cell {
  min-width: 180px;
  max-width: 320px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.verification-card {
  min-height: 138px;
  padding: 22px;
  border-radius: 20px;
}

.verification-card strong {
  margin-top: 18px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 30px;
}

.verification-card:nth-child(1),
.verification-card:nth-child(2) {
  border-color: color-mix(in srgb, var(--success) 28%, var(--border));
  background: var(--success-soft);
}

.audit-card h3,
.safety-card h3 {
  margin-top: 8px;
}

.event-list {
  gap: 17px;
}

.event-list::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 1px;
  background: var(--border);
  content: "";
}

.event-list li {
  position: relative;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
}

.event-dot {
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border: 3px solid var(--surface-1);
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--border-strong);
}

.event-error .event-dot {
  background: var(--danger);
}

.event-warning .event-dot {
  background: var(--warning);
}

.event-list strong,
.event-list small {
  display: block;
}

.event-list strong {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.event-list small {
  margin-top: 4px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 8px;
  overflow-wrap: anywhere;
}

.safety-card {
  background: var(--surface-2);
}

.plain-list {
  padding-left: 18px;
  list-style: disc;
  font-size: 12px;
}

/* Dialog */
.confirm-dialog {
  width: min(calc(100% - 32px), 620px);
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 26px;
  color: var(--text-primary);
  background: transparent;
  box-shadow: var(--shadow-md);
}

.confirm-dialog::backdrop {
  background: var(--backdrop);
  backdrop-filter: blur(8px);
}

.dialog-card {
  position: relative;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: 26px;
  color: var(--text-primary);
  background: var(--surface-1);
}

.dialog-card h2 {
  margin-top: 10px;
  font-size: 34px;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.confirm-list {
  display: grid;
  margin: 24px 0;
  border-block: 1px solid var(--border);
}

.confirm-list > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  padding: 13px 0;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}

.confirm-list > div:last-child {
  border-bottom: 0;
}

.confirm-list dt {
  color: var(--text-muted);
  font-size: 12px;
}

.confirm-list dd {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.dialog-warning {
  padding: 14px;
  border-radius: 14px;
  color: var(--warning);
  background: var(--warning-soft);
  font-size: 13px;
}

.dialog-actions {
  margin-top: 24px;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-copy,
  .hero-scene {
    grid-column: span 6;
  }

  .flow-route-horizontal {
    grid-template-columns: 1fr;
  }

  .flow-node:nth-of-type(3),
  .flow-node:nth-of-type(4) {
    margin-top: 0;
  }

  .route-arrow {
    display: none;
  }

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

  .migration-form,
  .job-main-column {
    grid-column: span 8;
  }

  .form-aside,
  .job-aside {
    grid-column: span 4;
  }

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

  .field-map {
    grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr);
  }

  .map-rule {
    grid-column: 1 / -1;
  }

  .stage-route {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .stage-line {
    display: none;
  }
}

@media (max-width: 820px) {
  h1 {
    font-size: clamp(44px, 9vw, 64px);
  }

  .container {
    width: min(calc(100% - 40px), 1240px);
  }

  .hero-section {
    padding: 64px 0 74px;
  }

  .hero-copy,
  .hero-scene,
  .auth-intro,
  .auth-card,
  .connection-card,
  .connection-side,
  .migration-form,
  .form-aside,
  .job-main-column,
  .job-aside {
    grid-column: 1 / -1;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-scene {
    min-height: 450px;
    margin-top: 24px;
  }

  .auth-intro {
    padding-right: 0;
  }

  .auth-card {
    margin-top: 24px;
  }

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

  .connection-side,
  .form-aside,
  .job-aside {
    margin-top: 0;
  }

  .sticky-card {
    position: static;
  }

  .form-aside .mini-route {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mini-route::before {
    display: none;
  }

  .mini-route li {
    align-items: flex-start;
  }

  .job-content-grid {
    row-gap: 52px;
    column-gap: 0;
  }

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

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

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

  .field-map {
    grid-template-columns: 1fr;
  }

  .map-arrow {
    width: 40px;
    height: 28px;
    margin-inline: auto;
    transform: rotate(90deg);
  }

  .map-rule {
    grid-column: auto;
  }

  .app-header .nav-link {
    display: none;
  }

  .header-actions .button-compact {
    display: none;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 32px), 1240px);
  }

  body {
    background-attachment: scroll;
  }

  h1 {
    font-size: clamp(40px, 12vw, 50px);
    line-height: 1.05;
  }

  h2 {
    font-size: 34px;
  }

  .app-header {
    backdrop-filter: blur(12px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle,
  .icon-button {
    width: 44px;
    height: 44px;
  }

  .hero-section,
  .section-block {
    padding: 56px 0;
  }

  .section-tight {
    padding-top: 24px;
  }

  .content-hero {
    padding-top: 38px;
  }

  .hero-scene {
    min-height: auto;
    padding: 20px;
    border-radius: 24px;
  }

  .flow-route-horizontal {
    margin-top: 26px;
  }

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

  .result-plus {
    display: none;
  }

  .row-heading,
  .job-title-row,
  .form-footer,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .job-title-row .status-pill {
    align-self: flex-start;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .account-card,
  .card,
  .connection-card,
  .migration-form,
  .dialog-card {
    padding: 20px;
    border-radius: 20px;
  }

  .account-stats,
  .choice-grid,
  .stats-pair-grid,
  .breakdown-grid,
  .metric-grid,
  .verification-grid,
  .job-aside {
    grid-template-columns: 1fr;
  }

  .card-actions,
  .hero-actions,
  .button-row,
  .dialog-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .card-actions form,
  .card-actions .button,
  .card-actions button,
  .hero-actions .button,
  .button-row form,
  .button-row button,
  .dialog-actions .button {
    width: 100%;
  }

  .field-route-grid {
    grid-template-columns: 1fr;
  }

  .large-route-arrow {
    margin-inline: auto;
    transform: rotate(90deg);
  }

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

  .stage-route {
    grid-template-columns: 1fr;
  }

  .stage-node strong,
  .stage-node small {
    white-space: normal;
  }

  .action-panel,
  .result-hero {
    min-height: 0;
    padding: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .result-symbol {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .telemetry-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .preview-table table {
    min-width: 760px;
  }

  .confirm-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .input-affix .input {
    padding-right: 120px;
  }

  .inline-empty {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .status-pill,
  .card-icon,
  .flow-node,
  .stage-node > span {
    border: 1px solid CanvasText;
  }
}
