/* Visit analysis shares the member panel's typography and spacing. */
.tuleer-analysis { border:1px solid #dce6f2; border-radius:16px; background:#fff; overflow:hidden; box-shadow:0 10px 32px #21467b08; }
.tuleer-analysis-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px 14px; }
.tuleer-analysis-heading h3 { display:flex; align-items:center; gap:9px; margin:0; color:#142844; font-size:15px; font-weight:750; }
.tuleer-analysis-heading svg { width:19px; height:19px; fill:none; stroke:#1769ff; stroke-width:1.7; }
.tuleer-analysis-heading p { margin:5px 0 0; color:#718198; font-size:12px; }
.tuleer-analysis-coverage { display:flex; align-items:center; gap:6px; color:#63758d; font-size:12px; white-space:nowrap; }
.tuleer-analysis-coverage i { width:6px; height:6px; border-radius:50%; background:#1769ff; }
.tuleer-analysis-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:0 20px 16px; }
.tuleer-analysis-metric { position:relative; display:grid; gap:8px; min-width:0; padding:14px 16px; text-align:left; border:1px solid #e5ebf3; border-radius:11px; background:#fafcfe; cursor:pointer; transition:border-color .16s,background .16s,transform .16s; }
.tuleer-analysis-metric:hover { background:#f2f7ff; border-color:#a6c8ff; transform:translateY(-1px); }
.tuleer-analysis-metric[aria-pressed="true"] { border-color:#79abff; background:#f0f6ff; box-shadow:inset 0 0 0 1px #79abff; }
.tuleer-analysis-metric:disabled { cursor:default; opacity:.6; }
.tuleer-analysis-metric>span { font-size:12px; color:#61738c; }
.tuleer-analysis-metric strong { color:#142844; font-size:26px; font-weight:750; line-height:1; font-variant-numeric:tabular-nums; }
.tuleer-analysis-metric small { color:#8290a3; font-size:11px; }
.tuleer-analysis-metric.is-automation strong { color:#6250b8; }
.tuleer-analysis-metric.is-attention strong { color:#b4670b; }
.tuleer-analysis-footnote { display:flex; gap:9px; padding:12px 20px; border-top:1px solid #eaf0f7; background:#f8fafd; color:#718198; font-size:12px; line-height:1.65; }
.tuleer-analysis-footnote svg { width:15px; height:15px; flex:0 0 15px; margin-top:3px; fill:none; stroke:currentColor; stroke-width:1.7; }
.tuleer-analysis-cell { display:grid; justify-items:start; gap:5px; border:0; padding:2px; background:none; text-align:left; cursor:pointer; }
.tuleer-analysis-badge { display:inline-flex; align-items:center; gap:5px; padding:4px 7px; border-radius:5px; color:#546980; background:#eef2f6; font-size:11px; font-weight:650; line-height:1.4; white-space:nowrap; }
.tuleer-analysis-badge svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:1.8; }
.tuleer-analysis-badge.is-verified { color:#167766; background:#e7f5ef; }
.tuleer-analysis-badge.is-crawler,.tuleer-analysis-badge.is-automated { color:#6550b2; background:#f0ecfa; }
.tuleer-analysis-badge.is-attention { color:#a8610b; background:#fff2de; }
.tuleer-analysis-badge.is-probe { color:#b84150; background:#fcecef; }
.tuleer-analysis-badge.is-unremarkable { color:#417366; background:#edf5f1; }
.tuleer-analysis-badge.is-insufficient { color:#778598; background:#f0f3f7; }
.tuleer-analysis-cell:hover .tuleer-analysis-badge { box-shadow:0 0 0 1px currentColor; }
.tuleer-analysis button:focus-visible,.tuleer-analysis-cell:focus-visible { outline:3px solid #8bb8ff; outline-offset:3px; }
.tuleer-analysis-detail { overflow:hidden; border:1px solid #dbe6f4; border-radius:14px; background:#fff; }
.tuleer-analysis-detail-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:18px 20px; background:linear-gradient(110deg,#f2f7ff,#fff); border-bottom:1px solid #e5edf7; }
.tuleer-analysis-detail-head h3 { margin:0 0 6px; color:#142844; font-size:16px; font-weight:750; }
.tuleer-analysis-detail-head p { color:#728198; font-size:12px; margin:0; line-height:1.65; }
.tuleer-analysis-detail-tags { display:flex; flex-wrap:wrap; gap:6px; justify-content:flex-end; }
.tuleer-analysis-evidence { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(200px,.8fr); }
.tuleer-analysis-reasons { display:grid; gap:0; margin:0; padding:4px 20px; list-style:none; }
.tuleer-analysis-reasons li { display:grid; grid-template-columns:24px minmax(0,1fr); gap:9px; padding:15px 0; border-bottom:1px solid #edf1f6; }
.tuleer-analysis-reasons li:last-child { border-bottom:0; }
.tuleer-analysis-reasons .evidence-number { display:grid; place-items:center; width:21px; height:21px; border-radius:6px; color:#477db9; background:#edf4fc; font-size:11px; font-variant-numeric:tabular-nums; }
.tuleer-analysis-reasons strong { display:block; color:#2b405b; font-size:13px; font-weight:650; }
.tuleer-analysis-reasons p { margin:5px 0 0; color:#738299; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.tuleer-analysis-reasons small { display:inline-block; margin-top:6px; color:#8794a5; font-size:10px; }
.tuleer-analysis-facts { display:grid; align-content:start; gap:15px; padding:20px; border-left:1px solid #edf1f7; background:#fcfdff; }
.tuleer-analysis-facts div { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.tuleer-analysis-facts dt { color:#7b8ba0; font-size:12px; }
.tuleer-analysis-facts dd { color:#2d4563; font-size:13px; font-weight:650; margin:0; }
.tuleer-analysis-raw { margin:0 20px 14px; padding:10px 12px; border-radius:8px; background:#f6f8fb; color:#66788e; font:11px/1.7 ui-monospace,monospace; overflow-wrap:anywhere; }
.tuleer-analysis-raw summary { cursor:pointer; font-family:inherit; }
.tuleer-analysis-caption { margin:0; padding:12px 20px; border-top:1px solid #e6edf5; color:#7c899d; background:#fafbfd; font-size:11px; line-height:1.7; }
@media(max-width:767px) {
 .tuleer-analysis-heading { align-items:flex-start; padding:16px; }
 .tuleer-analysis-coverage { font-size:10px; }
 .tuleer-analysis-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); padding:0 16px 16px; gap:8px; }
 .tuleer-analysis-metric { padding:12px; }
 .tuleer-analysis-metric:last-child { grid-column:1/-1; }
 .tuleer-analysis-footnote { padding:12px 16px; }
 .tuleer-analysis-detail-head { flex-direction:column; padding:16px; }
 .tuleer-analysis-detail-tags { justify-content:flex-start; }
 .tuleer-analysis-evidence { grid-template-columns:1fr; }
 .tuleer-analysis-facts { border-left:0; border-top:1px solid #edf1f7; grid-template-columns:1fr 1fr; padding:16px; }
 .tuleer-analysis-facts div { flex-direction:column; gap:5px; }
 .tuleer-analysis-reasons { padding:4px 16px; }
}
@media(prefers-reduced-motion:reduce) { .tuleer-analysis * { transition:none!important; transform:none!important; } }
.tuleer-analysis-caption>span { display:block; margin-top:3px; font-size:10px; color:#94a1b3; }
.tuleer-visit-modal>section { animation:visit-detail-enter .18s ease-out; }
@keyframes visit-detail-enter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:640px) {
 .tuleer-visit-modal { padding:10px; }
 .tuleer-visit-modal>section { max-height:calc(100dvh - 20px); border-radius:14px; }
 .tuleer-visit-modal-body { padding:12px; }
 .tuleer-visit-journey { overflow-x:auto; }
}
@media(prefers-reduced-motion:reduce) { .tuleer-visit-modal>section { animation:none; } }

.tuleer-visits-filters { grid-template-columns:repeat(4,minmax(0,1fr)); }
.tuleer-visits-filter-actions { grid-column:1/-1; justify-content:flex-end; }
@media(max-width:640px) { .tuleer-visits-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
