/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===================== BRAND MARK ===================== */
.brand-mark {
  display: inline-block;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-mark-xs { width: 22px; height: 22px; }
.brand-mark-sm { width: 26px; height: 26px; }
.brand-mark-md { width: 32px; height: 32px; }
.brand-mark-lg { width: 44px; height: 44px; }
.brand-mark-hero { width: 56px; height: 56px; margin-bottom: 24px; }

/* Horizontal logo for dark panel hero */
.auth-hero-logo {
  display: block;
  width: 192px;
  height: auto;
  margin-bottom: 32px;
}

:root {
  --primary:        #2563EB;
  --primary-dark:   #1D4ED8;
  --primary-light:  #EFF6FF;
  --accent:         #0EA5E9;
  --accent-grad:    #38BDF8;
  --dark:           #281934;
  --charcoal:       #3A2550;
  --gray-600:       #475569;
  --gray-500:       #64748B;
  --gray-300:       #CBD5E1;
  --gray-200:       #E2E8F0;
  --gray-100:       #F1F5F9;
  --border:         #E2E8F0;
  --white:          #FFFFFF;
  --btn-dark:       #281934;
  --btn-dark-hover: #3A2550;
  --danger:         #DC2626;
  --danger-light:   #FFF1F1;
  --orange:         #EA580C;
  --orange-light:   #FFF7ED;
  --warning:        #D97706;
  --warning-light:  #FFFBEB;
  --blue:           #2563EB;
  --blue-light:     #EFF6FF;
  --radius:         6px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --radius-xl:      16px;
  --shadow-sm:      0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.06);
  --shadow:         0 1px 3px rgba(15,23,42,0.06), 0 4px 6px rgba(15,23,42,0.04);
  --shadow-md:      0 4px 12px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg:      0 12px 28px rgba(15,23,42,0.10), 0 4px 10px rgba(15,23,42,0.06);

  /* Dashboard v2 (Inquiros) — brand purple palette */
  --ink-900:        #281934;
  --ink-700:        #3A2550;
  --ink-500:        #64748B;
  --ink-400:        #94A3B8;
  --ink-300:        #CBD5E1;
  --ink-200:        #E2E8F0;
  --ink-100:        #F1F5F9;
  --ink-50:         #F8FAFC;
  --canvas:         #F8FAFC;
  --surface:        #FFFFFF;
  --surface-mute:   #F1F5F9;
  --rule:           #E2E8F0;
  --black:          #281934;
  --black-hover:    #3A2550;
  --font-sans:      'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html, body { height: 100%; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: var(--charcoal);
  background: var(--gray-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
/* Bold DM Sans headings for marketing surfaces */
.serif-heading,
.auth-hero-title,
.profile-hero h1 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.view { display: none; min-height: 100vh; }
.view.active { display: flex; flex-direction: column; }

/* ===================== SITE HEADER ===================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  flex-shrink: 0;
}
.site-header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-header-title {
  display: flex; align-items: center; gap: 10px;
}
.site-header-title span {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600; font-size: 16px; color: var(--dark);
  letter-spacing: -0.01em;
}
.site-header-logo {
  display: inline-flex; align-items: center;
  opacity: 1; transition: opacity 0.2s;
}
.site-header-logo:hover { opacity: 0.8; text-decoration: none; }

/* ===================== LANDING ===================== */
/* LANDING */
.landing-container {
  margin: 0 auto;
  padding: 0 24px 60px;
  width: 100%;
  flex: 1;
 /* max-width: 780px;*/
  padding-top: 80px;
}
.gradient_wrap {
  background-image: url(https://www.planeteria.com/wp-content/themes/planeteriaweb/img/Hero%20gradient%20animation_page.svg);
  background-position: right top;
  background-repeat: no-repeat;
}
.landing-hero { padding: 56px 0 36px; text-align: left; }
.hero-rule {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--accent-grad), var(--accent));
  margin-bottom: 24px; border-radius: 2px;
}
.hero-title {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-sub { font-size: 16px; color: var(--gray-500); line-height: 1.6; }

.landing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}
.landing-card h2 { font-size: 18px; color: var(--dark); margin-bottom: 6px; }
.landing-desc { color: var(--gray-500); margin-bottom: 24px; font-size: 14px; }

/* MODE TOGGLE */
.audit-mode-toggle {
  display: flex; gap: 6px; margin-bottom: 20px;
  background: var(--gray-100); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 4px;
}
.mode-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border: none; border-radius: calc(var(--radius) - 2px);
  font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--gray-500); background: transparent; transition: all 0.15s;
  font-family: inherit;
}
.mode-btn:hover { color: var(--dark); background: var(--white); }
.mode-btn.active { background: var(--white); color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* URL INPUT */
.url-input-wrap { position: relative; margin-bottom: 20px; }
.url-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--gray-300); pointer-events: none;
}
.url-input-wrap input {
  width: 100%; padding: 11px 14px 11px 40px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white); color: var(--dark);
  font-family: inherit;
}
.url-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.url-input-wrap input::placeholder { color: var(--gray-300); }

/* OPTIONS */
.options-row { margin-bottom: 24px; }
.option-label { display: block; }
.option-label > span {
  font-size: 12px; font-weight: 600;
  color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.5px;
  display: block; margin-bottom: 10px;
}
.slider-wrap { display: flex; align-items: center; gap: 14px; }
.slider-wrap input[type=range] { flex: 1; height: 4px; cursor: pointer; accent-color: var(--primary); }
.slider-value {
  min-width: 40px; text-align: center;
  font-weight: 700; font-size: 15px; color: var(--primary-dark);
  background: var(--primary-light);
  padding: 2px 10px; border-radius: var(--radius);
}

