/* rule/detail_rule/detail_rule_ai_analysis.html — moved out of the template's inline <style> */
[v-cloak] { display: none; }
.ai-summary-content { font-size: .92rem; line-height: 1.7; }
.ai-summary-content h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.4rem;
    margin-bottom: .6rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid var(--border-color);
}
.ai-summary-content h2:first-child { margin-top: 0; }
.ai-summary-content p { color: var(--subtle-text-color); margin-bottom: .75rem; }
.ai-summary-content ul, .ai-summary-content ol { color: var(--subtle-text-color); }
.ai-summary-content code {
    background: var(--light-bg-color);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: .85em;
}
.ai-prov { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem .9rem;
    padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--border-color); background: var(--light-bg-color); }
.ai-prov__cell { display: flex; flex-direction: column; min-width: 0; }
.ai-prov__cell > span { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--subtle-text-color); }
.ai-prov__cell > b { font-size: .82rem; font-weight: 600; overflow-wrap: anywhere; }
.ai-prov__ids { display: flex; gap: .4rem; }
.ai-outdated { display: inline-flex; align-items: center; padding: .12rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 700;
    color: #b26100; background: rgba(253, 126, 20, .12); border: 1px solid rgba(253, 126, 20, .4); }
.ai-scope { border: 1px solid var(--border-color); border-radius: 10px; padding: .55rem .85rem; font-size: .84rem; }
.ai-scope summary { cursor: pointer; font-weight: 600; }
.ai-scope__title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--subtle-text-color); margin-bottom: .3rem; }
.ai-history-item {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: .82rem;
}
.ai-history-item:last-child { border-bottom: none; }
.ai-history-item:hover { background: var(--light-bg-color); cursor: pointer; }
.ai-visibility-badge {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 8px;
    border-radius: 20px;
}
.ai-visibility-badge--public  { background: rgba(25,135,84,.12); color: #198754; }
.ai-visibility-badge--private { background: rgba(220,53,69,.12); color: #dc3545; }

/* ── "At a glance" structured panel ── */
.ai-badge {
    display: inline-flex; align-items: center;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    padding: .3rem .75rem; border-radius: 20px;
}
.ai-badge--severity-critical { background: rgba(220,53,69,.15); color: #dc3545; }
.ai-badge--severity-high     { background: rgba(253,126,20,.15); color: #fd7e14; }
.ai-badge--severity-medium   { background: rgba(255,193,7,.18);  color: #b8860b; }
.ai-badge--severity-low,
.ai-badge--severity-info     { background: rgba(13,110,253,.12); color: #0d6efd; }
.ai-badge--confidence { background: var(--light-bg-color); color: var(--subtle-text-color); }
.ai-glance-block {
    background: var(--light-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: .85rem 1rem;
    height: 100%;
}
.ai-glance-block__title {
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--subtle-text-color); margin-bottom: .5rem;
}
.ai-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.ai-checklist li { display: flex; align-items: flex-start; gap: .5rem; font-size: .85rem; }
.ai-checklist li i { color: #198754; margin-top: .2rem; flex-shrink: 0; }
.ai-bullet-list { margin: 0; padding-left: 1.1rem; font-size: .85rem; color: var(--subtle-text-color); }
.ai-bullet-list li { margin-bottom: .3rem; }
.ai-script-option {
    display: flex; gap: .75rem; align-items: flex-start;
    border: 1px solid var(--border-color); border-radius: 10px;
    padding: .75rem .9rem; cursor: pointer; height: 100%;
    background: var(--card-bg-color); transition: border-color .15s, box-shadow .15s;
}
.ai-script-option:hover { border-color: rgba(13,110,253,.45); }
.ai-script-option--active { border-color: #0d6efd; box-shadow: 0 0 0 3px rgba(13,110,253,.12); }
.ai-script-option__icon {
    width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(13,110,253,.1); color: #0d6efd;
}
.ai-script-option__title { font-weight: 700; font-size: .88rem; }
.ai-script-option__desc { font-size: .78rem; color: var(--subtle-text-color); line-height: 1.45; }
.ai-badge--script { background: rgba(13,110,253,.12); color: #0d6efd; }
.ai-mitre-chip {
    font-size: .74rem; font-weight: 600;
    background: rgba(13,110,253,.1); color: #0d6efd;
    padding: .25rem .6rem; border-radius: 20px; cursor: help;
}
