:root {
  --bg: #06111b;
  --panel: rgba(10, 24, 36, 0.88);
  --surface: #0d1d2a;
  --surface-2: #102334;
  --border: rgba(151, 194, 218, 0.13);
  --text: #eef7fd;
  --muted: #8ca7b9;
  --accent: #ff925d;
  --cyan: #56d7df;
  --green: #7bdd7a;
  --violet: #b29cff;
  --red: #ff776f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(59, 143, 177, 0.14), transparent 26rem),
    radial-gradient(circle at 92% 16%, rgba(255, 146, 93, 0.08), transparent 24rem),
    linear-gradient(180deg, #07131e 0%, var(--bg) 58%, #07131d 100%);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.dashboard-locked {
  overflow: hidden;
}

.dashboard-locked .page {
  opacity: 0.18;
  filter: blur(12px);
  pointer-events: none;
  user-select: none;
}

.access-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 25%, rgba(86, 215, 223, 0.12), transparent 23rem),
    rgba(4, 13, 21, 0.88);
  backdrop-filter: blur(18px);
}

.access-gate[hidden] {
  display: none;
}

.access-card {
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid rgba(86, 215, 223, 0.19);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(16, 39, 55, 0.98), rgba(7, 19, 29, 0.98));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
}

.access-card h1 {
  margin-bottom: 12px;
  font-size: clamp(26px, 6vw, 34px);
}

.access-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(86, 215, 223, 0.25);
  border-radius: 15px;
  background: rgba(86, 215, 223, 0.09);
  color: var(--cyan);
  font: 600 24px "IBM Plex Mono", monospace;
}

.access-password {
  display: grid;
  gap: 8px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-password input {
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: rgba(4, 13, 21, 0.72);
  color: var(--text);
  font: 500 15px "IBM Plex Mono", monospace;
}

.access-password input:focus {
  border-color: rgba(86, 215, 223, 0.55);
  box-shadow: 0 0 0 3px rgba(86, 215, 223, 0.09);
}

.access-card > button {
  width: 100%;
  min-height: 48px;
  margin-top: 13px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), #70b8ef);
  color: #06131d;
  font-weight: 700;
  cursor: pointer;
}

.access-card > button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.access-error {
  min-height: 19px;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 12px;
  text-align: center;
}

button,
input {
  font: inherit;
}

.page {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 330px);
  gap: 26px;
  padding: 28px;
}

.theme-control {
  grid-column: 1 / -1;
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 600 11px "IBM Plex Mono", monospace;
  cursor: pointer;
  user-select: none;
}

.theme-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.theme-switch-track {
  position: relative;
  width: 42px;
  height: 23px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  transition: background 160ms ease, border-color 160ms ease;
}

.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.25);
  transition: transform 160ms ease, background 160ms ease;
}

.theme-control input:checked + .theme-switch-track {
  border-color: rgba(86, 215, 223, 0.32);
  background: rgba(86, 215, 223, 0.1);
}

.theme-control input:checked + .theme-switch-track .theme-switch-thumb {
  transform: translateX(19px);
  background: var(--cyan);
}

.theme-control input:focus-visible + .theme-switch-track {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Sora", "IBM Plex Sans", sans-serif;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 9px;
  font-size: clamp(29px, 5vw, 42px);
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 21px;
}

.subtle {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.server-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(151, 194, 218, 0.12);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(24, 48, 66, 0.72), rgba(9, 22, 33, 0.75));
}

.server-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-line div {
  display: grid;
  gap: 2px;
}

.server-label,
.metric-top,
th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.server-line strong {
  font: 600 18px "Sora", sans-serif;
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(123, 221, 122, 0.09), 0 0 20px rgba(123, 221, 122, 0.48);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 10px rgba(123, 221, 122, 0.03), 0 0 26px rgba(123, 221, 122, 0.66);
  }
}

.server-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font: 500 12px "IBM Plex Mono", monospace;
}