/* Max-pages two-mode control (radio + number input) */
.max-pages-control {
  display: flex; flex-direction: column; gap: 6px;
}
.max-pages-option {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--dark, #1A202C);
  text-transform: none; letter-spacing: normal; font-weight: 500;
  cursor: pointer; padding: 4px 0;
}
.max-pages-option input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--primary, #3182CE);
  cursor: pointer; margin: 0;
}
.max-pages-option input[type="number"] {
  width: 84px; padding: 6px 8px;
  font-size: 13px; font-family: inherit;
  border: 1px solid var(--border, #E2E8F0); border-radius: 6px;
  outline: none; background: #fff; color: var(--dark, #1A202C);
  text-align: right;
  -moz-appearance: textfield;
}
.max-pages-option input[type="number"]::-webkit-outer-spin-button,
.max-pages-option input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: auto; margin: 0;
}
.max-pages-option input[type="number"]:focus {
  border-color: var(--primary, #3182CE);
  box-shadow: 0 0 0 3px var(--primary-light, #EBF8FF);
}
.max-pages-option input[type="number"]:disabled {
  background: var(--gray-100, #F7FAFC);
  color: var(--gray-500, #718096);
  cursor: not-allowed;
}

/* CRAWL-ONLY CHECKBOX */
.crawl-only-label {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13px; color: var(--gray-600);
}
.crawl-only-label input[type=checkbox] {
  width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer;
}
.crawl-only-hint { font-size: 11px; color: var(--gray-500); font-weight: 400; }

/* URL LIST */
.url-list-textarea {
  width: 100%; padding: 11px 14px;
  font-size: 13px; font-family: 'Menlo', 'Consolas', monospace;
  border: 1px solid var(--border); border-radius: var(--radius);
  outline: none; resize: vertical; min-height: 160px;
  color: var(--dark); background: var(--white); line-height: 1.6;
  margin-bottom: 8px;
}
.url-list-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.url-list-textarea::placeholder { color: var(--gray-300); }
.url-list-count { font-size: 12px; color: var(--gray-500); margin-bottom: 20px; min-height: 18px; }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--btn-dark); color: var(--white);
  border: none; border-radius: var(--radius);
  font-weight: 600; cursor: pointer; font-size: 14px;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none; font-family: inherit;
  padding: 10px 20px;
}
.btn-primary:hover { background: var(--btn-dark-hover); text-decoration: none; }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary.btn-large, .btn-large {
  width: 100%; justify-content: center;
  padding: 13px 24px; font-size: 15px;
  margin-top: 12px;
}
.btn-primary.btn-sm, .btn-sm { padding: 7px 14px; font-size: 13px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: var(--gray-600);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-weight: 500; cursor: pointer; font-size: 13px;
  transition: background 0.15s, color 0.15s; font-family: inherit;
  padding: 7px 14px;
}
.btn-ghost:hover { background: var(--gray-200); color: var(--dark); }

.btn-report {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: var(--white);
  border: none; border-radius: var(--radius); padding: 7px 14px;
  font-weight: 600; cursor: pointer; font-size: 13px;
  transition: background 0.15s; font-family: inherit;
}
.btn-report:hover { background: var(--primary-dark); text-decoration: none; }

/* RECENT AUDITS */
.recent-audits { margin-bottom: 32px; }
.recent-audits h3 {
  font-family: inherit; font-weight: 600;
  font-size: 11px; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px;
}
.recent-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  margin-bottom: 6px; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.recent-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}
.recent-url { font-weight: 600; font-size: 13px; flex: 1; color: var(--dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-status {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: var(--radius);
}
.recent-status.completed { background: #dcfce7; color: #16a34a; }
.recent-status.error { background: var(--danger-light); color: var(--danger); }
.recent-status.running { background: var(--blue-light); color: var(--blue); }
.recent-time { font-size: 11px; color: var(--gray-500); }

/* FEATURES */
.landing-features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-top: 28px;
}
.feature {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.feature-icon { display: flex; align-items: center; margin-bottom: 2px; }
.feature strong { font-family: inherit; font-weight: 600; font-size: 13px; color: var(--dark); }
.feature span:last-child { font-size: 12px; color: var(--gray-500); }

/* FOOTER */
.site-footer {
  background: var(--dark); color: var(--gray-300);
  border-top: none; margin-top: auto; flex-shrink: 0;
}
.site-footer-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.site-footer a { color: var(--accent-grad); }
.site-footer a:hover { color: var(--white); }

/* TOPBAR */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.topbar-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 24px;
}
.topbar-title-group {
  display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0;
}
.topbar-page-title {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600; font-size: 16px; color: var(--dark);
  margin: 0; white-space: nowrap; letter-spacing: -0.01em;
}
.brand-small {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.brand-small span {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600; font-size: 15px; color: var(--dark);
}
.topbar-url {
  flex: 1; font-size: 13px; color: var(--gray-500);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: center;
}
.topbar-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

/* PROGRESS */
.progress-container {
  max-width: 760px; margin: 40px auto;
  padding: 0 24px; flex: 1;
}
.progress-status-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
  margin-bottom: 20px; box-shadow: var(--shadow);
}
.phase-icon { flex-shrink: 0; }
.phase-label {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600; font-size: 17px; color: var(--dark);
}
.progress-current-url {
  font-size: 12px; color: var(--gray-500);
  margin-top: 4px; word-break: break-all; max-width: 540px;
}

.spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.mini-spinner {
  border: 2px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-bar-wrap { margin-bottom: 24px; }
.progress-bar-track {
  height: 8px; background: var(--gray-200);
  border-radius: 99px; overflow: hidden; margin-bottom: 8px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-grad), var(--primary));
  border-radius: 99px; transition: width 0.4s ease;
}
.progress-counts { font-size: 12px; color: var(--gray-500); text-align: right; }

.progress-page-list {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow);
  max-height: 420px; overflow-y: auto;
}
.progress-page-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.progress-page-item:last-child { border-bottom: none; }
.progress-page-item .check { font-weight: 700; color: #16a34a; }
.progress-page-item .url {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--charcoal);
}
.progress-page-item .count { font-weight: 600; color: var(--primary); }

/* SHARED: META TAGS */
.meta-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: var(--radius); white-space: nowrap;
}
.meta-tag.tag-published { background: #f1f5f9; color: #475569; }
.meta-tag.tag-ok { background: #dcfce7; color: #166534; }
.meta-tag.tag-fail { background: #fef2f2; color: #991b1b; }
.meta-tag .tag-icon { font-size: 10px; }

/* FILTER BAR */
.filter-bar {
  display: flex; gap: 6px; padding: 10px 20px;
  background: var(--white); border-bottom: 1px solid var(--border);
  flex-wrap: wrap; flex-shrink: 0;
}
.filter-btn {
  padding: 4px 12px; font-size: 11px; font-weight: 600;
  border-radius: 99px; border: 1px solid var(--border);
  background: var(--gray-100); color: var(--gray-600);
  cursor: pointer; transition: all 0.12s; font-family: inherit;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.filter-btn:hover { background: var(--border); }
.filter-btn.active { background: var(--btn-dark); color: var(--white); border-color: var(--btn-dark); }
.filter-btn[data-severity="critical"].active { background: var(--danger); border-color: var(--danger); }
.filter-btn[data-severity="serious"].active  { background: var(--orange); border-color: var(--orange); }
.filter-btn[data-severity="moderate"].active { background: var(--warning); border-color: var(--warning); }
.filter-btn[data-severity="minor"].active    { background: var(--blue); border-color: var(--blue); }

/* ISSUES LIST */
.issues-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.issues-grid .issue-card { margin-bottom: 0; }

.issue-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: 10px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.issue-card-header {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: var(--gray-100);
}
.issue-card-header .issue-title {
  flex-basis: 100%; order: 1;
}
.issue-severity-badge, .sev-tag {
  display: inline-block; padding: 2px 8px;
  border-radius: var(--radius); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  white-space: nowrap; flex-shrink: 0; color: var(--white);
}
.issue-severity-badge.critical, .sev-tag.critical { background: var(--danger); }
.issue-severity-badge.serious, .sev-tag.serious   { background: var(--orange); }
.issue-severity-badge.moderate, .sev-tag.moderate  { background: var(--warning); }
.issue-severity-badge.minor, .sev-tag.minor        { background: var(--blue); }

.issue-wcag-badge, .wcag-tag {
  font-size: 10px; color: var(--gray-500);
  background: var(--white); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: var(--radius);
  white-space: nowrap; flex-shrink: 0;
}
.issue-title {
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--dark); flex: 1; line-height: 1.4;
}
.issue-description {
  padding: 12px 14px;
  font-size: 12px; color: var(--gray-600); line-height: 1.65;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .landing-features { grid-template-columns: 1fr; }
  .site-header-inner { padding: 14px 20px; }
  .landing-container { padding: 0 16px 40px; padding-top: 70px; }
  .issues-grid { grid-template-columns: 1fr; }
  .topbar-title-group { flex-direction: column; gap: 2px; }
  .topbar-page-title { font-size: 14px; }
}

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  width: 100%; max-width: 480px;
  max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
#scan-website-modal .modal-card,
#upload-modal .modal-card,
#scan-urls-modal .modal-card { max-width: 520px; }
.modal-card .modal-body { overflow-y: auto; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--dark); }
.modal-close {
  background: none; border: none; font-size: 22px; color: var(--gray-600);
  cursor: pointer; padding: 0 4px; line-height: 1;
}
.modal-close:hover { color: var(--dark); }
.modal-body { padding: 20px; }
.modal-footer {
  padding: 12px 20px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; justify-content: flex-end;
}
/* Shared styles for redesigned modals (scan-website, upload, scan-urls) */
.modal-intro {
  font-size: 13px; color: var(--ink-500);
  line-height: 1.55; margin: 0 0 14px;
}
.modal-intro + .modal-intro { margin-top: -4px; }
.modal-field-group { margin-bottom: 18px; }
.modal-field-group:last-of-type { margin-bottom: 4px; }
.modal-field-label {
  display: block;
  font-size: 13px; font-weight: 600; color: var(--dark);
  margin-bottom: 8px;
}
.modal-field-required { color: var(--danger); font-weight: 600; margin-left: 2px; }
.modal-field-help {
  margin: 6px 0 0; font-size: 12px; color: var(--ink-500); line-height: 1.45;
}
.btn-primary.btn-full, .btn-full {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 14px;
  margin-top: 4px;
}
.modal-textarea-sm { min-height: 90px; margin-bottom: 0; }

/* Scan-a-website multi-select list */
.scan-website-all {
  display: flex; align-items: center; gap: 8px;
  padding: 0 2px 10px;
  font-size: 13px; font-weight: 500; color: var(--dark); cursor: pointer;
}
.scan-website-all input[type=checkbox] {
  width: 16px; height: 16px; accent-color: var(--ink-700); cursor: pointer;
}
.scan-website-list { display: flex; flex-direction: column; gap: 8px; }
.scan-website-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 8px;
  cursor: pointer; background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}
.scan-website-item:hover { border-color: var(--ink-700); background: var(--ink-50); }
.scan-website-item input[type=checkbox] {
  width: 16px; height: 16px; accent-color: var(--ink-700); cursor: pointer; flex: 0 0 auto;
}
.scan-website-item-body { flex: 1; min-width: 0; }
.scan-website-item-name {
  font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.3;
}
.scan-website-item-meta {
  font-size: 12px; color: var(--ink-500); margin-top: 2px;
}
.scan-website-empty {
  font-size: 13px; color: var(--ink-500); padding: 10px 0;
}

/* ===================== SITE-WIDE ALERT BAR ===================== */
.site-alert {
  background: var(--ink-700);
  color: #fff;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-alert[hidden] { display: none; }
.site-alert-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}
.site-alert-text { line-height: 1.4; }
.site-alert-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
}
.site-alert-link:hover { opacity: 0.85; }
.site-alert-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.site-alert-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* ===================== ONBOARDING WIZARD ===================== */
#view-onboarding { background: var(--canvas); min-height: 100vh; }
#view-onboarding.active { display: flex; flex-direction: column; }
#view-onboarding,
#view-onboarding input,
#view-onboarding button,
#view-onboarding select,
#view-onboarding textarea {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#view-onboarding h1, #view-onboarding h2, #view-onboarding h3 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.onb-topbar {
  background: #fff;
  color: var(--ink-900);
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.onb-topbar-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.onb-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink-900);
}
.onb-topbar-actions {
  display: flex; align-items: center; gap: 10px;
}
.onb-greeting {
  color: var(--ink-700);
  font-size: 14px; font-weight: 500;
  margin-right: 8px;
}
.onb-icon-btn {
  background: transparent; border: 1px solid var(--ink-300);
  color: var(--ink-700); width: 32px; height: 32px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.onb-icon-btn:hover { background: var(--ink-100); color: var(--ink-900); }
.onb-logout-btn {
  background: #fff; color: var(--ink-900);
  border: 1px solid var(--ink-300); border-radius: 6px;
  padding: 7px 14px; font-size: 13px; font-weight: 500; cursor: pointer;
}
.onb-logout-btn:hover { background: var(--ink-100); }
.onb-tier-lock {
  font-size: 13px;
  color: var(--ink-500);
  background: var(--ink-50);
  border: 1px dashed var(--ink-300);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.onb-tier-lock a { color: var(--primary); }
.onb-check-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--ink-900);
  padding: 6px 0;
  cursor: pointer;
}
.onb-check-row input[type="checkbox"] {
  margin-top: 2px;
  width: 15px; height: 15px;
  accent-color: var(--ink-900);
  cursor: pointer;
}
.onb-range {
  display: block; width: 100%;
  accent-color: var(--ink-900);
}
.onb-field textarea, .onb-field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--ink-300); border-radius: 6px;
  font-size: 14px; color: var(--ink-900); background: #fff;
  font-family: inherit;
}
.onb-field textarea { resize: vertical; min-height: 70px; }
.onb-field select { max-width: 240px; }
.onb-field-hint-inline { font-weight: 400; color: var(--ink-500); }

