:root {
  --paper: #f5f4f0;
  --white: #fff;
  --ink: #292b28;
  --muted: #777a72;
  --line: #dedfd7;
  --accent: #be4d24;
  --accent-light: #fcf0e9;
  --green: #38705a;
  --red: #ad3c36;
  --radius: 8px;
  font-family: Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

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

button,a,input,select,textarea,summary {
  -webkit-tap-highlight-color: transparent;
}

button,a,summary {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled,fieldset:disabled button {
  cursor: not-allowed;
  opacity: .5;
}

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

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

h1,h2,h3,h4 {
  line-height: 1.35;
}

h1 {
  font-size: clamp(27px,3vw,38px);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

h2 {
  font-size: 24px;
  letter-spacing: -.6px;
  margin-bottom: 0;
}

h3 {
  font-size: 15px;
  margin-bottom: 0;
}

h4 {
  font-size: 13px;
  margin-bottom: 0;
}

p {
  margin-bottom: 14px;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

input,select,textarea {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
}

input:disabled,select:disabled,textarea:disabled {
  background: #eeefe9;
  color: #93958d;
}

textarea {
  resize: vertical;
}

label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 7px;
}

form>label,form>div+label {
  margin-top: 18px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

input:focus,select:focus,textarea:focus {
  outline: 2px solid #bf5d333d;
  border-color: var(--accent);
}

:focus-visible {
  outline: 3px solid #bd542e;
  outline-offset: 3px;
}

[hidden] {
  display: none!important;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

::selection {
  background: #edcab9;
}

.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;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 12px;
}

.skip-link:focus {
  top: 12px;
}

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

.small {
  font-size: 12px;
}

.mono,.code-editor,.logs,.json-output {
  font-family: "SFMono-Regular",Consolas,"Liberation Mono",monospace;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.9px;
  color: var(--accent);
  margin-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 1px;
}

.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin-top: 3px;
}

.brand-mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  width: 40px;
  height: 43px;
  font-size: 22px;
  border-radius: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 41px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  transition: background .15s,transform .15s;
}

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

.primary {
  background: var(--accent);
  color: #fff;
}

.primary:hover:not(:disabled) {
  background: #a4401c;
}

.outline {
  border-color: var(--line);
  background: var(--white);
}

.outline:hover:not(:disabled) {
  background: #f2f2ec;
}

.full {
  width: 100%;
}

.text-button {
  font-size: 12px;
  padding: 8px 3px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-button:hover {
  color: var(--ink);
}

.danger {
  color: var(--red);
}

.tag {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 9px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 13px 22px;
  border-radius: 6px;
  box-shadow: 0 6px 30px #2223;
  z-index: 100;
  max-width: min(90vw,700px);
  overflow-wrap: anywhere;
}

.notice.error {
  background: #833d32;
}

.form-error,.error-banner {
  color: var(--red);
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.form-error {
  margin: 12px 0;
}

.error-banner {
  padding: 13px 16px;
  background: #fcf0ed;
  border: 1px solid #efd1c9;
  border-radius: 5px;
}

.spinner {
  width: 17px;
  height: 17px;
  display: inline-block;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.startup {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.auth-story {
  padding: 48px clamp(30px,6vw,100px);
  background: #eeede6;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.story-copy {
  margin-top: 80px;
}

.story-copy h1 {
  font-size: clamp(36px,4.1vw,62px);
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -2px;
}

.story-copy>p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.robot-drawing {
  position: relative;
  max-width: 540px;
  margin-top: 18px;
}

.robot-drawing svg {
  position: relative;
  width: 100%;
  color: #53574e;
}

.drawing-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#d6d7ce77 1px,transparent 1px),linear-gradient(90deg,#d6d7ce77 1px,transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(transparent,#000 30%,#000 80%,transparent);
}

.drawing-label {
  font: 9px Consolas,monospace;
  letter-spacing: 2px;
  color: var(--muted);
}

.story-foot {
  margin: 40px 0 0;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 40px;
  background: #fafaf7;
}

.auth-panel>div {
  width: 100%;
  max-width: 360px;
}

.auth-panel h2 {
  font-size: 29px;
  margin-bottom: 12px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 28px;
  margin: 30px 0 25px;
}

.auth-tabs button {
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  color: var(--muted);
}

.auth-tabs button.active {
  border-bottom-color: var(--accent);
  color: var(--ink);
  font-weight: 700;
}

#auth-submit {
  margin-top: 26px;
  justify-content: space-between;
}

.auth-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 22px;
}

.auth-panel input {
  min-height: 46px;
}

#registration-fields label:not(:first-child) {
  margin-top: 18px;
}

.console {
  display: grid;
  grid-template-columns: 226px minmax(0,1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 30px 22px 20px;
  border-right: 1px solid var(--line);
  background: #eeefe8;
}

.sidebar .brand {
  font-size: 16px;
}

.sidebar .brand-mark {
  width: 35px;
  height: 38px;
  font-size: 19px;
}

.nav-caption {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.4px;
  margin: 45px 10px 12px;
}

.sidebar nav {
  display: grid;
  gap: 5px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 10px;
  border-radius: 4px;
  font-size: 13px;
}

.sidebar nav a:hover,.sidebar nav a:focus-visible {
  background: #e0e2d8;
}

.sidebar nav a:first-child {
  font-weight: 650;
}

.sidebar nav a span {
  font: 10px Consolas,monospace;
  color: #8f9286;
}

.sidebar-project {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.section-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 9px;
  letter-spacing: 1px;
}

.sidebar-project select {
  font-size: 12px;
  margin-bottom: 10px;
}

.sidebar-project .button {
  background: transparent;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
  font-size: 11px;
}

.sidebar-bottom>p {
  color: #8f9286;
  margin: 14px 0 0;
  font-size: 10px;
}

.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

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

.account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
  gap: 10px;
}

.account>span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account .text-button {
  flex-shrink: 0;
}

main {
  min-width: 0;
  max-width: 1620px;
  padding: 0 40px;
  margin: 0 auto;
  width: 100%;
}

.topbar {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  gap: 12px;
}

.topbar>div {
  display: flex;
  gap: 25px;
  align-items: center;
}

.slash {
  margin: 0 12px;
  color: #b7b9af;
}

.live-label {
  font: 9px Consolas,monospace;
  letter-spacing: 1.4px;
}

#workspace-error {
  margin-top: 18px;
}

.section {
  padding-top: 37px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.heading-dot {
  color: var(--accent);
}

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

.description {
  max-width: 720px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 0;
  font-size: 13px;
}

#project-title {
  overflow-wrap: anywhere;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafaf7;
  margin-top: 26px;
}

.stats>div {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.stats>div:last-child {
  border-right: 0;
}

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

.stats strong {
  font: 500 34px Consolas,monospace;
  line-height: 1.4;
  margin: 5px 0;
}

.stats small {
  font-size: 10px;
  color: #8c8f84;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 19px 22px;
  border-bottom: 1px solid #eeeee7;
}

.panel-heading p {
  margin: 5px 0 0;
}

.count {
  font: 10px Consolas,monospace;
  color: var(--muted);
  background: #f0f1eb;
  padding: 3px 7px;
  border-radius: 4px;
  margin-left: 7px;
}

.config-grid {
  display: grid;
  grid-template-columns: minmax(210px,.65fr) minmax(0,1.6fr);
  gap: 20px;
}

.version-list {
  max-height: 660px;
  overflow: auto;
}

.version-button {
  display: block;
  text-align: left;
  width: 100%;
  border-bottom: 1px solid #eeeee7;
  border-left: 3px solid transparent;
  padding: 17px 19px;
}

.version-button.selected {
  border-left-color: var(--accent);
  background: #fcf6f1;
}

.version-button:hover {
  background: var(--paper);
}

.version-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.version-name {
  font-weight: 600;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.version-number {
  font: 10px Consolas,monospace;
  color: var(--accent);
  flex-shrink: 0;
}

.version-meta {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 7px;
}

.version-budget {
  font: 10px Consolas,monospace;
  color: var(--muted);
  margin-top: 7px;
  display: block;
}

.editor-panel form {
  padding: 20px 22px;
}

.quick-fields {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin-top: 16px;
}

.quick-fields label {
  font-size: 10px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 7px;
}

.label-row label {
  margin: 0;
}

.code-editor {
  font-size: 12px;
  line-height: 1.65;
  background: #fafaf7;
  border-color: #e7e8e0;
  min-height: 250px;
}

.field-help {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 9px 0 0;
}

.schema-details {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}

summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--muted);
  padding: 8px 0;
}

details pre {
  font-size: 11px;
  max-height: 320px;
  overflow: auto;
  background: #f7f7f3;
  padding: 12px;
  border-radius: 4px;
}

.schema-details p {
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #eeeee7;
  padding-top: 18px;
  margin-top: 18px;
}

.launch-panel {
  padding: 20px 22px;
  margin-bottom: 20px;
  background: #f9f9f5;
}

.launch-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr .8fr .8fr auto;
  gap: 14px;
  align-items: end;
}

