/* CampusBot 1.1 - standalone private front-end chat. All selectors scoped. */
html:has(.tacb-portal-body){margin:0!important;scroll-behavior:smooth}
body.tacb-portal-body{margin:0!important;background:#f7f9fc;color:#172e4b;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.5;}
.tacb-portal-body *{box-sizing:border-box}
.tacb-portal-body button,.tacb-portal-body input,.tacb-portal-body textarea{font:inherit}
.tacb-portal-body button{cursor:pointer}
.tacb-portal-body button:disabled{opacity:.55;cursor:not-allowed}
.tacb-portal-body a{color:#125d97;text-decoration:none}
.tacb-portal-body a:hover{text-decoration:underline}
.tacb-portal-body :focus-visible{outline:3px solid #78b7f1;outline-offset:3px}
.tacb-app{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;background:radial-gradient(ellipse 65% 35% at 50% 10%,#eff5fc 0%,transparent 82%),#f8faff}
.tacb-navbar{flex-shrink:0;min-height:82px;padding:15px clamp(22px,4vw,64px);display:flex;align-items:center;justify-content:space-between;gap:20px;background:rgba(255,255,255,.92);border-bottom:1px solid #e8edf4}
.tacb-brand{display:flex;align-items:center;gap:11px;color:#103b60!important;font-size:22px;letter-spacing:-.035em;font-weight:350;line-height:1.05;white-space:nowrap}
.tacb-brand:hover{text-decoration:none!important}
.tacb-brand-icon{display:flex;align-items:center;justify-content:center;width:41px;height:41px;border-radius:12px;color:white;background:#0d4a78;box-shadow:0 5px 15px #123e6630}
.tacb-brand-bold{font-weight:750}
.tacb-brand small{display:block;letter-spacing:.17em;font-size:9px;font-weight:750;margin-top:4px;text-transform:uppercase;color:#54718e}
.tacb-nav-right{display:flex;align-items:center;gap:16px;min-width:0}
.tacb-team-pill{padding:6px 12px;border:1px solid #d6e3f0;border-radius:99px;color:#45637c;background:#f3f8fd;font-size:12px;font-weight:650;white-space:nowrap}
.tacb-plain-button{display:flex;gap:7px;align-items:center;border:0;background:transparent;color:#305777;border-radius:10px;padding:8px 10px;font-size:13px;font-weight:600;white-space:nowrap}
.tacb-plain-button:hover{background:#edf4fb}
.tacb-user-avatar{height:31px;width:31px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;background:#dcebf8;color:#14446e;font-size:13px;font-weight:800}
.tacb-logout{font-size:13px;font-weight:650}
.tacb-auth-area{display:flex;flex:1;align-items:center;justify-content:center;padding:60px 16px}
.tacb-auth-card{max-width:460px;width:100%;background:#fff;border:1px solid #e0e9f2;border-radius:20px;box-shadow:0 20px 55px #2d4e7520;padding:clamp(26px,5vw,44px)}
.tacb-auth-symbol{background:#eaf4fd;color:#15578c;width:54px;height:54px;border-radius:16px;font-size:28px;display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.tacb-eyebrow{font-size:12px;letter-spacing:.11em;text-transform:uppercase;font-weight:850;color:#2370ad}
.tacb-auth-card h1{font-size:clamp(29px,3vw,37px);line-height:1.18;letter-spacing:-.045em;margin:8px 0 12px;color:#112f50;font-weight:750}
.tacb-auth-card p{color:#567087;line-height:1.62;margin:0 0 25px}
.tacb-auth-card #tacb-login-form p{margin:0 0 15px;}
.tacb-auth-card #tacb-login-form label{display:block;font-weight:650;color:#2a4864;margin-bottom:6px;font-size:13px}
.tacb-auth-card #tacb-login-form input[type=text],.tacb-auth-card #tacb-login-form input[type=password]{width:100%;padding:12px 14px;min-height:48px;border:1px solid #cfdce9;border-radius:11px;background:white;outline:0;color:#143956;box-shadow:none}
.tacb-auth-card #tacb-login-form input:focus{border-color:#3481bd;box-shadow:0 0 0 3px #317eb61c}
.tacb-auth-card #tacb-login-form .login-remember label{display:flex;align-items:center;gap:7px;font-weight:450}
.tacb-auth-card #tacb-login-form input[type=checkbox]{width:16px;height:16px;margin:0}
.tacb-auth-card #tacb-login-form .login-submit{margin-bottom:3px}
.tacb-auth-card #tacb-login-form input[type=submit]{display:block;width:100%;min-height:48px;border:0;border-radius:11px;background:#104e80;color:white;font-weight:700}
.tacb-auth-card #tacb-login-form input[type=submit]:hover{background:#0b3d68}
.tacb-auth-card .tacb-helper{font-size:13px;text-align:center;margin:18px 0 0}
.tacb-not-authorized{padding-top:44px;padding-bottom:45px}
.tacb-back-link{font-weight:650}
.tacb-workspace{display:flex;flex:1;flex-direction:column;min-height:0;width:100%;max-width:900px;margin:0 auto;padding:20px clamp(18px,3vw,30px) 0}
.tacb-welcome{text-align:center;max-width:780px;width:100%;align-self:center;margin:auto 0 20px}
.tacb-greeting-mark{margin:0 auto 17px;height:62px;width:62px;display:flex;align-items:center;justify-content:center;border:1px solid #ddebf9;border-radius:20px;background:linear-gradient(145deg,#fff,#eaf4fc);color:#17649c;font-size:31px;box-shadow:0 8px 24px #155a9312}
.tacb-welcome h1{font-size:clamp(28px,4.2vw,44px);letter-spacing:-.047em;line-height:1.16;font-weight:740;color:#153859;margin:12px 0 12px}
.tacb-welcome p{font-size:16px;line-height:1.7;color:#64788d;max-width:590px;margin:0 auto}
.tacb-composer-area{width:100%;margin:0 auto auto;padding-top:14px;max-width:790px}
.tacb-composer{display:flex;align-items:flex-end;gap:12px;background:#fff;border:1.5px solid #cddcea;border-radius:19px;padding:12px 12px 12px 21px;box-shadow:0 15px 33px #1f4e7719;transition:border-color .15s,box-shadow .15s}
.tacb-composer:focus-within{border-color:#4989bd;box-shadow:0 10px 38px #1f4e7724}
.tacb-composer textarea{display:block;resize:none;outline:0;border:0!important;box-shadow:none!important;background:transparent!important;line-height:1.6;color:#15334f;width:100%;min-height:48px;height:48px;max-height:200px;font-size:16px;padding:10px 0;overflow-y:auto}
.tacb-composer textarea::placeholder{color:#8192a4}
.tacb-composer textarea:focus{outline:none}
.tacb-composer button{height:43px;width:43px;display:flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:13px;background:#155b90;color:white;border:0;margin-bottom:3px}
.tacb-composer button:hover{background:#0b4370}
.tacb-shortcuts{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:19px auto 5px}
.tacb-chip{border:1px solid #d9e5f0;background:#fff;color:#3a5974;font-size:13px;padding:9px 13px;border-radius:100px;box-shadow:0 2px 7px #45648708}
.tacb-chip:hover{background:#eff6fc;border-color:#bad5ea}
.tacb-composer-note{max-width:710px;margin:4px auto 14px;color:#8999aa;text-align:center;font-size:11px;line-height:1.65}
.tacb-inline-status{color:#52718c;text-align:center;font-size:12px;min-height:18px;margin:8px auto 0}
.tacb-inline-status.is-error{color:#b43e44}
.tacb-system-warning{padding:9px 13px;background:#fff6e7;border:1px solid #f1dbaf;color:#8a5c19;border-radius:11px;margin-bottom:12px;font-size:12px;line-height:1.5}
.tacb-thread{display:none;flex-direction:column;gap:19px;width:100%;padding:8px 0 30px;overflow:auto;scrollbar-width:thin;scrollbar-color:#d4e0ec transparent}
.tacb-has-chat{height:calc(100dvh - 82px - 48px);max-height:1300px;}
.tacb-has-chat .tacb-welcome{display:none}
.tacb-has-chat .tacb-thread{display:flex;flex:1;min-height:60px}
.tacb-has-chat .tacb-composer-area{flex-shrink:0;margin:0 auto;background:linear-gradient(#f8faffea 95%,#f8faff);padding-top:12px}
.tacb-has-chat .tacb-shortcuts{display:none}
.tacb-has-chat .tacb-composer-note{margin-bottom:8px}
.tacb-has-chat .tacb-composer{box-shadow:0 5px 22px #1f4e7711}
.tacb-chat-row{display:flex;align-items:flex-start;gap:12px;max-width:100%;}
.tacb-chat-avatar{height:31px;width:31px;min-width:31px;border-radius:10px;background:#e6f1fb;color:#155785;display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:720;margin-top:3px}
.tacb-chat-user{flex-direction:row-reverse}
.tacb-chat-user .tacb-chat-avatar{background:#d7e6f7;color:#214f78;font-size:10px;border-radius:50%}
.tacb-chat-bubble{max-width:min(640px,86%);padding:14px 18px;background:#fff;border:1px solid #e3ebf2;color:#243f58;box-shadow:0 3px 10px #2b507110;border-radius:15px 15px 15px 4px;line-height:1.63;white-space:pre-wrap;word-break:break-word}
.tacb-chat-user .tacb-chat-bubble{background:#e6eff9;color:#183b59;border-color:#d6e4f1;border-radius:15px 15px 4px 15px}
.tacb-typing .tacb-chat-bubble{font-style:italic;color:#6d8094}
.tacb-error-message .tacb-chat-bubble{color:#a13e45;background:#fff4f4;border-color:#f6d8d8}
.tacb-review-card{flex:1;max-width:680px;border:1px solid #cddfed;background:#fff;padding:20px 22px;border-radius:16px;box-shadow:0 10px 25px #164f7d12;min-width:0}
.tacb-review-eyebrow{font-weight:800;color:#a77121;letter-spacing:.095em;font-size:11px}
.tacb-review-card h2{font-size:20px;margin:5px 0 8px;line-height:1.3;color:#173f61}
.tacb-review-description{color:#698095;font-size:13px;line-height:1.6;margin:0 0 14px}
.tacb-review-diff{border:1px solid #e0e8f0;padding:13px 15px;border-radius:11px;background:#f9fbfd;margin:10px 0;}
.tacb-review-diff h3{font-size:13px;margin:0 0 10px;font-weight:800;color:#284963}
.tacb-review-values{display:grid;grid-template-columns:72px minmax(0,1fr);gap:9px;font-size:13px;padding:6px 0;border-top:1px solid #ecf1f5;color:#536c82;white-space:pre-wrap;word-break:break-word}
.tacb-review-label{font-size:10px;letter-spacing:.06em;font-weight:800;color:#8196a8;padding-top:2px}
.tacb-after{color:#1d654e}
.tacb-after .tacb-review-label{color:#218565}
.tacb-review-actions{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}
.tacb-review-actions button{padding:10px 17px;border-radius:10px;font-weight:730;font-size:13px;border:1px solid #d5e2eb;min-height:43px}
.tacb-button-primary{background:#125b8e;color:#fff;border-color:#125b8e!important}
.tacb-button-primary:hover{background:#0b446e}
.tacb-button-neutral{background:#fff;color:#4a657d}
.tacb-button-neutral:hover{background:#f0f5fa}
.tacb-review-state{font-size:13px;color:#6d8190;border-top:1px solid #e4eaf0;padding-top:13px}
.tacb-review-inactive{opacity:.72}
.tacb-footer{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:10px clamp(22px,4vw,64px);font-size:12px;color:#8b9aac;border-top:1px solid #eaf0f6;background:#fff}
.tacb-footer-links{display:flex;gap:20px}
.tacb-footer-links a{font-weight:650;color:#426c8c}
.tacb-visually-hidden{position:absolute!important;clip:rect(0,0,0,0)!important;height:1px;width:1px;overflow:hidden;white-space:nowrap}
@media(max-width:800px){
 .tacb-navbar{min-height:72px;padding:13px 19px}
 .tacb-team-pill{display:none}
 .tacb-has-chat{height:calc(100dvh - 72px - 48px)}
 .tacb-workspace{padding:16px 16px 0}
 .tacb-welcome h1{font-size:32px}
 .tacb-composer-area{padding-top:8px}
}
@media(max-width:520px){
 .tacb-navbar{gap:7px;padding:10px 13px}
 .tacb-brand{font-size:20px;gap:8px}
 .tacb-brand-icon{width:34px;height:34px;border-radius:10px}
 .tacb-plain-button{font-size:0;gap:0;padding:6px}
 .tacb-plain-button svg{width:20px;height:20px}
 .tacb-nav-right{gap:9px}
 .tacb-logout{font-size:12px}
 .tacb-user-avatar{width:27px;height:27px}
 .tacb-welcome h1{font-size:29px}
 .tacb-welcome p{font-size:14px}
 .tacb-greeting-mark{width:54px;height:54px;font-size:28px}
 .tacb-chip{font-size:12px;padding:8px 10px}
 .tacb-composer{padding:8px 9px 8px 15px;border-radius:15px}
 .tacb-composer textarea{font-size:14px}
 .tacb-composer button{height:39px;width:39px}
 .tacb-chat-row{gap:7px}
 .tacb-chat-avatar{width:25px;min-width:25px;height:25px;font-size:12px}
 .tacb-chat-bubble{font-size:14px;padding:12px;max-width:calc(100% - 32px)}
 .tacb-review-card{padding:14px 12px}
 .tacb-review-values{grid-template-columns:56px minmax(0,1fr);gap:4px}
 .tacb-review-actions{flex-direction:column}
 .tacb-footer{padding:9px 12px;font-size:11px;gap:5px}
 .tacb-footer-links{gap:11px}
}
@media(prefers-reduced-motion:reduce){.tacb-portal-body *, .tacb-portal-body *::before, .tacb-portal-body *::after{scroll-behavior:auto!important;transition:none!important}}
