:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --code-bg: #e2e8f0;
  --current-bg: #1e293b;
  --current-text: #e2e8f0;
  --info-bg: #f0f9ff;
  --info-border: #38bdf8;
  --info-text: #374151;
  --note-bg: #fffbeb;
  --note-border: #fbbf24;
  --note-text: #78350f;

  --ok: #16a34a;
  --ok-bg: #f0fdf4;
  --ok-border: #bbf7d0;

  --warning: #b45309;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;

  --notice: #c2410c;
  --notice-bg: #fff7ed;
  --notice-border: #fed7aa;

  --error: #dc2626;
  --error-bg: #fef2f2;
  --error-border: #fecaca;

  --radius: 10px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --code-bg: #e2e8f0;
  --current-bg: #1e293b;
  --current-text: #e2e8f0;
  --info-bg: #f0f9ff;
  --info-border: #38bdf8;
  --info-text: #374151;
  --note-bg: #fffbeb;
  --note-border: #fbbf24;
  --note-text: #78350f;
  --ok: #16a34a;
  --ok-bg: #f0fdf4;
  --ok-border: #bbf7d0;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --notice: #c2410c;
  --notice-bg: #fff7ed;
  --notice-border: #fed7aa;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

:root[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #10213d;
  --surface-soft: #163054;
  --border: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --code-bg: #1b355d;
  --current-bg: #1b355d;
  --current-text: #f8fbff;
  --info-bg: #163054;
  --info-border: #60a5fa;
  --info-text: #e6f0ff;
  --note-bg: #2a344d;
  --note-border: #f59e0b;
  --note-text: #fde68a;
  --ok: #22c55e;
  --ok-bg: rgba(34, 197, 94, 0.14);
  --ok-border: rgba(34, 197, 94, 0.35);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.14);
  --warning-border: rgba(245, 158, 11, 0.35);
  --notice: #fb923c;
  --notice-bg: rgba(251, 146, 60, 0.14);
  --notice-border: rgba(251, 146, 60, 0.35);
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.14);
  --error-border: rgba(248, 113, 113, 0.35);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
:root:not([data-theme]) {
    --bg: #0b1220;
    --surface: #10213d;
    --surface-soft: #163054;
    --border: #334155;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --code-bg: #1b355d;
    --current-bg: #1b355d;
    --current-text: #f8fbff;
    --info-bg: #163054;
    --info-border: #60a5fa;
    --info-text: #e6f0ff;
    --note-bg: #2a344d;
    --note-border: #f59e0b;
    --note-text: #fde68a;

    --ok: #22c55e;
    --ok-bg: rgba(34, 197, 94, 0.14);
    --ok-border: rgba(34, 197, 94, 0.35);

    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.14);
    --warning-border: rgba(245, 158, 11, 0.35);

    --notice: #fb923c;
    --notice-bg: rgba(251, 146, 60, 0.14);
    --notice-border: rgba(251, 146, 60, 0.35);

    --error: #f87171;
    --error-bg: rgba(248, 113, 113, 0.14);
    --error-border: rgba(248, 113, 113, 0.35);

    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  background: var(--bg);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Header ── */
header {
  background: #1e293b;
  color: #fff;
  padding: 2.25rem 1.5rem 2rem;
  text-align: center;
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tagline {
  color: #94a3b8;
  font-size: 0.9rem;
}

.theme-toggle {
  position: fixed;
  right: calc(env(safe-area-inset-right, 0px) + 0.75rem);
  top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid rgba(147, 197, 253, 0.55);
  background: rgba(37, 99, 235, 0.42);
  color: #e2e8f0;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  z-index: 30;
}

.theme-toggle:hover {
  background: rgba(37, 99, 235, 0.62);
  border-color: rgba(191, 219, 254, 0.95);
  transform: translateY(-1px) scale(1.03);
}

.theme-toggle:focus-visible,
.scroll-top-btn:focus-visible {
  outline: 2px solid #bfdbfe;
  outline-offset: 2px;
}

.scroll-top-btn {
  position: fixed;
  right: calc(env(safe-area-inset-right, 0px) + 0.75rem);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid rgba(147, 197, 253, 0.55);
  background: rgba(37, 99, 235, 0.42);
  color: #e2e8f0;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
  transition: opacity 0.2s, transform 0.2s, background 0.2s, border-color 0.2s;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  z-index: 30;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: rgba(37, 99, 235, 0.62);
  border-color: rgba(191, 219, 254, 0.95);
}

html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color 260ms ease, color 260ms ease, border-color 260ms ease, box-shadow 260ms ease !important;
}

