/* =========================================================
   WebToolkitAI — Unified Design System
   Modern tool-site aesthetic (Vercel / Linear / Framer lineage)
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces — warm off-white, never pure white */
  --bg: #FAFAF7;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #F4F3EE;
  --bg-inset: #F0EFEA;

  /* Borders */
  --border: #E8E6DE;
  --border-strong: #D6D3C9;

  /* Text — slightly warm near-black, not pure black */
  --text: #0E0E14;
  --text-secondary: #4A4A55;
  --text-muted: #8B8B96;

  /* Brand — indigo + violet + cyan accent */
  --brand: #4F46E5;
  --brand-hover: #4338CA;
  --brand-light: #EEF2FF;
  --accent: #7C3AED;
  --accent-2: #06B6D4;

  /* Status */
  --success: #059669;
  --success-light: #ECFDF5;
  --warning: #B45309;
  --warning-light: #FEF3C7;
  --danger: #DC2626;
  --danger-light: #FEF2F2;

  /* Dark surfaces (hero / footer) */
  --dark: #0A0A12;
  --dark-2: #14141F;
  --dark-3: #1F1F2C;
  --dark-text: #FAFAF7;
  --dark-muted: #9494A0;
  --dark-border: #2A2A38;

  /* Layout */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(14,14,20,0.04);
  --shadow: 0 1px 3px rgba(14,14,20,0.06), 0 4px 16px rgba(14,14,20,0.04);
  --shadow-lg: 0 8px 32px rgba(14,14,20,0.08), 0 24px 64px rgba(14,14,20,0.06);
  --shadow-glow: 0 0 40px rgba(124,58,237,0.18);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

::selection { background: var(--brand); color: white; }

/* ---------- Layout containers ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top Navigation (sticky) ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.topnav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand-mark:hover { color: var(--text); }

.brand-mark .logo-dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  display: grid;
  place-items: center;
  color: white;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover { background: var(--bg-subtle); color: var(--text); }
.nav-links a.is-current {
  background: var(--brand-light);
  color: var(--brand);
}

.nav-cta {
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { background: var(--brand); color: white; transform: translateY(-1px); }

@media (max-width: 720px) {
  .topnav-inner { gap: 12px; padding: 12px 16px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 5px 8px; font-size: 0.8rem; }
  .nav-cta { display: none; }
}

/* ---------- Dark Hero Section ---------- */
.hero-dark {
  position: relative;
  background: var(--dark);
  color: var(--dark-text);
  overflow: hidden;
  border-bottom: 1px solid var(--dark-border);
}

.hero-dark::before,
.hero-dark::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-dark::before {
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, rgba(79,70,229,0.6) 0%, transparent 70%);
}
.hero-dark::after {
  top: -150px;
  right: -200px;
  background: radial-gradient(circle, rgba(124,58,237,0.5) 0%, transparent 70%);
}

.hero-dark .grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dark-text);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, #B8B8C8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lede {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--dark-muted);
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.hero-cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, #6366F1 0%, #4F46E5 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(79,70,229,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-ghost-dark {
  background: rgba(255,255,255,0.06);
  color: var(--dark-text);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,0.1);
  color: var(--dark-text);
}

.btn-ghost-light {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost-light:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ---------- Body sections (light) ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.card-grid {
  display: grid;
  gap: 20px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 20px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---------- Tool section card (for the actual tool UI) ---------- */
.tool-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 0 0 24px;
  box-shadow: var(--shadow-sm);
}

.tool-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-section h2 .icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 16px;
}

/* ---------- Content section (for text content) ---------- */
.content-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 0 0 20px;
}

.content-section h2 { font-size: 1.25rem; margin-bottom: 14px; }
.content-section h3 { font-size: 1.0625rem; margin: 20px 0 8px; }
.content-section p, .content-section li { color: var(--text-secondary); }
.content-section ul, .content-section ol { padding-left: 20px; margin: 8px 0 12px; }
.content-section li { margin-bottom: 6px; }

.content-section code {
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--text);
}

.content-section pre {
  background: var(--dark-2);
  color: #E0E0EA;
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 14px 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.55;
}
.content-section pre code { background: none; padding: 0; color: inherit; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
label .hint { font-weight: 400; color: var(--text-muted); }

input[type="text"],
input[type="url"],
input[type="email"],
input[type="number"],
select,
textarea {
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font: inherit;
  background: white;
  width: 100%;
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}

textarea { font-family: var(--font-mono); font-size: 0.875rem; resize: vertical; min-height: 120px; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #6366F1 0%, #4F46E5 100%);
  color: white;
  border: none;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79,70,229,0.3), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: all 0.15s ease;
}
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-secondary:hover { border-color: var(--text); }

