/* MTL — Apple visionOS / Glass UI (local trial only, do not deploy) */

/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
  --glass-bg:        rgba(255, 255, 255, 0.07);
  --glass-bg-hover:  rgba(255, 255, 255, 0.11);
  --glass-border:    rgba(255, 255, 255, 0.14);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --glass-shadow:    0 8px 40px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
  --blur:            blur(28px) saturate(180%);

  --foreground:      rgba(255, 255, 255, 0.95);
  --muted-foreground: rgba(255, 255, 255, 0.48);
  --primary:         #8B1A2E;
  --primary-dark:    #6B1222;
  --primary-glow:    rgba(139, 26, 46, 0.35);
  --primary-foreground: #fff;

  --radius-xl:  20px;
  --radius-lg:  14px;
  --radius-md:  10px;
  --radius-pill: 999px;

  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans:  "Inter Tight", system-ui, sans-serif;

  /* legacy compat aliases */
  --background: #04040a;
  --card: var(--glass-bg);
  --border: var(--glass-border);
  --input: var(--glass-border);
  --ring: var(--primary);
  --secondary: rgba(255,255,255,0.04);
  --destructive: var(--primary);
  --destructive-foreground: #fff;
  --radius: var(--radius-md);
  --primary-foreground: #fff;
}

/* ── Light mode token overrides — Apple Liquid Glass (WWDC25) ──────── */
[data-theme="light"] {
  /* Near-transparent frosted panels — white specular highlight carries the glass feel */
  --glass-bg:        rgba(255, 255, 255, 0.26);
  --glass-bg-hover:  rgba(255, 255, 255, 0.38);
  --glass-border:    rgba(255, 255, 255, 0.60);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(0,0,0,0.04);
  --glass-shadow:    0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
  --blur:            blur(40px) saturate(200%);

  --foreground:       rgba(0, 0, 0, 0.82);
  --muted-foreground: rgba(0, 0, 0, 0.42);
  --primary:          #8B1A2E;
  --primary-dark:     #6B1222;
  --primary-glow:     rgba(139, 26, 46, 0.20);

  --background: #bfc3ce;
  --secondary:  rgba(255, 255, 255, 0.18);
}

/* ── Reset & base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: #04040a;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(120, 40, 200, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%,  rgba(139, 26, 46, 0.10) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  animation: page-fadein .22s ease both;
}
@keyframes page-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

[data-theme="light"] body {
  /* Cool silver-grey base matching Apple WWDC25 Liquid Glass background */
  background: #bfc3ce;
  background-image:
    radial-gradient(ellipse 100% 80% at 50% 0%,   #d2d5de 0%, transparent 60%),
    radial-gradient(ellipse 70%  50% at 0%  100%, #b8bcc8 0%, transparent 55%),
    radial-gradient(ellipse 60%  45% at 100% 80%, #c4c7d2 0%, transparent 50%);
}

[data-theme="light"] header.site-header,
[data-theme="light"] footer.site-footer {
  background: rgba(185, 189, 202, 0.68);
  border-color: rgba(255, 255, 255, 0.45);
}

/* All elements: white-tinted glass with white border, matching Apple Liquid Glass */
[data-theme="light"] textarea#claim-input,
[data-theme="light"] textarea#url-input {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--foreground);
}

[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--foreground);
}
[data-theme="light"] .theme-toggle:hover { background: rgba(255, 255, 255, 0.45); }

[data-theme="light"] .badge.verdict-unverified {
  background: rgba(255, 255, 255, 0.28);
  color: var(--muted-foreground);
  border-color: rgba(255, 255, 255, 0.55);
}

[data-theme="light"] .tag-chip {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
}

[data-theme="light"] .filter-btn {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
}
[data-theme="light"] .filter-btn:hover { background: rgba(255, 255, 255, 0.45); }

[data-theme="light"] .btn-secondary {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .btn-secondary:hover { background: rgba(255, 255, 255, 0.45); }

[data-theme="light"] .spinner {
  border-color: rgba(255, 255, 255, 0.40);
  border-top-color: var(--primary);
}

[data-theme="light"] .verdict-bar-track { background: rgba(0, 0, 0, 0.10); }

[data-theme="light"] .error-banner {
  background: rgba(139, 26, 46, 0.10);
  border-color: rgba(139, 26, 46, 0.35);
}

[data-theme="light"] .search-bar input[type=search] {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--foreground);
}

[data-theme="light"] .reviewer-field input,
[data-theme="light"] .inline-action-panel textarea,
[data-theme="light"] .user-input {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--foreground);
}

[data-theme="light"] #email-input {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  color: var(--foreground) !important;
}

[data-theme="light"] .share-bar,
[data-theme="light"] .disclosure,
[data-theme="light"] .reviewer-notes,
[data-theme="light"] .inline-action-panel,
[data-theme="light"] .embed-code-block {
  border-color: rgba(255, 255, 255, 0.50);
}

[data-theme="light"] .stat-pill {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
}

[data-theme="light"] .tabs {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.50);
}

[data-theme="light"] .mode-toggle {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.50);
}

