.alert-analysis-trigger{width:100%;justify-content:flex-start!important;gap:6px;margin-bottom:6px;border-color:rgba(240,82,47,.28)!important;color:#c83e23!important;background:rgba(240,82,47,.06)!important}
.alert-analysis-trigger:hover{background:rgba(240,82,47,.11)!important;border-color:rgba(240,82,47,.42)!important}

.alert-analysis-panel{margin-top:13px;padding:16px 17px;border:1px solid #d7e2ea;border-radius:14px;background:linear-gradient(180deg,#fbfdff 0%,#f7fafc 100%);box-shadow:0 8px 24px rgba(19,43,61,.07)}
.alert-analysis-panel[hidden]{display:none!important}
.aa-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.aa-kicker{font-size:10px;font-weight:850;letter-spacing:.12em;text-transform:uppercase;color:#ef512f;margin-bottom:6px}
.aa-title{font-size:13px;line-height:1.55;color:#173247;font-weight:650;display:flex;gap:9px;align-items:flex-start}
.aa-level{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:62px;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:850;line-height:1;border:1px solid transparent;margin-top:1px}
.aa-low{background:#eaf8f1;color:#167349;border-color:#bde6d1}
.aa-medium{background:#fff7df;color:#94640b;border-color:#edd18b}
.aa-high{background:#fff0f1;color:#bf3142;border-color:#edbdc4}
.aa-close{border:0;background:transparent;color:#7890a1;font-size:23px;line-height:1;cursor:pointer;padding:0 2px}
.aa-close:hover{color:#173247}
.aa-context{display:flex;gap:6px;flex-wrap:wrap;margin-top:11px}
.aa-section{margin-top:15px;padding-top:14px;border-top:1px solid #e2eaf0}
.aa-section-title{font-size:11px;font-weight:850;color:#173247;margin-bottom:7px}
.aa-section ul,.aa-section ol{margin:0;padding-left:20px;color:#405c70;font-size:11px;line-height:1.55}
.aa-section li+li{margin-top:4px}
.aa-commands{display:grid;gap:9px}
.aa-command{border:1px solid #dce6ed;border-radius:10px;background:#fff;overflow:hidden}
.aa-command-head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 10px;background:#f7fafc;border-bottom:1px solid #e7eef3;font-size:10px;color:#3d586b}
.aa-command-actions{display:flex;gap:5px;flex-wrap:wrap}
.aa-command pre{margin:0;padding:10px 12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.45;background:#0f2230;color:#d9e7ef;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace}
.aa-command .meta{padding:7px 10px;margin:0}
.aa-escalate{margin-top:14px;padding:10px 12px;border-left:3px solid #ef512f;background:rgba(240,82,47,.055);border-radius:8px;color:#526c7d;font-size:11px;line-height:1.5}
.aa-escalate b{color:#173247}
.aa-foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:11px;color:#7f95a5;font-size:9px}

html[data-ui-theme="dark"] .alert-analysis-panel{border-color:#294657;background:linear-gradient(180deg,#132b3a 0%,#102532 100%);box-shadow:0 8px 24px rgba(0,0,0,.18)}
html[data-ui-theme="dark"] .aa-title,html[data-ui-theme="dark"] .aa-section-title,html[data-ui-theme="dark"] .aa-escalate b{color:#e6f0f5}
html[data-ui-theme="dark"] .aa-section{border-top-color:#294657}
html[data-ui-theme="dark"] .aa-section ul,html[data-ui-theme="dark"] .aa-section ol,html[data-ui-theme="dark"] .aa-escalate{color:#aac0ce}
html[data-ui-theme="dark"] .aa-command{border-color:#2d4a5c;background:#102532}
html[data-ui-theme="dark"] .aa-command-head{background:#183343;border-bottom-color:#294657;color:#b8cad5}
html[data-ui-theme="dark"] .aa-command pre{background:#091923;color:#d6e4eb}
html[data-ui-theme="dark"] .aa-close{color:#8ca5b5}
html[data-ui-theme="dark"] .aa-close:hover{color:#fff}
html[data-ui-theme="dark"] .aa-low{background:#173a2c;color:#7ee0ae;border-color:#2b624a}
html[data-ui-theme="dark"] .aa-medium{background:#3a3018;color:#f2ce73;border-color:#655326}
html[data-ui-theme="dark"] .aa-high{background:#402027;color:#ff9aa5;border-color:#6e3540}

@media(max-width:760px){
  .alert-analysis-panel{padding:14px 12px}
  .aa-title{display:block}
  .aa-level{margin:0 0 7px}
  .aa-command-head{align-items:flex-start;flex-direction:column}
  .aa-command-actions{width:100%}
  .aa-command-actions .btn{flex:1}
}
