.toast.toast-warning {
  border-color: rgba(232, 163, 61, .55);
  color: var(--dg-warning);
}

.stats-toolbar {
  align-items: flex-end;
  margin-bottom: 18px;
}

.toolbar-label {
  display: block;
  margin-bottom: 6px;
  color: var(--dg-text-muted);
  font-size: 12px;
}

.stats-range {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stats-range .dg-table-action {
  padding: 0 12px;
  cursor: pointer;
}

.stats-range .dg-table-action.is-active {
  border-color: var(--dg-highlight);
  background: var(--dg-highlight-soft);
  color: var(--dg-highlight);
}

.stats-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stats-tile {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--dg-border);
  border-radius: 10px;
  background: var(--dg-panel-raised);
}

.stats-tile span {
  color: var(--dg-text-muted);
  font-size: 12px;
}

.stats-tile strong {
  color: var(--dg-highlight);
  font-size: 24px;
  font-weight: 600;
}

.stats-panel,
.player-ip-section {
  margin-top: 22px;
}

.stats-panel h3,
.player-ip-section h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.dg-chart {
  position: relative;
  width: 100%;
}

.dg-chart__svg {
  display: block;
  width: 100%;
  height: auto;
}

.dg-chart__grid {
  stroke: var(--dg-border-soft);
  stroke-width: 1;
}

.dg-chart__axis {
  fill: var(--dg-text-dim);
  font-size: 11px;
}

.dg-chart__axis--y {
  text-anchor: end;
}

.dg-chart__axis--x {
  text-anchor: middle;
}

.dg-chart__area {
  fill: var(--dg-highlight-soft);
  stroke: none;
}

.dg-chart__line {
  fill: none;
  stroke: var(--dg-highlight);
  stroke-width: 2;
  stroke-linejoin: round;
}

.dg-chart__reference {
  stroke: var(--dg-text-dim);
  stroke-dasharray: 4 4;
}

.dg-chart__marker {
  fill: var(--dg-highlight);
  stroke: var(--dg-panel);
  stroke-width: 2;
}

.dg-chart__capture {
  fill: transparent;
  cursor: crosshair;
  touch-action: pan-y;
}

.dg-chart__point {
  fill: var(--dg-highlight);
  stroke: var(--dg-panel);
  stroke-width: 2;
}

.dg-chart__tooltip {
  position: absolute;
  z-index: 5;
  padding: 6px 9px;
  border: 1px solid rgba(var(--dg-highlight-rgb), .45);
  border-radius: 7px;
  background: var(--dg-panel);
  color: var(--dg-text);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
}

