/* The member preview shares the live member screens; only its controls differ. */
#editor.view-as-picker { padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overscroll-behavior: contain; }
.view-as-picker::backdrop { background: #020716b8; backdrop-filter: blur(9px); }
.view-as-picker .paneltitle { position: sticky; top: 0; z-index: 1; padding: 16px 28px; margin: 0; border-bottom: 1px solid var(--line); background: var(--panel); }
.view-as-picker .paneltitle h2 { font: 400 26px/1.2 var(--display); }
.view-as-picker .paneltitle .link { min-width: 44px; min-height: 44px; }
.view-as-picker-body { padding: 24px 28px 28px; }
.view-as-kicker { display: flex; align-items: center; gap: 9px; color: #6ef3e9; font-size: 12px; font-weight: 700; }
.view-as-intro { color: var(--sub); margin: 10px 0 24px; max-width: 390px; }
.view-as-choices { display: grid; gap: 10px; }
.view-as-choice { display: flex; align-items: center; text-align: left; gap: 18px; padding: 20px 18px; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #b5c1dc09; color: var(--ink); cursor: pointer; transition: background-color 180ms, border-color 180ms; }
.view-as-choice > svg:first-child { flex: none; color: #6ef3e9; }
.view-as-choice > svg:last-child { flex: none; color: var(--sub); margin-left: auto; }
.view-as-choice span { display: grid; gap: 3px; }
.view-as-choice strong { font-size: 16px; }
.view-as-choice small { font-size: 12px; color: var(--sub); }
.view-as-choice:hover { background: #6ef3e910; border-color: #6ef3e987; }
.view-as-choice:active { background: #6ef3e91c; }
.view-as-choice:focus-visible, .view-as-exit:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; }
.view-as-readonly { display: flex; gap: 9px; align-items: flex-start; margin: 23px 0 0; color: var(--sub); font-size: 12px; line-height: 1.6; }
.view-as-readonly svg { flex: none; color: #6ef3e9; margin-top: 1px; }
.view-as-opening { min-height: 100dvh; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 20px; padding: 32px 24px 140px; text-align: center; }
.view-as-opening > svg { color: #6ef3e9; }
.view-as-opening h1 { font: 400 clamp(24px, 4vw, 36px)/1.2 var(--display); }
.view-as-loading { width: min(300px, 80vw); height: 12px; }
.view-as-shell { --view-as-bar-height: calc(80px + env(safe-area-inset-bottom)); height: calc(100dvh - var(--view-as-bar-height)); min-height: 0; }
.view-as-shell.open ~ .view-as-return { display: none; }
.view-as-return { position: fixed; inset: auto 0 0; z-index: 70; min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px max(24px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); border-top: 1px solid #6ef3e970; background: #0d1929; color: #f7f8fd; box-shadow: 0 -8px 28px #02071450; }
.view-as-return > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.view-as-return-icon { width: 42px; height: 42px; border: 1px solid #6ef3e945; border-radius: 10px; color: #6ef3e9; display: grid; place-items: center; background: #6ef3e90a; }
.view-as-return strong { display: block; font-size: 14px; }
.view-as-return small { display: flex; gap: 5px; align-items: center; color: #b6c6d9; font-size: 11px; margin-top: 3px; }
.view-as-exit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 18px; border: 1px solid #ff94c9a3; border-radius: 8px; background: #a90c64; color: #fff; font: 700 13px/1.4 Inter, sans-serif; cursor: pointer; transition: background-color 180ms, border-color 180ms; }
.view-as-exit:hover { background: #c01276; border-color: #ffc6e4; }
.view-as-exit:active { background: #8b0a52; }
.member-preview-fields { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.member-header-account .avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
body.light .view-as-kicker, body.light .view-as-readonly svg, body.light .view-as-choice > svg:first-child { color: #006d72; }
body.light .view-as-choice:hover { background: #006d720a; border-color: #006d72; }
@media (max-width: 600px) {
  .view-as-picker .paneltitle { padding: 18px 20px; }
  .view-as-picker-body { padding: 20px; }
  .view-as-choice { padding: 18px 14px; gap: 12px; }
  .view-as-choice strong { font-size: 14px; }
  .view-as-choice small { font-size: 11px; }
  .view-as-shell { --view-as-bar-height: calc(112px + env(safe-area-inset-bottom)); }
  .view-as-return { min-height: 112px; align-items: stretch; justify-content: flex-start; flex-direction: column; gap: 8px; padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)); }
  .view-as-return > div { gap: 9px; }
  .view-as-return-icon { width: 32px; height: 32px; border-radius: 7px; }
  .view-as-return strong { font-size: 12px; }
  .view-as-return small { font-size: 10px; margin: 0; }
  .view-as-exit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .view-as-choice, .view-as-exit { transition: none; }
}
