:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  --surface: #1c1e20;
  --raised: #242729;
  --line: #363a3d;
  --muted: #a4abae;
  --text: #e4e8e9;
  --accent: #54d4bb;
  color: var(--text);
  background: #161819;
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
  letter-spacing: 0;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button, input, textarea, select {
  font: inherit;
  letter-spacing: 0;
}
button, a, input, select, textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button, a {
  color: inherit;
}
a {
  text-decoration: none;
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.7;
}
[hidden] {
  display: none !important;
}
h1, h2, h3, p {
  margin: 0;
}
h1 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 500;
}
.muted, small {
  color: #778079;
}
.sidebar {
  position: relative;
  max-width: 1360px;
  margin: auto;
  background: #fff;
  border-bottom: 1px solid #dfe3e7;
  padding: 28px 24px 0;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0 180px 8px;
  font-size: 26px;
}
.brand svg {
  width: 27px;
  height: 27px;
  color: #16805b;
}
.workspace-label {
  font-size: 12px;
  color: #737982;
  text-align: center;
  padding-bottom: 24px;
}
.sidebar nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
}
.nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 12px 15px;
  text-align: left;
  border-radius: 4px;
  margin-bottom: 0;
  color: #606873;
}
.nav:hover {
  background: #f2f4f6;
}
.nav.active {
  background: #eaf5f1;
  color: #146843;
  font-weight: 600;
  box-shadow: inset 0 -2px #16805b;
}
.count {
  margin-left: auto;
  font-size: 11px;
}
.sidebar-bottom {
  position: absolute;
  top: 30px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
}
.sidebar-bottom a, .sidebar-bottom button {
  display: flex;
  align-items: center;
  gap: 11px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-size: 13px;
  color: #69746a;
}
.sidebar-bottom small {
  font-size: 10px;
}
main {
  max-width: 1360px;
  margin: auto;
  min-width: 0;
}
.topbar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid #eceef0;
  gap: 16px;
}
.breadcrumb {
  color: #929b92;
  font-size: 12px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #657167;
}
.connection > span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #879087;
}
.connection > span:first-child.online {
  background: #16805b;
}
.view {
  padding: 24px;
  min-width: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head p {
  font-size: 11px;
  margin-top: 5px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  padding: 0;
  flex: 0 0 34px;
}
.icon:hover {
  border-color: #cfd8d0;
  background: #f1f5f1;
}
.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  padding: 9px 14px;
  min-height: 39px;
  border: 1px solid #137754;
  white-space: normal;
  font-weight: 500;
}
.primary {
  background: #177951;
  color: #fff;
}
.primary:hover {
  background: #10633f;
}
.secondary {
  border-color: #d5ddd5;
  background: #fff;
  color: #48564a;
}
.secondary:hover {
  background: #f3f6f3;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #526054;
  font-size: 12px;
}
input, textarea, select {
  min-width: 0;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #d5dcd5;
  border-radius: 4px;
  background: #fff;
  color: #243128;
  outline: 0;
  font-size: 13px;
}
input:focus, textarea:focus, select:focus {
  border-color: #348363;
  box-shadow: 0 0 0 2px #e1efe6;
}
textarea {
  resize: vertical;
  min-height: 140px;
}
.workbench-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 32px;
}
.generation-controls {
  display: grid;
  gap: 19px;
  align-content: start;
  border-right: 1px solid #e2e7e2;
  padding-right: 28px;
}
.segmented {
  display: flex;
  background: #eaf0eb;
  border: 1px solid #dfe5df;
  padding: 3px;
  gap: 3px;
  border-radius: 4px;
}
.segmented button {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: none;
  padding: 8px 4px;
  color: #6f7a70;
  background: transparent;
  border-radius: 2px;
}
.segmented .selected {
  background: #fff;
  color: #186542;
  box-shadow: 0 1px 3px #19392012;
}
.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.input-action {
  display: flex;
  gap: 6px;
  align-items: center;
}
.input-action select {
  flex: 1;
}
.reference-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #526054;
}
#reference-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 8px;
}
.reference-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #e2e7e2;
}
.reference-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #edf1ec;
}
.reference-item span {
  overflow-wrap: anywhere;
  font-size: 11px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reference-item .icon {
  width: 25px;
  height: 30px;
  flex-basis: 25px;
}
.reference-item .reference-open {
  width: 48px;
  height: 48px;
  padding: 0;
  overflow: hidden;
}
.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  margin-bottom: 16px;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  align-items: start;
}
.result-item {
  border: 1px solid #dfe5df;
  border-radius: 6px;
  overflow: hidden;
  background: white;
  min-width: 0;
}
.result-item > button {
  display: block;
  background: #edf1ec;
  border: 0;
  padding: 0;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.result-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.result-item footer {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  font-size: 11px;
  color: #708074;
}
.result-item footer span {
  overflow-wrap: anywhere;
  grid-column: 1;
}
.result-item footer .icon {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  min-height: 400px;
  color: #909b90;
}
.empty svg {
  width: 38px;
  height: 38px;
  stroke-width: 1;
}
.table-scroll {
  overflow: auto;
  border-top: 1px solid #dfe6df;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  background: #f0f4f0;
  color: #7a857b;
  padding: 12px 14px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
}
td {
  padding: 16px 14px;
  border-bottom: 1px solid #e5eae5;
  vertical-align: middle;
  max-width: 240px;
  overflow-wrap: anywhere;
}
td:first-child {
  min-width: 160px;
}
td .subtext {
  display: block;
  font-size: 10px;
  color: #919991;
  margin-top: 5px;
}
.truncate {
  max-width: 230px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #edf2ed;
  color: #617164;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 11px;
  white-space: nowrap;
}
.badge.good {
  background: #e1f0e6;
  color: #18734b;
}
.badge.warn {
  background: #fff0d9;
  color: #946219;
}
.badge.bad {
  background: #fbe7e7;
  color: #af4c4c;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
  font-size: 12px;
}
.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.6;
}
.checkbox input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: #177951;
}
#mailbox-fields {
  display: grid;
  gap: 13px;
}
#mailbox-fields .pagination {
  margin-top: 0;
}
#mail-runs:not(:empty) {
  margin-bottom: 28px;
}
.run-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.run-head > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.otp-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.otp-row input {
  max-width: 140px;
}
.warning {
  font-size: 12px;
  color: #9b6a27;
  background: #fff3dd;
  padding: 10px 12px;
  border-left: 2px solid #ddb062;
}
.inline-form {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  margin-bottom: 32px;
  max-width: 700px;
}
.inline-form label {
  flex: 1;
}
.separated {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid #e0e7e0;
}
dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  font-size: 12px;
  margin: 0;
}
dt {
  color: #7a857c;
}
dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
details summary {
  cursor: pointer;
  color: #758077;
  margin-bottom: 13px;
}
details label {
  margin-bottom: 12px;
}
#notice {
  position: fixed;
  right: 26px;
  top: 77px;
  max-width: min(430px, calc(100% - 32px));
  padding: 13px 18px;
  background: #273b2d;
  color: #fff;
  border: 1px solid #45624c;
  border-radius: 4px;
  z-index: 50;
  font-size: 13px;
  box-shadow: 0 6px 20px #14251a18;
  overflow-wrap: anywhere;
}
#notice.error {
  background: #8f373d;
  border-color: #8f373d;
}
dialog {
  border: 1px solid #d6ded6;
  border-radius: 8px;
  padding: 24px;
  width: min(640px, calc(100% - 24px));
  max-height: 85vh;
  color: #29352c;
}
dialog::backdrop {
  background: #1c302359;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.dialog-head h2 {
  font-size: 18px;
}
#detail-body {
  overflow-wrap: anywhere;
}
#detail-body p {
  margin-bottom: 16px;
  font-size: 13px;
  white-space: pre-wrap;
}
#detail-body img {
  display: block;
  max-height: 50vh;
  max-width: 100%;
  margin: auto auto 20px;
}
#detail-body dl {
  margin-top: 20px;
}
#task-review-form {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
#task-review-form button {
  justify-self: start;
}
#task-review-result dl {
  margin-bottom: 20px;
}
#task-review-bind {
  margin-top: 16px;
}
.result-links {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 5px 0;
  color: #177951;
}
.table-empty {
  text-align: center;
  color: #8b958c;
  padding: 55px 15px;
}
.mobile-action {
  display: none;
}
.audit-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
}
.audit-toolbar label {
  flex: 0 0 120px;
}
#audit-status {
  margin: 20px 0;
  color: #5a665f;
}
#audit table {
  min-width: 900px;
}
#audit th, #audit td {
  white-space: nowrap;
}

