body.dark-mode .api-workbench {
  padding: 24px 0 48px;
  color: var(--kronix-text);
}

body.dark-mode .api-workbench-shell {
  width: min(1480px, calc(100% - 56px));
  margin: 0 auto;
}

body.dark-mode .api-workbench-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--kronix-border);
}

body.dark-mode .api-workbench-kicker,
body.dark-mode .api-workbench-overline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9aa6b9 !important;
  font-family: 'IBM Plex Mono', Consolas, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .8px;
}

body.dark-mode .api-workbench-kicker > span {
  width: 6px;
  height: 6px;
  background: var(--kronix-accent);
}

body.dark-mode .api-workbench-kicker i { color: #536078 !important; font-style: normal; }

body.dark-mode .api-workbench-heading h1 {
  margin: 9px 0 5px;
  color: var(--kronix-text) !important;
  font-size: 28px;
  font-weight: 750;
}

body.dark-mode .api-workbench-heading p {
  margin: 0;
  color: var(--kronix-muted) !important;
  font-size: 12px;
}

body.dark-mode .api-workbench-actions { display: flex; gap: 8px; }

body.dark-mode .api-workbench-quiet-button,
body.dark-mode .api-workbench-icon-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #30394a;
  border-radius: 5px;
  background: #0e1218;
  color: #c0cada !important;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

body.dark-mode .api-workbench-quiet-button:hover,
body.dark-mode .api-workbench-icon-button:hover { border-color: var(--kronix-blue); color: #fff !important; }
body.dark-mode .api-workbench-quiet-button .material-icons-outlined,
body.dark-mode .api-workbench-icon-button .material-icons-outlined { font-size: 16px; }

body.dark-mode .api-workbench-route {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  padding: 0 12px;
  border: 1px solid #27303c;
  background: #0b0f15;
}

body.dark-mode .api-workbench-method {
  padding: 5px 7px;
  background: rgba(67, 216, 165, .1);
  color: var(--kronix-live) !important;
  font-family: 'IBM Plex Mono', Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

body.dark-mode .api-workbench-route code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: #cbd7eb !important;
  font-family: 'IBM Plex Mono', Consolas, monospace;
  font-size: 12px;
}

body.dark-mode .api-workbench-icon-button { width: 34px; min-height: 34px; padding: 0; }

body.dark-mode .api-workbench-grid {
  display: grid;
  grid-template-columns: minmax(310px, .86fr) minmax(0, 1.14fr);
  align-items: stretch;
  gap: 14px;
}

body.dark-mode .api-workbench-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid #27303c;
  background: #0e1218;
}

body.dark-mode .api-workbench-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

body.dark-mode .api-workbench-panel-heading h2 {
  margin: 6px 0 0;
  color: var(--kronix-text) !important;
  font-size: 15px;
  font-weight: 700;
}

body.dark-mode .api-workbench-format {
  padding: 5px 7px;
  border: 1px solid #30394a;
  color: #95a3bb !important;
  font-family: 'IBM Plex Mono', Consolas, monospace;
  font-size: 9px;
}

body.dark-mode .api-workbench-parameters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.dark-mode .api-parameter-field,
body.dark-mode .api-workbench-key-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

body.dark-mode .api-parameter-field.api-parameter-wide { grid-column: 1 / -1; }

body.dark-mode .api-parameter-field label,
body.dark-mode .api-workbench-key-field > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #b0bacb !important;
  font-family: 'IBM Plex Mono', Consolas, monospace;
  font-size: 10px;
}

body.dark-mode .api-parameter-field label span,
body.dark-mode .api-workbench-key-field > label span {
  color: #70809a !important;
  font-size: 8px;
}

body.dark-mode .api-parameter-field input,
body.dark-mode .api-workbench-key-input input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #30394a;
  border-radius: 4px;
  outline: none;
  background: #080b10;
  color: #e7edf5 !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
}

