:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-strong: #f1f5f9;
  --glass: rgba(255, 255, 255, 0.72);
  --text: #17212b;
  --muted: #6b7280;
  --line: rgba(148, 163, 184, 0.28);
  --primary: #0a84ff;
  --primary-strong: #0067d8;
  --accent: #00a6b4;
  --amber: #c58b2c;
  --danger: #d92d20;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.09);
  --soft-shadow: 0 10px 34px rgba(15, 23, 42, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% -10%, rgba(10, 132, 255, 0.14), transparent 36%),
    radial-gradient(circle at 98% 8%, rgba(0, 166, 180, 0.12), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", ui-sans-serif, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: 0;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.primary {
  background: linear-gradient(180deg, #2a9bff, var(--primary));
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.24);
}

.primary:hover {
  background: var(--primary-strong);
}

.secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset, 0 8px 20px rgba(15, 23, 42, 0.04);
}

.secondary:hover {
  border-color: rgba(10, 132, 255, 0.28);
  background: #ffffff;
}

.danger {
  background: #fff4f2;
  color: var(--danger);
  border-color: #ffd4cc;
}

.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 14px 0 14px 14px;
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(24px);
  overflow-x: hidden;
}

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

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(180deg, #eaf6ff, #dff6f8);
  color: #0a6470;
  box-shadow: 0 10px 22px rgba(10, 132, 255, 0.14);
  font-weight: 800;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  color: #51606c;
  border-color: transparent;
  border-radius: 14px;
}

.nav-button:hover,
.nav-button.active {
  background: rgba(10, 132, 255, 0.1);
  color: #0b4f93;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c2410c;
}

.status-dot.live {
  background: #18a058;
}

.main {
  min-width: 0;
  padding: 30px;
  position: relative;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 760;
}

h2 {
  font-size: 16px;
  line-height: 1.35;
}

.topbar p {
  margin-top: 6px;
  color: var(--muted);
}

