/* AI Analyst / BI ミラー 共通スタイル */
body { font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif; }

/* BI パネル（Amazon QuickSight 風） */
.bi-card { background: #fff; border: 1px solid #dfe3e8; border-radius: 3px; padding: 8px 10px; position: relative; }
.bi-card.highlight { outline: 3px solid #6366f1; outline-offset: -1px; box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.bi-card-title { font-size: 11px; color: #334155; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.bi-card-title .ask { margin-left: auto; color: #6366f1; cursor: pointer; opacity: 0; transition: opacity .15s; font-size: 11px; white-space: nowrap; }
.bi-card:hover .ask { opacity: 1; }
.kpi-box { background: #fff; border: 1px solid #dfe3e8; border-radius: 3px; padding: 6px 10px; text-align: center; }
.kpi-box .label { font-size: 10px; color: #64748b; }
.kpi-box .value { font-size: 22px; font-weight: 600; color: #1e293b; letter-spacing: .3px; }
.bi-filter { border: 1px solid #dfe3e8; border-radius: 3px; padding: 4px 8px; background: #fff; font-size: 11px; }
.bi-filter .flabel { color: #475569; font-size: 10px; }
.bi-filter .fval { border: 1px solid #cbd5e1; border-radius: 2px; padding: 2px 6px; color: #1e293b; background: #f8fafc; margin-top: 2px; min-height: 20px; }
table.bi-table { width: 100%; font-size: 11px; border-collapse: collapse; }
table.bi-table th { text-align: left; font-weight: 600; color: #475569; border-bottom: 1px solid #e2e8f0; padding: 3px 4px; }
table.bi-table td { padding: 2px 4px; border-bottom: 1px solid #f1f5f9; }
table.bi-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* AI パネル */
.ai-tab.active { color: #4338ca; border-bottom: 2px solid #4338ca; background: #eef2ff; }
.stmt { border-left: 3px solid #cbd5e1; padding: 6px 8px; background: #fff; border-radius: 0 4px 4px 0; margin-bottom: 6px; }
.stmt.FACT { border-color: #2563eb; }
.stmt.INTERPRETATION { border-color: #16a34a; }
.stmt.HYPOTHESIS { border-color: #d97706; }
.badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 9999px; margin-right: 6px; vertical-align: middle; letter-spacing: .3px; }
.badge.FACT { background: #dbeafe; color: #1d4ed8; }
.badge.INTERPRETATION { background: #dcfce7; color: #15803d; }
.badge.HYPOTHESIS { background: #fef3c7; color: #b45309; }
.evidence { font-size: 11px; color: #475569; margin-top: 4px; }
.evidence a { color: #4f46e5; cursor: pointer; text-decoration: underline dotted; }
.unverified { font-size: 11px; color: #b91c1c; background: #fee2e2; padding: 2px 6px; border-radius: 4px; margin-top: 4px; display: inline-block; }
.section-title { font-weight: 700; color: #1e293b; margin: 12px 0 6px; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.chip { font-size: 11px; background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; border-radius: 9999px; padding: 3px 9px; cursor: pointer; }
.chip:hover { background: #e0e7ff; }
.chat-user { background: #4f46e5; color: #fff; border-radius: 12px 12px 2px 12px; padding: 8px 10px; margin-left: 40px; white-space: pre-wrap; }
.chat-ai { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px 12px 12px 2px; padding: 8px 10px; margin-right: 20px; }
.chat-ai p { white-space: pre-wrap; }

/* レポート */
.page { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); padding: 36px 44px; min-height: 560px; }
.page h2 { font-size: 20px; font-weight: 700; color: #1e3a5f; border-bottom: 3px solid #1e3a5f; padding-bottom: 6px; margin-bottom: 16px; }
.page h3 { font-size: 14px; font-weight: 700; color: #334155; margin: 14px 0 6px; }
