.student-chat{display:grid;grid-template-columns:270px minmax(0,1fr);gap:26px;align-items:start}.chat-sidebar{padding:25px;background:#f4f7f3;border:1px solid #dce6dc;border-radius:24px}.chat-sidebar h2{font-size:19px;margin:0 0 15px}.chat-sidebar h2:not(:first-child){margin-top:32px}.chat-sidebar form,.chat-sidebar label{display:grid;gap:12px}.chat-sidebar p,.chat-fine-print{color:#5f6d63;font-size:13px;line-height:2}.chat-history{display:grid;gap:8px;margin-bottom:22px;max-height:380px;overflow:auto}.chat-history button{text-align:right;padding:13px;background:white;border:1px solid #dbe4d9;border-radius:12px;color:#173c28;cursor:pointer;overflow-wrap:anywhere}.chat-history button[aria-current=true]{border-color:#014421;box-shadow:inset -3px 0 #014421}.chat-history strong,.chat-history small{display:block}.chat-history small{color:#637266;margin-top:7px}.chat-panel{border:1px solid #dae3da;background:#fff;border-radius:26px;overflow:hidden;min-width:0;display:flex;flex-direction:column}.chat-panel-head{padding:25px 28px;border-bottom:1px solid #e9eee7;background:linear-gradient(120deg,#f5f8f0,#fff)}.chat-panel-head h2{font-size:24px;margin:7px 0}.chat-panel-head p{font-size:13px;color:#55635a;margin:0;line-height:1.9}.chat-tools{display:flex;gap:8px;flex-wrap:wrap;padding:13px 22px}.chat-tools .button{font-size:12px;min-height:36px;padding:7px 12px}.chat-messages{height:420px;overflow:auto;overscroll-behavior:contain;padding:24px;display:flex;flex-direction:column;gap:16px;scrollbar-gutter:stable}.chat-empty{text-align:center;color:#68756a;margin:auto;line-height:2}.chat-message{max-width:87%;align-self:flex-start;padding:14px 18px;border-radius:18px 18px 4px 18px;background:#edf5ed;color:#173b26;overflow-wrap:anywhere;min-width:0}.chat-message[data-role=human],.chat-message[data-role=assistant]{align-self:flex-end;background:#f4f3eb;border-radius:18px 18px 18px 4px}.chat-message[data-role=system]{align-self:center;background:#f6f7f5;color:#5b665e;max-width:100%;font-size:13px}.chat-message strong{font-size:12px;display:block;margin-bottom:7px}.chat-message p{white-space:pre-wrap;unicode-bidi:plaintext;line-height:1.9;font-size:14px;margin:0}.chat-message time{display:block;font-size:10px;color:#627166;margin-top:8px}.chat-message .chat-source{display:block;color:#536348;font-size:11px;margin-top:10px;border-top:1px solid #dadfd2;padding-top:8px}.chat-compose{border-top:1px solid #e6ece3;padding:20px;display:grid;gap:12px}.chat-compose label{display:grid;gap:7px;font-size:13px}.chat-compose textarea,.chat-compose select,.chat-sidebar select,.chat-widget-history select{font:inherit;max-width:100%;width:100%;min-width:0;border:1px solid #cad8c9;border-radius:12px;padding:12px;background:white;color:#1c3926}.chat-compose textarea{resize:vertical;min-height:84px;max-height:220px;line-height:1.9}.chat-compose-bottom{display:flex;gap:12px;justify-content:space-between;align-items:center}.chat-compose-bottom small{font-size:11px;color:#6d766d;line-height:1.8}.chat-compose-bottom .button{white-space:nowrap}.chat-feature select{max-width:230px;padding:7px}.chat-error{margin:0 20px;padding:12px 15px;border-radius:12px;background:#fff0e9;color:#8d3c24;font-size:13px;line-height:1.9}.chat-retry{margin:12px 20px;align-self:flex-start}.chat-quotas{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}.chat-quotas>div{padding:16px;border:1px solid #e0e6da;border-radius:18px;background:#fcfcf6;min-width:0}.chat-quotas strong{display:block;font-size:28px;color:#014421;margin:4px 0}.chat-quotas small,.chat-quotas span{font-size:12px;color:#596655}.chat-quotas time{display:block;font-size:10px;line-height:1.8;margin-top:10px;overflow-wrap:anywhere;color:#687466}.operator-chat{max-width:980px}.operator-chat>.text-link{display:inline-block;margin-bottom:24px}.chat-inbox-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:24px}.chat-inbox{display:grid;gap:12px}.chat-inbox>a{display:flex;align-items:center;gap:22px;padding:22px;border:1px solid #dce5d9;border-radius:18px;color:#173d28;background:white}.chat-inbox>a>div{flex:1;min-width:0;overflow-wrap:anywhere}.chat-inbox small{display:block;color:#627060;font-size:12px;margin-top:6px}.chat-inbox b,.chat-inbox time{font-size:12px}.chat-widget{--chat-color:#014421;--chat-ink:#fff;position:fixed;left:22px;bottom:22px;z-index:900;font-family:inherit}.chat-widget[data-position=right]{left:auto;right:22px}.chat-launch{border:0;border-radius:40px;padding:15px 22px;background:var(--chat-color);color:var(--chat-ink);box-shadow:0 8px 26px #01442130;cursor:pointer;font:inherit;font-size:14px;display:flex;gap:10px;align-items:center}.chat-launch>span:first-child{font-size:22px}.chat-widget-window{width:380px;max-width:calc(100vw - 32px);height:min(700px,calc(100dvh - 110px));position:absolute;bottom:74px;left:0;background:white;border:1px solid #dbe4d8;border-radius:22px;box-shadow:0 18px 60px #153b2926;display:flex;flex-direction:column;overflow:hidden}.chat-widget[data-position=right] .chat-widget-window{right:0;left:auto}.chat-widget-bar{background:var(--chat-color);color:var(--chat-ink);padding:8px 18px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.chat-widget-bar button{font:inherit;font-size:28px;background:none;border:0;color:inherit;cursor:pointer;line-height:1.2;width:36px;height:36px}.chat-widget-history{display:flex;align-items:center;padding:8px 14px;gap:8px;font-size:11px}.chat-widget-history select{padding:5px;flex:1}.chat-widget .chat-panel{border:0;border-radius:0;flex:1;min-height:0}.chat-widget .chat-panel-head{padding:12px 17px}.chat-widget .chat-panel-head .eyebrow{display:none}.chat-widget .chat-panel-head h2{font-size:17px}.chat-widget .chat-panel-head p{font-size:11px}.chat-widget .chat-tools{padding:7px 12px;gap:5px}.chat-widget .chat-tools .button{padding:5px 8px;font-size:10px;min-height:30px}.chat-widget .chat-messages{flex:1;min-height:90px;height:auto;padding:14px;gap:10px}.chat-widget .chat-message{padding:10px 12px;max-width:93%}.chat-widget .chat-message p{font-size:12px}.chat-widget .chat-compose{padding:11px;gap:7px}.chat-widget .chat-compose textarea{min-height:60px;max-height:120px;font-size:12px;padding:8px}.chat-widget .chat-compose-bottom small{font-size:9px}.chat-widget .chat-compose-bottom .button{font-size:12px;min-height:36px;padding:9px 12px}.chat-widget .chat-error{font-size:11px;margin:0 11px;padding:8px 11px}.chat-widget [hidden],.chat-panel [hidden],[data-chat-widget][hidden]{display:none!important}.chat-panel button:focus-visible,.chat-history button:focus-visible,.chat-widget button:focus-visible{outline:3px solid #c29a32;outline-offset:3px}.chat-panel button:disabled{opacity:.5;cursor:not-allowed}.chat-fine-print{margin:15px 4px}.chat-inbox-tools .text-link{margin-inline-start:auto}@media(max-width:900px){.student-chat{grid-template-columns:220px minmax(0,1fr);gap:16px}.chat-quotas{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-panel-head{padding:20px}.chat-sidebar{padding:17px}}@media(max-width:700px){.student-chat{grid-template-columns:1fr}.chat-history{max-height:180px}.chat-sidebar h2:not(:first-child){margin-top:20px}.chat-messages{height:360px;padding:16px}.chat-compose{padding:15px}.chat-compose-bottom{align-items:flex-end}.chat-compose-bottom small{max-width:55%}.chat-panel-head h2{font-size:21px}.chat-message{max-width:95%}.chat-quotas strong{font-size:25px}.chat-inbox>a{flex-wrap:wrap;gap:12px;padding:17px}.chat-inbox>a>div{flex-basis:100%}.chat-widget{left:16px;bottom:16px}.chat-widget[data-position=right]{right:16px}.chat-launch{font-size:12px;padding:12px 16px}.chat-widget-window{bottom:65px}.chat-inbox-tools .button{font-size:12px}}@media(prefers-reduced-motion:reduce){.chat-widget *{scroll-behavior:auto!important;transition:none!important}}

.chat-panel{scroll-margin-top:100px}