.onb-main {
  flex: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 24px 24px;
  width: 100%;
}

.onb-steps {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
}
.onb-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  position: relative;
  text-align: center;
  color: var(--ink-500);
}
.onb-step-circle {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1.5px solid var(--ink-300);
  color: var(--ink-500);
  font-size: 13px; font-weight: 600;
}
.onb-step-label {
  font-size: 14px; font-weight: 500;
}
#view-onboarding[data-step="1"] .onb-step[data-step-num="1"] .onb-step-circle,
#view-onboarding[data-step="2"] .onb-step[data-step-num="2"] .onb-step-circle,
#view-onboarding[data-step="3"] .onb-step[data-step-num="3"] .onb-step-circle {
  background: var(--ink-900); border-color: var(--ink-900); color: #fff;
}
#view-onboarding[data-step="1"] .onb-step[data-step-num="1"] .onb-step-label,
#view-onboarding[data-step="2"] .onb-step[data-step-num="2"] .onb-step-label,
#view-onboarding[data-step="3"] .onb-step[data-step-num="3"] .onb-step-label {
  color: var(--ink-900); font-weight: 600; border-bottom: 2px solid var(--ink-900); padding-bottom: 4px;
}
#view-onboarding[data-step="2"] .onb-step[data-step-num="1"] .onb-step-circle,
#view-onboarding[data-step="3"] .onb-step[data-step-num="1"] .onb-step-circle,
#view-onboarding[data-step="3"] .onb-step[data-step-num="2"] .onb-step-circle {
  background: var(--ink-100); border-color: var(--ink-300); color: var(--ink-700);
}

.onb-pane { display: block; }
.onb-pane[hidden] { display: none; }

.onb-title {
  font-size: 24px; font-weight: 600; margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.onb-lead {
  color: var(--ink-500); margin: 0 0 24px; font-size: 14px;
}

.onb-info-callout {
  background: #EFF6FF; border-left: 3px solid var(--primary);
  padding: 14px 16px; border-radius: 4px;
  margin-bottom: 24px;
  font-size: 13px; color: var(--ink-900);
}
.onb-info-callout p { margin: 0; }
.onb-info-callout p + p { margin-top: 6px; }

.onb-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.onb-card-title { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.onb-card-desc { font-size: 13px; color: var(--ink-500); margin: 0 0 16px; }

.onb-plans {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.onb-plan {
  position: relative;
  display: flex; flex-direction: column;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 20px 20px 18px;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.onb-plan input[type="radio"] {
  position: absolute; top: 16px; right: 16px;
  width: 16px; height: 16px;
  accent-color: var(--ink-900); cursor: pointer;
}
.onb-plan:hover { border-color: var(--ink-700); }
.onb-plan-selected { border-color: var(--ink-900); box-shadow: 0 0 0 1px var(--ink-900) inset; }
.onb-plan-name {
  display: block;
  font-weight: 600; font-size: 13px; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding-right: 28px;  /* leave room for the radio in the corner */
}
.onb-plan-price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 8px 0 16px;
}
.onb-plan-price-amount {
  font-size: 28px; font-weight: 700; color: var(--ink-900);
  letter-spacing: -0.02em; line-height: 1;
}
.onb-plan-price-cadence { color: var(--ink-500); font-size: 13px; }
.onb-plan-bullets {
  list-style: none; padding: 0; margin: 0;
  color: var(--ink-700); font-size: 13px; line-height: 1.5;
}
.onb-plan-bullets li {
  padding: 4px 0 4px 22px;
  position: relative;
}
.onb-plan-bullets li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 10px; height: 6px;
  border-left: 1.75px solid var(--ink-700);
  border-bottom: 1.75px solid var(--ink-700);
  transform: rotate(-45deg);
}
.onb-plan-foot {
  margin: 14px 0 0; padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-500); line-height: 1.4;
}

/* Disabled check row (e.g. third-party scan locked on Trial). */
.onb-row-disabled { opacity: 0.55; cursor: not-allowed; }
.onb-row-disabled input { cursor: not-allowed; }

.onb-field { margin-bottom: 14px; }
.onb-field:last-child { margin-bottom: 0; }
.onb-field label,
.onb-field-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--ink-900); margin-bottom: 6px;
}
.onb-required { color: var(--danger); }
.onb-field input[type="text"],
.onb-field input[type="url"],
.onb-field input[type="email"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--ink-300); border-radius: 6px;
  font-size: 14px; color: var(--ink-900); background: #fff;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.onb-field input:focus {
  outline: none; border-color: var(--ink-900);
  box-shadow: 0 0 0 3px rgba(14,15,17,0.08);
}
.onb-field-hint { font-size: 12px; color: var(--ink-500); margin-top: 6px; }
.onb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.onb-payment-footer {
  font-size: 12px; color: var(--ink-500);
  text-align: center; margin: 12px 0 0;
}

.onb-msg {
  margin-top: 12px; padding: 10px 12px; border-radius: 6px;
  font-size: 13px;
}
.onb-msg-error { background: var(--danger-light); color: var(--danger); border: 1px solid #FED7D7; }
.onb-msg[hidden] { display: none; }

.onb-domain-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.onb-domain-list[hidden] { display: none; }
.onb-domain-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border: 1px solid var(--rule); border-radius: 6px;
  font-size: 13px; background: var(--ink-50);
}
.onb-domain-item button {
  background: transparent; border: 0; color: var(--ink-500);
  cursor: pointer; font-size: 12px;
}
.onb-domain-item button:hover { color: var(--danger); text-decoration: underline; }

.onb-summary {
  display: grid; gap: 10px;
}
.onb-summary > div {
  display: grid; grid-template-columns: 140px 1fr; align-items: baseline;
  font-size: 14px;
}
.onb-summary-label { color: var(--ink-500); font-size: 13px; }

.onb-snippet {
  background: var(--ink-900); color: #E8EAED;
  padding: 14px 16px; border-radius: 8px;
  font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 12px; line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap; word-break: break-all;
  margin: 0 0 12px;
}

.onb-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  margin-top: 12px;
}
.onb-step-counter { font-size: 13px; color: var(--ink-500); }
.onb-footer-actions { display: flex; gap: 8px; }
.onb-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink-900); color: #fff;
  border: 0; border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background 0.12s;
}
.onb-btn-primary:hover { background: var(--black-hover); }
.onb-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.onb-btn-secondary {
  background: #fff; color: var(--ink-900);
  border: 1px solid var(--ink-300); border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.onb-btn-secondary:hover { background: var(--ink-50); border-color: var(--ink-700); }
.onb-btn-ghost {
  background: transparent; color: var(--ink-700);
  border: 1px solid transparent; border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.onb-btn-ghost:hover { background: var(--ink-100); }

.profile-plan-row { font-size: 13px; color: var(--ink-500); margin-top: 8px; }
.profile-plan-row a { margin-left: 12px; }

@media (max-width: 1080px) {
  .onb-plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .onb-plans { grid-template-columns: 1fr; }
  .onb-row { grid-template-columns: 1fr; }
  .onb-step-label { font-size: 12px; }
}

/* ===================== AUTH VIEW ===================== */
#view-auth { min-height: 100vh; background: #F1F5F9; }
#view-auth.active {
  display: flex;
  flex-direction: column;
}
#view-auth,
#view-auth input,
#view-auth button,
#view-auth select,
#view-auth textarea {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#view-auth h1,
#view-auth h2,
#view-auth h3,
#view-auth h4 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: inherit;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Top bar */
.auth-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.auth-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.auth-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-topbar-btn {
  padding: 10px 20px;
  background: #fff;
  color: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.auth-topbar-btn:hover { background: var(--gray-100); border-color: var(--gray-300); }
.auth-topbar-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.auth-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--gray-100);
  color: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.auth-lang-btn:hover { background: var(--gray-200); }
.auth-lang-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.auth-lang-btn svg { flex-shrink: 0; }

/* Main split */
.auth-main { flex: 1; display: flex; }
.auth-main-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 0;
}

/* Left — dark marketing */
.auth-left {
  background: linear-gradient(155deg, #1A0E26 0%, #281934 60%, #200D30 100%);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 56px;
}
.auth-left-content {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.auth-left-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.auth-left-pane[hidden] { display: none; }
.auth-hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 4px;
}
.auth-hero-lead {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* Numbered steps */
.auth-steps {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.auth-steps > li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
}
.auth-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background: transparent;
}
.auth-step-body h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.auth-step-body p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.60);
  margin: 0;
  line-height: 1.55;
}

/* Setup list */
.auth-setup-list { margin-top: 12px; }
.auth-setup-list h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.auth-setup-list ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}
.auth-setup-list li {
  font-size: 13.5px;
  color: #d1d1d1;
  line-height: 1.7;
}

.auth-compliance {
  font-size: 13.5px;
  color: #d1d1d1;
  line-height: 1.65;
  margin: 20px 0 0;
}
.auth-compliance strong {
  color: #fff;
  font-weight: 700;
}

.auth-help {
  font-size: 14px;
  color: #b8b8b8;
  margin: 12px 0 0;
}
.auth-help a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-help a:hover { color: #e5e5e5; }

/* Right — form panel */
.auth-right {
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 56px;
}
.auth-right-inner {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.auth-form-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.06), 0 1px 4px rgba(15,23,42,0.04);
}
.auth-pane[hidden] { display: none; }
.auth-form-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.auth-subheading {
  font-size: 14px;
  color: #5e5e5e;
  line-height: 1.55;
  margin: 0 0 22px;
}

