#cptQrToggle[hidden],#cptQrPanel[hidden]{display:none!important}
#cptQrToggle{margin-left:10px;white-space:nowrap}
#cptClassroomRoot.qr-panel-open .cpt-classroom-viewport{right:466px}
#cptQrPanel{position:absolute;right:0;top:0;bottom:0;box-sizing:border-box;width:456px;overflow:auto;padding:16px;background:#fff;border-left:1px solid #d5dce7;font:14px system-ui;color:#17233b}
#cptQrPanel canvas{width:420px!important;height:420px!important;max-width:100%}
#cptQrPanel button,#cptQrPanel select{width:100%;margin:6px 0;padding:8px}
#cptQrPanel p{line-height:1.5}
header .top-actions > #cptQrToggle{order:1001}
/* The legacy Live toolbar hides all other direct children. Opt in only this control. */
body:not(.zone-editing) header .top-actions:has(#liveEditToggle) > #cptQrToggle:not([hidden]){display:inline-flex!important}

#cptQrPanel button[data-action=start]{background:linear-gradient(135deg,#4f7cff,#765cff);color:#fff;border:0;border-radius:999px;font-weight:800;box-shadow:0 8px 20px rgba(91,108,255,.36)}
#cptQrPanel button[data-action=start]:disabled{opacity:.55;cursor:default}

#cptQrError{position:fixed;top:150px;left:50%;transform:translateX(-50%);z-index:250000;max-width:calc(100vw - 48px);padding:14px 20px;border:1px solid #b42318;border-radius:12px;background:#fff1f0;color:#8a1c13;font:600 16px system-ui;box-shadow:0 4px 20px #0002}
#cptQrError[hidden]{display:none!important}

#cptQrPanel [hidden]{display:none!important}
#cptQrPanel [data-action=restart],#cptQrPanel [data-action=confirm-restart]{background:linear-gradient(135deg,#4f7cff,#765cff);color:#fff;border:0;border-radius:12px;font-weight:700;min-height:44px}
#cptQrPanel [data-restart-confirm]{border:1px solid #d5dce7;border-radius:12px;padding:12px;background:#f5f8fd}
