#alertsPanel .alerts-section{border-top:1px solid var(--border,#d7e0e9);padding:22px 0;margin:12px 0}
#alertsPanel summary{cursor:pointer;font-weight:600;padding:8px 0;line-height:1.5}
#alertsPanel summary>span{font-size:13px;color:var(--muted,#64748b);margin-left:12px}
#alertsPanel .alerts-toolbar,.alerts-dialog .alerts-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}
#alertsPanel .alerts-toolbar>span{flex:1;min-width:160px;font-size:13px}
#alertsPanel .alerts-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:16px 0}
#alertsPanel label,.alerts-dialog label{display:flex;flex-direction:column;gap:8px;font-size:14px;min-width:0}
#alertsPanel input:not([type=checkbox]),#alertsPanel select,.alerts-dialog input:not([type=checkbox]),.alerts-dialog select{width:100%;min-width:0;box-sizing:border-box;min-height:40px}
#alertsPanel .alerts-check,.alerts-dialog .alerts-check{display:flex;flex-direction:row;gap:9px;align-items:center;line-height:1.4}
#alertsPanel input[type=checkbox],.alerts-dialog input[type=checkbox]{appearance:auto;width:18px;height:18px;min-width:18px;min-height:18px;flex:0 0 18px;padding:0;margin:0;accent-color:#1769ce}
#alertsPanel fieldset{border:0;border-top:1px solid var(--border,#d7e0e9);margin:20px 0 10px;padding:14px 0}
#alertsPanel legend{padding:0 10px 0 0;font-weight:600}
#alertsPanel .alerts-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#alertsPanel .alerts-choices span{overflow-wrap:anywhere}
#alertsPanel h3,.alerts-dialog h3{font-size:18px;margin:20px 0 14px}
#alertsPanel .alerts-scroll{overflow:auto;max-width:100%}
#alertsPanel table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}
#alertsPanel th,#alertsPanel td{padding:12px 10px;border-bottom:1px solid var(--border,#d7e0e9);vertical-align:top;overflow-wrap:anywhere}
#alertsPanel th{font-size:12px;color:var(--muted,#64748b)}
#alertsPanel td:first-child{min-width:150px;max-width:300px}
#alertsPanel td:nth-child(2){min-width:120px}
#alertsPanel td:nth-child(3){min-width:50px}
#alertsPanel td:nth-child(4){min-width:140px}
#alertsPanel td button{min-width:110px}
#alertsPanel small{display:block;color:var(--muted,#64748b);margin-top:5px}
#alertsPanel button,.alerts-dialog button{min-height:40px;white-space:normal}
#alertsPanel [data-message]{color:var(--muted,#64748b);font-size:14px}
#alertsPanel .alerts-history{margin-top:18px;font-size:13px}
.alerts-dialog{box-sizing:border-box;width:min(500px,calc(100% - 24px));max-height:90dvh;overflow:auto;border:1px solid var(--border,#d7e0e9);border-radius:8px;background:var(--card,#fff);color:var(--text,#17212c);padding:24px}
.alerts-dialog::backdrop{background:rgba(0,0,0,.45)}
.alerts-dialog form{display:grid;gap:16px}
.alerts-dialog p{margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.alerts-dialog [role=alert]{color:#d02945}
@media(max-width:900px){#alertsPanel .alerts-fields,#alertsPanel .alerts-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#alertsPanel .alerts-fields,#alertsPanel .alerts-choices{grid-template-columns:minmax(0,1fr)}.alerts-dialog{padding:18px}#alertsPanel table{min-width:640px}}