/* Form fields */
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.auth-field { margin-bottom: 16px; }
.auth-row .auth-field { margin-bottom: 0; }
.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 7px;
}
.auth-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--dark);
  background: #fff;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  box-sizing: border-box;
}
.auth-field input::placeholder { color: #9a9a9a; }
.auth-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.auth-field input:disabled {
  background: #f8f8f8;
  color: #999;
  cursor: not-allowed;
}

/* Submit */
.auth-submit {
  width: 100%;
  padding: 12px 16px;
  background: var(--btn-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, transform 0.08s;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-submit:hover { background: var(--btn-dark-hover); }
.auth-submit:active { transform: scale(0.99); }
.auth-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.auth-submit:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.auth-submit svg { flex-shrink: 0; }

.auth-form-helper {
  text-align: center;
  font-size: 13px;
  color: #6b6b6b;
  margin: 14px 0 0;
}

/* Inline error */
.auth-msg {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.5;
}
.auth-msg-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Success card (check-inbox) */
.auth-success-card {
  margin-top: 4px;
  background: #eff5e3;
  border: 1px solid #d0e1a9;
  border-left: 4px solid #6b8e3e;
  border-radius: 6px;
  padding: 16px 18px;
  color: #3a5519;
  font-size: 13.5px;
  line-height: 1.55;
}
.auth-success-card h3 {
  color: #2c4513;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}
.auth-success-card p { margin: 0 0 10px; }
.auth-success-card p:last-child { margin-bottom: 0; }
.auth-success-card a {
  color: #3a5519;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-success-card a:hover { color: #1f2f0a; }

/* Toggle link row */
.auth-toggle-row {
  text-align: center;
  margin: 20px 0 0;
  font-size: 14px;
  color: #5e5e5e;
}
.auth-toggle-row a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 3px;
}
.auth-toggle-row a:hover { color: var(--primary-dark); }

/* Footer */
.auth-footer {
  background: #160B21;
  color: #94A3B8;
  flex-shrink: 0;
  border-top: 1px solid #2E1A40;
}
.auth-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
}
.auth-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.auth-footer-brand-by {
  font-size: 13px;
  font-weight: 400;
  color: #b3b3b3;
  letter-spacing: 0;
}
.auth-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.auth-footer-nav a {
  color: #d1d1d1;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0 14px;
  border-right: 1px solid #3a3a3a;
  line-height: 1.2;
}
.auth-footer-nav a:first-child { padding-left: 0; }
.auth-footer-nav a:last-child {
  padding-right: 0;
  border-right: none;
}
.auth-footer-nav a:hover { color: #fff; }
.auth-footer-copy {
  color: #b3b3b3;
  font-size: 13px;
}

/* Generic message boxes (used by modals + profile, keep intact) */
.auth-message {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.4;
}
.auth-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.auth-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* User display in header */
.user-display {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 960px) {
  .auth-topbar-inner { padding: 14px 20px; }
  .auth-brand { font-size: 17px; }
  .auth-left, .auth-right { padding: 48px 32px; }
}
@media (max-width: 768px) {
  .auth-main-inner { grid-template-columns: 1fr; }
  .auth-left { padding: 40px 24px; }
  .auth-right { padding: 40px 24px; }
  .auth-hero-title { font-size: 26px; }
  .auth-form-card { padding: 24px; }
  .auth-row { grid-template-columns: 1fr; gap: 0; }
  .auth-row .auth-field { margin-bottom: 16px; }
  .auth-footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .auth-footer-nav { gap: 6px 0; }
  .auth-footer-nav a { padding: 0 12px 0 0; border-right: none; }
  .auth-topbar-btn { padding: 8px 14px; font-size: 13px; }
  .auth-lang-btn { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 480px) {
  .auth-topbar-inner { flex-wrap: wrap; gap: 12px; }
  .auth-lang-btn span { display: none; }
}

/* ===================== UPLOAD DROP ZONE ===================== */
.upload-drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-drop-zone:hover,
.upload-drop-zone.drag-over {
  border-color: var(--ink-700);
  background: var(--ink-50);
}
.upload-drop-zone p { margin: 10px 0 0; color: #64748b; font-size: 14px; }
.upload-browse-link { color: var(--accent); cursor: pointer; text-decoration: underline; }

/* Compact variant used in Upload a PDF modal */
.upload-drop-zone-compact {
  padding: 28px 20px;
  border-color: var(--rule);
}
.upload-drop-zone-compact .upload-drop-icon {
  display: block; margin: 0 auto; color: var(--ink-500);
}
.upload-drop-zone-compact .upload-drop-label {
  margin: 10px 0 2px; color: var(--dark); font-size: 13px; font-weight: 500;
}
.upload-drop-zone-compact .upload-drop-sub {
  margin: 0; color: var(--ink-400); font-size: 12px;
}
.upload-drop-zone-compact .upload-browse-link {
  color: var(--dark); text-decoration: underline; font-weight: 500;
}
.upload-file-info {
  margin-top: 12px; padding: 8px 12px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px;
  display: flex; align-items: center; justify-content: space-between; font-size: 13px;
}
.upload-file-info:empty { display: none; }
.upload-file-info .file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-info .file-size { color: #64748b; margin: 0 12px; white-space: nowrap; }
.upload-file-info .file-remove {
  background: none; border: none; color: #ef4444; cursor: pointer;
  font-size: 18px; padding: 0 4px; line-height: 1;
}

/* ===================== PROFILE VIEW ===================== */

.profile-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 24px;
}
.profile-hero { margin-bottom: 32px; }
.profile-hero h1 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.profile-hero p { font-size: 14px; color: #64748b; margin: 0; }
.profile-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.profile-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}
.profile-card-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 16px;
}
.domain-add-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.domain-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.domain-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
}
.domain-item .domain-url {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
}
.domain-item .domain-remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  font-size: 18px;
  transition: color 0.15s;
}
.domain-item .domain-remove-btn:hover { color: #ef4444; }
.domain-count {
  font-size: 12px;
  color: #94a3b8;
  margin: 10px 0 0;
}
.profile-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

/* ===================== SCAN FORM DOMAIN DROPDOWN ===================== */

.saved-domains-row { margin-bottom: 10px; }
.saved-domains-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
  background: #fff;
  cursor: pointer;
}
.saved-domains-select:focus {
  outline: none;
  border-color: #107DC2;
  box-shadow: 0 0 0 3px rgba(16,125,194,0.12);
}

/* ===================== RECENT SCANS HEADER ===================== */

.recent-scans-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}
.recent-scans-header h3 { margin: 0; }
.recent-scans-header .saved-domains-select {
  width: auto;
  min-width: 180px;
  font-size: 12px;
  padding: 6px 10px;
}

/* Schedule next-run badge */
.schedule-next-run {
  font-size: 12px;
  color: #0369a1;
  padding: 8px 12px;
  background: #f0f9ff;
  border-radius: 6px;
  margin-top: 12px;
}

/* Auto-scan badge */
.auto-scan-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #6366f1;
  background: #eef2ff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===================== DASHBOARD ===================== */

.dashboard-container {
  margin: 0 auto; padding: 0 24px 60px; padding-top: 80px;
  width: 100%; max-width: 960px; flex: 1;
}
.dashboard-hero { margin-bottom: 28px; }
.dashboard-hero h1 { font-size: 24px; font-weight: 700; color: var(--dark); margin: 0; }
.dashboard-subtitle { font-size: 14px; color: var(--gray-500); margin: 4px 0 0; }

/* Action bar */
.dashboard-action-bar {
  display: flex; gap: 16px; margin-bottom: 12px;
}
.dashboard-action-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 24px; border: 2px solid var(--border); border-radius: 10px;
  background: var(--white); font-size: 15px; font-weight: 600; color: var(--dark);
  cursor: pointer; transition: all 0.15s ease;
}
.dashboard-action-btn:hover {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16,125,194,0.1);
}
.dashboard-action-btn:disabled {
  opacity: 0.5; cursor: not-allowed;
}
.dashboard-action-btn.primary {
  background: var(--accent); color: var(--white); border-color: var(--accent);
}
.dashboard-action-btn.primary:hover {
  background: var(--primary-dark); border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(16,125,194,0.2);
}
.dashboard-action-secondary {
  text-align: center; margin-bottom: 28px;
}
.dashboard-action-secondary a {
  font-size: 13px; color: var(--gray-500); text-decoration: none;
  transition: color 0.15s;
}
.dashboard-action-secondary a:hover { color: var(--accent); text-decoration: underline; }

/* Domain tabs */
.domain-tabs {
  display: flex; gap: 0; margin-bottom: 24px;
  border-bottom: 2px solid var(--border); overflow-x: auto;
}
.domain-tab {
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  color: var(--gray-500); background: none; border: none;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.15s; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.domain-tab:hover { color: var(--dark); }
.domain-tab.active {
  color: var(--accent); border-bottom-color: var(--accent);
}
.domain-tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px;
  font-size: 11px; font-weight: 700; line-height: 1;
}
.domain-tab-badge.badge-pass {
  background: #dcfce7; color: #16a34a;
}
.domain-tab-badge.badge-issues {
  background: #fef2f2; color: #dc2626;
}
.domain-tab-badge.badge-none {
  background: var(--gray-200); color: var(--gray-500);
}

