:root {
  --bg: #f6f7fb;
  --text: #172033;
  --muted: #667085;
  --card: #ffffff;
  --line: #e5e7eb;
  --accent: #2f6fed;
  --accent-soft: #e8f0ff;
  --good-bg: #e6fffb;
  --warn-bg: #fff7df;
  --bad-bg: #fff1f0;
  --shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  z-index: 10;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 800;
  font-size: 20px;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}

nav a small {
  display: block;
  font-weight: 500;
  font-size: 12px;
}

.nav-label-short {
  display: none;
}

nav a.active,
nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.hero { padding: 48px 0 24px; }

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 8px;
}

h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  margin: 0;
}

h1 span {
  display: block;
  font-size: 0.52em;
  color: var(--muted);
  margin-top: 10px;
  font-weight: 700;
}

h2 small,
label small {
  display: block;
  font-size: 0.72em;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 600;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 760px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.card.wide { grid-column: 1 / -1; }

.highlight { background: linear-gradient(135deg, #ffffff, #eef4ff); }

.big {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  margin: 4px 0;

  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.3;
}

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
}

.hint {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f2f4f7;
  border-radius: 12px;
  padding: 10px 12px;
}

.wrap { word-break: break-word; }

.note {
  margin: 24px 0 48px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  padding: 20px;
  color: var(--muted);
}

.note h2 {
  margin-top: 0;
  color: var(--text);
}

.domain-form label {
  display: block;
  font-weight: 800;
  margin-bottom: 10px;
}

.form-row {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
}

button {
  border: 0;
  background: var(--accent);
  color: white;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
}

button:hover { opacity: 0.92; }

.result.good {
  border-color: #99f6e4;
  background: var(--good-bg);
}

.result.warn {
  border-color: #fde68a;
  background: var(--warn-bg);
}

.result.bad {
  border-color: #fecaca;
  background: var(--bad-bg);
}

.status {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 8px;
}

.record-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.record-list li {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.empty { color: var(--muted); }

.footer {
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0 40px;
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  nav a {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
    background: #f8fbff;
    border: 1px solid #d7e2f3;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  }

  nav a:nth-child(1),
  nav a:nth-child(2) {
    grid-column: span 3;
  }

  nav a:nth-child(3),
  nav a:nth-child(4),
  nav a:nth-child(5) {
    grid-column: span 2;
  }

  nav a small {
    display: none;
  }

  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .form-row { flex-direction: column; }

  button { width: 100%; }
}


.tool-section {
  margin-top: 22px;
}

.tool-section h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.tool-section h3 small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 12px;
  margin-top: 12px;
}

.tool-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  transition: all 0.15s ease;
}

.tool-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.tool-card strong {
  display: block;
  margin-bottom: 6px;
}

.tool-card span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.hero h1 {
  max-width: 720px;
}

.hero .lead {
  max-width: 760px;
}


.record-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.record-table th,
.record-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.record-table th {
  color: var(--muted);
  font-size: 14px;
}

.record-table td {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.multi-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: end;
  padding: 48px 0 24px;
}

.multi-hero-panel,
.multi-info-panel,
.multi-shell,
.multi-status-card,
.multi-result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.multi-hero-panel {
  padding: 18px;
  color: var(--muted);
}

.multi-hero-panel strong,
.multi-info-panel strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.multi-hero-panel p,
.multi-info-panel p,
.multi-section-heading p {
  margin: 0;
  color: var(--muted);
}

.multi-info-panel {
  padding: 18px 20px;
  margin-bottom: 16px;
  background: #ffffff;
  border-left: 4px solid var(--accent);
}

.multi-shell {
  padding: 22px;
}

.multi-form label {
  font-weight: 800;
}

.multi-input-card {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.multi-input-card label {
  display: block;
  margin-bottom: 10px;
}

.multi-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.primary-action {
  min-height: 50px;
  padding-inline: 22px;
  box-shadow: 0 10px 20px rgba(47, 111, 237, 0.22);
}

.secondary-action {
  background: #ffffff;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 10px 14px;
}

.multi-selection {
  margin-top: 20px;
}

.multi-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.multi-section-heading h2 {
  margin: 0;
  font-size: 18px;
}

.check-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.check-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}

.check-chip:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.check-chip input {
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--accent);
}

.check-chip span {
  font-weight: 850;
}

.check-chip small {
  color: var(--muted);
  font-size: 12px;
}

.multi-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  padding: 16px 18px;
  color: var(--muted);
}

