/* Floating page copy action, shared by the portal and course review. */
.ai-copy-space{height:64px}
.ai-copy-dock{position:fixed;top:calc(var(--ai-copy-header-height,60px) + 12px);right:max(16px,env(safe-area-inset-right));z-index:45;display:flex;flex-direction:column;align-items:flex-end;max-width:calc(100vw - 32px);font-family:Inter,-apple-system,"Segoe UI",sans-serif}
.ai-copy-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;border:1px solid var(--dk-line-e9c300,#E9C300);border-radius:12px;background:var(--dk-bg-ffd400,#FFD400);color:var(--dk-fgk-0b0b14,#0B0B14);box-shadow:0 4px 16px rgba(15,18,38,.12);font:700 14px/1.3 Inter,-apple-system,"Segoe UI",sans-serif;cursor:pointer}
.ai-copy-button:hover{background:var(--dk-bg-f0c600,#F0C600)}
.ai-copy-button:focus-visible{outline:3px solid var(--dk-line-6d28ff,#6D28FF);outline-offset:3px}
.ai-copy-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.ai-copy-status:not(:empty){margin-top:8px;padding:8px 12px;border:1px solid var(--dk-line-e6e7ef,#E6E7EF);border-radius:8px;background:var(--dk-bg-ffffff,#FFFFFF);color:var(--dk-fg-0b0b14,#0B0B14);font-size:13px;max-width:290px;box-shadow:0 4px 16px rgba(15,18,38,.08)}
.ai-copy-clipboard{position:fixed;left:0;top:0;width:1px;height:1px;opacity:0;font-size:16px}
.ai-copy-dialog{width:min(680px,calc(100vw - 32px));max-height:85vh;border:1px solid var(--dk-line-e6e7ef,#E6E7EF);border-radius:14px;padding:24px;background:var(--dk-bg-ffffff,#FFFFFF);color:var(--dk-fg-0b0b14,#0B0B14);font:16px/1.55 Inter,-apple-system,"Segoe UI",sans-serif}
.ai-copy-dialog::backdrop{background:rgba(15,18,38,.5)}
.ai-copy-dialog h2{margin:0 0 12px;font-size:22px}
.ai-copy-dialog textarea{display:block;width:100%;height:40vh;margin:16px 0;padding:12px;border:1px solid var(--dk-line-e6e7ef,#E6E7EF);border-radius:8px;background:var(--dk-bg-f5f6fa,#F5F6FA);color:inherit;font:14px/1.5 monospace;resize:vertical}
@media print{.ai-copy-dock,.ai-copy-space,.ai-copy-dialog{display:none!important}}