.lock-dashboard {
  justify-self: start;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(5, 15, 24, 0.45);
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.lock-dashboard:hover {
  border-color: rgba(86, 215, 223, 0.25);
  color: var(--cyan);
}

.preview-notice {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -28px -28px;
  padding: 11px 28px;
  border-top: 1px solid rgba(255, 146, 93, 0.13);
  border-radius: 0 0 24px 24px;
  background: rgba(255, 146, 93, 0.055);
  color: #b8cad6;
  font-size: 12px;
}

.preview-notice[hidden] {
  display: none;
}

.preview-notice span {
  padding: 4px 7px;
  border: 1px solid rgba(255, 146, 93, 0.25);
  border-radius: 999px;
  color: var(--accent);
  font: 600 9px "IBM Plex Mono", monospace;
  letter-spacing: 0.13em;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 20px 22px;
}

.range-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(4, 13, 21, 0.5);
}

.range-btn {
  min-width: 76px;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: 160ms ease;
}

.range-btn:hover {
  color: var(--text);
}

.range-btn.active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(151, 194, 218, 0.12);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 16px;
}

.metric-card {
  min-height: 158px;
  padding: 19px;
}

.metric-live {
  background:
    radial-gradient(circle at 88% 15%, rgba(86, 215, 223, 0.12), transparent 7rem),
    var(--panel);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-icon {
  color: var(--green);
  font-size: 15px;
}

.metric-icon.neutral {
  color: var(--cyan);
}

.metric-icon.accent {
  color: var(--accent);
}

.metric-icon.violet {
  color: var(--violet);
}

.metric-card > strong {
  display: block;
  margin: 20px 0 9px;
  font: 600 36px/1 "IBM Plex Mono", monospace;
}

.metric-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.trend {
  margin-right: 4px;
  font-weight: 600;
}

.trend.up {
  color: var(--green);
}

.chart-panel {
  margin-top: 16px;
  padding: 24px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-heading.compact h2 {
  font-size: 19px;
}

.legend {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend i {
  display: inline-block;
  width: 20px;
}

.legend-line {
  height: 2px;
  background: var(--cyan);
}

.legend-area {
  height: 8px;
  border-radius: 3px;
  background: rgba(86, 215, 223, 0.13);
}

.online-users-summary {
  margin-top: 22px;
  padding: 17px;
  border: 1px solid rgba(86, 215, 223, 0.14);
  border-radius: 16px;
  background: rgba(6, 22, 32, 0.5);
}

.online-users-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.online-users-heading h3 {
  margin: 3px 0 0;
  font-size: 16px;
}

.online-users-count {
  padding: 6px 10px;
  border: 1px solid rgba(89, 224, 160, 0.18);
  border-radius: 999px;
  background: rgba(89, 224, 160, 0.08);
  color: var(--green);
  font: 600 11px "IBM Plex Mono", monospace;
}

.online-users-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.online-user-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(151, 194, 218, 0.1);
  border-radius: 12px;
  background: rgba(8, 25, 37, 0.72);
}

.online-user-avatar {
  flex: 0 0 auto;
}

.online-user-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.online-user-details strong,
.online-user-details > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-user-details strong {
  color: var(--text);
  font-size: 13px;
}

.online-user-details > span {
  color: var(--muted);
  font: 500 11px "IBM Plex Mono", monospace;
}

.online-user-details .online-server-only {
  align-self: flex-start;
  margin-top: 3px;
  padding: 4px 7px;
  border: 1px solid rgba(245, 181, 78, 0.2);
  border-radius: 999px;
  background: rgba(245, 181, 78, 0.08);
  color: #f5b54e;
  font: 600 10px "IBM Plex Mono", monospace;
}

.online-users-empty {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.chart-wrap {
  position: relative;
  height: 370px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(151, 194, 218, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(rgba(151, 194, 218, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 194, 218, 0.035) 1px, transparent 1px),
    rgba(6, 17, 27, 0.38);
  background-size: 100% 25%, 12.5% 100%;
}

#activityChart {
  width: 100%;
  height: 100%;
}

.chart-grid {
  stroke: rgba(151, 194, 218, 0.12);
  stroke-width: 1;
}

.chart-label {
  fill: #7893a7;
  font: 500 11px "IBM Plex Mono", monospace;
}

.chart-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 9px rgba(86, 215, 223, 0.25));
}

.chart-area {
  fill: url("#areaGradient");
}

.chart-point {
  fill: #0c1d2a;
  stroke: var(--cyan);
  stroke-width: 3;
  cursor: pointer;
  transition: r 120ms ease;
}

.chart-point:hover,
.chart-point.active {
  r: 8;
  fill: var(--cyan);
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 105px;
  padding: 9px 11px;
  border: 1px solid rgba(86, 215, 223, 0.24);
  border-radius: 10px;
  background: rgba(5, 15, 24, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  color: var(--muted);
  font: 500 11px/1.45 "IBM Plex Mono", monospace;
}

.chart-tooltip strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 0.95fr;
  gap: 15px;
  margin-top: 16px;
}

.insight-card {
  min-height: 260px;
  padding: 21px;
}

.badge,
.healthy {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
}

.healthy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
}