[data-theme="light"] .checker-line,
[data-theme="light"] .report-section,
[data-theme="light"] .evidence-item {
  border-color: rgba(255, 255, 255, 0.45);
}

/* ── Utility ───────────────────────────────────────────────────────── */
.container-page {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ────────────────────────────────────────────────────────── */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(4, 4, 10, 0.65);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-border);
}
.site-header .container-page {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 64px;
  padding-top: 0;
  padding-bottom: 0;
}

.brand { display: flex; align-items: center; gap: 0; text-decoration: none; color: var(--foreground); }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 10px;
  background: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
  color: #fff;
  font-family: var(--font-serif); font-weight: 700; font-size: 14px;
  border-radius: 8px;
}
.brand-logo {
  height: 64px; width: auto;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin: 0;
  flex-shrink: 0;
}
.brand-name { display: none; }
.brand-tagline {
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: var(--muted-foreground);
  letter-spacing: .02em;
  padding-left: 16px;
  margin-left: 14px;
  border-left: 1.5px solid var(--glass-border);
  line-height: 1.3;
}
[data-theme="dark"] .brand-logo { filter: brightness(1.5) contrast(1.05); }

.site-nav { display: flex; align-items: center; gap: 20px; }

/* ── Hamburger button (mobile only) ───────────────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px; height: 36px;
  padding: 9px 7px;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.hamburger-btn span {
  display: block; width: 100%; height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.15s ease;
}
.hamburger-btn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-link {
  font-size: 13px; font-weight: 600; letter-spacing: .03em;
  color: var(--muted-foreground); text-decoration: none;
  transition: color .15s;
}
.nav-link:hover, .nav-link.active { color: var(--foreground); }

.theme-toggle {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--foreground); border-radius: var(--radius-pill);
  width: 36px; height: 36px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: background .15s;
}
.theme-toggle:hover { background: var(--glass-bg-hover); }

/* ── Main layout ───────────────────────────────────────────────────── */
main { max-width: 768px; margin: 0 auto; padding: 52px 24px; flex: 1; width: 100%; }
main.main-wide { max-width: 1152px; }

/* ── Typography ────────────────────────────────────────────────────── */
.page-eyebrow {
  font-family: var(--font-serif); font-size: 15px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 8px 0;
  text-shadow: 0 0 20px var(--primary-glow);
}
.page-title {
  font-family: var(--font-serif); font-size: 36px; line-height: 44px;
  font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px 0;
}
.page-lede { color: var(--muted-foreground); font-size: 15px; margin: 0 0 36px 0; }

/* ── Glass card ────────────────────────────────────────────────────── */
.tool-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  padding: 28px;
  margin-bottom: 36px;
}
.tool-card.check-card { min-height: 0; }

/* ── Mode toggle ───────────────────────────────────────────────────── */
.mode-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 20px;
  padding: 3px;
  gap: 3px;
}
.mode-toggle button {
  background: transparent; border: none;
  color: var(--muted-foreground);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  padding: 7px 20px; cursor: pointer; letter-spacing: .02em;
  border-radius: var(--radius-pill);
  transition: background .2s, color .2s;
  min-width: 120px; text-align: center;
}
.mode-toggle button.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px var(--primary-glow);
}

/* ── Inputs ────────────────────────────────────────────────────────── */
label.field-label {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 8px;
}
textarea#claim-input, textarea#url-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--foreground);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  font-family: var(--font-sans); font-size: 14px;
  resize: vertical; min-height: 110px;
  transition: border-color .2s, box-shadow .2s;
}
textarea#url-input { min-height: 110px; }
textarea#claim-input:focus, textarea#url-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.char-count { text-align: right; font-size: 11px; color: var(--muted-foreground); margin-top: 6px; }
#text-field, #url-field { min-height: 200px; }
#text-field > p, #url-field > p { min-height: 36px; }

/* email input */
#email-input {
  background: rgba(255,255,255,0.05) !important;
  border-radius: var(--radius-lg) !important;
  border-color: var(--glass-border) !important;
}
#email-input:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

/* ── Primary button ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-weight: 700; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 12px 28px; margin-top: 18px; cursor: pointer;
  box-shadow: 0 4px 20px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: background .2s, box-shadow .2s, transform .1s;
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 28px var(--primary-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Secondary button ──────────────────────────────────────────────── */
.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-weight: 600;
  font-size: 12px; letter-spacing: .03em; padding: 8px 18px; cursor: pointer;
  transition: background .15s, transform .1s;
  box-shadow: var(--glass-highlight);
}
.btn-secondary:hover { background: var(--glass-bg-hover); transform: translateY(-1px); }

.btn-danger {
  background: rgba(139,26,46,0.35);
  color: #fff; border: 1px solid rgba(139,26,46,0.5);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-weight: 600;
  font-size: 12px; letter-spacing: .03em; padding: 8px 18px; cursor: pointer;
}
.btn-danger:hover { background: rgba(139,26,46,0.5); }
.btn-danger:disabled { opacity: .5; cursor: not-allowed; }