@media (max-width: 760px) {
.mobile-action {
    display: inline-flex;
  }
}
pre {
  max-width: 100%;
  overflow: auto;
  background: #eff4ef;
  border: 1px solid #dce4dc;
  border-radius: 4px;
  padding: 18px;
  font-size: 12px;
}
section > p {
  margin: 14px 0;
  line-height: 1.85;
}
section > h2 {
  margin-bottom: 16px;
}
@media (min-width: 1600px) {
.view {
    max-width: 1360px;
    margin: 0 auto;
  }
.workbench-layout {
    grid-template-columns: 340px minmax(0, 1fr);
  }
}
@media (max-width: 1050px) {
.sidebar {
    padding: 24px 20px 0;
  }
.brand {
    font-size: 24px;
    gap: 8px;
  }
.sidebar nav {
    justify-content: flex-start;
  }
.nav {
    padding: 10px 12px;
  }
.view {
    padding: 25px 24px;
  }
.topbar {
    padding: 0 24px;
  }
.workbench-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
  }
.generation-controls {
    padding-right: 20px;
  }
.result-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }
}
@media (max-width: 760px) {
.sidebar {
    position: static;
    width: auto;
    padding: 17px 16px 0;
    border-bottom: 1px solid #dfe5df;
  }
.brand {
    padding: 0 0 15px;
    font-size: 22px;
  }
.workspace-label, .sidebar-bottom {
    display: none;
  }
.sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 10px;
  }