.multi-status-card p {
  margin: 0;
}

.multi-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.multi-result-card {
  padding: 20px;
}

.multi-result-card.good {
  border-color: #99f6e4;
}

.multi-result-card.warn {
  border-color: #fde68a;
}

.multi-result-card.bad {
  border-color: #fecaca;
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.result-card-header h2 {
  margin: 0;
  font-size: 18px;
}

.result-badge {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.result-badge.good,
.result-badge.complete {
  background: var(--good-bg);
  color: #047857;
}

.result-badge.warn {
  background: var(--warn-bg);
  color: #a16207;
}

.result-badge.bad {
  background: var(--bad-bg);
  color: #b42318;
}

.summary-list,
.key-record-list {
  padding-left: 18px;
  margin: 10px 0 0;
}

.summary-list li,
.key-record-list li {
  margin: 7px 0;
  overflow-wrap: anywhere;
}

.key-record-list li {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.raw-result {
  margin-top: 14px;
}

.raw-result summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}

.raw-result pre {
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
}

@media (max-width: 720px) {
  .multi-hero,
  .multi-results-grid {
    grid-template-columns: 1fr;
  }

  .multi-input-row,
  .multi-section-heading,
  .multi-status-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
}

.multi-page-shell {
  margin: 28px 0 56px;
  padding: 28px;
  border: 1px solid #dbe5f6;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(232, 240, 255, 0.92), rgba(230, 255, 251, 0.72)),
    #f8fbff;
}

.multi-page-shell .multi-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: stretch;
  padding: 16px 0 22px;
}

.multi-en {
  display: block;
}

.multi-ja,
.multi-helper,
.multi-field-helper,
.multi-action-helper,
.multi-clear-helper {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.multi-ja {
  display: block;
  margin-top: 3px;
}

.lead .multi-ja,
.multi-note-panel .multi-ja,
.multi-info-panel .multi-ja,
.multi-hero-card .multi-ja {
  font-size: 0.86em;
}

.multi-scope-row .multi-ja {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  font-style: normal;
  font-size: 12px;
}

.multi-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
}

.multi-hero-copy h1 {
  font-size: clamp(42px, 7vw, 74px);
}

.multi-hero-copy .lead {
  max-width: 680px;
  margin-bottom: 0;
}

.multi-scope-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
}

.multi-scope-row span,
.multi-scope-row strong,
.multi-mini-label,
.multi-soft-pill,
.multi-option-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
}

.multi-scope-row span {
  padding: 8px 11px;
  color: #2563eb;
  background: #dbeafe;
}

.multi-scope-row strong {
  padding: 8px 12px;
  color: #047857;
  background: #d1fae5;
}

.multi-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(47, 111, 237, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.12);
}

.multi-hero-card strong {
  display: block;
  margin: 16px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.multi-hero-card p {
  margin: 0;
  color: var(--muted);
}

.multi-mini-label {
  padding: 8px 10px;
  color: #0f766e;
  background: #ccfbf1;
}

.multi-info-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  margin: 2px 0 18px;
  border: 1px solid #c7d7fe;
  border-left: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.multi-info-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #2f6fed;
  font-weight: 900;
}

.multi-info-panel p {
  margin: 0;
  color: #344054;
}

.multi-dashboard {
  display: grid;
  gap: 18px;
}

.multi-control-card,
.multi-status-panel,
.multi-note-panel,
.multi-result-card {
  border: 1px solid #dbe5f6;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.08);
}

.multi-control-card {
  padding: 22px;
}

.multi-form {
  display: grid;
  gap: 18px;
}

.multi-control-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.multi-kicker {
  margin: 0 0 5px;
  color: #2f6fed;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.multi-control-heading h2 {
  margin: 0;
  font-size: 22px;
}

