:root{font-family:Trebuchet MS,Avenir Next,sans-serif;color:#213246;background:#86bef1;line-height:1.5;font-weight:400;color-scheme:light}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(180deg,#ffffff2e,#ffffff0a),#86bef1}button,textarea,input{font:inherit}button{border:0;cursor:pointer}.overlay-shell{position:relative;width:100vw;height:100vh;overflow:hidden}.background-frame{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0;background:#fff}.background-frame-inactive{pointer-events:none}.chat-overlay{position:absolute;z-index:2;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#f6fafff0;border:1px solid rgba(82,133,186,.38);border-radius:10px;box-shadow:0 20px 48px #21426638;overflow:hidden;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.chat-close-button{min-width:0;width:auto;height:auto;display:inline-flex;align-items:center;gap:.22rem;padding:.18rem .3rem;border-radius:0;background:transparent;border:0;color:#fff;font-weight:700;font-size:.88rem;line-height:1;box-shadow:none;text-shadow:0 2px 8px rgba(15,47,82,.2);letter-spacing:.02em}.chat-close-button-floating{position:absolute;top:12px;right:12px;z-index:4}.chat-close-icon{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.chat-close-text{font-size:.82rem}.chat-overlay-start{grid-template-rows:minmax(0,1fr);background:linear-gradient(180deg,#ffffff2e,#ffffff0a),#86bef1;border-color:#5285ba4d;-webkit-backdrop-filter:none;backdrop-filter:none}.start-card{width:min(420px,100%);margin:8rem auto 0;padding:1.25rem;background:#f6faffe6;border:1px solid rgba(82,133,186,.38);border-radius:8px;box-shadow:0 16px 32px #21426624}.start-card-inline{width:min(420px,calc(100% - 2rem));margin:auto;display:flex;flex-direction:column;justify-content:center;cursor:auto;-webkit-user-select:auto;user-select:auto}.start-drag-surface{width:100%;height:100%;display:flex;align-items:center;justify-content:center;cursor:move;-webkit-user-select:none;user-select:none}.start-card h2{margin:0 0 .4rem;font-size:1.15rem}.start-card p{margin:0 0 1rem;color:#406584}.start-form{display:grid;gap:.75rem}.start-form input{width:100%;padding:.85rem .9rem;border:1px solid rgba(120,164,204,.45);border-radius:4px;background:#fffffff0;color:#23364a;outline:none}.start-form input:focus{border-color:#4297d1;box-shadow:0 0 0 3px #4297d126}.start-form button{justify-self:flex-end;padding:.8rem 1.2rem;border-radius:4px;background:#0875e2;color:#fff;font-weight:700}.start-form button:disabled,.start-form input:disabled{opacity:.7;cursor:not-allowed}.start-error{margin:.85rem 0 0;color:#8a1d2c;font-size:.92rem}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1.15rem;background:#0875e2;border-bottom:1px solid rgba(0,0,0,.08)}.draggable-toolbar{cursor:move;-webkit-user-select:none;user-select:none}.toolbar-actions{display:flex;align-items:center;gap:.65rem}.toolbar-copy{display:grid;gap:.15rem}.toolbar h1{margin:0;font-size:1.25rem;line-height:1;color:#fff}.toolbar p{margin:0;font-size:.85rem;color:#ffffffe0}.help-button{min-width:74px;padding:.7rem 1rem;border-radius:999px;background:#ffffff2e;border:1px solid rgba(255,255,255,.28);color:#fff;font-weight:700;box-shadow:none}.help-button:disabled{opacity:.65;cursor:not-allowed}.workspace{margin:1rem;border:1px solid rgba(109,155,197,.42);border-radius:6px;background:#ffffffd1;overflow:hidden}.workspace-overlay{margin-bottom:0;min-height:0;display:flex;flex-direction:column}.chat-overlay-start .workspace-overlay{background:transparent;border:0}.workspace-overlay .message-list{min-height:0;max-height:none;height:100%}.message-list{min-height:430px;max-height:58vh;overflow:auto;padding:1.15rem;display:grid;gap:1rem;align-content:start;background:linear-gradient(180deg,#ffffffc2,#f5fafff5),#fff}.message-row{display:flex;width:100%;align-items:flex-start;gap:.75rem}.message-row.incoming{justify-content:flex-start}.message-row.outgoing{justify-content:flex-end;flex-direction:row-reverse}.message-card{display:flex;width:min(76%,42rem)}.message-bubble{width:100%;padding:.9rem 1rem .95rem;border-radius:18px;box-shadow:0 12px 24px #2646681a}.incoming .message-bubble{background:linear-gradient(180deg,#fefefe,#edf5ff);border:1px solid rgba(155,193,231,.9);border-bottom-left-radius:6px}.outgoing .message-bubble{background:linear-gradient(180deg,#84c2ff,#6eaef5);border:1px solid #5e9ee9;color:#23364a;border-bottom-right-radius:6px}.message-avatar{width:44px;height:44px;flex:0 0 44px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 10px 18px #26466824}.message-avatar-agent{background:linear-gradient(180deg,#2f8fff,#1b6fd0);color:#fff}.message-avatar-student{background:linear-gradient(180deg,#ffcf6b,#ffac47);color:#73420b}.message-avatar-svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.message-label{display:inline-flex;align-items:center;margin-bottom:.45rem;padding:.22rem .6rem;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;background:#ffffff8c;border:1px solid rgba(96,149,203,.2);color:#2e557a}.message-bubble p{margin:0 0 .45rem}.message-body-wrap{display:grid;gap:.45rem}.thinking-indicator{display:inline-flex;align-items:center;gap:.55rem;min-height:1.75rem;color:#35597b;font-weight:700}.thinking-text{font-size:.95rem}.thinking-dots{display:inline-flex;align-items:center;gap:.3rem}.thinking-dots span{width:.48rem;height:.48rem;border-radius:999px;background:#0875e2d9;animation:thinking-bounce 1s infinite ease-in-out}.thinking-dots span:nth-child(2){animation-delay:.16s}.thinking-dots span:nth-child(3){animation-delay:.32s}.message-body{margin:0;white-space:pre-wrap}.message-list-block{margin:0 0 0 1.15rem;padding:0}.message-list-block li+li{margin-top:.3rem}.message-body code,.message-list-block code{display:inline-block;padding:.12rem .38rem;border-radius:4px;background:#0875e224;border:1px solid rgba(8,117,226,.2);color:#12365c;font-family:SFMono-Regular,Consolas,monospace;font-size:.9em;font-weight:700}.message-meta{display:block;font-size:.78rem;opacity:.56}.feedback-panel{margin-top:.75rem;padding-top:.75rem;border-top:1px solid rgba(35,54,74,.1)}.feedback-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem}.feedback-actions button{padding:.45rem .72rem;border:1px solid rgba(120,164,204,.45);border-radius:4px;background:#ffffffdb;color:#23364a;transition:background-color .12s ease,border-color .12s ease}.feedback-actions button.selected{background:#77b2ff;border-color:#609eef;color:#23364a}.feedback-actions button:disabled{opacity:.65;cursor:not-allowed}.icon-button{width:2.8rem;height:2.8rem;display:inline-flex;align-items:center;justify-content:center;padding:0}.icon-button svg{width:1.35rem;height:1.35rem;fill:currentColor}.review-toggle{background:#ffffffb8;font-weight:700}.feedback-panel textarea{width:100%;resize:vertical;min-height:56px;border:1px solid rgba(120,164,204,.45);border-radius:4px;background:#ffffffeb;color:#23364a;padding:.65rem .75rem;outline:none}.feedback-panel textarea:focus{border-color:#4297d1;box-shadow:0 0 0 3px #4297d126}.review-form{display:grid;gap:.5rem}.send-review{justify-self:flex-end;padding:.45rem .75rem;border:1px solid rgb(8,117,226);border-radius:4px;background:#0875e2;color:#fff;font-weight:700}.send-review:disabled{opacity:.65;cursor:not-allowed}.feedback-status{margin-top:.45rem;font-size:.78rem;color:#406584}.composer{margin:0 1rem 1rem;padding:.95rem;border-radius:6px;background:#edf5fbd1;border:1px solid rgba(109,155,197,.38)}.chat-launcher{position:absolute;right:16px;bottom:16px;z-index:3;padding:.82rem 1rem;border-radius:999px;background:#0875e2;color:#fff;font-weight:700;box-shadow:0 14px 26px #21426638}.composer textarea{width:100%;min-height:92px;resize:vertical;border-radius:4px;border:1px solid rgba(120,164,204,.45);background:#fffffff0;color:#23364a;padding:.95rem 1rem;outline:none}.composer textarea:focus{border-color:#4297d1;box-shadow:0 0 0 3px #4297d126}.composer-footer{margin-top:.8rem;display:flex;justify-content:flex-end}.composer-footer button{min-width:92px;padding:.82rem 1.25rem;border-radius:999px;background:#0875e2;color:#fff;font-weight:700;box-shadow:none}.composer-footer button:disabled{opacity:.65;cursor:not-allowed}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes thinking-bounce{0%,80%,to{transform:translateY(0);opacity:.35}40%{transform:translateY(-4px);opacity:1}}@media (max-width: 980px){.chat-overlay{left:12px!important;top:12px!important;width:calc(100vw - 24px)!important;height:calc(100vh - 24px)!important}.toolbar{flex-direction:column;align-items:stretch}.toolbar-actions{justify-content:space-between}.message-bubble{width:min(88%,42rem)}.message-avatar{width:38px;height:38px;flex-basis:38px}.help-button{align-self:flex-start}}