/* ── Spinner / status ──────────────────────────────────────────────── */
.tool-note { font-size: 12px; color: var(--muted-foreground); margin-top: 14px; }

.status-line {
  display: none; align-items: center; gap: 10px; font-size: 13px;
  color: var(--muted-foreground); margin-top: 18px;
}
.status-line.visible { display: flex; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: var(--primary);
  animation: spin .8s linear infinite;
  box-shadow: 0 0 8px var(--primary-glow);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Unverified disclaimer ─────────────────────────────────────────── */
#unverified-disclaimer {
  background: rgba(139, 26, 46, 0.07);
  border: 1px solid rgba(139, 26, 46, 0.28);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 20px 0 28px 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--foreground);
}
#unverified-disclaimer p { margin: 0 0 10px 0; }
#unverified-disclaimer p:last-child { margin-bottom: 0; }
.unverified-disclaimer-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px 0 !important;
}
.unverified-disclaimer-sign {
  font-style: italic;
  color: var(--muted-foreground);
  font-size: 14px;
}

/* ── Error banner ──────────────────────────────────────────────────── */
.error-banner {
  display: none;
  background: rgba(139,26,46,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139,26,46,0.4);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 14px 18px; color: var(--foreground); font-size: 13px; margin-top: 18px;
  box-shadow: 0 4px 20px rgba(139,26,46,0.15);
}
.error-banner.visible { display: block; }

/* ── Report output ─────────────────────────────────────────────────── */
#report-output { display: none; }
#report-output.visible { display: block; }

/* ── Verdict badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-sans); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; padding: 8px 20px; font-size: 12px;
  border-radius: var(--radius-pill);
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 20px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  margin-top: 4px;
}
.badge.verdict-true {
  background: linear-gradient(135deg, oklch(45% .18 145), oklch(38% .15 155));
  box-shadow: 0 4px 20px rgba(30,160,80,0.4);
}
.badge.verdict-fake {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 20px var(--primary-glow);
}
.badge.verdict-misleading {
  background: linear-gradient(135deg, oklch(52% .18 55), oklch(46% .15 50));
  box-shadow: 0 4px 20px rgba(180,120,0,0.4);
}
.badge.verdict-unverified {
  background: rgba(255,255,255,0.1);
  color: var(--muted-foreground);
  box-shadow: var(--glass-highlight);
  border: 1px solid var(--glass-border);
}

.report-meta {
  font-size: 12px; color: var(--muted-foreground); margin-top: 20px;
  letter-spacing: .05em; text-transform: uppercase;
}

/* ── Report image ──────────────────────────────────────────────────── */
.report-image {
  display: block; width: 100%; height: 288px; object-fit: cover;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  margin-top: 32px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
@media (min-width: 768px) { .report-image { height: 384px; } }
.report-image-caption { font-size: 12px; color: var(--muted-foreground); margin-top: 8px; }

/* ── Report sections ───────────────────────────────────────────────── */
.report-section {
  margin-top: 28px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  padding: 24px 28px;
}
.report-section h2 {
  font-family: var(--font-serif); font-size: 15px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 14px 0;
  text-shadow: 0 0 16px var(--primary-glow);
}
.report-section p { margin: 0; color: var(--muted-foreground); font-size: 14px; line-height: 21px; }
.report-section ol, .report-section ul { margin: 0; padding-left: 20px; color: var(--muted-foreground); font-size: 14px; line-height: 22px; }
.report-section li { margin-bottom: 8px; }
.report-section li:last-child { margin-bottom: 0; }

/* ── Evidence ──────────────────────────────────────────────────────── */
.evidence-item { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.evidence-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.evidence-header { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.evidence-source { font-size: 12px; font-weight: 600; color: var(--foreground); }
.evidence-tier { font-size: 10px; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .04em; }
.evidence-expand-btn { font-size: 10px; color: var(--muted-foreground); background: none; border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; cursor: pointer; line-height: 1.6; margin-left: auto; flex-shrink: 0; }
.evidence-expand-btn:hover { color: var(--foreground); border-color: var(--foreground); }
.evidence-excerpt { font-size: 13px; color: var(--muted-foreground); margin-top: 6px; overflow-wrap: break-word; word-break: break-word; }
.evidence-excerpt-collapsed { display: none; }
.evidence-link { font-size: 12px; color: var(--primary); text-decoration: none; overflow-wrap: break-word; word-break: break-word; display: inline-block; margin-top: 3px; }
.evidence-link:hover { text-decoration: underline; }
/* Evidence edit rows (review queue edit panel) */
.edit-evidence-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.edit-evidence-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.edit-ev-fields { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.edit-ev-excerpt { resize: vertical; }

/* ── Sources ───────────────────────────────────────────────────────── */
.sources-list { list-style: none; margin: 0; padding: 0; }
.sources-list li { margin-bottom: 14px; }
.sources-list li:last-child { margin-bottom: 0; }
.source-label {
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-foreground); margin: 0 0 4px 0;
}
.source-link {
  display: inline-flex; align-items: flex-start; gap: 6px;
  font-size: 14px; color: var(--primary); text-decoration: none;
  overflow-wrap: break-word; word-break: break-word;
}
.source-link:hover { text-decoration: underline; }

/* ── Tags ──────────────────────────────────────────────────────────── */
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.report-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag-chip {
  font-size: 11px; color: var(--muted-foreground);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
  backdrop-filter: blur(8px);
}

.checker-line { font-size: 12px; color: var(--muted-foreground); margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--glass-border); }

.disclosure {
  margin-top: 24px; font-size: 12px; color: var(--muted-foreground);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
}

/* ── Share bar ─────────────────────────────────────────────────────── */
.share-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 12px 20px; margin-bottom: 28px;
  box-shadow: var(--glass-highlight);
}
.share-bar-label {
  font-size: 12px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted-foreground);
}

