/* Compact, movable teacher help. The nonmodal window keeps the activity usable behind it. */
button.teacher-help-floating-button{box-sizing:border-box;position:fixed;left:max(12px,env(safe-area-inset-left,0px));bottom:calc(env(safe-area-inset-bottom,0px) + 46px);z-index:2147481999;display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:96px;min-height:42px;padding:9px 15px;font:800 13.44px/1.25 "Noto Sans KR","Noto Sans JP","Noto Sans TC",system-ui,sans-serif;color:#fff;background:#5b5fe9;border:0;border-radius:999px;white-space:nowrap;cursor:pointer;box-shadow:0 9px 24px rgba(76,55,190,.24)}
button.teacher-help-floating-button:hover{background:#3e43b5}button.teacher-help-floating-button:focus-visible{outline:3px solid rgba(91,95,233,.26);outline-offset:3px}.content-guide-dialog :focus-visible{outline:3px solid #818cf8;outline-offset:2px}button.teacher-help-floating-button[hidden]{display:none}
dialog.content-guide-dialog{box-sizing:border-box;position:fixed;inset:auto;margin:0;width:min(440px,calc(100vw - 24px));height:min(650px,calc(100dvh - 24px));min-width:320px;min-height:300px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:0;color:#1e293b;background:#fff;border:1px solid #c7d2fe;border-radius:12px;box-shadow:0 16px 48px #17255440;text-align:left;overflow:hidden;resize:both;font:400 14px/1.65 system-ui,sans-serif;overscroll-behavior:contain;z-index:2147482000}
.content-guide-head{height:38px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 6px 4px 12px;border-bottom:1px solid #e2e8f0;background:#fafaff;cursor:grab;touch-action:none;user-select:none}.content-guide-head.is-dragging{cursor:grabbing}
.content-guide-head h2{font:750 14px/1.2 system-ui,sans-serif;margin:0;word-break:keep-all}
button.content-guide-close{display:grid;place-items:center;flex:0 0 auto;width:30px;height:30px;padding:0;font:500 22px/1 system-ui,sans-serif;color:#475569;background:transparent;border:0;border-radius:7px;cursor:pointer}button.content-guide-close:hover{background:#eef2ff}
.content-help-tabs{display:grid;grid-template-columns:1fr 1fr;padding:6px 8px 0;border-bottom:1px solid #e2e8f0;background:#fff}.content-help-tabs button{min-height:34px;border:0;border-bottom:2px solid transparent;background:#fff;color:#64748b;font:700 13px/1.3 system-ui,sans-serif;cursor:pointer}.content-help-tabs button[aria-selected="true"]{border-bottom-color:#4f46e5;color:#3730a3}
.content-help-panel{height:calc(100% - 79px);min-height:0;overflow:auto}.content-guide-select{box-sizing:border-box;width:calc(100% - 28px);margin:10px 14px 0;padding:7px 9px;font-size:14px;color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:7px}
.content-guide-body{padding:0 16px 18px;word-break:keep-all;overflow-wrap:anywhere}.content-guide-body h3{font:750 14px/1.45 system-ui,sans-serif;margin:17px 0 5px;color:#312e81}.content-guide-body p{margin:0 0 8px;font-size:14px;line-height:1.7;color:#334155}.content-guide-body .content-guide-intro{margin-top:13px;color:#475569}.content-guide-body .content-guide-caution{border-left:3px solid #c7d2fe;padding-left:10px;color:#475569}.content-guide-pending{margin:18px 0!important;padding:14px;border-radius:9px;background:#f8fafc;color:#64748b!important;text-align:center}
.content-help-chat{display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden}.content-help-thread{overflow:auto;padding:12px;display:flex;flex-direction:column;gap:9px;scrollbar-gutter:stable}.content-help-chat-intro{margin:auto 8px;color:#64748b;font-size:13px;line-height:1.6;text-align:center}.content-help-message{max-width:90%;display:grid;gap:5px}.content-help-message.user{align-self:flex-end}.content-help-message.assistant{align-self:flex-start}.content-help-bubble{margin:0;padding:8px 10px;border-radius:12px;background:#f1f3f7;color:#1e293b;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.content-help-message.user .content-help-bubble{background:#4f46e5;color:#fff;border-bottom-right-radius:4px}.content-help-message.assistant .content-help-bubble{border-bottom-left-radius:4px}.content-help-citations{color:#676a86;font-size:11px}.content-help-citations summary{cursor:pointer;font-weight:700}.content-help-citations ul{margin:4px 0 0;padding-left:17px}.content-help-usage{margin:0;color:#64748b;font-size:11px}
.content-help-form{padding:9px 10px 10px;border-top:1px solid #e2e8f0;background:#fff}.content-help-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end}.content-help-input{box-sizing:border-box;width:100%;min-height:42px;max-height:100px;resize:vertical;padding:8px 9px;border:1px solid #cbd5e1;border-radius:9px;font:400 13px/1.45 system-ui,sans-serif}.content-help-send{min-width:58px;min-height:42px;padding:7px 10px;border:0;border-radius:9px;background:#4f46e5;color:#fff;font:700 13px/1 system-ui,sans-serif;cursor:pointer}.content-help-form-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px}.content-help-form-footer p{margin:0;color:#64748b;font-size:10px;line-height:1.35}.content-help-clear{border:0;background:transparent;color:#4338ca;font:700 11px/1.3 system-ui,sans-serif;white-space:nowrap;cursor:pointer}.content-guide-dialog [hidden]{display:none!important}
@media(max-width:480px){button.teacher-help-floating-button{left:calc(env(safe-area-inset-left,0px) + 10px);bottom:calc(env(safe-area-inset-bottom,0px) + 48px);min-width:92px;min-height:40px;padding:8px 13px;font-size:12.96px}dialog.content-guide-dialog{width:calc(100vw - 16px);height:min(70dvh,620px);min-width:0;min-height:280px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);resize:none}.content-guide-body{padding:0 14px 16px}.content-guide-select{width:calc(100% - 24px);margin:9px 12px 0}}
