/* ScrubHub private study rooms: video and partner practice share one workspace. */
.rooms-live.study-together { max-width: 1380px; min-height: 0; gap: 22px; }
.study-together .room-topbar { flex-wrap: wrap; margin: 0; padding-bottom: 16px; }
.study-together .grp-room-title { flex: 1; min-width: 120px; overflow-wrap: anywhere; }
.study-room-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.study-room-heading .eyebrow { color: #7040bc; margin: 0 0 7px; }
.study-room-heading h1 { margin: 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.2; letter-spacing: -.03em; }
.study-room-heading p { margin: 9px 0 0; }
.study-private-pill { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--border, #ddd5ea); border-radius: 999px; color: var(--muted, #6a607a); font-size: 12px; }
.study-room-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); align-items: start; gap: 20px; }
.study-call-panel, .study-pair-panel { min-width: 0; border: 1px solid var(--border, #ddd5ea); background: var(--surface, #fff); border-radius: 22px; overflow: hidden; box-shadow: 0 10px 32px #35145e06; }
.study-call-panel { padding: 19px; }
.study-call-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.study-call-heading h2 { font-size: 17px; margin: 0; }
.study-call-heading > span { flex-shrink: 0; color: var(--muted, #6a607a); font-size: 12px; }
.study-together .stage-status { padding: 11px 13px; margin: 0 0 14px; border-radius: 12px; background: #f5f0fc; color: #564070; font-size: 13px; line-height: 1.5; text-align: left; }
.study-together .study-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; justify-content: stretch; align-items: stretch; min-height: 220px; }
.study-video-tile { position: relative; isolation: isolate; min-width: 0; aspect-ratio: 4/5; min-height: 170px; border-radius: 16px; overflow: hidden; border: 2px solid transparent; background: #271b41; color: #fff; transition: border-color .2s ease; }
.study-video-tile.speaking { border-color: #b791ff; box-shadow: 0 0 0 2px #8053c12b; }
.study-video-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.study-video-tile.is-local video { transform: scaleX(-1); }
.study-video-placeholder { height: 100%; min-height: 170px; padding: 18px 10px 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(circle at 20% 0, #594073, #251b3d 80%); }
.study-video-placeholder[hidden] { display: none; }
.study-video-placeholder > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 22px; border: 1px solid #ffffff29; background: #ffffff12; font-size: 26px; }
.study-video-placeholder small { color: #d8cce7; font-size: 12px; }
.study-video-name { position: absolute; z-index: 1; left: 0; bottom: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 20px 10px 12px; background: linear-gradient(transparent, #130d24da); font-size: 12px; }
.study-video-name strong { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.study-video-name > span { display: inline-flex; flex-shrink: 0; }
.study-call-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; min-height: 240px; padding: 24px; text-align: center; border-radius: 16px; background: radial-gradient(ellipse at top, #f4ecff, #fbf9ff); color: #413153; }
.study-call-empty > span { color: #8051c6; }
.study-call-empty p, .study-call-waiting p { max-width: 270px; margin: 0; line-height: 1.55; font-size: 13px; color: #6b5b7d; }
.study-call-waiting { display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; padding: 16px; text-align: center; background: #faf7ff; border: 1px dashed #dacceb; border-radius: 16px; }
.study-call-waiting strong { font-size: 14px; color: #553974; }
.study-call-join { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.study-call-join .btn { min-height: 44px; white-space: normal; }
.study-together .room-controls { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; width: 100%; padding: 10px 0 0; margin: 0; border: 0; box-shadow: none; background: none; }
.study-media-button { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; min-height: 48px; padding: 10px 7px; border: 1px solid var(--border, #ddd5ea); border-radius: 13px; background: var(--surface, #fff); color: var(--text, #322640); font: inherit; font-size: 12px; cursor: pointer; }
.study-media-button .mic-ico { display: inline-flex; }
.study-media-button[disabled] { opacity: .55; cursor: not-allowed; }
.study-media-button.live { color: #61349a; background: #f1e8fc; border-color: #cdb1ee; }
.study-together button:focus-visible, .study-pair-panel summary:focus-visible { outline: 3px solid #9663df; outline-offset: 3px; }
.study-call-privacy { margin: 14px 0 0; font-size: 11px; line-height: 1.55; color: var(--muted, #6a607a); }
.study-pair-panel > summary { display: flex; align-items: center; gap: 11px; padding: 18px 19px; cursor: pointer; color: var(--text, #322640); font-size: 16px; font-weight: 650; list-style: none; }
.study-pair-panel > summary::after { content: '+'; margin-left: auto; font-size: 23px; font-weight: 400; }
.study-pair-panel[open] > summary::after { content: '−'; }
.study-pair-panel > summary::-webkit-details-marker { display: none; }
.study-pair-panel > summary > svg { flex-shrink: 0; color: #8051c6; }
.study-pair-panel > summary small { display: block; margin-top: 3px; font-weight: 400; font-size: 12px; color: var(--muted, #6a607a); }
.study-pair-panel #pair-study { padding: 0 19px 19px; min-width: 0; }
.study-together .study-chat-toggle { align-self: flex-start; min-height: 44px; }
.study-together .room-chat { max-height: 530px; margin: 0; }
@media (max-width: 1050px) {
  .study-room-layout { grid-template-columns: minmax(0, 1fr); }
  .study-video-tile { aspect-ratio: 16/10; }
}
@media (max-width: 540px) {
  .rooms-live.study-together { gap: 16px; }
  .study-room-heading { align-items: flex-start; }
  .study-private-pill { display: none; }
  .study-call-panel { padding: 13px; border-radius: 18px; }
  .study-together .study-video-grid { min-height: 190px; gap: 7px; }
  .study-video-tile { min-height: 190px; aspect-ratio: 3/4; }
  .study-video-placeholder > span { width: 45px; height: 45px; border-radius: 17px; font-size: 23px; }
  .study-video-name { font-size: 11px; }
  .study-media-button { font-size: 11px; padding: 10px 5px; }
  .study-together .room-topbar .btn { min-height: 44px; padding: 8px; }
  .study-pair-panel > summary { padding: 15px; }
  .study-pair-panel #pair-study { padding: 0 15px 15px; }
}
@media (prefers-reduced-motion: reduce) { .study-video-tile { transition: none; } }