/* ── Footer ────────────────────────────────────────────────────────── */
footer.site-footer {
  position: sticky; bottom: 0; z-index: 100;
  background: rgba(4, 4, 10, 0.65);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid var(--glass-border);
}
footer.site-footer .container-page {
  padding: 20px 24px;
  text-align: center;
}
.footer-main { font-size: 13px; color: var(--muted-foreground); margin: 0 0 4px; }
.footer-sub  { font-size: 11px; color: var(--muted-foreground); opacity: 0.55; margin: 0; }

/* ── Review queue ──────────────────────────────────────────────────── */
.queue-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.tab-queue { min-width: 108px; justify-content: center; }
.tab-sep {
  display: inline-block; width: 1px; height: 18px; align-self: center;
  background: var(--glass-border); margin: 0 4px; flex-shrink: 0;
}
.tabs {
  display: inline-flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  overflow: hidden; padding: 3px; gap: 3px;
}
.tab-button {
  background: transparent; border: none; color: var(--muted-foreground);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  padding: 7px 18px; cursor: pointer; letter-spacing: .02em;
  border-radius: var(--radius-pill);
  transition: background .2s, color .2s;
  display: inline-flex; align-items: center; white-space: nowrap;
}
.tab-button.active { background: var(--primary); color: #fff; box-shadow: 0 2px 12px var(--primary-glow); }
.tab-count {
  display: inline-block; min-width: 28px; padding: 0 4px; margin-left: 6px;
  border-radius: 999px; background: rgba(255,255,255,0.1); color: var(--foreground);
  font-size: 10px; line-height: 18px; text-align: center; flex-shrink: 0;
}
.tab-button.active .tab-count { background: rgba(255,255,255,0.25); }

.reviewer-field { display: flex; align-items: center; gap: 8px; }
.reviewer-field label { font-size: 12px; color: var(--muted-foreground); white-space: nowrap; }
.reviewer-field input {
  background: var(--glass-bg); color: var(--foreground);
  border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
  padding: 7px 14px; font-size: 13px; font-family: var(--font-sans); width: 160px;
  backdrop-filter: blur(8px);
}

.queue-list { display: flex; flex-direction: column; gap: 16px; }
.queue-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  padding: 22px 26px;
  transition: background .2s;
  animation: card-in .35s ease both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.queue-card:hover { background: var(--glass-bg-hover); }
.queue-card.editing-active {
  border-color: oklch(55% .25 27);
  box-shadow: 0 0 0 2px oklch(55% .25 27 / .25), 0 6px 24px rgba(0,0,0,.25);
  background: var(--glass-bg-hover);
}

/* Edit countdown bar */
.edit-countdown-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted-foreground);
  background: color-mix(in srgb, var(--accent, #6366f1) 8%, var(--glass-bg));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 8px 14px;
  margin-bottom: 16px;
}
.edit-countdown-bar .edit-countdown-val {
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  font-size: 13px;
}
.edit-countdown-bar.urgent {
  border-color: oklch(55% .25 27 / .6);
  color: oklch(65% .22 27);
}
.edit-countdown-bar.urgent .edit-countdown-val { color: oklch(65% .22 27); }

/* ── Skeleton loading ── */
.skeleton-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 22px 26px;
}
.skeleton-line {
  background: rgba(255,255,255,.07);
  border-radius: 4px;
  animation: skel-pulse 1.5s ease-in-out infinite;
}
[data-theme="light"] .skeleton-line { background: rgba(0,0,0,.06); }
@keyframes skel-pulse {
  0%, 100% { opacity: .4; }
  50%       { opacity: 1; }
}
.queue-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.queue-headline { font-family: var(--font-serif); font-size: 19px; font-weight: 700; line-height: 1.3; margin: 10px 0 8px 0; }
.queue-meta { font-size: 13px; color: var(--muted-foreground); letter-spacing: .03em; text-transform: uppercase; }
.queue-excerpt { font-size: 13px; color: var(--muted-foreground); line-height: 20px; margin: 10px 0 0 0; }

.stat-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.stat-pill {
  font-size: 11px; color: var(--muted-foreground);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  background: rgba(255,255,255,0.04);
}
.stat-pill strong { color: var(--foreground); font-weight: 600; }

.queue-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; width: 100%; }
.queue-actions > * { flex: 1; display: flex; align-items: center; justify-content: center; }

