/* MDC assistance preview: isolated prefix; no changes to campus background. */
.mdca-root{position:fixed;right:18px;bottom:18px;z-index:2140000000;color:#152942;font:15px/1.45 system-ui,Arial,sans-serif;pointer-events:none}.mdca-root *{box-sizing:border-box}.mdca-root button{cursor:pointer;font:inherit}.mdca-launch,.mdca-panel{pointer-events:auto}.mdca-launch{display:block;margin-left:auto;background:#075875;color:white;border:1px solid #09aec8;border-radius:999px;padding:15px 19px;font-weight:800!important;box-shadow:0 9px 26px #02274455}.mdca-panel{position:absolute;right:0;bottom:65px;display:flex;flex-direction:column;width:min(420px,calc(100vw - 24px));height:min(650px,calc(100dvh - 85px));border:1px solid #95becf;background:white;border-radius:18px;overflow:hidden;box-shadow:0 19px 58px #09264577}.mdca-panel[hidden]{display:none}.mdca-head{display:flex;gap:10px;align-items:center;background:linear-gradient(120deg,#093954,#047b8a);color:white;padding:14px}.mdca-head b{font-size:16px}.mdca-head small{display:block;color:#d7f6fc;font-size:11px;margin-top:2px}.mdca-mark{width:42px;height:42px;border-radius:13px;background:#ffffff22;border:1px solid #ffffff55;font:900 25px Georgia;display:grid;place-items:center}.mdca-close{margin-left:auto;background:transparent;color:white;border:0;font-size:30px!important}.mdca-disclaimer{background:#fffae9;border-bottom:1px solid #e6dbbb;padding:10px 13px;font-size:11px;color:#674a13}.mdca-quick{display:flex;flex-wrap:nowrap;gap:7px;overflow:auto;padding:10px 12px;background:#f6fafc;border-bottom:1px solid #e7eff3;flex:none}.mdca-quick button{white-space:nowrap;background:#e7f6f8;color:#09506a;border:1px solid #98d6e1;border-radius:99px;padding:7px 10px;font-size:11px}.mdca-messages{display:flex;flex-direction:column;gap:12px;padding:13px;background:#f4f9fb;overflow-y:auto;flex:1;min-height:0}.mdca-msg{max-width:93%;display:flex;flex-direction:column;gap:5px;align-self:flex-start}.mdca-me{align-self:flex-end}.mdca-bubble{padding:12px 13px;background:white;border-radius:6px 15px 15px 15px;border:1px solid #d9e7ee;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.mdca-me .mdca-bubble{background:#dff0f5;border-color:#b2d6e0;border-radius:15px 6px 15px 15px}.mdca-source{font-size:10px;color:#667a87;padding:0 5px}.mdca-form{display:flex;gap:9px;padding:11px;background:white;border-top:1px solid #d8e6ec}.mdca-form textarea{resize:none;min-width:0;flex:1;border:1px solid #b8d5e0;border-radius:11px;font:13px system-ui;padding:10px;color:#132b42}.mdca-form button{background:#07647f;color:white;border:0;border-radius:9px;padding:9px 14px;font-weight:700}.mdca-foot{padding:7px 11px;font-size:10px;background:#eaf6f8;color:#285669;text-align:center}.mdca-launch:focus-visible,.mdca-close:focus-visible,.mdca-form button:focus-visible,.mdca-quick button:focus-visible{outline:3px solid #ff9e3a;outline-offset:2px}@media(max-width:520px){.mdca-root{right:9px;bottom:9px}.mdca-panel{bottom:63px;width:calc(100vw - 18px);height:calc(100dvh - 86px);max-height:none;border-radius:15px}.mdca-launch{padding:12px 15px;font-size:13px}}
/* Cloudflare integration: clearly distinguish real AI from the offline knowledge bank. */
.mdca-mode{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;background:#eaf7f3;color:#135547;border-bottom:1px solid #cce7dd}
.mdca-mode-indicator{font-weight:750;font-size:11px;line-height:1.25}.mdca-local{border:1px solid #97cbbd;border-radius:7px;padding:6px 9px;color:#0e5f52;background:white;font-size:11px!important;white-space:nowrap}.mdca-local:disabled{opacity:.5;cursor:not-allowed}.mdca-form button:disabled{opacity:.65;cursor:wait}

/* Do not cover immersive games while a player is controlling them. */
body:has(.mdc3-frame-host) .mdca-root,body.mdcf-game .mdca-root,body:has(#mdcffFree:not([hidden])) .mdca-root{display:none!important}
/* MDC AI minimal chat 2026-11-12: compact, readable, no duplicated text rows. */
.mdca-launch[hidden]{display:none!important}
.mdca-root:has(.mdca-panel:not([hidden])) .mdca-panel{bottom:0}
.mdca-panel{
 width:min(454px,calc(100vw - 24px));
 height:min(590px,calc(100dvh - 32px));
 border-radius:18px;box-shadow:0 24px 70px rgba(3,28,48,.34);
}
.mdca-head{padding:13px 15px;min-height:65px}
.mdca-head b{font-size:17px;font-weight:800}
.mdca-head small{font-size:12px;opacity:.95}
.mdca-messages{background:#f6fafc;padding:17px 15px;gap:15px}
.mdca-bubble{font-size:14px;line-height:1.58;padding:12px 14px}
.mdca-me .mdca-bubble{background:#e4f5fa}
.mdca-form{padding:12px 13px 8px;gap:8px}
.mdca-form textarea{font-size:14px;line-height:1.45;min-height:46px}
.mdca-form button{font-size:14px;min-width:56px}
.mdca-foot{padding:5px 12px 9px;font-size:11px;line-height:1.25;background:white;color:#698092}
.mdca-disclaimer,.mdca-mode,.mdca-quick{display:none!important}
@media(max-width:520px){
 .mdca-root{right:8px;bottom:8px}
 .mdca-panel{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:680px;border-radius:14px}
 .mdca-root:has(.mdca-panel:not([hidden])) .mdca-panel{bottom:0}
}

.mdca-school-logo{width:38px;height:38px;flex:0 0 38px;object-fit:contain;border-radius:50%;background:#fff;padding:2px;box-shadow:0 2px 8px #001e3545}

/* School-specific identity and authenticated, owner-scoped conversation history. */
.mdca-launch{padding:13px 16px;font-size:12px!important;max-width:min(270px,calc(100vw - 20px));white-space:normal}
.mdca-head{gap:8px;padding:11px 12px}
.mdca-head b{font-size:15px!important;line-height:1.25;display:block}
.mdca-head-actions{display:flex;gap:5px;margin-left:auto;align-items:center}
.mdca-head-action{background:#ffffff20;color:#fff;border:1px solid #ffffff3b;border-radius:9px;padding:7px 9px;min-height:35px;font-size:11px!important;white-space:nowrap;font-weight:800!important}
.mdca-head-action:hover,.mdca-head-action:focus-visible{background:#ffffff31}
.mdca-head-new{min-width:35px;font-size:20px!important;font-weight:800!important;line-height:1}
.mdca-close{margin-left:0;font-size:26px!important;min-width:27px}
.mdca-history[hidden]{display:none!important}
.mdca-history{position:absolute;top:62px;bottom:0;left:0;right:0;z-index:6;display:flex;flex-direction:column;background:#f7fbfc;box-shadow:0 -4px 18px #092e3b1c}
.mdca-history-top{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:#e9f5f5;border-bottom:1px solid #d4e7e9}
.mdca-history-top strong{font-size:15px;color:#17455b}
.mdca-history-top button{border:0;background:transparent;color:#477483;font-size:17px}
.mdca-history-list{flex:1;overflow:auto;padding:10px;display:grid;align-content:start;gap:7px}
.mdca-history-msg{color:#5b7b89;padding:12px;margin:0;font-size:13px}
.mdca-history-item{display:flex;gap:5px;background:white;border:1px solid #dde9ed;border-radius:12px;min-height:60px;padding:5px;align-items:center}
.mdca-history-pick{display:flex;flex-direction:column;flex:1;min-width:0;align-items:start;text-align:left;gap:5px;border:0;background:transparent;padding:8px;color:#1b4758}
.mdca-history-pick strong{font-size:12px;line-height:1.4;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mdca-history-pick span{font-size:10px;color:#78949f}
.mdca-history-pick:hover{color:#088d91}
.mdca-history-delete{border:1px solid #f4dbdc;background:#fff8f8;color:#ae4356;border-radius:9px;width:35px;height:35px;display:grid;place-items:center;flex-shrink:0}
.mdca-history-foot{font-size:10px;line-height:1.5;padding:10px 14px;margin:0;color:#5a818b;background:#e9f5f5}
.mdca-save-warning{font-size:11px;color:#ab5257;background:#fff1ed;border-radius:10px;padding:7px 11px}
@media(max-width:520px){.mdca-head b{font-size:13px!important}.mdca-head-action{font-size:10px!important;padding:7px 6px}.mdca-head-new{font-size:18px!important}.mdca-school-logo{width:33px;height:33px;flex-basis:33px}.mdca-head{gap:5px}.mdca-launch{font-size:12px!important}}

.mdca-support-chat-cta{background:#e5f7f1;border:1px solid #9ed8c7;color:#0c6f72;border-radius:10px;padding:10px;margin:8px 16px;font-size:12px;font-weight:850;cursor:pointer}
.mdca-support-action{background:#f0fffc;color:#075765;border-color:#b5e5dd}
@media(max-width:520px){.mdca-support-action{font-size:10px!important;padding:7px 5px}}