/* ── Main ── */
main {
  flex: 1;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ── Page transition animations ── */
@keyframes _slide-in-right  { from { transform: translateX(36px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes _slide-in-left   { from { transform: translateX(-36px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes _slide-out-left  { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-36px); opacity: 0; } }
@keyframes _slide-out-right { from { transform: translateX(0); opacity: 1; } to { transform: translateX(36px); opacity: 0; } }
@keyframes _slide-in-down   { from { transform: translateY(-28px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes _slide-in-up     { from { transform: translateY(28px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes _slide-out-up    { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-28px); opacity: 0; } }
@keyframes _slide-out-down  { from { transform: translateY(0); opacity: 1; } to { transform: translateY(28px); opacity: 0; } }

main.slide-in-right  { animation: _slide-in-right  0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
main.slide-in-left   { animation: _slide-in-left   0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
main.slide-out-left  { animation: _slide-out-left  0.18s cubic-bezier(0.55, 0, 1, 0.45) both; }
main.slide-out-right { animation: _slide-out-right 0.18s cubic-bezier(0.55, 0, 1, 0.45) both; }

@media (max-width: 580px) {
  main.slide-in-right  { animation: _slide-in-down  0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
  main.slide-in-left   { animation: _slide-in-up    0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
  main.slide-out-left  { animation: _slide-out-up   0.18s cubic-bezier(0.55, 0, 1, 0.45) both; }
  main.slide-out-right { animation: _slide-out-down 0.18s cubic-bezier(0.55, 0, 1, 0.45) both; }
}

/* ── Search ── */
.search-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.search-row {
  display: flex;
  gap: 0.75rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: "Consolas", "Courier New", monospace;
}

.search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-btn {
  padding: 0.75rem 1.5rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.search-btn:hover  { background: #1d4ed8; }
.search-btn:active { background: #1e40af; }
.search-btn:disabled { background: #93c5fd; cursor: not-allowed; }

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  overflow: hidden;
}

/* ── Provider ── */
.provider-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid #3b82f6;
}

.provider-meta  { display: flex; flex-direction: column; gap: 0.2rem; }
.provider-tenant { display: flex; flex-direction: column; gap: 0.2rem; border-left: 1px solid var(--border); padding-left: 1rem; }

.tenant-name {
  font-family: "Consolas", monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.tenant-unknown {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.provider-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.provider-name { font-weight: 700; font-size: 1rem; }

.ns-records {
  font-family: "Consolas", monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

.portal-link {
  padding: 0.45rem 0.9rem;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}

.portal-link:hover { background: #dbeafe; }

:root[data-theme="dark"] header { background: #020617; }
:root[data-theme="dark"] .search-input,
:root[data-theme="dark"] .domains-input,
:root[data-theme="dark"] .wizard-select {
  background: var(--surface-soft);
  color: var(--text);
}

:root[data-theme="dark"] .section-title,
:root[data-theme="dark"] .check-row:hover,
:root[data-theme="dark"] .inst-table td:first-child {
  background: var(--surface-soft);
}

:root[data-theme="dark"] .check-detail,
:root[data-theme="dark"] .detail-message,
:root[data-theme="dark"] .inst-notes,
:root[data-theme="dark"] .loading-box,
:root[data-theme="dark"] .dropzone:hover,
:root[data-theme="dark"] .dropzone.dragover {
  background: var(--surface-soft);
}

:root[data-theme="dark"] .portal-link {
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
}

:root[data-theme="dark"] .portal-link:hover { background: rgba(59, 130, 246, 0.28); }

:root[data-theme="dark"] code {
  background: var(--code-bg);
  color: var(--text);
}

:root[data-theme="dark"] .current-val {
  background: var(--current-bg);
  color: var(--current-text);
}

:root[data-theme="dark"] .copy-btn,
:root[data-theme="dark"] .search-btn,
:root[data-theme="dark"] .download-btn {
  box-shadow: none;
}

/* ── Summary ── */
.summary {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.share-fab {
  position: fixed;
  left: calc(env(safe-area-inset-left, 0px) + 0.75rem);
  top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
  z-index: 30;
}

.share-fab-trigger {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid rgba(147, 197, 253, 0.55);
  background: rgba(37, 99, 235, 0.42);
  color: #e2e8f0;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
  transition: background 0.2s, border-color 0.2s;
}

.share-fab-trigger:hover {
  background: rgba(37, 99, 235, 0.62);
  border-color: rgba(191, 219, 254, 0.95);
}

.share-fab-popover {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0.75rem;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
  display: none;
}

.share-fab.open .share-fab-popover {
  display: block;
}

.share-fab-option {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
}

.share-fab-action {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.2;
  color: inherit;
  appearance: none;
  cursor: pointer;
}

.share-fab-option:hover {
  background: var(--surface-soft);
}

.share-fab-option.option-mail { color: #2563eb; }
.share-fab-option.option-gmail { color: #dc2626; }
.share-fab-option.option-outlook { color: #0284c7; }

:root[data-theme="dark"] .share-fab-option {
  background: #163054;
  color: #e2e8f0;
}

:root[data-theme="dark"] .share-fab-option:hover {
  background: #1b355d;
}

:root[data-theme="dark"] .share-fab-popover {
  background: #10213d;
  border-color: #334155;
}

.badge {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-ok      { background: var(--ok-bg);      color: var(--ok);      border: 1px solid var(--ok-border); }
.badge-warning { background: var(--warning-bg);  color: var(--warning); border: 1px solid var(--warning-border); }
.badge-notice  { background: var(--notice-bg);   color: var(--notice);  border: 1px solid var(--notice-border); }
.badge-error   { background: var(--error-bg);    color: var(--error);   border: 1px solid var(--error-border); }

/* ── Section title ── */
.section-title {
  padding: 0.85rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

/* ── Check rows ── */
.check-row {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
  user-select: none;
}

.check-row:last-of-type { border-bottom: none; }
.check-row:hover { background: var(--surface-soft); }
.check-row:focus-visible { outline: 2px solid #3b82f6; outline-offset: -2px; }

.check-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Status icon circle */
.status-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.status-ok      { background: var(--ok-bg);      color: var(--ok);      border: 1.5px solid var(--ok-border); }
.status-warning { background: var(--warning-bg);  color: var(--warning); border: 1.5px solid var(--warning-border); }
.status-notice  { background: var(--notice-bg);   color: var(--notice);  border: 1.5px solid var(--notice-border); }
.status-error   { background: var(--error-bg);    color: var(--error);   border: 1.5px solid var(--error-border); }

.check-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.check-label { font-weight: 600; font-size: 0.95rem; }

.check-desc {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.check-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.severity {
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.severity.critical    { background: var(--error-bg);   color: var(--error); }
.severity.recommended { background: #eff6ff;            color: #2563eb; }

:root[data-theme="dark"] .severity.recommended {
  background: #163054;
  color: #bfdbfe;
  border: 1px solid #334155;
}

.expand-icon {
  color: var(--muted);
  font-size: 1.1rem;
  transition: transform 0.2s;
  line-height: 1;
}

.check-row.expanded .expand-icon { transform: rotate(90deg); }

/* ── Detail panel ── */
.check-detail {
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.check-detail.hidden { display: none; }

.detail-content {
  padding: 1rem 1.25rem 1.1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.detail-section > strong {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

/* Code / monospace */
code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.82rem;
  background: var(--code-bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  word-break: break-all;
}

.current-val {
  display: block;
  padding: 0.6rem 0.85rem;
  background: var(--current-bg);
  color: var(--current-text);
  border-radius: 6px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.no-value {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* Instructions table */
.inst-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.inst-table td {
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.inst-table tr:last-child td { border-bottom: none; }

.inst-table td:first-child {
  font-weight: 600;
  color: var(--muted);
  width: 28%;
  background: var(--surface-soft);
  white-space: nowrap;
}

.inst-table code {
  white-space: pre-wrap;
  word-break: break-all;
}

.inst-notes {
  font-size: 0.82rem;
  color: var(--note-text);
  padding: 0.6rem 0.85rem;
  background: var(--note-bg);
  border-left: 3px solid var(--note-border);
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}

.detail-message {
  font-size: 0.82rem;
  color: var(--info-text);
  padding: 0.6rem 0.85rem;
  background: var(--info-bg);
  border-left: 3px solid var(--info-border);
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}

.explain-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
}

.explain-toggle {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}

.explain-toggle::-webkit-details-marker {
  display: none;
}

.explain-content {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.explain-content strong {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
}

/* ── Feedback messages ── */
.loading-box {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.spinner-large {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

.error-box {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error-border);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.trademark-footer {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

:root[data-theme="dark"] .trademark-footer {
  color: #94a3b8;
}

.wizard-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s;
}

.wizard-link:hover {
  background: #dbeafe;
}

:root[data-theme="dark"] .wizard-link {
  background: #163054;
  color: #bfdbfe;
  border: 1px solid #334155;
}

:root[data-theme="dark"] .wizard-link:hover {
  background: #1b355d;
  border-color: #475569;
}

/* ── Utilities ── */
.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 580px) {
  .search-row { flex-direction: column; }
  .provider-card { flex-direction: column; align-items: flex-start; }
  .detail-content { padding-left: 1.25rem; }
  .check-desc { display: none; }
  .severity { display: none; }
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 480px) {
  header { padding: 1.5rem 1rem; }
  main   { padding: 1.25rem 0.75rem; }
  .theme-toggle {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    right: calc(env(safe-area-inset-right, 0px) + 0.5rem);
    top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
  }
  .share-fab {
    left: calc(env(safe-area-inset-left, 0px) + 0.5rem);
    top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
  }
  .share-fab-trigger {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
  .share-fab-popover {
    min-width: 168px;
    left: 0.5rem;
  }
  .scroll-top-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    right: calc(env(safe-area-inset-right, 0px) + 0.5rem);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
  }
  .search-card { padding: 1rem; }
  .summary { flex-wrap: wrap; }
  .check-label { font-size: 0.9rem; }
}