.approved-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary); border: 1px solid var(--primary); border-radius: var(--radius-pill);
  padding: 5px 14px; box-shadow: 0 0 12px var(--primary-glow);
}

.details-panel { margin-top: 18px; border-top: 1px solid var(--glass-border); padding-top: 18px; display: none; }
.details-panel.visible { display: block; }
.details-panel h4 {
  font-family: var(--font-serif); font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary); margin: 16px 0 6px 0;
}
.details-panel h4:first-child { margin-top: 0; }
.details-panel p, .details-panel li { font-size: 13px; color: var(--muted-foreground); line-height: 19px; }
.details-panel ol, .details-panel ul { margin: 0; padding-left: 18px; }
.details-panel a { color: var(--primary); text-decoration: none; }
.details-panel a:hover { text-decoration: underline; }

.empty-state {
  text-align: center; padding: 60px 20px; color: var(--muted-foreground);
  border: 1px dashed var(--glass-border); border-radius: var(--radius-xl); font-size: 14px;
}

/* ── Verdict filter ────────────────────────────────────────────────── */
.verdict-filter { display: flex; flex-direction: column; gap: 8px; margin: 28px 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); min-width: 56px; }
.filter-btn {
  background: var(--glass-bg); color: var(--muted-foreground);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-weight: 600;
  font-size: 12px; letter-spacing: .03em; padding: 7px 16px; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .15s, color .15s;
}
.filter-btn:hover { background: var(--glass-bg-hover); color: var(--foreground); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 12px var(--primary-glow); }

/* ── User management ───────────────────────────────────────────────── */
.users-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.add-user-form {
  background: var(--glass-bg); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
  padding: 22px 26px; margin-bottom: 24px;
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}
.user-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.user-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--foreground);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  appearance: none;
  -webkit-appearance: none;
}
.user-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
select.user-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
[data-theme="light"] select.user-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(0,0,0,0.45)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
select.user-input option {
  background: #1a1a2e;
  color: #fff;
}
[data-theme="light"] select.user-input option {
  background: #f0f0f4;
  color: #111;
}
.users-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.users-table th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-foreground);
  border-bottom: 1px solid var(--glass-border); padding: 8px 12px 8px 0;
}
.users-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--glass-border); vertical-align: middle; }
.users-table tr:last-child td { border-bottom: none; }
.user-inactive td { opacity: .5; }
.user-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.role-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
}
.role-badge.role-admin { color: var(--primary); border-color: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }
.role-badge.role-editor { color: var(--muted-foreground); }

/* ── Analytics ─────────────────────────────────────────────────────── */
.analytics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 8px; }
@media (min-width: 640px) { .analytics-grid { grid-template-columns: repeat(4, 1fr); } }
.analytics-stat {
  background: var(--glass-bg); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  padding: 24px 20px; text-align: center;
}
.analytics-stat-value { display: block; font-family: var(--font-serif); font-size: 40px; font-weight: 700; color: var(--foreground); line-height: 1; }
.analytics-stat-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-foreground); margin-top: 8px; }
.analytics-section-title { font-family: var(--font-serif); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); margin: 28px 0 16px 0; }
.verdict-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.verdict-bar-label { font-size: 11px; font-weight: 600; width: 110px; flex-shrink: 0; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-foreground); }
.verdict-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.verdict-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #B5203A); border-radius: 4px; transition: width .4s ease; box-shadow: 0 0 8px var(--primary-glow); }
.verdict-bar-count { font-size: 12px; font-weight: 600; color: var(--foreground); min-width: 70px; text-align: right; }
.daily-chart { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding-bottom: 20px; position: relative; overflow-x: auto; }
.daily-col { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 28px; flex: 1; }
.daily-bar-wrap { display: flex; align-items: flex-end; height: 60px; width: 100%; }
.daily-bar { width: 100%; background: linear-gradient(180deg, var(--primary), var(--primary-dark)); border-radius: 4px 4px 0 0; min-height: 2px; transition: height .3s ease; box-shadow: 0 0 8px var(--primary-glow); }
.daily-count { font-size: 10px; font-weight: 700; color: var(--foreground); min-height: 14px; }
.daily-label { font-size: 9px; color: var(--muted-foreground); white-space: nowrap; margin-top: 4px; }
@media (max-width: 500px) { .analytics-grid { grid-template-columns: 1fr; } .verdict-bar-label { width: 80px; font-size: 10px; } }

/* ── Feedback analytics ────────────────────────────────────────────── */
.fb-analytics-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.fba-hero { display: flex; align-items: baseline; gap: 10px; margin-bottom: 28px; }
.fba-total { font-family: var(--font-serif); font-size: 52px; font-weight: 700; color: var(--primary); line-height: 1; }
.fba-total-label { font-size: 14px; color: var(--muted-foreground); }
.fba-section-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); margin: 28px 0 12px; }
.fba-collapse-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 20px 0 0; padding: 8px 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  color: var(--muted-foreground); font-size: 12px; font-family: var(--font-sans);
  font-weight: 500; letter-spacing: .03em; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.fba-collapse-btn:hover { border-color: var(--primary); color: var(--foreground); }

