: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 {
  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,
.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(4, 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;
}

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

.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,
.toolbar 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);
}

.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 {
  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 {
  background: var(--green);
}

.status-pill.queued,
.status-pill.leased,
.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.queued::before,
.status-pill.leased::before,
.status-pill.running::before,
.status-pill.pending::before,
.status-pill.delivering::before {
  background: var(--amber);
}

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

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

.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%, 520px);
  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-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);
}

.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: 1280px;
}

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

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

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

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

.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-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 {
  padding: 18px;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

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

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

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

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

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

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

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

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

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

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

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