.b20-business {
  --paper: var(--surface);
  --ink: var(--text);
  --line: var(--border);
  --accent: var(--primary);
  display: grid;
  gap: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink, #1f2933);
}

.b20-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.b20-header > div {
  display: grid;
  gap: 7px;
  max-width: 780px;
}

.b20-header h2,
.b20-result h3 {
  margin: 0;
}

.b20-header h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.15;
}

.b20-header p {
  margin: 0;
  color: var(--muted, #667085);
  line-height: 1.7;
}

.b20-kicker {
  color: var(--accent, #087f5b);
  font: 750 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}

.b20-local {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--accent, #087f5b) 38%, var(--line, #d7dce2));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #087f5b) 9%, var(--paper, #fff));
  color: var(--accent, #087f5b);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.b20-panel,
.b20-result {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: clamp(15px, 2.5vw, 24px);
  border: 1px solid var(--line, #d7dce2);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface, #f8fafc) 88%, transparent);
}

.b20-grid {
  display: grid;
  gap: 13px;
  min-width: 0;
}

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

.b20-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.b20-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-weight: 650;
  margin: 0;
}

.b20-field-wide {
  align-self: start;
}

.b20-field input,
.b20-field select,
.b20-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line, #d7dce2);
  border-radius: 10px;
  background: var(--paper, #fff);
  color: inherit;
  font: inherit;
  font-weight: 450;
}

.b20-field textarea {
  resize: vertical;
  min-height: 148px;
  line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.b20-field small {
  color: var(--muted, #667085);
  font-size: 12px;
  font-weight: 450;
  line-height: 1.5;
}

.b20-field input:focus-visible,
.b20-field select:focus-visible,
.b20-field textarea:focus-visible,
.b20-actions button:focus-visible,
.b20-table-wrap:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent, #087f5b) 30%, transparent);
  outline-offset: 2px;
}

.b20-note {
  margin: 0;
  padding: 11px 13px;
  border-left: 4px solid var(--accent, #087f5b);
  background: color-mix(in srgb, var(--accent, #087f5b) 7%, transparent);
  color: var(--muted, #667085);
  line-height: 1.65;
}

.b20-note[data-tone="warning"] {
  border-left-color: var(--warning);
  background: color-mix(in srgb, #f79009 10%, transparent);
  color: var(--warning);
}

.b20-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.b20-actions button {
  min-height: 44px;
  cursor: pointer;
}

.b20-actions button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.b20-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.b20-result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.b20-result-actions button {
  min-height: 38px;
  padding-inline: 11px;
}

.b20-result > pre {
  box-sizing: border-box;
  min-height: 140px;
  max-height: 480px;
  margin: 0;
  padding: 15px 16px;
  overflow: auto;
  border: 1px solid var(--line, #d7dce2);
  border-radius: 12px;
  background: var(--paper, #fff);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 500 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.b20-details {
  display: grid;
  gap: 14px;
  min-width: 0;
}

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

.b20-metrics > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line, #d7dce2);
  border-radius: 11px;
  background: var(--paper, #fff);
}

.b20-metrics dt {
  color: var(--muted, #667085);
  font-size: 12px;
}

.b20-metrics dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 750;
}

.b20-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line, #d7dce2);
  border-radius: 12px;
  background: var(--paper, #fff);
}

.b20-table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.b20-table-wrap th,
.b20-table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line, #d7dce2);
  text-align: left;
  vertical-align: top;
}

.b20-table-wrap thead th {
  position: sticky;
  top: 0;
  background: var(--surface, #f8fafc);
  font-size: 12px;
}

.b20-table-wrap tbody tr:last-child > * {
  border-bottom: 0;
}

.b20-omitted td {
  color: var(--muted, #667085);
  font-size: 12px;
  text-align: center;
}

.b20-status {
  min-height: 0;
  color: var(--muted, #667085);
  line-height: 1.55;
}

.b20-status:empty {
  display: none;
}

.b20-status[data-tone="error"],
.b20-status.error-text {
  color: var(--danger);
}

.b20-status[data-tone="success"],
.b20-status.success {
  color: var(--success);
}

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

@media (max-width: 640px) {
  .b20-business {
    gap: 14px;
  }

  .b20-header {
    display: grid;
  }

  .b20-local {
    justify-self: start;
  }

  .b20-grid-two,
  .b20-grid-three,
  .b20-metrics {
    grid-template-columns: 1fr;
  }

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

  .b20-actions > button {
    width: 100%;
  }

  .b20-actions > button:only-child,
  .b20-actions > :first-child:nth-last-child(n + 3) {
    grid-column: 1 / -1;
  }

  .b20-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .b20-result-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .b20-result-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b20-business *,
  .b20-business *::before,
  .b20-business *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