.console-layout { display: grid; gap: 18px; }
.console-servers { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--dg-line); }
.console-server { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: -1px; padding: 0 18px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #c4cdd8; font-size: .92rem; font-weight: 600; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.console-server small { color: var(--dg-text-dim); font-size: .78rem; font-weight: 500; }
.console-server:hover { background: rgba(255, 255, 255, .03); color: #fff; }
.console-server.is-active { border-bottom-color: var(--dg-highlight); color: var(--dg-highlight); }
.console-server__status { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--dg-danger); }
.console-server__status.is-online { background: var(--dg-ok); }
.console-main { display: grid; gap: 18px; }
.console-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.console-head .page-eyebrow { margin-bottom: 4px; }
.console-head h3 { margin: 0 0 2px; color: #fff; font-size: 1.2rem; }
.console-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
.console-grid h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #8d98a8; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.console-grid h4::before { content: ""; width: 3px; height: 12px; border-radius: 999px; background: rgba(0, 206, 220, .72); }
.console-players > div { height: 392px; overflow-y: auto; border: 1px solid var(--dg-line); border-radius: var(--dg-r-lg); background: var(--dg-card); }
.console-players > div > .team-member-empty { padding: 18px 16px; }
.console-player-list { display: grid; margin: 0; padding: 0; list-style: none; }
.console-player-list li { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border-bottom: 1px solid var(--dg-border-soft); transition: background .15s ease; }
.console-player-list li:last-child { border-bottom: 0; }
.console-player-list li:hover { background: rgba(var(--dg-highlight-rgb), .04); }
.console-player-list a { flex: 1; min-width: 0; overflow: hidden; color: #e6eef6; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.console-player-id { color: var(--dg-text-dim); font-size: 12px; }
.console-output { height: 340px; padding: 14px 16px; overflow-y: auto; border: 1px solid var(--dg-line); border-radius: var(--dg-r-lg); background: rgba(8, 11, 16, .65); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.console-line { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 2px 0; }
.console-line time { color: var(--dg-text-dim); }
.console-line--command span { color: var(--dg-highlight); }
.console-line--error span { color: var(--dg-danger); }
.console-input { display: flex; gap: 8px; margin: 10px 0 6px; }
.console-terminal > .user-meta { color: var(--dg-text-dim); font-size: .78rem; line-height: 1.5; }

.console-input input,
.ipban-form input,
.ipban-form select {
  flex: 1;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r-sm);
  background: rgba(255, 255, 255, .045);
  color: var(--dg-text);
}

.console-input input:focus,
.ipban-form input:focus,
.ipban-form select:focus {
  border-color: rgba(var(--dg-highlight-rgb), .55);
  background: rgba(var(--dg-highlight-rgb), .06);
  outline: none;
}

.ipban-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(200px, 2fr) minmax(120px, 160px) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.ipban-form label {
  display: grid;
  gap: 6px;
  color: var(--dg-text-muted);
  font-size: 12px;
}

.ipban-form input { min-height: 42px; }
.ipban-form > button { align-self: end; min-height: 42px; padding: 0 18px; }

.notification-bell-wrap {
  position: relative;
}

.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #b8c2cf;
  font-size: 17px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.notification-bell:hover,
.notification-bell[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, .06);
  background: rgba(8, 13, 20, .45);
  color: #eef5ff;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--dg-highlight);
  color: #061214;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.notification-badge[hidden] {
  display: none;
}

.notification-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 14px);
  right: -4px;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r-lg);
  background: linear-gradient(180deg, rgba(14, 19, 27, .99), rgba(10, 14, 20, .99));
}

.notification-panel[hidden] {
  display: none;
}

.notification-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--dg-border-soft);
}

.notification-panel__action,
.notification-panel__footer {
  border: 0;
  background: transparent;
  color: var(--dg-highlight);
  font-size: 12.5px;
  cursor: pointer;
}

.notification-panel__footer {
  display: block;
  width: 100%;
  padding: 11px;
  border-top: 1px solid var(--dg-border-soft);
}

.notification-panel [data-notification-panel-list] {
  max-height: 380px;
  overflow-y: auto;
}

.notification-panel .team-member-empty { padding: 22px 16px; text-align: center; }
.notification-panel__head strong { color: #fff; font-size: .95rem; }

.notification-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notification-item button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--dg-border-soft);
  background: transparent;
  color: var(--dg-text-muted);
  text-align: left;
  cursor: pointer;
}

.notification-item button:hover {
  background: rgba(255, 255, 255, .04);
}

.notification-item.is-unread button {
  color: var(--dg-text);
}

.notification-item.is-unread i {
  color: var(--dg-highlight);
}

.notification-item__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notification-item__copy span {
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
}

.notification-item__copy time {
  color: var(--dg-text-dim);
  font-size: 11px;
}

.notification-page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

#notifications .notification-list { display: grid; gap: 8px; }
#notifications .notification-item button { padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid transparent; border-radius: 10px; background: rgba(255, 255, 255, .02); }
#notifications .notification-item button:hover { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
#notifications .notification-item.is-unread button { border-left-color: var(--dg-highlight); background: color-mix(in srgb, var(--dg-highlight) 5%, transparent); }
#notifications .notification-item__copy strong { color: #fff; }

.dg-table-empty {
  padding: 24px;
  color: var(--dg-text-muted);
  text-align: center;
}

@media (max-width: 760px) {
  .notification-bell-wrap {
    position: static;
  }

  .notification-panel {
    position: absolute;
    top: auto;
    right: 16px;
    left: 16px;
    width: auto;
    margin-top: 8px;
  }
}

@media (max-width: 960px) {
  .console-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ipban-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