.launch-grid label {
  font-size: 10px;
}

.launch-grid select,.launch-grid input {
  font-size: 12px;
  height: 42px;
}

.jobs-grid {
  display: grid;
  grid-template-columns: minmax(230px,.75fr) minmax(0,1.5fr);
  gap: 20px;
  align-items: start;
}

.jobs-panel .panel-heading {
  padding: 17px;
}

.jobs-panel .panel-heading select {
  width: auto;
  max-width: 130px;
  font-size: 10px;
  padding: 7px;
}

.job-list {
  max-height: 800px;
  overflow: auto;
}

.job-button {
  display: block;
  width: 100%;
  padding: 17px;
  text-align: left;
  border-bottom: 1px solid #eeeee7;
  border-left: 3px solid transparent;
}

.job-button:hover {
  background: #f8f8f4;
}

.job-button.selected {
  background: #fcf6f1;
  border-left-color: var(--accent);
}

.job-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.job-meta {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.status {
  display: inline-block;
  font-size: 10px;
  line-height: 1.6;
  border-radius: 4px;
  padding: 3px 7px;
  white-space: nowrap;
  background: #eeefe9;
  color: #6d7164;
}

.status-running,.status-queued,.status-cancelling {
  background: #fff0df;
  color: #9c6028;
}

.status-succeeded {
  background: #e9f3eb;
  color: #3f7454;
}

.status-failed,.status-lost {
  background: #faeae7;
  color: #a44438;
}

.detail-empty {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  color: var(--muted);
}

.crosshair {
  font-size: 44px;
  font-weight: 200;
  color: #b4b7aa;
}

.detail-empty h3 {
  margin: 15px 0 8px;
  color: #5e6357;
}

.detail-empty p {
  font-size: 12px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 15px;
  padding: 20px 22px;
}

.fact {
  min-width: 0;
}

.fact dt {
  font-size: 10px;
  color: var(--muted);
}

.fact dd {
  font-size: 12px;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 0 22px 20px;
}

.detail-panel .error-banner {
  margin: 0 22px 18px;
}

.log-heading {
  padding: 14px 22px;
  background: #30342d;
  color: #d7dbd0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 400;
}

.check-label input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.logs {
  background: #252a24;
  color: #c9d3bf;
  font-size: 11px;
  line-height: 1.8;
  min-height: 230px;
  max-height: 420px;
  overflow: auto;
  margin: 0;
  padding: 18px 22px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#logs-note {
  padding: 0 22px;
}

.results {
  padding: 6px 22px 22px;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-top: 15px;
}

.metric-group {
  background: #f7f8f3;
  border: 1px solid #e8eae0;
  border-radius: 5px;
  padding: 12px;
}

.metric-group h4 {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 10px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  padding: 4px 0;
  border-bottom: 1px solid #e9ebe2;
  overflow-wrap: anywhere;
}

.metric-row span {
  min-width: 0;
}

.metric-row strong {
  font-weight: 500;
  font-family: Consolas,monospace;
  text-align: right;
  min-width: 0;
}

.json-output {
  font-size: 11px;
  line-height: 1.7;
  max-height: 320px;
  overflow: auto;
}

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

.worker-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafaf7;
  padding: 20px;
  min-width: 0;
}

