.traffic-monitor {
  margin-bottom: 20px;
}
.monitor-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.monitor-header { gap: 12px; }
.monitor-sound, .monitor-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: .83rem;
  font-weight: 600;
}
.monitor-sound .icon { width: 16px; height: 16px; }
.monitor-sound[aria-pressed=false] .monitor-waves { opacity: .35; }
.monitor-sound[aria-pressed=true] {
  color: #244b3a;
  border-color: #b7cfc0;
  background: linear-gradient(150deg,#fcfffd,#e0ece5);
}
.monitor-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.17fr);
}
.monitor-config, .monitor-deliveries { min-width: 0; padding: 21px 22px; }
.monitor-config { border-right: 1px solid var(--line,#e1e2e6); }
.monitor-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.monitor-section-head h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 620;
  letter-spacing: -.025em;
}
.monitor-limit, .monitor-feed-status {
  color: #686c76;
  font-size: .77rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.monitor-feed-status[data-state=live] { color: #3c785b; }
.monitor-feed-status[data-state=delayed] { color: #8e652b; }
.monitor-form-line {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: stretch;
  gap: 6px;
}
.monitor-type {
  position: relative;
  display: inline-flex;
  min-width: 0;
  align-items: center;
}
.monitor-type select {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-height: 37px;
  border: 1px solid #cfd1d7;
  border-radius: 9px;
  background: linear-gradient(145deg,#fff,#eff0f3);
  color: #363940;
  padding: 0 22px 0 9px;
  font: inherit;
  font-size: .845rem;
  cursor: pointer;
}
.monitor-type > .icon {
  position: absolute;
  right: 6px;
  width: 12px;
  height: 12px;
  transform: rotate(90deg);
  pointer-events: none;
}
.monitor-input-wrap { min-width: 0; padding-inline: 9px; }
.monitor-input-wrap input { width: 100%; min-width: 0; }
.monitor-add { min-height: 37px; padding-inline: 14px; border-radius: 10px; }
.monitor-hint, .monitor-feedback, .monitor-placeholder {
  margin: 8px 0 0;
  color: #676a73;
  font-size: .81rem;
  line-height: 1.5;
}
.monitor-feedback:empty { display: none; }
.monitor-feedback.error { color: #925323; }
.monitor-saved {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
}
.monitor-target {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  gap: 6px;
  align-items: center;
  padding: 3px 3px 3px 9px;
  border: 1px solid #dadddf;
  border-radius: 999px;
  background: linear-gradient(140deg,#f9fafb,#eff0f3);
  font-size: .81rem;
}
.monitor-target > .icon { width: 13px; height: 13px; color: #686e79; }
.monitor-target > span { overflow-wrap: anywhere; }
.monitor-target .icon-button {
  width: 26px;
  height: 26px;
  min-height: 26px;
  border-radius: 50%;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.monitor-target .icon-button .icon { width: 13px; height: 13px; }
.monitor-target .icon-button:hover { background: #e4e6ea; }
.monitor-matches { min-height: 100px; }
.monitor-empty {
  display: grid;
  align-content: center;
  min-height: 100px;
  padding-block: 6px;
}
.monitor-empty strong { font-size: .89rem; font-weight: 570; color: #40434a; }
.monitor-empty p { margin: 4px 0 0; color: #676a73; font-size: .81rem; line-height: 1.5; }
.monitor-records {
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
}
.monitor-records table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.monitor-records th, .monitor-records td {
  padding: 8px 8px 8px 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.monitor-records th:last-child, .monitor-records td:last-child { padding-right: 0; }
.monitor-records th:nth-child(1) { width: 40%; }
.monitor-records th:nth-child(2) { width: 31%; }
.monitor-records th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #6e727b;
  background: #fff;
  font-size: .75rem;
  font-weight: 540;
}
.monitor-records td {
  border-top: 1px solid #e7e8eb;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}
.monitor-notification {
  position: fixed;
  z-index: 10;
  top: max(76px, calc(env(safe-area-inset-top,0px) + 64px));
  right: max(16px, env(safe-area-inset-right,0px));
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(372px, calc(100vw - 32px));
  padding: 13px 12px 13px 14px;
  border: 1px solid #c3c7ceb5;
  border-radius: 18px;
  background: linear-gradient(143deg,#fffefeff,#f4f5f8f2 60%,#e6e8edea);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 1px #fff,0 6px 28px #30344126;
}
.monitor-notification .monitor-note-copy { min-width: 0; flex: 1; }
.monitor-notification strong { display: block; font-size: .89rem; line-height: 1.35; }
.monitor-notification p { margin: 3px 0 0; color: #5b606a; font-size: .79rem; line-height: 1.4; overflow-wrap: anywhere; }
.monitor-notification .text-link { width: fit-content; min-height: 26px; }
.monitor-notification .icon-button { min-height: 32px; width: 32px; height: 32px; }
@media (max-width:1120px) and (min-width:801px), (max-width:680px) {
  .monitor-body { grid-template-columns: minmax(0,1fr); }
  .monitor-config { border-right: 0; border-bottom: 1px solid var(--line,#e1e2e6); }
}
@media (max-width:600px) {
  .monitor-config,.monitor-deliveries { padding: 16px; }
  .monitor-sound, .monitor-add, .monitor-input-wrap input, .monitor-type select { min-height: 41px; }
  .monitor-input-wrap input { font-size: 1rem; }
  .monitor-target .icon-button { width: 32px; height: 32px; }
  .monitor-notification { top: 65px; }
}