.healthy i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.donut-layout {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  margin-top: 25px;
}

.donut {
  --registered-percent: 74%;
  display: grid;
  width: 136px;
  height: 136px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--cyan) 0 var(--registered-percent),
    rgba(255, 146, 93, 0.28) var(--registered-percent) 100%
  );
  box-shadow: 0 0 32px rgba(86, 215, 223, 0.08);
}

.donut::before {
  content: "";
  position: absolute;
  width: 101px;
  height: 101px;
  border-radius: 50%;
  background: #0a1925;
}

.donut div {
  position: relative;
  z-index: 1;
  display: grid;
  text-align: center;
}

.donut strong {
  font: 600 25px "IBM Plex Mono", monospace;
}

.donut span {
  color: var(--muted);
  font-size: 10px;
}

.donut-legend {
  min-width: 115px;
}

.donut-legend > div {
  display: grid;
  gap: 5px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(151, 194, 218, 0.08);
}

.donut-legend span {
  color: var(--muted);
  font-size: 11px;
}

.donut-legend strong {
  padding-left: 15px;
  font: 600 17px "IBM Plex Mono", monospace;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
}

.dot.registered {
  background: var(--cyan);
}

.dot.guest {
  background: var(--accent);
}

.bar-list {
  display: grid;
  gap: 19px;
  margin-top: 27px;
}

.bar-row > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.bar-row strong {
  color: var(--text);
  font: 500 12px "IBM Plex Mono", monospace;
}

.bar-track {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(151, 194, 218, 0.08);
}

.bar-track i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #71b5ef);
}

.version-list {
  display: grid;
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(151, 194, 218, 0.09);
  border-radius: 14px;
  background: rgba(151, 194, 218, 0.08);
}

.version-list > div {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: #0b1a27;
}

.version-list span {
  font: 500 12px "IBM Plex Mono", monospace;
}

.version-list strong {
  color: var(--muted);
  font-size: 12px;
}

.version-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.sessions-panel {
  margin-top: 16px;
  overflow: hidden;
}

.sessions-heading {
  align-items: center;
  padding: 23px;
  border-bottom: 1px solid var(--border);
}

.session-filter-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-modes {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(5, 15, 24, 0.52);
}

.filter-mode,
.repeat-toggle {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 600 10px "IBM Plex Mono", monospace;
  cursor: pointer;
}

.filter-mode {
  padding: 8px 10px;
}

.repeat-toggle {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
}

.filter-mode:hover,
.repeat-toggle:hover,
.filter-mode.active,
.repeat-toggle.active {
  background: rgba(86, 215, 223, 0.1);
  color: var(--cyan);
}

.filter-mode:focus-visible,
.repeat-toggle:focus-visible,
.session-value-button:focus-visible,
.active-session-filter button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(270px, 100%);
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(5, 15, 24, 0.52);
  color: var(--muted);
}

.filter-summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 23px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 15, 24, 0.28);
  color: var(--muted);
  font: 500 10px "IBM Plex Mono", monospace;
}

.active-session-filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 70%;
  padding: 6px 8px 6px 11px;
  border: 1px solid rgba(86, 215, 223, 0.22);
  border-radius: 999px;
  background: rgba(86, 215, 223, 0.08);
  color: var(--cyan);
}

.active-session-filter[hidden] {
  display: none;
}