body.dark-mode .api-parameter-field input:focus,
body.dark-mode .api-workbench-key-input input:focus { border-color: var(--kronix-blue); box-shadow: 0 0 0 2px rgba(99, 143, 255, .12); }
body.dark-mode .api-parameter-field input::placeholder,
body.dark-mode .api-workbench-key-input input::placeholder { color: #647187 !important; }
body.dark-mode .api-workbench-key-field { margin-top: 16px; }

body.dark-mode .api-workbench-key-input { display: flex; min-width: 0; }

body.dark-mode .api-workbench-key-input input {
  border-radius: 4px 0 0 4px;
  font-family: 'IBM Plex Mono', Consolas, monospace;
}

body.dark-mode .api-workbench-key-input button {
  display: grid;
  width: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #30394a;
  border-left: 0;
  border-radius: 0 4px 4px 0;
  background: #141b28;
  color: #a8b8d4 !important;
}

body.dark-mode .api-workbench-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #252d39;
}

body.dark-mode .api-workbench-submit-row p {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 0;
  color: #7f8b9f !important;
  font-size: 10px;
  line-height: 1.5;
}

body.dark-mode .api-workbench-submit-row p .material-icons-outlined { flex: 0 0 auto; font-size: 13px; }

body.dark-mode .api-workbench-run {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #22c894;
  border-radius: 4px;
  background: var(--kronix-live);
  color: #06130f !important;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

body.dark-mode .api-workbench-run:hover { background: #63e9bb; }
body.dark-mode .api-workbench-run:disabled { opacity: .65; cursor: wait; }
body.dark-mode .api-workbench-run .material-icons-outlined { font-size: 17px; }

body.dark-mode .api-response-panel { display: flex; flex-direction: column; }
body.dark-mode .api-response-heading { align-items: center; }

body.dark-mode .api-response-status {
  padding: 5px 8px;
  border: 1px solid #30394a;
  color: #8d9bb2 !important;
  font-family: 'IBM Plex Mono', Consolas, monospace;
  font-size: 9px;
}

body.dark-mode .api-response-status[data-state="success"] { border-color: rgba(67, 216, 165, .35); color: var(--kronix-live) !important; }
body.dark-mode .api-response-status[data-state="error"] { border-color: rgba(233, 75, 89, .4); color: var(--kronix-accent-strong) !important; }
body.dark-mode .api-response-status[data-state="loading"] { border-color: rgba(99, 143, 255, .4); color: #91adff !important; }

body.dark-mode .api-response-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #252d39;
  background: #0a0d12;
  color: #7f8b9f !important;
  font-family: 'IBM Plex Mono', Consolas, monospace;
  font-size: 9px;
}

body.dark-mode .api-response-code {
  height: min(52vh, 520px);
  min-height: 280px;
  max-height: 520px;
  flex: 0 1 auto;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid #252d39;
  border-top: 0;
  background: #080b10;
  color: #c7d4ee !important;
  font-family: 'IBM Plex Mono', Consolas, monospace;
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #3c4b63 #0b0e14;
}

body.dark-mode .api-response-code code { color: inherit !important; font-family: inherit; }

body.dark-mode .api-response-download {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #92adff !important;
  font-size: 11px;
  text-decoration: none;
}

body.dark-mode .api-response-download:hover { color: #c4d2ff !important; }
body.dark-mode .api-response-download .material-icons-outlined { font-size: 16px; }

@media (max-width: 900px) {
  body.dark-mode .api-workbench-shell { width: calc(100% - 32px); }
  body.dark-mode .api-workbench-grid { grid-template-columns: minmax(0, 1fr); }
  body.dark-mode .api-response-code { height: min(48vh, 360px); min-height: 200px; max-height: 360px; }
}

@media (max-width: 600px) {
  body.dark-mode .api-workbench { padding-top: 16px; }
  body.dark-mode .api-workbench-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  body.dark-mode .api-workbench-heading h1 { font-size: 23px; }
  body.dark-mode .api-workbench-actions { width: 100%; }
  body.dark-mode .api-workbench-quiet-button { flex: 1; }
  body.dark-mode .api-workbench-panel { padding: 13px; }
  body.dark-mode .api-workbench-parameters { grid-template-columns: minmax(0, 1fr); }
  body.dark-mode .api-parameter-field.api-parameter-wide { grid-column: auto; }
  body.dark-mode .api-workbench-submit-row { align-items: stretch; flex-direction: column; }
  body.dark-mode .api-workbench-run { width: 100%; }
  body.dark-mode .api-workbench-route { gap: 8px; padding: 0 8px; }
  body.dark-mode .api-workbench-route code { font-size: 10px; }
}