:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18283f;
  background: #f3f6fb;
  font-synthesis: none;
  --ink: #18283f;
  --muted: #617189;
  --line: #dae3ee;
  --blue: #2764d8;
  --navy: #163957;
  --red: #b93849;
  --amber: #ad6a12;
  --green: #28715e;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(100%, 420px);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 40px #1639570d;
}
.login-card h1 { margin: 20px 0 8px; }
.login-card form { display: grid; gap: 12px; margin-top: 28px; }
.login-card label { font-weight: 600; }
.login-card input { width: 100%; }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: #fff;
  color: var(--navy);
  border-color: #c7d3e3;
}
.icon-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 24px;
  padding: 2px 10px;
}
input,
select {
  border: 1px solid #becddd;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  border-radius: 5px;
  min-width: 0;
}
input[type="checkbox"] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
svg [tabindex]:focus-visible {
  outline: 3px solid #77a5fa;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -1px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
}
p {
  color: var(--muted);
  line-height: 1.6;
}
label {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.masthead {
  height: 76px;
  background: var(--navy);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  border-bottom: 4px solid #3878cf;
}
.brand {
  color: #fff;
  text-decoration: none;
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 17px;
}
.brand strong {
  border-left: 1px solid #628099;
  margin-left: 13px;
  padding-left: 16px;
  font-weight: 500;
}
.brand-mark {
  font-size: 33px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  width: 32px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-actions .quiet {
  color: #c2d3e3;
  font-size: 12px;
}
.header-actions .secondary {
  background: #264b6a;
  border-color: #5b7690;
  color: #fff;
}
main {
  max-width: 1800px;
  margin: auto;
  padding: 30px 32px;
}
.page-heading,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.page-heading {
  margin-bottom: 23px;
}
.page-heading p {
  margin-top: 8px;
}
.refresh-controls {
  display: flex;
  gap: 14px;
  align-items: flex-end;
}
.checkbox-label {
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
  height: 40px;
  gap: 6px;
}
.quiet {
  color: var(--muted);
}
.status {
  border-radius: 5px;
  line-height: 1.6;
}
.status:not(:empty) {
  background: #e8effd;
  color: #244675;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.status.error {
  background: #fbeef0;
  color: var(--red);
}
.region-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.region {
  min-width: 0;
  padding: 17px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.region:last-child {
  border-right: 0;
}
.region.disabled {
  background: #f5f7fa;
  opacity: 0.72;
}
.region-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.region label {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.region-url {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 7px 0 15px;
  white-space: nowrap;
}
.dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 100%;
  background: var(--green);
  flex-shrink: 0;
}
.dot.offline {
  background: var(--red);
}
.region-metric {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.7px;
}
.region-metric small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 6px;
}
.region-sub {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.region-error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.scope-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  padding: 12px 1px;
}
.summary-strip {
  display: flex;
  margin: 9px 0 25px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  gap: 0;
}
.summary-item {
  padding: 0 32px;
  border-right: 1px solid var(--line);
  flex: 1;
}
.summary-item:first-child {
  padding-left: 0;
}
.summary-item:last-child {
  border: 0;
}
.summary-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
}
.summary-value {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.summary-foot {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.trend-section,
.api-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 22px;
}
.section-heading p {
  font-size: 12px;
  margin-top: 6px;
}
.chart-container {
  margin-top: 14px;
  min-height: 190px;
}
.chart-svg {
  width: 100%;
  display: block;
  overflow: visible;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 10px 0;
  font-size: 11px;
  color: var(--muted);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-swatch {
  width: 18px;
  height: 3px;
  border-radius: 4px;
}
.chart-empty {
  height: 175px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f9fbfd;
  border: 1px dashed var(--line);
  border-radius: 5px;
  padding: 20px;
  text-align: center;
}
.count-badge {
  font-weight: 500;
  color: var(--muted);
  background: #eef3fa;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 13px;
  margin-left: 5px;
}
.explorer-controls {
  display: flex;
  gap: 14px;
  padding: 20px 0;
}
.search-label {
  flex: 1;
  min-width: 180px;
}
.explorer-controls select {
  min-width: 155px;
}
.matrix-scroll {
  overflow-x: auto;
  margin: 0 -24px;
}
.route-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.route-table th {
  background: #edf3fa;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #465c77;
  padding: 12px 14px;
  font-weight: 600;
  white-space: nowrap;
}
.route-table th:first-child {
  padding-left: 24px;
  min-width: 320px;
}
.route-table th small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  margin-top: 4px;
}
.route-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e7edf5;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.route-table td:first-child {
  padding-left: 24px;
}
.route-table tbody tr:last-child td {
  border-bottom: 0;
}
.route-row:hover {
  background: #fafcff;
}
.route-row.expanded {
  background: #edf4ff;
}
.route-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: none;
  color: var(--ink);
  padding: 2px 0;
  text-align: left;
  white-space: normal;
  width: 100%;
}
.route-path {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.chevron {
  font-size: 18px;
  line-height: 1;
  min-width: 12px;
  color: var(--muted);
}
.method {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.2px;
  font-weight: 700;
  padding: 4px 5px;
  border-radius: 3px;
  background: #e3edf9;
  color: #275b9d;
  min-width: 39px;
  text-align: center;
  flex-shrink: 0;
}
.method.post {
  color: #42734b;
  background: #e8f2e7;
}
.method.delete {
  color: #a73d4a;
  background: #fae8eb;
}
.method.put,
.method.patch {
  color: #86651e;
  background: #faf1d9;
}
.metric-button {
  display: block;
  background: #e9f2fe;
  color: #1e4e8c;
  border: 0;
  padding: 7px 9px;
  width: 100%;
  text-align: right;
  min-width: 83px;
  font-variant-numeric: tabular-nums;
}
.metric-button.warm {
  background: #fff0d9;
  color: #8a5710;
}
.metric-button.hot {
  background: #fbe7e9;
  color: #a52d3d;
}
.metric-button small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  margin-top: 3px;
  opacity: 0.8;
}
.na {
  display: block;
  text-align: center;
  color: #8797aa;
}
.error-count {
  color: var(--red);
  font-weight: 600;
}
.detail-row > td {
  padding: 0 !important;
  background: #f6f9fd;
}
.route-detail {
  padding: 23px 24px;
  border-left: 4px solid var(--blue);
}
.detail-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.detail-heading h3 {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.detail-heading select {
  max-width: 350px;
}
.detail-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  margin: 18px 0;
}
.detail-block {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  min-width: 0;
}
.detail-block h3 {
  margin-bottom: 12px;
}
.detail-block .chart-container {
  min-height: 170px;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
.data-table th {
  font-size: 10px;
  padding: 9px 10px !important;
  background: #edf3fa;
  white-space: nowrap;
}
.data-table td {
  padding: 10px !important;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.data-table .operation {
  max-width: 260px;
  min-width: 180px;
}
.data-table small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.table-scroll {
  overflow-x: auto;
}
.warning {
  background: #fff5e5;
  color: #81551b;
  font-size: 12px;
  line-height: 1.6;
  padding: 11px 14px;
  border-left: 3px solid #dca449;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.error-panel {
  color: var(--red);
  background: #fbeef0;
  padding: 16px;
  border-radius: 5px;
  line-height: 1.6;
}
.loading {
  padding: 28px;
  color: var(--muted);
}
.empty-inline {
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
}
.request-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.request-controls label {
  font-size: 11px;
}
.request-controls input {
  max-width: 220px;
}
.request-controls input[type="number"] {
  max-width: 120px;
}
.request-controls select,
.request-controls input,
.request-controls button {
  font-size: 12px;
  padding: 8px 9px;
}
.request-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  max-width: 225px;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: normal;
}
.request-button:hover {
  text-decoration: underline;
}
.request-row.active {
  background: #edf4ff;
}
.status-code {
  display: inline-block;
  background: #e6f2ed;
  color: #25634f;
  padding: 3px 5px;
  border-radius: 3px;
}
.status-code.bad {
  background: #fbe7e9;
  color: #a52d3d;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  padding-top: 15px;
}
.pagination div {
  display: flex;
  gap: 8px;
}
.pagination button {
  padding: 6px 10px;
  font-size: 11px;
}
.request-trace {
  margin-top: 18px;
  border-top: 2px solid #acc4e7;
  padding-top: 20px;
}
.trace-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 16px;
  margin: 18px 0;
  background: #fff;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.trace-meta dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.trace-meta dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.trace-legend {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 8px 0 14px;
}
.waterfall-axis {
  display: grid;
  grid-template-columns: minmax(220px, 30%) 1fr 90px;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
  padding: 10px 12px;
}
.axis-range {
  display: flex;
  justify-content: space-between;
}
.span-details {
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #fff;
}
.span-details:last-child {
  border-bottom: 1px solid var(--line);
}
.span-details summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(220px, 30%) 1fr 90px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
}
.span-details summary::-webkit-details-marker {
  display: none;
}
.span-details[open] summary {
  background: #edf3fa;
}
.span-name {
  min-width: 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.span-name small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.span-track {
  height: 19px;
  background: repeating-linear-gradient(
    to right,
    #f5f8fc 0,
    #f5f8fc calc(25% - 1px),
    #dde6f1 calc(25% - 1px),
    #dde6f1 25%
  );
  position: relative;
  border-radius: 3px;
}
.span-bar {
  position: absolute;
  top: 4px;
  height: 11px;
  background: #4282d8;
  border-radius: 2px;
  min-width: 2px;
  max-width: 100%;
}
.span-bar.failed {
  background: #c05b66;
}
.span-duration {
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.span-content {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}
.span-content dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.span-content dt {
  font-size: 10px;
  color: var(--muted);
}
.span-content dd {
  margin: 5px 0 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #eef3f9;
  padding: 15px;
  border-radius: 5px;
  font:
    11px/1.7 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  max-height: 420px;
  overflow: auto;
}
details summary {
  cursor: pointer;
}
.query-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}
.query-heading button {
  font-size: 11px;
  padding: 6px 9px;
}
.trace-close {
  font-size: 12px;
}
.histogram-row {
  display: grid;
  grid-template-columns: 82px 1fr 48px;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  font-size: 11px;
}
.histogram-track {
  height: 15px;
  background: #edf3fa;
  border-radius: 2px;
}
.histogram-fill {
  height: 100%;
  background: #6798dd;
  border-radius: 2px;
}
.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
footer {
  font-size: 11px;
  color: var(--muted);
  max-width: 1000px;
  line-height: 1.8;
  padding: 0 1px 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 760px;
  width: calc(100% - 32px);
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 16px 80px #16395730;
}
dialog::backdrop {
  background: #142b4666;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}
.dialog-heading p {
  font-size: 12px;
  max-width: 550px;
  margin-top: 8px;
}
.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.region-input-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 10px;
  margin: 13px 0;
  align-items: end;
}
.region-input-row .icon-button {
  height: 38px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}
.error-text {
  color: var(--red);
  font-size: 12px;
  margin-top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .route-table th:first-child {
    min-width: 390px;
  }
  .route-path {
    font-size: 12px;
  }
}
@media (max-width: 1050px) {
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .refresh-controls {
    width: 100%;
  }
  .summary-item {
    padding: 0 17px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .explorer-controls {
    flex-wrap: wrap;
  }
  .search-label {
    flex-basis: 100%;
  }
  .region-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .header-actions .quiet {
    display: none;
  }
}
@media (max-width: 650px) {
  main {
    padding: 22px 14px;
  }
  .masthead {
    padding: 0 16px;
    height: 65px;
  }
  .brand {
    font-size: 14px;
    gap: 5px;
  }
  .brand strong {
    padding-left: 8px;
    margin-left: 8px;
  }
  .brand-mark {
    font-size: 27px;
  }
  .masthead button {
    font-size: 11px;
    padding: 8px;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .refresh-controls {
    gap: 9px;
    flex-wrap: wrap;
  }
  .region-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .region {
    padding: 13px 12px;
  }
  .summary-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .summary-item,
  .summary-item:first-child {
    padding: 0 12px;
    border: 0;
  }
  .summary-value {
    font-size: 22px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .trend-section,
  .api-section {
    padding: 18px 14px;
  }
  .matrix-scroll {
    margin: 0 -14px;
  }
  .explorer-controls {
    gap: 9px;
  }
  .explorer-controls label {
    flex: 1;
  }
  .explorer-controls select {
    min-width: 130px;
  }
  .route-detail {
    padding: 16px 14px;
  }
  .detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .span-details summary,
  .waterfall-axis {
    grid-template-columns: minmax(120px, 42%) 1fr 60px;
    gap: 8px;
  }
  .span-duration {
    font-size: 10px;
  }
  .span-name {
    font-size: 10px;
  }
  .credentials {
    grid-template-columns: 1fr;
  }
  .region-input-row {
    grid-template-columns: 1fr auto;
  }
  .region-input-row label:first-child {
    grid-column: 1/-1;
  }
  .dialog-heading h2 {
    font-size: 18px;
  }
  .chart-legend {
    gap: 9px;
  }
  .pagination {
    gap: 12px;
    align-items: flex-start;
  }
  .overview-chart {
    min-height: 160px;
  }
}

.process-info {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.process-info:first-of-type {
  margin-top: 8px;
}
.region > details {
  max-height: 280px;
  overflow: auto;
}
.region > details > summary {
  padding: 4px 0;
  line-height: 1.5;
}

.route-detail {
  max-width: calc(100vw - 66px);
}
@media (max-width: 650px) {
  .route-detail {
    max-width: calc(100vw - 32px);
  }
}

/* Product-page navigation keeps investigation context visible. */
:root {
  --ink: #20344b;
  --muted: #586c82;
  --line: #d7e0ea;
  --blue: #245cb8;
  --navy: #173b59;
  background: #f6f8fb;
}
[hidden] {
  display: none !important;
}
body {
  font-variant-numeric: tabular-nums;
}
.masthead {
  height: 64px;
  border-bottom: 0;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.workspace {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  padding: 26px 14px;
  background: #edf2f7;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.nav-heading {
  color: var(--muted);
  font-size: 12px;
  padding: 0 10px 14px;
  font-weight: 600;
}
#page-nav {
  display: grid;
  gap: 3px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  border-radius: 5px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 500;
  white-space: normal;
}
.nav-item.active {
  background: #d9e6f8;
  color: #174889;
  box-shadow: inset 3px 0 #245cb8;
  font-weight: 650;
}
.nav-item:nth-last-child(3) {
  margin-top: 18px;
}
.sidebar-note {
  margin-top: auto;
  padding: 30px 10px 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 11px;
}
main {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 28px;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.6px;
}
.page-heading {
  align-items: flex-start;
}
.page-heading p {
  max-width: 65ch;
}
.region-strip {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  border-radius: 5px;
}
.region {
  padding: 12px 13px;
}
.region-url {
  margin: 7px 0;
}
.region-metric {
  font-size: 22px;
}
.region > details {
  font-size: 11px;
}
.scope-note {
  font-size: 12px;
  line-height: 1.65;
}
.summary-strip {
  background: transparent;
  border: 0;
}
.trend-section,
.api-section {
  border-radius: 6px;
}
.chart-container {
  min-width: 0;
}
.chart-svg {
  width: 100%;
  min-height: 220px;
}
.chart-legend {
  max-height: 176px;
  overflow: auto;
  margin-top: 12px;
  padding: 4px;
  gap: 6px;
}
.chart-legend .legend-item {
  font: inherit;
  font-size: 11px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: left;
}
.chart-legend .legend-item[aria-pressed="false"] {
  opacity: 0.42;
  text-decoration: line-through;
}
.chart-legend-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  font-size: 12px;
}
.chart-legend-heading input {
  width: 235px;
  font-size: 12px;
}
.evidence-section {
  margin: 24px 0;
}
.evidence-section > .section-heading {
  margin-bottom: 15px;
}
.evidence-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 14px 0;
  padding: 18px 20px;
  overflow: hidden;
}
.evidence-block > p {
  font-size: 12px;
  margin: 6px 0 14px;
  max-width: 100ch;
}
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow: auto;
}
.table-scroll table {
  min-width: 620px;
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.table-scroll th {
  text-align: left;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.table-scroll td {
  padding: 11px 10px;
  border-bottom: 1px solid #e9eef4;
  vertical-align: top;
  line-height: 1.55;
  max-width: 330px;
  overflow-wrap: anywhere;
}
.table-scroll tr:last-child td {
  border-bottom: 0;
}
.table-scroll td small {
  display: block;
  color: var(--muted);
}
.table-scroll pre {
  white-space: pre-wrap;
  min-width: 240px;
  max-width: 600px;
}
.coverage-note {
  background: #edf3fa;
  border-left: 3px solid #8eaccf;
  padding: 12px 15px;
  font-size: 12px;
  line-height: 1.7;
  margin: 14px 0;
}
.coverage-note summary {
  cursor: pointer;
  font-weight: 600;
}
.coverage-note p {
  margin-top: 8px;
}
.environment-region,
.ops-region {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 16px 0;
  padding: 16px 20px;
  min-width: 0;
}
.environment-region > summary,
.ops-region > summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding-bottom: 12px;
}
.environment-region code {
  font-size: 11px;
}
.env-value {
  max-width: 480px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.env-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 150px;
}
.env-actions button {
  padding: 6px 9px;
  font-size: 11px;
}
.env-actions .quiet {
  font-size: 11px;
}
.status-pill {
  display: inline-block;
  border-radius: 3px;
  font-size: 10px;
  padding: 1px 6px;
  margin: 2px 5px;
  background: #e4f3ee;
  color: #176c52;
}
.status-pill.pending {
  background: #fff0d6;
  color: #905f15;
}
.env-dialog {
  max-width: 700px;
}
.env-dialog input {
  width: 100%;
}
.change-review {
  margin-top: 18px;
  padding: 16px;
  background: #f2f6fb;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.change-review dl {
  margin: 14px 0;
  display: grid;
  gap: 10px;
}
.change-review dl > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
}
.change-review dt {
  color: var(--muted);
  font-size: 12px;
}
.change-review dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.activity-filters {
  margin: 18px 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.activity-filters label {
  min-width: 230px;
}
.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  padding: 16px 0;
}
.metric-strip > div {
  min-width: 130px;
}
.metric-strip strong {
  display: block;
  font-size: 23px;
  padding-top: 5px;
}
.json-details {
  margin: 10px 0;
}
.json-details summary {
  cursor: pointer;
  color: #245cb8;
}
.json-details pre {
  white-space: pre-wrap;
  max-height: 500px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.route-detail {
  max-width: calc(100vw - 285px);
}
@media (min-width: 1800px) {
  main {
    padding: 30px 38px;
  }
  .workspace {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}
@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  main {
    padding: 22px;
  }
  .page-heading {
    flex-direction: column;
  }
  .refresh-controls {
    flex-wrap: wrap;
  }
  .route-detail {
    max-width: calc(100vw - 244px);
  }
}
@media (max-width: 800px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-heading,
  .sidebar-note {
    display: none;
  }
  #page-nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  .nav-item {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 9px 12px;
  }
  .nav-item:nth-last-child(3) {
    margin-top: 0;
  }
  main {
    padding: 20px 16px;
  }
  .masthead {
    padding: 0 16px;
  }
  #last-updated {
    display: none;
  }
  .brand strong {
    font-size: 14px;
    margin-left: 8px;
    padding-left: 10px;
  }
  .route-detail {
    max-width: calc(100vw - 36px);
  }
  .chart-legend-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .evidence-block {
    padding: 15px 12px;
  }
  .summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .chart-svg {
    min-height: 170px;
  }
  .change-review dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.ops-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.ops-tabs .selected {
  background: #d9e6f8;
  border-color: #245cb8;
  color: #174889;
}
.object-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  padding: 8px 0;
  margin: 8px 0;
}
.object-facts > div {
  min-width: 0;
}
.object-facts dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.object-facts dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.error-report {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.error-report > summary {
  font-size: 12px;
  line-height: 1.7;
  cursor: pointer;
  overflow-wrap: anywhere;
}
textarea {
  font: inherit;
  border: 1px solid #becddd;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  border-radius: 5px;
  resize: vertical;
  min-height: 120px;
}
textarea:focus-visible {
  outline: 3px solid #77a5fa;
  outline-offset: 3px;
}
.env-dialog textarea {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
.legend-controls {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.legend-controls button {
  font-size: 11px;
  padding: 7px 9px;
}
.evidence-api-controls {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.evidence-api-controls label {
  min-width: 240px;
  max-width: 100%;
  flex: 1;
}
.evidence-api-controls select {
  max-width: 100%;
}
.evidence-table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
  font-size: 12px;
}
.evidence-table-controls input {
  width: 300px;
  max-width: 100%;
  font-size: 12px;
}
.evidence-block > button {
  margin-top: 12px;
  padding: 7px 11px;
  font-size: 12px;
}
.evidence-block > .table-scroll {
  max-height: 440px;
  overflow: auto;
}
.evidence-block > .table-scroll th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.temporal-trace-dialog {
  width: 1400px;
  max-width: 94vw;
}
.temporal-trace-dialog .request-trace {
  min-width: 0;
}
.temporal-call > summary {
  cursor: pointer;
  white-space: nowrap;
  color: var(--blue);
}
.temporal-call > button {
  font-size: 11px;
  padding: 7px 10px;
  margin-top: 10px;
}