.top-actions,
.inline-actions,
.player-controls,
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metrics-grid article {
  min-height: 92px;
  padding: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.metrics-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metrics-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.toast {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 8px;
  color: #155e75;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.toolbar {
  margin-bottom: 12px;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  text-transform: none;
}

input:focus,
select:focus {
  outline: 3px solid rgba(10, 132, 255, 0.16);
  border-color: rgba(10, 132, 255, 0.44);
}

.split,
.replay-layout,
.settings-grid {
  display: grid;
  gap: 14px;
}

.split {
  grid-template-columns: minmax(580px, 1.45fr) minmax(330px, 0.55fr);
}

.replay-layout {
  grid-template-columns: minmax(460px, 1fr) 380px;
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid .full {
  grid-column: 1 / -1;
}

.panel {
  min-width: 0;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow: auto;
}

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

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.table-panel th:nth-child(2),
.table-panel td:nth-child(2) {
  max-width: 150px;
  overflow-wrap: anywhere;
}

.table-panel th:nth-child(3),
.table-panel td:nth-child(3) {
  max-width: 160px;
  overflow-wrap: anywhere;
}

.table-panel th:nth-child(4),
.table-panel td:nth-child(4) {
  max-width: 210px;
  overflow-wrap: anywhere;
}

.table-panel th:nth-child(6),
.table-panel td:nth-child(6) {
  min-width: 128px;
}

.table-panel th:last-child,
.table-panel td:last-child {
  width: 74px;
  text-align: center;
}

.cell-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr {
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

tbody tr:hover,
tbody tr.selected {
  background: rgba(10, 132, 255, 0.075);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #284149;
  font-size: 12px;
  font-weight: 700;
}

.visitor-toolbar {
  align-items: end;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.date-pill {
  min-height: 36px;
  padding: 0 12px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.date-pill span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.switch-label {
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  text-transform: none;
  color: var(--text);
}

.switch-label input {
  inline-size: 42px;
  block-size: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  opacity: 0.01;
  cursor: pointer;
  grid-area: 1 / 1;
  z-index: 2;
}

.switch-label span {
  position: relative;
  grid-area: 1 / 1;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d7dde4;
  transition: background 160ms ease;
}

.switch-label span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.2);
  transition: transform 160ms ease;
}

.switch-label input:checked + span {
  background: var(--primary);
}

.switch-label input:checked + span::after {
  transform: translateX(18px);
}

.icon-button {
  width: 42px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  color: transparent;
  background: rgba(10, 132, 255, 0.11);
  border-color: rgba(10, 132, 255, 0.2);
}

.icon-button::before {
  content: "";
  display: inline-block;
  margin-left: 2px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #0a65be;
}

.pill.live {
  background: #e7f9ef;
  color: #166534;
}

.pill.warning {
  background: #fff7ed;
  color: #9a5b00;
}

.pill.danger {
  background: #fff1f1;
  color: var(--danger);
}

.detail-panel {
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

.detail-panel .panel-head {
  align-items: flex-start;
}

.detail-panel .inline-actions {
  justify-content: flex-end;
  gap: 8px;
}

.detail-panel .inline-actions button {
  min-height: 34px;
  padding-inline: 11px;
}

.detail-empty,
.session-card {
  padding: 16px;
}

.detail-empty {
  color: var(--muted);
}

.session-card dl {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.session-card dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.session-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.note-form {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
}

.note-form input {
  flex: 1;
}

.timeline {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 16px 16px;
  overflow: auto;
}

.timeline.tall {
  max-height: 564px;
}

.timeline li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.timeline i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef4f5;
  color: #35545d;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline li.active {
  border-color: #5cc7d1;
  background: #effdff;
}

.timeline strong {
  font-size: 13px;
}

.timeline span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.replay-viewport {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  margin: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(10, 132, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(10, 132, 255, 0.055) 1px, transparent 1px),
    #f9fbff;
  background-size: 36px 36px;
  overflow: hidden;
}

.replay-viewport.has-dom-replay {
  display: block;
  background: #ffffff;
}

.dom-replay-mount {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #ffffff;
}

.dom-replay-mount:empty {
  display: none;
}

.dom-replay-mount iframe {
  background: #ffffff;
}

.snapshot-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.dom-replay-mount .rr-player,
.dom-replay-mount .rr-player__frame {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

.cursor {
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 3px solid var(--amber);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: left 180ms ease, top 180ms ease, opacity 180ms ease;
}

.cursor.visible {
  opacity: 1;
}

#replayMessage {
  position: relative;
  z-index: 2;
  max-width: 70%;
  text-align: center;
  color: var(--muted);
}

.replay-viewport.has-dom-replay #replayMessage {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: min(520px, calc(100% - 24px));
  padding: 8px 10px;
  border: 1px solid rgba(203, 216, 220, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #40545c;
  text-align: left;
  box-shadow: 0 8px 24px rgba(23, 39, 45, 0.1);
}

.player-controls {
  padding: 0 16px 16px;
}

#replayRange {
  flex: 1;
  min-width: 170px;
}

.heatmap-frame {
  position: relative;
  min-height: 560px;
  margin: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(#f8fbfc, #f8fbfc) padding-box,
    linear-gradient(120deg, #dce5e8, #b9c9ce) border-box;
  overflow: hidden;
}

.heatmap-point {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(197, 122, 4, 0.26);
  border: 1px solid rgba(197, 122, 4, 0.55);
}

.heatmap-point.rage {
  width: 44px;
  height: 44px;
  background: rgba(180, 35, 24, 0.24);
  border-color: rgba(180, 35, 24, 0.62);
}

.muted-line {
  padding: 0 16px 16px;
  color: var(--muted);
}

.funnel-bars {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 80px;
  align-items: center;
  gap: 12px;
}

.bar {
  height: 18px;
  border-radius: 999px;
  background: #e8eff1;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--primary);
}

pre {
  margin: 0;
  padding: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #203036;
  background: #f7fafb;
}

.filter-drawer {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  padding: 18px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(28px);
  transform: translateX(calc(100% + 38px));
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.filter-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-drawer details {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.filter-drawer summary {
  cursor: pointer;
  color: #2b3945;
  font-weight: 760;
}

.filter-drawer input,
.filter-drawer select {
  width: 100%;
  margin-top: 10px;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.chip-grid button {
  min-width: 0;
  padding: 0 8px;
}

.chip-grid button.selected {
  background: rgba(10, 132, 255, 0.12);
  color: #075ca8;
  border-color: rgba(10, 132, 255, 0.34);
}

.check-list,
.install-list {
  margin: 0;
  padding: 16px 20px 18px 34px;
}

.check-list li,
.install-list li {
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 10px;
    padding: 14px;
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .nav-button {
    text-align: center;
    justify-content: center;
    padding: 0 8px;
  }

  .sidebar-footer {
    display: none;
  }

  .main {
    padding: 16px;
  }

  .metrics-grid,
  .split,
  .replay-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

body[data-view="replays"] .metrics-grid {
  display: none;
}

body[data-view="replays"] .replay-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  align-items: stretch;
}

body[data-view="replays"] .replay-stage-panel {
  background: #fbfcfc;
}

body[data-view="replays"] .replay-viewport {
  min-height: calc(100vh - 250px);
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

body[data-view="replays"] .player-controls {
  padding: 14px 16px;
  background: #ffffff;
}

body[data-view="replays"] .visitor-timeline-panel {
  min-height: calc(100vh - 160px);
}

body[data-view="replays"] .timeline.tall {
  max-height: calc(100vh - 250px);
}

body[data-view="replays"] .panel-head div {
  min-width: 0;
}

body[data-view="replays"] #replayPageTitle,
body[data-view="replays"] #visitorSummary {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  body[data-view="replays"] .replay-layout {
    grid-template-columns: 1fr;
  }

  body[data-view="replays"] .replay-viewport,
  body[data-view="replays"] .visitor-timeline-panel {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .topbar {
    display: grid;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-list {
    display: grid;
    max-width: 100%;
    overflow: visible;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .nav-button {
    min-width: 0;
    padding: 0 4px;
    font-size: 13px;
  }

  .inline-actions {
    width: 100%;
  }

  .inline-actions button {
    flex: 1;
  }
}

/* Visitor-list mode inspired by modern analytics tools. */
.app-shell {
  display: block;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 30px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.04);
}

.brand {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  background: #f0f2f4;
}

.brand-mark {
  display: none;
}

.brand strong::after {
  content: " ▾";
  color: #8b949e;
}

.brand span {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-button {
  width: auto;
  min-height: 34px;
  border-radius: 5px;
  padding: 0 13px;
}

.nav-button.active {
  background: #ffffff;
  border-color: rgba(10, 112, 210, 0.35);
  color: #2b72c9;
}

.sidebar-footer {
  margin-left: auto;
  margin-top: 0;
}

.main {
  padding: 34px 52px 44px;
}

body[data-view="live"] {
  background: #ffffff;
}

body[data-view="live"] .metrics-grid,
body[data-view="live"] .detail-panel {
  display: none;
}

body[data-view="live"] .topbar {
  align-items: flex-start;
  min-height: 180px;
  margin-bottom: 12px;
}

body[data-view="live"] h1 {
  color: #2a3b52;
  font-size: 31px;
  font-weight: 520;
}

body[data-view="live"] .topbar p {
  margin-top: 82px;
  color: #2c3f58;
  font-size: 21px;
}

body[data-view="live"] .split {
  grid-template-columns: 1fr;
}

body[data-view="live"] .panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-view="live"] .panel-head {
  display: none;
}

.visitor-toolbar {
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.visitor-toolbar .secondary,
.visitor-toolbar .date-pill,
.visitor-toolbar input,
.visitor-toolbar select {
  border-radius: 5px;
  background: #f0f1f2;
  box-shadow: none;
}

.visitor-toolbar label {
  color: #2c3f58;
  text-transform: none;
}

.visitor-toolbar label:nth-of-type(3) {
  margin-left: auto;
}

.visitor-toolbar b {
  color: #36a35d;
}

.visitor-toolbar #sessionSearch {
  width: 184px;
}

.visitor-table {
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0 8px;
  table-layout: fixed;
}

.visitor-table thead tr {
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08);
}

.visitor-table th {
  height: 42px;
  border-bottom: 0;
  color: #7a838c;
  font-size: 12px;
  text-transform: none;
}

.table-sort {
  min-height: 24px;
  padding: 0;
  background: transparent;
  color: #7a838c;
  box-shadow: none;
}

.table-sort::after {
  content: " ▼";
  color: #9aa1a8;
}

.visitor-table tbody tr {
  background: #d2d2d3;
  box-shadow: none;
  cursor: pointer;
}

.visitor-table tbody tr:hover,
.visitor-table tbody tr.selected {
  background: #cacbcc;
  outline: 2px solid #f0a23b;
  outline-offset: -2px;
}

.visitor-table tbody tr:focus-visible {
  outline: 3px solid #0a84ff;
  outline-offset: -2px;
}

.visitor-table td {
  height: 68px;
  border-bottom: 0;
  color: #20344d;
}

.visitor-table th:first-child,
.visitor-table td:first-child {
  width: 270px;
  padding-left: 16px;
}

.visitor-table th:nth-child(2),
.visitor-table td:nth-child(2) {
  width: 118px;
}

.visitor-table th:nth-child(3),
.visitor-table td:nth-child(3) {
  width: 66px;
  text-align: center;
}

.visitor-table th:nth-child(4),
.visitor-table td:nth-child(4) {
  width: 72px;
}

.visitor-table th:nth-child(5),
.visitor-table td:nth-child(5) {
  width: 96px;
}

.visitor-table th:nth-child(6),
.visitor-table td:nth-child(6) {
  width: 280px;
}

.visitor-table th:nth-child(7),
.visitor-table td:nth-child(7) {
  width: 110px;
}

.visitor-table th:nth-child(8),
.visitor-table td:nth-child(8) {
  width: 118px;
}

.visitor-table th:nth-child(9),
.visitor-table td:nth-child(9) {
  width: 48px;
}

.visitor-table th:first-child,
.visitor-table td:first-child {
  border-radius: 4px 0 0 4px;
}

.visitor-table th:last-child,
.visitor-table td:last-child {
  border-radius: 0 4px 4px 0;
}

.visitor-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.visitor-name strong,
.visitor-name small {
  display: block;
}

.visitor-name small {
  max-width: 205px;
  margin-top: 3px;
  color: #69747d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitor-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #e6eff8;
  color: #2f6d9f;
  font-weight: 760;
}

.visitor-avatar.mobile {
  background: #dff5f7;
  color: #237386;
}

.visitor-avatar.tablet {
  background: #eee8ff;
  color: #6750a4;
}

.page-count {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 5px;
  background: #f4f6f8;
  font-weight: 760;
}

.event-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  background: #fff7a8;
  color: #6d6200;
  font-size: 12px;
  font-weight: 760;
}

.event-pill.warning {
  background: #ffe7e5;
  color: #b42318;
}

.event-pill.ok {
  background: #e5f8ed;
  color: #1f7a43;
}

.session-seen {
  font-weight: 700;
}

.session-seen.live {
  color: #218748;
}

body[data-view="live"] .icon-button {
  background: transparent;
  border-color: transparent;
}

body[data-view="live"] .icon-button::before {
  border-left-color: #69727a;
}

@media (max-width: 980px) {
  .sidebar {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .main {
    padding: 22px 16px 32px;
  }

  body[data-view="live"] .topbar {
    min-height: 120px;
  }

  body[data-view="live"] .topbar p {
    margin-top: 34px;
    font-size: 18px;
  }

  .visitor-toolbar label:nth-of-type(3) {
    margin-left: 0;
  }
}
