.lv {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--ink-3);
}
.lv.is-crit {
  background: var(--crit);
}
.lv.is-warn {
  background: var(--warn);
  border-radius: 2px;
  transform: rotate(45deg) scale(.85);
}
.lv.is-ok {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink-3);
}
.nav-badge.is-crit {
  background: var(--crit-tint);
  color: var(--crit);
}
.nav-item.is-current .nav-badge.is-crit {
  background: var(--crit-tint);
  color: var(--crit);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--crit) 40%, transparent);
}
.alert-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  white-space: nowrap;
  margin-top: 6px;
}
.alert-live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
.alert-live.is-off .dot {
  background: var(--ink-3);
}
.sig {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.sig > div {
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 12px;
}
.sig > div:last-child {
  border-right: none;
}
.sig .lbl {
  grid-column: 1 / -1;
  color: var(--ink-3);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: 7px;
}
.sig .lbl .lv {
  width: 8px;
  height: 8px;
}
.sig .val {
  font-weight: 600;
  font-size: var(--fs-3xl);
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.sig .val small {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}
.sig .val.is-crit {
  color: var(--crit);
}
.sig .val.is-warn {
  color: var(--warn);
}
.sig .val.is-none {
  color: var(--ink-3);
}
.sig .sub {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  text-align: right;
  white-space: nowrap;
}
.sig .bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  width: min(150px, 100%);
  justify-self: end;
}
.sig .bars i {
  flex: 1;
  background: color-mix(in oklab, var(--ink-3) 35%, transparent);
  border-radius: 1px 1px 0 0;
  min-height: 2px;
}
.sig .bars i.c {
  background: var(--crit);
}
.sig .bars i.w {
  background: var(--warn);
}
.seg-range .cnt {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  margin-left: 4px;
}
.seg-range button[aria-checked=true] .cnt {
  color: var(--ink-2);
}
.seg-range button .lv {
  width: 8px;
  height: 8px;
  margin-right: 6px;
  vertical-align: 0;
}
.seg-range.is-sm {
  height: 28px;
}
.seg-range.is-sm button {
  padding: 0 9px;
}
.ach {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ac {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px 0 7px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  background: var(--surface);
}
.ac .lv {
  width: 8px;
  height: 8px;
}
.ac .v {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.ac .th {
  color: var(--ink-3);
  font-family: "JetBrains Mono", monospace;
  font-size: var(--fs-xs);
}
.ac.is-crit {
  background: var(--crit-tint);
  color: var(--crit);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--crit) 35%, transparent);
}
.ac.is-crit .th {
  color: color-mix(in oklab, var(--crit) 70%, var(--ink-3));
}
.ac.is-warn {
  background: var(--warn-tint);
  color: var(--warn);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--warn) 35%, transparent);
}
.ac.is-warn .th {
  color: color-mix(in oklab, var(--warn) 70%, var(--ink-3));
}
.alert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
}
.alert-table tbody tr {
  cursor: pointer;
}
.alert-table tbody tr:hover td {
  background: var(--sunken);
}
.alert-table tr.is-offline td {
  color: var(--ink-3);
}
.alert-table tr.is-offline .fleet-row-name {
  color: var(--ink-2);
}
.alert-table .dash,
.dash {
  color: var(--ink-3);
  font-size: var(--fs-sm);
}
.alert-empty {
  padding: 30px 16px 32px;
  text-align: center;
  color: var(--ink-3);
  font-size: var(--fs-md);
  line-height: 1.6;
}
.alert-empty b {
  display: block;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 2px;
}
.alert-empty .lv {
  display: block;
  margin: 0 auto 10px;
  width: 14px;
  height: 14px;
}
.panel-foot.is-center {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.tl {
  list-style: none;
  margin: 0;
  padding: 6px 0 4px;
}
.tl .day {
  padding: 8px 16px 4px 60px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  letter-spacing: .06em;
}
.tl li.ev {
  display: grid;
  grid-template-columns: 44px 16px minmax(0, 200px) minmax(0, 1fr) auto;
  gap: 0 10px;
  align-items: center;
  padding: 7px 16px;
  position: relative;
}
.tl li.ev::before {
  content: "";
  position: absolute;
  left: calc(16px + 44px + 10px + 7px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.tl li.ev:hover {
  background: var(--sunken);
}
.tl .t {
  color: var(--ink-3);
  font-size: var(--fs-sm);
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.tl .lv {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  box-shadow: 0 0 0 3px var(--surface);
}
.tl .lv.is-ok {
  box-shadow: inset 0 0 0 1.5px var(--ink-3), 0 0 0 3px var(--surface);
}
.tl .d {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tl .d .link-btn {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-md);
}
.tl .x {
  color: var(--ink-2);
  font-size: var(--fs-md);
  min-width: 0;
}
.tl .x b {
  color: var(--ink);
  font-weight: 600;
}
.tl .x .n {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.tl .s {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  white-space: nowrap;
}
.tl .s.is-fast {
  color: var(--ink-2);
}
.rule-head,
.rule {
  display: grid;
  grid-template-columns: min(160px, 100%) minmax(0, 1fr) min(110px, 100%);
  gap: 0 20px;
  padding: 14px 16px;
}
.rule-head {
  padding: 8px 16px;
  background: var(--sunken);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .04em;
}
.rule-head .r {
  text-align: right;
}
.rule {
  border-top: 1px solid var(--line);
  align-items: start;
}
.rule:first-child {
  border-top: none;
}
.rule.is-off > :not(.rname) {
  opacity: .45;
}
.rname {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.rname .sw-wrap {
  margin-top: 2px;
}
.rname b {
  display: block;
  font-weight: 600;
  font-size: var(--fs-md);
}
.rname small {
  display: block;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  margin-top: 2px;
  line-height: 1.4;
}
.sw-wrap {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  vertical-align: middle;
}
.sw-wrap:has(.sw-input:disabled) {
  opacity: .45;
  cursor: not-allowed;
}
.scale {
  display: grid;
  gap: 6px;
}
.scale .track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--sunken);
}
.scale .track i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 3px;
}
.scale .track .w {
  background: var(--warn-tint);
}
.scale .track .c {
  background: var(--crit-tint);
}
.scale .track em {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 16px;
  margin-left: -1px;
  border-radius: 1px;
}
.scale .track em.w {
  background: var(--warn);
}
.scale .track em.c {
  background: var(--crit);
}
.scale .ins {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.scale .ins .lv {
  width: 7px;
  height: 7px;
}
.num-in {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.num-in .form-control {
  width: 64px;
  height: 28px;
  min-height: 0;
  padding: 0 6px;
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--fs-sm);
}
.num-in .u {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  white-space: nowrap;
}
.rmid {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.rmid .hint {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.rmid .hint b {
  font-weight: 600;
  color: var(--ink-2);
}
.ract {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
@media (max-width: 1000px) {
  .rule {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .rule-head {
    display: none;
  }
  .ract {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
  .sig {
    grid-template-columns: minmax(0, 1fr);
  }
  .sig > div {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .sig > div:last-child {
    border-bottom: none;
  }
  .tl li.ev {
    grid-template-columns: 44px 16px minmax(0, 1fr);
  }
  .tl .d,
  .tl .x,
  .tl .s {
    grid-column: 3;
  }
}
#view-settings .settings-control.is-stack {
  flex-direction: column;
  align-items: stretch;
}
.rmid .rpend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  min-height: 28px;
}
.rmid .rpend .seg-range {
  flex: none;
}
.seg-range button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.recips {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.recips[hidden] {
  display: none;
}
.recips li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-md);
  min-width: 0;
}
.recips li:first-child {
  border-top: none;
}
.recips .av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  flex: none;
}
.recips .who {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recips .who small {
  color: var(--ink-3);
  margin-left: 6px;
}
.recips .rm {
  flex: none;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--ink-3);
  font-size: var(--fs-lg);
  line-height: 1;
  cursor: pointer;
}
.recips .rm:hover:not(:disabled) {
  background: var(--hover);
  color: var(--ink);
}
.recips .rm:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.scoped {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-2xs);
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: var(--sunken);
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
  white-space: nowrap;
}
.alert-behalf {
  display: flex;
  gap: 10px 14px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--accent-tint);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.6;
}
.alert-behalf[hidden] {
  display: none;
}
.alert-behalf b {
  font-weight: 600;
}
.alert-callout {
  margin: 12px 16px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  background: var(--sunken);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.6;
}
.alert-callout[hidden] {
  display: none;
}
.alert-callout b {
  font-weight: 600;
  color: var(--ink);
}
.alert-callout.is-warn {
  border-color: var(--warn);
  background: var(--warn-tint);
  color: var(--ink);
}
.alert-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  height: 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--ink-3);
  white-space: nowrap;
  vertical-align: middle;
  background: var(--surface);
  letter-spacing: 0;
}
.alert-tag[hidden] {
  display: none;
}
.alert-tag.is-preview {
  border-style: dashed;
  color: var(--warn);
  border-color: var(--warn);
}
.route-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-md);
}
.route-matrix th {
  padding: 8px 12px;
  background: var(--sunken);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .04em;
  text-align: left;
  white-space: nowrap;
}
.route-matrix td {
  padding: 12px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.route-matrix tbody tr:first-child td {
  border-top: 0;
}
.route-matrix .c-ch {
  width: 92px;
  text-align: center;
}
.route-matrix th.c-ch .alert-tag {
  display: flex;
  width: max-content;
  margin: 4px auto 0;
}
.route-matrix .c-when {
  width: 34%;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.route-ev {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}
.route-ev .lv {
  margin-top: 6px;
}
.route-ev b {
  display: block;
  font-weight: 600;
}
.route-ev small {
  display: block;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  line-height: 1.5;
  margin-top: 1px;
}
.route-matrix tr.is-mute td:first-child b {
  color: var(--ink-3);
}
.route-mute-note {
  display: none;
  color: var(--warn);
  font-size: var(--fs-xs);
  margin-top: 2px;
  line-height: 1.5;
}
.route-matrix tr.is-mute .route-mute-note {
  display: block;
}
.route-settings {
  border-top: 1px solid var(--line);
}
.recips-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
@media (max-width: 767px) {
  .route-matrix .c-when {
    display: none;
  }
  .route-matrix .c-ch {
    width: 64px;
  }
  .route-matrix td,
  .route-matrix th {
    padding: 10px 8px;
  }
}