/* Key score cards */
.fba-key-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 28px; }
.fba-key-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 14px 12px; text-align: center; }
.fba-key-icon { font-size: 22px; display: block; margin-bottom: 6px; }
.fba-key-label { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); display: block; margin-bottom: 6px; }
.fba-key-val { font-family: var(--font-serif); font-size: 26px; font-weight: 700; display: block; margin-bottom: 8px; }
.fba-key-bar-wrap { background: rgba(255,255,255,.08); border-radius: 99px; height: 4px; overflow: hidden; }
.fba-key-bar { height: 4px; border-radius: 99px; transition: width .4s ease; }

/* Timeline */
.fba-timeline { display: flex; gap: 6px; align-items: flex-end; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; }
.fba-day-col { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 28px; }
.fba-day-count { font-size: 10px; font-weight: 700; color: var(--foreground); min-height: 14px; }
.fba-day-bar-wrap { display: flex; align-items: flex-end; height: 52px; }
.fba-day-bar { width: 20px; border-radius: 3px 3px 0 0; background: var(--primary); min-height: 4px; box-shadow: 0 0 6px var(--primary-glow); }
.fba-day-label { font-size: 9px; color: var(--muted-foreground); white-space: nowrap; }

/* Section summary grid */
.fba-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.fba-summary-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 16px; }
.fba-summary-header { display: flex; gap: 7px; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 12px; }
.fba-q-row { margin-bottom: 10px; }
.fba-q-label { font-size: 11px; color: var(--foreground); display: block; margin-bottom: 5px; line-height: 1.4; }
.fba-score-row { display: flex; align-items: center; gap: 8px; }
.fba-score-bar-wrap { flex: 1; background: rgba(255,255,255,.08); border-radius: 99px; height: 6px; overflow: hidden; }
.fba-score-bar { height: 6px; border-radius: 99px; transition: width .4s ease; }
.fba-score-val { font-size: 13px; font-weight: 700; white-space: nowrap; min-width: 36px; }
.fba-score-n { font-size: 10px; color: var(--muted-foreground); white-space: nowrap; }

/* Detailed cards */
.fba-section { margin-bottom: 24px; }
.fba-detail-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.fba-detail-q { font-size: 13px; font-weight: 600; margin: 0 0 4px; line-height: 1.4; }
.fba-detail-avg { font-size: 11px; color: var(--muted-foreground); margin: 0 0 12px; }
.fba-dist-list { display: flex; flex-direction: column; gap: 6px; }
.fba-dist-row { display: flex; align-items: center; gap: 10px; }
.fba-dist-label { font-size: 11px; color: var(--muted-foreground); width: 160px; flex-shrink: 0; }
.fba-dist-track { flex: 1; height: 6px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.fba-dist-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #B5203A); border-radius: 99px; transition: width .4s ease; }
.fba-dist-count { font-size: 11px; color: var(--foreground); font-weight: 600; white-space: nowrap; min-width: 60px; text-align: right; }

/* Respondents */
.fba-respondents { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden; }
.fba-respondent-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--glass-border); font-size: 13px; transition: background .15s; }
.fba-respondent-row:hover { background: var(--glass-bg-hover); }
.fba-ans-panel { padding: 12px 16px 16px; background: var(--glass-bg); border-bottom: 1px solid var(--glass-border); }
.fba-ans-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--glass-border); font-size: 12px; }
.fba-ans-row:last-child { border-bottom: none; }
.fba-ans-label { color: var(--muted-foreground); flex: 1; }
.fba-ans-val { font-weight: 600; text-align: right; flex-shrink: 0; max-width: 55%; }

@media (max-width: 640px) {
  .fba-key-grid { grid-template-columns: repeat(2, 1fr); }
  .fba-summary-grid { grid-template-columns: 1fr; }
  .fba-dist-label { width: 110px; }
}

/* ── Misc ──────────────────────────────────────────────────────────── */
.pending-notice {
  background: rgba(180,140,0,0.12); border: 1px solid rgba(200,160,0,0.3);
  border-radius: var(--radius-lg); padding: 12px 16px; margin-bottom: 20px;
  font-size: 13px; color: oklch(88% .1 80); line-height: 1.5;
}
.reviewer-notes { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 10px 16px; font-size: 13px; color: var(--muted-foreground); margin-top: 16px; }
.inline-action-panel { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 16px 18px; margin-top: 14px; backdrop-filter: blur(12px); }
.inline-action-panel .field-label { display: block; margin-bottom: 6px; }
.inline-action-panel textarea { width: 100%; background: rgba(255,255,255,0.05); color: var(--foreground); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 8px 12px; font-family: var(--font-sans); font-size: 13px; resize: vertical; min-height: 60px; }
.rejection-reason-display { background: rgba(139,26,46,0.1); border: 1px solid rgba(139,26,46,0.3); border-radius: var(--radius-md); padding: 8px 14px; font-size: 13px; color: var(--muted-foreground); margin-top: 8px; }
.load-more-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--glass-border); margin-top: 8px; }
.outreach-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .05em; padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(30,160,80,0.15); border: 1px solid rgba(30,160,80,0.35); color: oklch(70% .15 145); }
.search-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.search-bar input[type=search] { flex: 1; background: var(--glass-bg); backdrop-filter: blur(12px); color: var(--foreground); border: 1px solid var(--glass-border); border-radius: var(--radius-pill); padding: 10px 18px; font-family: var(--font-sans); font-size: 14px; }
.search-bar input[type=search]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.embed-code-block { display: flex; align-items: center; gap: 10px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 14px 18px; max-width: 680px; }
.embed-code-block code { flex: 1; font-family: monospace; font-size: 12px; color: var(--muted-foreground); word-break: break-all; }