.worker-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.worker-heading h3 {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.worker-gpu {
  font: 13px Consolas,monospace;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.worker-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}

.worker-image {
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
  overflow-wrap: anywhere;
}

.worker-seen {
  font-size: 10px;
  color: #92968a;
  margin-top: 12px;
  margin-bottom: 0;
}

.section-intro {
  font-size: 12px;
  margin-top: -7px;
  margin-bottom: 20px;
}

.empty-text {
  padding: 28px 22px;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  grid-column: 1/-1;
}

.empty {
  border: 1px dashed #c6c9bb;
  padding: 30px;
  background: #f9faf5;
  border-radius: var(--radius);
}

.empty-index {
  font: 10px Consolas,monospace;
  letter-spacing: 2px;
  color: var(--accent);
}

.empty h2 {
  font-size: 22px;
  margin-top: 12px;
}

.empty p {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 20px;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 45px;
  padding: 22px 0 30px;
  color: #96998e;
  font-size: 9px;
  letter-spacing: 1px;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  max-width: 620px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 90px #20251b30;
}

dialog::backdrop {
  background: #252a2466;
  backdrop-filter: blur(3px);
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 22px;
}

.dialog-heading h2 {
  font-size: 22px;
}

.icon-button {
  font-size: 25px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: var(--muted);
}

.icon-button:hover {
  background: var(--paper);
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.budget-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  background: var(--accent-light);
  border: 1px solid #edc9b6;
  border-radius: 6px;
  padding: 18px;
  margin: 20px 0;
}

.budget-grid .fact dd {
  font-size: 16px;
  font-weight: 600;
}

.budget-check {
  padding: 15px;
  background: #f6f6f0;
  line-height: 1.8;
  margin-top: 15px;
}

.budget-check input {
  align-self: flex-start;
  margin-top: 4px;
}

#confirm-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media(min-width:1600px) {
  main {
    padding: 0 60px;
  }
  .section {
    padding-top: 45px;
  }
}

