:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --surface: #fffefb;
  --ink: #282b26;
  --muted: #666b62;
  --line: #d9dbd1;
  --subtle-line: #e6e7de;
  --orange: #bd4e21;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { min-width: 300px; margin: 0; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
button, label, input, select { touch-action: manipulation; }
button:focus-visible, select:focus-visible, input:focus-visible,
[tabindex]:focus-visible { outline: 3px solid #a9421a; outline-offset: 3px; }
button:disabled, select:disabled { opacity: .52; cursor: default; }
[hidden] { display: none !important; }
.shell { width: min(100% - clamp(32px, 9vw, 152px), 1440px); margin-inline: auto; }
.icon-library, .visually-hidden, .file-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.icon {
  width: 17px;
  height: 17px;
  display: inline-block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; gap: 18px; height: 61px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 26px; font-weight: 720; letter-spacing: -1.45px; line-height: 1; }
.brand-mark { width: 31px; height: 31px; }
.masthead-rule { width: 1px; height: 18px; background: var(--line); }
.masthead-descriptor { color: var(--muted); font: 12px var(--mono); letter-spacing: -.2px; }
.local-indicator {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52634e;
  font: 12px var(--mono);
}
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #63905b; }
.workspace-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 33px 0 24px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(34px, 3.3vw, 54px); line-height: 1.07; letter-spacing: -.057em; font-weight: 625; }
.workspace-head p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.button, .icon-button, .more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.button { min-height: 38px; padding: 0 14px; }
.button .icon { width: 15px; height: 15px; }
.button-quiet:hover, .icon-button:hover, .more-button:hover { background: #eeefe6; }
.button-primary { color: white; background: var(--ink); border-color: var(--ink); }
.button-primary:hover { background: #45493f; }
.capture-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.capture-card {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  padding: 10px 17px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.capture-card:hover { border-color: #b4b8ab; background: #fdfcf7; }
.capture-card:focus-within { outline: 3px solid #a9421a; outline-offset: 2px; }
.capture-card.drag-over { border-color: var(--orange); background: #fff0e4; outline: 2px dashed var(--orange); outline-offset: -4px; }
.capture-letter {
  display: grid;
  place-items: center;
  width: 37px;
  height: 40px;
  border-radius: 5px;
  flex: none;
  font: 600 21px var(--mono);
}
.letter-a { background: #f9e3d3; color: #9c451e; }
.letter-b { background: #e6eadf; color: #537048; }
.capture-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.field-caption, .metric-label, th {
  font: 600 10px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.field-caption { color: var(--muted); }
.sample-label { display: none; }
[data-source="demo"] .sample-label { display: inline; color: #775d41; }
.file-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; font-weight: 600; letter-spacing: -.025em; }
.file-action { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding-left: 6px; flex: none; color: var(--muted); font-size: 12px; font-weight: 550; }
.file-action .icon { width: 14px; height: 14px; }
.notice { margin-top: 12px; padding: 8px 12px; border-radius: 5px; background: #f0ebdd; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.notice:empty, .comparison-summary:empty { display: none; }
.notice.error, .notice.is-error, .notice[data-kind="error"] { background: #fbe5df; color: #86321c; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 15px;
  padding: 19px 0;
  background: #282d28;
  color: #f8f8ef;
  border-radius: 9px;
}
.metric { display: flex; flex-direction: column; align-items: start; gap: 7px; min-width: 0; padding: 0 clamp(14px, 1.8vw, 30px); border-right: 1px solid #4b5047; }
.metric:last-child { border-right: 0; }
.metric-label { display: flex; align-items: center; gap: 7px; color: #cdd1c3; line-height: 1.5; }
.metric-label .icon { width: 14px; height: 14px; opacity: .9; }
.metric-value {
  font-family: "DM Sans", Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(26px, 2.8vw, 43px);
  font-variant-numeric: tabular-nums;
  font-weight: 560;
  letter-spacing: -.045em;
  line-height: 1;
  overflow-wrap: anywhere;
}
.metric:first-child .metric-value { color: #ffae7b; }
.view-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; border-bottom: 1px solid var(--line); }
.view-switch { display: flex; gap: 26px; }
.view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  height: 46px;
  margin: 0;
  padding: 0 1px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.view-button:hover { color: var(--ink); }
.view-button[aria-pressed="true"] { color: var(--ink); }
.view-button[aria-pressed="true"] .icon { color: var(--orange); }
.view-button[aria-pressed="true"]::after { content: ""; position: absolute; height: 3px; background: #cd6537; bottom: -1px; left: 0; right: 0; }
.view-button .icon { width: 16px; height: 16px; }
.capture-picker, .search-wrap, .select-wrap { display: inline-flex; align-items: center; }
.capture-picker { gap: 8px; color: var(--muted); font-size: 12px; }
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 31px 0 11px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 540;
}
.select-wrap select:hover, .search-wrap:hover { border-color: #b3b8aa; }
.select-wrap .select-icon { pointer-events: none; position: absolute; right: 8px; width: 15px; height: 15px; color: var(--muted); }
.capture-picker select { height: 30px; }
.filter-bar { display: flex; align-items: center; gap: 8px; padding: 14px 0; }
.search-wrap { gap: 8px; width: min(320px, 65%); height: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 0 9px; }
.search-wrap:focus-within { outline: 2px solid #a9421a; outline-offset: 1px; }
.search-wrap input { min-width: 0; width: 100%; height: 100%; border: 0; background: transparent; outline: none; font-size: 12px; }
.search-wrap .icon { height: 15px; width: 15px; color: var(--muted); }
.search-wrap input::placeholder { color: var(--muted); opacity: 1; }
.type-wrap select { min-width: 105px; }
.table-scroll { position: relative; overflow: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
thead { background: #efefe7; }
th { padding: 10px; color: #5a6055; text-align: left; }
th, td { vertical-align: middle; }
th:first-child, td:first-child { padding-left: 16px; }
th:last-child, td:last-child { padding-right: 16px; }
td { border-top: 1px solid var(--subtle-line); padding: 9px 10px; height: 41px; font-size: 12px; }
tbody tr:hover { background: #f8f8f0; }
.col-request { width: 34%; }
.col-type { width: 10%; }
.col-status { width: 7%; }
.col-timeline { width: 39%; }
.col-time { width: 10%; }
.axis { display: flex; align-items: center; justify-content: space-between; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.request-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: 12px var(--mono);
}
.request-link:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.request-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.resource-dot { flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--series-color, #858a7b); }
.dot-document { --series-color: #cd7347; }
.dot-script { --series-color: #72967a; }
.dot-stylesheet { --series-color: #728fa7; }
.dot-image { --series-color: #c59c50; }
.dot-font { --series-color: #9886ab; }
.dot-media { --series-color: #b37f89; }
.dot-fetch, .dot-xhr { --series-color: #559795; }
.dot-other { --series-color: #898d80; }
.cell-type { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.status-code { display: inline-block; font: 11px var(--mono); color: #466247; background: #ebf0e6; padding: 3px 5px; border-radius: 4px; }
.status-code.is-error { background: #fce5dc; color: #9b3c23; }
.status-code.unknown, .status-code.is-unknown { background: #ecebe5; color: #66685e; }
.timeline-cell { position: relative; }
.timeline-cell::before {
  content: "";
  position: absolute;
  inset: 0 10px;
  border-right: 1px solid #ecece4;
  background: repeating-linear-gradient(to right, #ecece4 0 1px, transparent 1px 25%);
  pointer-events: none;
}
.track { position: relative; height: 11px; }
.bar { display: block; position: absolute; top: 1px; height: 9px; min-width: 2px; max-width: 100%; background: var(--series-color, #c77b54); border-radius: 2px; }
.number-cell, .comparison-table td:nth-child(n+3) { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.table-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; min-height: 42px; color: var(--muted); font: 11px/1.4 var(--mono); }
.more-button { min-height: 29px; padding: 4px 10px; font: 12px Inter, "Segoe UI", sans-serif; }
.comparison-summary { margin-bottom: 12px; border-left: 3px solid #d37143; padding: 6px 12px; color: #575d51; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.cmp-request { width: 44%; }
.cmp-state { width: 14%; }
.cmp-number { width: 14%; }
.comparison-table th:nth-child(n+3) { text-align: right; }
.comparison-table td:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.delta-up { color: #a43a1b; }
.delta-down { color: #386b45; }
.metric-value.delta-up { color: #ffae7b; }
.metric-value.delta-down { color: #b4d4a6; }
.empty-cell { padding: 30px 16px; color: var(--muted); text-align: center; font-size: 14px; }
.workspace-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; padding: 14px 0 26px; color: var(--muted); font: 11px var(--mono); }
.workspace-foot span, .project-links { display: flex; align-items: center; gap: 7px; }
.workspace-foot .icon { width: 14px; height: 14px; }
.project-links { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); gap: 16px; flex-wrap: wrap; font-size: 12px; }
.project-links a, .workspace-foot a { color: var(--muted); text-underline-offset: 3px; }
.project-links a:hover, .workspace-foot a:hover { color: var(--ink); }
dialog { width: min(510px, calc(100% - 28px)); max-height: calc(100vh - 48px); padding: 21px 25px 26px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 75px #25271e40; }
dialog::backdrop { background: #25271f69; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.icon-button { width: 32px; height: 32px; padding: 0; }
dialog h2 { margin: 9px 0 17px; font-size: 23px; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
dialog h3 { margin: 22px 0 8px; font-size: 15px; }
dialog p { margin-block: 8px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.detail-grid { margin: 0; display: grid; grid-template-columns: minmax(85px, .8fr) minmax(0, 1.6fr); }
.detail-fact { display: contents; }
.detail-grid dt, .detail-grid dd { margin: 0; padding-block: 8px; border-top: 1px solid var(--subtle-line); font-size: 13px; }
.detail-grid dt { color: var(--muted); padding-right: 8px; }
.detail-grid dd { font-family: var(--mono); overflow-wrap: anywhere; }
.phase-row { display: grid; grid-template-columns: 65px minmax(50px, 1fr) 68px; gap: 12px; align-items: center; min-height: 26px; font: 12px var(--mono); }
.phase-name { color: var(--muted); }
.phase-track { display: block; position: relative; height: 8px; background: #f1f0e9; border-radius: 2px; }
.phase-bar { display: block; position: absolute; left: 0; top: 0; height: 100%; min-width: 1px; background: #c67750; border-radius: 2px; }
.phase-time { text-align: right; }
.check-opener { margin-left: auto; min-height: 31px; padding-inline: 10px; font-size: 12px; }
.check-opener + .local-indicator { margin-left: 0; }
.check-opener:hover, .file-button.button-quiet:hover { background: #eeefe6; }
.file-button { position: relative; cursor: pointer; }
.file-button:focus-within { outline: 3px solid #a9421a; outline-offset: 2px; }
.check-creator { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; }
.check-creator select { background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 7px 4px; min-height: 36px; max-width: 100%; font-size: 12px; }
.check-unavailable summary, .prompt-disclosure summary { cursor: pointer; color: var(--muted); font-size: 13px; padding-block: 5px; }
summary:focus-visible, textarea:focus-visible { outline: 3px solid #a9421a; outline-offset: 2px; }
#check-dialog { width: min(560px, calc(100% - 28px)); }
#check-heading { margin: 0; }
#check-dialog .dialog-head { margin-bottom: 12px; }
#check-intro { margin: 0 0 14px; }
.rule-card { margin: 16px 0 12px; padding: 15px; background: #f4f4ec; border: 1px solid var(--line); border-radius: 7px; overflow-wrap: anywhere; }
.rule-card h3 { margin: 5px 0 0; font: 600 15px/1.4 var(--mono); }
.rule-card p { color: var(--ink); }
.check-evidence { display: flex; flex-wrap: wrap; gap: 28px; margin: 13px 0 0; border-top: 1px solid var(--line); padding-top: 10px; }
.check-evidence dt { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.check-evidence dd { margin: 4px 0 0; font: 600 13px var(--mono); }
.check-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.prompt-disclosure { margin-top: 7px; }
.prompt-disclosure textarea { width: 100%; max-width: 100%; resize: vertical; padding: 10px; font: 12px/1.5 var(--mono); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.candidate-section { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.candidate-section h3 { margin: 0; }
:is(#demo-replay, #case-replay) { margin-top: 12px; }
:is(#demo-replay, #case-replay) .check-actions { margin-top: 5px; }
:is(#demo-replay, #case-replay) .button { min-height: 31px; padding-inline: 10px; }
#behavior-field { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
#behavior-field label { display: block; margin-bottom: 5px; }
:is(#candidate-behavior, #case-sample) { min-height: 32px; max-width: 100%; padding: 4px 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; font-size: 13px; }
#behavior-assessment:empty { display: none; }
.check-result { margin-top: 12px; padding: 12px; border-left: 3px solid #9c8a61; background: #f3efe2; font-size: 13px; overflow-wrap: anywhere; }
.check-result:empty { display: none; }
.check-result[data-state="pass"] { background: #ecf3e8; border-color: #53805b; }
.check-result[data-state="fail"] { background: #fae9e0; border-color: #bf5936; }
.check-result p { margin: 5px 0 0; color: var(--ink); }
.verdict-file { margin-left: 7px; color: var(--muted); font: 11px var(--mono); }
.verdict-measure { margin-top: 6px; font: 12px var(--mono); }
@media (max-width: 510px) {
  .check-opener + .local-indicator { display: none; }
}
@media (min-width: 1600px) {
  .workspace-head { padding: 40px 0 28px; }
  td { height: 44px; }
}
@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .capture-card { padding: 10px 13px; gap: 10px; }
  .waterfall-table { min-width: 640px; }
  .comparison-table { min-width: 600px; }
  .file-action span { display: none; }
  .col-request { width: 31%; }
  .col-type { width: 12%; }
  .col-status { width: 8%; }
  .col-timeline { width: 37%; }
  .col-time { width: 12%; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .masthead-inner { height: 53px; gap: 11px; }
  .masthead-rule, .masthead-descriptor { display: none; }
  .workspace-head { flex-wrap: wrap; padding: 24px 0 16px; gap: 14px; }
  .workspace-head p { max-width: 400px; font-size: 13px; }
  .button { min-height: 35px; }
  .capture-pair { gap: 8px; }
  .capture-card { min-height: 68px; padding: 9px; gap: 7px; }
  .capture-letter { width: 25px; height: 30px; font-size: 15px; }
  .capture-card .field-caption { font-size: 9px; letter-spacing: .035em; }
  .file-name { font-size: 12px; }
  .file-action { padding: 0; }
  .file-action .icon { width: 12px; height: 12px; }
  .metrics { margin-top: 10px; padding: 15px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 17px; }
  .metric { padding-inline: 13px; gap: 5px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric-label { font-size: 9px; }
  .metric-label .icon { width: 12px; height: 12px; }
  .view-bar { margin-top: 12px; }
  .view-switch { gap: 15px; }
  .view-button { gap: 5px; font-size: 13px; }
  .capture-picker > span:first-child { display: none; }
  .capture-picker select { padding-left: 6px; padding-right: 23px; font-size: 11px; }
  .capture-picker .select-icon { right: 4px; }
  .search-wrap { flex: 1; }
  .waterfall-table { min-width: 0; }
  .waterfall-table .col-type, .waterfall-table .col-status,
  .waterfall-table :is(th, td):nth-child(2), .waterfall-table :is(th, td):nth-child(3) { display: none; }
  .col-request { width: 42%; }
  .col-timeline { width: 40%; }
  .col-time { width: 18%; }
  .waterfall-table :is(th, td) { padding-inline: 6px; }
  .waterfall-table :is(th, td):first-child { padding-left: 10px; }
  .waterfall-table :is(th, td):last-child { padding-right: 9px; }
  .waterfall-table .timeline-cell::before { inset-inline: 6px; }
  .waterfall-table .number-cell, .waterfall-table .request-link { font-size: 11px; }
  .waterfall-table #axis-mid { display: none; }
  .waterfall-table .request-link { gap: 5px; }
  .workspace-foot { justify-content: flex-start; }
}
@media (max-width: 410px) {
  .capture-pair { grid-template-columns: 1fr; }
  .capture-card { min-height: 52px; }
  .file-action { display: inline-flex; }
  .file-action span { display: inline; }
  .capture-card .field-caption { font-size: 9px; }
  .capture-letter { width: 30px; height: 31px; }
  .view-switch { gap: 10px; }
  .view-button .icon { display: none; }
  dialog { padding: 15px; }
}
@media (forced-colors: active) {
  .bar, .phase-bar, .resource-dot, .online-dot, .view-button[aria-pressed="true"]::after { background: Highlight; forced-color-adjust: none; }
  .timeline-cell::before { border-inline: 1px solid GrayText; }
}