/* ── Re-verify status ──────────────────────────────────────────────── */
.reverify-loading { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 10px 14px; font-size: 13px; color: var(--muted-foreground); }
.reverify-success { background: rgba(30,160,80,0.1); border: 1px solid rgba(30,160,80,0.3); border-radius: var(--radius-md); padding: 10px 14px; font-size: 13px; color: oklch(72% .18 145); }
.reverify-error   { background: rgba(139,26,46,0.1); border: 1px solid rgba(139,26,46,0.3); border-radius: var(--radius-md); padding: 10px 14px; font-size: 13px; color: #B5203A; }

/* ── Edit & Approve panel ──────────────────────────────────────────── */
.edit-form-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.edit-form-grid .user-input { width: 100%; }
.inline-action-panel .edit-headline { width: 100%; }
.edit-sources-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.edit-source-row { display: flex; align-items: center; gap: 8px; }
.edit-source-row .edit-source-label { flex: 0 0 180px; min-width: 0; }
.edit-source-row .edit-source-url { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .edit-form-grid { grid-template-columns: 1fr; }
  .edit-source-row { flex-wrap: wrap; }
  .edit-source-row .edit-source-label { flex: 1 1 100%; }
  .edit-source-row .edit-source-url   { flex: 1 1 calc(100% - 44px); }
}

/* ── Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .container-page { padding: 0 16px; }
  .site-header .container-page { flex-wrap: wrap; align-items: center; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 0; }
  .brand { flex: 1; }
  .brand-name { font-size: 17px; }
  .hamburger-btn { display: flex; }
  .site-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    flex-wrap: wrap;
    gap: 0;
    justify-content: flex-start;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.3s ease;
    padding: 0;
  }
  .site-nav.nav-open {
    max-height: 200px;
    opacity: 1;
    pointer-events: auto;
    gap: 8px 14px;
    padding: 12px 0 8px;
  }
  .nav-link { font-size: 13px; }
  .theme-toggle { width: 32px; height: 32px; font-size: 14px; }
  main { padding: 32px 16px; }
  .page-title { font-size: 28px; line-height: 34px; }
  .page-lede { font-size: 14px; }
  .tool-card { padding: 18px; border-radius: var(--radius-lg); }
  .report-section { padding: 18px; border-radius: var(--radius-lg); }
  .report-image { height: 200px; border-radius: var(--radius-lg); }
  .mode-toggle { display: flex; width: 100%; }
  .mode-toggle button { flex: 1; padding: 8px 14px; font-size: 12px; }
  .btn-primary { width: 100%; justify-content: center; }
  .queue-toolbar { gap: 12px; }
  .tabs { display: flex; flex-wrap: wrap; width: 100%; border-radius: var(--radius-xl); overflow: visible; }
  .tab-button { flex: 1 1 auto; padding: 7px 10px; font-size: 11px; text-align: center; }
  .queue-actions { flex-wrap: wrap; gap: 8px; }
  .queue-actions > * { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .reviewer-field { width: 100%; }
  .reviewer-field input { width: 100%; }
  .queue-card { padding: 16px; border-radius: var(--radius-lg); }
  .queue-headline { font-size: 17px; }
  .user-form-grid { grid-template-columns: 1fr; }
  /* Hide Email, Status, Last Login columns on mobile — keep Name, Role, Actions */
  .users-table th:nth-child(2), .users-table td:nth-child(2),
  .users-table th:nth-child(4), .users-table td:nth-child(4),
  .users-table th:nth-child(5), .users-table td:nth-child(5) { display: none; }
}
@media (max-width: 400px) {
  .site-nav { gap: 8px 10px; }
  .nav-link { font-size: 11px; }
  .page-title { font-size: 24px; line-height: 30px; }
  .badge { padding: 7px 14px; font-size: 11px; }
}

/* ── Long URL overflow protection ──────────────────────────────────── */
.evidence-link, .source-link, .evidence-excerpt, .report-section p, .report-section li { overflow-wrap: break-word; word-break: break-word; }

/* ── Homepage (editorial landing page) ─────────────────────────────── */
.home-main { flex: 1; display: flex; flex-direction: column; max-width: none; padding: 0; margin: 0; width: 100%; }