.active-session-filter span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-session-filter button {
  border: 0;
  border-radius: 999px;
  background: rgba(86, 215, 223, 0.13);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.search-box input::placeholder {
  color: #688294;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(151, 194, 218, 0.075);
  text-align: left;
  white-space: nowrap;
}

td {
  color: #c4d5df;
  font-size: 12px;
}

tbody tr {
  transition: background 150ms ease;
}

tbody tr:hover {
  background: rgba(86, 215, 223, 0.035);
}

.nickname {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.server-only-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 146, 93, 0.17);
  border-radius: 999px;
  background: rgba(255, 146, 93, 0.08);
  color: var(--accent);
  font: 600 9px "IBM Plex Mono", monospace;
  white-space: nowrap;
}

.room-history-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  margin-left: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(86, 215, 223, 0.18);
  border-radius: 999px;
  background: rgba(86, 215, 223, 0.07);
  color: var(--cyan);
  font: 600 9px "IBM Plex Mono", monospace;
  cursor: pointer;
  white-space: nowrap;
}

.room-history-toggle:hover {
  background: rgba(86, 215, 223, 0.13);
}

.room-history-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.room-history-row[hidden] {
  display: none;
}

.room-history-row td {
  padding: 0 10px 14px;
  background: rgba(86, 215, 223, 0.025);
  white-space: normal;
}

.room-history-panel {
  padding: 14px 16px;
  border: 1px solid rgba(86, 215, 223, 0.12);
  border-radius: 13px;
  background: rgba(5, 18, 28, 0.48);
}

.room-history-title {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 11px;
}

.room-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.room-history-list li {
  display: flex;
  min-width: 180px;
  align-items: flex-start;
  gap: 8px;
}

.room-history-list li > div {
  display: grid;
  gap: 3px;
}

.room-history-list strong {
  color: var(--text);
  font-size: 11px;
}

.room-history-list span {
  color: var(--muted);
  font: 500 10px "IBM Plex Mono", monospace;
}

.room-history-dot {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(86, 215, 223, 0.08);
}

.online-user-details .online-current-room {
  margin-top: 3px;
  color: var(--cyan);
}

.session-value-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.session-value-button:hover {
  color: var(--cyan);
}

.client-status-indicator {
  display: inline-block;
  margin-right: 6px;
  font-size: 10px;
  line-height: 1;
  vertical-align: 1px;
}

.ip-value {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
}

.ip-geo-cell {
  min-width: 210px;
  white-space: normal;
}

.ip-line {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.ip-flag {
  font-size: 17px;
  line-height: 1;
}

.geo-location,
.geo-provider {
  display: block;
  max-width: 210px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-provider {
  margin-top: 2px;
  color: #7391a5;
  font-family: "IBM Plex Mono", monospace;
}

.ip-repeat-count {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 146, 93, 0.1);
  color: var(--accent);
  font: 600 9px "IBM Plex Mono", monospace;
}

.avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(86, 215, 223, 0.18);
  border-radius: 10px;
  background: rgba(86, 215, 223, 0.08);
  color: var(--cyan);
  font: 600 11px "IBM Plex Mono", monospace;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
}

.account-pill.registered {
  background: rgba(86, 215, 223, 0.09);
  color: var(--cyan);
}

.account-pill.guest {
  background: rgba(255, 146, 93, 0.09);
  color: var(--accent);
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

.time-cell {
  color: #a9bdca;
  font: 500 11px "IBM Plex Mono", monospace;
}

.still-online {
  color: var(--green);
}

.empty-state {
  margin: 0;
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 5px 0;
  color: #688294;
  font-size: 11px;
}

html[data-theme="light"] {
  --bg: #edf4f7;
  --panel: rgba(255, 255, 255, 0.9);
  --surface: #f4f8fa;
  --surface-2: #e3edf2;
  --border: rgba(42, 82, 101, 0.16);
  --text: #17303d;
  --muted: #607b8a;
  --accent: #c75d2b;
  --cyan: #087f8b;
  --green: #278451;
  --violet: #7259c5;
  --red: #c7423b;
  --shadow: 0 20px 55px rgba(52, 82, 98, 0.14);
  color-scheme: light;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 8% 0%, rgba(69, 155, 181, 0.13), transparent 26rem),
    radial-gradient(circle at 92% 16%, rgba(221, 119, 72, 0.09), transparent 24rem),
    linear-gradient(180deg, #f7fafb 0%, var(--bg) 58%, #e9f1f4 100%);
}

html[data-theme="light"] .access-gate {
  background:
    radial-gradient(circle at 50% 25%, rgba(8, 127, 139, 0.1), transparent 23rem),
    rgba(238, 245, 247, 0.9);
}

html[data-theme="light"] .access-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(237, 245, 248, 0.99));
  box-shadow: 0 28px 70px rgba(52, 82, 98, 0.22);
}

