/* The Soul Session — Premium Design System */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #0e0e18;
  --bg-glass: rgba(255,255,255,0.025);
  --bg-input: rgba(255,255,255,0.04);
  --accent-a: #4285f4;
  --accent-b: #34c759;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #5a5a72;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

/* Light Mode */
body.light {
  --bg-dark: #f5f5fa; --bg-card: #ffffff; --bg-glass: rgba(0,0,0,0.03);
  --text-primary: #1a1a2e; --text-secondary: #5a5a72; --text-muted: #8888a0;
  --border: rgba(0,0,0,0.08);
}
body.light::before { background: radial-gradient(ellipse at 20% 20%, rgba(66,133,244,0.05) 0%, transparent 50%),
  radial-gradient(ellipse at 80% 80%, rgba(52,199,89,0.05) 0%, transparent 50%),
  radial-gradient(ellipse at 50% 50%, rgba(168,85,247,0.03) 0%, transparent 50%); }
body.light .host-image-wrap { background: #e8e8f0; }
body.light .host-image { background: linear-gradient(135deg, rgba(66,133,244,0.05), rgba(168,85,247,0.05)); }
body.light img[src*="logo_apple"] { filter: invert(1); }
body.light img[src*="logo_xai"] { filter: invert(1); }

/* Theme Toggle */
.theme-toggle { position: fixed; bottom: 16px; right: 16px; z-index: 100; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 50px; padding: 8px 14px; cursor: pointer; font-size: 16px; transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.theme-toggle:hover { transform: scale(1.05); border-color: var(--accent-purple); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
@keyframes glow { 0% { box-shadow: 0 0 20px rgba(168,85,247,0.2); } 100% { box-shadow: 0 0 50px rgba(168,85,247,0.5); } }
@keyframes vizBounce { 0% { height: 4px; } 100% { height: 20px; } }
@keyframes bgShift { 0% { opacity: 0.5; } 100% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(66,133,244,0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 90%, rgba(52,199,89,0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(168,85,247,0.04) 0%, transparent 50%);
  animation: bgShift 6s ease-in-out infinite alternate;
}

.container { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 24px 20px; }

/* ===== WIZARD HEADER ===== */
.wizard-header { text-align: center; padding: 20px 0 10px; animation: fadeUp 0.6s ease-out; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--accent-purple); opacity: 0.8; }
.logo-text { font-size: 48px; font-weight: 900; letter-spacing: -2px;
  background: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-purple) 50%, var(--accent-b) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo-text.small { font-size: 30px; letter-spacing: -1px; }
.subtitle { font-size: 15px; color: var(--text-secondary); font-weight: 300; margin-top: 4px; letter-spacing: 0.5px; }

/* ===== STEP INDICATORS ===== */
.steps-bar { display: flex; align-items: center; justify-content: center; gap: 0; padding: 20px 0 24px; animation: fadeUp 0.6s ease-out 0.1s both; }
.step-indicator { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 50px; cursor: pointer; transition: all 0.3s; }
.step-indicator .step-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; border: 2px solid var(--border); color: var(--text-muted); transition: all 0.3s; }
.step-indicator .step-label { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.5px; transition: all 0.3s; }
.step-indicator.active .step-num { background: var(--accent-purple); border-color: var(--accent-purple); color: white; }
.step-indicator.active .step-label { color: var(--text-primary); }
.step-indicator.done .step-num { background: var(--accent-b); border-color: var(--accent-b); color: white; }
.step-indicator.done .step-label { color: var(--accent-b); }
.step-line { width: 40px; height: 2px; background: var(--border); margin: 0 4px; }

/* ===== WIZARD STEPS ===== */
.wizard-step { display: none; animation: fadeUp 0.4s ease-out; }
.wizard-step.active { display: block; }

/* ===== HOST CREATOR GRID ===== */
.hosts-grid { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 0; }

.host-creator { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 32px 28px;
  transition: border-color 0.3s; min-height: 500px; display: flex; flex-direction: column; }
.host-creator:hover { border-color: var(--border-hover); }
.host-a-creator { border-top: 3px solid var(--accent-a); }
.host-b-creator { border-top: 3px solid var(--accent-b); }

.creator-label { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; text-align: center; margin-bottom: 16px; }
.host-a-creator .creator-label { color: var(--accent-a); }
.host-b-creator .creator-label { color: var(--accent-b); }

/* Avatar Upload */
.avatar-upload { width: 180px; height: 180px; margin: 0 auto 24px; border-radius: 50%; border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.3s; background: var(--bg-glass); }
.avatar-upload:hover { border-color: var(--accent-purple); background: rgba(168,85,247,0.05); transform: scale(1.05); }
.avatar-preview { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.upload-placeholder { text-align: center; }
.upload-icon { font-size: 36px; margin-bottom: 6px; }
.upload-text { font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--text-secondary); }

/* Host Connector */
.host-connector { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding-top: 30px; }
.conn-line { width: 2px; height: 30px; background: linear-gradient(var(--accent-a), var(--accent-b)); opacity: 0.3; border-radius: 1px; }
.conn-vs { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--text-muted);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; background: var(--bg-dark); }

/* Fields */
.creator-fields { display: flex; flex-direction: column; gap: 16px; flex: 1; }

.field label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-family: inherit; font-size: 13px; outline: none;
  transition: border-color 0.2s, background 0.2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent-purple); background: rgba(168,85,247,0.04); }
