:root {
  --bg: #ffffff;
  --bg-2: #f4f8f4;
  --panel: #ffffff;
  --stroke: #c9dbc9;
  --text: #1d2a1f;
  --muted: #5f7262;
  --ok: #228b22;
  --accent: var(--ok);
  --accent-soft: #e8f5e8;
  --accent-2: var(--ok);
  --danger: #ff6961;
  --warn: #ffd700;
  --on-accent: #ffffff;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: #ffffff;
}

.bg {
  display: none;
}

.shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.top {
  position: relative;
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  justify-items: center;
}

.top-brand {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.brand-link {
  display: block;
  line-height: 0;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(72px, 12vw, 110px);
  margin: 0;
  object-fit: contain;
}

.top-brand .admin-person-btn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  pointer-events: auto;
}

.top .steps {
  justify-self: center;
  position: relative;
  z-index: 1;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn .material-symbols-outlined {
  font-size: 28px;
  line-height: 1;
}

.icon-btn:hover {
  color: var(--text);
  background: #fafafa;
}

.admin-person-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #d7e0d8;
  background: #fafafa;
  color: var(--muted);
  box-sizing: border-box;
}

.admin-person-btn .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.admin-person-btn:hover {
  color: var(--ok);
  border-color: var(--ok);
  background: #f3faf3;
}

.admin-panel h1 {
  margin: 0 0 8px;
}

#admin-login-panel {
  text-align: center;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(40px, 12vh, 120px);
}

#admin-login-panel .lead {
  margin-left: auto;
  margin-right: auto;
}

#admin-login-panel .admin-login-form {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

#admin-login-panel .actions {
  justify-content: center;
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.admin-login-form {
  max-width: 360px;
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 18px 0 16px;
  padding: 14px;
  border-radius: 14px;
  background: #f7faf7;
  border: 1px solid #e4eee4;
}

.admin-filters .field {
  margin: 0;
  min-width: 150px;
}

.admin-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-reports {
  display: grid;
  gap: 10px;
}

.admin-report-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e4eee4;
  background: #fff;
  text-decoration: none;
  color: inherit;
  text-align: left;
  transition: border-color 0.15s ease;
}

.admin-report-card:hover {
  border-color: rgba(34, 139, 34, 0.5);
}

.admin-report-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-report-main strong {
  overflow-wrap: anywhere;
}

.admin-report-main small,
.admin-report-when {
  color: var(--muted);
}

.admin-report-when {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .admin-report-card {
    grid-template-columns: auto 1fr;
  }

  .admin-report-when {
    grid-column: 2;
    white-space: normal;
  }
}

.top-brand a.admin-person-btn {
  text-decoration: none;
}

.btn-remove {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.steps {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stroke);
  background: var(--bg-2);
  color: var(--muted);
  border-radius: 50%;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
}

.step.is-active {
  color: var(--on-accent);
  border-color: var(--accent);
  background: var(--accent);
}

.step.is-done {
  color: var(--ok);
  border-color: var(--ok);
  background: var(--accent-soft);
}

.step-line {
  width: 28px;
  height: 1px;
  background: var(--stroke);
}

.panel h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  font-weight: 650;
  text-align: center;
}
.lead {
  margin: 0 auto 12px;
  color: var(--muted);
  max-width: 42rem;
  text-align: center;
}

.intro-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  width: min(42rem, 100%);
  margin: 0 auto 24px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #f7faf7;
  background: #f7faf7;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;
  box-sizing: border-box;
}

.form {
  background: #fafafa;
  border: 1px solid #fafafa;
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 18px;
}

.field { display: grid; gap: 8px; }
.field span, .modes legend {
  font-size: 0.85rem;
  color: var(--muted);
}
.field input {
  width: 100%;
  border: 1px solid #fff;
  background: #fafafa;
  color: var(--text);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
}
.field input:focus {
  background: #fafafa;
  outline: 2px solid #fafafa;
  border-color: var(--accent);
}

.input-with-icon {
  position: relative;
  display: block;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 48px;
}

.modes {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.modes legend { margin-bottom: 4px; }

.mode-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.mode {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--bg-2);
  border-radius: 12px;
  background: var(--bg-2);
  cursor: pointer;
  position: relative;
  min-width: 0;
}

