/* Opt-in sample pages; the remaining tools keep their current appearance. */
body.diagnostic-workbench {
  --ink: #10212b;
  --muted: #526873;
  --accent: #2a63ff;
  --accent-soft: #dce6ff;
  --rule: #c8d7e2;
  --rule-strong: #99adba;
  --paper: #eef4f8;
  --paper-bright: #ffffff;
  --white: #ffffff;
  --warning: #9a6a00;
  --display: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  font: 14px/1.5 var(--body);
}
.diagnostic-workbench *,
.diagnostic-workbench *::before,
.diagnostic-workbench *::after {
  box-sizing: border-box;
}
.diagnostic-workbench h1,
.diagnostic-workbench h2,
.diagnostic-workbench h3,
.diagnostic-workbench button,
.diagnostic-workbench .brand {
  font-family: var(--body);
  letter-spacing: normal;
}
.diagnostic-workbench a {
  color: var(--accent);
}
.diagnostic-workbench .site-header {
  max-width: 1320px;
  width: calc(100% - 48px);
  min-height: 60px;
  padding: 12px 0;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.diagnostic-workbench .brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}
.diagnostic-workbench .nav-links a {
  font-size: 13px;
  color: var(--muted);
}
.diagnostic-workbench .tool-shell {
  max-width: 1320px;
  width: calc(100% - 48px);
  padding: 32px 0 48px;
  margin: auto;
}
.diagnostic-workbench .workbench-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
}
.diagnostic-workbench .section-label {
  font: 600 12px/1.5 var(--mono);
  letter-spacing: 1.5px;
  color: var(--accent);
  margin: 0 0 8px;
}
.diagnostic-workbench h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 650;
}
.diagnostic-workbench .intro-lede {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.workbench-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.diagnostic-workbench .small-button,
.diagnostic-workbench .button,
.diagnostic-workbench .text-button {
  font: 600 13px/1.3 var(--body);
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}
.diagnostic-workbench .button-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.diagnostic-workbench .small-button:hover,
.diagnostic-workbench .text-button:hover {
  background: #e4edf5;
}
.diagnostic-workbench button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.diagnostic-workbench :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.diagnostic-workbench [hidden] {
  display: none !important;
}
[data-layout='workbench'] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #f8fbfd;
  margin-bottom: 20px;
}
.workbench-progress {
  font: 500 12px var(--mono);
  color: var(--muted);
  white-space: nowrap;
  padding-right: 14px;
  border-right: 1px solid var(--rule);
}
.workbench-summary {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 13px;
}
[data-layout='workbench'][data-state='passed'] .workbench-progress {
  color: #0c7a62;
}
[data-layout='workbench'][data-state='attention'] .workbench-progress {
  color: var(--warning);
}
.workbench-findings,
.workbench-export {
  flex-basis: 100%;
  min-width: 0;
}
.workbench-findings summary {
  color: var(--warning);
  cursor: pointer;
}
.workbench-export {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.workbench-export h2 {
  font-size: 18px;
  margin: 0;
}
.workbench-export p {
  color: var(--muted);
}
.workbench-export textarea {
  display: block;
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 14px;
  font: 12px/1.6 var(--mono);
  resize: vertical;
}
.workbench-export pre {
  background: var(--paper);
  max-height: 360px;
  overflow: auto;
  padding: 16px;
  font-size: 12px;
}
.workbench-export label {
  display: block;
  margin: 16px 0 8px;
}
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
/* The IP observation runs on load; it spans the row as a compact strip above the three checks. */
.diagnostic-workbench .ip-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr);
  column-gap: 32px;
  border-left: 1px solid var(--rule);
  box-shadow: none;
}
.diagnostic-workbench .ip-primary {
  min-width: 0;
}
.diagnostic-workbench .ip-footer {
  grid-column: 1 / -1;
}
.diagnostic-workbench .ip-footer .card-result {
  margin: 12px 0 0;
}
.diagnostic-workbench .diagnostic-card {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper-bright);
  box-shadow: none;
}
.diagnostic-workbench .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
.diagnostic-workbench .card-top h2 {
  font-size: 17px;
  font-weight: 650;
  margin: 0;
}
.diagnostic-workbench .check-status,
.diagnostic-workbench .quiet-status {
  font: 500 12px/1.4 var(--body);
  color: var(--muted);
  background: #e8eff4;
  padding: 4px 8px;
  border-radius: 4px;
}
.diagnostic-workbench [data-state='passed'] .check-status,
.diagnostic-workbench [data-state='passed'] .quiet-status {
  color: #0c7a62;
  background: #d9f0e9;
}
.diagnostic-workbench [data-state='failed'] .check-status,
.diagnostic-workbench [data-state='timeout'] .check-status {
  color: #9a6a00;
  background: #fff2d6;
}
.diagnostic-workbench [data-state='running'] .check-status {
  color: #2455d6;
  background: #dce6ff;
}
.card-purpose {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 14px;
}
.diagnostic-workbench .ip-value {
  display: block;
  font: 500 clamp(20px, 2.2vw, 30px)/1.25 var(--mono);
  color: var(--ink);
  overflow-wrap: anywhere;
  letter-spacing: 0;
  margin: 0 0 12px;
}
.diagnostic-workbench .ip-context {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0 24px;
  align-content: start;
  margin: 0;
}
.diagnostic-workbench .ip-context > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #dce5ed;
}
.diagnostic-workbench .ip-context dt {
  font: 12px var(--body);
  color: var(--muted);
}
.diagnostic-workbench .ip-context dd {
  font: 12px var(--mono);
  margin: 0;
  color: var(--ink);
}
.diagnostic-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 14px;
}
.diagnostic-metrics dt {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 5px;
}
.diagnostic-metrics dd {
  font: 500 22px/1.2 var(--mono);
  margin: 0;
}
.connection-stages {
  list-style: none;
  padding: 0;
  margin: 0;
}
.connection-stages li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #dce5ed;
  padding: 6px 0;
  font-size: 12px;
}
.connection-stages strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
[data-state='passed'] .connection-stages strong {
  color: #0c7a62;
}
.metric-note {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0;
}
.timeline-caption {
  font-size: 12px;
  margin: 0 0 14px;
  color: var(--muted);
}
/* An empty timeline carries no evidence; keep idle cards short. */
.diagnostic-workbench [data-state='idle'] .arrival-timeline,
.diagnostic-workbench [data-state='idle'] .timeline-axis {
  display: none;
}
.arrival-timeline {
  height: 28px;
  position: relative;
  margin: 0 5px;
  background: linear-gradient(transparent 13px, #99adba 13px, #99adba 15px, transparent 15px);
}
.arrival-dot {
  position: absolute;
  top: 9px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 2px solid var(--paper-bright);
  border-radius: 50%;
  transform: translateX(-50%);
}
.timeline-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 12px var(--mono);
  margin: 5px 0 14px;
}
.card-result {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 12px 0;
}
.diagnostic-workbench .check-controls {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
}
.workbench-evidence {
  margin-top: 12px;
  border-top: 1px solid var(--rule);
}
.workbench-evidence > summary {
  padding: 14px 0 0;
  cursor: pointer;
  color: var(--accent);
  font-size: 12px;
  min-height: 44px;
}
.evidence-values {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(0, 1.4fr);
  gap: 0;
  margin: 16px 0;
}
.evidence-values dt,
.evidence-values dd {
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #c8d7e2;
  margin: 0;
  overflow-wrap: anywhere;
}
.evidence-values dt {
  color: var(--muted);
  padding-right: 12px;
  text-transform: capitalize;
}
.evidence-values dd {
  font-family: var(--mono);
}
.event-evidence table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
.event-evidence caption {
  text-align: left;
  font-weight: 600;
  margin: 16px 0 8px;
}
.event-evidence th,
.event-evidence td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  overflow-wrap: anywhere;
}
.event-evidence th {
  color: var(--muted);
  font-weight: 500;
}
.event-evidence small {
  display: block;
  font: 12px/1.5 var(--mono);
  color: var(--muted);
  margin-top: 6px;
}
.evidence-action {
  font-size: 12px;
  color: var(--muted);
}
.single-diagnostic {
  grid-template-columns: 1fr;
}
.single-diagnostic .diagnostic-metrics {
  max-width: 520px;
}
.single-diagnostic .arrival-timeline {
  height: 64px;
  background: linear-gradient(transparent 31px, #99adba 31px, #99adba 33px, transparent 33px);
}
.single-diagnostic .arrival-dot {
  top: 27px;
}
.single-diagnostic .evidence-values {
  max-width: 650px;
}
.workbench-followup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
  margin: 28px 0;
}
.workbench-followup > div {
  flex: 1;
  min-width: 240px;
}
.workbench-followup h2 {
  font-size: 16px;
  margin: 0 0 4px;
}
.workbench-followup p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.diagnostic-workbench .more-tools {
  margin: 28px 0 0;
}
.diagnostic-workbench .section-heading h2 {
  font-size: 18px;
  margin: 0;
}
.diagnostic-workbench .tool-links {
  margin-top: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.diagnostic-workbench .tool-links > a {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px;
}
.diagnostic-workbench .tool-links h3 {
  font-size: 15px;
  color: var(--ink);
}
.diagnostic-workbench .tool-links p {
  font-size: 12px;
  color: var(--muted);
}
.diagnostic-workbench .tool-number {
  display: none;
}
.diagnostic-workbench .tool-link-action {
  font-size: 12px;
}
.diagnostic-workbench .explanation {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin: 28px 0 0;
  max-width: none;
}
.diagnostic-workbench .explanation h2 {
  font-size: 18px;
}
.diagnostic-workbench .explanation p {
  font-size: 14px;
  color: var(--muted);
  max-width: 900px;
}
.diagnostic-workbench .guide-code {
  background: var(--paper-bright);
  color: var(--ink);
  border-color: var(--rule);
}
.diagnostic-workbench .site-footer {
  border-color: var(--rule);
  background: transparent;
  color: var(--muted);
  max-width: 1320px;
}
@media (max-width: 1390px) {
  .diagnostic-workbench .site-header {
    width: calc(100% - 48px);
  }
}
@media (max-width: 1099px) {
  .diagnostic-workbench .workbench-heading {
    align-items: flex-start;
  }
  .diagnostic-workbench .ip-card {
    grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
    column-gap: 24px;
  }
}
@media (max-width: 899px) {
  .diagnostic-grid:not(.single-diagnostic) {
    grid-template-columns: 1fr;
  }
  .diagnostic-workbench .ip-card {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
}
@media (max-width: 699px) {
  .diagnostic-workbench .tool-shell,
  .diagnostic-workbench .site-header {
    width: calc(100% - 32px);
  }
  .diagnostic-workbench .site-header {
    gap: 12px;
    flex-wrap: wrap;
  }
  .diagnostic-workbench .nav-links {
    gap: 14px;
  }
  .diagnostic-workbench .nav-links a {
    font-size: 12px;
  }
  .diagnostic-workbench .workbench-heading {
    display: block;
    margin-bottom: 20px;
  }
  .workbench-actions {
    margin-top: 20px;
  }
  .diagnostic-workbench h1 {
    font-size: 28px;
  }
  .diagnostic-grid:not(.single-diagnostic) {
    grid-template-columns: 1fr;
  }
  .diagnostic-workbench .diagnostic-card {
    padding: 18px;
  }
  .workbench-summary {
    min-width: 100%;
  }
  .workbench-progress {
    border: 0;
  }
  .diagnostic-workbench .ip-value {
    font-size: 28px;
  }
  .diagnostic-workbench .ip-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }
  .diagnostic-workbench .ip-context > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .evidence-values {
    grid-template-columns: 1fr;
  }
  .evidence-values dt {
    border: 0;
    padding-bottom: 0;
  }
  .event-evidence small {
    font-size: 12px;
  }
  .workbench-followup {
    align-items: flex-start;
  }
  .website-entry form {
    flex-wrap: wrap;
  }
  .website-entry button {
    width: 100%;
  }
  .diagnostic-workbench .tool-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 699px) {
  .diagnostic-workbench .site-header {
    padding: 12px 0;
    min-height: 0;
    row-gap: 8px;
  }
  .diagnostic-workbench .site-header .nav-links {
    padding: 0;
    min-height: 32px;
  }
  .diagnostic-workbench .site-header .brand {
    padding: 0;
    min-height: 32px;
  }
  .diagnostic-workbench .tool-shell {
    padding-top: 24px;
  }
}

.event-evidence tbody tr:not(.event-receipt) td {
  border-bottom: 0;
  padding-bottom: 0;
}
.event-receipt td {
  padding-top: 0;
  padding-bottom: 10px;
}

.website-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin: 28px 0 0;
  padding: 20px 24px;
  background: var(--paper-bright);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.website-entry > div {
  flex: 1 1 320px;
  min-width: 0;
}
.website-entry h2 {
  font-size: 18px;
  margin: 0 0 4px;
}
.website-entry .muted {
  font-size: 12px;
  margin: 0;
}
.website-entry form {
  display: flex;
  flex: 1 1 360px;
  gap: 8px;
  min-width: 0;
}
.website-entry input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  font: 14px var(--mono);
  color: var(--ink);
  background: #ffffff;
}
.website-entry input::placeholder {
  color: var(--muted);
}
.website-entry button {
  flex-shrink: 0;
}
.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;
}
