:root { --z-live-notice: 1200; --z-live-question: 1150; }
.live-notice { position: fixed; z-index: var(--z-live-notice); top: max(16px, env(safe-area-inset-top)); left: 50%; width: max-content; max-width: calc(100vw - 32px); padding: 13px 22px; border: 1px solid #d8c7f2; border-radius: 18px; background: #fffaff; color: #4b2d76; box-shadow: 0 8px 28px #69459c26; font-size: 15px; font-weight: 600; text-align: center; pointer-events: none; transform: translate(-50%, calc(-100% - 40px)); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
.live-notice.is-visible { transform: translate(-50%, 0); opacity: 1; }
.live-assignment-backdrop { position: fixed; inset: 0; z-index: var(--z-live-question); display: grid; place-items: center; padding: 24px; background: #35235f38; animation: live-backdrop-in .18s ease both; }
.live-assignment-dialog { width: min(100%, 390px); padding: 28px; border: 1px solid #eadff8; border-radius: 26px; background: #fffaff; box-shadow: 0 20px 60px #35235f26; text-align: center; animation: live-dialog-in .22s ease both; }
.live-assignment-badge { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; background: #eee4ff; color: #6d3fd9; font-size: 22px; font-weight: 700; }
.live-assignment-dialog h2 { margin: 18px 0 24px; font-size: 20px; line-height: 1.65; color: #35235f; }
.live-assignment-actions { display: flex; gap: 12px; }
.live-assignment-actions button { flex: 1; min-height: 44px; margin: 0; }
.live-assignment-dialog [role=alert] { color: #ac3647; font-size: 13px; }
.admin-unassociated-notice { position: sticky; top: 0; z-index: 2; margin: 0 0 16px; padding: 12px 18px; border: 1px solid #eed5ab; border-radius: 16px; background: #fff7e7; color: #775016; font-size: 14px; overflow-wrap: anywhere; }
.admin-unassociated-notice[hidden] { display: none; }
@keyframes live-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes live-dialog-in { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .live-notice { transition: none; } .live-assignment-dialog, .live-assignment-backdrop { animation: none; } }