/* ---------- Buttons row ---------- */
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Output / Code blocks ---------- */
.output {
  background: var(--dark-2);
  color: #E0E0EA;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 12px;
  border: 1px solid var(--dark-border);
}

/* ---------- Check items (for audit tool) ---------- */
.check-grid { display: grid; gap: 10px; margin: 14px 0; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
}
.check-item input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--brand); }
.check-item label { font-weight: 500; cursor: pointer; flex: 1; font-size: 0.9375rem; }
.check-item .item-name { font-weight: 600; color: var(--text); }
.check-item .item-desc { font-size: 0.8125rem; color: var(--text-muted); }

.check-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-elevated);
}
.check-group-header {
  background: var(--bg-subtle);
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: var(--dark-text);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Related Tools section (cross-linking) ---------- */
.related-tools-section {
  padding: 64px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.related-tools-section .section-header { margin-bottom: 32px; }

.related-tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
}
.related-tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.related-tool-card .icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 20px;
}
.related-tool-card h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.related-tool-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}
.related-tool-card .arrow {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Footer (dark) ---------- */
.site-footer {
  background: var(--dark);
  color: var(--dark-text);
  padding: 56px 0 32px;
  border-top: 1px solid var(--dark-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.footer-brand h5 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .logo-dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  display: grid;
  place-items: center;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.footer-brand p {
  color: var(--dark-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 280px;
}

.footer-col h6 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark-muted);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col a {
  color: var(--dark-text);
  font-size: 0.875rem;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.footer-col a:hover { opacity: 1; color: var(--dark-text); }

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--dark-muted);
}

.footer-bottom .footer-tagline {
  font-style: italic;
  color: var(--dark-muted);
}

/* ---------- Author bio ---------- */
.author-bio-card {
  max-width: 800px;
  margin: 32px auto 24px;
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.author-bio-card h3 { font-size: 1rem; margin-bottom: 6px; }
.author-bio-card p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.55; }

/* ---------- Pill / Badge ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
}
.pill.pill-success { background: var(--success-light); color: var(--success); }
.pill.pill-warning { background: var(--warning-light); color: var(--warning); }
.pill.pill-danger { background: var(--danger-light); color: var(--danger); }

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.9375rem;
}
th, td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th { background: var(--bg-subtle); font-weight: 600; }

/* ---------- Utilities ---------- */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }/* =========================================================
   Tool-specific patterns
   ========================================================= */

/* Score display (readiness checker) */
.score-display {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 16px 0;
}
.score-number {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  font-feature-settings: 'tnum';
}
.score-label { font-size: 1rem; color: var(--text-secondary); }
.score-bar {
  height: 10px;
  background: var(--bg-inset);
  border-radius: 999px;
  margin: 16px auto 0;
  max-width: 320px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}
.score-low { color: var(--danger); }
.score-medium { color: var(--warning); }
.score-high { color: var(--success); }

/* Priority list (readiness checker) */
.priority-list { list-style: none; padding: 0; margin: 12px 0; }
.priority-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}
.priority-list li:last-child { border-bottom: none; }
.priority-badge {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.priority-high { background: var(--danger-light); color: var(--danger); }
.priority-medium { background: var(--warning-light); color: var(--warning); }
.priority-low { background: var(--success-light); color: var(--success); }
.priority-done { background: #F3E8FF; color: #6B21A8; }

/* Report preview (readiness checker) */
.report-preview {
  background: var(--dark-2);
  color: #E0E0EA;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 400px;
  overflow-y: auto;
  line-height: 1.7;
  margin-top: 14px;
}

/* Output section (used by all tools) */
.output-section { margin-top: 20px; display: none; }
.output-section.visible { display: block; }
.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.output-header h3 { font-size: 1rem; color: var(--text-secondary); }
.output-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Disclaimer / Notice */
.disclaimer {
  background: var(--warning-light);
  border: 1px solid #F59E0B;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.875rem;
  color: #92400E;
  margin: 14px 0;
}
.disclaimer strong { color: #78350F; }

.notice {
  background: var(--brand-light);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9375rem;
  color: var(--brand);
  margin: 14px 0;
}
.notice strong { color: var(--brand-hover); }

/* Quick-jump table of contents */
.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 0 0 24px;
}
.toc h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--brand); font-size: 0.9375rem; }

@media (max-width: 600px) { .toc ul { columns: 1; } }