/* ═══ Salas (prefijo .rm-): lista estilo Discord, paneles apilados, tiles, píldora de controles, dock global y llamada entrante ═══
   Diseño v2: todo color sale de tokens de base.css; piezas flotantes = .liquid, etiquetas sobre video = .glass (las clases se ponen en el JS). */

/* ── columna izquierda ── */
.rm-list-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 8px; }
.rm-list-head h1 { font-size: 22px; }
.rm-room { border-radius: 18px; margin: 2px 0; transition: background var(--t) var(--ease); }
.rm-room.mine { background: var(--primary-soft); }
.rm-room-head { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; border-radius: 16px; cursor: pointer; outline: none;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.rm-room-head:hover, .rm-room-head:focus-visible { background: var(--card-2); } .rm-room.mine .rm-room-head:hover { background: transparent; }
.rm-room-head:active { transform: scale(.985); }
.rm-room-emoji { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--card); box-shadow: var(--shadow); transition: transform var(--t) var(--spring); }
.rm-room-head:hover .rm-room-emoji { transform: scale(1.08) rotate(-4deg); }
.rm-req { color: var(--muted); display: inline-flex; } .rm-req .icon { width: 15px; height: 15px; }
.rm-enter { font-size: 11.5px; font-weight: 800; color: var(--primary); opacity: 0; transform: translateX(-4px); transition: all var(--t) var(--ease); }
.rm-room-head:hover .rm-enter, .rm-room-head:focus-visible .rm-enter { opacity: 1; transform: none; }
.rm-edit { opacity: 0; transition: opacity var(--t) var(--ease); } .rm-room-head:hover .rm-edit, .rm-edit:focus-visible { opacity: 1; }
.rm-members { display: flex; flex-direction: column; gap: 1px; padding: 0 8px 8px 28px; }
.rm-member { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 8px; border-radius: 12px; font-size: 13px; color: var(--text-2); transition: background var(--t-fast) var(--ease); }
.rm-member:hover { background: var(--card-2); }
.rm-icons { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; } .rm-icons span { display: inline-flex; } .rm-icons .icon { width: 14px; height: 14px; }
.rm-icons .ok { color: var(--ok); } .rm-icons .bad { color: var(--danger); }
.rm-timer { font-size: 11.5px; font-weight: 700; color: var(--text-2); background: var(--card-2); padding: 2px 7px; border-radius: 8px; min-width: 40px; text-align: center; }
.rm-room.mine .rm-timer { background: var(--card); }
.rm-back-call { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; margin: 4px 0 10px; border-radius: var(--r-pill); font-weight: 700; color: #fff;
  background: var(--ok); box-shadow: 0 10px 24px var(--ok-soft), inset 0 1px 0 rgba(255, 255, 255, .25); }
.rm-back-call.rm-fresh { animation: rm-drop 520ms var(--spring) backwards; }
.rm-back-call .dot.live { background: #fff; }

/* ── héroe + tarjetas de salas ── */
.rm-main { position: relative; }
.rm-home { padding-top: 18px; } .rm-home > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.rm-rise { animation: rise 520ms var(--ease) backwards; }
.rm-greet { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rm-hero { position: relative; overflow: hidden; isolation: isolate; min-height: 210px; padding: 24px; border-radius: 28px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background: linear-gradient(100deg, rgba(8, 8, 24, .46) 0%, rgba(8, 8, 24, .12) 70%), var(--backdrop); box-shadow: var(--lg-hi), var(--shadow-lg); border: 1px solid var(--lg-border); }
.rm-hero::before, .rm-hero::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(8px); animation: rm-float 9s ease-in-out infinite; }
.rm-hero::before { width: 260px; height: 260px; right: -70px; top: -90px; background: rgba(255, 255, 255, .16); }
.rm-hero::after { width: 190px; height: 190px; right: 90px; bottom: -110px; background: rgba(255, 255, 255, .12); animation-delay: -4s; }
.rm-hero h2 { font-size: 26px; line-height: 1.15; max-width: 420px; } .rm-hero h2 em { font-style: normal; color: #ffd3ee; }
.rm-hero p { max-width: 430px; color: rgba(255, 255, 255, .86); font-size: 13.5px; }
.rm-hero-btn { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 7px; border-radius: var(--r-pill); background: var(--solid); color: var(--text); font-weight: 800;
  box-shadow: 0 12px 26px rgba(10, 10, 60, .28), inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform var(--t) var(--spring), box-shadow var(--t) var(--ease); }
.rm-hero-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 34px rgba(10, 10, 60, .36); } .rm-hero-btn:active { transform: scale(.96); }
.rm-hero-btn-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.rm-glass-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700; white-space: nowrap; }   /* + .glass */
.rm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.rm-stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.rm-stat b { font-size: 18px; } .rm-stat .icon { width: 17px; height: 17px; color: var(--accent); }
.rm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.rm-card { --tone: #ffe9d6; min-height: 168px; padding: 16px; border-radius: 24px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; outline: none; background: var(--tone); border: 1px solid rgba(20, 20, 60, .04);
  transition: transform var(--t) var(--spring), box-shadow var(--t) var(--ease); }
