:root {
  color-scheme: light;
  --ink: #1d3030;
  --muted: #5f7471;
  --paper: #f1f3eb;
  --panel: #fbfcf7;
  --line: #d7ded2;
  --deep: #234c48;
  --deep-2: #183a37;
  --mint: #c6e6d9;
  --signal: #db6b4c;
  --signal-soft: #fae8df;
  --amber: #98631d;
  --amber-soft: #f6ecd6;
  --good: #2d6b52;
  --good-soft: #e1f0e7;
  --bad: #9a3b31;
  --bad-soft: #f9e6e2;
  --display: "DM Sans", "Trebuchet MS", sans-serif;
  --body: "Source Sans 3", "Trebuchet MS", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 89% 4%, rgba(198, 230, 217, .72), transparent 28rem),
    var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: var(--deep); text-underline-offset: 3px; }
a:hover { color: var(--signal); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.page-shell { width: min(1260px, calc(100% - 64px)); margin: 0 auto; }
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(35, 76, 72, .16);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--deep-2);
  font: 800 20px/1 var(--display);
  letter-spacing: .14em;
  text-decoration: none;
}
.mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--deep);
  border-radius: 50% 50% 50% 8px;
  color: var(--deep);
  font: 700 14px/1 var(--mono);
  letter-spacing: -.1em;
  transform: rotate(-8deg);
}
.topbar-note {
  color: var(--muted);
  font: 600 11px/1.3 var(--mono);
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 290px);
  gap: 32px;
  align-items: end;
  padding: 44px 0 30px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--signal);
  font: 700 11px/1.4 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font: 700 clamp(35px, 5vw, 59px)/.99 var(--display);
  letter-spacing: -.055em;
}
.intro-copy { max-width: 660px; margin-bottom: 0; color: var(--muted); font-size: 17px; }
.intro-mark {
  align-self: center;
  justify-self: end;
  width: 226px;
  height: 110px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(35, 76, 72, .32);
}
.intro-mark::before, .intro-mark::after {
  content: "";
  position: absolute;
  bottom: -47px;
  width: 158px;
  height: 158px;
  border: 1px solid rgba(35, 76, 72, .35);
  border-radius: 50%;
}
.intro-mark::before { left: 9px; }
.intro-mark::after { left: 68px; border-color: rgba(219, 107, 76, .58); }
.intro-mark span {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 60px;
  width: 50px;
  height: 50px;
  border-radius: 50% 50% 50% 8px;
  background: var(--mint);
  transform: rotate(28deg);
}
.intro-mark span::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  top: 19px;
  left: 19px;
  border-radius: 50%;
  background: var(--deep);
}