.mode:has(input:checked) {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
}

.mode-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.mode strong { display: block; }
.mode-sub {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.mode small { color: var(--muted); }

.mode-tip {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  flex-shrink: 0;
}

.mode-tip .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

.mode-tip:hover,
.mode-tip:focus-visible,
.mode-tip.is-open {
  color: var(--ok);
  outline: none;
}

.mode-tip-bubble {
  position: fixed;
  z-index: 9999;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.mode-tip-bubble[hidden] {
  display: none !important;
}

.mode input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.toggle {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #d7e3d8;
  border: 1px solid var(--stroke);
  position: relative;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(29, 42, 31, 0.12);
  transition: transform 0.18s ease, background 0.18s ease;
}

.mode input:checked + .toggle {
  background: var(--accent);
  border-color: var(--accent);
}

.mode input:checked + .toggle::after {
  transform: translateX(18px);
  background: #ffffff;
}

.mode input:focus-visible + .toggle {
  outline: 2px solid rgba(34, 139, 34, 0.35);
  outline-offset: 2px;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  transition:
    gap 0.28s ease,
    padding 0.28s ease,
    filter 0.2s ease,
    background 0.2s ease;
}
.btn.primary,
.btn.ghost,
.btn.btn-sm {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  font-size: inherit;
}
.btn::after {
  content: "";
  width: 0;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px;
  transition:
    width 0.28s ease,
    opacity 0.2s ease,
    margin 0.28s ease;
}
.btn:hover {
  filter: brightness(0.97);
  gap: 10px;
  padding-right: 12px;
}
.btn:hover::after {
  width: 28px;
  opacity: 1;
}
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  filter: none;
}
.btn:disabled:hover {
  gap: 0;
  padding-right: 20px;
}
.btn:disabled:hover::after {
  width: 0;
  opacity: 0;
}
.hint { color: var(--danger); margin: 0; font-size: 0.9rem; }

.saved { margin-top: 28px; }
.saved[hidden] { display: none !important; }

.saved-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.saved-head h2 {
  margin: 0;
}

.admin-dialog {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 20px;
  width: min(360px, calc(100% - 32px));
  background: #fff;
  color: var(--text);
}

.admin-dialog::backdrop {
  background: rgba(20, 40, 20, 0.35);
}

.admin-dialog h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.admin-dialog .actions {
  margin-top: 12px;
  justify-content: flex-start;
}

.saved h2 {
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}
.saved-list { display: grid; gap: 8px; }
.saved-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  width: 100%;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: inherit;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
}
.saved-item:hover { border-color: rgba(34, 139, 34, 0.5); }
.saved-item small { color: var(--muted); }
.saved-main {
  min-width: 0;
}
.saved-when {
  white-space: nowrap;
}
.score-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.result-head {
  margin: 8px 0 18px;
}

.result-head h1 {
  margin: 0;
  font-size: 1.35rem;
  text-align: left;
}

.score-block {
  margin-bottom: 8px;
}

.score-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.score-top strong {
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 700;
}

.progress {
  width: 100%;
  height: 20px;
  border-radius: 999px;
  background: #e6efe7;
  overflow: hidden;
  border: 1px solid #e6efe7;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--danger) 0%, var(--warn) 50%, var(--ok) 100%);
  transition: width 0.35s ease;
}

.audit-progress {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.audit-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.audit-progress-top strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}

.score-block .lead {
  margin-top: 14px;
  text-align: left;
  max-width: none;
  font-size: 0.92rem;
}

.items { display: grid; gap: 12px; }

.tabs-stack {
  display: grid;
  gap: 12px;
}

.item {
  border: 1px solid var(--stroke);
  background: var(--panel);
  border-radius: 14px;
  overflow: visible;
}

.item.status-no {
  border-color: rgba(255, 105, 97, 0.08);
  background: rgba(255, 105, 97, 0.08);
}

.item.status-partial {
  border-color: rgba(255, 215, 0, 0.14);
  background: rgba(255, 215, 0, 0.14);
}

.item.status-yes,
.item.ok-group,
.item.pages-report-group {
  border-color: rgba(34, 139, 34, 0.06);
  background: rgba(34, 139, 34, 0.06);
}