.rm-card:hover, .rm-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); } .rm-card:active { transform: scale(.97); }
.rm-card.tone-0 { --tone: #ffe4ea; } .rm-card.tone-1 { --tone: #dceaff; } .rm-card.tone-2 { --tone: #dcf7e6; } .rm-card.tone-3 { --tone: #fff1cf; } .rm-card.tone-4 { --tone: #ffe9d6; }
:root[data-theme='dark'] .rm-card { border-color: var(--line); }
:root[data-theme='dark'] .rm-card.tone-0 { --tone: rgba(244, 114, 182, .16); } :root[data-theme='dark'] .rm-card.tone-1 { --tone: rgba(96, 165, 250, .16); } :root[data-theme='dark'] .rm-card.tone-2 { --tone: rgba(74, 222, 128, .14); }
:root[data-theme='dark'] .rm-card.tone-3 { --tone: rgba(251, 191, 36, .14); } :root[data-theme='dark'] .rm-card.tone-4 { --tone: rgba(251, 146, 60, .14); }
.rm-card-emoji { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: var(--solid); box-shadow: var(--shadow); }
.rm-card p { color: var(--text-2); } .rm-card .avatar-stack .avatar { border-color: var(--solid); } .rm-more { background: var(--text) !important; color: var(--card); font-size: 11px; }
.rm-join { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12.5px; } .rm-join .icon { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); transition: transform var(--t) var(--spring); }
.rm-card:hover .rm-join .icon { transform: rotate(90deg) scale(1.08); }

/* ── paneles apilados ── */
.rm-stack { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 12px 14px 14px; scrollbar-width: thin; scrollbar-color: var(--card-3) transparent; }
.rm-panel { flex: 1 0 auto; min-height: 350px; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: rm-panel-in 560ms var(--spring) backwards; }
.rm-stack[data-count='1'] .rm-panel { flex: 1 1 0; }
.rm-panel.leaving { animation: rm-panel-out 300ms var(--ease) forwards; pointer-events: none; }
.rm-panel-head { display: flex; align-items: center; gap: 8px; flex: none; min-width: 0; }
.rm-panel-head h3 { font-size: 15px; } .rm-panel-head .btn.on { background: var(--primary); color: var(--on-primary); }
.rm-panel-emoji { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: var(--card-2); }
.rm-panel-body { flex: 1; min-height: 0; display: flex; gap: 12px; }
.rm-stage-wrap { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.rm-banners { display: flex; flex-direction: column; gap: 6px; flex: none; } .rm-banners:empty { display: none; }
.rm-banner { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 12px; border-radius: 14px; font-size: 12.5px; font-weight: 600; background: var(--accent-soft); color: var(--accent); animation: rm-drop 480ms var(--spring) backwards; }
.rm-banner.warn { background: var(--warn-soft); color: #a86400; } :root[data-theme='dark'] .rm-banner.warn { color: #fbbf24; }
.rm-banner .btn { background: var(--solid); color: var(--text); flex: none; }
.rm-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.rm-main-slot { flex: 1; min-height: 0; display: flex; }
.rm-strip { flex: none; height: 116px; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; } .rm-strip::-webkit-scrollbar { display: none; }
.rm-stack[data-count='2'] .rm-strip, .rm-stack[data-count='3'] .rm-strip { height: 86px; }
.rm-stack[data-count='2'] .rm-strip .timer, .rm-stack[data-count='3'] .rm-strip .timer { display: none; }
.rm-stage.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); grid-auto-rows: minmax(150px, 1fr); overflow: auto; }
.rm-stage.grid .rm-main-slot, .rm-stage.grid .rm-strip { display: contents; }
.rm-veil { position: absolute; inset: 0; z-index: 5; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; font-weight: 700;
  background: rgba(12, 14, 30, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade var(--t) var(--ease) backwards; }
.rm-spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .9s linear infinite; }

