:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #202a27;
  background: #f5f6f2;
  font-synthesis: none;
  --green: #245d49;
  --line: #dde2db;
  --muted: #65716a;
}
.powered { color: var(--green); font-size: 14px; display: inline-block; }
.public-site .local { flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; }
.public-site .intro > p:last-child { max-width: 720px; }
.action-guide { margin-top: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.action-guide > p:not(.eyebrow), .privacy-note p, .support-panel p { font-size: 14px; line-height: 1.65; max-width: 850px; }
.action-steps { padding-left: 24px; font-size: 14px; line-height: 1.65; max-width: 850px; }
.action-steps li { padding: 8px 0 8px 8px; }
.support-panel { margin-top: 32px; padding: 26px; background: #eaf1e8; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.support-panel p { margin-bottom: 0; max-width: 650px; }
.support-pending { color: var(--green); font-size: 14px; font-weight: 600; flex-shrink: 0; }
.privacy-note { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; color: var(--muted); }
.public-site .hosting-info { padding: 0; background: transparent; border: 0; }
.hosting-info summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-size: 14px; color: var(--green); }
.hosting-info p { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.hosting-info a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; }
.public-site .registry-entry a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 700px) {
  .public-site .topbar { height: auto; min-height: 80px; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .public-site .local { max-width: 160px; font-size: 13px; }
  .powered { font-size: 13px; }
  .support-panel { display: block; padding: 22px; }
  .support-pending { display: block; margin-top: 18px; }
  .action-guide > p:not(.eyebrow), .privacy-note p, .support-panel p, .action-steps, .hosting-info p { font-size: 16px; }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #609d83;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 80px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fafbf8;
}
.brand {
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 1.4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  font-size: 32px;
  color: var(--green);
}
.game {
  color: #7b857e;
  font-weight: 500;
}
.local {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.local i,
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3f8064;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 48px 4% 36px;
}
.intro {
  margin-bottom: 36px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green);
  font-weight: 750;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(30px, 3.3vw, 44px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin: 0 0 14px;
}
.intro > p:last-child {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
.workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.setup {
  padding: 26px;
  background: #fafbf8;
  border-right: 1px solid var(--line);
}
.section-title,
.heading-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title {
  margin-bottom: 24px;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  margin: 0;
}
.step {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #5e7568;
  border: 1px solid #d7e0d8;
  border-radius: 4px;
  padding: 4px 5px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 22px 0 8px;
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  border: 1px solid #cbd3ca;
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  color: #202a27;
  min-height: 44px;
  font-size: 14px;
}
textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.55;
}
input::placeholder,
textarea::placeholder {
  color: #7a847c;
}
input[type="file"] {
  font-size: 13px;
  padding: 10px 7px;
}
.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 7px 0 0;
}
.advanced {
  margin: 22px 0;
  color: #47554c;
  font-size: 14px;
}
.advanced summary {
  cursor: pointer;
  padding: 8px 0;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  font-weight: 500;
}
.checkbox input {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.checkbox .hint {
  margin: 4px 0;
}
.primary,
.secondary {
  width: 100%;
  min-height: 46px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
}
.primary {
  display: flex;
  justify-content: space-between;
  background: var(--green);
  border: 1px solid var(--green);
  color: white;
}
.primary:hover {
  background: #194c3a;
}
.secondary {
  background: transparent;
  border: 1px solid #cbd3ca;
  color: #35493d;
}
.secondary:hover {
  background: #edf1e9;
}
.demo-box {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
.demo-box p {
  font-size: 13px;
  margin: 0 0 12px;
}
.demo-box > .hint {
  display: block;
  font-size: 12px;
}
.results {
  padding: 26px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.result-heading {
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.text-button {
  padding: 6px 0;
  border: none;
  background: none;
  color: var(--green);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 32px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  flex: 1;
  text-align: center;
  padding: 32px;
}
.scan-symbol {
  border: 1px solid #d7e1d7;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  font-size: 45px;
  line-height: 1;
  color: #6e8877;
  background: #f5f8f1;
  margin-bottom: 20px;
}
.empty h3 {
  font-size: 20px;
  font-weight: 550;
  margin: 0 0 12px;
}
.empty p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 350px;
  margin: 0;
}
.empty-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
}
.dot {
  margin-right: 6px;
}
.amber {
  background: #b57d2a;
}
.gray {
  background: #90998e;
}
.explanation {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.explanation > span {
  font-size: 18px;
  color: #647d6a;
}
.explanation p {
  margin: 0;
}
.explanation strong {
  color: #455449;
  font-weight: 600;
}
.progress,
.error {
  padding: 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.55;
}
.progress {
  background: #edf4ef;
  color: var(--green);
}
.error {
  background: #fff1ef;
  color: #9d352b;
  border: 1px solid #f0cfc9;
  margin-bottom: 20px;
}
.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.report-meta > span {
  color: var(--muted);
  font-size: 12px;
}
#report-context {
  overflow-wrap: anywhere;
}
.counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  gap: 12px;
}
.count strong {
  font-size: 27px;
  font-weight: 550;
  display: block;
  line-height: 1.2;
}
.count span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 6px;
}
.count:first-child strong {
  color: #996315;
}
.table-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.table-tools label {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
}
.table-tools select {
  width: auto;
  max-width: 100%;
  padding: 8px;
  font-size: 13px;
  min-height: 38px;
}
.table-tools > .hint {
  margin: 0 0 0 auto;
}
.server-row {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.server-heading {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}
.server-name {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
  overflow-wrap: anywhere;
  min-width: 0;
}
.badge {
  flex-shrink: 0;
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 4px;
  line-height: 1.4;
  background: #eff1ed;
  color: #5b685f;
}
.badge.suspect {
  background: #fff2dc;
  color: #87590f;
}
.badge.similar {
  background: #f4edfc;
  color: #745094;
}
.badge.trusted {
  background: #eaf4ed;
  color: #316144;
}
.server-data {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 12px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.server-data strong {
  color: #35493d;
  font-size: 13px;
  font-family: Consolas, monospace;
  font-weight: 500;
}
.server-data span {
  overflow-wrap: anywhere;
}
.reason {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: #59675e;
}
.probe {
  font-size: 12px;
  color: #5d6c61;
  line-height: 1.55;
  margin-top: 10px;
  background: #f5f7f2;
  padding: 10px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.coverage {
  border-top: 1px solid var(--line);
  margin: 8px 0 24px;
  padding-top: 16px;
}
.coverage h3 {
  font-size: 13px;
  margin: 0;
  font-weight: 650;
}
.coverage ul {
  padding-left: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.coverage li + li {
  margin-top: 5px;
}
.history {
  margin-top: 32px;
}
.history .section-title {
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 12px;
}
.history .hint {
  margin: 0;
}
.history-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  width: 100%;
  display: flex;
  text-align: left;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-size: 14px;
  color: #364a3e;
  line-height: 1.5;
}
.history-item:hover {
  background: #edf1e8;
}
.history-item span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.history-item small {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}
footer {
  max-width: 1440px;
  margin: auto;
  padding: 20px 4% 30px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1px;
  color: #7e887f;
}
footer span {
  letter-spacing: 0;
  font-size: 12px;
}
@media (min-width: 1400px) {
  .workspace {
    grid-template-columns: 360px minmax(0, 1fr);
  }
  .setup,
  .results {
    padding: 30px;
  }
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .setup,
  .results {
    padding: 22px;
  }
  .counts {
    grid-template-columns: repeat(2, 1fr);
  }
  .server-heading {
    flex-direction: column;
    gap: 6px;
  }
  .empty {
    padding: 12px;
  }
  .empty-legend {
    flex-direction: column;
    gap: 10px;
  }
  .local {
    font-size: 12px;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 68px;
    padding: 0 20px;
  }
  .brand {
    font-size: 11px;
    gap: 8px;
    letter-spacing: 1px;
  }
  .brand-icon {
    font-size: 27px;
  }
  .game {
    display: none;
  }
  .local {
    font-size: 11px;
  }
  main {
    padding: 30px 16px;
  }
  .intro {
    margin-bottom: 24px;
  }
  h1 {
    letter-spacing: -1px;
    font-size: 32px;
  }
  .intro > p:last-child {
    font-size: 14px;
  }
  .workspace {
    display: block;
  }
  .setup {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px;
  }
  .results {
    padding: 22px;
  }
  .empty {
    min-height: 320px;
    padding: 20px 0;
  }
  .empty-legend {
    flex-direction: row;
  }
  .counts {
    grid-template-columns: repeat(2, 1fr);
  }
  input:not([type="checkbox"]),
  textarea,
  select {
    font-size: 16px;
  }
  .server-heading {
    flex-direction: column;
  }
  .history-item {
    flex-direction: column;
    gap: 4px;
  }
  .history .section-title {
    gap: 8px;
  }
  .history .hint {
    font-size: 12px;
  }
  .table-tools > .hint {
    margin-left: 0;
  }
  .result-heading h2 {
    font-size: 16px;
  }
  .explanation {
    margin-top: 24px;
  }
  footer {
    padding: 0 20px 24px;
  }
  .coverage ul {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
/* Readability and input targets across desktop and touch screens. */
h1 {
  font-size: clamp(30px, 3.3vw, 36px);
}
.eyebrow,
.step,
.badge {
  font-size: 12px;
}
.reason,
.explanation,
.empty p {
  font-size: 14px;
}
.text-button,
.table-tools select,
.advanced summary {
  min-height: 44px;
}
.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;
}
.mod-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hosting-info { font-size: 13px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.provider-registry { padding: 28px 0; border-top: 1px solid var(--line); }
.provider-registry summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-weight: 600; color: var(--green); }
.registry-entry { padding: 18px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.registry-entry h3 { margin: 0; font-size: 16px; }
.registry-entry p { margin: 8px 0; }
.registry-entry a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); text-underline-offset: 3px; }
.registry-entry details p { font-size: 14px; line-height: 1.6; }
.registry-import { margin-top: 16px; max-width: 760px; }
dialog { width: min(860px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 28px; color: #202a27; }
dialog::backdrop { background: rgba(20, 38, 29, .4); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dialog-heading h2 { font-size: 20px; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
#case-addresses { border: 1px solid var(--line); padding: 12px 16px; margin: 20px 0; max-height: 240px; overflow-y: auto; }
#case-addresses legend { font-size: 14px; font-weight: 600; }
#case-addresses .checkbox { margin: 8px 0; font-weight: 400; font-size: 14px; min-height: 44px; overflow-wrap: anywhere; }
.basis-note { border-left: 3px solid #b7cdbf; padding: 12px 16px; font-size: 14px; line-height: 1.6; background: #f5f8f4; }
#case-letter { min-height: 340px; line-height: 1.65; font-size: 14px; }
#case-warnings { padding-left: 22px; font-size: 14px; line-height: 1.6; }
#case-fingerprint { overflow-wrap: anywhere; }
#case-target-note { overflow-wrap: anywhere; }
#download-case { display: inline-flex; align-items: center; color: var(--green); }
dialog .checkbox { align-items: flex-start; line-height: 1.5; }
@media (max-width: 700px) {
  dialog { padding: 20px; width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .form-pair { display: block; }
  .hosting-info, .basis-note, #case-addresses .checkbox, #case-warnings { font-size: 14px; }
  #case-letter, .registry-entry details p { font-size: 16px; }
}
.mod-tools .hint { margin: 0; }
.grouping-note { margin: 0 0 20px; }
.build-group { border-top: 2px solid #b7cdbf; padding: 20px 0; }
.build-group h3 { font-size: 16px; margin: 0 0 8px; font-weight: 650; }
.group-names { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; margin: 0 0 12px; }
.group-statuses { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mod-details, .group-servers { margin-top: 8px; }
.mod-details summary, .group-servers summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-size: 14px; color: var(--green); font-weight: 600; }
.mod-list { list-style: none; padding: 0; margin: 12px 0; }
.mod-list li { border-bottom: 1px solid var(--line); padding: 8px 0; overflow-wrap: anywhere; }
.mod-list a { display: flex; align-items: center; min-height: 44px; color: var(--green); text-underline-offset: 3px; font-size: 14px; }
.mod-list small { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; }
.group-servers > .server-row { padding-left: 12px; border-left: 2px solid var(--line); }
@media (max-width: 700px) {
  .mod-list a, .group-names { font-size: 16px; }
  .mod-list small { font-size: 13px; }
}
@media (max-width: 700px) {
  .reason,
  .explanation,
  .empty p,
  .intro > p:last-child,
  .server-name {
    font-size: 16px;
  }
  .badge,
  .server-data,
  .server-data strong,
  .report-meta > span,
  .count span,
  .demo-box > .hint,
  .empty-legend,
  .probe {
    font-size: 13px;
  }
  .table-tools select,
  .text-button {
    font-size: 14px;
  }
}