.nav {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    font-size: 12px;
    padding: 9px 10px;
    gap: 6px;
  }
.nav svg {
    width: 15px;
    height: 15px;
  }
.count {
    display: none;
  }
main {
    margin: 0;
  }
.topbar {
    height: 52px;
    padding: 0 17px;
    font-size: 12px;
  }
.breadcrumb {
    display: none;
  }
.view {
    padding: 24px 17px;
  }
.section-head {
    margin-bottom: 22px;
    align-items: flex-start;
  }
.section-head .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
.section-head h1 {
    font-size: 22px;
  }
.section-head .secondary, .section-head .primary {
    font-size: 11px;
    padding: 7px 10px;
    min-height: 34px;
  }
.workbench-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
.generation-controls {
    border-right: 0;
    padding: 0 0 28px;
    border-bottom: 1px solid #dfe5df;
  }
.generation-controls textarea {
    min-height: 110px;
  }
.result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.empty {
    min-height: 220px;
  }
.inline-form {
    flex-wrap: wrap;
  }
.inline-form label {
    flex: 1 1 140px;
  }
.inline-form button {
    flex: 1 1 100%;
  }
#notice {
    right: 16px;
    top: 16px;
  }
.section-head select {
    max-width: 130px;
  }
td {
    padding: 13px 10px;
  }
