:root {
  --bg: #0c0e0d;
  --surface: #141715;
  --surface-strong: #1b1f1c;
  --surface-soft: #101311;
  --text: #f4f5ef;
  --muted: #939b92;
  --line: #2b312d;
  --accent: #21d6b2;
  --accent-soft: rgba(33, 214, 178, 0.13);
  --warning: #e8bf55;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
  font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="search"] {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface-soft);
  border-radius: 6px;
}

button {
  min-height: 40px;
  padding: 8px 14px;
  font-weight: 650;
  cursor: pointer;
}

button:hover {
  border-color: #4b5750;
  background: #202521;
}

button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.75;
}

select,
input[type="search"] {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  outline: none;
}

.shell {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 30px clamp(14px, 3vw, 34px) 46px;
}

.topbar {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-bottom: 22px;
  text-align: center;
}

.brand-kicker,
.section-kicker,
.control-heading p,
.now p {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: 0;
}

.scroll-actions {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 20;
  display: grid;
  gap: 9px;
}

.scroll-jump {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
  border-color: rgba(33, 214, 178, 0.38);
  color: var(--accent);
  background: rgba(16, 19, 17, 0.9);
  border-radius: 50%;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.scroll-jump span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 22px;
  line-height: 1;
}

.scroll-jump:hover {
  border-color: rgba(33, 214, 178, 0.68);
  color: var(--text);
  background: rgba(33, 214, 178, 0.2);
}

.studio {
  display: grid;
  justify-items: center;
}

.stage-stack {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(800px, 100%);
}

.stage-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  justify-items: center;
  align-items: center;
  gap: 13px;
  width: min(520px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
}

.stage-card.transparent-preview {
  background-color: #171a18 !important;
  background-image:
    linear-gradient(45deg, #222724 25%, transparent 25%, transparent 75%, #222724 75%),
    linear-gradient(45deg, #222724 25%, transparent 25%, transparent 75%, #222724 75%) !important;
  background-position: 0 0, 12px 12px !important;
  background-size: 24px 24px !important;
}

.stage-fullscreen {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  min-height: 34px;
  padding: 6px 11px;
  border-color: rgba(255, 255, 255, 0.18);
  color: #f4f5ef;
  background: rgba(12, 14, 13, 0.82);
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.avatar-wrap {
  --energy: 0;
  --scale: 1;
  --lift: 0px;
  --squash: 1;
  --tilt: 0deg;
  --glow: 0.2;
  position: relative;
  display: grid;
  place-items: center;
  width: min(310px, 70%);
  aspect-ratio: 1;
  transform: translateY(var(--lift)) rotate(var(--tilt)) scale(var(--scale), calc(var(--scale) * var(--squash)));
  transition: transform 80ms linear;
}

.avatar-wrap[data-voice-state="idle"] {
  animation: idle-breathe 3.4s ease-in-out infinite;
}

.avatar-wrap[data-voice-state="talking"] .avatar {
  animation: talking-mouth 180ms ease-in-out infinite alternate;
}

.avatar-wrap[data-voice-state="loud"] .avatar {
  animation: loud-pop 160ms ease-out;
}

.avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 88%;
  height: 88%;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.45));
}

.pulse-ring {
  position: absolute;
  z-index: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  transform-origin: center;
}

.pulse-ring-outer {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(33, 214, 178, calc(0.1 + var(--energy) * 0.3));
  box-shadow: 0 0 calc(6px + var(--energy) * 14px) rgba(33, 214, 178, calc(var(--glow) * 0.18));
  transform: scale(calc(0.96 + var(--energy) * 0.055));
}

.avatar-wrap[data-voice-state="talking"] .pulse-ring-outer {
  animation: ring-talk 520ms ease-in-out infinite alternate;
}

.avatar-wrap[data-voice-state="loud"] .pulse-ring-outer {
  animation: ring-talk 220ms ease-out;
}

.pulse-ring-inner {
  inset: 8%;
  width: 84%;
  height: 84%;
  border: 2px solid rgba(33, 214, 178, calc(0.34 + var(--energy) * 0.58));
  box-shadow:
    0 0 calc(8px + var(--energy) * 18px) rgba(33, 214, 178, calc(var(--glow) * 0.42)),
    inset 0 0 calc(10px + var(--energy) * 14px) rgba(33, 214, 178, calc(var(--glow) * 0.34));
  transform: scale(calc(0.98 + var(--energy) * 0.035));
}

.avatar-wrap[data-voice-state="talking"] .pulse-ring-inner {
  animation: ring-talk 420ms ease-in-out infinite alternate-reverse;
}

.avatar-wrap[data-voice-state="loud"] .pulse-ring-inner {
  animation: ring-talk 180ms ease-out;
}