.multi-soft-pill {
  padding: 8px 11px;
  color: #475467;
  background: #f2f4f7;
}

.multi-control-card label:not(.multi-check-option) {
  display: block;
  margin-bottom: 6px;
  font-weight: 850;
}

.multi-field-helper,
.multi-action-helper {
  margin: 0 0 10px;
}

.multi-action-helper {
  margin: 8px 0 0;
}

.multi-domain-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.multi-domain-row input {
  min-height: 54px;
  border-radius: 16px;
  background: #fbfdff;
}

.multi-primary-action {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2f6fed, #0f766e);
  box-shadow: 0 16px 26px rgba(47, 111, 237, 0.24);
  white-space: nowrap;
}

.multi-form :disabled {
  cursor: wait;
  opacity: 0.68;
}

.multi-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.multi-check-category-heading {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 8px 0 2px;
  border-bottom: 1px solid #dbe5f6;
}

.multi-check-category-heading h3 {
  margin: 0;
  color: #475467;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.multi-check-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 7px 10px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.multi-check-option:hover {
  border-color: #9bbcff;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.multi-check-option:has(input:checked) {
  border-color: #2f6fed;
  background: linear-gradient(180deg, #ffffff, #eef5ff);
  box-shadow: 0 14px 30px rgba(47, 111, 237, 0.16);
}

.multi-check-option input {
  grid-row: 1 / span 3;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: #2f6fed;
}

.multi-check-option strong {
  font-size: 18px;
  line-height: 1.2;
}

.multi-check-option small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.multi-option-badge {
  padding: 6px 8px;
  letter-spacing: 0.04em;
}

.multi-option-badge.dns {
  color: #2563eb;
  background: #dbeafe;
}

.multi-option-badge.web {
  color: #0f766e;
  background: #ccfbf1;
}

.multi-option-badge.ip {
  color: #047857;
  background: #d1fae5;
}

.multi-option-badge.mail {
  color: #7c3aed;
  background: #ede9fe;
}

.multi-status-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
}

.multi-status-panel.validation-warning {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18), 0 16px 34px rgba(16, 24, 40, 0.08);
}

.multi-status-panel.validation-warning #multi-check-status {
  color: #92400e;
}

.multi-status-panel p {
  margin: 0;
}

.multi-status-panel #multi-check-status {
  color: #344054;
  font-weight: 800;
}

.multi-status-summary {
  margin-top: 6px !important;
  color: var(--muted);
  font-size: 14px;
}

.multi-status-summary .multi-en,
.multi-status-summary .multi-ja {
  display: inline;
}

.multi-clear-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.multi-clear-helper {
  max-width: 180px;
  text-align: right;
}

.multi-secondary-action {
  background: #ffffff;
  color: #2f6fed;
  border: 1px solid #b8ccff;
  border-radius: 14px;
  padding: 11px 14px;
  white-space: nowrap;
}

#multi-check-clear.multi-secondary-action {
  background: #dbeafe;
  color: #1e40af;
  border-color: #60a5fa;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.multi-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.multi-result-card {
  padding: 20px;
}

.multi-result-card.good {
  border-color: #99f6e4;
  border-left: 4px solid #10b981;
  background: #f0fdf4;
}

.multi-result-card.warning {
  border-color: #fde68a;
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
}

.multi-result-card.failed {
  border-color: #fecaca;
  border-left: 4px solid #ef4444;
  background: #fff1f2;
}

.multi-result-card.completed {
  border-color: #b8ccff;
  border-left: 4px solid #94a3b8;
  background: #f8fafc;
}

.multi-result-card.pending {
  border-color: #bfdbfe;
  border-left: 4px solid #3b82f6;
  background: #eff6ff;
}

.multi-result-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.multi-result-header h2 {
  margin: 0;
  font-size: 20px;
}