.readiness {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 22px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(251, 252, 247, .78);
}
.readiness-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.readiness[data-state="ready"] .readiness-dot { background: var(--good); }
.readiness[data-state="error"] { border-color: #e4b8b1; background: var(--bad-soft); }
.readiness[data-state="error"] .readiness-dot { background: var(--bad); }
.readiness strong { display: block; margin-bottom: 1px; font-size: 13px; }
.readiness p { margin: 0; color: var(--muted); font-size: 13px; }
.readiness details { margin-top: 7px; }
.readiness summary { width: fit-content; color: var(--deep); cursor: pointer; font-size: 12px; font-weight: 700; }
.check-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.check-chip {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: var(--panel);
  font: 11px var(--mono);
}
.check-chip[data-ok="true"] { border-color: #bdd8c9; color: var(--good); background: var(--good-soft); }
.check-chip[data-ok="false"] { border-color: #ecc4bc; color: var(--bad); background: var(--bad-soft); }

.workspace {
  display: grid;
  grid-template-columns: minmax(330px, .88fr) minmax(0, 1.12fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 46px;
}
.column { display: grid; gap: 18px; min-width: 0; }
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(33, 60, 53, .045);
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 21px 14px;
  border-bottom: 1px solid rgba(215, 222, 210, .78);
}
.panel-head h2 { margin: 0; font: 700 18px/1.2 var(--display); letter-spacing: -.025em; }
.panel-kicker { color: var(--muted); font: 11px var(--mono); }
.panel-body { padding: 20px 21px 22px; }
.step-index {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  place-items: center;
  border-radius: 50%;
  color: var(--deep);
  background: var(--mint);
  font: 700 11px var(--mono);
  vertical-align: 1px;
}

.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field:last-child { margin-bottom: 0; }
.field label, .label-text { color: var(--ink); font-size: 13px; font-weight: 700; }
.field-hint { margin: -3px 0 0; color: var(--muted); font-size: 12px; }
.control {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #c9d3c8;
  border-radius: 7px;
  color: var(--ink);
  background: #fffef9;
}
.control::placeholder { color: #879591; }
.mono-input { font-family: var(--mono); font-size: 12px; }
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--deep);
  border-radius: 7px;
  color: #f4f5ed;
  background: var(--deep);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.button:hover { background: var(--deep-2); transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.button-secondary {
  color: var(--deep);
  background: transparent;
}
.button-secondary:hover { color: var(--deep-2); background: #edf3eb; }
.button-small { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.button-danger { border-color: var(--bad); color: var(--bad); background: transparent; }
.button-danger:hover { color: #fff; background: var(--bad); }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; }
.inline-form .field { margin: 0; }
.key-state { min-height: 18px; margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.key-state[data-state="error"] { color: var(--bad); }
.key-state[data-state="ready"] { color: var(--good); }

.source-tabs { display: flex; gap: 7px; padding: 0 0 16px; }
.source-tab {
  flex: 1;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.source-tab[aria-pressed="true"] { border-color: var(--deep); color: var(--deep); background: #e8f1eb; }
.sample-empty {
  padding: 15px;
  border: 1px dashed #bdc9be;
  border-radius: 7px;
  color: var(--muted);
  background: #f6f8f1;
  font-size: 13px;
}
.sample-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf4;
}
.sample-card + .sample-card { margin-top: 9px; }
.sample-select {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
}
.sample-select input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--deep); }
.sample-title { display: block; margin-bottom: 3px; font-weight: 700; }
.sample-attribution { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.sample-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 9px 0 0 28px; font-size: 12px; }
.sample-links a { max-width: 100%; overflow-wrap: anywhere; }
.rights {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 17px;
  padding: 12px;
  border: 1px solid #ebd5ae;
  border-radius: 7px;
  background: #fbf5e9;
}
.rights input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--deep); }
.rights label { color: #5e4c2d; font-size: 12px; line-height: 1.45; }
.preset-options { display: grid; gap: 8px; }
.preset-option {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}
.preset-option:has(input:checked) { border-color: var(--deep); background: #edf4ee; }
.preset-option input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--deep); }
.preset-name { display: block; font-weight: 700; }
.preset-desc { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.caution {
  margin: 13px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--signal);
  color: var(--muted);
  font-size: 12px;
}
.start-action { width: 100%; min-height: 47px; margin-top: 18px; font-size: 14px; }

.job-empty {
  display: grid;
  min-height: 220px;
  place-content: center;
  padding: 28px;
  text-align: center;
}
.empty-symbol {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border: 1px solid #b7c7bb;
  border-radius: 50% 50% 50% 10px;
  transform: rotate(-20deg);
}
.empty-symbol::before, .empty-symbol::after {
  content: "";
  position: absolute;
  border: 1px solid #cfdbd0;
  border-radius: 50%;
}
.empty-symbol::before { inset: 8px; }
.empty-symbol::after { inset: 18px; background: var(--mint); }
.job-empty h3 { margin-bottom: 5px; font: 700 17px var(--display); }
.job-empty p { max-width: 320px; margin: 0 auto; color: var(--muted); font-size: 13px; }
.job-content { padding: 20px 21px 22px; }
.job-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.job-id { min-width: 0; }
.job-id-label { display: block; margin-bottom: 3px; color: var(--muted); font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.job-id-value { display: block; max-width: 100%; color: var(--deep-2); font: 13px var(--mono); overflow-wrap: anywhere; }
.status-pill {
  align-self: flex-start;
  padding: 5px 10px;
  border: 1px solid #c8d6cd;
  border-radius: 99px;
  color: var(--deep);
  background: #edf3ed;
  font: 700 11px var(--mono);
  text-transform: uppercase;
}
.status-pill[data-status="completed"] { border-color: #b7d8c4; color: var(--good); background: var(--good-soft); }
.status-pill[data-status="failed"] { border-color: #ecc3bb; color: var(--bad); background: var(--bad-soft); }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -9px 0 17px; color: var(--muted); font-size: 12px; }
.step-list { display: grid; gap: 8px; }
.step-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 51px;
  padding: 9px 11px;
  border: 1px solid #e0e5dd;
  border-radius: 7px;
  background: #fafbf6;
}
.step-indicator { width: 8px; height: 8px; border-radius: 50%; background: #aab7ae; }
.step-row[data-status="processing"] .step-indicator { background: var(--amber); }
.step-row[data-status="completed"] .step-indicator { background: var(--good); }
.step-row[data-status="failed"] .step-indicator { background: var(--bad); }
.step-label { display: block; font-size: 13px; font-weight: 700; }
.step-detail { display: block; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.column, .panel, .panel-body, .job-content, .step-row, .step-row > span { min-width: 0; }
.job-message, .key-state, .job-id-value { overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.step-status { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }
.step-row[data-status="failed"] .step-status { color: var(--bad); }
.job-message {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  background: #f0f3ed;
  font-size: 12px;
}
.job-message[data-kind="error"] { color: var(--bad); background: var(--bad-soft); }
.job-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.artifacts { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.artifacts h3 { margin-bottom: 10px; font: 700 15px var(--display); }
.artifact-links { display: flex; flex-wrap: wrap; gap: 8px; }
.artifact-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #bfcfc3;
  border-radius: 6px;
  color: var(--deep);
  background: #f2f7f1;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.video-wrap {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #c5d1c6;
  border-radius: 8px;
  background: #172f2d;
}
.video-wrap video { display: block; width: 100%; max-height: 430px; background: #172f2d; }
.video-caption { margin: 0; padding: 9px 11px; color: #e2eee4; font-size: 11px; }
.disclosure { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.resume-box { padding: 17px 20px 20px; }
.resume-box p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0 25px;
  border-top: 1px solid rgba(35, 76, 72, .16);
  color: var(--muted);
  font: 10px/1.5 var(--mono);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.live-region { min-height: 1px; }

@media (max-width: 850px) {
  .page-shell { width: min(100% - 36px, 680px); }
  .intro { grid-template-columns: 1fr; padding-top: 34px; }
  .intro-mark { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .workspace > .column:last-child { grid-row: 1; }
}
@media (max-width: 520px) {
  .page-shell { width: calc(100% - 24px); }
  .topbar { min-height: 63px; }
  .topbar-note { max-width: 150px; font-size: 9px; }
  .intro { gap: 0; padding: 29px 0 23px; }
  h1 { font-size: clamp(34px, 11vw, 46px); }
  .intro-copy { font-size: 15px; }
  .panel-head { padding: 16px 15px 12px; }
  .panel-body, .job-content { padding: 16px 15px 18px; }
  .workspace { gap: 13px; }
  .column { gap: 13px; }
  .inline-form { grid-template-columns: 1fr; }
  .inline-form .button { width: 100%; }
  .job-summary { align-items: flex-start; }
  .step-row { grid-template-columns: 10px minmax(0, 1fr); }
  .step-status { grid-column: 2; }
  .footer { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}