/* --------------------------------------------------------------------------
   Najeeb DRG — console styling.

   One light theme, stated once as custom properties. The palette is the
   product's: a near-navy ink on a cool grey field, indigo for the single
   primary action, and amber/green/red reserved for grouper verdicts so a
   colour in the results panel always means something.
   -------------------------------------------------------------------------- */

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-sunken: #f7f8fc;
  --border: #e6e9f0;
  --border-strong: #d6dbe6;

  --ink: #1b2340;
  --ink-soft: #46506b;
  --muted: #7c869e;

  --brand: #4a5bd0;
  --brand-ink: #ffffff;
  --brand-soft: #edf0fd;
  --brand-line: #ccd4f7;

  --ok: #1a8a4d;
  --ok-soft: #e7f6ed;
  --ok-line: #bfe6cd;

  --warn: #b5730b;
  --warn-soft: #fdf4e3;
  --warn-line: #f4dcae;

  --bad: #c03434;
  --bad-soft: #fdeceb;
  --bad-line: #f6c9c5;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(27, 35, 64, 0.05), 0 8px 24px -12px rgba(27, 35, 64, 0.14);
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.55 ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg[class] {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.015em;
}

/* --- top bar -------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.crumb-root {
  font-weight: 600;
  color: var(--ink-soft);
}
.crumb-here {
  font-weight: 650;
  color: var(--ink);
}
.crumb-sep {
  width: 14px;
  height: 14px;
  color: #c3cad9;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-soft);
}

.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.status[data-state='ok'] {
  background: var(--ok-soft);
  border-color: var(--ok-line);
  color: var(--ok);
}
.status[data-state='ok'] .dot {
  background: var(--ok);
}
.status[data-state='bad'] {
  background: var(--bad-soft);
  border-color: var(--bad-line);
  color: var(--bad);
}
.status[data-state='bad'] .dot {
  background: var(--bad);
}

/* --- page scaffold -------------------------------------------------------- */

.page {
  max-width: 1380px;
  margin: 0 auto;
  padding: 26px 24px 60px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.page-head h1 {
  font-size: 30px;
  font-weight: 700;
}

.page-meta {
  margin: 5px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.page-meta .sep {
  margin: 0 7px;
  opacity: 0.6;
}

.page-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.field-inline {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field-inline > span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 20px;
  align-items: start;
}

.col-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.col-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 76px;
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .col-side {
    position: static;
  }
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.12s,
    border-color 0.12s,
    box-shadow 0.12s;
}

.btn-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
}
.btn-primary:hover {
  background: #4152c4;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink-soft);
}
.btn-ghost:hover {
  background: var(--surface-sunken);
}

.btn:focus-visible,
.control:focus-visible,
.affix-opt:focus-visible,
.seg-opt:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* --- cards ---------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}

.card-head h2 {
  font-size: 15.5px;
  font-weight: 650;
}

.step {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
}

.step-quiet {
  background: var(--surface-sunken);
  border-color: var(--border);
  color: var(--muted);
}

.card-icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-soft);
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 620px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card-collapse > summary {
  cursor: pointer;
  list-style: none;
}
.card-collapse > summary::-webkit-details-marker {
  display: none;
}
.card-collapse:not([open]) > summary {
  border-bottom: 0;
}
.card-collapse > summary .help {
  margin-left: auto;
}

.grid-console {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
}
.grid-console .field-full {
  grid-column: 1 / -1;
}

/* --- fields --------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.label em {
  font-style: normal;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--muted);
}

.help {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.control {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}

.control:hover:not(:focus) {
  border-color: #c3cada;
}

.control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(74, 91, 208, 0.14);
}

.control::placeholder {
  color: #a6aec2;
}

textarea.control {
  height: auto;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 13px;
  resize: vertical;
}

select.control {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c869e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 15px;
  cursor: pointer;
}

.control-sm {
  height: 38px;
  font-size: 13.5px;
  min-width: 210px;
}

/* Number inputs are for values, not for nudging — the spinners only get in
   the way of typing an out-of-range figure on purpose. */
input[type='number'] {
  -moz-appearance: textfield;
}
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- input group: one control, unit affix inside -------------------------- */

.input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}

.input-group:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(74, 91, 208, 0.14);
}

.input-group .control {
  border: 0;
  box-shadow: none;
  background: transparent;
  flex: 1;
  min-width: 0;
}

.input-group .control:focus {
  box-shadow: none;
}

.affix {
  display: flex;
  gap: 2px;
  margin: 0 4px 0 0;
  padding: 3px;
  border-radius: 7px;
  background: var(--surface-sunken);
}

.affix-opt {
  border: 0;
  background: transparent;
  border-radius: 5px;
  padding: 4px 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.affix-opt.is-on {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(27, 35, 64, 0.1);
}

/* --- segmented control ---------------------------------------------------- */

.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  align-self: flex-start;
}

.seg-opt {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.seg-opt[aria-checked='true'] {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(27, 35, 64, 0.1);
}
.seg-opt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --- combobox ------------------------------------------------------------- */

.combo {
  position: relative;
}

.combo-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.combo-input {
  padding-left: 36px;
}

.combo-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 5px;
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px -10px rgba(27, 35, 64, 0.26);
}

.combo-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 7px;
  cursor: pointer;
}

.combo-opt[aria-selected='true'],
.combo-opt:hover {
  background: var(--brand-soft);
}

.combo-opt .code {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  flex: none;
}

.combo-opt[aria-selected='true'] .code,
.combo-opt:hover .code {
  background: var(--surface);
  border-color: var(--brand-line);
}

