:root{--ink:#142344;--ink-soft:#64738f;--teal:#1762ff;--teal-hover:#094de3;--mint:#edf4ff;--paper:#f5f8fe;--white:#fff;--line:#e3eaf5;--muted:#f0f5fd;--error:#a33c43;--error-bg:#fff0f2;--radius:20px;--shadow:0 16px 48px rgba(30,76,145,.09);font-family:"Malgun Gothic","Apple SD Gothic Neo",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.6}button,input,textarea,select{font:inherit}button,a,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #79a9ff;outline-offset:3px}p,h1,h2,h3{margin:0}[hidden]{display:none!important}.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}.skip-link{position:fixed;z-index:99;top:8px;left:12px;background:var(--ink);color:#fff;padding:10px 16px;transform:translateY(-150%);border-radius:8px}.skip-link:focus{transform:translateY(0)}.ui-icon{width:22px;height:22px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none;flex-shrink:0}.site-header{height:80px;max-width:1440px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 38px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;flex-shrink:0}.brand-symbol{position:relative;width:29px;height:40px;background:#09276a;border-radius:3px;clip-path:polygon(0 0,72% 0,100% 50%,72% 100%,0 100%)}.brand-symbol span{position:absolute;inset:0 0 0 13px;background:linear-gradient(140deg,#83b8ff,#1762ff);clip-path:polygon(0 0,58% 0,100% 50%,58% 100%,0 100%,42% 50%)}.brand-copy{display:flex;flex-direction:column;gap:1px;line-height:1.35}.brand-copy strong{font-size:17px;letter-spacing:-.7px;color:#0c2870;white-space:nowrap}.knu-wordmark{position:relative;letter-spacing:-1.4px;font-size:25px;font-weight:900;margin-right:5px}.knu-wordmark:before{content:"";position:absolute;width:5px;height:5px;transform:rotate(45deg);background:#ff8b42;left:-3px;top:1px}.brand-copy>span{font-size:10px;color:#63769e;letter-spacing:1px}.site-nav{display:flex;gap:30px;align-items:center;font-size:13px;color:#344465;font-weight:600}.site-nav a{padding:9px 0;white-space:nowrap}.site-nav a[aria-current=page],.site-nav a:hover{color:var(--teal)}.site-nav a:last-child{font-size:12px;color:var(--ink-soft)}.site-nav span{margin-left:5px}.eyebrow{display:flex;align-items:center;gap:7px;font-size:10px;letter-spacing:1.6px;font-weight:700;color:var(--teal)}.small-dot{display:inline-block;width:6px;height:6px;background:#3a83ff;border-radius:50%;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:9px;padding:11px 18px;min-height:42px;font-weight:600;font-size:13px;line-height:1.5;border:1px solid transparent;white-space:nowrap}.button-primary{background:var(--teal);color:#fff;box-shadow:0 4px 12px #1762ff16}.button-primary:hover{background:var(--teal-hover)}.button-secondary{background:#fff;border-color:var(--line);color:var(--ink)}.button-secondary:hover{background:var(--muted)}.button-small{padding:8px 12px;min-height:36px;font-size:12px}.landing-layout{max-width:1440px;padding:26px 28px 0;margin:auto}.landing-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:40px;align-items:center;min-height:694px;padding:38px 42px 38px 62px;border-radius:24px;overflow:hidden;background:#76abed url('../images/campus.svg') center/cover no-repeat;box-shadow:var(--shadow)}.landing-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(16,67,154,.84) 0%,rgba(34,97,181,.64) 43%,rgba(67,128,207,.18) 78%)}.landing-intro{color:#fff;padding-bottom:10px}.hero-kicker{font-size:11px;letter-spacing:2.3px;opacity:.85;margin-bottom:23px}.landing-intro h1{font-size:clamp(37px,4.4vw,60px);font-weight:800;letter-spacing:-2px;line-height:1.28}.landing-intro h1 span{display:inline-block;margin-top:7px}.intro-description{font-size:15px;line-height:1.85;color:#e0edff;margin-top:22px}.hero-link{display:inline-flex;align-items:center;gap:16px;font-weight:600;font-size:13px;border:1px solid #a8ceff80;background:#ffffff14;padding:12px 17px;border-radius:10px;margin-top:28px}.hero-link:hover{background:#ffffff25}.hero-link .ui-icon{width:18px;height:18px}.hero-language-note{display:flex;align-items:center;gap:12px;margin-top:36px;font-size:11px;color:#d8e9ff;line-height:1.9}.hero-language-note .ui-icon{width:26px;height:26px}.landing-chat{min-width:0}.chat-panel{height:618px;background:#fff;border:1px solid #dbe7fa;border-radius:20px;box-shadow:0 12px 35px #174f9120;display:flex;flex-direction:column;overflow:hidden;min-width:0}.chat-panel-header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 12px;flex-shrink:0;gap:12px;border-bottom:1px solid #f0f4fb}.chat-identity{display:flex;align-items:center;gap:10px;min-width:0}.chat-avatar{width:37px;height:43px;object-fit:contain;flex-shrink:0}.chat-identity h2{font-size:14px;letter-spacing:-.4px;line-height:1.5;font-weight:700}.chat-presence{font-size:10px;color:#6e80a0;display:flex;align-items:center;gap:5px;margin-top:2px}.chat-presence .small-dot{width:5px;height:5px}.icon-button{width:33px;height:33px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#5f7296;border-radius:9px;flex-shrink:0}.icon-button:hover{background:var(--muted);color:var(--teal)}.icon-button .ui-icon{width:18px;height:18px}.chat-tools{display:flex;justify-content:space-between;align-items:center;padding:9px 20px 7px;gap:12px;font-size:11px;color:var(--ink-soft)}.language-picker{display:flex;gap:6px;align-items:center;border-radius:20px;background:#f2f6ff;padding:0 8px;color:#4e6590}.language-picker .ui-icon{width:15px;height:15px}.chat-tools select{border:0;border-radius:18px;padding:5px 2px;background:transparent;color:var(--ink);max-width:160px;font-size:11px;min-height:30px}.chat-notice{font-size:10px;line-height:1.65;color:#697c9d;background:#f6f9ff;padding:8px 20px;flex-shrink:0;border-top:1px solid #edf3ff;border-bottom:1px solid #edf3ff}.chat-messages{flex:1;min-height:80px;overflow-y:auto;overscroll-behavior:auto;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#cad9ef transparent;padding:20px;display:flex;flex-direction:column;gap:16px;overflow-wrap:anywhere}.message-items{display:flex;flex-direction:column;gap:18px}.welcome-intro{display:flex;align-items:center;gap:13px;margin:4px 0 20px}.welcome-intro img{width:66px;height:78px;flex-shrink:0}.welcome-intro h3{font-size:16px;margin-bottom:5px;color:#172b51}.welcome-intro p{font-size:12px;line-height:1.75;color:#637393;white-space:pre-line}.quick-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.quick-menu button{position:relative;display:grid;grid-template-columns:27px minmax(0,1fr);align-items:center;column-gap:7px;row-gap:2px;text-align:left;padding:13px 11px;min-height:72px;background:linear-gradient(135deg,#fff,#f8fbff);border:1px solid #e4ecf9;border-radius:12px;color:#183660;box-shadow:0 3px 9px #376db207}.quick-menu button .ui-icon{grid-row:1/3;color:var(--teal);width:23px;height:23px}.quick-menu button>span{font-size:12px;font-weight:600}.quick-menu button small{font-size:9px;color:#8390ab;line-height:1.45}.quick-menu button:hover{border-color:#87b0ff;background:#f3f7ff}.message{position:relative;display:flex;flex-direction:column;align-items:flex-start;max-width:91%;flex-shrink:0;align-self:flex-start}.message-label{font-size:10px;font-weight:600;color:#8190aa;margin:0 0 5px 3px}.message-bubble{background:#f1f5fc;border:1px solid #edf2fa;border-radius:4px 15px 15px 15px;padding:12px 14px;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:#283d60}.message-time{font-size:9px;color:#93a0b6;margin-top:5px}.message--visitor{align-self:flex-end;align-items:flex-end}.message--visitor .message-bubble{background:linear-gradient(135deg,#367fff,#1762ff);color:#fff;border-color:transparent;border-radius:15px 4px 15px 15px}.message--visitor .message-label{margin-right:3px}.message--assistant,.message--staff{padding-left:38px}.message--assistant:before{content:"";position:absolute;left:-2px;top:17px;width:33px;height:39px;background:url('../images/robot.svg') center/contain no-repeat}.message--staff:before{content:"담";display:flex;align-items:center;justify-content:center;position:absolute;left:0;top:22px;width:28px;height:28px;border-radius:50%;background:#e4edff;color:#2362ce;font-size:11px;font-weight:700}.message--staff .message-bubble{background:#eef4ff}.message--system{align-self:center;max-width:100%;align-items:center}.message--system .message-label{display:none}.message--system .message-bubble{background:transparent;border:0;padding:2px 6px;color:#7587a3;font-size:11px;text-align:center;line-height:1.75}.message--system .message-time{display:none}.faq-area{padding:0 20px 10px;flex-shrink:0}.section-caption{font-size:11px;color:#7a8da9;margin-bottom:7px}.faq-buttons{display:flex;flex-wrap:wrap;gap:6px;max-height:84px;overflow:auto}.faq-button{border:1px solid #dce7fa;color:#3862a7;background:#fff;border-radius:8px;padding:7px 10px;font-size:11px;line-height:1.4;text-align:left;max-width:100%;overflow-wrap:anywhere}.faq-button:hover{background:#edf4ff;border-color:#9cbcff}.action-links{padding:0 20px 9px;display:flex;gap:8px;flex-wrap:wrap;max-height:80px;overflow:auto}.action-link{font-size:11px;color:var(--teal);text-decoration:underline;text-underline-offset:3px}.chat-error,.console-error{margin:0 16px 10px;padding:9px 12px;font-size:12px;line-height:1.6;background:var(--error-bg);color:var(--error);border-radius:9px;overflow-wrap:anywhere;flex-shrink:0}.chat-composer-wrap{padding:12px 15px 11px;border-top:1px solid #edf2fa;flex-shrink:0;background:#fff}.chat-composer{display:flex;align-items:flex-end;gap:8px;border:1px solid #dce6f5;border-radius:24px;padding:7px 8px 7px 15px;background:#fff}.chat-composer:focus-within{border-color:#82abfa;box-shadow:0 0 0 3px #1762ff09}.chat-composer textarea{flex:1;min-width:0;min-height:33px;resize:none;max-height:125px;overflow-y:auto;padding:6px 0;border:0;outline:none!important;background:transparent;font-size:13px;line-height:1.5;color:var(--ink)}.chat-composer textarea::placeholder{color:#96a3b8}.send-button{width:33px;height:33px;border-radius:50%;background:var(--teal);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 10px #1762ff20}.send-button .ui-icon{width:18px;height:18px;stroke-width:1.7}.send-button:hover{background:var(--teal-hover)}.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px;font-size:9px;color:#93a0b6;min-height:22px}.text-button{background:transparent;padding:3px 0;color:#416ebc;font-size:11px;font-weight:600;white-space:nowrap}.text-button:hover{text-decoration:underline}.visitor-guide{display:grid;grid-template-columns:1fr 1.6fr;gap:36px;align-items:center;padding:37px 34px}.guide-heading h2{font-size:23px;margin:8px 0;letter-spacing:-.8px}.guide-heading>p:last-child{font-size:12px;color:var(--ink-soft)}.journey-list{padding:0;margin:0;list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.journey-list li{display:flex;gap:11px;align-items:flex-start}.step-number{font-size:12px;line-height:30px;width:30px;text-align:center;color:#3777e4;background:#e9f1ff;border-radius:9px;flex-shrink:0;font-weight:700}.journey-list strong{font-size:13px}.journey-list p{margin-top:4px;font-size:11px;line-height:1.7;color:var(--ink-soft)}.development-note{display:flex;gap:12px;align-items:center;padding:17px 22px;background:#eef4fd;border:1px solid #e2ebf8;border-radius:12px;color:#6f809c;font-size:11px;line-height:1.8;margin-bottom:26px}.development-note>span{color:#5a87cb}.development-note strong{font-weight:600;color:#516581;margin-right:8px}.development-note a{color:var(--teal);white-space:nowrap}.site-footer{max-width:1384px;padding:23px 10px 27px;margin:auto;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:10px;color:#8091ad;letter-spacing:1px;gap:20px}.site-footer span:last-child{letter-spacing:0}.standalone-chat{max-width:780px;margin:auto;padding:24px 24px 20px}.standalone-chat .chat-panel{height:calc(100dvh - 128px);min-height:480px;max-height:900px}.standalone-chat .chat-panel-header{padding:17px 23px 13px}.standalone-chat .chat-messages{padding:25px 28px}.standalone-chat .message-bubble{font-size:14px}.standalone-chat .chat-identity h2{font-size:16px}.standalone-chat .chat-notice{font-size:11px}.standalone-chat .chat-tools{padding-left:25px;padding-right:25px}.standalone-chat .chat-composer-wrap{padding:14px 22px 12px}.standalone-chat .chat-composer textarea{font-size:14px}.standalone-chat .welcome-intro{margin:12px 0 26px}.standalone-chat .welcome-intro h3{font-size:20px}.standalone-chat .welcome-intro p{font-size:14px}.standalone-chat .welcome-intro img{width:83px;height:97px}.standalone-chat .quick-menu{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.standalone-chat .quick-menu button{min-height:97px;padding:17px 12px}.standalone-chat .quick-menu button>span{font-size:14px}.standalone-chat .quick-menu button small{font-size:10px}.account-page .account-card{box-shadow:var(--shadow)}
@media(max-width:1100px){.site-header{padding:0 28px}.landing-layout{padding:20px}.landing-hero{padding:30px;grid-template-columns:minmax(0,1fr) 390px;gap:25px;min-height:678px}.landing-intro h1{font-size:44px}.hero-kicker{font-size:10px;letter-spacing:1px}.visitor-guide{grid-template-columns:1fr;padding:30px 10px;gap:24px}.journey-list{gap:18px}.site-footer{margin:0 20px}}
@media(max-width:740px){.site-header{height:64px;padding:0 18px;gap:12px}.brand-symbol{width:22px;height:31px}.brand-symbol span{left:10px}.brand{gap:9px}.brand-copy strong{font-size:13px}.knu-wordmark{font-size:21px;margin-right:3px}.brand-copy>span{font-size:9px;letter-spacing:.5px}.site-nav{gap:15px;font-size:11px}.site-nav a[href='/#guide']{display:none}.site-nav a:last-child{font-size:10px}.landing-layout{padding:14px}.landing-hero{display:flex;flex-direction:column;gap:26px;padding:29px 19px 20px;border-radius:20px;align-items:stretch;background-position:40% top}.landing-hero:before{background:linear-gradient(180deg,#174a9fcf,#377cc7b3 40%,#eaf3ff 83%)}.landing-intro{padding:0}.hero-kicker{margin-bottom:13px;font-size:9px}.landing-intro h1{font-size:36px;line-height:1.23;letter-spacing:-1.4px}.landing-intro h1 br:nth-of-type(2){display:none}.landing-intro h1 span{margin-top:0}.intro-description{font-size:13px;margin-top:15px}.hero-link{margin-top:18px;padding:9px 13px;font-size:12px}.hero-language-note{display:none}.landing-chat .chat-panel{height:620px}.visitor-guide{padding:27px 5px;gap:18px}.guide-heading h2{font-size:21px}.journey-list{grid-template-columns:1fr;gap:15px}.journey-list li{align-items:center}.journey-list p{margin:2px 0 0}.development-note{align-items:flex-start;padding:13px;font-size:10px}.development-note strong{display:block}.site-footer{flex-direction:column;gap:6px;font-size:9px;padding:18px 0;margin:0 18px}.standalone-chat{padding:12px;max-width:640px}.standalone-chat .chat-panel{height:calc(100dvh - 88px);min-height:420px;border-radius:17px}.standalone-chat .chat-panel-header{padding:13px 16px 10px}.standalone-chat .chat-identity h2{font-size:14px}.standalone-chat .chat-tools{padding-left:18px;padding-right:18px}.standalone-chat .chat-messages{padding:19px}.standalone-chat .message-bubble{font-size:13px}.standalone-chat .chat-notice{font-size:10px}.standalone-chat .chat-composer-wrap{padding:11px 13px 9px}.standalone-chat .welcome-intro{margin:0 0 22px;gap:12px}.standalone-chat .welcome-intro img{width:64px;height:75px}.standalone-chat .welcome-intro h3{font-size:17px}.standalone-chat .welcome-intro p{font-size:12px}.standalone-chat .quick-menu{gap:9px}.standalone-chat .quick-menu button{display:flex;flex-direction:column;justify-content:center;gap:9px;min-height:90px;padding:13px 5px;text-align:center}.standalone-chat .quick-menu button>span{font-size:12px}.standalone-chat .quick-menu button small{display:none}.standalone-chat .quick-menu button .ui-icon{width:25px;height:25px}.message{max-width:95%}.composer-footer{font-size:8px}}
@media(max-width:380px){.site-header{padding:0 12px}.site-nav{gap:10px}.site-nav a:last-child{font-size:9px}.standalone-chat{padding:9px}.standalone-chat .chat-panel{height:calc(100dvh - 82px)}.brand-copy>span{display:none}.landing-hero{padding:25px 13px 17px}.landing-intro h1{font-size:32px}.quick-menu button{padding:12px 8px}.quick-menu button>span{font-size:11px}.quick-menu button small{font-size:8px}.chat-messages{padding:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.landing-chat .chat-panel{height:646px}.landing-chat .chat-messages{padding:16px 18px}.landing-chat .welcome-intro{gap:10px;margin:0 0 13px}.landing-chat .welcome-intro img{width:49px;height:58px}.landing-chat .welcome-intro h3{font-size:15px;margin-bottom:4px}.landing-chat .welcome-intro p{font-size:11px;line-height:1.65}.landing-chat .quick-menu button{min-height:65px;padding:11px 10px}.landing-chat .quick-menu{gap:8px}@media(max-width:740px){.landing-chat .chat-panel{height:646px}}

.chat-ai-progress{margin:0 18px 10px;padding:9px 12px;border-radius:9px;background:#eef4ff;color:#376cbf;font-size:11px;flex-shrink:0}.message-sources{width:100%;font-size:11px;margin-top:7px;color:#5576a6}.message-sources details{background:#f6f9ff;border:1px solid #e1eaff;border-radius:8px;padding:8px 10px;margin:4px 0}.message-sources summary{cursor:pointer;overflow-wrap:anywhere}.message-sources p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.8;margin:8px 0 0;color:#4f6180}
.chat-ai-budget {padding:6px 16px;color:#496182;font-size:11px;line-height:1.45;background:#f4f8ff;border-top:1px solid #e6edf9;}
.chat-ai-budget[hidden] {display:none;}
.chat-topic-strip{display:flex;gap:5px;flex-wrap:wrap;padding:8px 12px;border-bottom:1px solid var(--line);flex-shrink:0}
.chat-topic-strip button,.guidance-options button{border:1px solid #cbdcff;background:#f4f8ff;color:#164ca3;border-radius:8px;padding:6px 9px;font-size:12px;white-space:normal;text-align:left}
.chat-guidance{padding:10px 14px;background:#f5f9ff;border-top:1px solid var(--line);max-height:190px;overflow:auto;flex-shrink:0}
.guidance-context{font-size:11px;color:var(--ink-soft);overflow-wrap:anywhere;margin-bottom:6px}
.guidance-options{display:flex;gap:6px;flex-wrap:wrap}.guidance-actions{display:flex;gap:14px;margin-top:6px}
.guidance-actions button{background:transparent;color:#496182;font-size:11px;padding:3px 0;text-decoration:underline}
.message-guide-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px}.message-guide-links a{border:1px solid #cbdcff;border-radius:7px;color:#1762ff;background:#fff;padding:7px 10px;font-size:12px}
.guidance-prompt{font-size:12px;font-weight:700;margin-bottom:5px}
/* Page navigation confirmations keep unsent data decisions inside the accessible UI. */
.navigation-dialog{border:1px solid var(--line);border-radius:16px;padding:25px;max-width:440px;width:calc(100% - 32px);margin:auto;background:#fff;color:var(--ink);box-shadow:var(--shadow)}.navigation-dialog::backdrop{background:#15264570}.navigation-dialog h2{font-size:19px;margin-bottom:12px}.navigation-dialog p{font-size:14px;line-height:1.8;color:var(--ink-soft)}.navigation-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px;flex-wrap:wrap}.navigation-dialog-actions .button{font-size:12px;padding:10px 14px}
.chat-profile {border-top:1px solid #e0e8f5;padding:10px 16px;font-size:12px;flex-shrink:0;}
.chat-profile summary {cursor:pointer;color:#245dcc;}
.chat-profile[open] {max-height:280px;overflow:auto;flex-shrink:1;min-height:50px;}
.profile-grid {display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.profile-grid label {display:flex;flex-direction:column;gap:4px;min-width:0;}
.profile-grid input,.profile-grid select {width:100%;min-width:0;border:1px solid #d5dfef;border-radius:8px;padding:6px;background:white;}
.profile-consent {display:flex;gap:6px;margin:10px 0;}
.profile-consent input {flex-shrink:0;}
.chat-profile button {padding:6px 12px;margin-right:8px;border:1px solid #c8d8f0;border-radius:8px;background:white;color:#245dcc;}
.profile-notice {line-height:1.5;color:#61718a;}
.widget-chat #main-content,.widget-chat .chat-panel{height:100dvh;min-height:0;width:100%;border-radius:0;}
.composer-footer{justify-content:flex-end}.quick-menu button .ui-icon{grid-row:auto}.chat-profile[hidden]{display:none}

/* Inline reply indicator */
.message--typing{flex-shrink:0}
.chat-panel .typing-bubble{display:flex;align-items:center;justify-content:center;gap:7px;min-width:78px;min-height:48px;padding:17px 19px}
.typing-bubble>span{display:block;flex:0 0 8px;width:8px;height:8px;background:#2868e8;border-radius:50%;animation:reply-wave 1.1s ease-in-out infinite}
.typing-bubble>span:nth-child(2){animation-delay:.16s}
.typing-bubble>span:nth-child(3){animation-delay:.32s}
@keyframes reply-wave{0%,100%{transform:translateY(3px);opacity:.5}50%{transform:translateY(-5px);opacity:1}}
/* Keep this requested progress cue perceptible with a smaller, slower wave. */
@keyframes reply-wave-gentle{0%,100%{transform:translateY(1px);opacity:.6}50%{transform:translateY(-2px);opacity:1}}
@media(prefers-reduced-motion:reduce){.typing-bubble>span{animation-name:reply-wave-gentle;animation-duration:1.6s}}

/* Stop browser pull-to-refresh at the page boundary while retaining chat-to-page scrolling. */
html.visitor-chat-page,body.home-page,body.chat-page,body.widget-chat{overscroll-behavior-y:contain}

/* University-provided CI replaces the imitation wordmark and extra symbol. */
.brand-logo{display:block;width:195.2px;max-width:100%;height:auto}
@media(max-width:740px){.brand-logo{width:128px}.site-nav a[href*="#guide"]{display:none}}
@media(max-width:380px){.brand-logo{width:116.8px}}

/* Keep the transcript clear; secondary actions live in a modal sheet. */
.chat-tools{flex-shrink:0}
.chat-menu-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 12px;border:1px solid #cbdcff;border-radius:12px;background:#f4f8ff;color:#164ca3;font-size:12px;flex-shrink:0}
.chat-menu-button::before{content:"☰";margin-right:6px;font-size:14px}
.welcome-profile{display:block;margin:13px auto 0;padding:6px 10px;font-size:12px}
.chat-sheet{position:fixed;inset:0;margin:auto;width:calc(100% - 32px);max-width:560px;max-height:calc(100dvh - 40px);padding:0;border:1px solid #dbe7fa;border-radius:20px;background:#fff;color:var(--ink);box-shadow:0 20px 65px #14234430;overflow:hidden}
.chat-sheet[open]{display:flex;flex-direction:column}
.chat-sheet::backdrop{background:#14234466}
.chat-sheet-header{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line);background:linear-gradient(120deg,#f4f8ff,#fff);flex-shrink:0}
.chat-menu-avatar{width:38px;height:44px;object-fit:contain;flex-shrink:0}
.chat-sheet-header h2{flex:1;min-width:0;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.chat-sheet-header .icon-button{font-size:26px;min-width:44px;min-height:44px;flex-shrink:0}
.chat-sheet-header .text-button{font-size:12px;max-width:120px;padding:6px 0}
.chat-sheet-body{padding:20px;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom}
.profile-open-button{display:flex;align-items:center;gap:10px;width:100%;min-height:54px;padding:13px 14px;border:1px solid #cbdcff;border-radius:12px;background:#f4f8ff;color:#164ca3;font-size:14px;text-align:left;margin-top:16px;overflow-wrap:anywhere}
.profile-open-button [data-profile-label]{min-width:0;flex:1}
.menu-action-arrow{font-size:24px;line-height:1;flex-shrink:0}
/* Dialog cards have their own layout so home/standalone quick-menu rules cannot compress them. */
.chat-panel .chat-sheet .chat-menu-cards.quick-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0;border:0}
.chat-panel .chat-sheet .chat-menu-cards.quick-menu button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:112px;padding:16px 10px;text-align:center;border:1px solid #dce7f8;border-radius:14px;background:linear-gradient(145deg,#fff,#f6f9ff);color:#183660;box-shadow:0 3px 10px #376db209}
.chat-panel .chat-sheet .chat-menu-cards.quick-menu button .ui-icon{width:26px;height:26px;flex-shrink:0;color:var(--teal)}
.chat-panel .chat-sheet .chat-menu-cards.quick-menu button>span{max-width:100%;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.chat-panel .chat-sheet .chat-menu-cards.quick-menu button:hover:not(:disabled){border-color:#87b0ff;background:#edf4ff;box-shadow:0 4px 12px #376db213}
.chat-panel .chat-sheet .chat-menu-cards.quick-menu button:active:not(:disabled){background:#e4eeff}
.chat-panel .chat-sheet .chat-menu-cards.quick-menu button:disabled{box-shadow:none}
@media(max-width:540px){
  .chat-panel .chat-sheet .chat-menu-cards.quick-menu{grid-template-columns:repeat(2,minmax(0,1fr))}
  .chat-panel .chat-sheet .chat-menu-cards.quick-menu button{min-height:100px;padding:14px 10px}
}
.chat-sheet .faq-area,.chat-sheet .action-links{padding:14px 0 0;border-top:1px solid var(--line);margin-top:10px}
.chat-sheet .faq-buttons,.chat-sheet .action-links{max-height:none;overflow:visible}
.menu-guidance{padding:12px 0;border-top:1px solid var(--line)}
.menu-guidance .text-button{font-size:12px;padding:6px 0}
.chat-sheet .chat-profile{border:0;padding:0;font-size:13px;min-height:0;max-height:none;overflow:visible}
.chat-sheet .profile-grid{gap:12px;margin:14px 0}
.chat-sheet .profile-grid input,.chat-sheet .profile-grid select{min-height:42px;font-size:16px}
.chat-sheet .profile-consent{align-items:flex-start;line-height:1.7}
.chat-sheet .chat-profile button{min-height:40px;margin:4px 6px 4px 0;padding:8px 12px}
.chat-sheet [data-profile-result]{margin-top:10px;line-height:1.7;color:#164ca3}
.chat-messages>.chat-guidance{max-height:none;overflow:visible;flex-shrink:0;border:1px solid #dbe7fa;border-radius:14px;padding:12px;align-self:flex-start;width:100%}
.chat-messages>.chat-guidance .guidance-options{max-height:210px;overflow-y:auto;overscroll-behavior:auto}
.guidance-options button{min-height:40px;padding:8px 12px;font-size:13px}
.chat-messages>.chat-guidance .guidance-actions{margin-top:8px}
@media(max-width:740px){
  .chat-sheet{max-height:calc(100dvh - 24px);width:calc(100% - 20px);border-radius:18px}
  .chat-sheet-header{padding:10px 14px}
  .chat-sheet-body{padding:14px}
  .standalone-chat .chat-panel{min-height:300px}
}
@media(max-height:500px){
  .standalone-chat .chat-panel{min-height:0}
  .chat-panel-header{padding-top:8px;padding-bottom:8px}
  .chat-messages{min-height:40px}
}

.chat-sheet [data-profile-result][data-kind="error"]{color:var(--error)}

/* Keep the first mobile screen focused on consultation. */
.landing-intro{grid-column:1;grid-row:1}
.landing-chat{grid-column:2;grid-row:1}
.chat-sheet .profile-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.chat-sheet .profile-actions button{margin:0}
.chat-sheet .chat-profile .button-primary{background:var(--teal);border-color:var(--teal);color:#fff}
.chat-sheet .chat-profile .profile-delete{background:#fff;color:#a43d48;border-color:#e8c3c8}
.chat-sheet [data-profile-clear]:disabled{opacity:.4}
@media(max-width:740px){
  .landing-hero{padding:0;gap:18px;min-height:0;background:none;box-shadow:none;border-radius:0}
  .landing-hero:before{display:none}
  .landing-chat .chat-panel{height:calc(100dvh - 92px);min-height:300px;max-height:800px}
  .landing-intro{background:#174d96;border-radius:16px;padding:20px}
  .landing-intro h1{font-size:24px;letter-spacing:-.5px}
  .landing-intro .hero-kicker,.landing-intro .intro-description{display:none}
  .landing-intro .hero-link{margin-top:12px}
  .send-button{width:40px;height:40px;min-width:40px}
  .composer-footer .text-button{min-height:36px;padding:7px 4px}
}

.menu-new-chat{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:50px;margin-top:16px;padding:12px 14px;border:1px solid #cbdcff;border-radius:12px;background:#fff;color:#164ca3;font-size:14px;text-align:center;overflow-wrap:anywhere}
.menu-new-chat:hover:not(:disabled),.profile-open-button:hover:not(:disabled){border-color:#87b0ff;background:#edf4ff}
.menu-action-plus{font-size:24px;line-height:1;flex-shrink:0}
.menu-new-chat [data-new-chat-label]{min-width:0}

/* Page language is a global preference outside the chat transcript. */
.site-header>.page-language-picker{flex-shrink:0}
.page-language-picker{min-height:38px;padding:2px 10px;max-width:170px}
.page-language-picker select{border:0;background:transparent;color:var(--ink);font:inherit;font-size:12px;max-width:137px;min-height:34px;min-width:0}
.page-language-picker .ui-icon{flex-shrink:0}
.page-language-error{padding:12px 20px;color:#ad3544;background:#fff4f5;font-size:13px}
.widget-language-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 12px;background:#fff;border-bottom:1px solid var(--line);min-height:49px;flex-shrink:0;font-size:11px;color:var(--ink-soft)}
body.widget-chat{height:100dvh;display:flex;flex-direction:column}
.widget-chat #main-content{height:auto;flex:1;min-height:0}
.widget-chat .chat-panel{height:100%;min-height:0}
body.chat-page{height:100dvh;display:flex;flex-direction:column}
.chat-page .site-header{flex-shrink:0;width:100%;margin:0 auto}
.chat-page .standalone-chat{width:100%;flex:1;min-height:0;margin:0 auto;display:flex;flex-direction:column}
.standalone-chat .chat-panel{height:100%;min-height:0;flex:1}
.landing-intro h1>span:not(:last-child){color:inherit}
@media(max-width:740px){
  .site-header:has([data-page-language]){height:auto;min-height:64px;flex-wrap:wrap;column-gap:10px;row-gap:0;padding-top:8px;padding-bottom:4px}
  .site-header:has([data-page-language]) .brand{order:0}
  .site-header>.page-language-picker{order:1;margin-left:auto}
  .site-header:has([data-page-language]) .site-nav{order:2;width:100%;justify-content:flex-end;gap:18px;min-height:29px;font-size:11px}
  .site-header:has([data-page-language]) .site-nav a{padding:5px 0;white-space:normal}
  .page-language-picker{max-width:156px}
  .page-language-picker select{max-width:120px}
}

/* 2026-10-10: readable conversation states and resilient compact layouts. */
.message-label,.message-time,.chat-presence,.section-caption,.composer-footer{color:#53627a}
.message-label,.chat-presence{font-size:12px}
.message-time{font-size:11px}
.message--system .message-bubble{color:#53627a;font-size:13px}
.chat-composer textarea::placeholder{color:#626f83;opacity:1}
.chat-panel .message-bubble,.standalone-chat .message-bubble{font-size:15px;line-height:1.75}
.chat-panel .message--system .message-bubble{font-size:13px}
.message--visitor .message-bubble{background:#1762ff}
.chat-panel .chat-composer textarea{font-size:16px;min-height:calc(1.5em + 12px);max-height:max(125px,4.5em)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #1f5bc4;outline-offset:3px}
.chat-composer:focus-within{outline:3px solid #1f5bc4;outline-offset:2px;border-color:#1f5bc4;box-shadow:none}
.message-jump{align-self:center;flex-shrink:0;min-height:38px;margin:4px 12px;padding:6px 16px;border:1px solid #9eb9e3;border-radius:20px;background:#edf4ff;color:#194a92;font-size:13px;font-weight:600}
.chat-send-recovery{flex-shrink:0;margin:0 16px 10px;padding:10px 12px;border:1px solid #b7cae5;border-radius:10px;background:#f5f8ff;color:#283d60;font-size:12px}
.chat-send-recovery p{max-height:5.2em;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap;margin:4px 0 8px}
.chat-send-recovery button{margin:0 8px 0 0;white-space:normal}
.chat-sheet-header .text-button{max-width:none;flex:0 1 36%;white-space:normal;text-align:left;overflow-wrap:anywhere}
.chat-sheet .profile-actions .button{white-space:normal;overflow-wrap:anywhere}
.chat-panel-header h2{overflow-wrap:anywhere}
.chat-composer-wrap{padding-bottom:max(11px,env(safe-area-inset-bottom))}
/* Resize the same conversation in place, leaving the page language accessible. */
.chat-header-actions{display:flex;align-items:center;gap:2px;flex-shrink:0}
.chat-header-actions .icon-button{width:44px;height:44px;min-width:44px}
.chat-expand-icon,.chat-restore-icon{align-items:center;justify-content:center}
.chat-expand-icon{display:flex}
.chat-restore-icon{display:none}
.chat-expanded .chat-expand-icon{display:none}
.chat-expanded .chat-restore-icon{display:flex}
.chat-expanded [data-expand-chat]{background:#edf4ff;color:#164ca3}
body.chat-expanded{height:100dvh;min-height:0;display:flex;flex-direction:column}
.chat-expanded .site-header{flex-shrink:0;width:100%;margin:0 auto}
.chat-expanded .site-footer{display:none}
.chat-expanded .page-language-error{flex-shrink:0;margin:0}
.chat-expanded .standalone-chat{flex:1;min-height:0;max-width:none;width:100%;margin:0;padding:12px}
.chat-expanded .standalone-chat .chat-panel{flex:1;height:100%;min-height:420px;max-height:none}
@media(max-width:740px){
  .chat-expanded .standalone-chat{padding:0}
  .chat-expanded .standalone-chat .chat-panel{border-radius:0}
}
@media(max-width:740px){
  .chat-panel .message--assistant,.chat-panel .message--staff{padding-left:32px}
  .chat-panel .message{max-width:100%}
  .chat-panel .message-bubble{padding:11px 12px}
  .chat-messages{gap:14px}
  .send-button{min-width:44px;width:44px;height:44px}
}
@media(max-width:400px){.chat-sheet .profile-grid{grid-template-columns:1fr}}
@media(max-height:560px){
  body.chat-page,body.widget-chat{height:auto;min-height:100dvh}
  .chat-page .standalone-chat,.widget-chat #main-content{flex:none;min-height:0}
  .standalone-chat .chat-panel,.widget-chat .chat-panel{height:auto;min-height:0;max-height:none;flex:none}
  [data-chat-root] .chat-messages{height:180px;min-height:180px;max-height:320px;flex:none}
  [data-chat-root] .chat-panel-header{padding-top:8px;padding-bottom:8px}
  [data-chat-root] .chat-tools{padding-top:5px;padding-bottom:5px}
  [data-chat-root] .chat-composer-wrap{padding-top:8px}
  body.chat-expanded{height:auto;min-height:100dvh}
  .chat-expanded .standalone-chat{flex:none}
  .chat-expanded .standalone-chat .chat-panel{height:auto;min-height:0;flex:none}
}

/* Consecutive messages share a sender heading and a final timestamp. */
.message-items,.staff-messages{row-gap:6px}
.message-items>.message+.message:not(.message--continuation),.staff-messages>.message+.message:not(.message--continuation){margin-top:12px}
.message.message--continuation:before,.staff-messages .message.message--continuation:before{display:none}
.message--continuation .message-bubble{border-top-left-radius:12px;border-top-right-radius:12px}
.message-bubble{-webkit-user-select:text;user-select:text}

.message--system.message--lifecycle .message-bubble{padding:12px 16px;border:1px solid #d7e3f5;border-radius:12px;background:#edf4ff;color:#29486f;font-size:13px;line-height:1.7}

/* Applicant details are the primary action; session and view controls are utilities. */
.chat-panel{container-type:inline-size;container-name:admissions-chat}
.chat-panel-header{flex-wrap:wrap;gap:8px 12px}
.chat-panel-header .chat-identity{flex:1 1 190px;min-width:0}
.chat-header-actions{flex:1 1 270px;min-width:0;gap:10px;justify-content:flex-end}
.chat-header-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:8px 11px;border:1px solid #cbd9ee;border-radius:9px;background:#fff;color:#34537e;font-size:12px;line-height:1.4;min-width:0;white-space:normal;overflow-wrap:anywhere}
.chat-header-button:hover:not(:disabled){background:#edf4ff;border-color:#8eafe6}
.chat-header-actions .chat-profile-button{color:#1955b9;border-color:#a8c4f2;font-weight:700}
.chat-header-actions .chat-profile-button.needs-profile{background:#edf4ff;border-color:#b7cef4;color:#1955b9}
.chat-header-actions .chat-profile-button.needs-profile:hover:not(:disabled){background:#dfeaff;border-color:#8eafe6}
.chat-header-utilities{display:flex;align-items:center;gap:2px;padding-left:8px;border-left:1px solid #e3eaf5;min-width:0}
.chat-header-utilities .chat-new-button{border-color:transparent;background:transparent;color:#536985;font-weight:400}
.chat-header-utilities .chat-new-button:hover:not(:disabled){background:#f0f5fd;border-color:transparent;color:#1955b9}
.chat-header-actions [data-profile-saved]{font-size:15px;color:#166647}
.chat-profile-hint{font-size:12px;line-height:1.5;color:#45658e;text-align:right;min-width:0;overflow-wrap:anywhere}
.chat-tools{gap:12px;align-items:center}
@container admissions-chat (max-width:559px){.chat-header-actions{justify-content:space-between;gap:8px}.chat-header-actions .chat-profile-button{flex:1 1 0;padding:7px 10px}.chat-header-utilities{flex:1 1 0;justify-content:flex-end}.chat-header-utilities .chat-new-button{flex:1 1 0;padding:7px 6px}.chat-header-actions .icon-button{flex:0 0 44px;min-width:44px;width:44px;height:44px}.chat-profile-hint{font-size:11px}.chat-panel-header{padding-left:16px;padding-right:16px}}
/* Compact welcome topics retain readable labels and comfortable tap targets. */
.chat-panel .chat-welcome .quick-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;max-width:none}
.chat-panel .chat-welcome .quick-menu button{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;min-width:0;min-height:56px;padding:10px 12px;border-radius:11px;box-shadow:none;text-align:left}
.chat-panel .chat-welcome .quick-menu button .ui-icon{width:20px;height:20px;flex:0 0 20px}
.chat-panel .chat-welcome .quick-menu button>span{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
@container admissions-chat (max-width:559px){.chat-panel .chat-welcome .quick-menu button{min-height:48px;padding:8px 10px;gap:8px}}
@container admissions-chat (min-width:560px){.chat-panel .chat-welcome .quick-menu{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container admissions-chat (min-width:1000px){.chat-panel .chat-welcome .quick-menu{grid-template-columns:repeat(6,minmax(0,1fr))}}
.message-bubble .message-inline-link{color:#1955b9;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.message-bubble .message-inline-link:hover{color:#094de3}
.message--visitor .message-bubble .message-inline-link{color:inherit}
.message-source-link{display:inline-block;padding:6px 0;color:#1955b9;text-decoration:underline;overflow-wrap:anywhere}
.response-preferences{display:grid;gap:5px;margin:0 0 8px;font-size:12px}
.response-format{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.response-preferences button{min-width:0;min-height:36px;padding:6px 7px;border:1px solid #dce5f4;border-radius:8px;background:#f8faff;color:#4c6282;font:inherit;line-height:1.3;cursor:pointer;overflow-wrap:anywhere}
.response-preferences button[aria-pressed=true]{background:#e8f0ff;color:#1554c4;border-color:#93b5ff;font-weight:600}
.response-preferences button:focus-visible{outline:2px solid #1762ff;outline-offset:2px}
.response-secondary{display:flex;align-items:center;justify-content:space-between;gap:6px}
.response-secondary>div{display:flex;gap:5px}.response-secondary button{font-size:11px;min-height:32px}
.message-table-wrap{max-width:100%;overflow-x:auto;margin:8px 0;overscroll-behavior-x:contain;border:1px solid #dce5f4;border-radius:8px;white-space:normal}
.message-table-wrap table{border-collapse:collapse;min-width:100%;font-size:13px}
.message-table-wrap th,.message-table-wrap td{padding:9px 11px;text-align:start;border-bottom:1px solid #e2e8f3;min-width:95px;vertical-align:top}
.message-table-wrap th{background:#edf3ff;color:#244b80}.message-table-wrap tbody tr:last-child td{border-bottom:0}
.message-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;max-width:100%}
.message-suggestions button{padding:8px 11px;min-height:36px;border:1px solid #b7cdff;border-radius:18px;background:white;color:#1855ba;cursor:pointer;font:inherit;font-size:12px;max-width:100%;overflow-wrap:anywhere}
.employee-entry{width:min(540px,calc(100% - 32px));margin:40px auto;padding:28px;border:1px solid #dce5f4;border-radius:18px;background:white}
.employee-entry label{display:block;margin-bottom:6px}.employee-entry input{box-sizing:border-box;width:100%;padding:10px;border:1px solid #cbd9ec;border-radius:8px}
.employee-entry button,.employee-account-bar button{padding:9px 15px;border:1px solid #b7cdff;border-radius:8px;color:#1855ba;background:#edf3ff;cursor:pointer}
.employee-account-bar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 4px;font-size:13px}.employee-account-bar form{margin-left:auto}
[data-audience=employee] [data-header-profile],[data-audience=employee] [data-handoff-button],[data-audience=employee] [data-quick-topic=advisor],[data-audience=employee] .visitor-account-bar,[data-audience=employee] [data-profile-hint]{display:none!important}
[data-audience=employee].employee-no-menu .chat-tools:not([data-employee-documents-tools]){display:none}
[data-audience=employee].employee-no-menu [data-menu-open]{display:none}
.employee-account-bar strong{display:none}.employee-account-bar>span{max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@container admissions-chat (max-width:559px){[data-audience=employee] .chat-panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px}[data-audience=employee] .chat-header-actions{width:auto;flex:0 0 auto}[data-audience=employee] .chat-identity{min-width:0;flex:1 1 0}[data-audience=employee] .chat-identity h2{font-size:14px}[data-audience=employee] .chat-header-utilities{flex:0 0 auto}[data-audience=employee] .chat-header-utilities .chat-new-button{padding:7px 4px;font-size:11px;white-space:nowrap}}
@container admissions-chat (max-width:559px){.response-preferences{font-size:11px}.response-secondary button{font-size:10px}.response-format button{padding:6px 3px;min-height:38px}.message-bubble{max-width:92%}.message-table-wrap th,.message-table-wrap td{font-size:12px;padding:7px 8px;min-width:85px}}
/* Rich answers stay inside the message, including narrow mobile layouts and RTL. */
.message-bubble h3,.message-bubble h4,.message-bubble h5,.message-bubble h6{font-size:1em;line-height:1.5;margin:.65em 0 .25em;font-weight:700}
.message-bubble ul,.message-bubble ol{margin:.4em 0;padding-inline-start:1.5em;white-space:normal}
.message-bubble li{margin:.2em 0;white-space:pre-wrap}
.message-bubble li input[type=checkbox]{margin-inline-end:.5em}
.message-bubble blockquote{margin:.5em 0;padding:.2em .7em;border-inline-start:3px solid #bdd0f5;color:#536987}
.message-bubble pre{max-width:100%;overflow:auto;padding:.75em;border-radius:8px;background:#eef3fa;white-space:pre;font-size:.85em}
.message-bubble code{font-family:Consolas,monospace;background:#eef3fa;border-radius:4px;padding:.05em .2em}
.message-rewrite-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.message-rewrite-actions button{border:1px solid #d9e4f6;border-radius:8px;background:#fff;color:#466285;font-size:11px;padding:6px 9px;min-height:32px;cursor:pointer}
.message-rewrite-actions button:disabled{opacity:.45;cursor:default}
.chat-language-hint{font-size:11px;color:#72839c;margin-inline-end:auto}
.composer-footer{flex-wrap:wrap;gap:6px}
.message--typing.has-stream-text .typing-bubble{display:none}
.streaming-bubble{white-space:pre-wrap;overflow-wrap:anywhere}
.message--system .message-bubble{max-width:100%}
.streaming-bubble:not([hidden])::after{content:'▍';display:inline-block;animation:stream-caret 1s step-end infinite}
@keyframes stream-caret{50%{opacity:0}}
/* One pre-use notice in the scrollable history, not a repeated reply footer. */
.chat-ai-use-notice{flex-shrink:0;max-width:100%;padding:10px 12px;margin:0 0 14px;border:1px solid #d8e4f5;border-radius:10px;background:#f5f8fe;color:#405371;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.chat-ai-use-notice strong{font-weight:600}.chat-ai-use-notice a{color:#2050a0;text-decoration:underline;text-underline-offset:2px}
.chat-personal-data-note{margin:4px 3px 2px;font-size:11px;line-height:1.5;color:#52617b;overflow-wrap:anywhere}
/* Compact conversation controls: one tone choice, one send/stop position. */
.chat-panel .chat-panel-header{flex-wrap:nowrap;padding:6px 16px;gap:8px;min-height:56px}
.chat-panel-header .chat-identity{flex:1 1 0;min-width:0;gap:8px}
.chat-panel .chat-identity>div{min-width:0;flex:1;overflow:hidden}
.chat-panel .chat-avatar{width:30px;height:36px}
.chat-panel .chat-identity h2{font-size:15px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-panel .chat-presence{font-size:11px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-panel .chat-header-actions{flex:0 0 auto;gap:6px;width:auto;justify-content:flex-end}
.chat-panel .chat-header-utilities{flex:0 0 auto;padding-left:4px;gap:2px;justify-content:flex-end}
.chat-panel .chat-header-button{flex:0 0 auto;min-height:36px;padding:6px 9px;white-space:nowrap;font-size:12px;line-height:1.3}
.chat-panel .chat-header-actions .icon-button{flex:0 0 36px;min-width:36px;width:36px;height:36px}
.chat-panel .chat-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:2px 16px;min-height:36px;flex:0 0 auto}
.chat-panel .chat-menu-button,.chat-panel .chat-advisor-button{min-height:32px;padding:5px 8px;font-size:12px;line-height:1.3}
.welcome-profile-nudge{padding:10px 12px;margin:0 0 14px;background:#f0f5fd;border-radius:10px}
.chat-panel .chat-profile-hint{font-size:12px;text-align:left;line-height:1.5}
.welcome-profile-nudge .text-button{min-height:44px;padding:5px 0;font-size:12px}
.chat-panel .chat-composer-wrap{padding:10px 12px 6px;flex:0 0 auto}
.chat-panel .chat-composer{min-height:52px;gap:6px;padding:3px 5px 3px 12px}
.chat-panel .chat-composer textarea{font-size:16px;min-height:44px;line-height:1.4;padding:10px 0}
.chat-panel .send-button{width:44px;height:44px;flex:0 0 44px}
.chat-panel .stop-button{font-size:17px;background:#e8f0ff;color:#1855ba}
.chat-panel .response-preferences{display:flex;justify-content:flex-end;margin:2px 0 0;gap:0}
.response-tone{display:flex;align-items:center;gap:6px;font-size:12px;color:#536987;min-height:30px}
.response-tone select{font-size:12px;min-height:30px;padding:3px 24px 3px 8px;max-width:150px;border:0;border-radius:8px;background:#f4f7fc;color:#294b78;cursor:pointer}
.message-rewrite{margin-top:6px;color:#536987;font-size:12px}
.message-rewrite summary{cursor:pointer;min-height:44px;padding:10px 0;line-height:1.5}
.message-rewrite-actions{margin:0 0 6px}.message-rewrite-actions button{min-height:44px;font-size:12px}
.message-suggestions button{min-height:44px;font-size:12px}
.message-sources summary .message-source-link{padding:0;display:inline;font-size:inherit}
.message-grounding-block+.message-grounding-block{margin-top:14px;padding-top:12px;border-top:1px solid #dce6f5}
.message-grounding-source{margin-top:8px;border:1px solid #dce6f5;border-radius:8px;background:#f6f9ff;color:#35537a;font-size:12px;line-height:1.65}
.message-grounding-source summary{cursor:pointer;padding:10px;min-height:44px;box-sizing:border-box;overflow-wrap:anywhere}
.message-grounding-source summary .message-source-link{display:block;padding:4px 0 0;font-size:12px}
.message-grounding-source summary:focus-visible{outline:2px solid #1762ff;outline-offset:2px;border-radius:8px}
.message-grounding-source .message-grounding-applicability{white-space:pre-wrap;margin:0;padding:0 10px 10px;overflow-wrap:anywhere}
.message-grounding-excerpts>div{padding:10px;border-top:1px solid #e1eaff}
.message-grounding-original-label{font-size:11px;color:#60718a}
.message-grounding-excerpts p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0;font-size:12px;line-height:1.8}
[data-audience=employee] .welcome-profile-nudge{display:none!important}
.employee-account-menu{position:relative;font-size:13px;flex:0 0 auto;max-width:45%}
.employee-account-menu summary{cursor:pointer;min-height:44px;padding:11px 8px;overflow-wrap:anywhere}
.employee-account-options{position:absolute;z-index:30;right:0;top:100%;min-width:200px;max-width:calc(100vw - 32px);padding:8px;background:#fff;border:1px solid #dce5f4;border-radius:12px;box-shadow:0 8px 30px #163b6922}
.employee-account-options a,.employee-account-options button{display:block;width:100%;text-align:left;min-height:44px;padding:10px;border:0;border-radius:6px;background:transparent;color:#294b78;font-size:13px}
.employee-account-options a:hover,.employee-account-options button:hover{background:#f0f5fd}
@container admissions-chat (max-width:559px){.chat-panel .chat-panel-header{padding:6px 12px}.chat-panel .chat-identity h2{font-size:13px}.chat-panel .chat-header-button{padding:6px 7px;font-size:12px}.chat-panel .chat-header-actions{gap:3px}.chat-panel .chat-header-utilities{padding-left:2px}.chat-panel .chat-welcome .quick-menu button{min-height:44px;padding:7px 9px}.chat-panel .chat-tools{padding:2px 12px}}
@container admissions-chat (max-width:399px){.chat-panel .chat-avatar{display:none}.chat-panel .chat-header-button{padding:6px}.chat-panel .chat-identity h2{font-size:12px}}
@container admissions-chat (max-width:339px){.chat-panel .chat-welcome .quick-menu button .ui-icon{display:none}.chat-panel .chat-welcome .quick-menu button>span{overflow-wrap:normal}}
.chat-panel.keyboard-open{height:var(--keyboard-chat-height)!important;min-height:0!important;max-height:none!important;flex:0 0 auto!important}
.message.message--handoff{width:100%;max-width:100%;align-self:stretch}
.handoff-actions{display:flex;justify-content:center;margin:8px 0 4px}
.handoff-cancel-button{min-height:34px;padding:6px 14px;border:1px solid #cbd9ee;border-radius:8px;background:#fff;color:#536987;font-size:12px;line-height:1.4}
.handoff-cancel-button:hover:not(:disabled){background:#f0f5fd;color:#1955b9}

/* Compact public branding and one typography/geometry system for the composer. */
.home-page,.chat-page{--chat-site-header-height:56px}
.home-page>.site-header,.chat-page>.site-header:not(.employee-site-header){height:var(--chat-site-header-height);min-height:var(--chat-site-header-height);padding-block:0;flex-wrap:nowrap;gap:14px}
.home-page>.site-header .brand-logo,.chat-page>.site-header:not(.employee-site-header) .brand-logo{width:160px;max-height:34px;height:auto;object-fit:contain;object-position:left center}
.chat-panel{--chat-text-size:15px}
.chat-panel .message-bubble,.chat-panel .chat-composer textarea{font-family:inherit;font-size:var(--chat-text-size);font-weight:400;line-height:1.6;letter-spacing:normal}
.chat-panel .chat-composer textarea::placeholder{font:inherit;letter-spacing:inherit}
.chat-panel .chat-composer{padding:4px 6px 4px 14px;gap:8px}
.chat-panel .send-button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;flex:0 0 44px;padding:0;line-height:0}
.chat-panel .send-button .ui-icon{display:block;width:20px;height:20px;margin:0;stroke-width:2;transform:none;pointer-events:none}
.chat-panel .stop-button .stop-shape{display:block;width:12px;height:12px;border-radius:2px;background:currentColor}
.chat-panel .chat-composer-wrap{padding-bottom:max(8px,env(safe-area-inset-bottom))}
@media(max-width:740px){
 .home-page,.chat-page{--chat-site-header-height:52px}
 .home-page>.site-header .brand-logo,.chat-page>.site-header:not(.employee-site-header) .brand-logo{width:128px;max-height:28px}
 .chat-panel{--chat-text-size:16px}
}
@media(max-width:380px){.home-page>.site-header .brand-logo,.chat-page>.site-header:not(.employee-site-header) .brand-logo{width:116px}}
@media(pointer:coarse){.chat-panel{--chat-text-size:16px}}

/* Give public chat identity room and keep optional details visually secondary. */
[data-audience=public] .chat-panel-header{min-height:76px;padding:14px 24px;gap:20px;align-items:center}
[data-audience=public] .chat-identity{gap:12px}
.chat-avatar-frame{display:contents}
[data-audience=public] .chat-avatar-frame{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:#f2f6fc;overflow:visible}
[data-audience=public] .chat-avatar{display:block;width:44px;height:44px;padding:0;border-radius:0;background:transparent;object-fit:contain;object-position:center}
[data-audience=public] .chat-identity h2{font-size:16px;line-height:1.4;white-space:normal;overflow:visible;text-overflow:clip}
[data-audience=public] .chat-presence{margin-top:4px;font-size:12px;line-height:1.4;gap:6px;overflow:visible;text-overflow:clip}
[data-audience=public] .chat-ai-badge{font-size:10px;line-height:1;padding:3px 5px;margin:0;border:0;border-radius:4px;background:#eaf1fc;color:#3d608e}
[data-audience=public] .chat-header-actions{gap:10px}
[data-audience=public] .chat-header-utilities{gap:4px;padding-left:0;border-left:0}
[data-audience=public] .chat-header-actions .chat-profile-button{position:relative;min-height:36px;padding:8px 12px;gap:7px;border:1px solid #e4ebf4;border-radius:999px;background:#f4f7fb;color:#455f7f;font-size:12px;font-weight:600;line-height:1.4;box-shadow:none}
[data-audience=public] .chat-profile-button [data-profile-saved]{position:absolute;top:-3px;right:-2px;display:grid;place-items:center;width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:#e1f2e8;color:#276746;font-size:10px;line-height:1}
[data-audience=public] .chat-header-actions .chat-profile-button:hover:not(:disabled),[data-audience=public] .chat-profile-button[aria-expanded=true]{background:#eaf1fc;border-color:#ccdbee;color:#244e86}
[data-audience=public] .chat-profile-button>.ui-icon{width:16px;height:16px;stroke-width:1.7}
[data-audience=public] .chat-profile-chevron{width:6px;height:6px;margin:-3px 1px 0 2px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);flex:0 0 6px}
[data-audience=public] .chat-profile-button[aria-expanded=true] .chat-profile-chevron{transform:rotate(225deg);margin-top:3px}
@container admissions-chat (max-width:719px){
 [data-audience=public] .chat-panel-header{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:14px 18px}
 [data-audience=public] .chat-identity{width:100%;gap:10px}
 [data-audience=public] .chat-identity h2{font-size:15px}
 [data-audience=public] .chat-header-actions{width:100%;justify-content:space-between;gap:12px}
 [data-audience=public] .chat-header-utilities{flex:0 0 auto;gap:4px}
 [data-audience=public] .chat-header-actions .chat-profile-button{flex:0 0 auto}
}
@container admissions-chat (max-width:339px){
 [data-audience=public] .chat-header-actions{gap:8px}
 [data-audience=public] .chat-header-actions .chat-profile-button{padding-inline:10px}
 [data-audience=public] .chat-new-button>span[aria-hidden=true]{display:none}
}

/* Identity icons and greeting artwork have separate roles, never stretched artwork. */
.chat-panel .chat-avatar,.chat-panel .chat-menu-avatar{object-fit:contain;object-position:center}
.chat-panel .welcome-intro .chat-welcome-image{width:80px;height:80px;flex:0 0 80px;object-fit:contain;object-position:center}
@container admissions-chat (max-width:559px){
 .chat-panel .welcome-intro .chat-welcome-image{width:64px;height:64px;flex-basis:64px}
}

/* First-visit nationality step and a small, non-modal editor for later changes. */
[data-audience=public].chat-panel{position:relative}
[data-audience=public] [data-nationality-label]{display:block;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nationality-onboarding{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:24px;margin:auto;border:1px solid #dce6f4;border-radius:18px;background:#fff;color:#203b60;box-shadow:0 20px 70px #10244240;overflow:auto;overscroll-behavior:contain}
.nationality-onboarding::backdrop{background:rgba(14,31,57,.4);backdrop-filter:blur(2px)}
.nationality-onboarding .nationality-heading h4{font-size:22px;line-height:1.35;outline:none}
.nationality-onboarding .nationality-purpose{font-size:13px}
.nationality-onboarding .nationality-options{position:static;margin-top:6px;box-shadow:none}
.nationality-form{margin:0;min-width:0}
.nationality-form fieldset{display:grid;gap:12px;border:0;margin:0;padding:0;min-width:0}
.nationality-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nationality-heading h4{font-size:16px;line-height:1.4;color:#203b60;margin:0}
.nationality-close{width:32px;height:32px;flex:0 0 32px;padding:0;border-radius:8px;background:transparent;color:#60738e;font-size:22px;line-height:1}
.nationality-close:hover{background:#edf3fb}
.nationality-purpose{font-size:12px;line-height:1.6;color:#536985}
.nationality-label{font-size:12px;font-weight:600;color:#344f72;margin-bottom:-7px}
.nationality-picker{position:relative;min-width:0}
.nationality-search-control{display:flex;align-items:center;min-height:44px;border:1px solid #bccde4;border-radius:10px;background:#fff;overflow:hidden}
.nationality-search-control:focus-within{outline:2px solid #79a9ff;outline-offset:2px}
.nationality-search-control input{min-width:0;width:100%;min-height:44px;padding:10px 12px;border:0;background:transparent;color:#203b60;font-family:inherit;font-size:16px;line-height:1.4;box-shadow:none}
.nationality-search-control input:focus-visible{outline:none}
.nationality-search-control button{align-self:stretch;flex:0 0 38px;width:38px;padding:0;background:transparent;color:#60738e;font-size:20px}
.nationality-options{position:absolute;z-index:70;top:100%;left:0;right:0;max-height:176px;overflow-y:auto;overscroll-behavior:contain;margin:6px 0 0;padding:4px;list-style:none;border:1px solid #c5d3e6;border-radius:10px;background:#fff;box-shadow:0 8px 24px #17375f20}
.nationality-options li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;padding:9px 10px;border-radius:6px;font-size:13px;line-height:1.45;color:#294667;cursor:pointer}
.nationality-options li:hover,.nationality-options li.is-active{background:#edf4ff;color:#174d9c}
.nationality-options [aria-selected=true]::after{content:'✓';color:#1d67c5}
.nationality-options .nationality-no-results{color:#65758a;cursor:default}
.nationality-consent{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.5;color:#455e7b;cursor:pointer}
.nationality-consent input{flex:0 0 16px;width:16px;height:16px;margin:1px 0 0;accent-color:#1762ff}
.nationality-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px}
.nationality-actions .button{font-size:12px;min-height:42px;padding:10px 14px;box-shadow:none}
.nationality-actions .text-button{font-size:12px;min-height:42px;padding:8px 0;color:#536985}
.nationality-onboarding .nationality-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.nationality-onboarding .nationality-actions .button{width:100%;min-width:0;height:100%;white-space:normal}
.nationality-onboarding [data-nationality-skip]{background:#edf3fc;border-color:#b5cbea;color:#294f82;font-weight:600}
.nationality-onboarding [data-nationality-skip]:hover:not(:disabled){background:#dfeaf9;border-color:#8fafdc}
.nationality-result{font-size:12px;line-height:1.5;color:#385c89}
.nationality-result[data-kind=error]{color:#a33c43}
.nationality-reload,.nationality-clear{justify-self:start;padding:4px 0;font-size:11px;text-decoration:underline;text-underline-offset:3px;color:#60738e;background:transparent}
.nationality-editor{position:absolute;z-index:60;right:12px;left:auto;width:min(352px,calc(100% - 24px));padding:18px;border:1px solid #d3dfed;border-radius:14px;background:#fff;box-shadow:0 12px 36px #17375f29;overflow:auto;overscroll-behavior:contain}
.nationality-editor .nationality-options{position:static;margin-top:6px;max-height:144px;box-shadow:none}
@container admissions-chat (max-width:339px){
 [data-audience=public] [data-nationality-label]{max-width:64px}
 .nationality-editor{padding:14px}
}

/* Queue details follow the active AI bubble inside the conversation. */
.chat-progress-status{margin:6px 3px 0;color:#51647d;font-size:12px;line-height:1.6;overflow-wrap:anywhere;max-width:100%}

/* Destructive actions share one color across staff and visitor surfaces. */
.button.button-danger,.staff-page .button.button-danger,.chat-profile .button.button-danger,.nationality-onboarding .button.button-danger{background:#ac3e4b;color:#fff;border:1px solid #ac3e4b;box-shadow:none}
.button.button-danger:hover,.staff-page .button.button-danger:hover,.chat-profile .button.button-danger:hover,.nationality-onboarding .button.button-danger:hover{background:#91323e;color:#fff;border-color:#91323e}
.button.button-danger:disabled,.staff-page .button.button-danger:disabled,.chat-profile .button.button-danger:disabled,.nationality-onboarding .button.button-danger:disabled{background:#ac3e4b;border-color:#ac3e4b;color:#fff;opacity:.45;cursor:not-allowed}
