:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #f6f7fb;
  background: #08090c;
  font-synthesis: none;
  --panel: rgba(21, 23, 29, 0.84);
  --panel-strong: #171920;
  --line: rgba(255, 255, 255, 0.09);
  --muted: #969ba8;
  --green: #65e6ab;
  --green-dark: #153b2d;
  --red: #ff7d87;
  --amber: #f7c76c;
  --violet: #a68cff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

button,
select {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(17, 19, 25, 0.5), rgba(8, 9, 12, 0.96)),
    #08090c;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient-one {
  top: -16rem;
  right: -8rem;
  width: 38rem;
  height: 38rem;
  background: #795cff;
}

.ambient-two {
  top: 24rem;
  left: -18rem;
  width: 36rem;
  height: 36rem;
  background: #1cc98a;
}

.shell {
  width: min(1660px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 70px;
}

.masthead,
.section-heading,
.worker-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.header-controls {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--violet);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.subtitle {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.live-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  margin-top: 8px;
  padding: 10px 14px;
  color: #c7cbd4;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 20, 25, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.unlock-control {
  display: flex;
  gap: 7px;
}

.unlock-control input,
.unlock-control select {
  min-height: 38px;
  padding: 8px 11px;
  color: #eef0f5;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(18, 20, 25, 0.72);
}

.unlock-control input {
  width: 190px;
}

.unlock-control select {
  width: 128px;
  appearance: none;
}

.unlock-control input:focus,
.unlock-control select:focus,
.toolbar input:focus,
.job-filter-input input:focus,
.toolbar select:focus,
.form-field input:focus,
.form-field select:focus,
.mini-form input:focus,
.mini-form select:focus {
  border-color: rgba(166, 140, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(166, 140, 255, 0.1);
}

.unlock-status {
  margin: -2px 2px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.unlock-status.unlocked {
  color: var(--green);
}

.primary-nav {
  display: inline-flex;
  gap: 5px;
  margin-top: 34px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 20, 25, 0.74);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.nav-pill {
  padding: 10px 16px;
  color: #8f94a1;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.nav-pill:hover {
  color: #e6e8ed;
}

.nav-pill[aria-current="page"] {
  color: #f5f2ff;
  border-color: rgba(166, 140, 255, 0.27);
  background: rgba(166, 140, 255, 0.13);
}

.dashboard-view {
  min-width: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(247, 199, 108, 0.75);
}

.live-state.connected .live-dot {
  background: var(--green);
  box-shadow: 0 0 14px rgba(101, 230, 171, 0.75);
}

.live-state.failed .live-dot {
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 125, 135, 0.65);
}

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

.dashboard-view > .summary {
  margin-top: 28px;
}

.metric {
  position: relative;
  min-height: 150px;
  padding: 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.metric.accent::after {
  position: absolute;
  right: -38px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(101, 230, 171, 0.12);
  content: "";
  filter: blur(6px);
}

.metric-label,
.metric span:last-child {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin: 12px 0 4px;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 14px 0 46px;
  padding: 16px 18px;
  color: #b5bac6;
  border: 1px solid rgba(166, 140, 255, 0.17);
  border-radius: 14px;
  background: rgba(166, 140, 255, 0.055);
  font-size: 13px;
  line-height: 1.55;
}

.notice p {
  margin: 0;
}

.notice strong {
  color: #e7e3f6;
}

.notice-icon {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #0b0c10;
  border-radius: 999px;
  background: var(--violet);
  font-size: 12px;
  font-weight: 900;
}

.section-heading {
  align-items: flex-end;
  margin-bottom: 18px;
}

.updated {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
}

.fleet-heading-status {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.fleet-heading-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 14px;
}

.worker-density-control {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.worker-density-control select {
  min-width: 92px;
  min-height: 36px;
  padding: 7px 30px 7px 11px;
  color: #eef0f5;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(18, 20, 25, 0.82);
}

.worker-density-control select:focus {
  border-color: rgba(166, 140, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(166, 140, 255, 0.1);
}

.preview-permission {
  margin: 0;
  color: #aeb3bd;
  font-size: 11px;
}

.fleet-workspace {
  display: grid;
  grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.worker-rail {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  padding-right: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(166, 140, 255, 0.36) transparent;
  scrollbar-width: thin;
}

.worker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.fleet-workspace.overview {
  display: block;
}

.fleet-workspace.overview .worker-rail {
  position: static;
  max-height: none;
  padding: 0;
  overflow: visible;
}

.fleet-workspace.overview .worker-grid {
  grid-template-columns: repeat(var(--worker-grid-columns, 1), minmax(0, 1fr));
  gap: var(--worker-grid-gap, 10px);
}

.fleet-workspace.overview .worker-viewer {
  display: none;
}

.worker-viewer {
  position: sticky;
  top: 18px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.worker-viewer-heading,
.worker-viewer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.worker-viewer-order {
  margin: 0 0 3px;
  color: #727784;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.worker-viewer h3 {
  margin: 0;
  font-size: 21px;
}

.worker-viewer-heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.worker-overview-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  color: #d8d4e7;
  border: 1px solid rgba(166, 140, 255, 0.25);
  border-radius: 9px;
  outline: none;
  background: rgba(166, 140, 255, 0.08);
  font-size: 10px;
  font-weight: 750;
}

.worker-overview-button:hover,
.worker-overview-button:focus-visible {
  color: #fff;
  border-color: rgba(166, 140, 255, 0.52);
  background: rgba(166, 140, 255, 0.14);
}

.worker-stage-preview {
  position: relative;
  display: grid;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 16px 0 12px;
  padding: 0;
  overflow: hidden;
  place-items: center;
  color: #8d929e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  outline: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(166, 140, 255, 0.08), transparent 45%),
    #090a0d;
}

.worker-stage-preview:not(:disabled):hover,
.worker-stage-preview:not(:disabled):focus-visible {
  border-color: rgba(166, 140, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(166, 140, 255, 0.1);
}

.worker-stage-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050608;
}

.worker-stage-placeholder {
  max-width: 420px;
  padding: 30px;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.preview-rate {
  position: absolute;
  right: 11px;
  bottom: 11px;
  padding: 6px 9px;
  color: #c8cbd3;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(7, 8, 11, 0.82);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.worker-viewer-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.worker-desktop-message {
  flex: 1 1 280px;
  margin: 0 0 0 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.selected-session-block {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  padding: 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.selected-worker-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.selected-worker-facts div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.selected-worker-facts dt,
.selected-worker-facts dd {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-worker-facts dt {
  margin-bottom: 4px;
  color: #747985;
}

.selected-worker-facts dd {
  margin: 0;
  color: #c2c6cf;
}

.worker-card,
.loading-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.section-gap {
  margin-top: 34px;
}

.surface {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.surface-copy,
.empty-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.surface-copy {
  max-width: 620px;
  margin-bottom: 22px;
}

.section-heading.compact {
  align-items: flex-start;
  margin-bottom: 18px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 12px;
}

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

.form-field,
.mini-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #b8bdc8;
  font-size: 11px;
  font-weight: 700;
}

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

.form-field input,
.form-field select,
.mini-form input,
.mini-form select,
.mini-form textarea,
.toolbar input,
.job-filter-input input,
.toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  color: #eef0f5;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: rgba(8, 9, 12, 0.46);
}

.mini-form textarea {
  width: 100%;
  min-width: 0;
  padding: 11px;
  resize: vertical;
  color: #eef0f5;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: rgba(8, 9, 12, 0.46);
  line-height: 1.5;
}

.form-field select,
.mini-form select,
.toolbar select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #777d89 50%),
    linear-gradient(135deg, #777d89 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 18px,
    calc(100% - 11px) 18px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.button {
  min-height: 38px;
  padding: 8px 13px;
  color: #d7dae2;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-decoration: none;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.button-primary {
  color: #0b0c10;
  border-color: rgba(101, 230, 171, 0.42);
  background: var(--green);
}

.button-primary:hover:not(:disabled) {
  border-color: var(--green);
  background: #7cebb9;
}

.button-danger {
  color: var(--red);
  border-color: rgba(255, 125, 135, 0.2);
  background: rgba(255, 125, 135, 0.06);
}

.button-small {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 10px;
}

.form-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.form-message.error {
  color: var(--red);
}

.form-message.success {
  color: var(--green);
}

.lock-chip,
.count-chip {
  min-width: max-content;
  padding: 6px 9px;
  color: var(--amber);
  border: 1px solid rgba(247, 199, 108, 0.2);
  border-radius: 999px;
  background: rgba(247, 199, 108, 0.06);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lock-chip.unlocked,
.count-chip {
  color: var(--green);
  border-color: rgba(101, 230, 171, 0.2);
  background: rgba(101, 230, 171, 0.06);
}

.flow-list {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.flow-list li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--violet);
  border: 1px solid rgba(166, 140, 255, 0.24);
  border-radius: 9px;
  background: rgba(166, 140, 255, 0.07);
  font-size: 11px;
  font-weight: 850;
}

.flow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.flow-list strong {
  display: block;
  margin-bottom: 2px;
  color: #e7e9ee;
}

.table-shell {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 11px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #777d89;
  background: rgba(255, 255, 255, 0.018);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

tbody tr:hover:not(:has(.table-empty)) {
  background: rgba(255, 255, 255, 0.018);
}

td {
  color: #c4c8d1;
}

.table-empty {
  padding: 38px;
  color: var(--muted);
  text-align: center;
}

.cell-primary,
.cell-secondary {
  display: block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-primary {
  color: #e9ebf0;
  font-weight: 700;
}

.cell-secondary {
  margin-top: 3px;
  color: #717783;
  font-size: 10px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
  padding: 6px 8px;
  color: #a7acb6;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #777d89;
  content: "";
}

.status-pill.active,
.status-pill.online,
.status-pill.succeeded,
.status-pill.delivered,
.status-pill.json-recovered {
  color: var(--green);
  border-color: rgba(101, 230, 171, 0.18);
  background: rgba(101, 230, 171, 0.055);
}

.status-pill.active::before,
.status-pill.online::before,
.status-pill.succeeded::before,
.status-pill.delivered::before,
.status-pill.json-recovered::before {
  background: var(--green);
}

.status-pill.running,
.status-pill.pending,
.status-pill.delivering {
  color: var(--amber);
  border-color: rgba(247, 199, 108, 0.18);
  background: rgba(247, 199, 108, 0.055);
}

.status-pill.running::before,
.status-pill.pending::before,
.status-pill.delivering::before {
  background: var(--amber);
}

.status-pill.queued {
  color: #72d7ff;
  border-color: rgba(114, 215, 255, 0.24);
  background: rgba(52, 176, 228, 0.08);
}

.status-pill.queued::before {
  background: #72d7ff;
}

.status-pill.leased {
  color: #b99cff;
  border-color: rgba(185, 156, 255, 0.24);
  background: rgba(166, 140, 255, 0.08);
}

.status-pill.leased::before {
  background: #b99cff;
}

.status-pill.disabled,
.status-pill.failed,
.status-pill.dead,
.status-pill.needs-review {
  color: var(--red);
  border-color: rgba(255, 125, 135, 0.18);
  background: rgba(255, 125, 135, 0.055);
}

.status-pill.disabled::before,
.status-pill.failed::before,
.status-pill.dead::before,
.status-pill.needs-review::before {
  background: var(--red);
}

.status-pill.cancelled,
.status-pill.stopped {
  color: var(--violet);
  border-color: rgba(166, 140, 255, 0.2);
  background: rgba(166, 140, 255, 0.06);
}

.status-pill.cancelled::before,
.status-pill.stopped::before {
  background: var(--violet);
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.key-prefix-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.worker-key-copy-note {
  max-width: none;
  margin: -3px 0 13px;
  font-size: 11px;
}

.worker-key-copy-note strong {
  color: #e7e9ee;
}

.worker-key-registry tr.selected-worker-key td {
  background: rgba(100, 255, 183, 0.055);
}

.worker-key-registry tr.selected-worker-key td:first-child {
  box-shadow: inset 3px 0 0 var(--green);
}

.toolbar {
  display: flex;
  gap: 8px;
  width: min(100%, 520px);
}

.toolbar input {
  flex: 1 1 auto;
}

.toolbar select {
  flex: 0 0 150px;
}

.jobs-controls {
  display: grid;
  width: min(100%, 680px);
  gap: 9px;
  justify-items: end;
}

.jobs-controls .toolbar {
  width: 100%;
}

.jobs-history-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aeb3bd;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  user-select: none;
}

.jobs-history-toggle input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--violet);
}

.job-filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.job-filter-input {
  display: grid;
  flex: 1 1 180px;
  gap: 7px;
  min-width: 160px;
  color: #aeb3bd;
  font-size: 10px;
  font-weight: 750;
}

.job-filter-input input {
  width: 100%;
  min-width: 0;
  height: 38px;
  min-height: 38px;
}

.job-filter-menu {
  position: relative;
  flex: 0 0 auto;
}

.job-filter-menu summary {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  color: #c9cdd6;
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.job-filter-menu.has-selection summary {
  color: #ece9ff;
  border-color: rgba(166, 140, 255, 0.42);
  background: rgba(166, 140, 255, 0.12);
}

.job-filter-menu summary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.job-filter-group {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 5px;
  min-width: 180px;
  margin: 6px 0 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #191b23;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.job-filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: #bec3ce;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.job-filter-group label:hover,
.job-filter-group label:has(input:checked) {
  color: #ece9ff;
  background: rgba(166, 140, 255, 0.12);
}

.job-filter-group input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--violet);
}

.job-filter-panel .jobs-history-toggle {
  min-height: 38px;
}

.job-filter-panel > button {
  min-height: 38px;
}

.job-pagination,
.job-pagination > div {
  display: flex;
  align-items: center;
}

.jobs-table-shell {
  max-height: min(68vh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  -webkit-overflow-scrolling: touch;
}

.jobs-table-shell:focus-visible {
  outline: 2px solid rgba(166, 140, 255, 0.65);
  outline-offset: 3px;
}

.jobs-table-shell thead {
  position: sticky;
  z-index: 2;
  top: 0;
}

.job-pagination {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin: 11px 0;
  color: #858b96;
  font-size: 10px;
}

.job-pagination > div {
  flex-wrap: wrap;
  gap: 7px;
}

.job-pagination select {
  min-height: 31px;
  padding: 4px 7px;
  color: #d8dbe2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #15171c;
}

.job-reset-form {
  margin: 0 0 16px;
  padding: 13px;
  border: 1px solid rgba(255, 125, 135, 0.16);
  border-radius: 14px;
  background: rgba(255, 125, 135, 0.025);
}

.continuity-reset-disclosure {
  margin: 0 0 16px;
  color: #888e99;
  font-size: 10px;
}

.continuity-reset-disclosure summary {
  width: fit-content;
  padding: 7px 0;
  color: #8d93a0;
  cursor: pointer;
  font-weight: 750;
}

.continuity-reset-disclosure[open] summary {
  color: #c3c7d0;
}

.continuity-reset-disclosure .job-reset-form {
  margin-top: 7px;
}

.job-reset-empty {
  min-height: 92px;
  border-color: rgba(255, 125, 135, 0.14);
  background: rgba(255, 125, 135, 0.018);
}

.job-reset-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
}

.job-reset-copy h3 {
  margin: 0 0 6px;
  color: #eef0f5;
  font-size: 13px;
}

.job-reset-copy > p:not(.eyebrow):not(.job-reset-target) {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.job-reset-target {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: baseline;
  margin: 9px 0 0;
  color: #8f95a2;
  font-size: 10px;
}

.job-reset-target strong {
  color: #d9dce4;
}

.job-reset-target code {
  color: #a9a1c8;
  font-size: 9px;
}

.job-reset-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.job-reset-message {
  grid-column: 1 / -1;
  margin: 0;
}

.jobs-table {
  min-width: 1360px;
}

.job-action-message {
  margin: 0 0 10px;
}

.job-actions-cell {
  min-width: 92px;
  white-space: nowrap;
}

.job-row {
  cursor: pointer;
}

.job-row:hover td,
.job-row.selected td {
  background: rgba(166, 140, 255, 0.055);
}

.job-row.continuity-archived td {
  background: rgba(247, 199, 108, 0.018);
}

.job-row.continuity-archived:hover td,
.job-row.continuity-archived.selected td {
  background: rgba(247, 199, 108, 0.05);
}

.continuity-archive-label {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 3px 6px;
  overflow: hidden;
  color: var(--amber);
  border: 1px solid rgba(247, 199, 108, 0.16);
  border-radius: 999px;
  background: rgba(247, 199, 108, 0.045);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.job-detail-status-line .continuity-archive-label {
  display: inline-flex;
  margin-top: 0;
}

.job-link {
  padding: 0;
  color: #d9d0ff;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(166, 140, 255, 0.4);
  text-underline-offset: 3px;
}

.job-link:hover,
.job-link:focus-visible {
  color: #f0ecff;
  text-decoration-color: var(--violet);
}

.job-detail-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  color: #f6f7fb;
  border: 1px solid rgba(166, 140, 255, 0.28);
  border-radius: 20px;
  background: #111319;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.58);
}

.job-detail-dialog::backdrop {
  background: rgba(4, 5, 8, 0.78);
  backdrop-filter: blur(5px);
}

.job-detail-frame {
  max-height: calc(100vh - 34px);
  padding: 22px;
  overflow: auto;
}

.job-detail-heading {
  position: sticky;
  z-index: 1;
  top: -22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: -22px -22px 18px;
  padding: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(17, 19, 25, 0.96);
  backdrop-filter: blur(14px);
}

.job-detail-heading h2 {
  margin: 0;
  font-size: 20px;
}

.job-detail-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.job-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 14px;
}

.job-detail-meta div {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.022);
}

.job-detail-meta dt {
  margin-bottom: 5px;
  color: #777d89;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-detail-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #d9dce4;
  font-size: 11px;
  line-height: 1.45;
}

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

.job-detail-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
}

.job-detail-section.wide {
  grid-column: 1 / -1;
}

.job-detail-section h3 {
  margin: 0 0 9px;
  color: #eceef3;
  font-size: 12px;
}

.job-detail-section p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.job-detail-code {
  max-height: 340px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  color: #cfd3dc;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  background: rgba(5, 6, 9, 0.48);
  font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.job-detail-error {
  color: var(--red) !important;
}

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

.incident-copy {
  margin: 6px 0 0;
}

.incident-table .cell-secondary {
  max-width: 420px;
  white-space: normal;
}

.incident-table .job-actions-cell {
  display: flex;
  gap: 6px;
}

.incident-row {
  cursor: pointer;
}

.incident-row:hover td,
.incident-row.selected td {
  background: rgba(166, 140, 255, 0.055);
}

.incident-row:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: -2px;
}

.incident-detail-dialog {
  width: min(1160px, calc(100vw - 32px));
}

.incident-detail-frame {
  padding-bottom: 0;
}

.incident-detail-heading {
  align-items: center;
}

.incident-stream-state {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 7px 0 0;
  color: #858b97;
  font-size: 10px;
}

.incident-stream-state > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(133, 139, 151, 0.08);
}

.incident-stream-state.live {
  color: #77e6ad;
}

.incident-stream-state.live > span:first-child {
  animation: incident-live-pulse 1.5s ease-out infinite;
}

.incident-stream-state.done {
  color: #a995ff;
}

.incident-stream-state.error {
  color: var(--red);
}

@keyframes incident-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(119, 230, 173, 0.38); }
  70% { box-shadow: 0 0 0 7px rgba(119, 230, 173, 0); }
  100% { box-shadow: 0 0 0 0 rgba(119, 230, 173, 0); }
}

.incident-problem-banner {
  margin-bottom: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 111, 105, 0.18);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 111, 105, 0.065), rgba(166, 140, 255, 0.035));
}

.incident-problem-banner h3 {
  margin: 0 0 6px;
  color: #f1f2f6;
  font-size: 14px;
}

.incident-problem-banner p {
  margin: 0;
  color: #aeb2bd;
  font-size: 11px;
  line-height: 1.55;
}

.incident-detail-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(420px, 1.28fr);
  gap: 14px;
  align-items: start;
}

.incident-detail-sidebar,
.incident-activity-panel {
  min-width: 0;
}

.incident-detail-sidebar {
  display: grid;
  gap: 12px;
}

.incident-evidence-list,
.incident-run-list {
  display: grid;
  gap: 8px;
}

.incident-evidence-card,
.incident-run-card {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(5, 6, 9, 0.36);
}

.incident-evidence-card strong,
.incident-run-card strong {
  display: block;
  margin-bottom: 5px;
  color: #e2e4ea;
  font-size: 10px;
}

.incident-evidence-card p,
.incident-run-card p {
  margin: 3px 0 0;
  color: #9ba0ac;
  font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

.incident-activity-panel {
  padding: 0;
  overflow: hidden;
}

.incident-activity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.incident-activity-heading h3,
.incident-activity-heading p {
  margin: 0;
}

.incident-activity-heading p {
  color: #777d89;
  font-size: 9px;
}

.incident-timeline {
  display: grid;
  gap: 0;
  max-height: min(620px, calc(100vh - 300px));
  padding: 8px 14px 22px;
  overflow: auto;
}

.incident-activity-entry {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
}

.incident-activity-entry::before {
  position: absolute;
  top: 35px;
  bottom: -11px;
  left: 12px;
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
  content: "";
}

.incident-activity-entry:last-child::before {
  display: none;
}

.incident-activity-avatar {
  z-index: 1;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #d8dbe3;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #181b22;
  font-size: 9px;
  font-weight: 900;
}

.incident-activity-entry.codex .incident-activity-avatar {
  color: #ded6ff;
  border-color: rgba(166, 140, 255, 0.28);
  background: rgba(166, 140, 255, 0.1);
}

.incident-activity-entry.controller .incident-activity-avatar {
  color: #a5f0c7;
  border-color: rgba(119, 230, 173, 0.24);
  background: rgba(119, 230, 173, 0.08);
}

.incident-activity-entry.error .incident-activity-avatar {
  color: #ffaaa6;
  border-color: rgba(255, 111, 105, 0.25);
  background: rgba(255, 111, 105, 0.08);
}

.incident-activity-card {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.incident-activity-card header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  justify-content: space-between;
}

.incident-activity-card strong {
  color: #e9eaf0;
  font-size: 11px;
}

.incident-activity-meta {
  color: #737985;
  font-size: 9px;
}

.incident-activity-detail {
  max-height: 260px;
  margin: 8px 0 0;
  padding: 9px;
  overflow: auto;
  color: #adb2bd;
  border-radius: 8px;
  background: rgba(4, 5, 8, 0.42);
  font: 10px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.incident-activity-entry.message .incident-activity-detail {
  padding: 0;
  color: #d2d5dc;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
}

.incident-empty-activity {
  margin: 24px 6px;
  color: #858b97;
  font-size: 11px;
  text-align: center;
}

.status-pill.critical,
.status-pill.high,
.status-pill.human-required {
  color: #ffada8;
  border-color: rgba(255, 111, 105, 0.28);
  background: rgba(255, 111, 105, 0.09);
}

.status-pill.warning,
.status-pill.patch-ready,
.status-pill.verified {
  color: #ffd88a;
  border-color: rgba(255, 190, 90, 0.28);
  background: rgba(255, 190, 90, 0.09);
}

.api-example {
  max-height: 430px;
  margin: 18px 0;
  padding: 18px;
  overflow: auto;
  color: #cbd0da;
  border: 1px solid rgba(166, 140, 255, 0.14);
  border-radius: 13px;
  background: rgba(8, 9, 12, 0.58);
  font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
}

.callback-list {
  display: grid;
  gap: 9px;
}

.callback-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

.callback-card p {
  margin: 0;
}

.callback-name {
  color: #e8eaf0;
  font-size: 12px;
  font-weight: 750;
}

.callback-url {
  margin-top: 4px !important;
  overflow: hidden;
  color: var(--muted);
  font: 10px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parameters-notice {
  margin: 18px 0 0;
}

.parameters-scope > .scope-empty {
  min-height: 150px;
  border: 1px dashed rgba(166, 140, 255, 0.2);
  border-radius: 18px;
  background: rgba(166, 140, 255, 0.035);
}

.parameters-grid {
  display: grid;
  gap: 12px;
}

.parameters-form .form-title-row h2,
.parameters-report h2 {
  font-size: 22px;
}

.parameters-form-intro {
  max-width: 780px;
}

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

.parameters-form-grid label {
  align-content: start;
}

.parameters-form-grid label > small {
  min-height: 30px;
  color: #777d89;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.45;
}

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

.job-type-tree {
  display: grid;
  gap: 14px;
}

.job-type-panel,
.job-subtype-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 13, 17, 0.7);
  overflow: hidden;
}

.job-type-panel[open] {
  border-color: rgba(166, 140, 255, 0.28);
}

.job-type-panel > summary,
.job-subtype-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.job-type-panel > summary::-webkit-details-marker,
.job-subtype-panel > summary::-webkit-details-marker {
  display: none;
}

.job-type-panel > summary:hover,
.job-subtype-panel > summary:hover {
  background: rgba(255, 255, 255, 0.025);
}

.job-type-summary-copy,
.job-subtype-summary-copy {
  display: grid;
  gap: 4px;
}

.job-type-summary-copy strong,
.job-subtype-summary-copy strong {
  color: #eceef4;
  font-size: 14px;
}

.job-type-summary-copy span,
.job-subtype-summary-copy span {
  color: #777d89;
  font-size: 10px;
}

.job-type-chevron {
  color: #777d89;
  font-size: 16px;
  transition: transform 160ms ease;
}

.job-type-panel[open] > summary .job-type-chevron,
.job-subtype-panel[open] > summary .job-type-chevron {
  transform: rotate(90deg);
}

.job-subtype-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.job-subtype-panel {
  border-radius: 13px;
  background: rgba(7, 8, 11, 0.46);
}

.job-subtype-panel > summary {
  padding: 15px 16px;
}

.job-subtype-prompt-form {
  padding: 4px 16px 18px;
  border-top: 1px solid var(--line);
}

.job-subtype-prompt-form label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.job-subtype-prompt-form textarea {
  min-height: 260px;
  resize: vertical;
}

.job-subtype-prompt-form small {
  color: #777d89;
  font-size: 10px;
  line-height: 1.5;
}

.job-prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(8, 9, 12, 0.46);
}

.input-with-unit:focus-within {
  border-color: rgba(166, 140, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(166, 140, 255, 0.1);
}

.mini-form .input-with-unit input {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.input-with-unit > span {
  padding: 0 12px;
  color: #777d89;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.parameters-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.parameters-save-row .button {
  width: auto;
  min-width: 190px;
}

.parameters-revision {
  color: #7f8591;
  font: 10px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.parameters-report .surface-copy {
  max-width: none;
}

.capacity-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.capacity-reset-message {
  margin: -8px 0 14px;
}

.capacity-table {
  min-width: 1240px;
}

.capacity-table td:first-child .cell-primary {
  max-width: 170px;
}

.capacity-status-copy {
  display: block;
  max-width: 250px;
  margin-top: 5px;
  color: #777d89;
  font-size: 9px;
  line-height: 1.4;
}

.capacity-startup-cell .button {
  min-width: 68px;
}

.capacity-startup-copy {
  display: block;
  min-width: 92px;
  margin-top: 5px;
  color: #777d89;
  font-size: 9px;
  line-height: 1.4;
}

.tenant-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid rgba(166, 140, 255, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 130%, rgba(166, 140, 255, 0.14), transparent 38%),
    rgba(21, 23, 29, 0.84);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.tenant-context-copy,
.tenant-context-meta {
  min-width: 0;
}

.worker-context-controls {
  min-width: min(100%, 390px);
}

.worker-context-controls select {
  min-width: 210px;
  min-height: 36px;
  padding: 7px 30px 7px 10px;
  color: #eef0f5;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #777d89 50%) calc(100% - 15px) 15px / 5px 5px no-repeat,
    linear-gradient(135deg, #777d89 50%, transparent 50%) calc(100% - 10px) 15px / 5px 5px no-repeat,
    rgba(8, 9, 12, 0.46);
}

.worker-context-controls select:focus {
  border-color: rgba(166, 140, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(166, 140, 255, 0.1);
}

.context-select-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.tenant-context-copy {
  display: grid;
  grid-template-columns: max-content minmax(0, auto);
  gap: 4px 12px;
  align-items: baseline;
}

.context-kicker {
  grid-column: 1 / -1;
  color: var(--violet);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tenant-context-copy strong {
  overflow: hidden;
  color: #f1effb;
  font-size: 18px;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-context-copy code {
  overflow: hidden;
  color: #858b98;
  font: 10px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-context-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.access-action-message {
  min-height: 18px;
  margin: 7px 2px -19px;
  text-align: right;
}

.context-note {
  max-width: 360px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

.workflow-stack {
  display: grid;
  gap: 12px;
}

.workflow-zone {
  min-width: 0;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.workflow-zone[open] {
  border-color: rgba(255, 255, 255, 0.125);
}

.workflow-zone > summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) max-content 12px;
  gap: 16px;
  align-items: center;
  min-height: 102px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  outline: none;
  transition: background 140ms ease;
}

.workflow-zone > summary::-webkit-details-marker {
  display: none;
}

.workflow-zone > summary:hover {
  background: rgba(255, 255, 255, 0.018);
}

.workflow-zone > summary:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(166, 140, 255, 0.52);
}

.workflow-step,
.scope-empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--violet);
  border: 1px solid rgba(166, 140, 255, 0.24);
  border-radius: 12px;
  background: rgba(166, 140, 255, 0.07);
  font: 850 11px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.workflow-heading {
  display: grid;
  min-width: 0;
}

.workflow-heading .eyebrow {
  margin-bottom: 5px;
  font-size: 9px;
}

.workflow-title {
  color: #f0f1f5;
  font-size: 19px;
  font-weight: 790;
  letter-spacing: -0.025em;
}

.workflow-description {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-count,
.scope-mode-chip {
  min-width: max-content;
  padding: 6px 9px;
  color: #aeb3bd;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.workflow-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #737986;
  border-bottom: 2px solid #737986;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 150ms ease;
}

.workflow-zone[open] .workflow-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.workflow-body {
  padding: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(8, 9, 12, 0.14);
}

.workflow-grid,
.worker-configuration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.85fr);
  gap: 12px;
  align-items: start;
}

.workflow-grid-wide {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.registry-stack,
.stacked-forms,
.worker-zone-content {
  display: grid;
  gap: 12px;
}

.registry-pane,
.configuration-panel {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.022);
}

.pane-heading,
.form-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.pane-heading .eyebrow,
.form-title-row .eyebrow {
  margin-bottom: 5px;
  font-size: 9px;
}

.pane-heading h3,
.form-title-row h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.pane-hint {
  color: #767c88;
  font-size: 9px;
  line-height: 1.4;
  text-align: right;
}

.entity-list {
  display: grid;
  gap: 8px;
  max-height: 390px;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.tenant-list {
  max-height: 450px;
}

.identity-list {
  max-height: 520px;
}

.compact-entity-list {
  max-height: 270px;
}

.entity-list > .empty-copy {
  margin: 0;
  padding: 25px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  text-align: center;
}

.entity-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  color: #c5c9d2;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(8, 9, 12, 0.28);
}

button.entity-card {
  width: 100%;
  font: inherit;
  text-align: left;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

button.entity-card:hover {
  border-color: rgba(166, 140, 255, 0.3);
  background: rgba(166, 140, 255, 0.055);
  transform: translateY(-1px);
}

button.entity-card:focus-visible {
  outline: 2px solid rgba(166, 140, 255, 0.55);
  outline-offset: 1px;
}

.tenant-card.selected {
  border-color: rgba(101, 230, 171, 0.38);
  background:
    linear-gradient(90deg, rgba(101, 230, 171, 0.075), transparent 55%),
    rgba(8, 9, 12, 0.34);
}

.entity-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.entity-card-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #e9eaf0;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-card-id,
.entity-card-detail {
  margin: 0;
  overflow: hidden;
  color: #7f8591;
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-card-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.entity-card-detail strong {
  color: #aeb3bd;
  font-weight: 700;
}

.entity-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 2px;
}

.entity-card-actions .button {
  min-height: 28px;
}

.scope-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 116px;
  padding: 22px;
  color: var(--muted);
  border: 1px dashed rgba(166, 140, 255, 0.16);
  border-radius: 14px;
  background: rgba(166, 140, 255, 0.025);
}

.scope-empty p {
  max-width: 560px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.scope-empty strong {
  display: block;
  color: #d7d4e3;
}

.scope-empty-icon {
  flex: 0 0 42px;
  opacity: 0.72;
}

.workflow-form {
  padding: 17px;
}

.workflow-form .mini-form-note {
  min-height: auto;
}

.app-user-link-registry {
  grid-column: 1 / -1;
}

.app-user-link-intro {
  margin: -4px 0 14px;
}

.app-user-link-table {
  min-width: 900px;
}

.app-user-link-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(166, 140, 255, 0.14);
  border-radius: 13px;
  background: rgba(166, 140, 255, 0.025);
}

.app-user-link-form > .form-title-row,
.app-user-link-form > label:has(textarea),
.app-user-link-form > .mini-form-note,
.app-user-link-form > .form-message {
  grid-column: 1 / -1;
}

.app-user-link-form > .form-title-row {
  margin-bottom: 0;
}

.app-user-link-form > .mini-form-note {
  margin: 0;
}

.app-user-link-form > button {
  width: max-content;
}

.app-user-link-owner-stale {
  color: var(--amber);
}

.scoped-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.scoped-metrics article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

.scoped-metrics span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.scoped-metrics strong {
  display: block;
  margin-top: 7px;
  color: #eff1f5;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.configuration-panel .surface-copy {
  margin-bottom: 17px;
}

.worker-activation-panel {
  display: grid;
  gap: 0;
}

.worker-activation-list {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  max-height: 380px;
}

.assignment-panel {
  height: 100%;
}

.scope-mode-chip {
  color: var(--violet);
  border-color: rgba(166, 140, 255, 0.2);
  background: rgba(166, 140, 255, 0.06);
}

.assignment-options {
  display: grid;
  gap: 8px;
}

.assignment-worker-field {
  margin-bottom: 12px;
}

.assignment-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  color: #a9aeb8;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 11px;
  background: rgba(8, 9, 12, 0.28);
}

.assignment-option.selected {
  border-color: rgba(101, 230, 171, 0.25);
  background: rgba(101, 230, 171, 0.045);
}

.assignment-option.unavailable {
  opacity: 0.5;
}

.assignment-option input {
  margin: 2px 0 0;
  accent-color: var(--green);
}

.assignment-option strong,
.assignment-option small {
  display: block;
}

.assignment-option strong {
  color: #e0e3e9;
  font-size: 11px;
}

.assignment-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.assignment-user-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 190px;
  margin: 12px 0 0;
  padding: 11px;
  overflow-y: auto;
  border: 1px solid rgba(166, 140, 255, 0.16);
  border-radius: 11px;
  background: rgba(166, 140, 255, 0.025);
}

.assignment-user-options legend {
  padding: 0 5px;
  color: #898f9b;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.assignment-user-option {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 8px;
  color: #b4b9c3;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 9px;
  background: rgba(8, 9, 12, 0.26);
  font-size: 10px;
}

.assignment-user-option input {
  margin: 1px 0 0;
  accent-color: var(--green);
}

.assignment-user-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-user-option small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #747a86;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-save {
  width: 100%;
  margin-top: 12px;
}

.assignment-registry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.assignment-registry-label {
  color: #777d89;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.assignment-registry strong {
  color: #c9cdd6;
  font-size: 10px;
  text-align: right;
}

.assignment-list {
  display: grid;
  gap: 6px;
  max-height: 150px;
  margin-top: 8px;
  overflow-y: auto;
}

.assignment-list .empty-copy {
  margin: 0;
  padding: 10px 3px 2px;
  font-size: 10px;
}

.assignment-record {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 9px;
  background: rgba(8, 9, 12, 0.24);
}

.assignment-record strong,
.assignment-record span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-record strong {
  color: #d9dce3;
  font-size: 10px;
}

.assignment-record span {
  color: #808692;
  font-size: 9px;
  text-align: right;
}

.worker-key-registry {
  margin-top: 0;
}

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

.mini-form {
  display: flex;
  min-width: 0;
  padding: 16px;
  flex-direction: column;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}

.mini-form h3 {
  margin: 0 0 3px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.mini-form label span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.mini-form small {
  color: #696f7b;
  font-size: 9px;
  font-weight: 650;
}

.mini-form-note {
  min-height: 42px;
  margin: auto 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.mini-form .button {
  margin-top: auto;
}

.mini-form .form-message {
  margin: 0;
}

.registry-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.registry-chip {
  padding: 7px 10px;
  color: #aeb3bd;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
  font-size: 10px;
}

.secret-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1.25fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(101, 230, 171, 0.32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 100%, rgba(101, 230, 171, 0.11), transparent 42%),
    rgba(20, 29, 27, 0.92);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
}

.secret-panel h2 {
  font-size: 20px;
}

.secret-target {
  display: inline-flex;
  margin: 8px 0 0;
  padding: 6px 9px;
  color: #07130e;
  border-radius: 999px;
  background: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.secret-target[hidden] {
  display: none;
}

.secret-panel.target-conflict {
  border-color: rgba(255, 125, 135, 0.72);
  background:
    radial-gradient(circle at 80% 100%, rgba(255, 125, 135, 0.14), transparent 42%),
    rgba(32, 22, 25, 0.96);
  box-shadow: 0 18px 54px rgba(71, 15, 23, 0.28);
}

.secret-panel.target-conflict .secret-target {
  color: #fff4f5;
  background: var(--red);
}

.secret-panel.target-conflict .secret-help {
  color: #ffc2c8;
  font-weight: 700;
}

.secret-help {
  margin: 7px 0 0;
  color: #9aa9a4;
  font-size: 11px;
}

.secret-panel code {
  padding: 13px;
  overflow-x: auto;
  color: #dff9ee;
  border: 1px solid rgba(101, 230, 171, 0.16);
  border-radius: 11px;
  background: rgba(8, 9, 12, 0.45);
  font: 11px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
  user-select: all;
  white-space: normal;
}

.secret-actions {
  display: flex;
  gap: 7px;
}

.worker-card {
  width: 100%;
  padding: 11px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.fleet-workspace.overview .worker-card {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border-radius: 13px;
}

.fleet-workspace.overview .worker-card:hover {
  transform: none;
}

.fleet-workspace.overview .worker-card.selected {
  border-color: rgba(101, 230, 171, 0.25);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.worker-card:hover {
  border-color: rgba(255, 255, 255, 0.17);
  transform: translateY(-2px);
}

.worker-card:focus-visible,
.worker-card.selected {
  border-color: rgba(166, 140, 255, 0.64);
  box-shadow:
    0 0 0 3px rgba(166, 140, 255, 0.1),
    0 18px 54px rgba(0, 0, 0, 0.22);
}

.worker-card-preview {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 11px;
  overflow: hidden;
  place-items: center;
  color: #727784;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 11px;
  background: #08090c;
}

.fleet-workspace.overview .worker-card-preview {
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.fleet-workspace.overview .worker-topline {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  align-items: end;
  padding: clamp(22px, 12%, 54px) clamp(7px, 3%, 13px) clamp(7px, 3%, 12px);
  background: linear-gradient(transparent, rgba(5, 6, 9, 0.9));
  pointer-events: none;
}

.fleet-workspace.overview .worker-order,
.fleet-workspace.overview .worker-card-session,
.fleet-workspace.overview .worker-card-facts {
  display: none;
}

.worker-session-action {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
}

.worker-session-retry {
  flex: 0 0 auto;
}

.worker-session-feedback {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-session-feedback.success {
  color: var(--green);
}

.worker-session-feedback.error {
  color: var(--red);
}

.fleet-workspace.overview .worker-session-action {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  margin: 0;
}

.fleet-workspace.overview .worker-session-retry {
  padding: 4px 6px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(7, 8, 11, 0.82);
  font-size: clamp(6px, 0.52vw, 8px);
  backdrop-filter: blur(8px);
}

.fleet-workspace.overview .worker-session-feedback {
  display: none;
}

.fleet-workspace.overview .worker-id {
  overflow: hidden;
  font-size: clamp(9px, 0.85vw, 14px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-workspace.overview .presence-pill {
  padding: 4px 6px;
  font-size: clamp(6px, 0.52vw, 8px);
}

.fleet-workspace.overview .worker-preview-live {
  top: 5px;
  right: 5px;
  padding: 3px 5px;
  font-size: 6px;
}

.fleet-workspace.overview .worker-preview-placeholder {
  padding: 5px;
  font-size: clamp(6px, 0.58vw, 9px);
  text-align: center;
}

.worker-preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.worker-preview-placeholder {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.worker-preview-live {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 4px 6px;
  color: var(--green);
  border: 1px solid rgba(101, 230, 171, 0.24);
  border-radius: 999px;
  background: rgba(7, 10, 9, 0.78);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.worker-card.online.logged-in {
  border-color: rgba(101, 230, 171, 0.25);
}

.worker-card.tab-violation {
  border-color: rgba(255, 107, 129, 0.58);
}

.presence-pill.online {
  color: var(--green);
  border-color: rgba(101, 230, 171, 0.2);
  background: rgba(101, 230, 171, 0.07);
}

.worker-order {
  margin-bottom: 4px;
  color: #727784;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.worker-id {
  margin-bottom: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.presence-pill {
  padding: 6px 9px;
  color: #8e939e;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.worker-card.online .presence-pill {
  color: var(--green);
  border-color: rgba(101, 230, 171, 0.2);
  background: rgba(101, 230, 171, 0.07);
}

.session-block {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  margin: 17px 0 15px;
  padding: 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.worker-card-session {
  min-height: 58px;
  margin: 11px 0 9px;
  padding: 10px;
}

.worker-card-facts div:nth-child(2),
.worker-card-facts div:nth-child(3),
.worker-card-facts div:nth-child(4) {
  display: none;
}

.session-mark {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #666b76;
  box-shadow: 0 0 0 5px rgba(102, 107, 118, 0.1);
}

.logged-in .session-mark {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(101, 230, 171, 0.11);
}

.logged-out .session-mark {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 125, 135, 0.1);
}

.session-status {
  margin-bottom: 3px;
  color: #f3f4f8;
  font-size: 13px;
  font-weight: 750;
}

.detected-account {
  margin-bottom: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-facts {
  display: grid;
  gap: 9px;
  margin: 0;
}

.worker-facts div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 8px;
  align-items: baseline;
}

.worker-facts dt,
.worker-facts dd {
  min-width: 0;
  font-size: 11px;
}

.worker-facts dt {
  color: #747985;
}

.worker-facts dd {
  margin: 0;
  overflow: hidden;
  color: #c2c6cf;
  font-variant-numeric: tabular-nums;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loading-card {
  grid-column: 1 / -1;
  padding: 42px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1280px) {
  .worker-grid {
    grid-template-columns: 1fr;
  }

  .fleet-workspace {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  }

  .selected-worker-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .secret-panel {
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.5fr);
  }

  .secret-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .fleet-workspace {
    grid-template-columns: 1fr;
  }

  .worker-rail,
  .worker-viewer {
    position: static;
  }

  .worker-rail {
    max-height: 390px;
  }

  .worker-stage-preview {
    height: auto;
  }

  .split-layout,
  .jobs-lower-grid,
  .workflow-grid,
  .workflow-grid-wide,
  .worker-configuration-grid {
    grid-template-columns: 1fr;
  }

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

  .jobs-heading {
    display: block;
  }

  .jobs-controls {
    margin-top: 14px;
  }

  .jobs-controls {
    justify-items: start;
  }

  .jobs-controls .toolbar {
    margin-top: 0;
  }

  .job-reset-content {
    grid-template-columns: 1fr;
  }

  .job-reset-actions {
    justify-content: flex-start;
  }

  .job-detail-meta,
  .job-detail-grid {
    grid-template-columns: 1fr;
  }

  .incident-detail-layout {
    grid-template-columns: 1fr;
  }

  .incident-timeline {
    max-height: 520px;
  }

  .job-detail-section.wide {
    grid-column: auto;
  }

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

  .app-user-link-form > * {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 1660px);
    padding-top: 30px;
  }

  .masthead,
  .section-heading {
    display: block;
  }

  .fleet-heading-status {
    justify-items: start;
    margin-top: 10px;
    text-align: left;
  }

  .fleet-heading-actions {
    align-items: start;
    justify-content: flex-start;
    margin-top: 12px;
  }

  .worker-viewer-actions {
    display: grid;
  }

  .worker-desktop-message {
    margin-left: 0;
  }

  .worker-stage-preview {
    height: auto;
  }

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

  .capacity-heading-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .header-controls {
    justify-items: start;
  }

  .unlock-control {
    width: 100%;
  }

  .unlock-control input {
    width: auto;
    flex: 1;
  }

  .primary-nav {
    display: flex;
    overflow-x: auto;
  }

  .nav-pill {
    flex: 0 0 auto;
  }

  .live-state {
    margin-top: 22px;
  }

  .tenant-context,
  .tenant-context-meta {
    align-items: flex-start;
  }

  .tenant-context {
    display: grid;
  }

  .tenant-context-meta {
    justify-content: space-between;
  }

  .worker-context-controls {
    min-width: 0;
  }

  .worker-context-controls select {
    width: 100%;
    min-width: 0;
  }

  .context-note {
    text-align: left;
  }

  .workflow-zone > summary {
    grid-template-columns: 38px minmax(0, 1fr) 10px;
    gap: 12px;
    padding: 17px;
  }

  .workflow-step {
    width: 38px;
    height: 38px;
  }

  .workflow-count {
    grid-column: 2;
    width: max-content;
    margin-top: -4px;
  }

  .workflow-chevron {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .workflow-description {
    white-space: normal;
  }

  .workflow-body {
    padding: 14px;
  }

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

  .form-grid,
  .integration-forms,
  .secret-panel,
  .parameters-form-grid {
    grid-template-columns: 1fr;
  }

  .parameters-wide-field {
    grid-column: auto;
  }

  .parameters-save-row {
    display: grid;
  }

  .parameters-save-row .button {
    width: 100%;
  }

  .job-prompt-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .job-prompt-actions .button {
    width: 100%;
  }

  .secret-actions {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .secret-panel code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .toolbar {
    display: grid;
    width: 100%;
  }

  .toolbar select {
    width: 100%;
  }

  .job-filter-input {
    flex-basis: 100%;
  }

  .job-filter-group {
    min-width: 150px;
  }

  .tenant-context-copy {
    grid-template-columns: 1fr;
  }

  .tenant-context-copy code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .tenant-context-meta,
  .pane-heading,
  .form-title-row,
  .assignment-registry {
    display: grid;
  }

  .pane-hint,
  .assignment-registry strong {
    text-align: left;
  }

  .scoped-metrics {
    grid-template-columns: 1fr;
  }

  .assignment-user-options {
    grid-template-columns: 1fr;
  }

  .updated {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .worker-card,
  .button,
  .nav-pill {
    transition: none;
  }

  .incident-stream-state.live > span:first-child {
    animation: none;
  }
}
