:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --panel: #14171a;
  --panel-2: #191d22;
  --text: #f8f7f2;
  --muted: #8e949d;
  --muted-2: #6f7680;
  --line: rgba(255, 255, 255, 0.1);
  --green: #09c98b;
  --red: #ff4b62;
  --cyan: #22a7f2;
  --orange: #ff7a1a;
  --yellow: #ffd166;
  --pink: #ff4fb8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(34, 167, 242, 0.1) 0%, transparent 34%),
    linear-gradient(245deg, rgba(255, 122, 26, 0.09) 0%, transparent 32%),
    linear-gradient(180deg, #101215 0%, #0d0f12 42%, #090a0c 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.72;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button {
  font: inherit;
}

.shell {
  width: min(1420px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 32px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 0 0 12px;
}

.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;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.8vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 0;
  color: #a8aeb7;
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  line-height: 1.55;
}

.hero-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill,
.refresh {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  background: rgba(20, 23, 26, 0.56);
  backdrop-filter: blur(14px);
  font-size: 0.82rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 11px;
  white-space: nowrap;
}

.tiny-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 75, 98, 0.55);
  animation: led-red 1.45s ease-in-out infinite;
}

.status-pill.is-live .tiny-led {
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(9, 201, 139, 0.6);
  animation-name: led-green;
}

.refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 12px;
  cursor: pointer;
  transition: transform 220ms var(--ease), border-color 220ms ease, background 220ms ease;
}

.refresh:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(29, 34, 39, 0.86);
}

.refresh:focus-visible,
.person-button:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.roster-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 38px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    linear-gradient(135deg, #0d0e10, #15181c 52%, #0d0e10);
  box-shadow: var(--shadow);
}

.panel-glow {
  display: none;
}

.people-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 28px);
  align-items: start;
}

.person {
  min-width: 0;
  text-align: center;
  animation: rise 620ms var(--ease) both;
}

.person-button {
  appearance: none;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.avatar-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(138px, 11.2vw, 180px);
  height: clamp(154px, 12vw, 196px);
  margin: 0 auto 2px;
  isolation: isolate;
  transform-style: preserve-3d;
}

.avatar-stage::before {
  display: none;
}

.avatar-stage::after {
  display: none;
}

.avatar-wrap {
  --agent: #22a7f2;
  --agent-2: #ff7a1a;
  position: relative;
  width: clamp(106px, 9vw, 140px);
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  transform: translateY(-5px);
  transition: transform 340ms var(--ease);
}

.avatar-wrap::before {
  display: none;
}

.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--agent) 44%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--agent) 70%, #ffffff 8%), color-mix(in srgb, var(--agent-2) 62%, #ffffff 10%));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.28);
  z-index: -1;
}

.avatar {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: #111;
}

.avatar-rim {
  position: absolute;
  inset: -7px;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(from 210deg, rgba(255, 255, 255, 0.2), var(--agent), var(--agent-2), rgba(255, 255, 255, 0.72), var(--agent));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  opacity: 0.58;
}

.hair-extension {
  position: absolute;
  top: 18%;
  z-index: 1;
  width: 27%;
  height: 88%;
  pointer-events: none;
  background:
    radial-gradient(circle at 44% 12%, rgba(255, 232, 148, 0.8), transparent 18%),
    linear-gradient(166deg, #f6c85f 0%, #bf7430 42%, #6a3417 78%, #32150c 100%);
  filter: drop-shadow(0 12px 13px rgba(0, 0, 0, 0.38));
  opacity: 0.96;
}

.hair-left {
  left: 7%;
  border-radius: 84% 22% 52% 70%;
  clip-path: polygon(58% 0, 100% 18%, 74% 100%, 20% 96%, 0 38%);
  transform: rotate(8deg);
}

.hair-right {
  right: 7%;
  border-radius: 22% 84% 70% 52%;
  clip-path: polygon(0 18%, 42% 0, 100% 38%, 80% 96%, 26% 100%);
  transform: rotate(-8deg);
}

.status-dot {
  position: absolute;
  right: 4px;
  bottom: 6px;
  z-index: 5;
  width: clamp(12px, 1.1vw, 15px);
  height: clamp(12px, 1.1vw, 15px);
  border-radius: 50%;
  border: 2px solid #171a1d;
  background: var(--red);
  box-shadow: 0 0 9px rgba(255, 75, 98, 0.72);
  animation: dot-red 1.55s ease-in-out infinite;
}

.person.is-online .status-dot {
  background: var(--green);
  box-shadow: 0 0 10px rgba(9, 201, 139, 0.76);
  animation-name: dot-green;
}

.person-button:hover .avatar-wrap,
.person-button:focus-visible .avatar-wrap {
  transform: translateY(-6px) scale(1.018);
}

.person-button:hover .avatar-stage::before,
.person-button:focus-visible .avatar-stage::before {
  display: none;
}

.person-button:hover .avatar-wrap::before,
.person-button:focus-visible .avatar-wrap::before {
  display: none;
}

.person h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.14;
}

