/* Gradebook SAVI Copilot — Visual Viewport Mobile Composer Stability — release 2026.08.31.143 */
.teacher-copilot-page{--copilot-blue:#2563eb;--copilot-ink:#0f172a;--copilot-muted:#64748b;--copilot-line:#dbe4f0;--copilot-soft:#f7f9fc;--copilot-surface:#fff;--copilot-shadow:0 18px 55px rgba(15,23,42,.08);min-width:0;max-width:100%}
.teacher-copilot-page *{box-sizing:border-box}.teacher-copilot-page button,.teacher-copilot-page a,.teacher-copilot-page textarea{font:inherit}.teacher-copilot-page button{touch-action:manipulation}
.copilot-shell{position:relative;display:block;min-width:0;max-width:1380px;height:calc(100dvh - 136px);min-height:560px;margin:0 auto;border:1px solid var(--copilot-line);border-radius:24px;overflow:hidden;background:var(--copilot-surface);box-shadow:var(--copilot-shadow)}
.teacher-copilot-page.public .copilot-shell{height:calc(100dvh - 34px);min-height:620px;margin:16px 0}.teacher-copilot-page.school{padding:14px 22px 26px}
.copilot-chat{height:100%;min-width:0;display:flex;flex-direction:column;background:var(--copilot-surface)}
.copilot-chat-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid #edf1f6;background:var(--copilot-surface);z-index:5}
.copilot-chat-primary{display:flex;align-items:center;gap:13px;min-width:0}.copilot-title{min-width:0}.copilot-kicker{display:block;font-size:10px;letter-spacing:.09em;font-weight:900;color:var(--copilot-blue);text-transform:uppercase}.copilot-title h1{margin:2px 0 1px;font-size:24px;line-height:1.15;letter-spacing:-.025em;color:var(--copilot-ink)}.copilot-title p{margin:0;color:var(--copilot-muted);font-size:12.5px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:560px}
.copilot-history-toggle{min-width:44px;min-height:44px;border:1px solid var(--copilot-line);border-radius:13px;background:var(--copilot-surface);color:#40516a;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 12px;cursor:pointer;font-weight:800}.copilot-history-toggle span{font-size:17px}.copilot-history-toggle:hover{border-color:#a7c2ff;background:#f8fbff;color:#1d4ed8}
.copilot-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;min-width:0}.copilot-context-pill,.copilot-price-pill{min-height:34px;display:inline-flex;align-items:center;border:1px solid var(--copilot-line);border-radius:999px;padding:5px 10px;font-size:11px;font-weight:800;background:#fff;color:#40516a;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.copilot-price-pill{color:#08754d;background:#f0fdf7;border-color:#b7ead5}.copilot-head-form{margin:0}.copilot-head-form button{width:40px;height:40px;border:1px solid var(--copilot-line);border-radius:12px;background:var(--copilot-surface);color:#4b5d75;cursor:pointer;font-weight:900;font-size:18px;display:grid;place-items:center}.copilot-head-form button:hover{border-color:#9bb9ff;color:#1d4ed8;background:#f8fbff}
.copilot-transcript{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:28px clamp(18px,5vw,72px) 122px;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
.copilot-empty{max-width:720px;margin:auto;text-align:center;padding:28px 0}.copilot-spark{width:46px;height:46px;display:grid;place-items:center;margin:0 auto 14px;border-radius:15px;background:#eef4ff;color:var(--copilot-blue);font-size:23px}.copilot-empty h2{margin:0;color:var(--copilot-ink);font-size:29px;letter-spacing:-.03em}.copilot-empty>p{max-width:590px;margin:10px auto 20px;color:var(--copilot-muted);font-size:14px;line-height:1.6}.copilot-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;text-align:left}.copilot-suggestions button{min-height:48px;padding:11px 13px;border:1px solid var(--copilot-line);background:#fff;border-radius:14px;color:#334155;text-align:left;cursor:pointer}.copilot-suggestions button:hover{border-color:#9bb9ff;background:#f7faff;color:#1748b5}
.copilot-message{max-width:840px;margin:0 auto 20px;display:flex;gap:11px;align-items:flex-start}.copilot-message.user{justify-content:flex-end}.copilot-message-bubble{max-width:min(76%,680px);padding:12px 15px;border-radius:18px 18px 5px 18px;background:#eef3fa;color:#172033;line-height:1.55}.copilot-avatar{flex:0 0 34px;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#eaf1ff;color:var(--copilot-blue);font-weight:900}.copilot-message-body{min-width:0;flex:1;color:#1e293b;line-height:1.65}.copilot-answer{font-size:15px;overflow-wrap:anywhere}.copilot-moves{margin-top:14px;padding:13px 15px;border-left:3px solid #a7c2ff;background:#f8fbff;border-radius:0 12px 12px 0}.copilot-moves b{font-size:13px}.copilot-moves ul{margin:7px 0 0;padding-left:20px}.copilot-moves li+li{margin-top:5px}.copilot-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}.copilot-actions a{display:inline-flex;align-items:center;min-height:40px;padding:7px 11px;border:1px solid #b9cdf9;border-radius:10px;text-decoration:none;color:#1d4ed8;font-weight:750;font-size:13px;background:#f8fbff}.copilot-grounding{margin-top:12px;color:var(--copilot-muted);font-size:13px}.copilot-grounding summary{cursor:pointer;font-weight:700;color:#526278}.copilot-grounding p{margin:7px 0 0}
.copilot-composer{position:absolute;left:clamp(18px,5vw,72px);right:clamp(18px,5vw,72px);bottom:16px;display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:8px;padding:8px 8px 7px 14px;border:1px solid #ccd8e8;background:#fff;border-radius:20px;box-shadow:0 14px 40px rgba(15,23,42,.13);z-index:7}.copilot-composer:focus-within{border-color:#80a8ff;box-shadow:0 0 0 3px rgba(37,99,235,.1),0 14px 40px rgba(15,23,42,.13)}.copilot-composer label{min-width:0}.copilot-composer textarea{width:100%;min-height:42px;max-height:150px;resize:none;border:0;outline:0;padding:10px 2px 6px;background:transparent;color:var(--copilot-ink);font-size:16px;line-height:1.45}.copilot-composer>button{width:48px;height:48px;border:0;border-radius:14px;background:var(--copilot-blue);color:#fff;font-weight:900;font-size:20px;cursor:pointer;align-self:end}.copilot-composer>button:disabled{opacity:.55;cursor:wait}.copilot-composer>small{grid-column:1/-1;color:#7b8799;font-size:10px;padding:0 3px 2px;line-height:1.35}
/* One app navigation + one optional conversation drawer. Never a permanent second sidebar. */
.copilot-conversations{position:absolute;z-index:31;top:0;right:0;bottom:0;width:min(330px,88%);display:flex;flex-direction:column;gap:12px;padding:16px 12px;background:#fff;border-left:1px solid var(--copilot-line);box-shadow:-20px 0 50px rgba(15,23,42,.18);transform:translateX(104%);visibility:hidden;transition:transform .2s ease,visibility .2s ease}.copilot-conversations.is-open{transform:translateX(0);visibility:visible}.copilot-conversations-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 4px}.copilot-conversations-head span{display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--copilot-muted);font-weight:900}.copilot-conversations-head b{display:block;margin-top:2px;font-size:17px;color:var(--copilot-ink)}.copilot-conversations-head button{width:44px;height:44px;border:0;border-radius:12px;background:#f3f6fa;color:#53657d;font-size:24px;cursor:pointer}.copilot-new-thread{margin:0}.copilot-new-thread button{width:100%;min-height:46px;border:1px solid #bed0f8;background:#eff5ff;color:#1748b5;border-radius:13px;font-weight:850;cursor:pointer}.copilot-conversations nav{display:flex;flex-direction:column;gap:4px;overflow:auto;min-height:0;-webkit-overflow-scrolling:touch}.copilot-conversations nav>a{display:flex;flex-direction:column;gap:3px;padding:11px;border-radius:11px;text-decoration:none;color:#334155;min-width:0}.copilot-conversations nav>a:hover,.copilot-conversations nav>a.active{background:#eaf1ff;color:#1748b5}.copilot-conversations nav>a span{font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.copilot-conversations nav>a small{font-size:11px;color:#7c8aa0}.copilot-conversations nav>p{padding:12px;color:var(--copilot-muted);font-size:13px;line-height:1.5}.copilot-history-scrim{position:absolute;inset:0;z-index:30;border:0;background:rgba(15,23,42,.3);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}.copilot-history-scrim.is-open{opacity:1;visibility:visible;pointer-events:auto}
/* Host-shell integration: the school app already owns page navigation and title chrome. */
body[data-gb-page="teacher-copilot"]>main.shell>.page-head{display:none!important}body[data-gb-page="teacher-copilot"]>.site-footer{display:none!important}body[data-gb-page="teacher-copilot"]>main.shell{min-width:0!important;max-width:none!important}.teacher-copilot-page.school .copilot-shell{max-width:1320px}
/* Landing: SAVI becomes a full-width third choice instead of colliding with the school sign-in cards. */
.landing-body .hero-actions.teacher-ai-available{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}.landing-body .hero-actions.teacher-ai-available>article[data-teacher-ai-card]{grid-column:1/-1!important;position:static!important;transform:none!important;inset:auto!important;width:100%!important;max-width:none!important;margin:0!important}.landing-body .hero-actions.teacher-ai-available>article[data-teacher-ai-card] .landing-primary.teacher-ai{width:100%;justify-content:space-between}.landing-body .hero-actions.teacher-ai-available>article[data-teacher-ai-card] .teacher-ai-start{text-align:left;margin-top:4px}
.copilot-admin-panel{margin-top:18px}.copilot-admin-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:16px 0}.copilot-admin-metrics article{border:1px solid #e1e8f1;border-radius:12px;padding:12px;background:#fafcff}.copilot-admin-metrics span{display:block;color:#68758a;font-size:11px}.copilot-admin-metrics strong{display:block;margin-top:4px;font-size:21px}.copilot-admin-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.copilot-admin-controls>label:not(.tai-check){display:flex;flex-direction:column;gap:6px;font-weight:700}.copilot-admin-controls select,.copilot-admin-controls input{min-height:44px;border:1px solid #d4deea;border-radius:9px;padding:8px;background:#fff}.copilot-admin-guard{border:1px solid #cfe4da;background:#f5fcf8;border-radius:12px;padding:12px;display:flex;justify-content:space-between;gap:12px}.copilot-admin-guard span{color:#08754d;font-weight:800}
html[data-theme="dark"] .teacher-copilot-page{--copilot-ink:#eef4ff;--copilot-muted:#9aabc2;--copilot-line:#29405d;--copilot-soft:#112136;--copilot-surface:#0e1b2d;--copilot-shadow:0 18px 48px rgba(0,0,0,.28)}html[data-theme="dark"] .copilot-chat-head,html[data-theme="dark"] .copilot-composer,html[data-theme="dark"] .copilot-conversations{background:#0e1b2d;border-color:#29405d}html[data-theme="dark"] .copilot-history-toggle,html[data-theme="dark"] .copilot-head-form button,html[data-theme="dark"] .copilot-context-pill,html[data-theme="dark"] .copilot-suggestions button{background:#152941;color:#e8f0ff;border-color:#31506f}html[data-theme="dark"] .copilot-message-bubble{background:#1d314a;color:#eef4ff}html[data-theme="dark"] .copilot-moves{background:#122844}html[data-theme="dark"] .copilot-conversations nav>a{color:#c4d2e7}html[data-theme="dark"] .copilot-conversations nav>a:hover,html[data-theme="dark"] .copilot-conversations nav>a.active{background:#17365f;color:#fff}html[data-theme="dark"] .copilot-conversations-head button{background:#152941;color:#d8e4f5}html[data-theme="dark"] .copilot-new-thread button{background:#17365f;color:#e8f0ff;border-color:#315b8f}html[data-theme="dark"] .copilot-admin-controls select,html[data-theme="dark"] .copilot-admin-controls input{background:#102238;color:#eef4ff;border-color:#31506f}
@media(max-width:1080px){.copilot-title p{max-width:390px}.copilot-admin-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.copilot-context-pill{max-width:170px}}
@media(max-width:820px){.landing-body .hero-actions.teacher-ai-available{grid-template-columns:1fr!important}.landing-body .hero-actions.teacher-ai-available>article[data-teacher-ai-card]{grid-column:auto!important}}
@media(max-width:767px){
  .teacher-copilot-page.school{padding:0!important;margin:0!important;width:100%!important;max-width:100%!important}.teacher-copilot-page.public{padding:0!important}.teacher-copilot-page .copilot-shell{height:auto;min-height:calc(100dvh - 68px);margin:0;border:0;border-radius:0;box-shadow:none}.teacher-copilot-page.public .copilot-shell{height:auto;min-height:100dvh;margin:0}.teacher-copilot-page.school .copilot-shell{min-height:calc(100dvh - var(--gb-u-dock-space,76px) - 68px)}
  .copilot-chat-head{padding:10px 12px;gap:8px;align-items:center;position:sticky;top:0}.copilot-chat-primary{gap:8px}.copilot-history-toggle{width:44px;min-width:44px;height:44px;padding:0}.copilot-history-toggle b{display:none}.copilot-title h1{font-size:18px;margin:0}.copilot-kicker,.copilot-title p{display:none}.copilot-head-actions{gap:5px;flex-wrap:nowrap}.copilot-context-pill{max-width:112px;min-height:32px;padding:4px 8px;font-size:10px}.copilot-price-pill{min-height:32px;padding:4px 8px;font-size:10px;max-width:110px}.copilot-head-form button{width:44px;height:44px}
  .copilot-transcript{padding:18px 12px 132px;min-height:calc(100dvh - 132px)}.teacher-copilot-page.school .copilot-transcript{padding-bottom:calc(132px + var(--gb-u-dock-space,76px))}.copilot-empty{padding:8vh 0 22px}.copilot-empty h2{font-size:23px}.copilot-empty>p{font-size:13.5px;margin-bottom:14px}.copilot-suggestions{display:flex;gap:8px;overflow-x:auto;padding:2px 1px 8px;scroll-snap-type:x proximity;scrollbar-width:none}.copilot-suggestions::-webkit-scrollbar{display:none}.copilot-suggestions button{flex:0 0 min(82vw,300px);min-height:48px;scroll-snap-align:start;font-size:13px}
  .copilot-message{margin-bottom:16px;gap:8px}.copilot-message-bubble{max-width:88%;font-size:14px}.copilot-avatar{width:30px;height:30px;flex-basis:30px}.copilot-answer{font-size:14.5px}.copilot-actions a{min-height:44px}.copilot-composer{position:fixed;left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));grid-template-columns:minmax(0,1fr) 46px;border-radius:18px;padding:6px 6px 5px 12px}.teacher-copilot-page.school .copilot-composer{bottom:calc(var(--gb-u-dock-space,76px) + max(8px,env(safe-area-inset-bottom)))}.copilot-composer>button{width:46px;height:46px}.copilot-composer>small{display:none}
  .copilot-conversations{position:fixed;top:0;right:0;bottom:0;width:min(88vw,330px);height:100vh;height:100dvh;padding-top:max(14px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom));z-index:1005}.copilot-history-scrim{position:fixed;z-index:1004}.copilot-admin-metrics,.copilot-admin-controls{grid-template-columns:1fr}.copilot-admin-guard{flex-direction:column;gap:5px}
  body.gb-u-keyboard-open .teacher-copilot-page.school .copilot-composer{bottom:max(8px,env(safe-area-inset-bottom))}
}
@media(max-width:430px){.copilot-context-pill{display:none}.copilot-empty{padding-top:6vh}.copilot-empty h2{font-size:22px}.copilot-transcript{padding-left:10px;padding-right:10px}.copilot-message-bubble{max-width:92%}}
@media(max-width:360px){.copilot-price-pill{display:none}.copilot-chat-head{padding-left:8px;padding-right:8px}.copilot-empty>p{font-size:13px}.copilot-composer textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.copilot-transcript{scroll-behavior:auto}.copilot-conversations,.copilot-history-scrim{transition:none}}
@media print{.copilot-composer,.copilot-chat-head,.copilot-conversations,.copilot-history-scrim{display:none!important}.copilot-shell{height:auto!important;min-height:0!important;border:0!important;box-shadow:none!important}.copilot-transcript{overflow:visible!important;padding:0!important}}

/* Step 5.93 — SAVI Copilot Professional Instructional Experience */
.teacher-copilot-page{--copilot-violet:#6d43e6;--copilot-green:#07815a;--copilot-bg:#f5f8fc}.teacher-copilot-page.public{background:radial-gradient(circle at 90% 4%,rgba(109,67,230,.055),transparent 25%)}
.teacher-copilot-page.public .copilot-shell{border-color:#d8e2ef;box-shadow:0 28px 74px rgba(25,52,91,.105)}.copilot-chat{background:linear-gradient(180deg,var(--copilot-surface),color-mix(in srgb,var(--copilot-bg) 48%,var(--copilot-surface)))}
.copilot-chat-head{min-height:82px;padding:14px 24px;background:color-mix(in srgb,var(--copilot-surface) 94%,transparent);backdrop-filter:blur(16px);box-shadow:0 1px 0 color-mix(in srgb,var(--copilot-line) 66%,transparent)}
.copilot-product-mark{width:40px;height:40px;display:grid;place-items:center;flex:0 0 40px;border-radius:13px;background:linear-gradient(135deg,#2869ee,#7243e5);color:#fff;font-size:15px;font-weight:900;box-shadow:0 9px 22px rgba(75,76,223,.2)}
.copilot-title h1{display:flex;align-items:center;gap:9px;font-size:25px}.copilot-online{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid color-mix(in srgb,var(--copilot-green) 20%,var(--copilot-line));border-radius:999px;background:color-mix(in srgb,var(--copilot-green) 7%,var(--copilot-surface));color:var(--copilot-green);font-size:8px;font-weight:850;letter-spacing:.03em}.copilot-online i{width:6px;height:6px;border-radius:50%;background:var(--copilot-green);box-shadow:0 0 0 4px color-mix(in srgb,var(--copilot-green) 10%,transparent)}
.copilot-history-toggle{border-color:#d5dfec;transition:transform .2s ease,border-color .2s ease,background .2s ease}.copilot-history-toggle:hover,.copilot-head-form button:hover{transform:translateY(-1px)}.copilot-price-pill{gap:5px}.copilot-price-pill::before{content:"✓";width:17px;height:17px;display:grid;place-items:center;border-radius:50%;background:#dff7ec;font-size:8px}
.copilot-transcript{padding:34px clamp(20px,6vw,92px) 164px;background:linear-gradient(180deg,color-mix(in srgb,var(--copilot-surface) 96%,transparent),color-mix(in srgb,var(--copilot-bg) 60%,var(--copilot-surface)))}
.copilot-empty{max-width:820px}.copilot-empty-kicker{display:block;margin-bottom:6px;color:var(--copilot-blue);font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.copilot-spark{position:relative;width:56px;height:56px;border-radius:18px;background:linear-gradient(135deg,#edf4ff,#f2ecff);color:var(--copilot-violet);box-shadow:0 12px 30px rgba(71,82,184,.1)}.copilot-spark::after{content:"";position:absolute;inset:-7px;border:1px solid color-mix(in srgb,var(--copilot-blue) 12%,transparent);border-radius:23px}.copilot-empty h2{font-size:clamp(30px,3vw,42px)}.copilot-empty>p{max-width:660px;font-size:15px}.copilot-capability-row{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin:-4px 0 22px}.copilot-capability-row span{padding:6px 9px;border:1px solid var(--copilot-line);border-radius:999px;background:var(--copilot-surface);color:var(--copilot-muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.copilot-suggestions{gap:11px}.copilot-suggestions button{position:relative;display:grid;grid-template-columns:30px 1fr 18px;align-items:center;gap:10px;min-height:66px;padding:11px 13px;border-radius:16px;box-shadow:0 8px 22px rgba(15,23,42,.035);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.copilot-suggestions button>span{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#edf4ff;color:var(--copilot-blue);font-weight:900}.copilot-suggestions button b{font-size:12px;line-height:1.35}.copilot-suggestions button i{font-style:normal;color:#94a3b8}.copilot-suggestions button:hover{transform:translateY(-2px);box-shadow:0 13px 28px rgba(37,99,235,.08)}
.copilot-message{max-width:960px;margin-bottom:26px}.copilot-message.user{padding-left:72px}.copilot-message-bubble{max-width:min(78%,720px);padding:13px 17px;border:1px solid color-mix(in srgb,var(--copilot-blue) 7%,var(--copilot-line));border-radius:18px 18px 5px 18px;background:linear-gradient(135deg,#edf3fb,#f1f5fb);box-shadow:0 7px 18px rgba(15,23,42,.035);font-size:14px}.copilot-message.assistant{position:relative;padding-bottom:5px}.copilot-avatar{width:39px;height:39px;flex-basis:39px;border-radius:13px;background:linear-gradient(135deg,#eaf2ff,#f0eaff);color:var(--copilot-violet);box-shadow:0 7px 16px rgba(63,83,190,.09)}.copilot-avatar span{font-size:16px}.copilot-message-body{max-width:850px}.copilot-response-label{display:flex;align-items:center;gap:7px;margin:1px 0 7px}.copilot-response-label b{font-size:12px;color:var(--copilot-ink)}.copilot-response-label span{font-size:9px;color:var(--copilot-muted);padding-left:7px;border-left:1px solid var(--copilot-line)}
.copilot-answer{font-size:15px;line-height:1.72;color:color-mix(in srgb,var(--copilot-ink) 92%,var(--copilot-muted))}.copilot-answer p{margin:0 0 12px}.copilot-answer h3{margin:21px 0 8px;color:var(--copilot-ink);font-size:15px;line-height:1.35}.copilot-answer h3:first-child{margin-top:0}.copilot-answer ul,.copilot-answer ol{margin:7px 0 14px;padding-left:22px}.copilot-answer li{padding-left:3px;margin:5px 0}.copilot-answer strong{color:var(--copilot-ink);font-weight:780}
.copilot-guidance-card{display:grid;grid-template-columns:34px 1fr;gap:12px;margin-top:15px;padding:15px 16px;border:1px solid #d9e5f5;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#f4f8ff)}.copilot-guidance-card.support{border-color:#e1dcf7;background:linear-gradient(135deg,#fbfaff,#f7f4ff)}.copilot-guidance-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#e7f0ff;color:var(--copilot-blue);font-weight:900}.copilot-guidance-card.support .copilot-guidance-icon{background:#eee9ff;color:var(--copilot-violet)}.copilot-guidance-card>div:last-child>b{font-size:12px}.copilot-guidance-card ol,.copilot-guidance-card ul{margin:8px 0 0;padding-left:19px;font-size:13px;line-height:1.55}.copilot-guidance-card li+li{margin-top:6px}
.copilot-assessment-check{display:grid;grid-template-columns:30px 1fr;gap:11px;align-items:start;margin-top:12px;padding:13px 15px;border:1px solid #cce7dc;border-radius:14px;background:#f4fbf8}.copilot-assessment-check>span{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#dcf6ea;color:var(--copilot-green);font-weight:900}.copilot-assessment-check b{font-size:11px;color:#086946;text-transform:uppercase;letter-spacing:.05em}.copilot-assessment-check p{margin:3px 0 0;color:#31584a;font-size:12px;line-height:1.5}
.copilot-actions{margin-top:15px;padding-top:12px;border-top:1px solid color-mix(in srgb,var(--copilot-line) 72%,transparent)}.copilot-actions>span{width:100%;font-size:9px;color:var(--copilot-muted);font-weight:850;text-transform:uppercase;letter-spacing:.07em}.copilot-actions a{border-radius:11px;background:var(--copilot-surface);transition:transform .18s ease,box-shadow .18s ease}.copilot-actions a:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(37,99,235,.09)}.copilot-actions a b{margin-left:8px}
.copilot-follow-ups{margin-top:18px}.copilot-follow-ups>b{display:block;margin-bottom:8px;font-size:11px;color:var(--copilot-muted)}.copilot-follow-ups>div{display:flex;flex-wrap:wrap;gap:7px}.copilot-follow-ups button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;padding:7px 10px;border:1px solid var(--copilot-line);border-radius:11px;background:var(--copilot-surface);color:#34445b;font-size:11px;text-align:left;cursor:pointer}.copilot-follow-ups button:hover{border-color:#a8c2f9;background:#f8fbff;color:#1748b5}.copilot-follow-ups button span{color:var(--copilot-blue)}
.copilot-grounding{margin-top:13px;padding:10px 12px;border-radius:11px;background:color-mix(in srgb,var(--copilot-bg) 70%,var(--copilot-surface))}.copilot-grounding summary{display:flex;align-items:center;gap:7px;font-size:11px}.copilot-grounding summary span{color:var(--copilot-green)}.copilot-grounding p{font-size:11px;line-height:1.55}
.copilot-response-tools{display:flex;align-items:center;gap:8px;margin-top:9px;color:var(--copilot-muted);font-size:9px}.copilot-response-tools>button{display:flex;align-items:center;gap:5px;border:0;background:transparent;color:var(--copilot-muted);padding:5px 4px;cursor:pointer;font-size:9px}.copilot-response-tools>button:hover{color:var(--copilot-blue)}.copilot-copy-state{color:var(--copilot-green);font-weight:800}.copilot-response-tools>div{display:flex;align-items:center;gap:4px;margin-left:auto}.copilot-response-tools>div>button{width:26px;height:26px;display:grid;place-items:center;border:1px solid var(--copilot-line);border-radius:8px;background:var(--copilot-surface);color:var(--copilot-muted);cursor:pointer}.copilot-response-tools>div>button.is-selected{border-color:#aac2f5;background:#edf4ff;color:var(--copilot-blue)}
.copilot-composer{left:clamp(20px,6vw,92px);right:clamp(20px,6vw,92px);bottom:18px;grid-template-columns:auto minmax(0,1fr) 50px;gap:7px;padding:8px 8px 6px 12px;border-radius:22px;border-color:#c9d7e9;box-shadow:0 19px 55px rgba(27,48,79,.17),0 0 0 1px rgba(255,255,255,.75)}.copilot-composer-brand{display:flex;align-items:center;gap:6px;align-self:start;height:42px;padding:0 8px 0 2px;color:var(--copilot-violet)}.copilot-composer-brand span{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#eeeaff;font-size:11px}.copilot-composer-brand b{font-size:10px;white-space:nowrap}.copilot-composer textarea{min-height:44px;max-height:170px;padding:10px 2px 7px}.copilot-composer>button{width:50px;height:50px;border-radius:15px;background:linear-gradient(135deg,#2165eb,#315fe9 55%,#6745e5);box-shadow:0 9px 20px rgba(47,92,224,.22);transition:transform .18s ease,box-shadow .18s ease}.copilot-composer>button:hover{transform:translateY(-1px);box-shadow:0 12px 25px rgba(47,92,224,.29)}.copilot-composer-foot{grid-column:1/-1;display:flex;align-items:center;gap:14px;padding:0 4px 1px;color:#8692a4;font-size:8px}.copilot-composer-foot small{margin-left:auto;font-size:8px}.copilot-composer-foot em{font-style:normal;font-size:8px;font-variant-numeric:tabular-nums}
.copilot-thinking{max-width:960px;margin:0 auto 22px;display:flex;gap:11px;align-items:center;color:var(--copilot-muted);font-size:11px}.copilot-thinking span{display:flex;gap:4px}.copilot-thinking i{width:6px;height:6px;border-radius:50%;background:var(--copilot-violet);animation:copilotThinking 1.1s ease-in-out infinite}.copilot-thinking i:nth-child(2){animation-delay:.15s}.copilot-thinking i:nth-child(3){animation-delay:.3s}@keyframes copilotThinking{0%,100%{opacity:.3;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}
html[data-theme="dark"] .copilot-chat{background:linear-gradient(180deg,#0e1b2d,#0a1727)}html[data-theme="dark"] .copilot-transcript{background:linear-gradient(180deg,#0e1b2d,#0b1828)}html[data-theme="dark"] .copilot-message-bubble{background:#192b42;border-color:#29405d;color:#eef4ff}html[data-theme="dark"] .copilot-guidance-card{background:#122743;border-color:#284766}html[data-theme="dark"] .copilot-guidance-card.support{background:#211d3b;border-color:#3c3560}html[data-theme="dark"] .copilot-assessment-check{background:#102d27;border-color:#245044}html[data-theme="dark"] .copilot-assessment-check p{color:#b4d8ca}html[data-theme="dark"] .copilot-follow-ups button,html[data-theme="dark"] .copilot-actions a{background:#14263c;color:#dbe8f9;border-color:#294766}html[data-theme="dark"] .copilot-composer-brand span{background:#2a2450}html[data-theme="dark"] .copilot-grounding{background:#122238}
@media(max-width:900px){.copilot-product-mark{display:none}.copilot-message.user{padding-left:35px}.copilot-composer-brand b{display:none}}
@media(max-width:767px){.copilot-chat-head{min-height:64px}.copilot-title h1{font-size:18px}.copilot-online{display:none}.copilot-transcript{padding:20px 13px 148px}.copilot-message{margin-bottom:20px}.copilot-message.user{padding-left:25px}.copilot-message-body{max-width:calc(100% - 38px)}.copilot-response-label span{display:none}.copilot-guidance-card{padding:13px 12px}.copilot-follow-ups>div{display:grid}.copilot-follow-ups button{width:100%}.copilot-composer{grid-template-columns:minmax(0,1fr) 47px;padding-left:12px}.copilot-composer-brand{display:none}.copilot-composer>button{width:47px;height:47px}.copilot-composer-foot span,.copilot-composer-foot em{display:none}.copilot-composer-foot small{margin:0}.copilot-response-tools>div>span{display:none}}
@media(max-width:430px){.copilot-capability-row{gap:5px}.copilot-capability-row span{font-size:8px}.copilot-suggestions button{flex-basis:min(86vw,310px)}.copilot-message-bubble{max-width:94%}.copilot-avatar{width:32px;height:32px;flex-basis:32px}.copilot-guidance-card{grid-template-columns:28px 1fr}.copilot-guidance-icon{width:28px;height:28px}.copilot-assessment-check{grid-template-columns:27px 1fr}.copilot-actions a{width:100%;justify-content:space-between}}
@media(prefers-reduced-motion:reduce){.copilot-thinking i{animation:none}.copilot-suggestions button,.copilot-composer>button,.copilot-actions a{transition:none}}

/* Step 5.95 — Stable Copilot Viewport & Conversation Library */
.tai-app>.tai-workspace.teacher-copilot-page.public{max-width:none!important;height:100dvh!important;min-height:0!important;margin:0!important;padding:14px 18px!important;overflow:hidden!important}
.teacher-copilot-page.public .copilot-shell{height:calc(100dvh - 28px)!important;min-height:0!important;margin:0!important;max-width:1480px!important}
.teacher-copilot-page .copilot-chat{height:100%!important;min-height:0!important;overflow:hidden!important}
.teacher-copilot-page .copilot-transcript{flex:1 1 auto!important;min-height:0!important;padding-bottom:28px!important;scrollbar-gutter:stable}
.teacher-copilot-page .copilot-composer{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;flex:0 0 auto!important;width:auto!important;margin:10px clamp(20px,6vw,92px) 16px!important;z-index:7}
.teacher-copilot-page .copilot-transcript::after{content:"";display:block;height:2px}
.copilot-conversations{width:min(410px,94%)!important;padding:0!important;gap:0!important;background:color-mix(in srgb,var(--copilot-surface) 97%,var(--copilot-bg))!important;border-radius:24px 0 0 24px;box-shadow:-28px 0 70px rgba(15,23,42,.2)}
.copilot-conversations-head{min-height:94px;padding:18px 18px 14px!important;border-bottom:1px solid var(--copilot-line);background:var(--copilot-surface)}.copilot-conversations-head>div{display:grid;gap:2px}.copilot-conversations-head span{color:var(--copilot-blue)}.copilot-conversations-head b{font-size:20px!important;letter-spacing:-.02em}.copilot-conversations-head small{font-size:10px;color:var(--copilot-muted)}.copilot-conversations-head button{align-self:start;background:var(--copilot-bg)!important;transition:transform .18s ease,background .18s ease}.copilot-conversations-head button:hover{transform:rotate(4deg);background:#eaf1ff!important;color:var(--copilot-blue)}
.copilot-new-thread{padding:14px 16px 10px!important}.copilot-new-thread button{min-height:50px!important;display:flex;align-items:center;justify-content:center;gap:9px;border:0!important;background:linear-gradient(105deg,#2266ea,#315fe9 56%,#6944e5)!important;color:#fff!important;box-shadow:0 9px 22px rgba(48,90,220,.18)}.copilot-new-thread button span{font-size:17px}.copilot-new-thread button b{font-size:12px}.copilot-new-thread button:hover{filter:brightness(1.04);transform:translateY(-1px)}
.copilot-history-search{display:flex!important;align-items:center!important;gap:8px!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0 16px 14px!important;padding:0 12px!important;overflow:hidden!important;border:1px solid var(--copilot-line);border-radius:12px;background:var(--copilot-surface);color:var(--copilot-muted)}.copilot-history-search:focus-within{border-color:#91b1f5;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.copilot-history-search>span{flex:0 0 18px;font-size:18px;line-height:1}.copilot-history-search input{display:block!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;height:42px!important;margin:0!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important;color:var(--copilot-ink);font-size:12px;line-height:42px}.copilot-history-search input::placeholder{color:#94a3b8;opacity:1}
.copilot-history-section{padding:0 20px 8px}.copilot-history-section span{font-size:8px;font-weight:900;letter-spacing:.085em;color:var(--copilot-muted);text-transform:uppercase}
.copilot-conversations nav{flex:1 1 auto!important;padding:0 10px 12px!important;gap:4px!important}.copilot-conversations nav>a.copilot-thread-card{display:grid!important;grid-template-columns:38px minmax(0,1fr) 18px!important;align-items:center!important;gap:10px!important;min-height:66px;padding:9px 10px!important;border:1px solid transparent;border-radius:14px!important;color:var(--copilot-ink)!important;transition:background .18s ease,border-color .18s ease,transform .18s ease}.copilot-thread-card>i{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#edf3fb;color:#56708f;font-style:normal;font-size:11px;font-weight:900}.copilot-thread-card>span{display:grid!important;gap:4px!important;min-width:0}.copilot-thread-card>span>b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:1.3}.copilot-thread-card>span>small{font-size:9px!important;color:var(--copilot-muted)!important}.copilot-thread-card>em{font-style:normal;color:#9aa8ba;font-size:20px}.copilot-conversations nav>a.copilot-thread-card:hover{background:var(--copilot-surface)!important;border-color:var(--copilot-line);transform:translateX(2px)}.copilot-conversations nav>a.copilot-thread-card.active{background:linear-gradient(110deg,#eaf2ff,#f0edff)!important;border-color:#cbdafa;color:#1748b5!important}.copilot-thread-card.active>i{background:linear-gradient(135deg,#2868eb,#6c45e4);color:#fff}.copilot-thread-card.active>em{color:var(--copilot-blue)}
.copilot-history-empty{display:grid;justify-items:center;gap:5px;padding:36px 22px;text-align:center;color:var(--copilot-muted)}.copilot-history-empty>span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#edf3ff;color:var(--copilot-blue)}.copilot-history-empty b{color:var(--copilot-ink);font-size:12px}.copilot-history-empty p{margin:0;max-width:230px;font-size:10px;line-height:1.45}.copilot-history-foot{min-height:64px;display:grid;grid-template-columns:26px 1fr;align-items:center;gap:9px;padding:11px 18px;border-top:1px solid var(--copilot-line);background:var(--copilot-surface)}.copilot-history-foot>span{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#e2f7ed;color:var(--copilot-green);font-size:9px}.copilot-history-foot p{display:grid;gap:2px;margin:0}.copilot-history-foot b{font-size:9px}.copilot-history-foot small{font-size:8px;color:var(--copilot-muted)}
.copilot-thread-card[hidden]{display:none!important}
html[data-theme="dark"] .copilot-history-search,html[data-theme="dark"] .copilot-history-foot,html[data-theme="dark"] .copilot-conversations-head{background:#0e1b2d}html[data-theme="dark"] .copilot-thread-card>i{background:#172b44;color:#c9d8ea}html[data-theme="dark"] .copilot-conversations nav>a.copilot-thread-card.active{background:linear-gradient(110deg,#17365f,#29264f)!important;border-color:#385887;color:#fff!important}
@media(max-width:900px){.tai-app>.tai-workspace.teacher-copilot-page.public{height:100dvh!important;padding:0!important}.teacher-copilot-page.public .copilot-shell{height:100dvh!important;border-radius:0!important}.teacher-copilot-page .copilot-composer{margin:8px 12px max(10px,env(safe-area-inset-bottom))!important}.copilot-conversations{position:fixed!important;inset:0 0 0 auto!important;height:100dvh!important;border-radius:18px 0 0 18px!important;z-index:1005!important}}
@media(max-width:767px){.teacher-copilot-page .copilot-composer{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important}.teacher-copilot-page .copilot-transcript{min-height:0!important;padding-bottom:18px!important}.teacher-copilot-page.school .copilot-composer{bottom:auto!important}.copilot-conversations{width:min(92vw,390px)!important}}
@media(max-width:430px){.teacher-copilot-page .copilot-composer{margin-inline:8px!important}.copilot-conversations{width:94vw!important}.copilot-conversations-head{min-height:88px;padding-inline:14px!important}.copilot-new-thread{padding-inline:12px!important}.copilot-history-search{margin-inline:12px}.copilot-conversations nav{padding-inline:7px!important}}


/* Step 5.121 — iOS/Android visual-keyboard stability — release 2026.08.31.143 */
@media (max-width:900px){
  html.copilot-mobile-active,
  html.copilot-mobile-active body{
    width:100%;
    max-width:100%;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  html.copilot-mobile-active body.teacher-ai-public{
    min-height:0!important;
    height:var(--copilot-vvh,100dvh)!important;
  }
  html.copilot-mobile-active .tai-app{
    height:var(--copilot-vvh,100dvh)!important;
    min-height:0!important;
    max-height:var(--copilot-vvh,100dvh)!important;
    overflow:hidden!important;
  }
  html.copilot-mobile-active .tai-app>.tai-workspace.teacher-copilot-page.public{
    height:var(--copilot-vvh,100dvh)!important;
    min-height:0!important;
    max-height:var(--copilot-vvh,100dvh)!important;
    overflow:hidden!important;
  }
  html.copilot-mobile-active .teacher-copilot-page.public .copilot-shell{
    height:var(--copilot-vvh,100dvh)!important;
    min-height:0!important;
    max-height:var(--copilot-vvh,100dvh)!important;
    overflow:hidden!important;
  }
  html.copilot-mobile-active .teacher-copilot-page.public .copilot-chat{
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  html.copilot-mobile-active .teacher-copilot-page .copilot-transcript{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch;
  }
  html.copilot-mobile-active .teacher-copilot-page .copilot-composer{
    flex:0 0 auto!important;
    position:relative!important;
    transform:none!important;
  }
  html.copilot-mobile-active.copilot-keyboard-open .teacher-copilot-page.public .copilot-chat-head{
    flex:0 0 auto!important;
  }
  html.copilot-mobile-active.copilot-keyboard-open .teacher-copilot-page .copilot-composer{
    margin-bottom:max(6px,env(safe-area-inset-bottom))!important;
  }
  html.copilot-mobile-active.copilot-keyboard-open .teacher-copilot-page .copilot-transcript{
    scroll-padding-bottom:12px;
  }
}

@media (max-width:767px) and (max-height:540px){
  html.copilot-mobile-active.copilot-keyboard-open .copilot-chat-head{
    min-height:52px!important;
    padding-top:7px!important;
    padding-bottom:7px!important;
  }
  html.copilot-mobile-active.copilot-keyboard-open .copilot-title p,
  html.copilot-mobile-active.copilot-keyboard-open .copilot-kicker,
  html.copilot-mobile-active.copilot-keyboard-open .copilot-price-pill,
  html.copilot-mobile-active.copilot-keyboard-open .copilot-context-pill{
    display:none!important;
  }
  html.copilot-mobile-active.copilot-keyboard-open .copilot-title h1{
    font-size:16px!important;
    margin:0!important;
  }
  html.copilot-mobile-active.copilot-keyboard-open .copilot-history-toggle{
    min-width:40px!important;
    min-height:40px!important;
    padding-inline:10px!important;
  }
  html.copilot-mobile-active.copilot-keyboard-open .copilot-history-toggle b{
    display:none!important;
  }
  html.copilot-mobile-active.copilot-keyboard-open .teacher-copilot-page .copilot-composer{
    margin-top:5px!important;
  }
}

/* Step 5.212 — SAVI Copilot privacy reminder */
.copilot-composer-privacy{grid-column:1/-1;margin:2px 0 0;padding:6px 9px;border-radius:8px;font-size:10px;line-height:1.35;color:var(--copilot-muted,#64748b);background:color-mix(in srgb,#0f766e 5%,transparent);border:1px solid color-mix(in srgb,#0f766e 14%,transparent)}
.copilot-composer-privacy.is-risk{color:#b91c1c;background:color-mix(in srgb,#dc2626 7%,transparent);border-color:color-mix(in srgb,#dc2626 30%,transparent);font-weight:760}
.copilot-composer [aria-invalid="true"]{outline:2px solid #dc2626!important;outline-offset:2px}
[data-theme="dark"] .copilot-composer-privacy.is-risk{color:#fca5a5}
@media(max-width:600px){.copilot-composer-privacy{font-size:9px;padding:5px 7px}}

/* Step 5.215 — SAVI Grounded Copilot & Connected Teaching Workflow */
.copilot-grounding-badge{min-height:34px;display:inline-flex;align-items:center;border:1px solid #cbd5e1;border-radius:999px;padding:5px 10px;font-size:10px;font-weight:850;background:#fff;color:#475569;white-space:nowrap}
.copilot-grounding-badge.lesson{background:#fff7ed;border-color:#fed7aa;color:#c2410c}.copilot-grounding-badge.scheme{background:#eef6ff;border-color:#bfdbfe;color:#1d4ed8}.copilot-grounding-badge.curriculum{background:#effcf6;border-color:#bbf7d0;color:#047857}.copilot-grounding-badge.context{background:#faf5ff;border-color:#e9d5ff;color:#7e22ce}
.copilot-work-context-bar{flex:0 0 auto;display:flex;align-items:center;gap:9px;min-height:42px;padding:7px 20px;border-bottom:1px solid #e7edf5;background:#f8fbff;color:#40516a;overflow:hidden}.copilot-work-context-bar>span{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#2563eb;white-space:nowrap}.copilot-work-context-bar>b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#172033}.copilot-work-context-bar>small{margin-left:auto;font-size:9px;color:#64748b;white-space:nowrap}
.copilot-source-card{margin-top:14px;padding:13px;border:1px solid #dbe6f4;border-radius:14px;background:#fbfdff}.copilot-source-head{display:flex;align-items:center;gap:8px}.copilot-source-head>span{width:24px;height:24px;display:grid;place-items:center;border-radius:8px;background:#eaf8f1;color:#047857;font-weight:900}.copilot-source-head>div{display:grid;gap:1px}.copilot-source-head b{font-size:12px;color:#172033}.copilot-source-head small{font-size:9px;color:#64748b}.copilot-source-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.copilot-source-chips>span{display:grid;gap:1px;min-height:42px;padding:7px 9px;border:1px solid #dbe4f0;border-radius:10px;background:#fff}.copilot-source-chips>span b{font-size:10px;color:#334155}.copilot-source-chips>span small{font-size:8.5px;color:#64748b}.copilot-source-chips>span.lesson{border-color:#fed7aa;background:#fffaf5}.copilot-source-chips>span.scheme{border-color:#bfdbfe;background:#f8fbff}.copilot-source-chips>span.curriculum{border-color:#bbf7d0;background:#f7fef9}.copilot-source-chips>span.context{border-color:#e9d5ff;background:#fcf9ff}
.copilot-source-warning{display:grid;gap:3px;margin-top:10px;padding:9px 10px;border:1px solid #f6c66b;border-radius:10px;background:#fffaf0}.copilot-source-warning b{font-size:10px;color:#92400e}.copilot-source-warning span{font-size:9px;line-height:1.4;color:#78350f}
.copilot-grounded-actions{margin-top:11px;padding-top:10px;border-top:1px dashed #dbe4f0}.copilot-grounded-actions>span{display:block;margin-bottom:7px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#64748b}.copilot-grounded-actions>div{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.copilot-grounded-actions a,.copilot-grounded-action-form button{min-height:38px;display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #b9cdf9;border-radius:9px;background:#f8fbff;color:#1d4ed8;text-decoration:none;font-size:11px;font-weight:800;cursor:pointer}.copilot-grounded-action-form{margin:0}.copilot-grounded-action-form button{background:#2563eb;border-color:#2563eb;color:#fff}.copilot-grounded-actions a:hover{background:#eef5ff}.copilot-grounded-action-form button:hover{filter:brightness(1.04)}
html[data-theme="dark"] .copilot-grounding-badge{background:#102033;border-color:#334155;color:#dbeafe}html[data-theme="dark"] .copilot-work-context-bar{background:#0e1b2d;border-color:#26384f;color:#dbeafe}html[data-theme="dark"] .copilot-work-context-bar>b{color:#f8fafc}html[data-theme="dark"] .copilot-source-card{background:#0e1b2d;border-color:#2a3b52}html[data-theme="dark"] .copilot-source-head b,html[data-theme="dark"] .copilot-source-chips>span b{color:#e5edf7}html[data-theme="dark"] .copilot-source-chips>span{background:#102033;border-color:#334155}html[data-theme="dark"] .copilot-grounded-actions a{background:#11233b;border-color:#355b97;color:#bfdbfe}
@media(max-width:900px){.copilot-work-context-bar{padding-inline:14px}.copilot-work-context-bar>small{display:none}.copilot-grounding-badge{display:none}.copilot-source-card{padding:11px}.copilot-source-chips{display:grid;grid-template-columns:1fr 1fr}.copilot-grounded-actions>div{display:grid;grid-template-columns:1fr 1fr}.copilot-grounded-actions a,.copilot-grounded-action-form button{justify-content:center;width:100%}}
@media(max-width:520px){.copilot-work-context-bar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 7px;min-height:48px}.copilot-work-context-bar>b{font-size:10px}.copilot-source-chips,.copilot-grounded-actions>div{grid-template-columns:1fr}.copilot-source-chips>span{min-height:0}}

/* Step 5.228 — official SAVI mark */
.copilot-product-mark{background:#fff;border:1px solid #dbe7f6;box-shadow:0 8px 22px rgba(30,78,160,.12);overflow:hidden}
.copilot-product-mark img{width:34px;height:34px;object-fit:contain;display:block}
html[data-theme="dark"] .copilot-product-mark{background:#fff;border-color:#dbe7f6}


/* -------------------------------------------------------------------------
 * Step 5.235 — SAVI Copilot Phone Experience
 * Full-height mobile conversation layout with thumb-safe composer and drawer.
 * ---------------------------------------------------------------------- */
@media(max-width:720px){
  .teacher-copilot-page.public .copilot-shell{
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:var(--copilot-surface)!important;
  }
  .teacher-copilot-page.public .copilot-chat-head{
    min-height:62px!important;
    padding:8px 10px 8px 64px!important;
    gap:8px!important;
  }
  .teacher-copilot-page.public .copilot-chat-primary{gap:8px!important}
  .teacher-copilot-page.public .copilot-title h1{
    font-size:17px!important;
    margin:0!important;
    line-height:1.16!important;
  }
  .teacher-copilot-page.public .copilot-title p,
  .teacher-copilot-page.public .copilot-kicker{display:none!important}
  .teacher-copilot-page.public .copilot-history-toggle{
    min-width:40px!important;min-height:40px!important;
    width:40px!important;height:40px!important;padding:0!important;border-radius:12px!important;
  }
  .teacher-copilot-page.public .copilot-history-toggle b{display:none!important}
  .teacher-copilot-page.public .copilot-head-actions{gap:4px!important}
  .teacher-copilot-page.public .copilot-context-pill,
  .teacher-copilot-page.public .copilot-price-pill,
  .teacher-copilot-page.public .copilot-grounding-badge{display:none!important}
  .teacher-copilot-page.public .copilot-head-form button{width:40px!important;height:40px!important}

  .teacher-copilot-page.public .copilot-work-context-bar{
    min-height:40px!important;padding:6px 12px!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    gap:3px 7px!important;
  }
  .teacher-copilot-page.public .copilot-work-context-bar>small{display:none!important}
  .teacher-copilot-page.public .copilot-work-context-bar>b{font-size:10px!important}

  .teacher-copilot-page.public .copilot-transcript{
    padding:15px 11px 12px!important;
    scroll-padding-bottom:12px!important;
  }
  .teacher-copilot-page.public .copilot-empty{
    max-width:none!important;
    padding:18px 5px 12px!important;
  }
  .teacher-copilot-page.public .copilot-spark{
    width:46px!important;height:46px!important;margin-bottom:12px!important;border-radius:15px!important;
  }
  .teacher-copilot-page.public .copilot-empty h2{font-size:27px!important;line-height:1.06!important}
  .teacher-copilot-page.public .copilot-empty>p{font-size:12.5px!important;line-height:1.55!important;margin:8px auto 15px!important}
  .teacher-copilot-page.public .copilot-capability-row{
    justify-content:flex-start!important;flex-wrap:nowrap!important;
    overflow-x:auto!important;scrollbar-width:none;padding:0 1px 4px!important;margin-bottom:13px!important;
  }
  .teacher-copilot-page.public .copilot-capability-row::-webkit-scrollbar{display:none}
  .teacher-copilot-page.public .copilot-capability-row span{flex:0 0 auto!important;font-size:8px!important}

  .teacher-copilot-page.public .copilot-suggestions{
    display:grid!important;grid-template-columns:1fr!important;gap:7px!important;
  }
  .teacher-copilot-page.public .copilot-suggestions button{
    min-height:54px!important;
    grid-template-columns:28px minmax(0,1fr) 16px!important;
    padding:9px 10px!important;border-radius:13px!important;
  }
  .teacher-copilot-page.public .copilot-suggestions button>span{width:28px!important;height:28px!important}
  .teacher-copilot-page.public .copilot-suggestions button b{font-size:11px!important}

  .teacher-copilot-page.public .copilot-message{
    max-width:100%!important;gap:7px!important;margin-bottom:18px!important;
  }
  .teacher-copilot-page.public .copilot-message.user{padding-left:32px!important}
  .teacher-copilot-page.public .copilot-message-bubble{
    max-width:92%!important;padding:11px 13px!important;font-size:13px!important;border-radius:16px 16px 5px 16px!important;
  }
  .teacher-copilot-page.public .copilot-avatar{
    width:29px!important;height:29px!important;flex-basis:29px!important;border-radius:10px!important;
  }
  .teacher-copilot-page.public .copilot-message-body{max-width:calc(100% - 36px)!important}
  .teacher-copilot-page.public .copilot-response-label{margin-bottom:5px!important}
  .teacher-copilot-page.public .copilot-answer{font-size:14px!important;line-height:1.65!important}
  .teacher-copilot-page.public .copilot-answer h3{font-size:14px!important;margin-top:17px!important}
  .teacher-copilot-page.public .copilot-guidance-card{
    grid-template-columns:28px minmax(0,1fr)!important;gap:9px!important;padding:11px!important;border-radius:13px!important;
  }
  .teacher-copilot-page.public .copilot-guidance-icon{width:28px!important;height:28px!important}
  .teacher-copilot-page.public .copilot-actions{
    display:grid!important;grid-template-columns:1fr!important;gap:6px!important;
  }
  .teacher-copilot-page.public .copilot-actions a{width:100%!important;justify-content:space-between!important}
  .teacher-copilot-page.public .copilot-follow-ups>div{display:grid!important;grid-template-columns:1fr!important}
  .teacher-copilot-page.public .copilot-follow-ups button{width:100%!important}

  .teacher-copilot-page.public .copilot-composer{
    margin:6px 8px max(8px,env(safe-area-inset-bottom))!important;
    grid-template-columns:minmax(0,1fr) 48px!important;
    gap:6px!important;
    padding:7px 7px 6px 11px!important;
    border-radius:18px!important;
    box-shadow:0 11px 30px rgba(15,23,42,.13)!important;
  }
  .teacher-copilot-page.public .copilot-composer textarea{
    min-height:44px!important;max-height:128px!important;
    font-size:16px!important;line-height:1.42!important;padding:10px 2px 6px!important;
  }
  .teacher-copilot-page.public .copilot-composer>button{
    width:48px!important;height:48px!important;border-radius:13px!important;
  }
  .teacher-copilot-page.public .copilot-composer-foot{
    gap:6px!important;padding:0 2px!important;font-size:7.5px!important;
  }
  .teacher-copilot-page.public .copilot-composer-privacy{
    font-size:8.5px!important;line-height:1.3!important;padding:5px 6px!important;
  }

  .teacher-copilot-page.public .copilot-source-card{padding:10px!important;border-radius:12px!important}
  .teacher-copilot-page.public .copilot-source-chips,
  .teacher-copilot-page.public .copilot-grounded-actions>div{grid-template-columns:1fr!important}
  .teacher-copilot-page.public .copilot-source-chips>span{min-height:0!important}
  .teacher-copilot-page.public .copilot-grounded-actions a,
  .teacher-copilot-page.public .copilot-grounded-action-form button{width:100%!important;justify-content:center!important}

  /* Conversation history becomes a true phone sheet. */
  .copilot-conversations{
    width:100vw!important;max-width:100vw!important;
    inset:0!important;height:100dvh!important;
    border-radius:0!important;border-left:0!important;
  }
  .copilot-conversations-head{
    min-height:76px!important;
    padding:calc(10px + env(safe-area-inset-top)) 14px 10px!important;
  }
  .copilot-history-foot{padding-bottom:calc(10px + env(safe-area-inset-bottom))!important}
}

@media(max-width:380px){
  .teacher-copilot-page.public .copilot-chat-head{padding-right:7px!important}
  .teacher-copilot-page.public .copilot-empty h2{font-size:25px!important}
  .teacher-copilot-page.public .copilot-message.user{padding-left:18px!important}
}