.multi-badge {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.multi-badge.good {
  color: #047857;
  background: #d1fae5;
}

.multi-badge.warning {
  color: #a16207;
  background: #fef3c7;
}

.multi-badge.failed {
  color: #b42318;
  background: #fee2e2;
}

.multi-badge.completed {
  color: #2563eb;
  background: #dbeafe;
}

.multi-badge.pending {
  color: #1d4ed8;
  background: #dbeafe;
}

.multi-result-section {
  margin-top: 13px;
}

.multi-result-section h3 {
  margin: 0 0 6px;
  color: #475467;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.multi-summary-list,
.multi-key-list {
  padding-left: 18px;
  margin: 0;
}

.multi-summary-list li,
.multi-key-list li {
  margin: 7px 0;
  overflow-wrap: anywhere;
}

.multi-key-list li {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.multi-empty-message .multi-ja,
.multi-details summary .multi-ja {
  font-size: 12px;
}

.multi-details summary .multi-en,
.multi-details summary .multi-ja {
  display: inline;
}

.multi-details summary .multi-ja::before,
.multi-status-summary .multi-ja::before {
  content: " / ";
}

.multi-details {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.multi-details summary {
  cursor: pointer;
  color: #2f6fed;
  font-weight: 850;
}

.multi-details pre {
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
}

.multi-note-panel {
  margin-top: 18px;
  padding: 20px;
  color: var(--muted);
}

.multi-note-panel h2 {
  margin-top: 0;
  color: var(--text);
}

@media (max-width: 720px) {
  .multi-page-shell {
    padding: 18px;
  }

  .multi-page-shell .multi-hero,
  .multi-domain-row,
  .multi-status-panel,
  .multi-results-grid {
    grid-template-columns: 1fr;
  }

  .multi-status-panel {
    align-items: stretch;
  }

  .multi-clear-actions {
    justify-items: stretch;
  }

  .multi-clear-helper {
    max-width: none;
    text-align: left;
  }
}

.multi-scope-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--accent-soft);
}

.multi-scope-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.multi-results-grid:empty {
  display: none;
}

.multi-scope-note a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.multi-scope-note a:hover {
  text-decoration: underline;
}

.multi-hero-card a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.multi-hero-card a:hover {
  text-decoration: underline;
}

.multi-clear-actions[hidden] {
  display: none !important;
}

/* Simple dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --card: #111827;
    --line: #334155;
    --accent: #8ab4ff;
    --accent-soft: rgba(47, 111, 237, 0.2);
    --good-bg: rgba(4, 120, 87, 0.18);
    --warn-bg: rgba(161, 98, 7, 0.2);
    --bad-bg: rgba(180, 35, 24, 0.2);
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  }

  body {
    color-scheme: dark;
  }

  .site-header {
    background: rgba(15, 23, 42, 0.86);
  }

  input,
  .mono,
  .note,
  .tool-card,
  .multi-info-panel,
  .multi-hero-card,
  .multi-control-card,
  .multi-status-panel,
  .multi-note-panel,
  .multi-result-card,
  .check-chip,
  .multi-check-option,
  .multi-secondary-action {
    background: #111827;
    border-color: var(--line);
  }

  .highlight,
  .multi-page-shell,
  .multi-check-option:has(input:checked) {
    background: linear-gradient(135deg, #111827, #172033);
  }

  input {
    color: var(--text);
  }

  input::placeholder {
    color: #64748b;
  }

  .multi-info-panel p,
  .multi-status-panel #multi-check-status,
  .multi-check-category-heading h3,
  .multi-result-section h3 {
    color: var(--muted);
  }

  .multi-check-category-heading {
    border-color: var(--line);
  }

  .multi-result-card.good {
    border-color: rgba(16, 185, 129, 0.45);
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
  }

  .multi-result-card.warning {
    border-color: rgba(245, 158, 11, 0.46);
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
  }

  .multi-result-card.failed {
    border-color: rgba(239, 68, 68, 0.46);
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
  }

  .multi-result-card.completed {
    border-color: rgba(148, 163, 184, 0.42);
    border-left-color: #64748b;
    background: rgba(148, 163, 184, 0.08);
  }

  .multi-result-card.pending {
    border-color: rgba(59, 130, 246, 0.48);
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
  }

  #multi-check-clear.multi-secondary-action {
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.28);
    border-color: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
  }

  nav a {
    background: #111827;
    border-color: var(--line);
  }

  nav a.active,
  nav a:hover {
    background: var(--accent-soft);
    color: var(--accent);
  }
}
/* End simple dark mode support */

.public-view {
  --public-bg: #f6efe2;
  --public-surface: rgba(255, 250, 240, 0.92);
  --public-surface-strong: rgba(255, 248, 235, 0.98);
  --public-text: #322217;
  --public-muted: #6f5745;
  --public-line: rgba(84, 55, 34, 0.24);
  --public-accent: #735033;
  --public-shadow: 0 18px 42px rgba(73, 48, 30, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.78), rgba(246, 239, 226, 0.98)),
    var(--public-bg);
  color: var(--public-text);
}

.public-view .public-header {
  background: rgba(255, 248, 235, 0.92);
  border-bottom: 1px solid var(--public-line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.public-header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.public-view .public-brand {
  color: var(--public-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.public-view .public-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.public-view .public-nav a {
  padding: 8px 0 7px;
  border-bottom: 1px solid transparent;
  color: var(--public-text);
  background: transparent;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.public-view .public-nav a:hover,
.public-view .public-nav a:focus-visible,
.public-view .public-nav a.active {
  background: transparent;
  border-bottom-color: rgba(115, 80, 51, 0.52);
  color: var(--public-accent);
}

.public-nav a small,
.public-nav-note small {
  color: var(--public-muted);
  font-size: 12px;
  font-weight: 600;
}

.public-nav-note {
  align-self: center;
  color: var(--public-muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.public-main {
  padding-bottom: 32px;
}

.public-hero {
  padding: 58px 0 30px;
}

.public-hero h1 {
  max-width: 820px;
  color: var(--public-text);
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.06;
}

.public-hero h1 span {
  color: var(--public-muted);
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 600;
  line-height: 1.45;
}

.public-hero .lead {
  max-width: 760px;
  margin: 16px 0 10px;
  color: var(--public-text);
}

.public-en {
  max-width: 780px;
  margin: 0;
  color: var(--public-muted);
  font-size: 16px;
  line-height: 1.75;
}

.public-notice,
.public-safety-note {
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid var(--public-line);
  border-radius: 10px;
  background: var(--public-surface);
  box-shadow: var(--public-shadow);
}

.public-notice strong,
.public-safety-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--public-text);
}

.public-notice p,
.public-safety-note p {
  margin: 6px 0 0;
  color: var(--public-muted);
}

.public-tool-shell {
  margin-bottom: 40px;
}

.public-multi-shell {
  margin-top: 0;
  margin-bottom: 0;
  border: 1px solid var(--public-line);
  border-radius: 10px;
  background: var(--public-surface-strong);
  box-shadow: var(--public-shadow);
}

.public-planned-note {
  align-self: center;
  padding: 18px 20px;
  border: 1px solid rgba(115, 80, 51, 0.2);
  border-radius: 10px;
  background: rgba(180, 138, 103, 0.16);
  color: var(--public-muted);
}

.public-planned-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--public-text);
  font-size: 18px;
  line-height: 1.35;
}

.public-planned-note p {
  margin: 0;
}

.public-multi-heading h2 {
  margin: 0;
  color: var(--public-text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0;
}

.public-multi-heading h2 small {
  display: block;
  margin-top: 8px;
  color: var(--public-muted);
  font-size: 0.45em;
  font-weight: 750;
}

.public-view .eyebrow,
.public-view .multi-kicker {
  color: var(--public-muted);
  letter-spacing: 0;
}

.public-view .multi-page-shell,
.public-view .multi-control-card,
.public-view .multi-status-panel,
.public-view .multi-scope-note,
.public-view .multi-result-card {
  border-color: var(--public-line);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: none;
}

.public-view .multi-hero {
  border-bottom-color: var(--public-line);
}

.public-view .multi-control-heading h2,
.public-view .multi-control-card label,
.public-view .multi-status-panel #multi-check-status,
.public-view .multi-check-option strong,
.public-view .multi-result-header h3 {
  color: var(--public-text);
}

.public-view .multi-field-helper,
.public-view .multi-action-helper,
.public-view .multi-ja,
.public-view .multi-clear-helper,
.public-view .multi-check-option small,
.public-view .multi-scope-note,
.public-view .multi-status-summary {
  color: var(--public-muted);
}

.public-view .multi-domain-row input {
  border-color: rgba(84, 55, 34, 0.32);
  background: #fff8eb;
  color: var(--public-text);
}

.public-view .multi-domain-row input:focus {
  border-color: rgba(123, 85, 56, 0.54);
  box-shadow: 0 0 0 3px rgba(180, 138, 103, 0.22);
}

.public-view .multi-check-option input {
  accent-color: var(--public-accent);
}

.public-view .multi-primary-action {
  background: linear-gradient(180deg, #815a39, #68452d);
  box-shadow: 0 10px 22px rgba(84, 55, 34, 0.2);
}

.public-view .multi-primary-action:hover {
  background: linear-gradient(180deg, #735033, #583923);
}

.public-view .multi-secondary-action {
  border-color: rgba(84, 55, 34, 0.28);
  background: #fff8eb;
  color: var(--public-text);
}

.public-view #multi-check-clear.multi-secondary-action {
  border-color: rgba(115, 80, 51, 0.34);
  background: rgba(238, 224, 204, 0.78);
  color: var(--public-accent);
  box-shadow: 0 8px 18px rgba(84, 55, 34, 0.12);
}

.public-view .multi-soft-pill,
.public-view .multi-option-badge,
.public-view .multi-badge {
  border-color: rgba(115, 80, 51, 0.22);
  background: rgba(115, 80, 51, 0.13);
  color: var(--public-accent);
}

.public-view .multi-check-option {
  border-color: var(--public-line);
  background: rgba(255, 248, 235, 0.9);
}

.public-view .multi-check-option:hover,
.public-view .multi-check-option:has(input:checked) {
  border-color: rgba(115, 80, 51, 0.42);
  background: rgba(238, 224, 204, 0.78);
  box-shadow: none;
}

.public-view .multi-check-category-heading {
  border-bottom-color: var(--public-line);
  color: var(--public-muted);
}

.public-view .mono,
.public-view code,
.public-view .raw-result pre,
.public-view .multi-details pre {
  border-color: var(--public-line);
  background: #fff7e8;
  color: var(--public-text);
}

.public-view .multi-details summary {
  color: var(--public-accent);
}

.public-view .multi-details summary .multi-en,
.public-view .multi-details summary .multi-ja,
.public-view .multi-details summary::marker {
  color: var(--public-muted);
}

.public-view .multi-details summary:hover,
.public-view .multi-details summary:focus-visible {
  color: #5a3924;
}

.public-view .multi-details summary:hover .multi-en,
.public-view .multi-details summary:hover .multi-ja,
.public-view .multi-details summary:focus-visible .multi-en,
.public-view .multi-details summary:focus-visible .multi-ja,
.public-view .multi-details summary:hover::marker,
.public-view .multi-details summary:focus-visible::marker {
  color: var(--public-accent);
}

.public-view .mono a,
.public-view code a,
.public-view .raw-result a,
.public-view .raw-result pre a,
.public-view .multi-details a,
.public-view .multi-details pre a,
.public-view .multi-result-card a {
  color: var(--public-accent);
}

.public-view .mono a:hover,
.public-view code a:hover,
.public-view .raw-result a:hover,
.public-view .multi-details a:hover,
.public-view .multi-result-card a:hover {
  color: #5a3924;
}

.public-view .multi-result-card.good {
  border-color: rgba(98, 111, 68, 0.34);
  border-left-color: #7b7a42;
  background: rgba(247, 244, 222, 0.9);
}

.public-view .multi-result-card.warning {
  border-color: rgba(172, 110, 31, 0.44);
  border-left-color: #b56f24;
  background: rgba(252, 232, 190, 0.78);
}

.public-view .multi-result-card.failed {
  border-color: rgba(151, 72, 51, 0.46);
  border-left-color: #9a4b36;
  background: rgba(249, 220, 208, 0.76);
}

.public-view .multi-result-card.completed,
.public-view .multi-result-card.pending {
  border-color: var(--public-line);
  border-left-color: var(--public-accent);
  background: rgba(255, 250, 240, 0.9);
}

.public-view .multi-badge.good {
  background: rgba(123, 122, 66, 0.18);
  color: #55572d;
}

.public-view .multi-badge.warning {
  background: rgba(181, 111, 36, 0.18);
  color: #7a4a18;
}

.public-view .multi-badge.failed {
  background: rgba(154, 75, 54, 0.18);
  color: #743627;
}

.public-view .multi-badge.completed,
.public-view .multi-badge.pending {
  background: rgba(115, 80, 51, 0.13);
  color: var(--public-accent);
}

.public-footer {
  padding-bottom: 40px;
}

@media (max-width: 720px) {
  .public-header-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .public-header-inner {
    min-height: 0;
    padding: 10px 0 8px;
    gap: 8px;
  }

  .public-view .public-brand {
    font-size: 14px;
    line-height: 1.2;
  }

  .public-view .public-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .public-view .public-nav a {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border: 1px solid rgba(84, 55, 34, 0.18);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.72);
    color: #4b3020;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-align: center;
  }

  .public-view .public-nav a:hover,
  .public-view .public-nav a:focus-visible,
  .public-view .public-nav a.active {
    border-color: rgba(115, 80, 51, 0.34);
    background: rgba(255, 248, 235, 0.95);
    color: #5a3924;
  }

  .public-nav-note {
    text-align: left;
  }

  .public-main {
    padding-bottom: 20px;
  }

  .public-hero {
    padding: 24px 0 18px;
  }

  .public-hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .public-hero h1 span {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.38;
  }

  .public-hero .lead {
    margin-top: 12px;
  }

  .public-en {
    font-size: 14px;
    line-height: 1.65;
  }

  .public-notice,
  .public-safety-note,
  .public-planned-note {
    padding: 16px;
  }

  .public-notice,
  .public-safety-note {
    margin-top: 16px;
  }

  .public-multi-shell {
    border-radius: 8px;
  }

  .public-view .multi-hero {
    gap: 16px;
    padding: 20px 16px;
  }

  .public-multi-heading h2 {
    font-size: 28px;
    line-height: 1.18;
  }

  .public-view .multi-control-card,
  .public-view .multi-status-panel,
  .public-view .multi-scope-note {
    padding: 16px;
    border-radius: 8px;
  }

  .public-view .multi-domain-row {
    gap: 10px;
  }

  .public-view .multi-primary-action {
    min-height: 44px;
  }

  .public-view .multi-check-grid {
    gap: 10px;
  }

  .public-view .multi-check-option {
    padding: 14px;
  }

  .public-view .multi-check-option small,
  .public-view .multi-scope-note,
  .public-view .multi-field-helper,
  .public-view .multi-action-helper {
    line-height: 1.62;
  }
}

@media (prefers-color-scheme: dark) {
  .public-view {
    --public-bg: #211913;
    --public-surface: rgba(49, 38, 30, 0.86);
    --public-surface-strong: rgba(42, 32, 25, 0.96);
    --public-text: #f3e8d9;
    --public-muted: #c8ad94;
    --public-line: rgba(232, 208, 181, 0.18);
    --public-accent: #e0ba94;
    --public-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    background: var(--public-bg);
  }

  .public-header {
    background: rgba(33, 25, 19, 0.9);
  }

  .public-notice,
  .public-safety-note,
  .public-planned-note {
    background: var(--public-surface);
    border-color: var(--public-line);
  }

  .public-view .mono,
  .public-view code,
  .public-view .raw-result pre,
  .public-view .multi-details pre,
  .public-view .multi-secondary-action,
  .public-view #multi-check-clear.multi-secondary-action {
    background: rgba(68, 52, 41, 0.78);
    border-color: var(--public-line);
    color: var(--public-text);
  }

  .public-view .multi-details summary {
    color: var(--public-accent);
  }

  .public-view .multi-details summary .multi-en,
  .public-view .multi-details summary .multi-ja,
  .public-view .multi-details summary::marker {
    color: var(--public-muted);
  }

  .public-view .multi-details summary:hover,
  .public-view .multi-details summary:focus-visible,
  .public-view .multi-details summary:hover .multi-en,
  .public-view .multi-details summary:hover .multi-ja,
  .public-view .multi-details summary:focus-visible .multi-en,
  .public-view .multi-details summary:focus-visible .multi-ja,
  .public-view .multi-details summary:hover::marker,
  .public-view .multi-details summary:focus-visible::marker {
    color: #f0d0aa;
  }

  .public-view .multi-result-card.good {
    border-color: rgba(168, 160, 102, 0.42);
    border-left-color: #b8ab6a;
    background: rgba(112, 105, 62, 0.24);
  }

  .public-view .multi-result-card.warning {
    border-color: rgba(214, 146, 67, 0.48);
    border-left-color: #d69243;
    background: rgba(143, 86, 32, 0.25);
  }

  .public-view .multi-result-card.failed {
    border-color: rgba(191, 103, 78, 0.52);
    border-left-color: #bf674e;
    background: rgba(129, 58, 43, 0.28);
  }

  .public-view .mono a,
  .public-view code a,
  .public-view .raw-result a,
  .public-view .raw-result pre a,
  .public-view .multi-details a,
  .public-view .multi-details pre a,
  .public-view .multi-result-card a {
    color: var(--public-accent);
  }

  .public-view .mono a:hover,
  .public-view code a:hover,
  .public-view .raw-result a:hover,
  .public-view .multi-details a:hover,
  .public-view .multi-result-card a:hover {
    color: #f0d0aa;
  }

  .public-view .multi-result-card.completed,
  .public-view .multi-result-card.pending {
    border-color: var(--public-line);
    border-left-color: var(--public-accent);
    background: rgba(49, 38, 30, 0.82);
  }

  .public-view .multi-badge.good {
    background: rgba(184, 171, 106, 0.2);
    color: #e8ddb0;
  }

  .public-view .multi-badge.warning {
    background: rgba(214, 146, 67, 0.2);
    color: #f0c58d;
  }

  .public-view .multi-badge.failed {
    background: rgba(191, 103, 78, 0.22);
    color: #efb09c;
  }
}

body.public-view .multi-results-grid .multi-result-card .multi-details > summary {
  color: var(--public-accent) !important;
}

body.public-view .multi-results-grid .multi-result-card .multi-details > summary .multi-en,
body.public-view .multi-results-grid .multi-result-card .multi-details > summary .multi-ja {
  color: var(--public-muted) !important;
}

body.public-view .multi-results-grid .multi-result-card .multi-details > summary:hover,
body.public-view .multi-results-grid .multi-result-card .multi-details > summary:focus-visible {
  color: #5a3924 !important;
}

body.public-view .multi-results-grid .multi-result-card .multi-details > summary:hover .multi-en,
body.public-view .multi-results-grid .multi-result-card .multi-details > summary:hover .multi-ja,
body.public-view .multi-results-grid .multi-result-card .multi-details > summary:focus-visible .multi-en,
body.public-view .multi-results-grid .multi-result-card .multi-details > summary:focus-visible .multi-ja {
  color: var(--public-accent) !important;
}

body.public-view .multi-results-grid .multi-result-card .multi-details > summary::marker,
body.public-view .multi-results-grid .multi-result-card .multi-details > summary::-webkit-details-marker {
  color: var(--public-muted) !important;
}

body.public-view .multi-results-grid .multi-result-card .multi-details > summary:hover::marker,
body.public-view .multi-results-grid .multi-result-card .multi-details > summary:hover::-webkit-details-marker,
body.public-view .multi-results-grid .multi-result-card .multi-details > summary:focus-visible::marker,
body.public-view .multi-results-grid .multi-result-card .multi-details > summary:focus-visible::-webkit-details-marker {
  color: var(--public-accent) !important;
}