.item-row {
  width: 100%;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  padding: 12px 10px;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 14px;
}

.item-row:hover { filter: brightness(0.985); }
.item.is-open > .item-row {
  border-radius: 14px 14px 0 0;
}

.status-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-icon .material-symbols-outlined {
  font-size: 28px;
  color: #ffffff;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.status-icon.yes { background: var(--ok); }
.status-icon.no { background: var(--danger); }
.status-icon.partial { background: var(--warn); }
.status-icon.partial .material-symbols-outlined { color: #1a1a1a; }

.item-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.item-label {
  font-weight: 600;
}

.item-summary {
  color: var(--muted);
  font-size: 0.9rem;
}

.expand-icon {
  color: var(--muted);
  font-size: 24px;
  justify-self: end;
  transition: transform 0.18s ease;
}

.item.is-open > .item-row .expand-icon {
  transform: rotate(180deg);
}

.mode-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.detail {
  display: none;
  border-top: 1px solid rgba(34, 50, 36, 0.1);
  padding: 16px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 0 14px 14px;
}
.item.is-open > .detail { display: grid; gap: 14px; }

.ok-group > .item-row,
.pages-report-group > .item-row {
  grid-template-columns: 50px minmax(0, 1fr) 28px;
}

.ok-group-detail {
  gap: 12px !important;
  padding: 12px !important;
}

.pages-report-detail {
  min-width: 0;
}

.ok-group-items {
  display: grid;
  gap: 8px;
}

.ok-group-items .item {
  border-radius: 12px;
}

.ok-group-items .item-row {
  grid-template-columns: 36px minmax(0, 1fr) 28px;
  gap: 10px;
  padding: 10px 8px;
}

.ok-group-items .page-item-row,
.pages-list .page-item-row {
  grid-template-columns: auto minmax(0, 1fr) 28px;
  gap: 12px;
  padding: 10px 12px;
  align-items: center;
}

.ok-group-items .status-icon {
  width: 36px;
  height: 36px;
}

.ok-group-items .page-badges .status-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.ok-group-items .status-icon .material-symbols-outlined {
  font-size: 20px;
}

.ok-group-items .item-summary {
  font-size: 0.85rem;
}

.detail h3 {
  margin: 0;
  font-size: 0.95rem;
}
.detail p {
  margin: 0;
  color: var(--muted);
}

.diff {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.diff-box {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow: visible;
  background: var(--bg);
}
.diff-box header {
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 0;
  color: #fff;
  border-radius: 12px 12px 0 0;
}
.diff-box.before {
  border-color: var(--danger);
}
.diff-box.after {
  border-color: var(--ok);
}
.diff-box.before header {
  background: var(--danger);
  color: #fff;
}
.diff-box.after header {
  background: var(--ok);
  color: #fff;
}

.diff-explain {
  margin: 0;
  padding: 10px 12px;
  background: #fff5f4;
  color: #5c1f1c;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  border-bottom: 1px solid #f0d4d2;
}

.diff-box pre {
  margin: 0;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text);
  border-radius: 0 0 12px 12px;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

.llms-actions {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.llms-actions h3 {
  margin: 0;
  font-size: 0.95rem;
}

.llms-actions p {
  margin: 0;
  color: var(--muted);
}

.llms-preview {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #ffffff;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  max-height: 280px;
  overflow: auto;
}

.llms-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.result-actions {
  margin-top: 28px;
  min-height: 300px;
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid #e4eee4;
  background-color: #f4f8fc;
  background-image: url("img/email-report-bg.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  text-align: left;
  display: flex;
  align-items: center;
}

.result-actions-panel {
  max-width: min(320px, 100%);
  width: 100%;
}

.result-actions .page-footer-actions .btn {
  width: 100%;
  justify-content: center;
}

.result-actions .page-footer-actions .btn:disabled {
  cursor: not-allowed;
}

.result-actions .btn .material-symbols-outlined {
  font-size: 18px;
  margin-right: 2px;
}

.email-pay-price {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.email-pay-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
  margin: 16px 0 0;
  text-align: left;
}

.email-pay-form[hidden] {
  display: none !important;
}

.email-pay-form .field {
  margin: 0;
}

.email-pay-ok {
  margin: 12px 0 0;
  color: var(--ok);
  font-weight: 600;
}

@media (max-width: 720px) {
  .result-actions {
    min-height: 0;
    padding: 22px 18px 180px;
    background-position: right bottom;
    background-size: 320px auto;
    align-items: flex-start;
  }
}

.site-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-url-field {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}

.site-url-row .site-url-field input,
.site-url-row .sitemap-side .btn {
  height: 48px;
  box-sizing: border-box;
}

.site-url-row .site-url-field input {
  padding-top: 0;
  padding-bottom: 0;
}

.site-url-row .sitemap-side .btn {
  padding-top: 0;
  padding-bottom: 0;
  white-space: nowrap;
}

.sitemap-side {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  align-self: center;
}

.sitemap-upload-side {
  display: flex;
  align-items: center;
}

.sitemap-upload-side[hidden] {
  display: none !important;
}

.sitemap-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.sitemap-status-ok {
  color: var(--ok) !important;
}

@media (max-width: 560px) {
  .site-url-row {
    flex-wrap: wrap;
  }

  .sitemap-side {
    width: 100%;
  }

  .sitemap-side .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.site-card {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.site-card-head {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

.compare-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.compare-card {
  background: #fafafa;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.compare-card.is-mine {
  background: var(--accent-soft);
  border-color: rgba(34, 139, 34, 0.35);
}

.compare-card.is-best {
  border-color: var(--ok);
}

.compare-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compare-score {
  width: 72px;
  height: 72px;
  font-size: 1rem;
}

.compare-url {
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--text);
}

.compare-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.site-card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.compare-table-wrap {
  margin-bottom: 24px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: #fff;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

.compare-table thead th {
  background: #f7fbf7;
  font-size: 0.82rem;
}

.compare-table thead small {
  color: var(--muted);
  font-weight: 500;
  word-break: break-all;
}

.compare-table tbody th {
  font-weight: 600;
  max-width: 280px;
}

.compare-table td {
  text-align: center;
  vertical-align: middle;
}

.compare-table td .cmp-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.compare-table td .status-icon {
  margin: 0;
  flex-shrink: 0;
}

.compare-table td .cmp-status-text {
  font-size: 0.85rem;
  line-height: 1.2;
  font-weight: 600;
}

.compare-table td .cmp-status-ratio {
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.compare-table .score-row td {
  text-align: center;
}

.compare-table .is-behind {
  background: rgba(255, 105, 97, 0.08);
}

.cmp-row-label {
  margin-bottom: 4px;
}

.cmp-row-rec {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.cmp-row-rec p {
  margin: 0 0 6px;
}

.cmp-row-rec .rec-steps {
  margin: 0;
  padding-left: 1.25rem;
}

.rec-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  line-height: 1.45;
}

.rec-steps li::marker {
  font-weight: 600;
}

.page-issue .rec-steps {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.score-row th,
.score-row td {
  background: #fafafa;
}


.cmp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cmp-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  border: 1px solid var(--stroke);
  background: #fff;
}

.cmp-pill .material-symbols-outlined {
  font-size: 16px;
}

.cmp-pill.yes { color: var(--ok); }
.cmp-pill.no { color: var(--danger); }
.cmp-pill.partial { color: var(--warn); }


.crawl-toggle {
  margin-top: 2px;
}

.section-title {
  margin: 28px 0 12px;
  font-size: 1.15rem;
  text-align: center;
  color: var(--text);
}

.pages-search-wrap {
  margin: 24px 0 10px;
}

.pages-report-detail .pages-search-wrap {
  margin: 0 0 10px;
}

.pages-loading {
  margin: 0;
  padding: 8px 4px 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.pages-report-icon {
  background: var(--ok);
}

.pages-search-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.pages-search {
  position: relative;
}

.pages-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 20px;
  pointer-events: none;
}

.pages-search input {
  width: 100%;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px 12px 42px;
  font: inherit;
  outline: none;
}

.pages-search input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(34, 139, 34, 0.28);
  outline-offset: 1px;
}

.pages-suggest {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(20, 40, 20, 0.1);
  max-height: 280px;
  overflow: auto;
}

.pages-suggest li {
  margin: 0;
}

.pages-suggest button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 14px;
  font: inherit;
  color: var(--text);
  cursor: pointer;
}

.pages-suggest button:hover,
.pages-suggest button.is-active {
  background: var(--accent-soft);
}

.pages-suggest .suggest-meta {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.pages-list {
  display: grid;
  gap: 8px;
}

.pages-list .page-item.is-filtered-out {
  display: none;
}

.page-item-row {
  grid-template-columns: auto minmax(0, 1fr) 28px;
}

.page-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.page-item .item-main {
  min-width: 0;
}

.page-item .item-label {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-score-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: -0.03em;
  line-height: 1;
}

.affected-pages ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
  display: grid;
  gap: 0;
}

.affected-pages li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(34, 50, 36, 0.08);
}

.affected-pages li:last-child {
  border-bottom: 0;
}

.affected-pages a {
  color: var(--accent);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-status-badge {
  display: inline-block;
  margin-left: 0;
  justify-self: end;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: 5.5rem;
  color: var(--muted);
}

.page-status-badge.yes {
  color: var(--ok);
}

.page-status-badge.partial {
  color: #b8860b;
}

.page-status-badge.no {
  color: var(--danger);
}

.page-issue {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(34, 50, 36, 0.08);
}

.page-issue:last-child {
  border-bottom: 0;
}

.page-issue-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.page-issue-head .status-icon {
  width: 28px;
  height: 28px;
}

.page-issue-head .status-icon .material-symbols-outlined {
  font-size: 16px;
}

.page-issue-head strong {
  min-width: 0;
}

.page-issue-status {
  margin-left: 0;
  justify-self: end;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: 5.5rem;
  color: var(--muted);
}

.page-issue-status.yes { color: var(--ok); }
.page-issue-status.no { color: var(--danger); }
.page-issue-status.partial { color: #b8860b; }

.page-issue p {
  margin: 0;
  color: var(--muted);
}

input[type="file"] {
  width: 100%;
  border: 1px solid #fff;
  background: #fafafa;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
}


.site-footer {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 36px;
  text-align: center;
}

.edu-section {
  width: min(980px, calc(100% - 32px));
  margin: 8px auto 28px;
  padding: 20px 20px 16px;
  border-radius: 16px;
  border: 1px solid #e4eee4;
  background: var(--bg-2);
  box-sizing: border-box;
}

.edu-section-inner {
  text-align: left;
}

.edu-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.edu-section-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

@media (max-width: 520px) {
  .edu-section-head {
    flex-wrap: wrap;
  }
}

.edu-section h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.edu-section .edu-card:first-child {
  border-top: none;
}

.edu-section .edu-card:last-child {
  border-bottom: none;
}

.btn-outline {
  background: #ffffff;
  color: var(--ok);
  border: 2px solid var(--ok);
  text-decoration: none;
  flex-shrink: 0;
}

.btn.btn-outline {
  background: #ffffff;
  color: var(--ok);
  border: 2px solid var(--ok);
}

.btn-outline:hover,
.btn.btn-outline:hover {
  background: #ffffff;
  color: var(--ok);
  border-color: var(--ok);
  filter: none;
}

.btn.btn-outline::after {
  background-color: rgba(34, 139, 34, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23228b22' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

.edu-back a,
.edu-sources a,
.edu-body a {
  color: var(--ok);
  text-decoration: none;
}

.edu-back a:hover,
.edu-sources a:hover,
.edu-body a:hover {
  text-decoration: underline;
}

.edu-list {
  display: grid;
  gap: 0;
}

.edu-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e4eee4;
  color: inherit;
}

.edu-card:first-child {
  border-top: 1px solid #e4eee4;
}

.edu-card-title {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
  min-width: 0;
}

@media (max-width: 520px) {
  .edu-card {
    flex-wrap: wrap;
  }
}

.edu-page .panel {
  text-align: left;
}

.edu-page .edu-article {
  padding-top: 28px;
}

.edu-page .edu-article h1 {
  margin-top: 28px;
  margin-bottom: 12px;
  text-align: left;
}

.edu-page .edu-article .lead {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.edu-back {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.page-back {
  width: min(980px, calc(100% - 32px));
  margin: 8px auto 24px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.edu-article .page-back {
  width: 100%;
  margin: 28px 0 8px;
}

.page-back a {
  color: var(--ok);
  text-decoration: none;
  font-weight: 600;
}

.page-back a:hover {
  text-decoration: underline;
}

.edu-meta {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.edu-body {
  display: grid;
  gap: 0.85rem;
  font-size: 1.02rem;
  line-height: 1.65;
}

.edu-body p {
  margin: 0;
}

.edu-body h2 {
  margin: 1.1rem 0 0.35rem;
  font-size: 1.2rem;
}

.edu-body ul,
.edu-body ol {
  margin: 0;
  padding-left: 1.25rem;
}

.edu-body li {
  margin: 0.35rem 0;
}

.edu-body pre {
  margin: 0.4rem 0 0;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid #e4eee4;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.edu-sources {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e4eee4;
}

.edu-sources h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.edu-sources ul {
  margin: 0;
  padding-left: 1.2rem;
}

.edu-sources li {
  margin: 0.4rem 0;
  line-height: 1.4;
}

.edu-related {
  margin-top: 32px;
  padding: 20px 20px 12px;
  border-radius: 16px;
  border: 1px solid #e4eee4;
  background: var(--bg-2);
}

.edu-related h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.edu-related .edu-list {
  margin: 0;
}

.edu-related .edu-card:first-child {
  border-top: none;
}

.edu-related .edu-card:last-child {
  border-bottom: none;
}

.promo-block {
  margin-top: 28px;
  display: grid;
  gap: 28px;
}

.promo-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #f7faf7;
  background: #f7faf7;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;
}

.promo-note-icon {
  color: var(--ok);
  font-size: 20px;
  line-height: 1.2;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.promo-banner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(200px, 32vw, 280px);
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #f4f7fb;
  text-align: left;
  border: 1px solid #e8eef4;
}

.promo-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
}

.promo-banner-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  justify-items: start;
  max-width: min(22rem, 48%);
  padding: clamp(20px, 4vw, 36px);
}

.promo-banner-title {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
}

.site-footer p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--ok);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.legal-page .edu-body h2 {
  margin: 1.4em 0 0.45em;
  font-size: 1.15rem;
}

.legal-page .edu-body h2:first-child {
  margin-top: 0;
}

.cookie-settings-link {
  border: 0;
  background: transparent;
  color: var(--ok);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.cookie-settings-link:hover {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  width: min(520px, 100%);
  margin: 0;
  display: grid;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.cookie-banner-copy {
  text-align: left;
  color: var(--text);
}

.cookie-banner-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.cookie-banner-copy > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cookie-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  display: grid;
  gap: 6px;
}

.cookie-list strong {
  display: inline;
  font-size: inherit;
  color: var(--text);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cookie-btn-reject {
  background: #fff !important;
  color: var(--text) !important;
  border-color: var(--stroke) !important;
}

.cookie-btn-reject:hover {
  filter: none;
  background: #f7faf7 !important;
}

.cookie-btn-reject::after {
  display: none;
}

@media (max-width: 800px) {
  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-banner-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 800px) {
  .item-row { grid-template-columns: 50px minmax(0, 1fr) 28px; }
  .ok-group > .item-row,
  .pages-report-group > .item-row {
    grid-template-columns: 50px minmax(0, 1fr) 28px;
  }
  .page-item-row,
  .ok-group-items .page-item-row,
  .pages-list .page-item-row {
    grid-template-columns: auto minmax(0, 1fr) 28px;
  }
  .top-brand .admin-person-btn { width: 36px; height: 36px; }

  .promo-banner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .promo-banner-bg {
    position: relative;
    inset: auto;
    order: -1;
    height: auto;
    min-height: 160px;
    object-fit: cover;
    object-position: right center;
  }

  .promo-banner-copy {
    max-width: none;
    padding: 18px 18px 22px;
  }
}

@media (min-width: 801px) {
  .promo-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.72) 34%,
      rgba(255, 255, 255, 0) 58%
    );
    pointer-events: none;
  }
}