.person-role {
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.device-row {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 14px;
  min-height: 92px;
}

.device {
  position: relative;
  flex: 0 0 auto;
  --device-glow: color-mix(in srgb, var(--agent) 28%, transparent);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.28));
  transition: transform 260ms var(--ease), filter 260ms ease;
}

.person-button:hover .device {
  transform: translateY(-3px);
  filter: drop-shadow(0 17px 20px rgba(0, 0, 0, 0.34));
}

.device-phone {
  width: 39px;
  height: 76px;
  border-radius: 15px;
  padding: 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(221, 229, 238, 0.72) 18%, rgba(91, 101, 112, 0.92) 48%, rgba(22, 25, 31, 0.98)),
    linear-gradient(135deg, color-mix(in srgb, var(--agent) 24%, #eef6ff), color-mix(in srgb, var(--agent-2) 18%, #1a1d24));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.78),
    inset 0 -5px 10px rgba(0, 0, 0, 0.3),
    0 0 22px var(--device-glow);
}

.device-phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 13px;
  height: 4px;
  border-radius: 999px;
  background: rgba(7, 10, 15, 0.56);
  transform: translateX(-50%);
}

.device-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 2;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  transform: translateX(-50%);
}

.device-laptop {
  width: 90px;
  height: 66px;
  padding: 6px 8px 13px;
  border-radius: 12px 12px 8px 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(224, 232, 241, 0.72) 20%, rgba(88, 98, 111, 0.92) 50%, rgba(21, 24, 30, 0.98)),
    linear-gradient(135deg, color-mix(in srgb, var(--agent) 20%, #edf7ff), color-mix(in srgb, var(--agent-2) 16%, #181b22));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.74),
    inset 0 -5px 10px rgba(0, 0, 0, 0.3),
    0 0 22px var(--device-glow);
}

.device-laptop::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
}

.device-laptop::after {
  content: "";
  position: absolute;
  left: -7px;
  right: -7px;
  bottom: 0;
  height: 9px;
  border-radius: 5px 5px 12px 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 18% 82%, rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, #d9e0e8, #69717c 54%, #3b414b);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.screen {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(160deg, #12171d, #05070a);
  color: #303742;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 -10px 18px rgba(0, 0, 0, 0.18);
}

.screen-copy {
  position: relative;
  z-index: 1;
  font-size: 0;
}

.screen-glint {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.2), transparent 62%);
  transform: translateX(-78%);
  opacity: 0;
}

.device.is-online .screen {
  background:
    radial-gradient(circle at 38% 24%, rgba(255, 255, 255, 0.36), transparent 20%),
    linear-gradient(135deg, color-mix(in srgb, var(--agent) 18%, #1af2a3), color-mix(in srgb, var(--agent-2) 22%, #16b7ff));
  color: rgba(2, 12, 11, 0.9);
  text-shadow: 0 1px rgba(255, 255, 255, 0.24);
  animation: screen-glow 1.8s ease-in-out infinite;
}

.device.is-online .screen-copy {
  font-size: 6px;
}

.device-laptop.is-online .screen-copy {
  font-size: 9px;
}

.device.is-online .screen-glint {
  opacity: 1;
  animation: screen-glint 2.4s ease-in-out infinite;
}

.device-label {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  color: rgba(142, 148, 157, 0.72);
  font-size: 0.68rem;
  white-space: nowrap;
}

/* Clean device illustration reset */
.device-row {
  gap: 10px;
  min-height: 62px;
}

.device {
  --device-glow: color-mix(in srgb, var(--agent) 24%, transparent);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.26));
}

.person-button:hover .device {
  transform: translateY(-2px);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.3));
}

