:root {
  --paper: #f7f8f4;
  --surface: #fff;
  --ink: #142b27;
  --body: #344b45;
  --muted: #596d64;
  --line: #d8e0d7;
  --green: #225a43;
  --lime: #c0ee8d;
  --wash: #edf2e8;
  --warning: #8a3d0a;
  --focus: #176aaf;
  --radius: 20px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font:
    16px/1.65 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover {
  color: #133e2c;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  padding: 12px;
  background: var(--surface);
  z-index: 10;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  container-type: inline-size;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner {
  max-width: 1180px;
  margin: auto;
  min-height: 84px;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  letter-spacing: -1px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.brand svg {
  width: 26px;
  height: 33px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.brand-light {
  font-weight: 450;
}
.brand-dot {
  color: var(--green);
}
.header-inner nav {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.header-inner nav a {
  padding: 10px 14px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.header-inner nav a[aria-current],
.header-inner nav a:hover {
  background: var(--wash);
  color: var(--ink);
}
.local-badge {
  font-size: 14px;
  color: var(--green);
  white-space: nowrap;
}
.local-badge span {
  font-size: 14px;
  margin-right: 5px;
}
main {
  container-type: inline-size;
  max-width: 1116px;
  margin: 0 auto;
  padding: 28px 0 64px;
}
.page-intro {
  margin-bottom: 24px;
}
.eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green);
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  text-decoration: none;
}
.title-row {
  display: flex;
  align-items: center;
  gap: 22px;
}
.title-row h1 {
  margin: 7px 0 5px;
  font-size: clamp(29px, 3.1vw, 43px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -1.5px;
  color: var(--ink);
}
.free-tag {
  color: var(--green);
  font-size: 14px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 50px;
  white-space: nowrap;
}
.page-intro > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.tool-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
}
.test-column {
  min-width: 0;
}
.test-zone {
  background: var(--ink);
  color: #e8f0e9;
  border-radius: var(--radius);
  padding: 20px 24px;
  min-height: 330px;
  overflow: hidden;
  user-select: none;
}
.test-zone.running {
  box-shadow: 0 0 0 3px var(--lime);
}
.zone-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #96aaa2;
}
.status-dot.active {
  background: var(--lime);
}
.zone-tag {
  color: #b4c6bc;
  font-size: 14px;
  letter-spacing: 1.8px;
}
.zone-monitor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  height: 246px;
}
.mouse-diagram {
  width: 195px;
  height: 235px;
  flex: none;
  pointer-events: none;
}
.mouse-body {
  fill: #233c34;
  stroke: #739185;
  stroke-width: 1.5;
}
.mouse-part {
  fill: #36574a;
  stroke: #a4b9ac;
  stroke-width: 1.3;
  transition: fill 0.06s;
}
.mouse-part.active {
  fill: var(--lime);
  stroke: var(--lime);
}
.mouse-detail {
  fill: none;
  stroke: #adc6b9;
  stroke-width: 2;
}
.mouse-diagram text {
  fill: #e3f0e7;
  text-anchor: middle;
  font: 16px system-ui;
}
.mouse-diagram .mouse-mark {
  fill: #a8c2b4;
  font-size: 17px;
  letter-spacing: 5px;
}
.live-stats {
  width: 155px;
}
.live-stats > div {
  padding: 10px 0;
  border-bottom: 1px solid #426154;
}
.live-stats > div:last-child {
  border: 0;
}
.live-stats span {
  display: block;
  color: #b4c6bc;
  font-size: 14px;
}
.live-stats strong {
  display: block;
  color: var(--lime);
  font-size: 33px;
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.live-stats .last-input {
  color: #e8f0e9;
  font-size: 16px;
  min-height: 24px;
  margin-top: 6px;
}
.zone-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #bfd0c5;
  border-top: 1px solid #426154;
  padding-top: 12px;
}
.protocol {
  font-size: 14px;
  color: var(--muted);
  margin: 17px 0 14px;
  line-height: 1.6;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
button {
  border: 0;
  min-height: 44px;
  line-height: 1.25;
  padding: 12px 17px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 650;
}
.primary {
  color: #fff;
  background: var(--green);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.primary:hover {
  background: #184731;
}
.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}
.secondary:hover {
  background: var(--wash);
}
.quiet {
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-left: 10px;
  padding-right: 10px;
}
.status-message {
  font-size: 14px;
  color: var(--muted);
  min-height: 38px;
  margin: 14px 0 9px;
}
.status-message.error {
  color: var(--warning);
}
.button-readouts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.button-readouts > div {
  padding: 12px 6px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.button-readouts > div:last-child {
  border: 0;
}
.button-readouts span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.button-readouts strong {
  font-size: 14px;
  display: block;
  margin-top: 4px;
  color: var(--ink);
}
[data-tool="scroll"] .button-readouts {
  grid-template-columns: 1fr 1fr 1.7fr;
}
.history-panel {
  background: var(--surface);
  padding: 25px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
h2 {
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 8px 0 14px;
}
.history-panel h2 {
  font-size: 20px;
  margin-top: 7px;
}
.small {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.history-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 5px;
}
.history-list li {
  border-top: 1px solid var(--line);
  padding: 13px 0;
  font-size: 14px;
}
.history-list li.empty {
  color: var(--muted);
  line-height: 1.8;
  padding: 20px 0;
}
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--ink);
}
.history-row strong {
  font-size: 22px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.history-date {
  font-size: 14px;
  color: var(--muted);
}
.history-note {
  background: var(--wash);
  padding: 18px 16px;
  border-radius: 12px;
  margin-top: 25px;
}
.history-note > span {
  display: block;
  font-size: 25px;
  line-height: 1;
}
.history-note strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-top: 8px;
}
.history-note p,
.history-note a {
  font-size: 14px;
  line-height: 1.7;
}
.history-note p {
  margin: 8px 0 13px;
}
.settings {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.settings label {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}
.settings input,
.settings select {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  margin-top: 5px;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--ink);
}
.settings input {
  width: 150px;
}
.dpi-settings {
  margin-top: 0;
  margin-bottom: 15px;
}
.dpi-settings p {
  max-width: 190px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 4px;
}
.pass-list {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.pass-list span {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}
.pass-list span.done {
  color: var(--green);
  background: #e4f1d9;
  border-color: #96bc79;
}
.pass-list span.current {
  color: var(--ink);
  border-color: var(--green);
}
.dpi-zone {
  min-height: 260px;
}
.dpi-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 188px;
}
.dpi-visual .eyebrow {
  color: #adc6b9;
  font-size: 14px;
}
.dpi-visual strong {
  font-size: 46px;
  font-weight: 450;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  margin-top: 10px;
}
.dpi-visual .small {
  color: #adc6b9;
  font-size: 14px;
}
#trace {
  width: 100%;
  height: 50px;
  margin-top: 7px;
}
.limitation {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0 0;
}
kbd {
  font: 14px system-ui;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 4px;
  color: var(--ink);
}
.phase-picker {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.phase {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  flex: 1;
}
.phase.active {
  border-color: var(--green);
  background: var(--wash);
  color: var(--ink);
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.result-card[data-status="suspect"],
.result-card[data-status="repeat"] {
  border-color: #bb814b;
}
.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.result-top h2 {
  font-size: 24px;
  margin: 6px 0;
}
.result-score strong {
  font-size: 47px;
  font-weight: 500;
  line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.result-score span {
  font-size: 14px;
  color: var(--muted);
}
.result-card > p {
  font-size: 14px;
}
.comparison {
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--wash);
  color: var(--green);
}
.section {
  margin-top: 48px;
}
.section > .eyebrow {
  margin-bottom: 10px;
}
.prose {
  max-width: 760px;
}
.prose p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.9;
}
.checklist {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: checks;
}
.checklist li {
  position: relative;
  counter-increment: checks;
  padding: 12px 0 12px 43px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.8;
}
.checklist li:before {
  content: counter(checks, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px;
  text-decoration: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;
  min-height: 140px;
}
.related-card:hover {
  border-color: var(--green);
  background: #eff4e9;
}
.related-card > span:first-child {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.related-card p {
  grid-column: 1/-1;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 17px 2px;
  min-height: 44px;
}
.faq details p {
  font-size: 16px;
  margin: 0;
  padding: 0 3px 20px;
}
.sources h2 {
  font-size: 17px;
}
.sources p,
.sources li {
  font-size: 14px;
  line-height: 1.8;
}
.sources ul {
  padding-left: 18px;
}
.home-link {
  margin-top: 44px;
  font-size: 14px;
}
.site-footer {
  max-width: 1180px;
  padding: 32px;
  margin: auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer strong {
  color: var(--ink);
  font-weight: 650;
  font-size: 14px;
}
.site-footer p {
  margin: 5px 0;
}
.site-footer nav {
  display: flex;
  gap: 15px;
  margin-left: auto;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}
.site-footer .footer-note {
  width: 100%;
  font-size: 14px;
  color: var(--muted);
}
.mobile-handoff {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  max-width: 560px;
}
.mobile-handoff h2 {
  font-size: 25px;
}
.mobile-handoff p {
  font-size: 16px;
}
.mobile-handoff input {
  display: block;
  width: 100%;
  min-height: 44px;
  font-size: 14px;
  margin: 18px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--paper);
  color: var(--body);
}
body[data-pointer="coarse"] .desktop-tool {
  display: none;
}
body[data-pointer="coarse"] .mobile-handoff {
  display: block;
}
.privacy-controls .consent-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 16px;
  min-height: 44px;
}
.consent-choice input {
  width: 22px;
  height: 22px;
  accent-color: var(--green);
}
.article {
  padding-bottom: 6px;
}
.article .section:first-child {
  margin-top: 28px;
}
.test-column > .actions {
  margin-bottom: 16px;
}
.dpi-guide {
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.dpi-guide ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: dpi-step;
}
.dpi-guide li {
  counter-increment: dpi-step;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}
.dpi-guide strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.dpi-guide strong::before {
  content: counter(dpi-step) ". ";
  color: var(--green);
}
.desk-guide {
  width: 100%;
  height: 52px;
  display: block;
  margin-top: 8px;
}
.desk-guide path {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
}
.desk-guide text {
  fill: var(--ink);
  font: 16px system-ui;
}
.dpi-feedback {
  color: #e8f0e9;
  font-size: 16px;
  line-height: 1.6;
  min-height: 42px;
  margin: 12px 0 0;
}
.dpi-feedback.error {
  color: #ffe0b2;
  border-left: 3px solid #f8ba72;
  padding-left: 12px;
}
.dpi-zone .dpi-visual {
  height: 135px;
}
.input-safety {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0 0;
}
.mouse-diagram .side-letter {
  font-size: 18px;
  fill: #e8f0e9;
}
@container (max-width: 600px) {
  .dpi-guide ol {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .dpi-guide strong {
    display: inline;
  }
  .desk-guide {
    height: 45px;
  }
}
/* Root zoom can narrow the content container without changing viewport media queries. */
@container (max-width: 850px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .local-badge {
    display: none;
  }
  .tool-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}
.desktop-tool {
  display: none;
}
.mobile-handoff {
  display: block;
}
@media (any-pointer: fine) {
  .desktop-tool {
    display: grid;
  }
  .mobile-handoff {
    display: none;
  }
}
body[data-pointer="fine"] .desktop-tool {
  display: grid;
}
body[data-pointer="fine"] .mobile-handoff {
  display: none;
}
@media (max-width: 1180px) {
  main {
    padding: 24px 32px 60px;
  }
  .header-inner {
    gap: 18px;
  }
  .local-badge {
    display: none;
  }
  .tool-workspace {
    grid-template-columns: minmax(0, 1fr) 265px;
  }
  .zone-monitor {
    gap: 20px;
  }
}
@media (max-width: 850px) {
  .header-inner {
    padding: 14px 24px;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 70px;
  }
  .brand {
    font-size: 20px;
  }
  .header-inner nav a {
    padding: 10px;
    font-size: 14px;
  }
  .tool-workspace {
    grid-template-columns: 1fr;
  }
  .history-panel {
    margin-top: 0;
  }
  .history-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
  }
  .history-note {
    max-width: 470px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .zone-monitor {
    gap: 40px;
  }
  .title-row {
    gap: 14px;
  }
}
@media (max-width: 600px) {
  main {
    padding: 20px 18px 44px;
  }
  .header-inner {
    padding: 12px 18px;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
  }
  .brand {
    font-size: 17px;
    letter-spacing: -0.8px;
    gap: 7px;
  }
  .brand svg {
    width: 21px;
  }
  .header-inner nav {
    display: none;
  }
  .title-row {
    display: block;
  }
  .title-row h1 {
    letter-spacing: -1px;
    font-size: 30px;
  }
  .free-tag {
    display: inline-block;
    margin-top: 8px;
  }
  .page-intro > p {
    font-size: 16px;
    margin-top: 13px;
  }
  .test-zone {
    padding: 16px;
    min-height: 310px;
  }
  .zone-monitor {
    gap: 20px;
    height: 232px;
  }
  .mouse-diagram {
    width: clamp(120px, 36vw, 156px);
    height: 210px;
  }
  .live-stats {
    width: 116px;
    min-width: 0;
  }
  .live-stats strong {
    font-size: 28px;
  }
  .zone-top {
    font-size: 14px;
  }
  .zone-tag {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .zone-bottom {
    font-size: 14px;
    gap: 10px;
  }
  .button-readouts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .button-readouts span {
    font-size: 14px;
  }
  .button-readouts strong {
    font-size: 14px;
  }
  .actions {
    gap: 8px;
  }
  .actions button {
    font-size: 14px;
    padding: 12px 13px;
  }
  .result-card {
    padding: 19px;
  }
  .result-top h2 {
    font-size: 21px;
  }
  .result-score strong {
    font-size: 39px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .related-card {
    min-height: 105px;
    padding: 18px;
  }
  .section {
    margin-top: 34px;
  }
  h2 {
    font-size: 22px;
  }
  .prose p {
    font-size: 16px;
  }
  .site-footer {
    padding: 24px 18px;
    gap: 12px;
  }
  .site-footer nav {
    width: 100%;
    margin: 0;
    gap: 14px;
    flex-wrap: wrap;
  }
  .history-list {
    grid-template-columns: 1fr;
  }
  .settings {
    gap: 11px;
  }
  .settings input {
    width: 132px;
  }
  .settings select {
    max-width: 180px;
  }
  .dpi-settings p {
    max-width: none;
    width: 100%;
  }
  .dpi-zone {
    min-height: 250px;
  }
  .pass-list span {
    font-size: 14px;
    padding: 8px;
  }
  .phase {
    font-size: 14px;
  }
  .mobile-handoff {
    padding: 22px;
  }
  .page-intro {
    margin-bottom: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
@media print {
  .site-header,
  .actions,
  .settings,
  .site-footer,
  .history-panel,
  .mobile-handoff {
    display: none;
  }
  .tool-workspace {
    display: block;
  }
  .test-zone {
    background: #fff;
    color: #000;
    border: 1px solid #777;
  }
  .result-card {
    break-inside: avoid;
  }
  body {
    background: #fff;
  }
  main {
    padding: 10px;
  }
  .section {
    margin-top: 20px;
  }
}