/* In-progress banner */
.dashboard-in-progress {
  margin-bottom: 20px; padding: 12px 16px;
  background: var(--primary-light); border: 1px solid #bee3f8; border-radius: 8px;
}
.dashboard-in-progress-inner {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--primary-dark);
}
.spin-icon { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Stats banner */
.dashboard-stats {
  display: flex; gap: 0; margin-bottom: 20px;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden;
}
.dashboard-stat {
  flex: 1; padding: 16px; text-align: center;
  border-right: 1px solid var(--border);
}
.dashboard-stat:last-child { border-right: none; }
.dashboard-stat-value {
  display: block; font-size: 22px; font-weight: 700; color: var(--dark);
  line-height: 1.2;
}
.dashboard-stat-label {
  display: block; font-size: 11px; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px;
}
.dashboard-stat.critical .dashboard-stat-value { color: #dc2626; }
.dashboard-stat.serious .dashboard-stat-value { color: #ea580c; }
.dashboard-stat.moderate .dashboard-stat-value { color: #d97706; }
.dashboard-stat.minor .dashboard-stat-value { color: #2563eb; }
.dashboard-stat.compliant .dashboard-stat-value { color: #16a34a; }

/* Batch actions */
.dashboard-batch-actions {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.dash-batch-progress {
  font-size: 13px; color: var(--gray-500); margin-left: 8px;
}

/* Filter/sort toolbar */
.dashboard-filter-sort-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 16px; padding: 10px 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  flex-wrap: wrap;
}
.dash-filter-group, .dash-sort-group {
  display: flex; align-items: center; gap: 8px;
}
.dash-filter-label {
  font-size: 12px; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap;
}
.dash-date-input {
  font-size: 12px; padding: 5px 8px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--gray-100);
  color: var(--charcoal); font-family: inherit; outline: none;
}
.dash-date-input:focus { border-color: var(--primary); }
.dash-date-clear { padding: 4px 10px; font-size: 11px; }

/* Sortable column headers */
.dash-sortable-th { cursor: pointer; user-select: none; white-space: nowrap; }
.dash-sortable-th:hover { color: var(--accent); }
.dash-sort-arrow {
  display: inline-block; font-size: 10px; margin-left: 3px;
  opacity: 0.3; transition: opacity 0.15s;
}
.dash-sortable-th.sort-active .dash-sort-arrow { opacity: 1; color: var(--accent); }

/* Date column cell */
.dash-date-cell { white-space: nowrap; font-size: 12px; color: var(--gray-500); }

/* Report actions bar */
.dashboard-report-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px; padding: 8px 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
}

/* Expandable detail row */
.dash-pdf-row { cursor: pointer; }
.dash-pdf-row:hover { background: var(--gray-100); }
.dash-pdf-row.expanded { background: var(--primary-light); }
.dash-pdf-row.expanded td { border-bottom-color: transparent; }
.dash-detail-row td { padding: 0 !important; background: var(--gray-100); border-bottom: 2px solid var(--accent); }
.dash-detail-panel { padding: 16px 20px; max-height: 500px; overflow-y: auto; }
.dash-detail-header { margin-bottom: 12px; }
.dash-detail-name { font-size: 14px; font-weight: 600; color: var(--dark); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-detail-name a { color: var(--primary); text-decoration: none; }
.dash-detail-name a:hover { text-decoration: underline; }
.dash-detail-meta { font-size: 11.5px; color: var(--gray-500); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.dash-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.dash-detail-filter-bar { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.dash-detail-issues .issues-grid { grid-template-columns: 1fr; }

/* No match message */
.dashboard-no-match {
  text-align: center; padding: 40px 24px; color: var(--gray-500); font-size: 14px;
}

/* Results table */
.dashboard-results-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; margin-bottom: 24px;
}
.dashboard-results-table thead th {
  padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--gray-100); border-bottom: 1px solid var(--border);
}
.dashboard-results-table tbody td {
  padding: 11px 14px; font-size: 13px; color: var(--dark);
  border-bottom: 1px solid var(--gray-200);
}
.dashboard-results-table tbody tr:last-child td { border-bottom: none; }
.dashboard-results-table tbody tr:hover { background: var(--gray-100); }
.pdf-name-cell {
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 500;
}

/* Status badges */
.dashboard-pdf-status {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.dashboard-pdf-status.pass { background: #dcfce7; color: #16a34a; }
.dashboard-pdf-status.issues { background: #fef2f2; color: #dc2626; }
.dashboard-pdf-status.error { background: #fee2e2; color: #991b1b; }

/* Action buttons in table */
.dashboard-pdf-actions {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.dash-action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--white); cursor: pointer; transition: all 0.15s;
  color: var(--gray-600); text-decoration: none;
}
.dash-action-btn:hover {
  border-color: var(--accent); color: var(--accent); background: var(--primary-light);
}
.dash-action-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.dash-action-btn.done.fix-btn { border-color: #16a34a; background: #f0fdf4; }
.dash-action-btn.done.fix-btn:hover { border-color: #15803d; background: #dcfce7; }
.dash-action-btn.done.translate-btn { border-color: #2563eb; background: #eff6ff; }
.dash-action-btn.done.translate-btn:hover { border-color: #1d4ed8; background: #dbeafe; }
.dash-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.6s linear infinite;
}

/* Empty state */
.dashboard-empty {
  text-align: center; padding: 60px 24px; margin-bottom: 24px;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
}
.dashboard-empty p { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--gray-500); }
.dashboard-empty-sub { font-size: 13px !important; font-weight: 400 !important; color: var(--gray-300) !important; }

/* Scan history */
.scan-history-section { margin-top: 8px; }
.scan-history-toggle {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--gray-500); padding: 8px 0;
}
.scan-history-toggle:hover { color: var(--dark); }
.scan-history-toggle svg { transition: transform 0.2s; }
.scan-history-list { margin-top: 8px; }
.history-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 6px; cursor: pointer; transition: border-color 0.15s;
  font-size: 13px;
}
.history-item:hover { border-color: var(--accent); }
.history-url { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dark); font-weight: 500; }
.history-time { color: var(--gray-300); font-size: 12px; white-space: nowrap; }

/* ===================== RESPONSIVE ===================== */

@media (max-width: 768px) {
  .profile-container { padding: 40px 16px; }
  .profile-card { padding: 20px; }
  .domain-add-row { flex-direction: column; }
  .domain-add-row .btn-primary { width: 100%; }
  .dashboard-container { padding: 60px 16px 40px; }
  .dashboard-action-bar { flex-direction: column; }
  .dashboard-stats { flex-wrap: wrap; }
  .dashboard-stat { min-width: 33%; }
  .dashboard-results-table { font-size: 12px; }
  .pdf-name-cell { max-width: 140px; }
  .dash-action-btn { width: 26px; height: 26px; }
  .dashboard-filter-sort-bar { flex-direction: column; align-items: stretch; }
  .dash-filter-group, .dash-sort-group { flex-wrap: wrap; }
  .dash-date-input { flex: 1; min-width: 120px; }
  .dash-pages-th, .dash-pages-cell { display: none; }
}

@media print {
  .topbar, .filter-bar, #issue-filter-bar, .site-header { display: none !important; }
}

/* ============================================================
   DASHBOARD V2 — Inquiros redesign (#view-landing only)
   ============================================================ */

#view-landing.active {
  background: var(--canvas);
  font-family: var(--font-sans);
  color: var(--ink-900);
}

/* ─── Header ────────────────────────────────────────────── */
.dash-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.dash-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0;
}
.dash-brand-link {
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 6px;
  margin: -4px -6px;
  transition: background 0.12s;
}
.dash-brand-link:hover { background: var(--ink-100); }
.dash-brand-link:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 2px; }
.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-greeting {
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 500;
}
.dash-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink-700);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  padding: 0;
}
.dash-icon-btn:hover { background: var(--ink-100); color: var(--ink-900); }
.dash-icon-btn:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 2px; }
.dash-logout-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  color: var(--ink-900);
  border: 1px solid var(--ink-300);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.dash-logout-btn:hover { background: var(--ink-100); }
.dash-home-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  color: var(--ink-900);
  border: 1px solid var(--ink-300);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.12s, border-color 0.12s;
}
.dash-home-btn:hover { background: var(--ink-100); }

/* ─── Stats bar ────────────────────────────────────────── */
.dash-stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.dash-stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 24px;
}
.dash-stat-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.dash-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.01em;
}
.dash-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-stat-meta {
  font-size: 12px;
  color: var(--ink-500);
}

/* ─── Monitoring strip ─────────────────────────────────── */
.dash-monitoring {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.dash-monitoring-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-700);
}
.dash-monitoring-inner strong { font-weight: 600; color: var(--ink-900); }
.dash-monitoring-inner .dash-mute { color: var(--ink-500); font-weight: 500; }
.dash-monitoring-inner #dash-mon-credits { display: inline-flex; align-items: center; gap: 8px; }
.dash-monitoring-inner #dash-mon-credits[hidden] { display: none; }
#dash-mon-credits-action { font-size: 13px; }
.dash-sep { color: var(--ink-300); }
.dash-link {
  color: var(--ink-900);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  cursor: pointer;
}
.dash-link:hover { text-decoration: underline; opacity: 0.8; }

/* ─── Main column ──────────────────────────────────────── */
.dash-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 32px 80px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ─── Welcome banner ───────────────────────────────────── */
.dash-welcome {
  background: var(--ink-900);
  color: var(--surface);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dash-welcome-text { flex: 1; min-width: 0; }
.dash-welcome-text h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--surface);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.dash-welcome-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  margin: 0;
  max-width: 480px;
}
.dash-btn-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--ink-900);
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.12s, transform 0.08s;
  white-space: nowrap;
}
.dash-btn-light:hover { background: var(--ink-100); }
.dash-btn-light:active { transform: scale(0.98); }

/* ─── In-progress banner (live scan status) ────────────── */
.dash-in-progress {
  background: var(--ink-900);
  color: var(--surface);
  border-radius: var(--radius-xl);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-in-progress-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.dash-in-progress-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.dash-in-progress-icon .spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--surface);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.dash-in-progress-info { flex: 1; min-width: 0; }
.dash-in-progress-info h2 {
  font-size: 18px; font-weight: 700;
  color: var(--surface);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.dash-in-progress-phase {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.4;
}
.dash-in-progress-url {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 4px 0 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
.dash-in-progress-cancel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
}
.dash-in-progress-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--surface);
}
.dash-in-progress-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash-in-progress-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  overflow: hidden;
}
.dash-in-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8be9c8, #ffffff);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.dash-in-progress-counts {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}

/* ─── Section heading ──────────────────────────────────── */
.dash-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}