.device-phone {
  width: 28px;
  height: 54px;
  padding: 4px;
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(156, 169, 184, 0.7) 35%, rgba(34, 39, 48, 0.96)),
    linear-gradient(135deg, var(--agent), var(--agent-2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -4px 7px rgba(0, 0, 0, 0.32),
    0 0 14px var(--device-glow);
}

.device-phone::before {
  top: 7px;
  width: 9px;
  height: 2px;
  background: rgba(5, 8, 12, 0.58);
}

.device-phone::after {
  bottom: 6px;
  width: 8px;
  height: 2px;
  background: rgba(255, 255, 255, 0.24);
}

.device-laptop {
  width: 58px;
  height: 40px;
  padding: 5px 6px 9px;
  border-radius: 8px 8px 6px 6px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(151, 164, 179, 0.68) 38%, rgba(31, 36, 45, 0.96)),
    linear-gradient(135deg, var(--agent), var(--agent-2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -4px 7px rgba(0, 0, 0, 0.3),
    0 0 14px var(--device-glow);
}

.device-laptop::before {
  display: none;
}

.device-laptop::after {
  left: -5px;
  right: -5px;
  bottom: 0;
  height: 6px;
  border-radius: 4px 4px 9px 9px;
  background: linear-gradient(180deg, #d5dce5, #68717d 60%, #3b424c);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
}

.screen {
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(160deg, #11161d, #05070a);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -8px 14px rgba(0, 0, 0, 0.16);
}

.device.is-online .screen {
  background:
    radial-gradient(circle at 38% 24%, rgba(255, 255, 255, 0.32), transparent 22%),
    linear-gradient(135deg, color-mix(in srgb, var(--agent) 16%, #19eaa0), color-mix(in srgb, var(--agent-2) 18%, #17b8f7));
  animation: screen-glow 2.2s ease-in-out infinite;
}

.device-phone.is-online .screen-copy {
  font-size: 0;
}

.device-laptop.is-online .screen-copy {
  font-size: 6px;
  letter-spacing: 0.14em;
}

.device-label {
  bottom: -16px;
  color: rgba(142, 148, 157, 0.62);
  font-size: 0.58rem;
}

.empty {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-shell[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(14px);
  cursor: pointer;
  animation: fade 180ms ease both;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 30% 0%, rgba(34, 167, 242, 0.12), transparent 36%),
    linear-gradient(150deg, rgba(27, 31, 36, 0.98), rgba(12, 14, 17, 0.96));
  box-shadow: var(--shadow);
  animation: modal-in 260ms var(--ease) both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.modal-top {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.modal-avatar {
  --agent: #22a7f2;
  --agent-2: #ff7a1a;
  position: relative;
  width: 116px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: visible;
  border: 2px solid color-mix(in srgb, var(--agent) 42%, rgba(255, 255, 255, 0.16));
  background: linear-gradient(135deg, var(--agent), var(--agent-2));
  box-shadow: 0 0 40px color-mix(in srgb, var(--agent) 30%, transparent);
}

.modal-avatar img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.modal-avatar .avatar-rim {
  inset: -6px;
  z-index: 4;
}

.modal-avatar .hair-extension {
  z-index: 1;
}

.modal-avatar .status-dot {
  right: 5px;
  bottom: 5px;
  width: 14px;
  height: 14px;
  border-color: #12171d;
}

.modal-avatar.is-online .status-dot {
  background: var(--green);
  box-shadow: 0 0 10px rgba(9, 201, 139, 0.76);
  animation-name: dot-green;
}

.modal-top h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

#modal-subtitle {
  margin: 0;
  color: var(--muted);
}

.modal-devices {
  display: grid;
  gap: 12px;
}

.modal-device {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.modal-device h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.modal-device dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
}

.modal-device dt {
  color: var(--muted);
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.modal-device dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dot-green {
  0%,
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 7px rgba(9, 201, 139, 0.58), 0 0 0 0 rgba(9, 201, 139, 0.34);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(9, 201, 139, 0.86), 0 0 0 7px rgba(9, 201, 139, 0);
  }
}

@keyframes dot-red {
  0%,
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 7px rgba(255, 75, 98, 0.56), 0 0 0 0 rgba(255, 75, 98, 0.34);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255, 75, 98, 0.86), 0 0 0 7px rgba(255, 75, 98, 0);
  }
}

@keyframes led-green {
  70% {
    box-shadow: 0 0 0 10px rgba(9, 201, 139, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(9, 201, 139, 0);
  }
}

@keyframes led-red {
  70% {
    box-shadow: 0 0 0 10px rgba(255, 75, 98, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 75, 98, 0);
  }
}

@keyframes screen-glow {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 14px rgba(9, 201, 139, 0.16);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 0 28px rgba(9, 201, 139, 0.42);
  }
}

@keyframes screen-glint {
  0%,
  42% {
    transform: translateX(-84%);
  }
  72%,
  100% {
    transform: translateX(84%);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1180px) {
  .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 560px);
    padding-top: 14px;
  }

  .hero,
  .hero-side {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-side {
    justify-content: flex-start;
  }

  .status-pill,
  .refresh {
    width: 100%;
    justify-content: center;
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 34px;
  }

  .roster-panel {
    padding: 24px 14px 34px;
    border-radius: 20px;
  }

  .device-row {
    gap: 8px;
    min-height: 54px;
  }

  .device-phone {
    width: 28px;
    height: 54px;
  }

  .device-laptop {
    width: 58px;
    height: 40px;
  }

  .device-label {
    display: none;
  }

  .modal-shell {
    padding: 12px;
  }

  .modal-top {
    grid-template-columns: 82px 1fr;
    gap: 14px;
  }

  .modal-avatar {
    width: 82px;
  }

  .modal-device {
    grid-template-columns: 1fr;
  }

  .modal-device dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 28px;
  }

  .avatar-stage {
    width: 132px;
    height: 142px;
  }

  .avatar-wrap {
    width: 104px;
  }

  .person h3 {
    font-size: 0.95rem;
  }

  .person-role {
    min-height: 2em;
    margin-bottom: 8px;
    font-size: 0.72rem;
  }

  .status-dot {
    right: 2px;
    bottom: 5px;
  }
}

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