/* ── tiles ── */
.rm-tile { --c: var(--primary); position: relative; overflow: hidden; isolation: isolate; min-width: 0; border-radius: 20px; color: #fff; cursor: pointer; background: var(--stage);
  background: radial-gradient(120% 130% at 25% 15%, color-mix(in srgb, var(--c) 52%, var(--stage)) 0%, var(--stage) 78%); animation: rm-tile-in 520ms var(--spring) backwards; }
.rm-main-slot > .rm-tile { flex: 1; border-radius: 24px; cursor: default; }
.rm-strip > .rm-tile { flex: none; height: 100%; aspect-ratio: 16 / 10; transition: transform var(--t) var(--spring); } .rm-strip > .rm-tile:hover { transform: translateY(-2px) scale(1.015); }
.rm-tile::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 3px var(--ok), inset 0 0 26px var(--ok-soft); opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.rm-tile.speaking::after { opacity: 1; }
.rm-tile video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity var(--t) var(--ease); }
.rm-tile.has-video video { opacity: 1; } .rm-tile.screen video { object-fit: contain; background: #05060c; } .rm-tile.self:not(.screen) video { transform: scaleX(-1); }
.rm-tile-ui { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 8px; pointer-events: none; } .rm-tile-ui button { pointer-events: auto; }
.rm-main-slot .rm-tile-ui { padding: 14px; }
.rm-ph { position: absolute; inset: 0; z-index: -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; text-align: center; color: rgba(255, 255, 255, .8); }
.rm-ph .avatar { box-shadow: 0 0 0 4px rgba(255, 255, 255, .16), 0 16px 40px rgba(0, 0, 0, .35); transition: transform var(--t) var(--spring), box-shadow var(--t) var(--ease); }
.rm-tile.speaking .rm-ph .avatar { transform: scale(1.06); box-shadow: 0 0 0 4px var(--ok), 0 0 0 12px var(--ok-soft), 0 16px 40px rgba(0, 0, 0, .35); }
.rm-strip .rm-ph .avatar { --s: 44px; } .rm-stack[data-count='2'] .rm-strip .rm-ph .avatar, .rm-stack[data-count='3'] .rm-strip .rm-ph .avatar { --s: 34px; }
.rm-tile-top { display: flex; align-items: center; gap: 6px; min-height: 34px; }
.rm-tbtn { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  opacity: 0; transform: scale(.85); transition: opacity var(--t) var(--ease), transform var(--t) var(--spring), background var(--t) var(--ease); }
.rm-tbtn .icon { width: 17px; height: 17px; } .rm-tbtn:hover { background: rgba(255, 255, 255, .3); transform: scale(1.08); } .rm-tbtn.on { background: var(--solid); color: var(--text); opacity: 1; transform: none; }
.rm-tile:hover .rm-tbtn, .rm-tile:focus-within .rm-tbtn, .rm-tile.main .rm-tbtn { opacity: 1; transform: none; }
@media (hover: none) { .rm-tbtn { opacity: 1; transform: none; } .rm-enter { opacity: .75; transform: none; } .rm-edit { opacity: 1; } }
.rm-glass-chip.hand { font-size: 15px; padding: 0 8px; animation: rm-wiggle 1.2s var(--ease) infinite; }
.rm-watch { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--r-pill); font-weight: 800;
  transition: transform var(--t) var(--spring), background var(--t) var(--ease); animation: rm-pop 520ms var(--spring) backwards; }