/* ─── Run a scan cards ─────────────────────────────────── */
.dash-scan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dash-scan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.08s;
}
.dash-scan-card strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}
.dash-scan-card span {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.45;
}
.dash-scan-card:hover {
  border-color: var(--ink-700);
  box-shadow: 0 0 0 3px rgba(14, 15, 17, 0.06);
}
.dash-scan-card:active { transform: scale(0.995); }
.dash-scan-card.primary {
  background: var(--ink-900);
  border-color: var(--ink-900);
}
.dash-scan-card.primary strong { color: var(--surface); }
.dash-scan-card.primary span { color: rgba(255, 255, 255, 0.7); }
.dash-scan-card.primary:hover {
  background: var(--black-hover);
  border-color: var(--black-hover);
  box-shadow: 0 0 0 3px rgba(14, 15, 17, 0.12);
}

.dash-scan-secondary {
  text-align: center;
  margin-top: 18px;
}
.dash-scan-secondary a {
  font-size: 14px;
  color: var(--ink-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.dash-scan-secondary a:hover { color: var(--ink-900); }

/* ─── Activity card ────────────────────────────────────── */
.dash-empty-card,
.dash-activity-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dash-empty-card {
  padding: 28px 24px;
  text-align: center;
}
.dash-empty-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 8px;
}
.dash-empty-card p {
  font-size: 13px;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.55;
}
.dash-empty-card p + p { margin-top: 4px; }

.dash-activity-subhead {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--ink-500);
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.dash-activity-subhead strong {
  font-weight: 600;
  color: var(--ink-900);
  margin-right: 4px;
}
.dash-activity-card > .dash-activity-subhead:first-child { border-top: none; }
.dash-activity-card > .dash-activity-subhead + .site-card { border-top: none; }

/* Per-site collapsible card inside activity */
.site-card {
  border-top: 1px solid var(--rule);
  background: var(--surface);
}
.site-card:first-of-type { border-top: none; }
.site-card.expanded .site-card-header {
  background: var(--ink-100);
}
.site-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  background: var(--surface);
  transition: background 0.1s;
}
.site-card-header:hover { background: var(--ink-50); }
.site-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}
.site-meta {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 2px;
}
.site-toggle {
  background: transparent;
  border: none;
  color: var(--ink-500);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
}
.site-toggle:hover { background: var(--ink-200); color: var(--ink-900); }
.site-card-scans {
  background: var(--ink-100);
  padding: 4px 8px 12px;
}
.scan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin: 4px 8px;
  background: var(--surface);
  border-radius: 8px;
  transition: background 0.12s;
}
.scan-row + .scan-row { margin-top: 0; }
.scan-row-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}
.scan-row-meta {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 2px;
}
.scan-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.scan-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--ink-300);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-700);
  letter-spacing: 0.02em;
}
.scan-badge.error {
  background: var(--danger-light);
  border-color: var(--danger);
  color: var(--danger);
}
.scan-arrow-btn {
  background: transparent;
  border: none;
  color: var(--ink-700);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.scan-arrow-btn:hover { background: var(--ink-200); color: var(--ink-900); }

/* Upload row inside activity */
.upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--rule);
  background: var(--surface);
  transition: background 0.1s;
}
.upload-row:hover { background: var(--ink-50); cursor: pointer; }
.upload-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}
.upload-row-meta {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 2px;
}

.dash-view-all {
  text-align: center;
  margin-top: 18px;
}
.dash-view-all a {
  font-size: 13px;
  color: var(--ink-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* ─── PDF interception snippet ─────────────────────────── */
.dash-snippet-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dash-snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  gap: 16px;
}
.dash-snippet-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 4px;
}
.dash-snippet-header p {
  font-size: 13px;
  color: var(--ink-500);
  margin: 0;
}
.snippet-toggle-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--ink-500);
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.snippet-toggle-btn:hover { background: var(--ink-100); color: var(--ink-900); }
.dash-snippet-body {
  padding: 4px 22px 22px;
  border-top: 1px solid var(--rule);
}
.dash-snippet-steps {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: snippet-step;
}
.dash-snippet-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  counter-increment: snippet-step;
}
.dash-snippet-steps li::before {
  content: counter(snippet-step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ink-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--surface);
}
.dash-snippet-steps strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 2px;
}
.dash-snippet-steps span {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.5;
}
.dash-code-block {
  position: relative;
  background: #1A1D1F;
  color: #E8EAED;
  border-radius: 10px;
  padding: 16px 18px;
  /* Reserve room on the right so the absolutely-positioned Copy button
     never overlaps the snippet text, even when the line is long. */
  padding-right: 92px;
  overflow: hidden;
}
.dash-code-block pre {
  margin: 0;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: #E8EAED;
  /* Wrap long URLs / attributes instead of overflowing horizontally. */
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.dash-code-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #E8EAED;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s;
  /* Keep the button visually separate; never let snippet text run under it. */
  z-index: 1;
  white-space: nowrap;
}
.dash-code-copy:hover { background: rgba(255, 255, 255, 0.18); }
.dash-code-copy.copied { background: rgba(72, 187, 120, 0.25); color: #BCEFD3; }
.dash-snippet-help {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.55;
}
.dash-snippet-help a {
  color: var(--ink-900);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

/* ─── Footer ──────────────────────────────────────────── */
.dash-footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.78);
  margin-top: auto;
}
.dash-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.dash-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--surface);
  letter-spacing: -0.01em;
}
.dash-footer-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.dash-footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dash-footer-nav a:hover { color: var(--surface); }
.dash-footer-nav .dash-sep { color: rgba(255, 255, 255, 0.3); }
.dash-footer-copy { font-size: 13px; }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 880px) {
  .dash-stats-bar-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 20px;
  }
}
@media (max-width: 640px) {
  .dash-header-inner,
  .dash-stats-bar-inner,
  .dash-monitoring-inner,
  .dash-main,
  .dash-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .dash-stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .dash-scan-cards { grid-template-columns: 1fr; }
  .dash-welcome { flex-direction: column; align-items: flex-start; }
  .dash-greeting { display: none; }
}

/* ============================================================
   SCAN RESULTS VIEW (#view-scan-results)
   ============================================================ */

#view-scan-results.active {
  background: var(--canvas);
  font-family: var(--font-sans);
  color: var(--ink-900);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sr-breadcrumb-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 32px;
  width: 100%;
  font-size: 13px;
}
.sr-back-link {
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.sr-back-link:hover { color: var(--accent); text-decoration: underline; }

.sr-page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 32px 16px;
  width: 100%;
}
.sr-page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sr-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink-900);
}
.sr-csv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--white);
  border: 1px solid var(--ink-300);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.sr-csv-btn:hover { background: var(--ink-50); border-color: var(--ink-400); }
.sr-page-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-500);
}
.sr-page-date, .sr-page-meta { font-size: 13px; color: var(--ink-500); }

.sr-source-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: var(--ink-100);
  color: var(--ink-700);
  border: 1px solid var(--ink-200);
}

