/* Shared semantic colors: always paired with the existing status text. */
:root{--status-good:#167047;--status-warn:#8a4b08;--status-bad:#ad293b;--status-blue:#215c98;--status-wait:#7041a0}
.badge.good{background:#e8f5ee;color:var(--status-good)}
.badge.warn{background:#fff3dc;color:var(--status-warn)}
.badge.bad{background:#fdecef;color:var(--status-bad)}
.badge.blue{background:#eaf2fd;color:var(--status-blue)}
.badge.wait{background:#f2ebfb;color:var(--status-wait)}
.badge{border-radius:6px;line-height:1.5;padding:3px 7px;font-weight:500}
:is(#content,#modal-body) .panel-head{background:#f7f9fc;padding:12px 18px}
:is(#content,#modal-body) .panel-head h2{font-size:15px}
#modal .detail-title{padding:10px 12px;background:#f7f9fc;border:1px solid #e3e8ef;border-radius:9px;gap:6px 14px;font-size:13px}
#modal .detail-section{padding:12px 14px;margin:12px 0}
#modal .detail-section>h3,#modal h3.section-space{font-size:14px;color:#23456c}
#modal h3.section-space{margin:18px 0 8px;padding-top:12px}
:is(#content,#modal-body) .event{padding:10px 14px;border-left:3px solid #9bb7d8;border-bottom:1px solid #e5eaf1;background:#fafbfd;font-size:13px;line-height:1.65}
:is(#content,#modal-body) .event p{margin:4px 0;line-height:1.65}
:is(#content,#modal-body) .event small{font-size:12px;color:#64748b}
:is(#content,#modal-body) .event strong{color:#23456c}
:is(#content,#modal-body) .event.good{border-left-color:#50a47b}
:is(#content,#modal-body) .event.warn{border-left-color:#d6a047}
:is(#content,#modal-body) .event.bad{border-left-color:#d77483}
:is(#content,#modal-body) .event.wait{border-left-color:#a682c9}
.history-more{margin-top:8px;border:1px solid #e3e8ef;border-radius:8px;overflow:hidden}
.history-more>summary{padding:9px 12px;cursor:pointer;color:#23456c;font-size:13px;font-weight:600;background:#f7f9fc}
#modal .next-action-section{background:#f6f2fc;border:1px solid #e4d9f2;border-left:3px solid #9670bd;border-radius:9px;padding:12px 14px;margin:12px 0}
#modal .next-action-section h3{margin:0 0 6px;color:#7041a0;font-size:14px}
#modal .next-action-section p{margin:6px 0}
#modal .next-action-section .notice{padding:8px 0;margin:0;border:0;background:transparent;font-size:12px}
#modal .next-action-section .row-controls{margin:8px 0 0}
#modal .next-action-section button{background:#7041a0;border-color:#7041a0;color:white}
:is(#content,#modal-body) .message{padding:10px 14px;border-bottom:1px solid #e5eaf1}
:is(#content,#modal-body) .message p{margin:5px 0}
@media(max-width:600px){:is(#content,#modal-body) .panel-head{padding:10px 14px}#modal .detail-title{gap:6px 10px}:is(#content,#modal-body) .event{padding:9px 11px}}