@keyframes idle-breathe {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -2px;
  }
}

@keyframes talking-mouth {
  from {
    transform: translateY(0) scaleY(1);
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.45));
  }
  to {
    transform: translateY(-1px) scaleY(1.025);
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.48));
  }
}

@keyframes loud-pop {
  0% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.075, 0.965);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes ring-talk {
  from {
    opacity: 0.78;
  }
  to {
    opacity: 1;
  }
}

.now {
  min-width: 0;
  text-align: center;
}

.now h2 {
  max-width: min(420px, 80vw);
  margin: 3px 0 2px;
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 720;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.72),
    0 0 18px rgba(0, 0, 0, 0.38);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-card.light-background .now h2 {
  color: #101311;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 12px rgba(255, 255, 255, 0.62);
}

.meter {
  width: min(310px, 74%);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.meter div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.control-panel {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.control-heading,
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.control-heading {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.control-heading h2 {
  margin: 3px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.mic-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.mic-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
}

.mic-status.active span {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.mic-status.error span {
  background: #ef6d7d;
}

.control-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.control-group {
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
  padding: 15px 18px 17px;
}

.control-group + .control-group {
  border-left: 1px solid var(--line);
}

.group-title {
  margin: 0 0 1px;
  color: #c8cec7;
  font-size: 13px;
  font-weight: 700;
}

.appearance-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.appearance-row .field {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.appearance-row .field > span {
  display: block;
  color: #b3bab2;
  font-size: 12px;
  font-weight: 650;
}

.field {
  display: grid;
  align-content: end;
  gap: 6px;
  min-width: 0;
}

.field > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.field output {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.background-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 52px;
  gap: 7px;
}

.drive-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.drive-mode button {
  min-height: 38px;
  padding: 7px 10px;
  color: #cdd4cc;
  background: var(--surface-soft);
  font-size: 12px;
}

.drive-mode button.selected {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(33, 214, 178, 0.22);
}

.color-picker {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  cursor: pointer;
}

.color-picker input {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.image-picker {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #d9ddd6;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.image-picker:hover {
  border-color: #4b5750;
  background: #202521;
}

.image-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.range-field input {
  width: 100%;
  accent-color: var(--accent);
}

.response-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.response-actions button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 12px;
}

.library {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.library-tools {
  display: grid;
  grid-template-columns: minmax(110px, 130px) minmax(190px, 320px) minmax(120px, 140px);
  gap: 9px;
  width: min(640px, 58vw);
}

.library-toolbar .search,
.library-toolbar .sort-control,
.library-toolbar .source-control {
  min-width: 0;
}

.stats {
  margin-top: 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
}

.search input {
  padding-left: 38px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23939b92' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 9px;
}

.load-more-btn {
  justify-self: center;
  min-width: min(280px, 100%);
  min-height: 42px;
  margin-top: 4px;
  padding: 10px 18px;
  border-color: rgba(33, 214, 178, 0.38);
  color: #e8ece5;
  background: rgba(33, 214, 178, 0.12);
  font-size: 13px;
  font-weight: 750;
}

.load-more-btn:hover {
  border-color: var(--accent);
  color: #ffffff;
  background: rgba(33, 214, 178, 0.2);
}

.load-more-btn[hidden] {
  display: none;
}

.avatar-tile {
  position: relative;
  min-width: 0;
}

.avatar-choice {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  height: 126px;
  min-height: 126px;
  padding: 12px 8px 10px;
  background: var(--surface);
}

.avatar-choice:hover {
  border-color: #465149;
  background: var(--surface-strong);
}

.avatar-choice.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.avatar-choice.selected::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.avatar-tile.has-style-label .avatar-choice {
  height: 142px;
  min-height: 142px;
}

.avatar-tile.has-style-label .avatar-choice img {
  width: 70px;
  height: 70px;
}

.custom-upload-choice {
  border-style: dashed;
  color: #d9ddd6;
}

.custom-upload-choice:hover {
  border-color: var(--accent);
  background: rgba(33, 214, 178, 0.12);
}

.custom-upload-choice.is-busy {
  cursor: wait;
  opacity: 0.72;
}

.avatar-choice .upload-avatar-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 76px;
  min-width: 76px;
  max-width: 76px;
  height: 76px;
  min-height: 76px;
  max-height: 76px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px dashed rgba(33, 214, 178, 0.48);
  border-radius: 50%;
  color: var(--accent);
  background: #090b0a;
  font-size: 34px;
  font-weight: 450;
  line-height: 1;
}

.avatar-choice .upload-avatar-label {
  display: block;
}

.avatar-choice img {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: contain;
  background: #090b0a;
}

.avatar-choice span {
  width: 100%;
  overflow: hidden;
  color: #d9ddd6;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-choice em {
  width: 100%;
  margin-top: -5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-avatar-menu {
  position: fixed;
  z-index: 80;
  display: grid;
  min-width: 112px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(16, 19, 17, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
}

.custom-avatar-menu[hidden] {
  display: none;
}

.custom-avatar-menu button {
  min-height: 34px;
  padding: 8px 13px;
  border: 0;
  border-radius: 0;
  color: #f4f5ef;
  background: transparent;
  font-size: 13px;
  text-align: left;
}

.custom-avatar-menu button:hover {
  color: #ffffff;
  background: rgba(33, 214, 178, 0.18);
}

.custom-avatar-menu button:last-child:hover {
  background: rgba(179, 45, 45, 0.58);
}

.custom-rename-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(5px);
}

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

.custom-rename-box {
  display: grid;
  gap: 12px;
  width: min(340px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
}

.custom-rename-box h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.custom-rename-box input {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface-soft);
  outline: none;
}

.custom-rename-box input:focus {
  border-color: var(--accent);
}

.custom-rename-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.custom-rename-actions button[type="submit"] {
  border-color: rgba(33, 214, 178, 0.46);
  color: #ffffff;
  background: rgba(33, 214, 178, 0.2);
}

.custom-avatar-picker {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #d9ddd6;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.custom-avatar-picker[hidden] {
  display: none;
}

.custom-avatar-picker.is-busy {
  cursor: wait;
  opacity: 0.72;
}

.custom-avatar-picker:hover {
  border-color: #4b5750;
  background: #202521;
}

.custom-avatar-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.resource-section {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.resource-heading {
  display: grid;
  gap: 7px;
  max-width: 780px;
}

.resource-heading h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
}

.resource-heading p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.resource-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  gap: 10px;
  min-height: 198px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(33, 214, 178, 0.14), transparent 32%),
    linear-gradient(145deg, var(--surface), var(--surface-soft));
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  border-color: rgba(33, 214, 178, 0.55);
  background:
    radial-gradient(circle at 18% 0%, rgba(33, 214, 178, 0.2), transparent 34%),
    linear-gradient(145deg, var(--surface-strong), var(--surface-soft));
}

.resource-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.resource-card h3 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.1;
}

.resource-card p {
  margin: 0;
  color: #b9c0b8;
  font-size: 13px;
  line-height: 1.65;
}

.resource-link {
  align-self: end;
  margin-top: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.stage-card:fullscreen,
.stage-card.avatar-fullscreen {
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.stage-card:fullscreen .now,
.stage-card:fullscreen .meter,
.stage-card:fullscreen .stage-fullscreen,
.stage-card.avatar-fullscreen .now,
.stage-card.avatar-fullscreen .meter,
.stage-card.avatar-fullscreen .stage-fullscreen {
  display: none;
}

.stage-card:fullscreen .avatar-wrap,
.stage-card.avatar-fullscreen .avatar-wrap {
  width: min(82vmin, 900px);
  transform: translateY(calc(var(--lift) + 3vmin)) rotate(var(--tilt)) scale(var(--scale), calc(var(--scale) * var(--squash)));
}

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

@media (max-width: 820px) {
  .control-group {
    padding-inline: 14px;
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 22px 12px 34px;
  }

  .topbar {
    margin-bottom: 16px;
  }

  .stage-card {
    padding: 18px;
  }

  .avatar-wrap {
    width: 68%;
  }

  .control-heading,
  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .control-heading {
    gap: 10px;
  }

  .mic-status {
    align-self: flex-start;
  }

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

  .control-group + .control-group {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .library-toolbar .search {
    width: 100%;
  }

  .library-tools {
    grid-template-columns: 1fr;
    width: 100%;
  }

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

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

  .avatar-choice {
    height: 112px;
    min-height: 112px;
    padding: 10px 5px 8px;
  }

  .avatar-tile.has-style-label .avatar-choice {
    height: 126px;
    min-height: 126px;
  }

  .avatar-tile.has-style-label .avatar-choice img {
    width: 62px;
    height: 62px;
  }

  .avatar-choice img {
    width: 66px;
    height: 66px;
  }

  .avatar-choice .upload-avatar-icon {
    width: 66px;
    min-width: 66px;
    max-width: 66px;
    height: 66px;
    min-height: 66px;
    max-height: 66px;
  }

  .scroll-actions {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }

  .scroll-jump {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 380px) {
  .avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-wrap {
    transition: none;
    animation: none !important;
  }

  .avatar,
  .pulse-ring {
    animation: none !important;
  }
}
