.topbar .system-status-trigger[data-topbar-status="service"] { color: #14765b; cursor: pointer; text-align: left; }
.topbar .system-status-trigger[data-topbar-status="service"]::before,
.topbar .system-status-trigger[data-topbar-status="service"]::after { content: none; }
.topbar .system-status-trigger[data-topbar-status="service"] > span,
.topbar .system-status-trigger[data-topbar-status="service"] > strong { display: block; grid-column: 2; }
.topbar .system-status-trigger[data-topbar-status="service"] > span {
  grid-row: 1; color: #7a8b9d; font-size: var(--status-label-size); line-height: var(--status-label-line); font-weight: 600;
}
.topbar .system-status-trigger[data-topbar-status="service"] > strong {
  grid-row: 2; font-size: var(--status-value-size); line-height: var(--status-value-line); font-weight: 730;
}
.topbar .system-status-trigger[data-topbar-status="service"].is-warning { color: #b48227; }
.topbar .system-status-trigger[data-topbar-status="service"].is-critical { color: #d55d70; }
.topbar .system-status-trigger[data-topbar-status="service"].is-unknown { color: #93a4b3; }
.system-status-trigger svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; }
.system-status-overview i { width: 6px; height: 6px; border-radius: 50%; background: #19a580; flex: none; }
.system-status-trigger:focus-visible, .system-status-dialog button:focus-visible, .system-status-notice button:focus-visible { outline: 2px solid #458bcc; outline-offset: 3px; }
.system-status-dialog {
  box-sizing: border-box; width: min(940px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 40px);
  padding: 0; border: 1px solid #dce6ef; border-radius: 20px; color: #20334c;
  background: #f7fafd; box-shadow: 0 24px 90px #1a36533b; overflow: hidden;
}
.system-status-dialog[open] { display: flex; flex-direction: column; }
.system-status-dialog::backdrop { background: #18324b57; backdrop-filter: blur(4px); }
.system-status-head { display: flex; align-items: center; gap: 12px; padding: 22px 26px; background: #fff; border-bottom: 1px solid #e5edf3; flex: none; }
.system-status-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #e9f5f4; color: #188b80; }
.system-status-icon svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.5; }
.system-status-head small { font-size: 11px; color: #8596a8; }
.system-status-head h2 { margin: 0 0 4px; font-size: 21px; }
.system-status-close { margin-left: auto; width: 32px; height: 32px; border: none; border-radius: 9px; background: #f0f4f8; color: #748aa1; font-size: 24px; line-height: 1; }
.system-status-scroll { padding: 22px 26px; overflow: auto; overscroll-behavior: contain; min-height: 0; }
.system-status-egress { padding: 20px 22px 14px; margin-bottom: 14px; border: 1px solid #bfdaea; border-radius: 14px; background: linear-gradient(120deg, #eef8ff, #fff); }
.system-status-egress-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.system-status-egress-heading h3 { color: #466a86; }
.system-status-egress-heading > span { flex: none; font-size: 10px; color: #4e89ac; background: #deeff9; border-radius: 5px; padding: 3px 7px; }
.system-status-egress-ip { display: block; margin: 11px 0 7px; color: #244c6b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 34px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.system-status-egress > p { margin: 0; color: #7a92a6; font-size: 11px; line-height: 1.6; }
.system-status-egress dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 14px; }
.system-status-egress dt { margin-bottom: 5px; color: #7c92a5; font-size: 11px; }
.system-status-egress dd { margin: 0; color: #365972; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.system-status-egress-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; padding-top: 10px; border-top: 1px solid #dceaf2; color: #879bac; font-size: 10px; }
.system-status-overview { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; border: 1px solid #d3e9e1; border-radius: 10px; background: #edf8f4; }
.system-status-overview strong { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #218872; }
.system-status-overview p { margin: 7px 0 0; font-size: 12px; color: #617989; line-height: 1.6; }
.system-status-overview > span { flex: none; font-size: 12px; color: #648879; text-align: right; }
.system-status-overview small { display: block; margin-top: 5px; font-size: 10px; }
.system-status-overview.is-warning { background: #fff8eb; border-color: #f0dfb6; }
.system-status-overview.is-warning strong { color: #ae7b1e; }
.system-status-overview.is-warning i { background: #d69d39; }
.system-status-overview.is-critical { background: #fff1f3; border-color: #f2d3da; }
.system-status-overview.is-critical strong { color: #c34e62; }
.system-status-overview.is-critical i { background: #d25f70; }
.system-status-overview.is-unknown { background: #edf2f7; border-color: #dce5ee; }
.system-status-overview.is-unknown strong { color: #6b7f92; }
.system-status-overview.is-unknown i { background: #93a4b3; }
.system-status-update { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0; font-size: 11px; color: #7d91a4; }
.system-status-update button { border: 1px solid #d7e3ef; border-radius: 7px; padding: 5px 10px; color: #527995; background: #fff; font-size: 11px; white-space: nowrap; }
.system-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.system-metric { background: #fff; border: 1px solid #dfe8f0; border-radius: 12px; padding: 14px; }
.system-metric > span { font-size: 12px; color: #73879a; }
.system-metric strong { display: block; font-size: 21px; line-height: 1.4; font-weight: 650; letter-spacing: -.5px; margin: 7px 0 10px; font-variant-numeric: tabular-nums; }
.system-metric small { font-size: 10px; color: #7e91a3; line-height: 1.6; }
.system-meter { height: 4px; border-radius: 3px; background: #edf2f6; margin-bottom: 9px; overflow: hidden; }
.system-meter i { display: block; height: 100%; background: #46aea5; border-radius: inherit; transition: width .3s; }
.system-metric.is-warning .system-meter i { background: #dbaa4e; }
.system-metric.is-critical .system-meter i { background: #d86b7c; }
.system-metric.is-unknown .system-meter i { background: #a6b4c0; }
.system-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.system-detail-grid article, .system-trend, .system-status-events { padding: 17px; border: 1px solid #e0e9f1; border-radius: 12px; background: #fff; }
.system-status-dialog h3 { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.system-status-badge { font-size: 10px; padding: 3px 7px; background: #edf7f3; color: #33957c; border-radius: 5px; white-space: nowrap; }
.system-status-badge.is-warning { color: #ab7c2d; background: #fff6e6; }
.system-status-badge.is-critical { color: #c15668; background: #fff0f2; }
.system-status-badge.is-unknown { color: #7d8d9e; background: #f0f3f6; }
.system-detail-grid dl { margin: 16px 0 0; display: grid; gap: 12px; font-size: 11px; }
.system-detail-grid dl > div { display: flex; justify-content: space-between; gap: 12px; }
.system-detail-grid dt { color: #7f90a2; }
.system-detail-grid dd { margin: 0; color: #3f596e; font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
.system-detail-grid dd small { display: block; margin-top: 3px; color: #95a3b2; font-size: 9px; font-weight: 400; }
.system-detail-grid p { margin: 17px 0 0; font-size: 10px; line-height: 1.7; color: #9aabba; }
.system-trend { margin-top: 16px; }
.system-status-more { margin-top: 12px; border: 1px solid #e0e9f1; border-radius: 10px; background: #fff; }
.system-status-more > summary { padding: 13px 16px; color: #5e7890; font-size: 12px; cursor: pointer; }
.system-status-more > summary:focus-visible { outline: 2px solid #458bcc; outline-offset: -3px; border-radius: inherit; }
.system-status-more > .system-trend { margin-top: 0; border: none; border-top: 1px solid #e5edf3; border-radius: 0; }
.system-status-more > .system-status-empty { margin: 10px 17px; line-height: 1.7; }
.system-status-diagnostics { margin: 0; gap: 0; }
.system-status-diagnostics article, .system-status-more > .system-status-events { border: none; border-radius: 0; }
.system-status-diagnostics dl { margin-top: 0; }
.system-trend > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.system-trend > header p { color: #7c8fa2; font-size: 10px; margin: 7px 0 0; line-height: 1.6; }
.system-trend-mode { flex: none; color: #78889b; font-size: 10px; background: #f0f4f8; padding: 4px 7px; border-radius: 5px; }
.system-trend-mode.is-live { color: #298879; background: #edf7f3; }
.system-trend-controls { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0 12px; }
.system-trend button { border: 1px solid #dbe5ee; background: #fff; color: #59738b; border-radius: 7px; padding: 6px 10px; font-size: 11px; white-space: nowrap; cursor: pointer; }
.system-trend button:hover { background: #f3f8fb; }
.system-trend button[aria-pressed="true"] { color: #198676; background: #edf8f4; border-color: #a9dace; }
.system-trend-range { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; padding: 12px; margin-bottom: 14px; border-radius: 9px; background: #f5f8fb; }
.system-trend-range label { flex: 1 1 180px; min-width: 0; color: #768a9e; font-size: 10px; }
.system-trend-range input { display: block; box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; margin-top: 5px; padding: 6px; border: 1px solid #d7e3ed; border-radius: 6px; color: #455e75; background: #fff; font-size: 11px; }
.system-trend-range p { flex-basis: 100%; color: #c15668; font-size: 11px; margin: 0; }
.system-trend-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 10px; color: #279b89; margin-bottom: 14px; }
.system-trend-legend span:nth-child(2) { color: #8a9baf; }.system-trend-legend span:nth-child(3) { color: #b18530; }
.system-trend-legend span:nth-child(4) { color: #c2687b; }.system-trend-legend span:nth-child(5) { color: #568fd6; }
.system-trend-echart { width: 100%; height: 360px; }
.system-trend-tooltip strong { display: block; margin-bottom: 9px; color: #263e54; font-size: 11px; }
.system-trend-tooltip div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; margin: 5px 0; }
.system-trend-tooltip b { color: #2b4b63; font-variant-numeric: tabular-nums; }
.system-trend-window { color: #55738a; font-size: 10px; margin-top: 10px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.system-trend-help, .system-trend-empty, .system-trend > footer { font-size: 10px; line-height: 1.7; color: #8295a7; margin: 8px 0 0; }
.system-trend-empty { padding: 10px; background: #f4f7fa; border-radius: 6px; color: #667f95; }
.system-trend-details { margin-top: 12px; color: #688299; font-size: 11px; }
.system-trend-details summary { cursor: pointer; width: fit-content; padding: 3px 0; }
.system-trend-details > div { max-height: 200px; overflow: auto; margin-top: 8px; border: 1px solid #e2ebf2; border-radius: 6px; }
.system-trend-details table { border-collapse: collapse; width: 100%; font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.system-trend-details th, .system-trend-details td { padding: 7px 8px; border-bottom: 1px solid #edf2f6; text-align: right; }
.system-trend-details th { position: sticky; top: 0; background: #f5f8fb; font-weight: 500; }.system-trend-details th:first-child, .system-trend-details td:first-child { text-align: left; }
.system-trend input:focus-visible, .system-trend summary:focus-visible, .system-trend-details > div:focus-visible { outline: 2px solid #458bcc; outline-offset: 2px; }
.system-issues { margin-top: 18px; }
.system-issues article { padding: 12px 14px; margin-top: 8px; border-left: 3px solid #d3aa5c; background: #fff8eb; border-radius: 7px; }
.system-issues .is-critical { border-color: #dc8294; background: #fff1f4; }
.system-issues .is-unknown { border-color: #a1b1c0; background: #edf2f6; }
.system-issues strong { font-size: 12px; }.system-issues p { font-size: 11px; color: #7d8996; margin: 5px 0 0; line-height: 1.6; }
.system-status-events { margin-top: 16px; }
.system-status-events h3 small { color: #95a3b2; font-size: 10px; font-weight: 400; }
.system-status-events > div { display: flex; gap: 15px; margin-top: 12px; font-size: 11px; line-height: 1.5; }
.system-status-events time { flex: none; color: #9ba9b7; font-variant-numeric: tabular-nums; }
.system-status-events .is-warning { color: #b38636; }.system-status-events .is-critical { color: #c26274; }.system-status-events .is-ok { color: #379383; }
.system-status-events p, .system-status-empty { color: #93a2b2; font-size: 12px; }
.system-status-foot { flex: none; padding: 13px 26px; font-size: 10px; color: #8b9cad; background: #fff; border-top: 1px solid #e1eaf1; line-height: 1.7; }
.system-status-notice { display: flex; align-items: center; position: fixed; top: 78px; right: 18px; max-width: calc(100vw - 36px); z-index: 45; box-shadow: 0 6px 22px #364b6920; border: 1px solid #f0ddb6; border-radius: 10px; background: #fff9ed; color: #a37a33; }
.system-status-notice button { border: none; background: transparent; color: inherit; }
.system-status-notice-open { display: flex; flex: 1; min-width: 0; gap: 10px; align-items: center; padding: 10px 12px; font-size: 11px; text-align: left; }
.system-status-notice-open span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.system-status-notice-close { display: grid; place-items: center; flex: none; width: 26px; height: 26px; margin-right: 6px; padding: 0; border-radius: 6px; font-size: 18px; line-height: 1; }
.system-status-notice-close:hover { background: #a37a3314; }
.system-status-notice.is-critical { background: #fff2f4; color: #bd5c6f; border-color: #f0c9d2; }
.system-status-notice strong, .system-status-notice b { white-space: nowrap; }
@media (max-width: 767px) {
  .topbar .system-status-trigger[data-topbar-status="service"] {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 3px;
    width: 34px; min-width: 34px; max-width: 34px; height: 34px; min-height: 34px;
    margin-right: 0; padding: 0; border: 1px solid #dce8e4; border-radius: 9px;
  }
  .topbar .system-status-trigger[data-topbar-status="service"] > span,
  .topbar .system-status-trigger[data-topbar-status="service"] > strong { display: none; }
  .topbar .system-status-trigger[data-topbar-status="service"] > svg { display: block; }
  .topbar .system-status-trigger[data-topbar-status="service"] > i { width: 4px; height: 4px; box-shadow: none; }
  .system-status-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 15px; }
  .system-status-head { padding: 16px; }.system-status-scroll { padding: 14px; }
  .system-status-egress { padding: 16px; }.system-status-egress-ip { font-size: 27px; }
  .system-status-egress dl { grid-template-columns: 1fr; gap: 12px; margin-top: 15px; }
  .system-status-overview { align-items: flex-start; padding: 11px; }
  .system-status-overview > span { font-size: 10px; }
  .system-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-metrics, .system-detail-grid { gap: 8px; }.system-metric { padding: 12px; }.system-metric strong { font-size: 18px; }
  .system-detail-grid { grid-template-columns: 1fr; }.system-status-foot { padding: 10px 16px; }
  .system-status-events h3 { flex-wrap: wrap; }
}
@media (max-width: 380px) { .system-metric { padding: 10px; }.system-metric strong { font-size: 16px; }.system-status-egress-ip { font-size: 23px; } }
