:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #071015;
  color: #edf7f5;
}

* {
  box-sizing: border-box;
}

html,
body,
#graph {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background:
    radial-gradient(circle at 12% 20%, rgba(41, 190, 174, 0.18), transparent 24rem),
    radial-gradient(circle at 82% 70%, rgba(240, 184, 75, 0.13), transparent 28rem),
    #071015;
}

.hud {
  position: fixed;
  left: 28px;
  top: 24px;
  width: min(420px, calc(100vw - 56px));
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(4, 12, 17, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.eyebrow {
  margin: 0 0 6px;
  color: #68d8cc;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 12px;
}

.stats span {
  min-width: 0;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(237, 247, 245, 0.74);
  font-size: 13px;
}

.stats strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
}

.event-control {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.event-control span {
  color: rgba(237, 247, 245, 0.74);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.event-control select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(7, 16, 21, 0.92);
  color: #edf7f5;
  font: inherit;
}

#status {
  min-height: 20px;
  margin: 0;
  color: rgba(237, 247, 245, 0.74);
  font-size: 14px;
}

.profile {
  position: fixed;
  right: 28px;
  bottom: 24px;
  width: min(360px, calc(100vw - 56px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(4, 12, 17, 0.78);
  backdrop-filter: blur(16px);
}

.people-panel {
  position: fixed;
  right: 28px;
  top: 24px;
  width: min(360px, calc(100vw - 56px));
  max-height: calc(100vh - 210px);
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(4, 12, 17, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-header .eyebrow {
  margin: 0;
}

#coverage {
  color: #ffffff;
  font-size: 15px;
}

.people-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 300px);
  overflow: auto;
  padding-right: 4px;
}

.person-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.person-row:hover {
  border-color: rgba(104, 216, 204, 0.5);
  background: rgba(104, 216, 204, 0.11);
}

.person-avatar,
.person-avatar img,
.person-avatar span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
}

.person-avatar img {
  object-fit: cover;
}

.person-avatar span {
  background: linear-gradient(135deg, #1c897f, #f0b84b);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.person-text {
  min-width: 0;
}

.person-text strong,
.person-text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-text strong {
  font-size: 15px;
}

.person-text small {
  margin-top: 3px;
  color: rgba(237, 247, 245, 0.64);
  font-size: 12px;
}

.person-degree {
  min-width: 30px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(240, 184, 75, 0.16);
  color: #f0d394;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.empty {
  margin: 0;
  color: rgba(237, 247, 245, 0.72);
}

.profile h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.profile-photo {
  width: 72px;
  height: 72px;
  margin: 0 0 12px;
  border: 2px solid rgba(104, 216, 204, 0.78);
  border-radius: 50%;
  object-fit: cover;
}

.profile p {
  margin: 6px 0;
  color: rgba(237, 247, 245, 0.76);
}

@media (max-width: 720px) {
  .hud {
    left: 14px;
    top: 14px;
    width: calc(100vw - 28px);
    padding: 12px;
  }

  .people-panel {
    display: none;
  }

  h1 {
    font-size: 24px;
    line-height: 1.1;
  }

  .eyebrow {
    font-size: 11px;
  }

  .stats {
    gap: 6px;
    margin: 12px 0 10px;
  }

  .stats span {
    padding: 8px;
    font-size: 11px;
  }

  .stats strong {
    font-size: 20px;
  }

  .event-control {
    margin-bottom: 8px;
  }

  .event-control select {
    min-height: 34px;
    font-size: 14px;
  }

  #status {
    font-size: 12px;
  }
}