@media(max-width:1150px) {
  .console {
    grid-template-columns: 195px minmax(0,1fr);
  }
  .sidebar {
    padding: 25px 15px;
  }
  main {
    padding: 0 25px;
  }
  .launch-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .launch-grid>.button {
    grid-column: 1/-1;
  }
  .worker-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .stats>div {
    padding: 17px;
  }
  .config-grid {
    grid-template-columns: 200px minmax(0,1fr);
  }
  .jobs-grid {
    grid-template-columns: 240px minmax(0,1fr);
  }
  .quick-fields {
    grid-template-columns: 1fr;
  }
  .result-metrics {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 35px;
  }
  .story-copy {
    margin-top: 70px;
  }
}

@media(max-width:900px) {
  .config-grid,.jobs-grid {
    grid-template-columns: 1fr;
  }
  .version-list {
    max-height: 240px;
  }
  .job-list {
    max-height: 300px;
  }
  .quick-fields {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .result-metrics {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .stats>div:nth-child(2) {
    border-right: 0;
  }
  .stats>div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
  .auth-screen {
    grid-template-columns: 1fr 1fr;
  }
  .story-copy h1 {
    font-size: 38px;
  }
  .auth-story {
    padding: 30px;
  }
  .auth-panel {
    padding: 35px 25px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .live-label {
    display: none;
  }
}

@media(max-width:640px) {
  html {
    scroll-padding-top: 16px;
  }
  .console {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 19px 20px 15px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    font-size: 17px;
  }
  .nav-caption {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 0;
    justify-content: space-between;
    margin-top: 18px;
  }
  .sidebar nav a {
    font-size: 11px;
    padding: 8px 2px;
    gap: 5px;
  }
  .sidebar nav a span {
    font-size: 9px;
  }
  .sidebar-project {
    display: flex;
    gap: 10px;
    border: 0;
    padding: 0;
    margin-top: 14px;
  }
  .sidebar-project .section-label {
    display: none;
  }
  .sidebar-project select {
    margin: 0;
    flex: 1;
    width: 0;
  }
  .sidebar-project .button {
    width: auto;
  }
  .sidebar-bottom {
    padding: 0;
    margin: 0;
    position: absolute;
    right: 20px;
    top: 20px;
  }
  .sidebar-bottom .connection,.sidebar-bottom>p {
    display: none;
  }
  .account {
    margin: 0;
    padding: 0;
    border: 0;
    max-width: 145px;
  }
  .account>span {
    max-width: 80px;
    font-size: 10px;
  }
  .account .text-button {
    font-size: 10px;
  }
  main {
    padding: 0 20px;
  }
  .topbar {
    height: 58px;
    font-size: 10px;
  }
  .topbar>div {
    gap: 0;
  }
  .section {
    padding-top: 29px;
  }
  .section-heading {
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }
  .section-heading h1 {
    font-size: 29px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .actions {
    gap: 15px;
  }
  .stats {
    margin-top: 20px;
  }
  .stats>div {
    padding: 14px 17px;
  }
  .stats strong {
    font-size: 30px;
  }
  .stats small {
    font-size: 9px;
  }
  .panel-heading {
    padding: 16px;
  }
  .editor-panel form {
    padding: 16px;
  }
  .quick-fields {
    gap: 8px;
  }
  .quick-fields input {
    padding: 9px 7px;
  }
  .quick-fields label {
    font-size: 9px;
  }
  .form-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .form-footer .button {
    width: 100%;
  }
  .launch-panel {
    padding: 16px;
  }
  .launch-grid {
    gap: 13px 10px;
  }
  .launch-grid>div:first-child {
    grid-column: 1/-1;
  }
  .launch-grid>div:nth-child(2) {
    grid-column: 1/-1;
  }
  .worker-grid {
    grid-template-columns: 1fr;
  }
  .detail-facts {
    padding: 16px;
    gap: 13px;
  }
  .detail-actions {
    padding: 0 16px 16px;
  }
  .log-heading {
    padding: 13px 16px;
  }
  .logs {
    padding: 16px;
    max-height: 340px;
  }
  .results {
    padding: 6px 16px 16px;
  }
  .result-metrics {
    grid-template-columns: 1fr;
  }
  .auth-screen {
    display: block;
  }
  .auth-story {
    padding: 25px 25px 28px;
  }
  .story-copy {
    margin-top: 30px;
  }
  .story-copy h1 {
    font-size: 34px;
    letter-spacing: -1px;
    margin-bottom: 0;
  }
  .story-copy>p:last-child,.robot-drawing,.story-foot {
    display: none;
  }
  .story-copy .eyebrow {
    margin-bottom: 8px;
  }
  .auth-panel {
    padding: 35px 25px 45px;
  }
  .auth-panel>div {
    max-width: 430px;
  }
  .auth-panel h2 {
    font-size: 24px;
  }
  .auth-tabs {
    margin-top: 24px;
  }
  .page-footer {
    font-size: 8px;
    gap: 10px;
  }
  .empty {
    padding: 22px;
  }
  .empty h2 {
    font-size: 20px;
  }
  dialog {
    padding: 21px;
  }
  .budget-grid {
    padding: 14px;
    gap: 12px;
  }
  .budget-grid .fact dd {
    font-size: 14px;
  }
  .detail-panel .panel-heading {
    align-items: flex-start;
  }
  #detail-id {
    word-break: break-all;
  }
  .tag {
    font-size: 9px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
  }
}