.sr-stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--ink-200);
  border-top: 1px solid var(--ink-200);
}
.sr-stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sr-stat-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.sr-stat-col .dash-stat-label { min-height: 28px; display: block; }
.sr-stat-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sr-stat-col .dash-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sr-stat-col .dash-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
}
.sr-stat-col.sr-stat-critical .dash-stat-value     { color: #dc2626; }
.sr-stat-col.sr-stat-serious  .dash-stat-value     { color: #ea580c; }
.sr-stat-col.sr-stat-moderate .dash-stat-value     { color: #d97706; }
.sr-stat-col.sr-stat-minor    .dash-stat-value     { color: #2563eb; }
.sr-stat-col.sr-stat-compliant .dash-stat-value    { color: #16a34a; }
.sr-stat-col.sr-stat-noncompliant .dash-stat-value { color: #b91c1c; }

button.sr-stat-col.sr-stat-clickable {
  background: transparent;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 4px 6px;
  margin: -4px -6px;
  border-radius: 6px;
  transition: background 120ms ease;
}
button.sr-stat-col.sr-stat-clickable:hover { background: rgba(15, 23, 42, 0.06); }
button.sr-stat-col.sr-stat-clickable:focus-visible {
  outline: 2px solid var(--ink-500, #64748b);
  outline-offset: 2px;
}

/* Compliance score banner — full-width row above the stat grid. */
.sr-score-banner {
  --score-color: #16a34a;
  --score-bg: #ecfdf5;
  --score-border: #bbf7d0;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border: 1px solid var(--score-border);
  background: var(--score-bg);
  border-radius: 8px;
}
.sr-score-banner[data-tier="empty"] {
  --score-color: var(--ink-500);
  --score-bg: var(--ink-50);
  --score-border: var(--ink-200);
  grid-template-columns: auto 1fr;
  padding: 6px 14px;
}
.sr-score-banner[data-tier="empty"] .sr-score-value { display: none; }
.sr-score-banner[data-tier="poor"]   { --score-color: #dc2626;        --score-bg: #fef2f2;        --score-border: #fecaca; }
.sr-score-banner[data-tier="fair"]   { --score-color: #ea580c;        --score-bg: #fff7ed;        --score-border: #fed7aa; }
.sr-score-banner[data-tier="good"]   { --score-color: #d97706;        --score-bg: #fffbeb;        --score-border: #fde68a; }
.sr-score-banner[data-tier="strong"] { --score-color: #16a34a;        --score-bg: #ecfdf5;        --score-border: #bbf7d0; }
.sr-score-banner-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-700);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Info tip used next to the "Compliance Score" label. Tooltip pops on hover
   and on keyboard focus; clicking is also fine because the popover is inside
   the button (toggling :focus). */
.sr-info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink-400);
  cursor: help;
  border-radius: 999px;
  transition: color 0.12s, background 0.12s;
}
.sr-info-tip:hover, .sr-info-tip:focus-visible {
  color: var(--ink-700);
  background: rgba(15, 23, 42, 0.06);
  outline: none;
}
.sr-info-tip-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  width: 280px;
  padding: 10px 12px;
  background: var(--ink-900);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 0.12s, transform 0.12s;
  z-index: 50;
  text-align: left;
  white-space: normal;
}
.sr-info-tip-popover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 14px;
  border: 5px solid transparent;
  border-bottom-color: var(--ink-900);
}
.sr-info-tip:hover .sr-info-tip-popover,
.sr-info-tip:focus-visible .sr-info-tip-popover,
.sr-info-tip:focus-within .sr-info-tip-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.sr-info-tip-popover strong { color: var(--white); font-weight: 700; }
.sr-info-tip-weights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin: 8px 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}
.sr-info-tip-weights b { font-weight: 700; color: var(--white); margin-right: 6px; font-variant-numeric: tabular-nums; }
.sr-score-banner[data-tier="empty"] .sr-score-num,
.sr-score-banner[data-tier="empty"] .sr-score-suffix,
.sr-score-banner[data-tier="empty"] .sr-score-bar { display: none; }
.sr-score-value {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}
.sr-score-num {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: var(--score-color);
  letter-spacing: -0.5px;
}
.sr-score-suffix {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
}
.sr-score-bar {
  height: 6px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  overflow: hidden;
  min-width: 80px;
}
.sr-score-bar-fill {
  height: 100%;
  background: var(--score-color);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sr-score-summary {
  font-size: 12px;
  color: var(--ink-600);
  font-weight: 500;
  white-space: nowrap;
}
.sr-score-banner[data-tier="empty"] .sr-score-summary { color: var(--ink-500); }

.sr-batch-bar {
  background: var(--ink-900);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}
.sr-batch-bar[hidden] { display: none; }
.sr-batch-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sr-batch-bar-text {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--white);
}
.sr-batch-count { font-weight: 700; font-size: 14px; }
.sr-batch-sub { font-size: 12px; color: var(--ink-300); }
.sr-batch-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sr-batch-btn {
  background: var(--white);
  color: var(--ink-900);
  border: 1px solid var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
}
.sr-batch-btn:hover:not(:disabled) { opacity: 0.9; }
.sr-batch-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.sr-batch-btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  margin-left: 4px;
}
.sr-batch-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); }
.sr-batch-select {
  background: var(--white);
  color: var(--ink-900);
  border: 1px solid var(--ink-300);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.sr-batch-progress {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 12px;
  font-size: 12px;
  color: var(--ink-300);
}
.sr-batch-progress.error { color: #fca5a5; }

.sr-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px 32px;
  width: 100%;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  box-sizing: border-box;
  align-items: start;
}

.sr-list-col {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
}
.sr-list-filters {
  padding: 12px;
  border-bottom: 1px solid var(--ink-200);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sr-search {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--ink-200);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: var(--ink-50);
  box-sizing: border-box;
}
.sr-search:focus { outline: none; border-color: var(--accent); background: var(--white); }
.sr-list-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sr-select {
  flex: 1 1 calc(50% - 3px);
  min-width: 0;
  padding: 7px 24px 7px 10px;
  border: 1px solid var(--ink-200);
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink-900);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path fill='none' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4 L5 6.5 L7.5 4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 10px;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.sr-select:hover { border-color: var(--ink-300); }
.sr-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.sr-select[hidden] { display: none; }
.sr-select-full { flex-basis: 100%; }

/* Custom date popover — anchors below the filter row when "Custom range…" is
   chosen, so the document list doesn't shift down. The parent .sr-list-filters
   is position:relative so this can absolutely-position to it. */
.sr-list-filters { position: relative; }
.sr-date-popover {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% - 6px);
  z-index: 20;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sr-date-popover[hidden] { display: none; }
.sr-date-popover-fields {
  display: flex;
  gap: 6px;
}
.sr-date-popover-field {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sr-date-popover-field > span {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sr-date-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid var(--ink-200);
  border-radius: 6px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--ink-900);
  background: var(--white);
  cursor: pointer;
}
.sr-date-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.sr-date-popover-clear {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  cursor: pointer;
  padding: 2px 4px;
  font-family: inherit;
}
.sr-date-popover-clear:hover { color: var(--accent); }
.sr-list-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-500);
}
.sr-select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}
.sr-list-body {
  flex: 1;
  overflow-y: auto;
}
.sr-pdf-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink-100);
  cursor: pointer;
  transition: background 0.12s;
}
.sr-pdf-card:hover { background: var(--ink-50); }
.sr-pdf-card.active {
  background: #EFF6FF;
  border-left: 3px solid var(--accent);
  padding-left: 9px;
}
.sr-pdf-card-checkbox { margin-top: 2px; flex-shrink: 0; }
.sr-pdf-card-body { flex: 1; min-width: 0; }
.sr-pdf-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-pdf-card-meta {
  font-size: 11px;
  color: var(--ink-500);
  margin-top: 2px;
}
.sr-pdf-card-source {
  font-size: 11px;
  color: var(--ink-500);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-pdf-card-badges {
  margin-top: 4px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.sr-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.sr-badge.fixed        { background: #dcfce7; color: #16a34a; }
.sr-badge.translated   { background: #eff6ff; color: #2563eb; }
.sr-badge.fixing       { background: #eff6ff; color: #2563eb; font-style: italic; }
.sr-badge.translating  { background: #eff6ff; color: #2563eb; font-style: italic; }
.sr-badge.issues       { background: #fef2f2; color: #dc2626; }
.sr-badge.compliant    { background: #dcfce7; color: #16a34a; }
.sr-badge.not-audited  { background: #f3f4f6; color: #6b7280; }
.sr-badge.error        { background: #fee2e2; color: #991b1b; }
.sr-badge.too-large    { background: #fef3c7; color: #92400e; }
.sr-badge-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Right-side detail panel */
.sr-detail-col {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  padding: 24px;
  min-width: 0;
}
.sr-detail-empty { color: var(--ink-500); font-size: 13px; }

.sr-detail-header { margin-bottom: 20px; }
.sr-detail-filename { font-size: 17px; font-weight: 700; color: var(--ink-900); margin-bottom: 4px; word-break: break-word; }
.sr-detail-url { font-size: 12px; color: var(--ink-500); word-break: break-all; }
.sr-detail-found-on { font-size: 12px; color: var(--ink-500); word-break: break-all; margin-top: 4px; }
.sr-detail-found-on a { color: var(--primary); text-decoration: none; }
.sr-detail-found-on a:hover { text-decoration: underline; }

.sr-detail-section { padding: 16px 0; border-top: 1px solid var(--ink-100); }
.sr-detail-section:first-of-type { padding-top: 0; border-top: none; }
.sr-detail-section-label { font-size: 11px; font-weight: 600; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }

.sr-actions-card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--ink-100);
}
.sr-actions-card:first-of-type { padding-top: 0; border-top: none; }
.sr-actions-col { min-width: 0; }
@media (max-width: 900px) {
  .sr-actions-card { grid-template-columns: 1fr; gap: 16px; }
}

.sr-fix-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.sr-fix-pill.cloud-local { background: #fef9c3; color: #a16207; border-color: #fde68a; }
.sr-fix-meta { margin-left: 10px; font-size: 13px; color: var(--ink-500); }
.sr-fix-action-row { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.sr-fix-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.sr-fix-btn:hover:not(:disabled) { opacity: 0.92; }
.sr-fix-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sr-verify-btn {
  background: var(--white);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.sr-compliant-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.sr-not-audited-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.sr-fix-staged {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.sr-error-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.sr-error-detail { margin-top: 6px; font-size: 12px; color: var(--ink-500); }

.sr-translate-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sr-translate-row select {
  padding: 7px 10px;
  border: 1px solid var(--ink-200);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: var(--white);
}

.sr-download-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sr-download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-700);
  text-decoration: none;
  cursor: pointer;
}
.sr-download-link:hover { color: var(--accent); }
.sr-download-link.disabled { color: var(--ink-300); cursor: not-allowed; pointer-events: none; }

.sr-publish-banner {
  background: #eff6ff;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 12px 14px;
}
.sr-publish-banner-title { font-weight: 700; font-size: 14px; color: var(--ink-900); margin-bottom: 4px; }
.sr-publish-banner-copy { font-size: 12px; color: var(--ink-500); margin-bottom: 10px; line-height: 1.5; }
.sr-publish-url {
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--ink-100);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--ink-700);
  margin-bottom: 10px;
  word-break: break-all;
}
.sr-publish-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 12px;
  font-weight: 600;
}
.sr-publish-rescan {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--ink-200);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.sr-publish-rescan-copy { font-size: 12px; color: var(--ink-500); line-height: 1.5; }
.sr-publish-rescan-warn {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.5;
}
.sr-publish-rescan-warn strong { color: #78350f; }

.sr-severity-legend-toggle { font-size: 12px; color: var(--ink-500); margin: 6px 0 12px; cursor: pointer; }
.sr-severity-legend-toggle summary { cursor: pointer; user-select: none; }
.sr-severity-legend-toggle summary:hover { color: var(--ink-700); }
.sr-severity-legend-toggle > summary + .sr-severity-legend { margin-top: 8px; }
.sr-severity-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  font-size: 12px;
  color: var(--ink-500);
}
.sr-severity-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.sr-severity-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sr-severity-dot.critical { background: #dc2626; }
.sr-severity-dot.serious  { background: #ea580c; }
.sr-severity-dot.moderate { background: #d97706; }
.sr-severity-dot.minor    { background: #2563eb; }

/* Expandable sections (Issues + Changelog) */
.sr-section {
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  margin-top: 14px;
  overflow: hidden;
}
.sr-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  background: var(--white);
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}
.sr-section-header:hover { background: var(--ink-50); }
.sr-section-title { display: flex; flex-direction: column; gap: 2px; }
.sr-section-subtitle { font-size: 12px; font-weight: 400; color: var(--ink-500); }
.sr-section-toggle {
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink-200);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink-500);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.sr-section-body {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--ink-200);
}
.sr-section-body[hidden] { display: none; }

.sr-severity-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sr-severity-pill {
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid var(--ink-200);
  background: var(--white);
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.sr-severity-pill.active {
  background: var(--ink-900);
  color: var(--white);
  border-color: var(--ink-900);
}

.sr-issue-row {
  padding: 12px 0;
  border-top: 1px solid var(--ink-100);
}
.sr-issue-row:first-child { border-top: none; padding-top: 0; }
.sr-issue-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.sr-issue-title { font-size: 13.5px; font-weight: 600; color: var(--ink-900); }
.sr-issue-badges { display: inline-flex; gap: 6px; flex-shrink: 0; }
.sr-severity-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sr-severity-badge.critical { background: #fef2f2; color: #dc2626; }
.sr-severity-badge.serious  { background: #fff7ed; color: #ea580c; }
.sr-severity-badge.moderate { background: #fffbeb; color: #d97706; }
.sr-severity-badge.minor    { background: #eff6ff; color: #2563eb; }
.sr-wcag-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--ink-100);
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.sr-issue-description {
  font-size: 12.5px;
  color: var(--ink-500);
  line-height: 1.5;
  margin-bottom: 4px;
}
.sr-fix-status {
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sr-fix-status.done          { color: #16a34a; }
.sr-fix-status.review        { color: #d97706; }
.sr-fix-status.still-present { color: #dc2626; }
/* Non-blocking warnings: any finding still flagged after our best-effort
   fix that isn't in ERROR_RULE_IDS. Doesn't affect compliance — neutral
   informational tone. */
.sr-fix-status.warning       { color: #64748b; }
.sr-warning-suffix           { color: #64748b; font-size: 12px; }
/* Blocking errors: ERROR_RULE_IDS rules (encryption, XFA) — the only
   findings that prevent the document from being marked compliant. */
.sr-fix-status.error         { color: #dc2626; font-weight: 600; }
/* Informational tone for pre-fix auto-rule issues — we'll attempt them
   automatically, so warning colors here would scare the user off Fix. */
.sr-fix-status.auto-pending  { color: #2563eb; }
.sr-fix-hint {
  margin-top: 4px;
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
  padding: 6px 10px;
  border-radius: 3px;
  line-height: 1.45;
}

.sr-changelog-intro {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink-100);
}
.sr-changelog-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--ink-100);
}
.sr-changelog-entry:first-child { border-top: none; padding-top: 6px; }
.sr-changelog-icon {
  flex-shrink: 0;
  font-weight: 700;
  margin-top: 1px;
}
.sr-changelog-icon.done       { color: #16a34a; }
.sr-changelog-icon.review     { color: #d97706; }
/* Non-blocking warning: still flagged after our best-effort fix.
   Doesn't affect compliance — neutral slate matches the issue card. */
.sr-changelog-icon.warning    { color: #64748b; }
/* Blocking error: ERROR_RULE_IDS rule (encryption, XFA) still flagged.
   The document cannot ship as accessible until this is addressed. */
.sr-changelog-icon.error      { color: #dc2626; }
/* Small badge after the changelog title for findings our remediation
   introduced — informational, doesn't change compliance. */
.sr-changelog-introduced-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 3px;
  vertical-align: middle;
}
.sr-changelog-body { flex: 1; min-width: 0; }
.sr-changelog-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 3px;
}
.sr-changelog-desc {
  font-size: 12.5px;
  color: var(--ink-500);
  line-height: 1.5;
}

.sr-empty-state {
  font-size: 13px;
  color: var(--ink-500);
  padding: 16px 0;
  text-align: center;
}

@media (max-width: 900px) {
  .sr-main {
    grid-template-columns: 1fr;
  }
  .sr-list-col { position: static; max-height: none; }
  .sr-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sr-score-banner { grid-template-columns: auto 1fr; row-gap: 6px; }
  .sr-score-banner .sr-score-bar, .sr-score-banner .sr-score-summary { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .sr-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sr-breadcrumb-bar, .sr-page-header, .sr-batch-bar-inner, .sr-main { padding-left: 16px; padding-right: 16px; }
}

/* ── Credits panel ──────────────────────────────────────────────── */
.dash-credits {
  background: linear-gradient(135deg, var(--ink-50, #f5f5f5) 0%, #fff 100%);
  border: 1px solid var(--ink-100, #e5e7eb);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.dash-credits-row {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.dash-credits-balance { min-width: 140px; }
.dash-credits-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-500, #6b7280); margin-bottom: 2px;
}
.dash-credits-value {
  font-size: 28px; font-weight: 700; color: var(--ink-900, #111827); line-height: 1;
}
.dash-credits-sub {
  font-size: 13px; color: var(--ink-500, #6b7280); margin-top: 4px;
}
.dash-credits-expiry {
  flex: 1; font-size: 13px; color: var(--ink-700, #374151); min-width: 200px;
}
.dash-credits-expiry strong { color: var(--ink-900, #111827); }
.dash-credits-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.dash-credits-unlimited {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--ink-900, #111827); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}

/* ── Credits modals ─────────────────────────────────────────────── */
.credits-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.credits-modal-backdrop[hidden] { display: none; }
.credits-modal {
  background: #fff; border-radius: 12px;
  max-width: 560px; width: 100%; max-height: 85vh; overflow: auto;
  padding: 24px 28px; position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.credits-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 28px; color: var(--ink-500, #6b7280); line-height: 1;
}
.credits-modal-close:hover { color: var(--ink-900, #111827); }
.credits-modal-title {
  font-size: 20px; font-weight: 700; color: var(--ink-900, #111827);
  margin: 0 0 12px 0;
}
.credits-modal-body { font-size: 14px; color: var(--ink-700, #374151); line-height: 1.6; }
.credits-modal-body p { margin: 0 0 12px 0; }
.credits-modal-body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.credits-modal-body th, .credits-modal-body td {
  padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--ink-100, #e5e7eb);
}
.credits-modal-body th { font-weight: 600; color: var(--ink-500, #6b7280); font-size: 12px; }
.credits-modal-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px;
}
.credits-modal-checkbox {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--ink-700, #374151); margin-top: 14px;
}
.credits-modal-checkbox input { width: 16px; height: 16px; }
.credits-tier-card {
  border: 1px solid var(--ink-100, #e5e7eb); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 10px;
}
.credits-tier-card.active { border-color: var(--ink-900, #111827); border-width: 2px; }
.credits-tier-name { font-weight: 700; font-size: 15px; }
.credits-tier-price { font-size: 14px; color: var(--ink-700, #374151); margin-top: 4px; }
.credits-tier-price s { color: var(--ink-500, #6b7280); margin-right: 6px; }
.credits-tier-feats { font-size: 12.5px; color: var(--ink-500, #6b7280); margin-top: 6px; }
.credits-ledger-row {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid var(--ink-100, #e5e7eb); font-size: 13px;
}
.credits-ledger-row:last-child { border-bottom: 0; }
.credits-ledger-grant { color: #047857; }
.credits-ledger-consume { color: #b91c1c; }
.credits-ledger-expire { color: var(--ink-500, #6b7280); }
.credits-ledger-refund { color: #1d4ed8; }

/* ── WordPress integration settings card ─────────────────────────────────── */
.wp-settings-grid { display: flex; flex-direction: column; gap: 14px; }
.wp-field-group { display: flex; flex-direction: column; gap: 4px; }
.wp-field-label {
  font-size: 13px; font-weight: 600; color: #1e293b;
  display: flex; flex-direction: column; gap: 2px;
}
.wp-field-hint { font-size: 11px; font-weight: 400; color: #64748b; }
.wp-text-input {
  padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 6px;
  font-size: 13px; color: #0f172a; background: #fff; width: 100%;
  box-sizing: border-box; font-family: inherit;
}
.wp-text-input:focus { outline: 2px solid #3b82f6; border-color: transparent; }
.wp-password-row { display: flex; gap: 6px; align-items: center; }
.wp-password-row .wp-text-input { flex: 1; }
.wp-toggle-pwd {
  background: none; border: 1px solid #cbd5e1; border-radius: 6px;
  padding: 6px 8px; cursor: pointer; color: #64748b; line-height: 1;
  display: flex; align-items: center;
}
.wp-toggle-pwd:hover { color: #1e293b; border-color: #94a3b8; }
.wp-password-status { font-size: 11px; margin-top: 2px; }
.wp-password-saved { color: #059669; }
.wp-test-btn { font-size: 13px; padding: 7px 14px; }
.wp-test-status { font-size: 12px; margin-left: 10px; }
.wp-test-ok  { color: #059669; }
.wp-test-error { color: #dc2626; }

.wp-options-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 680px) { .wp-options-two-col { grid-template-columns: 1fr; } }

.wp-fieldset {
  border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 14px 16px; margin: 0;
}
.wp-legend {
  font-size: 13px; font-weight: 600; color: #1e293b;
  padding: 0 6px;
}
.wp-radio-label {
  display: flex; gap: 10px; align-items: flex-start;
  cursor: pointer; padding: 8px 0; border-bottom: 1px solid #f1f5f9;
}
.wp-radio-label:last-of-type { border-bottom: none; }
.wp-radio-label input[type="radio"] { margin-top: 3px; flex-shrink: 0; }
.wp-radio-content { display: flex; flex-direction: column; gap: 3px; }
.wp-radio-content strong { font-size: 13px; font-weight: 600; color: #0f172a; }
.wp-radio-content span { font-size: 11px; color: #64748b; }

/* ── WordPress publish modal ─────────────────────────────────────────────── */
#wp-publish-modal .modal-card { max-width: 640px; }
#wp-publish-modal .modal-body { overflow-y: auto; max-height: calc(100vh - 120px); }
