/* ───────────────────────────────────────────────────────────
   AgentCourt-Korea — Claybees-direct UI clone
   ─────────────────────────────────────────────────────────── */

:root {
  /* Claybees 추출 색상 */
  --clay-coral: #D03A5A;       /* 메인 CTA */
  --clay-coral-hover: #B82846;
  --clay-orange: #FBC252;       /* 강조 */
  --clay-blue: #89CFF0;         /* 강조 보조 */
  --clay-pink: #FDE2FF;         /* hero blob */
  --clay-cream: #FFF1D4;        /* hero blob */
  --clay-mint: #E0F8F6;         /* hero blob */
  --clay-soft-pink: #FCC8D2;
  --clay-soft-yellow: #FCE7B9;
  --clay-soft-blue: #C7E6FD;

  --ink: #111827;
  --ink-soft: #4B5563;
  --ink-muted: #6B7280;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --border: #E5E7EB;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:    0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.06);

  --r-sm: 8px;
  --r:    12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* 2026-05-24 KST 폰트 시스템 — 관공서 톤 매핑 (영등포구청 S-CoreDream 비교 후 전환) */
  /* body·본문: Pretendard (화면 가독성 유지) / display·H1·H2·제목: S-CoreDream (관공서 표준 디스플레이체) */
  --font-sans:    "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: "S-CoreDream", "S-CoreFallback", "Pretendard Variable", Pretendard, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
/* form element 폰트 강제 상속 (Arial fallback 차단) */
button, input, select, textarea {
  font-family: inherit;
}

a { color: var(--clay-coral); text-decoration: none; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.nav-logo { width: 28px; height: 28px; object-fit: contain; }

.nav-menu { display: flex; gap: 8px; }
.nav-link {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.nav-link:hover { background: var(--bg-soft); color: var(--ink); }
.nav-link-active {
  background: var(--clay-coral);
  color: white;
}
.nav-link-active:hover { background: var(--clay-coral-hover); color: white; }

/* ── 메인 서비스 탭 (페이지 레벨 라우팅) ── */
.service-tab {
  display: none;
  animation: fade-in 0.25s ease-out;
}
.service-tab-active {
  display: block;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hero ── 2026-05-14 13:21 KST form-first 복원 (Codex 권고) — padding 압축 + fold 900px 안 제출 버튼 진입 */
.hero {
  position: relative;
  text-align: center;
  padding: 48px 24px 24px;
  background: linear-gradient(135deg, #FDE2FF 0%, #E0F7FA 33%, #FFF5E1 66%, #E6F3FF 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 22%, rgba(255,255,255,0.5) 0%, transparent 38%),
              radial-gradient(circle at 82% 78%, rgba(255,255,255,0.4) 0%, transparent 40%);
  pointer-events: none;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 0 0 12px;
  color: #1F2937;
  position: relative;
}
.hero-coral  { color: #F59E0B; }   /* Claybees 노란 brand accent */
.hero-orange { color: #F59E0B; }

.hero-desc {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0 auto 24px;
  line-height: 1.65;
  letter-spacing: 0;
}

/* 데이터 카운터 — 출품작 공공데이터 활용도 가시화 */
.hero-counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto 36px;
  padding: 0 12px;
}
.hero-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(208, 58, 90, 0.15);
  border-radius: 12px;
  min-width: 110px;
  backdrop-filter: blur(6px);
}
.hero-counter-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--clay-coral);
  line-height: 1.1;
}
.hero-counter-label {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.hero-counter-link {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #16a34a;
}
.hero-counter-link .hero-counter-num { color: #15803d; }

/* Hero tagline + 3단계 시나리오 카드 */
.hero-tagline {
  display: inline-block;
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: white;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(30,58,138,0.25);
  letter-spacing: -0.01em;
}

/* ── 출품 브랜드 (영문 + 한글 부제 + 한 줄 정의) ── */
.hero-brand {
  text-align: center;
  margin: 4px auto 14px;
}
.hero-brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-brand-en {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #1F2937;
}
.hero-brand-divider {
  font-size: 1.2rem;
  color: #cbd5e1;
  font-weight: 300;
}
.hero-brand-ko {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #1F2937;
  letter-spacing: -0.005em;
  padding: 0 2px;
}
.hero-brand-ko::after { content: none; }
.hero-brand-tagline {
  margin-top: 6px;
  font-size: 0.92rem;
  color: #475569;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.hero-brand-tagline::before { content: none; }
.hero-brand-tagline::after { content: none; }

@media (max-width: 720px) {
  .hero-brand { margin: 2px auto 10px; }
  .hero-brand-en { font-size: 1.25rem; }
  .hero-brand-ko { font-size: 1.18rem; }
  .hero-brand-divider { display: none; }
  .hero-brand-name { gap: 6px; }
  .hero-brand-tagline { font-size: 0.82rem; margin-top: 4px; }
}
@media (max-width: 420px) {
  .hero-brand-en { font-size: 1.1rem; }
  .hero-brand-ko { font-size: 1.05rem; }
  .hero-brand-tagline { font-size: 0.76rem; }
}

/* ── 출품 hook (심사 4축 강조) ── */
.hero-hook {
  max-width: 940px;
  margin: 8px auto 22px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #fffaf0 0%, #fff5f7 50%, #f0f9ff 100%);
  border: 1px solid #fde68a;
  border-left: 5px solid #f59e0b;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(245,158,11,0.10), 0 1px 4px rgba(0,0,0,0.04);
  text-align: left;
}
.hero-hook-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: #1f2937;
  padding: 6px 0;
  border-bottom: 1px dashed #fde68a;
}
.hero-hook-line:last-child { border-bottom: none; }
.hero-hook-axis {
  display: inline-block;
  flex-shrink: 0;
  min-width: 70px;
  padding: 3px 9px;
  background: rgba(255,255,255,0.7);
  border: 1px solid #f59e0b;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #92400e;
  text-align: center;
  letter-spacing: -0.01em;
}
.hero-hook-line strong.hero-coral { font-weight: 800; }
.hero-hook-line strong.hero-orange { font-weight: 800; }
@media (max-width: 720px) {
  .hero-hook {
    padding: 12px 14px;
    margin: 6px 10px 14px;
    border-radius: 12px;
    border-left-width: 4px;
  }
  .hero-hook-line {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    font-size: 0.82rem;
    line-height: 1.5;
    padding: 6px 0;
  }
  .hero-hook-line:first-child { padding-top: 2px; }
  .hero-hook-line:last-child { padding-bottom: 2px; }
  .hero-hook-axis {
    min-width: 0;
    padding: 2px 7px;
    font-size: 0.7rem;
    border-radius: 5px;
  }
  .hero-hook-line strong { font-weight: 700; }
}
@media (max-width: 420px) {
  .hero-hook { padding: 10px 12px; margin: 4px 8px 12px; }
  .hero-hook-line { font-size: 0.78rem; line-height: 1.45; padding: 5px 0; gap: 4px 6px; }
  .hero-hook-axis { padding: 2px 6px; font-size: 0.66rem; }
}
.hero-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  justify-items: stretch;
  gap: 14px;
  max-width: 880px;
  margin: 28px auto 32px;
  padding: 0 16px;
}
.hero-flow-card {
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  min-width: 0;
}
.hero-flow-card:hover {
  border-color: var(--clay-coral, #D03A5A);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(208,58,90,0.15);
}
.hero-flow-num {
  position: absolute;
  top: 10px;
  left: 12px;
  background: var(--clay-coral, #D03A5A);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.hero-flow-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
}
.hero-flow-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}
.hero-flow-desc {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.4;
}
.hero-flow-arrow {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  color: var(--clay-coral, #D03A5A);
}
@media (max-width: 600px) {
  .hero-flow {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 360px;
  }
  .hero-flow-arrow { transform: rotate(90deg); padding: 0; }
  .hero-flow-card { padding: 12px 14px; }
  .hero-flow-icon { font-size: 1.6rem; }
}

.search-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #6b7280;
}
.search-hint a {
  color: var(--clay-coral, #D03A5A);
  font-weight: 600;
  text-decoration: none;
}
.search-hint a:hover { text-decoration: underline; }

/* ── 양형자 프로필 입력 폼 (Hero 핵심) ── */
.hero-profile {
  background: #FFFFFF;
  border: none;
  border-radius: 20px;
  padding: 26px 36px 24px;
  max-width: 1280px;
  margin: 14px auto 20px;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 8px 24px rgba(245,158,11,0.08),
    0 24px 64px rgba(15,23,42,0.05);
  position: relative;
}
.hero-profile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 4px;
  background: linear-gradient(90deg, var(--clay-coral, #D03A5A), #f59e0b);
  border-radius: 0 0 6px 6px;
}
.hero-profile-header {
  text-align: center;
  margin-bottom: 14px;
}
.hero-profile-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--clay-coral, #D03A5A);
  color: white;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  margin-bottom: 6px;
}
.hero-profile-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin: 0 0 4px 0;
  color: #1f2937;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.hero-profile-sub {
  margin: 0;
  font-size: 0.86rem;
  color: #6b7280;
  line-height: 1.5;
}
.hero-profile-grid {
  display: grid;
  /* 2026-05-28 삼중검증(codex×2+Gemini): mobile-first 기본 1열 → 600px↑에서 2열. minmax(0,1fr)+자식 min-width:0 으로 grid 자동최소크기 가로넘침 근본해결(overflow-x:hidden 은폐책 금지). */
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.hero-profile-grid > * { min-width: 0; }
@media (min-width: 600px) {
  .hero-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.profile-field-wide {
  grid-column: 1 / -1;
}
.profile-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.profile-field-label em {
  color: #6B7280;
  font-style: normal;
  font-weight: 400;
  font-size: 0.72rem;
}
.profile-field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #fff5f7, #ffe4ec);
  border-radius: 8px;
  font-size: 0.92rem;
}
.profile-input {
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  color: #111827;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
select.profile-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 fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
input.profile-input { cursor: text; }
.profile-input:focus {
  outline: none;
  border-color: var(--clay-coral, #D03A5A);
  box-shadow: 0 0 0 3px rgba(208,58,90,0.12);
}
.hero-solve-btn {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--clay-coral, #D03A5A) 0%, #e85a3a 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.08rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 8px 24px rgba(208,58,90,0.32), 0 2px 6px rgba(208,58,90,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.hero-solve-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
.hero-solve-arrow {
  font-size: 1.15rem;
  transition: transform 0.22s ease;
}
.hero-solve-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(208,58,90,0.42), 0 4px 10px rgba(208,58,90,0.22);
}
.hero-solve-btn:hover .hero-solve-arrow {
  transform: translateX(4px);
}
.hero-solve-btn:active { transform: translateY(0); }
.hero-solve-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  background: linear-gradient(135deg, #b8a8a8, #a89898);
  box-shadow: none;
}
.hero-profile-hint {
  margin: 14px 0 0 0;
  font-size: 0.74rem;
  color: #78350f;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 9px 14px;
  border-radius: 10px;
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 640px) {
  /* 2026-05-14 16:09 C5 + C6 정정 — 모바일 hero 부제 font 조정 + padding 압축 */
  .hero-profile { padding: 22px 18px 20px; margin: 16px 12px 16px; border-radius: 16px; }
  /* hero-profile-grid 2열 규칙 제거 — mobile-first 기본 1열, 600px↑ 2열(위 정의)로 일원화 */
  .profile-field-wide { grid-column: 1 / -1; }
  .profile-field { padding: 0; }
  .profile-field-label { font-size: 0.74rem; }
  .profile-input { font-size: 0.92rem; padding: 9px 12px; }
  .hero-profile-title { font-size: 1.1rem; }
  .hero-solve-btn { padding: 14px 16px; font-size: 0.98rem; }
  /* H1 모바일 — 한 줄 유지 */
  .hero-h1 { font-size: 30px; line-height: 1.25; }
  .hero { padding: 40px 14px 20px; }
  /* C5 — 부제 줄바꿈 완화 */
  .hero-desc { font-size: 14px; padding: 0 6px; line-height: 1.55; }
  /* C6 — 진입 banner 모바일 padding/font 압축 */
  #rg-return-banner { font-size: 0.78rem !important; padding: 10px 12px !important; }
}
/* (구) max-width:380px 1열 fallback 제거 — 이제 기본이 1열이라 불필요(600px↑에서만 2열). */

/* ── 솔루션 결과 영역 ── */
.solution-section {
  max-width: min(1200px, calc(100vw - 2rem));
  margin: 0 auto 40px;
  padding: 32px 24px;
  background: linear-gradient(180deg, #fff 0%, #fff5f7 100%);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.solution-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.solution-step {
  background: #f3f4f6;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 2px solid transparent;
  transition: all 0.3s;
}
.solution-step.active {
  background: linear-gradient(135deg, #fff5f7, #fef2f4);
  border-color: var(--clay-coral, #D03A5A);
}
.solution-step.done {
  background: #ecfdf5;
  border-color: #16a34a;
}
.solution-step .num {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--clay-coral, #D03A5A);
}
.solution-step.done .num { color: #16a34a; }
.solution-step.done .num::before { content: '✓ '; }
.solution-step .label { font-size: 0.85rem; color: #4b5563; }

.solution-panel {
  background: white;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: none;
}
.solution-panel.visible { display: block; animation: sol-fade 0.4s ease-out; }
@keyframes sol-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.solution-panel h3 {
  font-size: 1.05rem;
  margin: 0 0 14px 0;
  color: #1f2937;
}

/* AI 토론 결과 카드 그리드 */
.sol-debate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.sol-debate-card {
  background: linear-gradient(135deg, #fff, #fafafa);
  border-left: 3px solid #2E7D32;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.85rem;
}
.sol-debate-card.grounded { border-left-color: #1e40af; background: linear-gradient(135deg, #fff, #eff6ff); }
.sol-debate-card h5 { margin: 0 0 6px 0; font-size: 0.92rem; color: #1f2937; }
.sol-debate-card .stance { font-size: 0.75rem; color: #6b7280; margin-bottom: 6px; }
.sol-debate-card .view { line-height: 1.6; color: #374151; }
.sol-debate-card .ground-badge {
  display: inline-block;
  background: #1e40af;
  color: white;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.68rem;
  margin-top: 6px;
}

/* 정책 제언 카드 */
.sol-policy-card {
  background: linear-gradient(135deg, #f0fdf4, #ecfccb);
  border-left: 4px solid #16a34a;
  border-radius: 10px;
  padding: 18px 20px;
}
.sol-policy-headline {
  font-size: 1.1rem;
  font-weight: 700;
  color: #14532d;
  margin-bottom: 10px;
}
.sol-policy-components {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.sol-policy-comp {
  background: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid #d1fae5;
}
.sol-policy-comp .name { color: #4b5563; }
.sol-policy-comp .pct {
  font-weight: 700;
  color: #15803d;
  margin-left: 6px;
}

/* 세부 처분 (시나리오 박스 + component 그룹 + 처분 카드) */
.sol-policy-order {
  margin: 14px 0;
  padding: 16px 18px;
  background: #f0f9ff;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  color: #1e3a8a;
}
.sol-policy-order-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3b82f6;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.sol-policy-order-text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #1e3a8a;
}
.sol-policy-order-hint {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #475569;
  font-weight: 500;
  font-style: italic;
}

.sol-disp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.sol-disp-group {
  background: white;
  border: 1px solid #e0f2fe;
  border-left: 3px solid #2563eb;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.sol-disp-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px dashed #e0f2fe;
}
.sol-disp-group-icon { font-size: 1.2rem; }
.sol-disp-group-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e3a8a;
  flex: 1;
}
.sol-disp-group-pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 999px;
}
.sol-disp-item {
  padding: 8px 0;
  border-bottom: 1px dotted #f1f5f9;
}
.sol-disp-item:last-child { border-bottom: none; padding-bottom: 0; }
.sol-disp-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.45;
}
.sol-disp-amount {
  font-size: 0.95rem;
  margin: 2px 0 4px;
}
.sol-disp-amount strong {
  color: #15803d;
  background: #f0fdf4;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.86rem;
}
.sol-disp-meta {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 3px;
}
.sol-disp-basis {
  font-size: 0.7rem;
  color: #6B7280;
  margin-top: 1px;
}
.sol-policy-footer {
  margin: 14px 0 6px;
  font-size: 0.78rem;
  color: #6b7280;
  padding: 8px 12px;
  background: #fef3c7;
  border-radius: 6px;
}
.sol-policy-source {
  margin: 8px 0 0;
  font-size: 0.74rem;
  color: #6b7280;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .sol-disp-grid { grid-template-columns: 1fr; gap: 10px; }
  .sol-disp-group { padding: 10px 12px; }
  .sol-policy-order { padding: 12px 14px; }
  .sol-policy-order-text { font-size: 0.92rem; line-height: 1.6; }
  .sol-disp-item { padding: 7px 0; }
  .sol-disp-name { font-size: 0.84rem; }
  .sol-disp-amount { font-size: 0.88rem; }
}

/* 시뮬 컨트롤 */
.sol-sim-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #4b5563;
}
.sol-sim-controls input[type="range"] {
  flex: 1;
  max-width: 300px;
  accent-color: var(--clay-coral, #D03A5A);
}
#sol-sim-n-display {
  font-weight: 700;
  color: var(--clay-coral, #D03A5A);
  min-width: 80px;
}
.sol-sim-chart-wrap { background: white; padding: 10px; border-radius: 8px; }
.sol-sim-summary {
  margin-top: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #1f2937;
}

/* 재범률 변동 애니메이션 */
.sol-viz-anim {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.sol-viz-card {
  background: white;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  text-align: center;
}
.sol-viz-before { border-color: #fca5a5; }
.sol-viz-after { border-color: #86efac; }
.sol-viz-label { font-size: 0.85rem; color: #6b7280; margin-bottom: 6px; }
.sol-viz-num {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.sol-viz-before .sol-viz-num { color: #dc2626; }
.sol-viz-after .sol-viz-num { color: #16a34a; }
.sol-viz-bar {
  height: 14px;
  background: #f3f4f6;
  border-radius: 7px;
  overflow: hidden;
}
.sol-viz-bar-fill { height: 100%; transition: width 1.5s ease-out; }
.sol-viz-arrow { font-size: 2rem; color: var(--clay-coral, #D03A5A); }
.sol-viz-delta {
  font-size: 1.6rem;
  font-weight: 700;
  color: #15803d;
  background: #ecfdf5;
  padding: 12px 18px;
  border-radius: 10px;
  border: 2px solid #16a34a;
}
.sol-viz-note {
  font-size: 0.78rem;
  color: #92400e;
  background: #fffbeb;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 12px;
}
.solution-actions {
  text-align: center;
  margin-top: 20px;
}
.sol-deep-link {
  display: inline-block;
  padding: 12px 24px;
  background: white;
  border: 2px solid var(--clay-coral, #D03A5A);
  color: var(--clay-coral, #D03A5A);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s;
}
.sol-deep-link:hover {
  background: var(--clay-coral, #D03A5A);
  color: white;
}

@media (max-width: 720px) {
  .solution-progress { grid-template-columns: repeat(2, 1fr); }
  .sol-viz-anim { grid-template-columns: 1fr; }
  .sol-viz-arrow { transform: rotate(90deg); }
}

/* Claybees 검색바 — pill input + 우측 노란 사각 버튼 (16px round only on right) */
.search-box {
  display: flex;
  align-items: stretch;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  border-radius: 16px;
  overflow: hidden;
  background: white;
  transition: box-shadow 0.2s;
}
.search-box:focus-within {
  box-shadow: 0 0 0 4px rgba(251,194,82,0.20), var(--shadow);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  background: transparent;
  color: var(--ink);
  padding: 16px 20px;
}
.search-input::placeholder { color: var(--ink-muted); }

.search-btn {
  width: 64px;
  border-radius: 0 16px 16px 0;
  background: var(--clay-orange);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.search-btn:hover { background: #F0B23E; }

.search-meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Mode tabs — 시각 구분 강화 */
.mode-tabs {
  display: inline-flex;
  gap: 6px;
  background: #FAFAFA;
  padding: 6px;
  border-radius: var(--r-pill);
  margin-top: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: center;
}
.mode-tab {
  border: 1.5px solid transparent;
  background: white;
  padding: 12px 22px;
  min-height: 48px;
  min-width: 100px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: manipulation;
}
.mode-tab::before { font-size: 16px; }
.mode-tab[data-mode="analyze"]::before { content: "🔍"; }
.mode-tab[data-mode="bench"]::before { content: "⚖️"; }
.mode-tab[data-mode="counterfactual"]::before { content: "🔮"; }
.mode-tab-active {
  background: var(--clay-coral);
  color: white;
  border-color: var(--clay-coral-hover);
  box-shadow: 0 2px 8px rgba(208,58,90,0.3);
  transform: translateY(-1px);
}
.mode-tab:hover:not(.mode-tab-active) {
  background: #FFF5F7;
  border-color: var(--clay-coral);
  color: var(--clay-coral);
}
.mode-tab:focus-visible {
  outline: 3px solid var(--clay-coral);
  outline-offset: 2px;
}

/* 모바일 — 1줄 가로 스크롤 또는 세로 stack */
@media (max-width: 720px) {
  .mode-tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 6px 8px;
  }
  .mode-tab {
    flex-shrink: 0;
    min-width: 110px;
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* Bench progress */
.bench-card {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow);
}
.bench-card.error { border-color: var(--clay-coral); color: var(--clay-coral); }
.bench-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.bench-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r);
  background: var(--bg-soft);
  transition: all 0.3s;
}
.bench-step.active {
  background: rgba(251,194,82,0.18);
  box-shadow: 0 0 0 2px var(--clay-orange);
}
.bench-step.done {
  background: rgba(78,205,196,0.18);
  opacity: 0.85;
}
.bench-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink-muted);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.bench-step.active .bench-step-num { background: var(--clay-orange); }
.bench-step.done .bench-step-num { background: #4ECDC4; }
.bench-step-label { font-weight: 700; font-size: 13px; color: var(--ink); }
.bench-step-desc { font-size: 11px; color: var(--ink-muted); }
.bench-msg {
  background: rgba(251,194,82,0.15);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #B8731F;
  text-align: center;
  margin-bottom: 16px;
}

.bench-section { margin-top: 24px; }
.bench-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

/* Chat bubbles */
.chat-row { display: flex; margin-bottom: 12px; }
.chat-row-pros { justify-content: flex-start; }
.chat-row-def  { justify-content: flex-end; }
.chat-row-judge { justify-content: center; }

.chat-bubble {
  max-width: 75%;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  line-height: 1.6;
}
.bubble-coral  { background: rgba(208,58,90,0.08);   border-left: 3px solid var(--clay-coral); }
.bubble-blue   { background: rgba(137,207,240,0.18); border-right: 3px solid var(--clay-blue); }
.bubble-purple { background: rgba(155,143,229,0.12); border-left: 3px solid #6B5FE0; max-width: 90%; }

.bubble-head {
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 8px;
}
.bubble-list .bubble-item {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.bubble-text { font-size: 13px; color: var(--ink-soft); }
.bubble-quote {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-muted);
  margin-top: 6px;
}
.bubble-counter {
  font-size: 13px;
  color: var(--ink);
  margin-top: 2px;
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 2px solid var(--clay-orange);
}
.bubble-zone {
  background: white;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  font-size: 13.5px;
  display: inline-block;
}

/* Counterfactual */
.cf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 720px) { .cf-grid { grid-template-columns: 1fr; } }
.cf-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
}
.cf-card.cf-mit { border-color: #4ECDC4; background: rgba(78,205,196,0.05); }
.cf-card.cf-base { border-color: var(--clay-orange); background: rgba(251,194,82,0.05); }
.cf-card.cf-agg { border-color: var(--clay-coral); background: rgba(208,58,90,0.05); }
.cf-label {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.cf-zone {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.cf-range {
  font-size: 13px;
  color: var(--clay-coral);
  font-weight: 700;
}
.cf-factor {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.5;
}
.cf-impact {
  background: var(--bg-soft);
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 13px;
}
.cf-impact-row {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.cf-impact-row:last-child { border-bottom: none; }

.bench-final {
  background: linear-gradient(135deg, var(--clay-pink), var(--clay-cream));
  border-radius: var(--r-md);
  padding: 24px;
  margin-top: 24px;
  text-align: center;
}
.final-zone { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.final-range { font-size: 16px; color: var(--clay-coral); font-weight: 700; margin-bottom: 12px; }
.final-reasoning { font-size: 13px; color: var(--ink-soft); line-height: 1.7; }

/* hero scene — Claybees scene illustration single centered */
.hero-scene {
  margin: 32px auto 0;
  max-width: 320px;
}
.hero-scene-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(17,24,39,0.10));
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 720px) {
  .hero-h1 { font-size: 28px; line-height: 1.2; margin: 0 0 14px; }
  .hero { padding: 32px 16px 20px; }
  .hero-scene { max-width: 240px; }
  .hero-tagline { font-size: 0.74rem; padding: 5px 12px; margin-bottom: 10px; line-height: 1.4; }
  .hero-desc { font-size: 14px; line-height: 1.55; max-width: 100%; padding: 0 4px; margin: 0 auto 16px; }
  .hero-counters { gap: 8px; padding: 0 6px; margin: 0 auto 24px; }
  .hero-counter { padding: 8px 12px; min-width: 86px; }
  .hero-counter-num { font-size: 17px; }
  .hero-counter-label { font-size: 10.5px; }
}
@media (max-width: 420px) {
  .hero-h1 { font-size: 24px; }
  .hero { padding: 24px 12px 16px; }
  .hero-tagline { font-size: 0.7rem; padding: 4px 10px; }
  .hero-desc { font-size: 13px; }
  .hero-counter { padding: 7px 10px; min-width: 80px; }
  .hero-counter-num { font-size: 15px; }
}

/* ── Sections ── 2026-05-14 17:50 KST 너비 확장 1100→1400 */
section.samples-section,
section.features-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 32px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 40px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* ── Samples grid (Best Practice 2026-05-10) ── */
.section-sub {
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
  margin: -28px 0 28px;
  line-height: 1.6;
}
.sample-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid #F1F3F5;
}
/* 2026-05-14 12:31 KST 카드 → 단순 리스트 행 (텍스트 링크 톤) */
.sample-btn {
  background: transparent;
  border: none;
  border-bottom: 1px solid #F1F3F5;
  border-radius: 0;
  padding: 12px 8px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: background 0.12s;
  display: flex;
  align-items: baseline;
  gap: 14px;
  position: relative;
}
.sample-btn::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px; border-radius: 999px;
  background: #F59E0B;
  flex-shrink: 0; position: relative; top: -2px;
}
.sample-btn-blue::before    { background: #2563EB; }
.sample-btn-amber::before   { background: #D97706; }
.sample-btn-violet::before  { background: #7C3AED; }
.sample-btn:hover { background: #FAFAFA; }
.sample-btn-icon { display: none; }
.sample-btn-title { font-weight: 600; color: var(--ink); font-size: 14px; }
.sample-btn-desc { color: var(--ink-muted); font-size: 13px; }
.sample-btn-desc::before { content: ' · '; color: #D1D5DB; margin-right: 4px; }
.sample-btn-cta { display: none; }
.samples-disclaimer {
  text-align: center;
  margin: 24px auto 0;
  padding: 10px 16px;
  max-width: 720px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
  background: #f8fafc;
  border-radius: 8px;
}
@media (max-width: 720px) {
  .sample-grid { grid-template-columns: 1fr; gap: 12px; max-width: 100%; }
  .sample-btn { padding: 16px 18px; }
  .section-sub { font-size: 13px; margin: -20px 0 22px; }
}

/* ── Features ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  text-align: center;
  transition: all 0.2s;
}
.feature-card:hover {
  border-color: var(--clay-blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink);
}
.feature-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.65;
}

/* ── Data ── */
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .data-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
@media (max-width: 380px) {
  .data-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.data-card {
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.2s;
}
.data-card:hover {
  background: white;
  box-shadow: var(--shadow);
}
.data-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--clay-coral);
  letter-spacing: -0.02em;
}
.data-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}
@media (max-width: 720px) {
  .data-card { padding: 18px 12px; }
  .data-num { font-size: 26px; }
  .data-label { font-size: 12px; }
}
@media (max-width: 380px) {
  .data-card { padding: 14px 8px; }
  .data-num { font-size: 22px; }
  .data-label { font-size: 11px; }
}

/* ── Results ── */
.results {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 64px;
  display: none;
  flex-direction: column;
  gap: 20px;
}
.results.active { display: flex; }

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .persona-grid { grid-template-columns: 1fr; } }

.persona-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.persona-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.persona-clay {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 90px;
  height: 90px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(17,24,39,0.10));
}
.persona-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.persona-title { font-weight: 700; font-size: 16px; color: var(--ink); }
.persona-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
.persona-tag.coral   { background: rgba(208,58,90,0.10);  color: var(--clay-coral); }
.persona-tag.primary { background: rgba(137,207,240,0.30); color: #1976D2; }
.persona-tag.purple  { background: rgba(155,143,229,0.20); color: #5B4FCC; }

.persona-content { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }

.card.loading {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 40px 32px;
  text-align: center;
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-soft);
  border-top-color: var(--clay-coral);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.loading-step { font-size: 13px; color: var(--ink-muted); }

/* ── Footer ── */
.footer {
  background: var(--bg-soft);
  padding: 48px 32px 28px;
  margin-top: 60px;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 8px;
}
.footer-desc { font-size: 13px; color: var(--ink-muted); margin: 0; }
.footer h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
}
/* C2 정정 — WCAG 2.5.5 footer 링크 hit-target ≥24×24 */
.footer a {
  display: inline-block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 8px 4px;
  min-height: 24px;
}
.footer a:hover { color: var(--clay-coral); }
.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}
.footer-bottom a { padding: 8px 6px; min-height: 24px; }

/* ────────────────────────────────────────────────────────── */
/* RAG Citations 컴포넌트 (챗규 graphrag 수준 출처 표시) v53     */
/* ────────────────────────────────────────────────────────── */
.arena-citations {
  display: block;
  visibility: visible;
  width: 100%;
  min-height: 100px;
  margin: 24px 0 32px;
  padding: 18px 20px;
  background: #FAFBFC;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 13px;
}
.citations-title {
  margin: 0 0 12px;
  font-size: 15px;
  color: #1B2A4A;
  font-weight: 700;
  border-bottom: 2px solid #2563EB;
  padding-bottom: 6px;
}
.citation-section {
  margin: 12px 0 16px;
}
.cite-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #4B5563;
  margin: 8px 0 6px;
  padding: 4px 0;
  border-left: 3px solid #2563EB;
  padding-left: 8px;
  background: #EFF6FF;
}
.cite-card {
  background: #FFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 6px 0;
  font-size: 12px;
  line-height: 1.55;
}
.cite-head { margin-bottom: 4px; }
.cite-tag {
  display: inline-block;
  background: #2563EB;
  color: #FFF;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
}
.cite-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #6B7280;
}
.cite-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #6B7280;
  margin-left: 8px;
}
.cite-q-ok    { color: #059669; font-size: 10px; margin-left: 6px; }
.cite-q-warn  { color: #D97706; font-size: 10px; margin-left: 6px; }
.cite-q-bad   { color: #DC2626; font-size: 10px; margin-left: 6px; }
.cite-verdict {
  display: inline-block;
  color: #FFF;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 6px;
}
.cite-meta {
  color: #6B7280;
  font-size: 11px;
  margin: 3px 0;
}
.cite-snippet {
  background: #F9FAFB;
  border-left: 2px solid #D1D5DB;
  padding: 5px 8px;
  margin-top: 4px;
  font-size: 11px;
  color: #374151;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