.field textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6b85'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.field select option { background: var(--bg-card); color: var(--text-primary); }

/* Voice Toggle */
.voice-toggle { display: flex; gap: 8px; }
.voice-btn { flex: 1; padding: 10px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-secondary); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-align: center; }
.voice-btn:hover { border-color: var(--accent-purple); color: var(--text-primary); }
.voice-btn.active { border-color: var(--accent-purple); background: rgba(168,85,247,0.12); color: var(--accent-purple); }

/* Preset Chips */
.quick-presets { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.presets-label { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 8px; }
.preset-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-chip { padding: 6px 12px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 50px;
  color: var(--text-secondary); font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; white-space: nowrap; }
.preset-chip:hover { border-color: var(--accent-purple); color: var(--text-primary); transform: translateY(-1px); }
.preset-chip.active { border-color: var(--accent-purple); background: rgba(168,85,247,0.12); color: var(--accent-purple); }

/* ===== WIZARD NAV ===== */
.wizard-nav { display: flex; justify-content: space-between; align-items: center; padding: 28px 0 0; }
.nav-btn { padding: 12px 28px; border: none; border-radius: 50px; font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 8px; }
.back-btn { background: var(--bg-glass); border: 1px solid var(--border); color: var(--text-secondary); }
.back-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.next-btn { background: linear-gradient(135deg, var(--accent-a), var(--accent-purple)); color: white;
  box-shadow: 0 4px 20px rgba(66,133,244,0.25); }
.next-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(66,133,244,0.4); }
.arrow { font-size: 16px; }

/* ===== STEP 2: TOPIC ===== */
.topic-step { text-align: center; max-width: 650px; margin: 0 auto; padding: 30px 0; }
.topic-icon { font-size: 48px; margin-bottom: 12px; }
.topic-step h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.topic-hint { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.topic-field { width: 100%; padding: 16px 20px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text-primary); font-family: inherit; font-size: 18px; text-align: center; outline: none;
  transition: border-color 0.2s; }
.topic-field:focus { border-color: var(--accent-purple); }
.topic-field::placeholder { color: var(--text-muted); }

.suggested-topics { margin-top: 28px; }
.suggest-label { font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 10px; }
.suggest-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.suggest-chip { padding: 8px 16px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 50px;
  color: var(--text-secondary); font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.suggest-chip:hover { border-color: var(--accent-purple); color: var(--text-primary); transform: translateY(-1px); }

/* ===== STEP 3: PREVIEW ===== */
.preview-step { text-align: center; padding: 30px 0; }
.preview-hosts { display: flex; justify-content: center; align-items: center; gap: 40px; margin-bottom: 24px; }
.preview-host { text-align: center; }
.preview-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 40px; margin: 0 auto 10px; overflow: hidden; }
.preview-avatar img { width: 100%; height: 100%; object-fit: cover; }
.preview-name { font-size: 20px; font-weight: 700; }
.preview-brain { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.preview-vs { font-size: 18px; font-weight: 800; color: var(--text-muted); }

.preview-topic { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 24px; margin-bottom: 30px; display: inline-block; }
.preview-topic-label { font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--accent-purple); margin-bottom: 4px; }
.preview-topic-text { font-size: 18px; font-weight: 600; }