.rm-watch:hover { background: rgba(255, 255, 255, .32); transform: translate(-50%, -50%) scale(1.05); }
.rm-tile-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-width: 0; }
.rm-caption { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 5px 10px; border-radius: 13px; font-size: 12px; }   /* + .glass */
.rm-tile.main .rm-caption { padding: 9px 14px 9px 9px; border-radius: 18px; font-size: 14px; min-height: 50px; }
.rm-caption-wave { display: none; width: 22px; height: 22px; flex: none; border-radius: 8px; place-items: center; color: #86efac; background: rgba(255, 255, 255, .14); } .rm-caption-wave .wave { height: 11px; gap: 2px; } .rm-caption-wave .wave i { width: 2px; }
.rm-tile.main .rm-caption-wave { width: 34px; height: 34px; border-radius: 12px; display: grid; color: rgba(255, 255, 255, .55); } .rm-tile.main .rm-caption-wave .wave { height: 16px; } .rm-tile.main .rm-caption-wave .wave i { width: 3px; animation-play-state: paused; }
.rm-tile.speaking .rm-caption-wave { display: grid; color: #86efac; } .rm-tile.main.speaking .rm-caption-wave .wave i { animation-play-state: running; }
.rm-caption-sub { color: rgba(255, 255, 255, .75); } .when-talking { display: none; color: #86efac; font-weight: 700; } .rm-tile.speaking .when-talking { display: inline; } .rm-tile.speaking .when-quiet { display: none; }
.rm-bad { display: inline-flex; flex: none; color: #ff97a1; } .rm-bad .icon { width: 15px; height: 15px; }
.rm-tile:fullscreen { border-radius: 0; } .rm-tile:fullscreen video { object-fit: contain; }
.rm-tile.fs { position: fixed; inset: 0; z-index: 95; border-radius: 0; height: auto !important; aspect-ratio: auto !important; } .rm-tile.fs video { object-fit: contain; }

/* ── píldora flotante de controles ── */
.rm-controls { flex: none; display: flex; justify-content: center; pointer-events: none; }
.rm-pill { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px; border-radius: var(--r-pill); animation: rm-pill-in 640ms var(--spring) backwards; }   /* + .liquid */
.rm-cb { width: 46px; height: 46px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 12.5px; white-space: nowrap; background: var(--card-2); color: var(--text);
  transition: transform var(--t) var(--spring), background var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.rm-cb:hover { transform: translateY(-2px); background: var(--card-3); } .rm-cb:active { transform: scale(.9); }
.rm-cb.off { background: var(--danger-soft); color: var(--danger); }
.rm-cb.active { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 18px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, .18); }
.rm-cb.solo, .rm-cb.leave { width: auto; padding: 0 18px; border-radius: var(--r-pill); }
.rm-cb.leave { background: var(--danger); color: #fff; box-shadow: 0 8px 18px var(--danger-soft), inset 0 1px 0 rgba(255, 255, 255, .25); } .rm-cb.leave:hover { background: var(--danger); filter: brightness(1.08); box-shadow: 0 12px 26px var(--danger-soft); }
.rm-cb.sm { width: 38px; height: 38px; padding: 0; } .rm-cb.sm .icon { width: 17px; height: 17px; }
.rm-sep { width: 1px; height: 26px; background: var(--line); margin: 0 2px; }

/* ── lateral de cada sala ── */
.rm-side { width: 300px; flex: none; display: none; flex-direction: column; gap: 10px; overflow: auto; scrollbar-width: thin; }
.rm-panel.with-side .rm-side { display: flex; animation: rm-side-in 460ms var(--ease) backwards; } .rm-side.in-sheet { display: flex; width: auto; }
.rm-ai { padding: 14px; border-radius: 20px; background: var(--card-2); flex: none; }
.rm-ai-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--ok); } .rm-ai-ic .icon { width: 17px; height: 17px; }
.rm-ai-row { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); } .rm-ai-row p { color: var(--text-2); margin: 2px 0; }
.rm-tabs { display: flex; flex: none; } .rm-tabs .tab { flex: 1; justify-content: center; padding: 0 8px; }
.rm-plist { display: flex; flex-direction: column; }
.rm-prow { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 7px 4px; border-bottom: 1px solid var(--line); } .rm-prow:last-child { border-bottom: 0; }
.rm-flag { width: 28px; height: 28px; flex: none; display: grid; place-items: center; } .rm-flag .icon { width: 17px; height: 17px; } .rm-flag.ok { color: var(--ok); } .rm-flag.bad { color: var(--danger); opacity: .75; }
.rm-ic-xs { width: 12px; height: 12px; }

/* ── dock global (estás en sala y navegás por otra vista) ── */
.rm-dock { position: fixed; right: 26px; bottom: 26px; z-index: 80; width: min(370px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 26px;
  opacity: 0; pointer-events: none; transform: translateY(26px) scale(.92); transition: transform var(--t-slow) var(--spring), opacity var(--t) var(--ease); }
.rm-dock.show { opacity: 1; pointer-events: auto; transform: none; }
.rm-dock-row { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 20px; transition: background var(--t-fast) var(--ease); } .rm-dock-row:hover { background: var(--card-2); }
.rm-dock-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 46px; text-align: left; }
.rm-dock-emoji { width: 42px; height: 42px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 20px; background: var(--primary-soft); transition: box-shadow var(--t-fast) var(--ease), transform var(--t) var(--spring); }
.rm-dock-emoji.talking { box-shadow: 0 0 0 3px var(--ok); transform: scale(1.05); }
.rm-dock-note { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 12px; border-radius: 16px; font-size: 11.5px; font-weight: 600; background: var(--accent-soft); color: var(--accent); } .rm-dock-note .icon { width: 15px; height: 15px; }
.rm-dials { position: fixed; z-index: 120; left: 50%; top: 18px; transform: translateX(-50%); width: min(340px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.rm-dial { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: var(--r-pill); animation: rm-drop 520ms var(--spring) backwards; }   /* + .liquid */
.rm-dial.out { animation: rm-drop 280ms var(--ease) reverse forwards; }
.rm-dial-avatar { border-radius: 50%; animation: pulse 1.6s infinite; }

/* ── llamada entrante ── */
.rm-ring { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 18px; background: rgba(10, 10, 30, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade var(--t) var(--ease) backwards; }
.rm-ring.out { animation: fade var(--t) var(--ease) reverse forwards; } .rm-ring.out .rm-ring-card { animation: rm-panel-out var(--t) var(--ease) forwards; }
.rm-ring-card { position: relative; overflow: hidden; width: min(380px, 100%); min-height: min(560px, 88dvh); padding: 22px; border-radius: 36px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
  background: radial-gradient(420px 320px at 50% 36%, rgba(255, 255, 255, .2), transparent 70%), linear-gradient(180deg, rgba(8, 8, 24, .3), rgba(8, 8, 24, .55)), var(--backdrop); border: 1px solid var(--lg-border); box-shadow: var(--lg-hi), var(--shadow-lg); animation: modal-in 620ms var(--spring) backwards; }
.rm-ring-who { display: flex; flex-direction: column; align-items: center; gap: 6px; } .rm-ring-who h2 { font-size: 24px; margin-top: 14px; } .rm-ring-who p { color: rgba(255, 255, 255, .85); }
.rm-ring-avatar { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.rm-ring-avatar i { position: absolute; inset: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); animation: rm-ripple 2.4s var(--ease) infinite; } .rm-ring-avatar i:nth-child(2) { animation-delay: .8s; } .rm-ring-avatar i:nth-child(3) { animation-delay: 1.6s; }
.rm-ring-avatar .avatar { --s: 104px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .3), 0 18px 40px rgba(0, 0, 0, .3); }
.rm-ring-actions { width: 100%; display: flex; justify-content: space-around; padding: 16px; border-radius: 28px; }
.rm-ring-btn { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform var(--t) var(--spring), box-shadow var(--t) var(--ease); } .rm-ring-btn .icon { width: 28px; height: 28px; }
.rm-ring-btn:hover { transform: scale(1.08); } .rm-ring-btn:active { transform: scale(.9); }
.rm-ring-btn.no { background: var(--danger); box-shadow: 0 12px 26px var(--danger-soft), inset 0 1px 0 rgba(255, 255, 255, .3); } .rm-ring-btn.yes { background: var(--ok); box-shadow: 0 12px 26px var(--ok-soft), inset 0 1px 0 rgba(255, 255, 255, .3); animation: rm-shake 1.6s var(--ease) infinite; }

/* ── animaciones ── */
@keyframes rm-panel-in { from { opacity: 0; transform: translateY(34px) scale(.96); } }
@keyframes rm-panel-out { to { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes rm-tile-in { from { opacity: 0; transform: scale(.86); } }
@keyframes rm-pill-in { from { opacity: 0; transform: translateY(28px) scale(.8); } }
@keyframes rm-side-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes rm-drop { from { opacity: 0; transform: translateY(-14px) scale(.94); } }
@keyframes rm-pop { from { opacity: 0; scale: .7; } }
@keyframes rm-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-18px, 14px); } }
@keyframes rm-ripple { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.75); opacity: 0; } }
@keyframes rm-shake { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(-12deg); } 20%, 40% { transform: rotate(12deg); } }
@keyframes rm-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }

