.student-copilot { --cp-navy: #0b2033; --cp-cyan: #81e4f4; font: 15px/1.5 'Segoe UI', Arial, sans-serif; color: #f5fbff; }
.student-copilot *, .student-copilot *::before, .student-copilot *::after { box-sizing: border-box; }
.student-copilot [hidden] { display: none !important; }
.student-copilot .copilot-aircraft { display: block; width: 29px; height: 29px; transform: rotate(25deg); }
.copilot-launch { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 1040; display: flex; align-items: center; gap: 13px; padding: 11px 16px 11px 11px; border: 1px solid #34576c; border-radius: 20px; background: linear-gradient(125deg, #15394d, #0b2033 75%); color: #fff; text-decoration: none; box-shadow: 0 12px 36px #0b20334d, inset 0 1px #ffffff1c; transition: transform .2s, box-shadow .2s; }
.copilot-launch:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 40px #0b203360; }
.copilot-launch-icon, .copilot-emblem { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #73d8e85c; border-radius: 50%; color: var(--cp-cyan); background: radial-gradient(circle, #2d596733 40%, transparent 42%, transparent 65%, #81e4f433 67%, transparent 70%); }
.copilot-launch-copy { display: grid; gap: 2px; }
.copilot-launch-copy strong { font-size: 14px; font-weight: 650; letter-spacing: .01em; }
.copilot-launch-copy > span { font-size: 9px; letter-spacing: .15em; color: #a8cfdf; }
.copilot-launch-plus { margin-left: 8px; font-size: 24px; color: var(--cp-cyan); font-weight: 300; }
.copilot-panel { position: fixed; z-index: 1040; right: max(24px, env(safe-area-inset-right)); bottom: calc(106px + env(safe-area-inset-bottom)); width: min(448px, calc(100vw - 32px)); height: min(710px, calc(100dvh - 132px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #34576c; border-radius: 24px; background: #f4f8fb; box-shadow: 0 24px 90px #0b20334d, 0 4px 16px #0b203322; }
.copilot-heading { display: flex; align-items: center; gap: 11px; flex-shrink: 0; padding: 20px 15px; background: radial-gradient(ellipse at 0 0, #25506a, transparent 80%), var(--cp-navy); border-bottom: 2px solid #81e4f4; }
.copilot-heading-text { min-width: 0; flex: 1; }
.copilot-kicker { display: block; font: 8px/1.5 'Segoe UI', sans-serif; letter-spacing: .10em; color: #9dbdcc; }
.copilot-heading h2 { margin: 4px 0 3px; font: 650 19px/1.2 'Segoe UI', sans-serif; letter-spacing: -.025em; color: #fff; }
.copilot-heading p { margin: 0; font-size: 11px; color: #bdd0db; }
.copilot-actions { display: flex; gap: 3px; }
.copilot-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 38px; padding: 7px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #c6e2eb; cursor: pointer; }
.copilot-icon-button:hover { color: white; background: #ffffff18; border-color: #ffffff33; }
.copilot-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.student-copilot :focus-visible { outline: 3px solid #0586a2; outline-offset: 4px; }
.copilot-heading :focus-visible { outline-color: #81e4f4; outline-offset: 0; }
.copilot-frame-wrap { flex: 1; min-height: 0; position: relative; }
#copilot-frame { display: block; border: 0; width: 100%; height: 100%; background: #f4f8fb; }
.copilot-loading { position: absolute; inset: 0; padding: 40px 25px; margin: 0; text-align: center; color: #25465b; background: #f4f8fb; }
.copilot-loading a { display: block; margin-top: 14px; color: #1b6177; }
body:has(.student-copilot) { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
@media (max-width: 600px) {
  .copilot-launch { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); padding: 9px 14px 9px 9px; border-radius: 18px; }
  .copilot-panel { inset: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); width: auto; height: auto; border-radius: 20px; }
  .student-copilot.is-open .copilot-launch { visibility: hidden; }
  .copilot-heading { padding: 16px 12px; gap: 9px; }
  .copilot-heading h2 { font-size: 18px; }
  .copilot-emblem { width: 37px; height: 37px; }
  .copilot-kicker { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) { .copilot-launch { transition: none; } }
.copilot-panel { transition: width .24s ease, height .24s ease, bottom .24s ease, right .24s ease; }
.student-copilot.is-expanded .copilot-panel { width: min(1140px, calc(100vw - 48px)); height: min(850px, calc(100dvh - 48px)); bottom: 24px; }
.student-copilot.is-expanded.is-open .copilot-launch { visibility: hidden; }
@media (max-width:600px) { .student-copilot.is-expanded .copilot-panel { width:auto;height:auto;bottom:max(10px, env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion:reduce) { .copilot-panel { transition:none; } }
