/* demo_compliance.html 的样式, 从页面里的 <style> 原样拿出来。 */

  :root {
    --primary: #4c52d6;
    --primary-mid: #667eea;
    --primary-deep: #764ba2;
    --primary-soft: #e0e4fa;
    --primary-tint: #f4f5fc;
    --accent: #d97706;
    --accent-light: #f59e0b;
    --bg: #faf8f4;
    --card: #ffffff;
    --text: #1f1f2e;
    --text-muted: #6b6878;
    --border: rgba(76, 82, 214, 0.10);
    --good: #15803d;
    --bad: #b91c1c;
    --warn: #b45309;
    --shadow-sm: 0 1px 3px rgba(76, 82, 214, 0.06);
    --shadow-md: 0 4px 14px rgba(76, 82, 214, 0.10);
    --shadow-lg: 0 14px 32px rgba(76, 82, 214, 0.16);
    --radius: 12px;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-cover: linear-gradient(135deg, #1e1b4b 0%, #4c52d6 45%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; height: 100%; overflow: hidden; -webkit-font-smoothing: antialiased; }
  body { padding-bottom: 64px; }
  section.slide {
    display: none;
    width: 100%;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    padding: 3.5vh 6vw;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  section.slide.active { display: flex; opacity: 1; }
  section.slide > .container { margin: auto 0; width: 100%; }
  section.slide.title-slide { background: var(--gradient-cover); color: #fff; text-align: center; align-items: center; position: relative; overflow: hidden; }
  section.slide.title-slide::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 18% 28%, rgba(255,255,255,0.10) 0, transparent 38%), radial-gradient(circle at 82% 72%, rgba(245,158,11,0.16) 0, transparent 50%); pointer-events: none; }
  section.slide.title-slide > .container { margin: auto; position: relative; z-index: 2; }
  section.slide h1 { font-size: clamp(30px, 5.4vw, 60px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 0.4em; }
  section.slide h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.6em; color: var(--primary); position: relative; padding-bottom: 0.35em; }
  section.slide h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 56px; height: 3px; background: var(--gradient); border-radius: 2px; }
  section.slide.title-slide h2 { color: #d9dcff; font-weight: 400; padding-bottom: 0; }
  section.slide.title-slide h2::after { display: none; }
  section.slide p { font-size: clamp(15px, 1.7vw, 18px); margin-bottom: 0.8em; }
  section.slide ul { padding-left: 1.4em; margin-bottom: 0.8em; }
  section.slide li { font-size: clamp(15px, 1.65vw, 17px); margin-bottom: 0.45em; }
  .container { width: 100%; max-width: 1200px; margin: 0 auto; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: start; }
  .three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2vw; align-items: stretch; }
  .grid-2x3 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4vw; }
  @media (max-width: 768px) { .two-col, .three-col, .grid-2x3 { grid-template-columns: 1fr; gap: 1.4em; } }
  .panel { background: var(--primary-tint); padding: clamp(18px, 2.2vw, 28px); border-radius: var(--radius); border: 1px solid var(--border); }
  .panel.white { background: var(--card); box-shadow: var(--shadow-md); border: 1px solid var(--border); }
  .panel h3 { font-size: clamp(17px, 1.9vw, 20px); color: var(--primary); margin-bottom: 0.5em; font-weight: 700; }
  .panel h4 { font-size: clamp(15px, 1.7vw, 17px); color: var(--primary-deep); margin-bottom: 0.4em; font-weight: 700; }

  .flow-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 0.7vw; align-items: stretch; margin: 1em 0; }
  .flow-box { background: var(--card); padding: clamp(14px, 1.6vw, 18px); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: flex-start; transition: transform 0.2s, box-shadow 0.2s; }
  .flow-box:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .flow-head { display: flex; align-items: center; gap: 10px; margin-bottom: 0.3em; }
  .flow-box .flow-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--gradient); color: #fff; border-radius: 50%; font-size: 13px; font-weight: 700; flex-shrink: 0; box-shadow: 0 2px 6px rgba(76, 82, 214, 0.25); }
  .flow-box h4 { font-size: clamp(14px, 1.55vw, 16px); font-weight: 700; color: var(--primary); margin-bottom: 0; }
  .flow-box p { font-size: clamp(12px, 1.35vw, 14px); margin-bottom: 0; color: var(--text-muted); line-height: 1.5; }
  .flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--primary-mid); font-size: 24px; font-weight: 700; }
  @media (max-width: 900px) { .flow-row { grid-template-columns: 1fr; gap: 0.4em; } .flow-arrow { transform: rotate(90deg); padding: 0.3em 0; } }

  .scenario-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.4vw; align-items: stretch; margin-top: 0.6em; }
  @media (max-width: 900px) { .scenario-grid { grid-template-columns: 1fr; } }
  .scen-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--border); padding: clamp(16px, 1.8vw, 22px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
  .scen-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient); }
  .scen-head { font-size: clamp(11px, 1.2vw, 13px); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 0.3em; }
  .scen-card h3 { font-size: clamp(16px, 1.85vw, 19px); color: var(--primary); font-weight: 700; margin-bottom: 0.6em; }
  .scen-line { font-size: clamp(13px, 1.45vw, 15px); color: var(--text-muted); margin-bottom: 0.3em; }
  .scen-line strong { color: var(--text); font-weight: 600; }
  .scen-out { background: var(--primary-tint); border-left: 3px solid var(--primary); padding: 8px 12px; border-radius: 4px; font-size: clamp(13px, 1.4vw, 14px); margin-top: auto; }
  .scen-out .ok { color: var(--good); font-weight: 700; }
  .scen-out .bad { color: var(--bad); font-weight: 700; }
  .scen-out .warn { color: var(--warn); font-weight: 700; }

  .convo { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(14px, 1.6vw, 18px); margin-top: 0.6em; }
  .bubble { padding: 10px 14px; border-radius: 12px; margin-bottom: 8px; font-size: clamp(13px, 1.45vw, 15px); line-height: 1.55; }
  .bubble.user { background: var(--primary-soft); color: var(--text); border-bottom-left-radius: 4px; }
  .bubble.system { background: var(--primary-tint); border: 1px dashed var(--primary-mid); color: var(--text); }
  .bubble.system .src { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; font-style: italic; }

  .benefit-card { background: var(--card); padding: clamp(14px, 1.6vw, 20px); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); position: relative; transition: transform 0.2s, box-shadow 0.2s; }
  .benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .benefit-head { display: flex; align-items: center; gap: 12px; margin-bottom: 0.4em; }
  .benefit-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
  .benefit-icon svg { width: 20px; height: 20px; }
  .benefit-card h4 { font-size: clamp(15px, 1.7vw, 17px); font-weight: 700; color: var(--primary); margin: 0; }
  .benefit-card p { font-size: clamp(13px, 1.45vw, 15px); margin-bottom: 0; color: var(--text-muted); line-height: 1.5; }

  .cta-row { display: flex; gap: 1em; flex-wrap: wrap; margin-top: 1.2em; }
  .cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: clamp(14px, 1.6vw, 16px); transition: transform 0.15s, box-shadow 0.15s; }
  .cta-btn.primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 12px rgba(76, 82, 214, 0.25); }
  .cta-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(76, 82, 214, 0.35); }
  .cta-btn.secondary { background: var(--card); color: var(--primary); border: 1.5px solid var(--primary); }
  .cta-btn.secondary:hover { background: var(--primary-soft); }

  .meta { font-size: clamp(13px, 1.4vw, 16px); color: var(--text-muted); font-style: italic; margin-top: 1em; }
  .figure-cap { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 0.6em; font-style: italic; }

  .hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4vw; align-items: center; width: 100%; max-width: 1240px; margin: 0 auto; text-align: left; position: relative; z-index: 2; }
  @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2em; } .hero-visual { display: none; } }
  .hero-label { display: inline-block; font-size: clamp(11px, 1.2vw, 13px); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245, 158, 11, 0.95); border: 1px solid rgba(245, 158, 11, 0.45); padding: 6px 14px; border-radius: 999px; margin-bottom: 1.4em; font-weight: 600; }
  .hero-text h1 { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 0.5em; font-weight: 700; color: #fff; }
  .hero-sub { font-size: clamp(16px, 1.9vw, 22px); color: rgba(255,255,255,0.85); margin-bottom: 0.3em; line-height: 1.4; }
  .hero-sub-em { color: #f59e0b; font-weight: 600; }
  .hero-divider { width: 64px; height: 2px; background: var(--gradient-accent); margin: 1.6em 0 1.2em; border-radius: 2px; }
  .hero-partners { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 1em; }
  .hero-partners span { font-size: clamp(12px, 1.3vw, 14px); color: rgba(255,255,255,0.78); }
  .hero-meta { font-size: clamp(13px, 1.4vw, 15px); color: rgba(255,255,255,0.65); margin-bottom: 0.4em; }
  .hero-meta strong { color: rgba(245, 158, 11, 0.95); font-weight: 600; }
  .hero-meta a { color: rgba(245, 158, 11, 0.85); text-decoration: none; border-bottom: 1px dotted rgba(245, 158, 11, 0.4); }
  .hero-visual { display: flex; align-items: center; justify-content: center; }
  .hero-visual svg { width: 100%; height: auto; max-width: 460px; filter: drop-shadow(0 24px 48px rgba(0,0,0,0.4)); }

  body.lang-en .zh { display: none; }
  body.lang-zh .en { display: none; }

  .navbar { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; z-index: 100; box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04); }
  .navbar button { background: var(--gradient); color: #fff; border: none; padding: 11px 20px; font-size: 15px; font-weight: 600; border-radius: 8px; cursor: pointer; min-width: 100px; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 2px 6px rgba(76, 82, 214, 0.20); }
  .navbar button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(76, 82, 214, 0.30); }
  .navbar button:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; box-shadow: none; }
  .navbar .counter { font-size: 14px; color: var(--text); font-weight: 600; }
  .navbar .counter .total { color: var(--text-muted); font-weight: 400; }
  .navbar .lang-btn { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); min-width: 72px; padding: 9px 16px; font-weight: 600; box-shadow: none; }
  .navbar .lang-btn:hover { background: var(--primary-soft); transform: translateY(-1px); box-shadow: none; }
  @media (max-width: 480px) {
    .navbar button { padding: 10px 12px; font-size: 13px; min-width: 64px; }
    .navbar .lang-btn { min-width: 56px; padding: 9px 12px; }
  }

  /* ===== UI mockup classes (used by walkthrough slides) ===== */
  .app-mock { background: #fff; border-radius: 10px; box-shadow: 0 14px 36px rgba(76, 82, 214, 0.18); border: 1px solid var(--border); overflow: hidden; font-size: 12px; line-height: 1.45; }
  .am-nav { background: var(--gradient); color: #fff; padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; }
  .am-nav .am-title { font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
  .am-nav .am-user { display: flex; align-items: center; gap: 8px; font-size: 11px; opacity: 0.95; }
  .am-nav .am-user .am-pill { background: rgba(255,255,255,0.18); padding: 3px 9px; border-radius: 999px; font-size: 10px; }
  .am-body { display: grid; grid-template-columns: 168px 1fr; min-height: 280px; }
  .am-side { background: #f8f9fa; border-right: 1px solid #dee2e6; padding: 8px 5px; font-size: 11.5px; }
  .am-side .item { padding: 5px 9px; border-radius: 5px; margin: 2px 0; color: #4a4a5e; display: flex; align-items: center; gap: 6px; }
  .am-side .item.active { background: var(--gradient); color: #fff; font-weight: 700; box-shadow: 0 1px 4px rgba(76, 82, 214, 0.25); }
  .am-side .item .ic { width: 12px; text-align: center; opacity: 0.65; font-weight: 700; }
  .am-side .am-divider { height: 1px; background: #dee2e6; margin: 8px 4px; }
  .am-main { padding: 14px; background: #fff; }
  .am-h2 { color: var(--primary); font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
  .am-h2 .am-case-info { display: inline-flex; align-items: center; gap: 6px; background: #f8f9fa; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; color: #2c3e50; }
  .am-h2 .am-case-info .lbl { color: #6c757d; }
  .am-h2-actions { display: flex; gap: 6px; align-items: center; }
  .am-btn { background: var(--gradient); color: #fff; padding: 5px 12px; border-radius: 5px; font-size: 11px; font-weight: 600; box-shadow: 0 1px 3px rgba(76, 82, 214, 0.2); display: inline-block; }
  .am-btn.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); box-shadow: none; }
  .am-search { padding: 5px 10px; border: 1.5px solid #e0e0e0; border-radius: 5px; font-size: 11px; color: #6c757d; min-width: 130px; background: #fff; font-family: inherit; }

  .am-case-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
  .am-case-card { background: #fff; border: 1.5px solid #e0e0e0; border-radius: 7px; padding: 9px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .am-case-card.featured { border-color: var(--accent); box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12); }
  .am-case-card .am-cn { font-weight: 600; color: #2c3e50; font-size: 12px; }
  .am-case-card .am-cm { font-size: 10px; color: #6c757d; margin-top: 1px; }
  .am-case-card .am-cb { font-size: 9px; padding: 2px 8px; border-radius: 999px; font-weight: 700; background: var(--accent); color: #fff; letter-spacing: 0.04em; white-space: nowrap; }

  .am-upload { background: #fff; border: 1.5px dashed #c4b5fd; border-radius: 7px; padding: 10px 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; color: var(--primary); font-size: 11px; font-weight: 500; }
  .am-doc-list { background: #fff; border: 1px solid #e0e0e0; border-radius: 7px; overflow: hidden; }
  .am-doc-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #f0f0f0; }
  .am-doc-item:last-child { border-bottom: none; }
  .am-doc-item .am-doc-icon { width: 32px; height: 36px; background: #ddd6fe; color: #6b21a8; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }
  .am-doc-item .am-doc-name { font-size: 12px; color: #2c3e50; font-weight: 600; }
  .am-doc-item .am-doc-meta { font-size: 10px; color: #6c757d; margin-top: 1px; }
  .am-doc-item .am-doc-actions { margin-left: auto; display: flex; gap: 4px; }
  .am-doc-item .am-doc-actions .a { font-size: 10px; padding: 3px 8px; border-radius: 4px; background: #f3f4f6; color: #4b5563; }

  .am-chat { background: #fff; border: 1px solid #e0e0e0; border-radius: 7px; overflow: hidden; }
  .am-chat-body { padding: 10px; }
  .am-msg { display: flex; gap: 7px; margin-bottom: 8px; align-items: flex-start; }
  .am-msg.user { flex-direction: row-reverse; }
  .am-msg .am-av { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }
  .am-msg.user .am-av { background: var(--gradient); color: #fff; }
  .am-msg.bot .am-av { background: #e0e4fa; color: var(--primary); }
  .am-msg .am-bub { padding: 7px 11px; border-radius: 9px; font-size: 11.5px; max-width: 78%; line-height: 1.45; }
  .am-msg.user .am-bub { background: var(--gradient); color: #fff; border-bottom-right-radius: 3px; }
  .am-msg.bot .am-bub { background: #f8f9fa; color: #2c3e50; border: 1px solid #e9ecef; border-bottom-left-radius: 3px; }
  .am-msg .am-cite { display: block; font-size: 9.5px; color: #6b6878; margin-top: 5px; padding-top: 5px; border-top: 1px dashed rgba(0,0,0,0.10); font-style: italic; }
  .am-msg.user .am-cite { color: rgba(255,255,255,0.85); border-top-color: rgba(255,255,255,0.20); }
  .am-chat-input { background: #fff; border-top: 1px solid #e0e0e0; padding: 7px; display: flex; gap: 6px; align-items: center; }
  .am-chat-input .am-ta { flex: 1; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 5px; padding: 5px 9px; font-size: 10.5px; color: #6c757d; }
  .am-chat-input .am-send { background: var(--gradient); color: #fff; padding: 5px 11px; border-radius: 5px; font-size: 10.5px; font-weight: 600; }

  .am-report-head { background: var(--primary-tint); padding: 8px 12px; border-radius: 6px 6px 0 0; border: 1px solid var(--border); border-bottom: none; font-size: 11px; color: var(--text-muted); }
  .am-report-head strong { color: var(--text); }
  .am-report-list { background: #fff; border: 1px solid var(--border); border-radius: 0 0 6px 6px; overflow: hidden; }
  .am-report-row { padding: 7px 12px; border-bottom: 1px solid #f0f0f0; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; }
  .am-report-row:last-child { border-bottom: none; }
  .am-report-row .am-rn { width: 20px; height: 20px; background: var(--primary-soft); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 700; }
  .am-report-row .am-rt { font-size: 11.5px; color: #2c3e50; line-height: 1.4; }
  .am-report-row .am-rt strong { font-weight: 600; }
  .am-report-row .am-rt small { color: #6c757d; font-size: 9.5px; display: block; margin-top: 1px; }
  .am-pill { font-size: 9px; padding: 2.5px 8px; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
  .am-pill.good { background: #d1fae5; color: #065f46; }
  .am-pill.bad { background: #fee2e2; color: #991b1b; }
  .am-pill.warn { background: #fef3c7; color: #92400e; }

  .am-callout { background: linear-gradient(135deg, var(--primary-tint) 0%, var(--primary-soft) 100%); padding: clamp(12px, 1.5vw, 18px); border-radius: var(--radius); border: 1px solid var(--border); border-left: 4px solid var(--primary); margin-top: 0.8em; font-size: clamp(13px, 1.45vw, 15px); }
  .am-callout strong { color: var(--primary); }

  @media (max-width: 900px) {
    .am-body { grid-template-columns: 1fr; }
    .am-side { display: none; }
  }

  /* KB editor / tabs */
  .am-tabs { border-bottom: 2px solid #dee2e6; margin-bottom: 8px; display: flex; gap: 2px; }
  .am-tab { padding: 6px 14px; font-size: 11px; color: #6c757d; border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 500; }
  .am-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
  .am-kbinfo { background: #e7f3ff; color: #004085; padding: 6px 10px; border-radius: 4px; font-size: 10.5px; margin-bottom: 6px; }
  .am-kbinfo strong { color: #002752; }
  .am-kbedit { background: #fff; border: 1px solid #dee2e6; border-radius: 5px; padding: 10px 12px; font-family: 'Courier New', Consolas, monospace; font-size: 10.5px; line-height: 1.6; color: #2c3e50; white-space: pre-wrap; min-height: 165px; }
  .am-kbedit .am-marker { color: var(--accent); font-weight: 700; }
  .am-kbedit .am-keyword { color: #065f46; font-weight: 700; }
  .am-cursor { display: inline-block; color: var(--primary); animation: amblink 1s infinite; font-weight: 700; }
  @keyframes amblink { 50% { opacity: 0; } }

  /* Sync folder info block */
  .am-sync-info { background: #e7f3ff; border-radius: 6px; padding: 9px 12px; margin-top: 10px; font-size: 10.5px; color: #004085; line-height: 1.5; }
  .am-sync-info strong { color: #002752; }
  .am-sync-info code { background: #fff; padding: 1px 5px; border-radius: 3px; font-size: 10px; }

  /* Doc item status pill */
  .am-doc-stat { font-size: 9px; padding: 2px 7px; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
  .am-doc-stat.ingested { background: #d1fae5; color: #065f46; }
  .am-doc-stat.pending { background: #fef3c7; color: #92400e; }

  /* Status / streaming messages */
  .am-bub.status { background: #f5f5f5 !important; color: #666 !important; font-style: italic; border-left: 3px solid #999 !important; border: 1px solid #e9ecef !important; font-size: 10.5px !important; line-height: 1.55; }

  /* Markdown report rendering */
  .am-report-md { background: #fff !important; color: #2c3e50 !important; border: 1px solid #e0e0e0 !important; padding: 11px 13px !important; max-width: 92% !important; }
  .am-report-md h4 { font-size: 12px; margin: 0 0 4px 0; padding-bottom: 4px; border-bottom: 1px solid #e9ecef; color: #92400e; }
  .am-report-md .am-report-status { font-size: 12px; font-weight: 700; }
  .am-report-md .am-report-status.partial { color: #92400e; }
  .am-report-md .am-report-status.compliant { color: #065f46; }
  .am-report-md .am-report-status.bad { color: #991b1b; }
  .am-report-md .am-h3 { font-weight: 700; color: var(--primary); font-size: 11px; margin: 8px 0 4px 0; padding-top: 6px; border-top: 1px dashed #e0e0e0; }
  .am-report-md p { font-size: 11px; line-height: 1.5; margin: 4px 0; }
  .am-finding { background: #fafbff; border-left: 3px solid var(--primary-mid); padding: 6px 9px; margin: 5px 0; border-radius: 3px; }
  .am-finding .am-fhead { display: block; font-weight: 700; font-size: 11px; color: #2c3e50; }
  .am-finding small { display: block; font-size: 10px; color: #4b5563; line-height: 1.5; margin-top: 3px; }
  .am-finding small strong { color: var(--primary); font-weight: 600; }
  .am-sev { display: inline-block; font-size: 9px; padding: 1.5px 7px; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-left: 5px; vertical-align: middle; }
  .am-sev.high { background: #fee2e2; color: #991b1b; }
  .am-sev.med { background: #fef3c7; color: #92400e; }
  .am-sev.low { background: #dbeafe; color: #1e40af; }
  .am-sev.ok { background: #d1fae5; color: #065f46; }