html[data-theme="light"] .access-password input,
html[data-theme="light"] .lock-dashboard,
html[data-theme="light"] .filter-modes,
html[data-theme="light"] .search-box,
html[data-theme="light"] .filter-summary {
  background: rgba(232, 241, 245, 0.72);
}

html[data-theme="light"] .server-card {
  background: linear-gradient(145deg, rgba(234, 244, 247, 0.9), rgba(248, 251, 252, 0.94));
}

html[data-theme="light"] .preview-notice {
  background: rgba(199, 93, 43, 0.06);
  color: var(--muted);
}

html[data-theme="light"] .range-switch,
html[data-theme="light"] .online-users-summary {
  background: rgba(229, 239, 243, 0.65);
}

html[data-theme="light"] .online-user-card,
html[data-theme="light"] .version-list > div,
html[data-theme="light"] .room-history-panel {
  background: rgba(255, 255, 255, 0.84);
}

html[data-theme="light"] .room-history-row td {
  background: rgba(8, 127, 139, 0.025);
}

html[data-theme="light"] .chart-wrap {
  background:
    linear-gradient(rgba(42, 82, 101, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 82, 101, 0.055) 1px, transparent 1px),
    rgba(240, 246, 248, 0.68);
  background-size: 100% 25%, 12.5% 100%;
}

html[data-theme="light"] .chart-label {
  fill: #607b8a;
}

html[data-theme="light"] .chart-point {
  fill: #f6fafb;
}

html[data-theme="light"] .chart-tooltip {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(52, 82, 98, 0.18);
}

html[data-theme="light"] .donut::before {
  background: #f8fbfc;
}

html[data-theme="light"] td,
html[data-theme="light"] .time-cell {
  color: #3f5e6e;
}

html[data-theme="light"] .still-online {
  color: var(--green);
}

html[data-theme="light"] .geo-provider,
html[data-theme="light"] footer,
html[data-theme="light"] .search-box input::placeholder {
  color: #607b8a;
}

@media (max-width: 980px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .insights-grid {
    grid-template-columns: 1fr 1fr;
  }

  .versions-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .panel {
    border-radius: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 21px;
  }

  .preview-notice {
    margin: 0 -21px -21px;
    padding: 11px 21px;
    border-radius: 0 0 18px 18px;
  }

  .toolbar,
  .section-heading,
  .sessions-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .range-switch {
    width: 100%;
    justify-content: flex-start;
  }

  .range-btn {
    flex: 1 1 calc(33.333% - 5px);
    min-width: 84px;
  }

  .metrics,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .versions-card {
    grid-column: auto;
  }

  .chart-panel {
    padding: 19px 12px;
  }

  .legend {
    margin-top: 8px;
  }

  .chart-wrap {
    height: 300px;
  }

  .chart-footer,
  footer {
    flex-direction: column;
  }

  .sessions-heading {
    padding: 19px;
  }

  .session-filter-tools {
    justify-content: stretch;
  }

  .filter-modes {
    flex: 1 1 100%;
  }

  .filter-mode {
    flex: 1;
  }

  .repeat-toggle {
    flex: 1;
  }

  .search-box {
    flex: 2;
    width: auto;
  }

  .filter-summary {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 19px;
  }

  .active-session-filter {
    max-width: 100%;
  }
}

@media (max-width: 430px) {
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .metric-card {
    min-height: 142px;
    padding: 15px;
  }

  .metric-card > strong {
    font-size: 29px;
  }

  .metric-top {
    font-size: 9px;
  }

  .donut-layout {
    justify-content: space-between;
  }

  .server-meta {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