.go-live-btn { position: relative; padding: 20px 80px; background: linear-gradient(135deg, var(--accent-a), var(--accent-purple), var(--accent-pink));
  background-size: 200% 200%; animation: glow 2s ease-in-out infinite alternate;
  border: none; border-radius: 60px; color: white; font-family: inherit; font-size: 24px; font-weight: 900;
  letter-spacing: 2px; cursor: pointer; transition: all 0.3s; }
.go-live-btn:hover { transform: translateY(-3px) scale(1.05); }
.go-live-pulse { position: absolute; top: 50%; left: 20px; width: 12px; height: 12px; border-radius: 50%;
  background: #ef4444; transform: translateY(-50%); animation: pulse 1.5s ease-in-out infinite; }
.go-live-hint { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* ===== PODCAST SCREEN ===== */
.podcast-screen { display: none; }
.podcast-screen.active { display: block; animation: fadeUp 0.5s ease-out; }

.podcast-header { text-align: center; padding: 16px 0; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25);
  padding: 4px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; color: #ef4444; letter-spacing: 1px; margin-top: 6px; }
.live-dot { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; animation: pulse 1.5s ease-in-out infinite; }

.topic-bar { text-align: center; padding: 10px 16px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 10px; margin: 10px 0; }
.topic-bar .label { font-size: 9px; font-weight: 700; letter-spacing: 2px; color: var(--accent-purple); }
.topic-bar .topic-text { font-size: 15px; font-weight: 600; margin-top: 2px; }

/* Live Host Cards */
.hosts-row { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; margin: 16px 0; gap: 0; }
.host-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  transition: all 0.4s; position: relative; }
.host-card.speaking { transform: scale(1.02); }
.host-card:first-child.speaking { border-color: rgba(66,133,244,0.4); box-shadow: 0 0 40px rgba(66,133,244,0.2), 0 0 80px rgba(66,133,244,0.1); }
.host-card:last-child.speaking { border-color: rgba(52,199,89,0.4); box-shadow: 0 0 40px rgba(52,199,89,0.2), 0 0 80px rgba(52,199,89,0.1); }

/* Large image panel — 4:3 ratio like original */
.host-image-wrap { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #0d0d15; }
.host-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 80px; background: linear-gradient(135deg, rgba(66,133,244,0.08), rgba(168,85,247,0.08)); position: relative; }
.host-image img { width: 100%; height: 100%; object-fit: cover; }
.host-image canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.overlay-gradient { display: none; }

.host-info { padding: 14px 20px 18px; text-align: center; }
.host-info .name { font-size: 22px; font-weight: 800; }
.host-card:first-child .host-info .name { color: var(--accent-a); }
.host-card:last-child .host-info .name { color: var(--accent-b); }
.host-info .role { font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.host-card:first-child .host-info .role { color: rgba(66,133,244,0.7); }
.host-card:last-child .host-info .role { color: rgba(52,199,89,0.7); }

.audio-viz { display: flex; gap: 2px; justify-content: center; height: 22px; align-items: end; margin-top: 6px; opacity: 0; transition: opacity 0.3s; }
.speaking .audio-viz { opacity: 1; }
.audio-viz .bar { width: 3px; border-radius: 2px; animation: vizBounce 0.5s ease-in-out infinite alternate; }

.hosts-connector { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hosts-connector .line { width: 2px; height: 24px; background: linear-gradient(var(--accent-a), var(--accent-b)); opacity: 0.3; }

/* Controls */
.controls { display: flex; justify-content: center; gap: 10px; margin: 14px 0; }
.ctrl-btn { padding: 10px 24px; border: none; border-radius: 50px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.ctrl-btn.secondary { background: var(--bg-glass); color: var(--text-secondary); border: 1px solid var(--border); }
.ctrl-btn.secondary:hover { border-color: var(--border-hover); color: var(--text-primary); }
.ctrl-btn.danger { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.ctrl-btn.danger:hover { background: rgba(239,68,68,0.2); }

.audience-section { display: flex; gap: 8px; padding: 10px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 10px; margin: 10px 0; }
.audience-section input { flex: 1; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-family: inherit; font-size: 13px; outline: none; }
.audience-section input:focus { border-color: var(--accent-purple); }
.audience-section button { padding: 10px 20px; background: var(--accent-purple); color: white; border: none;
  border-radius: var(--radius-sm); font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: all 0.2s; }
.audience-section button:hover { background: #9333ea; transform: translateY(-1px); }

.stats-bar { display: flex; justify-content: center; gap: 20px; font-size: 11px; color: var(--text-secondary); margin: 8px 0; }
.stat .val { color: var(--accent-purple); font-weight: 700; font-variant-numeric: tabular-nums; }

.transcript { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; max-height: 300px; overflow-y: auto; margin: 12px 0; }
.transcript-header { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 10px; }
.msg { padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; animation: fadeUp 0.3s ease-out; line-height: 1.6; font-size: 18px; }
.msg .speaker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.msg.host-a-msg { background: rgba(66,133,244,0.06); border-left: 3px solid var(--accent-a); }
.msg.host-a-msg .speaker { color: var(--accent-a); }
.msg.host-b-msg { background: rgba(52,199,89,0.06); border-left: 3px solid var(--accent-b); }
.msg.host-b-msg .speaker { color: var(--accent-b); }
.msg.audience-msg { background: rgba(168,85,247,0.06); border-left: 3px solid var(--accent-purple); }
.msg.audience-msg .speaker { color: var(--accent-purple); }

.status-bar { text-align: center; padding: 12px; font-size: 12px; color: var(--text-secondary); }
.powered { font-size: 10px; margin-top: 4px; opacity: 0.4; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

@media (max-width: 768px) {
  .hosts-grid { grid-template-columns: 1fr; gap: 16px; }
  .host-connector { flex-direction: row; padding-top: 0; padding: 8px 0; }
  .conn-line { width: 30px; height: 2px; }
  .hosts-row { grid-template-columns: 1fr; gap: 16px; }
  .hosts-connector { flex-direction: row; }
  .hosts-connector .line { width: 30px; height: 2px; }
  .logo-text { font-size: 32px; }
  .preview-hosts { flex-direction: column; gap: 16px; }
  .steps-bar { flex-wrap: wrap; }
  .podcast-screen.active { flex-direction: column; }
  .podcast-left { flex: 1 1 100%; }
  .podcast-right { flex: 1 1 100%; }
  .transcript { min-height: 250px; }
}

/* ===== AVATAR PICKER MODAL ===== */
.avatar-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.avatar-modal-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 24px;
  max-width: 900px; width: 100%; max-height: 80vh; overflow-y: auto; }
.avatar-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.avatar-modal-header h2 { font-size: 22px; font-weight: 800; 
  background: linear-gradient(135deg, var(--accent-a), var(--accent-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.modal-close { background: var(--bg-glass); border: 1px solid var(--border); border-radius: 50%; width: 36px; height: 36px;
  font-size: 16px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { border-color: var(--accent-purple); color: var(--text-primary); }

.avatar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.avatar-card { background: var(--bg-glass); border: 2px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer;
  transition: all 0.3s; position: relative; }
.avatar-card:hover { border-color: var(--accent-purple); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(168,85,247,0.2); }
.avatar-card.selected { border-color: var(--accent-purple); box-shadow: 0 0 20px rgba(168,85,247,0.3); }
.avatar-card video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #0a0a0f; }
.avatar-card-name { padding: 8px; text-align: center; font-size: 11px; font-weight: 600; color: var(--text-secondary);
  letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Video in wizard preview circle */
.avatar-upload video.avatar-preview { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Video elements in live host panels */
.host-image-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }

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