.connection .icon {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }
}
#paid-retry-options label { min-width: 0; }
#paid-retry-codes { min-height: 136px; width: 100%; }
@media (max-width: 640px) {
#paid-retry-options { grid-template-columns: minmax(0, 1fr); }
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  border-top: 1px solid #e3e6e9;
  border-bottom: 1px solid #e3e6e9;
  margin: 0 0 22px;
  gap: 1px;
}
.metric {
  padding: 16px 18px;
  min-width: 0;
}
.metric span {
  display: block;
  font-size: 12px;
  color: #68717c;
}
.metric strong {
  display: block;
  font-size: 23px;
  font-weight: 600;
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.metric.good strong { color: #177951; }
.metric.warn strong { color: #926400; }
.metric.bad strong { color: #bc3448; }
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.filter-toolbar input[type="search"] { flex: 1 1 190px; width: auto; max-width: 350px; }
.filter-toolbar select { width: auto; max-width: 240px; }
.filter-toolbar .checkbox { margin: 0; }
.filter-toolbar .secondary { font-size: 12px; min-height: 34px; padding: 7px 10px; }
.timeline { list-style: none; padding: 0; margin: 20px 0; }
.timeline li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 12px 0 12px 16px; border-left: 2px solid #c8ddd6; border-bottom: 1px solid #eceef0; }
.timeline time { color: #6a737c; font-variant-numeric: tabular-nums; }
#accounts table { min-width: 800px; }
#tasks table { min-width: 870px; }
:focus-visible { outline: 2px solid #258c83; outline-offset: 3px; }
@media (max-width: 760px) {
.metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric { padding: 12px; }
.metric strong { font-size: 21px; }
.filter-toolbar select { max-width: 100%; flex: 1 1 140px; }
.filter-toolbar input[type="search"] { max-width: none; flex-basis: 100%; }
.timeline li { grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
}
/* Shared management surfaces, matching the reference console's density. */
.sidebar, main { max-width: 1320px; }
.sidebar { background: transparent; border-color: var(--line); padding-top: 38px; }
.brand { font-size: 28px; }
.brand svg, .text-button { color: var(--accent); }
.workspace-label { padding-bottom: 28px; color: var(--muted); }
.header-status { position: absolute; top: 30px; left: 24px; display: grid; gap: 2px; }
.header-status small { font-size: 11px; padding-left: 13px; }
.connection, .sidebar-bottom a, .sidebar-bottom button, .muted, small, label, .reference-heading, dt, details summary, #audit-status, .metric span, .timeline time, .result-item footer, td .subtext, .breadcrumb { color: var(--muted); }
.connection > span:first-child.online { background: var(--accent); }
.sidebar nav { gap: 4px; }
.nav { color: var(--muted); padding: 12px; }
.nav:hover, .icon:hover, .secondary:hover { background: var(--raised); }
.nav.active { background: #223630; color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.topbar { height: 42px; border-color: var(--line); font-size: 12px; }
.view { padding-top: 22px; }
h1, .section-head h1 { font-size: 19px; }
.section-head { margin-bottom: 16px; }
.primary, .secondary { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.primary { background: #217662; border-color: #318b77; color: #fff; }
.primary:hover { background: #286b5c; }
.secondary, input, textarea, select { color: var(--text); background: var(--surface); border-color: var(--line); }
input, select { padding: 8px 10px; }
input::placeholder, textarea::placeholder { color: #858e91; opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px #54d4bb22; }
.checkbox input { accent-color: var(--accent); }
.icon:hover { border-color: var(--line); }
.segmented { background: var(--surface); border-color: var(--line); }
.segmented button { color: var(--muted); }
.segmented .selected { background: #294039; color: var(--accent); box-shadow: none; }
.generation-controls, .reference-item, .table-scroll, td, .separated, .metric-strip, .timeline li { border-color: var(--line); }
th { background: var(--raised); color: var(--muted); padding: 10px 12px; }
td { padding: 12px; }
tbody tr:hover { background: #ffffff03; }
.badge { background: #303536; color: #c2c9cc; }
.badge.good { background: #223e32; color: #7ae4aa; }
.badge.warn { background: #44391e; color: #f1ce72; }
.badge.bad { background: #492d31; color: #ffa4b0; }
.metric.good strong { color: #7ae4aa; }
.metric.warn strong { color: #f1ce72; }
.metric.bad strong { color: #ffa4b0; }
.warning { color: #f1ce72; background: #353023; border-color: #ad9251; }
.empty, .table-empty { color: var(--muted); }
.result-item, dialog { background: var(--surface); color: var(--text); border-color: var(--line); }
.result-item > button, .reference-item img { background: #111313; }
dialog::backdrop { background: #0009; }
pre { background: #141617; border-color: var(--line); }
#notice { background: #263d35; border-color: #45765f; }
#notice.error { background: #632f37; border-color: #9b535c; }
.full-row { grid-column: 1 / -1; min-width: 0; }
#mail-sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  min-width: 0;
}
#mail-sources .checkbox { min-width: 0; overflow-wrap: anywhere; }
#cleanup-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  padding: 0;
  margin: 0;
  border: 0;
}
#cleanup-fields .actions { flex-wrap: wrap; }
#cleanup-settings > .section-head { margin-bottom: 0; }
@media (max-width: 760px) {
#cleanup-fields { grid-template-columns: minmax(0, 1fr); }
}
#routing-circuits td:first-child { min-width: 130px; }
#service-check:empty { display: none; }
.quick-actions { padding: 0 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.quick-actions h2 { margin-bottom: 12px; }
.quick-actions .actions { flex-wrap: wrap; }
.metric-strip { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 12px 0; margin-bottom: 16px; }
.metric { display: flex; gap: 10px; align-items: baseline; padding: 0; }
.metric strong { font-size: 19px; margin-top: 0; }
:focus-visible { outline-color: var(--accent); }
.section-head { flex-wrap: wrap; gap: 12px; }
.section-head > div { min-width: 0; }
.actions { flex-wrap: wrap; }
button { overflow-wrap: anywhere; }
.icon { flex-shrink: 0; }
.table-scroll { scrollbar-width: thin; }
.table-scroll table { border-collapse: collapse; }
td, dd { overflow-wrap: anywhere; }
.danger { color: #ffa4b0; border-color: #79505a; }
.danger:hover { background: #492d31; }
.http-exchange { border-top: 1px solid var(--line); padding: 10px 0; }
.http-exchange summary { overflow-wrap: anywhere; cursor: pointer; }
#detail-body pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (max-width: 1050px) {
.brand { padding-inline: 180px; font-size: 25px; }
}
@media (max-width: 760px) {
.sidebar { position: relative; padding: 52px 16px 0; border-color: var(--line); }
.header-status { top: 10px; left: 17px; display: flex; align-items: center; gap: 6px; }
.header-status small { padding: 0; }
.header-status .icon { width: 28px; height: 28px; flex-basis: 28px; }
.brand { padding: 0 0 20px; font-size: 24px; }
.view { padding-top: 18px; }
.metric-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric { flex-wrap: wrap; gap: 4px 8px; }
.metric strong { font-size: 18px; }
.generation-controls { border-color: var(--line); }
.sidebar nav { justify-content: flex-start; }
}
.raw-exchange {
  max-height: 65vh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.error-diagnostic { border: 1px solid var(--line); border-left: 3px solid #d69b37; padding: 12px 14px; margin: 12px 0; border-radius: 8px; overflow-wrap: anywhere; }
.diagnostic-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.error-diagnostic dl { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 7px 12px; margin: 0; }
.error-diagnostic dt { color: var(--muted); }
.error-diagnostic dd { margin: 0; white-space: pre-wrap; }
.request-diagnostic { min-width: 220px; max-width: 350px; white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 600px) {
.error-diagnostic dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.error-diagnostic dd { margin-bottom: 8px; } }