.combo-opt .text {
  min-width: 0;
  flex: 1;
}
.combo-opt .name {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combo-opt .meta {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.combo-opt .meta-lead {
  font-size: 13.5px;
  color: var(--ink-soft);
}
.combo-opt.is-free .name {
  font-style: italic;
  color: var(--ink-soft);
}
.combo-empty {
  padding: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.combo-empty strong {
  color: var(--ink-soft);
}

.combo-empty code {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}

/* --- chips ---------------------------------------------------------------- */

.chips {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}

.chip .code {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 650;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  flex: none;
}

.chip .text {
  flex: 1;
  min-width: 0;
}
.chip .name {
  display: block;
  font-size: 14px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip .name.is-unnamed {
  color: var(--muted);
  font-style: italic;
}
.chip .meta {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip.is-invalid {
  background: var(--bad-soft);
  border-color: var(--bad-line);
}
.chip.is-invalid .code {
  border-color: var(--bad-line);
  color: var(--bad);
}

.pill {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand);
}

.pill-warn {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  color: var(--warn);
}
.pill-bad {
  background: var(--bad-soft);
  border-color: var(--bad-line);
  color: var(--bad);
}
.pill-ok {
  background: var(--ok-soft);
  border-color: var(--ok-line);
  color: var(--ok);
}
.pill-quiet {
  background: var(--surface-sunken);
  border-color: var(--border);
  color: var(--muted);
}

/* A bordered, labelled control: the bare glyph read as decoration rather than
   as the thing that deletes the code. */
.chip-x {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.12s,
    border-color 0.12s,
    color 0.12s;
}

.chip-x svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.chip-x:hover {
  background: var(--bad-soft);
  border-color: var(--bad-line);
  color: var(--bad);
}

.chips-empty {
  font-size: 12.5px;
  color: var(--muted);
  padding: 2px 1px;
}

/* --- results panel -------------------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.panel-head h3 {
  font-size: 14px;
  font-weight: 650;
}
/* A pill in a panel heading is a status for the panel, so it sits opposite the
   title the way the count badge does. */
.panel-head .pill {
  margin-left: auto;
}
.panel-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.panel-body {
  padding: 14px 16px;
}

.panel-verdict {
  border-color: var(--brand-line);
}

.verdict-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  background: linear-gradient(120deg, #eef1fe 0%, #f6f4fd 100%);
  border-bottom: 1px solid var(--brand-line);
}

.panel-verdict[data-tone='ok'] .verdict-head {
  background: linear-gradient(120deg, #e9f7ef 0%, #f3faf5 100%);
  border-bottom-color: var(--ok-line);
}
.panel-verdict[data-tone='bad'] .verdict-head {
  background: linear-gradient(120deg, #fdeeec 0%, #fdf5f4 100%);
  border-bottom-color: var(--bad-line);
}
.panel-verdict[data-tone='ok'] {
  border-color: var(--ok-line);
}
.panel-verdict[data-tone='bad'] {
  border-color: var(--bad-line);
}

.verdict-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  flex: none;
}

.brand-badge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.panel-verdict[data-tone='ok'] .brand-badge {
  background: var(--ok);
}
.panel-verdict[data-tone='bad'] .brand-badge {
  background: var(--bad);
}

.brand-name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
}
.brand-sub {
  margin: 1px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.verdict-score {
  text-align: right;
  flex: none;
}
.score {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}
.score-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.verdict-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drg-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drg-code {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.drg-text {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0;
}
/* The MDC description is a sentence, not a figure — give it the full row. */
.facts > div:first-child {
  grid-column: 1 / -1;
}
.facts > div {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
}
.facts dt {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.facts dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  font-weight: 600;
}

/* --- weight & pricing ------------------------------------------------------
   Placeholder funding figures. The headline is the money, the grid under it is
   what the money was worked out from — so a reader can see which DRG drove the
   number rather than taking the total on trust. */

.price-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 13px;
}

.price-total {
  font-size: 27px;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.price-label {
  font-size: 12px;
  color: var(--muted);
}

/* An ungroupable episode attracts no funding: state that rather than show 0. */
.price-head[data-tone='none'] .price-total {
  color: var(--muted);
  font-size: 22px;
}

/* `.facts` gives its first cell the full row for the MDC sentence; every cell
   here is a figure of the same weight, so put them back on the grid. */
.facts-even > div:first-child {
  grid-column: auto;
}

.price-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.is-stale {
  opacity: 0.55;
  transition: opacity 0.15s;
}

/* --- result rows ---------------------------------------------------------- */

.rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.row-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}

.row-item .code {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  flex: none;
}

.row-item .text {
  flex: 1;
  min-width: 0;
}
.row-item .name {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-item .meta {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.row-item .meta-lead {
  font-size: 13px;
  color: var(--ink-soft);
}
.row-item.is-bad {
  background: var(--bad-soft);
  border-color: var(--bad-line);
}
.row-item.is-warn {
  background: var(--warn-soft);
  border-color: var(--warn-line);
}

.rows-group + .rows-group {
  margin-top: 14px;
}
.rows-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 7px;
}

.flags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.flag {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.flag-name {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.flag-value {
  font-size: 13.5px;
  font-weight: 650;
}
.flag-note {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.flag.is-warn {
  background: var(--warn-soft);
  border-color: var(--warn-line);
}
.flag.is-warn .flag-value {
  color: var(--warn);
}

/* --- misc ----------------------------------------------------------------- */

.panel-raw > summary {
  cursor: pointer;
  list-style: none;
}
.panel-raw > summary::-webkit-details-marker {
  display: none;
}
.panel-raw:not([open]) > summary {
  border-bottom: 0;
}

pre {
  margin: 0;
  padding: 12px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
  max-height: 340px;
}

.response {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.response-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot {
  margin-top: 32px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