.hero {
  padding: 88px 20px 120px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.055) 0%,
    rgba(255, 255, 255, 0.025) 55%,
    transparent 100%
  );
}
.hero-inner {
  max-width: 1152px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text { min-width: 0; }
.hero-headline {
  font-family: var(--font-serif);
  font-size: 72px;
  line-height: 1.0;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 4px 0 24px 0;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted-foreground);
  max-width: 540px;
  line-height: 1.65;
  margin: 0 0 36px 0;
}
.hero-cta-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-link-btn {
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--primary); text-decoration: none;
}
.hero-link-btn:hover { text-decoration: underline; }

/* ── Word cloud (hero right column) ─────────────────────────────────── */
.hero-wordcloud {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  padding: 8px 0;
}
.wordcloud-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  opacity: .55;
  margin: 0 0 20px 0;
  text-align: right;
}
.wordcloud-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: flex-end;
  line-height: 1;
}
.wc-word {
  cursor: default;
  transition: opacity .25s, transform .25s;
  font-family: var(--font-sans);
  display: inline-block;
  user-select: none;
}
.wc-word:hover { opacity: 1 !important; transform: rotate(0deg) scale(1.1) !important; }

.home-section { max-width: 1152px; margin: 0 auto; width: 100%; padding: 32px 20px 72px; }
.home-section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.home-section-title { font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin: 0; }
.home-section-link { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; }
.home-section-link:hover { text-decoration: underline; }

.fc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.fc-loading { color: var(--muted-foreground); font-size: 13px; margin: 0; }
.fc-card {
  background: var(--glass-bg);
  border: var(--glass-border-width, 1px) solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: 20px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.fc-card:hover { border-color: var(--primary); }
.fc-card-headline {
  font-family: var(--font-serif); font-size: 16px; font-weight: 700;
  line-height: 1.4; color: var(--foreground); margin: 0;
}
.fc-card-meta {
  font-size: 11px; color: var(--muted-foreground); letter-spacing: .04em;
  text-transform: uppercase; margin: auto 0 0 0;
}

[data-theme="light"] .hero {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 55%,
    transparent 100%
  );
}

/* ── Print-only QR footer (hidden on screen) ── */
.print-footer {
  display: none;
}

/* ── Print / PDF styles ── */
@media print {
  * { box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; animation: none !important; }
  body { background: #fff !important; color: #111 !important; font-size: 12pt; }
  header.site-header, footer.site-footer, .share-bar, #pending-notice,
  .theme-toggle, nav.site-nav, #download-pdf-btn, #report-qr,
  .copy-link-btn, #copy-confirm, #qr-panel, #qr-toggle-btn { display: none !important; }
  main { padding: 0 !important; max-width: 100% !important; }
  .container-page { max-width: 100% !important; padding: 0 !important; }
  .report-section { background: transparent !important; border: 1px solid #ddd !important; border-radius: 6pt !important; padding: 12pt !important; margin-bottom: 10pt !important; }
  .report-headline { font-size: 18pt !important; color: #111 !important; }
  .report-meta { color: #555 !important; font-size: 9pt !important; }
  .badge { border: 1.5pt solid currentColor !important; background: transparent !important; font-size: 8pt !important; }
  .badge.verdict-true       { color: #1a7a3a !important; }
  .badge.verdict-fake       { color: #b91c1c !important; }
  .badge.verdict-misleading { color: #92400e !important; }
  .badge.verdict-unverified { color: #555 !important; }
  .report-section-title { color: #b91c1c !important; font-size: 10pt !important; }
  a { color: #1a56db !important; text-decoration: underline !important; }
  .report-image { max-height: 200pt !important; border-radius: 6pt !important; }
  .evidence-item { border: 1pt solid #eee !important; background: transparent !important; }
  .evidence-excerpt-collapsed { display: block !important; } /* always show excerpts in print */
  .evidence-expand-btn { display: none !important; }
  .tag-chip { border: 1pt solid #ccc !important; background: transparent !important; color: #555 !important; }

  /* Show QR footer only in print */
  .print-footer {
    display: flex !important;
    align-items: center;
    gap: 20pt;
    margin-top: 24pt;
    padding-top: 16pt;
    border-top: 1.5pt solid #ddd;
    page-break-inside: avoid;
  }
  .print-footer img { width: 90pt !important; height: 90pt !important; border: 1pt solid #ddd; border-radius: 4pt; }
  .print-footer-brand { font-size: 14pt; font-weight: 700; color: #111; }
  .print-footer-tagline { font-size: 9pt; color: #555; margin-top: 2pt; }
  .print-footer-label { font-size: 9pt; color: #777; margin-top: 8pt; }
  .print-footer-url { font-size: 8pt; color: #999; word-break: break-all; margin-top: 3pt; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 16px 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-wordcloud { align-items: center; }
  .wordcloud-wrap { justify-content: center; }
  .hero-headline { font-size: 44px; }
  .hero-sub { font-size: 15px; }
  .home-section { padding: 40px 16px 56px; }
  .fc-grid { grid-template-columns: 1fr; }
  .embed-code-block { flex-direction: column; align-items: stretch; }
  .embed-code-block code { word-break: break-all; }
  .share-bar { border-radius: var(--radius-xl); padding: 12px 14px; }
}