/* ── escritorio angosto: el lateral tapa menos ── */
@media (max-width: 1180px) and (min-width: 861px) { .rm-side { width: 260px; } .rm-cols > .col-list { width: 264px; } }

/* ── móvil ── */
@media (max-width: 860px) {
  .rm-hero { min-height: 196px; padding: 20px; border-radius: 26px; } .rm-hero h2 { font-size: 22px; }
  .rm-stat { padding: 10px 12px; border-radius: 16px; } .rm-list .rm-stats { margin-bottom: 8px; }
  .rm-stack { padding: 0; gap: 8px; scroll-snap-type: y proximity; }
  .rm-panel { border-radius: 0; border: 0; box-shadow: none; min-height: 74dvh; padding: calc(10px + var(--safe-t)) 12px 0; scroll-snap-align: start; background: transparent; }
  .rm-stack[data-count='1'] .rm-panel { min-height: 100%; }
  .rm-panel-head .btn.icon.sm { width: 40px; height: 40px; }
  .rm-stage, .rm-stage.grid { display: flex; flex-direction: column; overflow-y: auto; padding-bottom: calc(92px + var(--safe-b)); scrollbar-width: none; border-radius: 24px 24px 0 0; }
  .rm-stage.grid .rm-main-slot { display: none; } .rm-stage.grid .rm-strip { display: grid; }
  .rm-main-slot { flex: none; height: min(46dvh, 420px); }
  .rm-strip, .rm-stack[data-count='2'] .rm-strip, .rm-stack[data-count='3'] .rm-strip { height: auto; display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .rm-strip > .rm-tile { height: auto; aspect-ratio: 1 / 1.05; } .rm-strip > .rm-tile:only-child { grid-column: span 2; aspect-ratio: 16 / 9; }
  .rm-stack .rm-strip .timer { display: inline-flex !important; } .rm-stack .rm-strip .rm-ph .avatar { --s: 56px !important; }
  .rm-controls { position: absolute; left: 0; right: 0; bottom: calc(12px + var(--safe-b)); z-index: 6; }
  .rm-pill { gap: 5px; padding: 6px; }
  .rm-pill .rm-cb:not(.off):not(.active):not(.leave) { background: var(--solid); } .rm-pill .rm-cb.off { background: color-mix(in srgb, var(--danger) 16%, var(--solid)); } .rm-sep { display: none; }
  .rm-cb { width: 46px; height: 46px; } .rm-cb.solo, .rm-cb.leave { width: 46px; padding: 0; } .rm-cb.solo span, .rm-cb.leave span { display: none; }
  .rm-dock { left: 12px; right: 12px; width: auto; bottom: calc(88px + var(--safe-b)); border-radius: 24px; }
  body.immersive .rm-dock { bottom: auto; top: calc(62px + var(--safe-t)); }
  .rm-dials { top: calc(10px + var(--safe-t)); }
  .rm-ring { padding: 0; } .rm-ring-card { width: 100%; min-height: 100dvh; border-radius: 0; border: 0; padding: calc(28px + var(--safe-t)) 22px calc(28px + var(--safe-b)); }
}
/* En el chat el dock sube para no tapar la caja de escritura (escritorio). */
@media (min-width: 861px) { body:has(.view[data-view='chat']) .rm-dock { bottom: 96px; } }
