/* Student Support Center — three-pane inbox based on the owner-supplied L2 layout. */
.sp-root{--sp-ink:#202a3a;--sp-muted:#87909f;--sp-line:#edf0f5;--sp-blue:#2876f9;color:var(--sp-ink);font:400 14px/1.6 Inter,system-ui,sans-serif;background:#f1f5f9;border:1px solid #e4eaf1;border-radius:17px;padding:18px;min-width:0;isolation:isolate}
.sp-root *{box-sizing:border-box}.sp-root button,.sp-root input,.sp-root select,.sp-root textarea{font:inherit}.sp-root button{cursor:pointer;min-height:34px;border:1px solid #e5e9f0;background:white;color:#586579;border-radius:7px;padding:7px 11px;font-weight:550;box-shadow:none;margin:0;white-space:normal}.sp-root button:hover{background:#f6f8fc;border-color:#ccd8ea}.sp-root button:disabled{opacity:.5;cursor:wait}.sp-root input,.sp-root select,.sp-root textarea{margin:0!important;border:1px solid #e8edf4!important;background:white!important;border-radius:7px!important;padding:9px 11px!important;color:#3e4c62!important;min-width:0;font-size:14px!important;width:100%;max-width:none!important;min-height:39px!important}.sp-root input:focus,.sp-root textarea:focus{outline:3px solid #2a79ff12!important;border-color:#9bc1ff!important}.sp-root :focus-visible{outline:3px solid #4b96ff70;outline-offset:2px}.sp-root [hidden]{display:none!important}.sp-root h2,.sp-root h3,.sp-root h4,.sp-root p{margin:0}.sp-root h2{font-size:22px;font-weight:750;letter-spacing:-.7px}.sp-root h3{font-size:16px;font-weight:650}.sp-root small{font-size:11px;color:var(--sp-muted)}
.sp-heading{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-bottom:17px}.sp-heading>div{display:flex;align-items:center;gap:12px}.sp-heading p{font-size:12px;color:#8692a3;margin-top:2px}.sp-heading .sp-title-icon{width:35px;height:35px;border-radius:10px;background:#e5eefe;color:#3980e8;display:grid;place-items:center}.sp-title-icon svg{width:19px;height:19px}.sp-root .sp-primary{background:#15191f!important;border-color:#15191f!important;color:white!important;font-size:12px;min-height:36px;box-shadow:0 3px 8px #111a3512}.sp-root .sp-primary:hover{background:#2b313c!important}.sp-sync{font-size:10px;color:#7e8c9f;white-space:nowrap}.sp-sync[data-live=true]{color:#489c82}.sp-statusbar{font-size:12px;line-height:1.6;color:#bd6d48;min-height:0}.sp-statusbar:not(:empty){padding:10px 13px;border:1px solid #f1e0cf;background:#fffaf4;border-radius:9px;margin-bottom:12px}
.sp-shell{display:grid;grid-template-columns:260px minmax(280px,1fr) 244px;min-height:640px;height:min(740px,calc(100dvh - 210px));background:white;border:1px solid #e9edf3;border-radius:10px;overflow:hidden;min-width:0}.sp-list-pane,.sp-chat-pane,.sp-profile-pane{min-width:0;background:#fff}.sp-list-pane{border-right:1px solid var(--sp-line);display:flex;flex-direction:column}.sp-search{padding:17px 16px 10px;display:flex;gap:7px}.sp-search input{min-height:34px!important;background:#f7f9fc!important;font-size:12px!important;border:0!important}.sp-root .sp-filter-toggle{padding:4px 8px;border:0;color:#8996a8;background:transparent;min-width:28px}.sp-filters{padding:0 16px 12px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.sp-filters select{font-size:11px!important;min-height:32px!important;padding:5px 7px!important}.sp-tabs{display:flex;gap:3px;padding:0 13px 11px;border-bottom:1px solid #f0f3f7}.sp-root .sp-tabs button{border:0;background:none;font-size:11px;padding:4px 7px;min-height:28px;border-radius:5px;color:#a0a9b6;font-weight:500;position:relative}.sp-root .sp-tabs button.active{color:#2876f9;background:#eef5ff}.sp-ticket-list{overflow:auto;flex:1;scrollbar-width:thin;padding:5px 0}.sp-root .sp-ticket{width:100%;display:flex;align-items:flex-start;gap:10px;border:0;border-radius:0;padding:13px 14px;text-align:left;min-height:82px;background:white}.sp-root .sp-ticket:hover{background:#fafcff}.sp-root .sp-ticket.active{background:#f2f6fc;box-shadow:inset 2px 0 #2b7df5}.sp-avatar{flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e9f1ff;color:#527ebc;font-size:11px;font-weight:650}.sp-ticket:nth-child(3n) .sp-avatar{background:#f1e9fe;color:#9676bd}.sp-ticket:nth-child(2n) .sp-avatar{background:#e5f5ef;color:#5d9c85}.sp-ticket-copy{min-width:0;flex:1}.sp-ticket-top{display:flex;justify-content:space-between;gap:6px;align-items:center}.sp-ticket-top strong{font-size:12px;color:#344057;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:650}.sp-ticket-top time{font-size:9px;color:#a4afbf;flex:none}.sp-ticket-copy p{font-size:11px;color:#929dae;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400;margin:3px 0 2px}.sp-ticket-meta{display:flex;gap:6px;align-items:center}.sp-ticket-meta small{font-size:9px;color:#a0aabd}.sp-unread{display:inline-grid;place-items:center;min-width:15px;height:15px;padding:0 4px;border-radius:5px;background:#2b7df5;color:white;font-size:9px}.sp-paging{border-top:1px solid #f0f3f7;padding:9px 12px;display:flex;align-items:center;justify-content:space-between;gap:5px}.sp-paging small{font-size:10px}.sp-root .sp-paging button{font-size:11px;padding:4px 7px;min-height:27px}
.sp-chat-pane{display:flex;flex-direction:column;position:relative}.sp-chat-header{padding:17px 19px;border-bottom:1px solid var(--sp-line);display:flex;gap:12px;align-items:center;min-height:74px}.sp-chat-header>div{min-width:0;flex:1}.sp-chat-header h3{font-size:14px;color:#293649}.sp-chat-header p{font-size:10px;color:#8b99ad;line-height:1.6;margin-top:3px;overflow-wrap:anywhere}.sp-root .sp-mobile-back,.sp-root .sp-profile-toggle{display:none}.sp-state-chip{font-size:10px;padding:4px 7px;border:1px solid #e8edf4;background:#fafbfd;border-radius:5px;color:#7f90a6;white-space:nowrap}.sp-thread{flex:1;min-height:100px;overflow:auto;padding:21px 20px;scrollbar-width:thin;background:#fff}.sp-message{display:flex;align-items:flex-start;gap:9px;margin:0 0 21px;max-width:94%;width:fit-content}.sp-message .sp-avatar{width:26px;height:26px;font-size:9px}.sp-message-content{min-width:0;max-width:100%}.sp-message-name{font-size:10px;color:#98a3b3;margin-bottom:5px}.sp-bubble{font-size:13px;line-height:1.8;padding:12px 15px;background:#f6f8fb;color:#69768a;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:0 9px 9px 9px}.sp-message.mine{margin-left:auto;flex-direction:row-reverse}.sp-message.mine .sp-bubble{background:linear-gradient(130deg,#2786ff,#2872f1);color:white;border-radius:9px 0 9px 9px;box-shadow:0 3px 10px #3386fa13}.sp-message.note .sp-bubble{background:#fff8e4;color:#9c8139;border:1px solid #f4e9c3}.sp-message-time{font-size:9px;color:#acb5c2;margin-top:5px}.sp-message.mine .sp-message-time{text-align:right}.sp-root .sp-file{display:block;text-align:left;margin-top:8px;max-width:100%;font-size:11px;background:#ffffffb8;border-color:#dde7f5;color:#4e739c;min-height:30px;overflow-wrap:anywhere}.sp-note-label{font-size:10px;font-weight:600;color:#b69642;margin-bottom:4px}.sp-root .sp-load-older{font-size:11px;display:block;margin:0 auto 20px;padding:4px 10px;min-height:28px}.sp-empty{height:100%;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;color:#9aa8ba;gap:10px}.sp-empty svg{width:35px;height:35px;color:#c8d5e9}.sp-empty h3{font-size:16px;color:#8091aa}.sp-empty p{font-size:12px;max-width:240px;line-height:1.9}.sp-list-pane .sp-empty{min-height:180px;height:auto;font-size:12px;line-height:1.8}.sp-chat-empty{position:absolute;inset:0;z-index:2;background:#fff}.sp-read-receipt{padding:0 20px 6px;min-height:20px;font-size:10px;color:#7f9bb5;display:flex;gap:7px;flex-wrap:wrap}.sp-read-receipt span{background:#f4f8fc;padding:3px 7px;border-radius:5px}
.sp-composer{margin:8px 18px 18px;border:1px solid #e8edf4;border-radius:8px;padding:12px 12px 10px;background:#fff;box-shadow:0 4px 10px #192f4d03}.sp-composer textarea{width:100%;border:0!important;outline:0!important;box-shadow:none!important;padding:0!important;resize:none;min-height:55px!important;max-height:140px;line-height:1.7;font-size:13px!important}.sp-composer-actions{display:flex;align-items:center;gap:9px;margin-top:9px}.sp-root .sp-attach{border:0;background:none;padding:3px;color:#9aa8bc;min-height:27px;display:grid;place-items:center}.sp-attach svg{width:16px;height:16px}.sp-root .sp-send{margin-left:auto;padding:6px 13px;min-height:32px;display:flex;gap:7px;align-items:center}.sp-send svg{width:12px;height:12px}.sp-note-switch{display:flex!important;align-items:center;gap:6px;font-size:10px!important;color:#9aa8ba!important;font-weight:400!important;margin:0!important}.sp-root .sp-note-switch input{width:13px!important;height:13px!important;min-height:0!important;margin:0!important}.sp-attachments{display:flex;flex-wrap:wrap;gap:5px;padding:5px 0}.sp-attachments span{font-size:10px;color:#718aa8;background:#f1f6fd;border-radius:5px;padding:2px 6px;overflow-wrap:anywhere}.sp-root .sp-attachments button{border:0;padding:0 3px;background:none;font-size:11px;min-height:18px}
.sp-profile-pane{overflow:auto;border-left:1px solid var(--sp-line);scrollbar-width:thin;padding:17px 19px}.sp-profile-heading{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:24px;color:#4c596e}.sp-profile{display:flex;flex-direction:column;align-items:center;text-align:center;padding-bottom:23px;border-bottom:1px solid #f0f3f7}.sp-profile .sp-avatar{width:58px;height:58px;font-size:19px;margin-bottom:12px;background:linear-gradient(135deg,#dfecff,#ebe3fa);color:#6687c1}.sp-profile h4{font-size:13px;font-weight:650}.sp-profile small{font-size:10px;margin-top:4px}.sp-profile-section{padding:19px 0;border-bottom:1px solid #f0f3f7}.sp-profile-section h4{font-size:11px;font-weight:650;color:#697a94;margin-bottom:13px}.sp-profile-section label{font-size:10px!important;font-weight:450!important;display:block;margin:0 0 11px!important;color:#9aa7bb!important}.sp-profile-section select{font-size:11px!important;min-height:31px!important;padding:5px 8px!important;margin-top:5px!important}.sp-root .sp-claim{width:100%;font-size:11px;min-height:32px;color:#397fe0;background:#f3f8ff;border-color:#dce9fd}.sp-lock{display:block;color:#b48d45;background:#fff8e9;padding:8px;border-radius:5px;font-size:10px;line-height:1.8;margin-top:10px}.sp-profile-section p{font-size:11px;line-height:1.8;color:#8594aa;margin:6px 0}.sp-root .sp-history{display:block;width:100%;font-size:10px;text-align:left;min-height:25px;padding:5px 0;border:0;background:none;color:#728aa8}.sp-event{border-left:1px solid #e3ebf5;padding:0 0 12px 11px;margin-left:3px;position:relative}.sp-event::before{content:'';position:absolute;width:5px;height:5px;border-radius:50%;background:#cbd9eb;left:-3px;top:6px}.sp-event strong{font-size:10px;font-weight:500;color:#8798b0}.sp-event time{display:block;font-size:9px;color:#b3bdcb}.sp-root .sp-settings{font-size:11px;min-height:29px;padding:4px 8px}.sp-root .sp-dialog{padding:24px;border:1px solid #e1e8f3;border-radius:16px;width:min(480px,calc(100vw - 24px));color:#3f536f;background:white;box-shadow:0 20px 90px #111a3529;max-height:85dvh;overflow:auto}.sp-dialog::backdrop{background:#111a3540;backdrop-filter:blur(4px)}.sp-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.sp-dialog h3{font-size:19px}.sp-dialog label{display:block;font-size:12px;margin:0 0 15px;color:#7388a3}.sp-dialog label input,.sp-dialog label select,.sp-dialog label textarea{margin-top:6px!important}.sp-dialog textarea{min-height:130px!important;resize:vertical}.sp-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.sp-form-error{font-size:12px;color:#c17362;line-height:1.8}.sp-agent{padding:12px 0;border-bottom:1px solid #edf1f7}.sp-agent h4{font-size:12px;margin-bottom:8px}.sp-agent>div{display:flex;gap:7px}.sp-agent button{font-size:11px}.sp-agent small{font-size:10px}
.ja-support-mode .container{padding:21px 26px 35px}.ja-support-mode .admin-sidebar{background:#17191f!important}.ja-support-mode .admin-topbar{background:#f4f6fb}.ja-support-mode .a33-nav.active{background:#2a2d35!important}.ja-support-mode .sp-root{padding:20px}.ja-support-mode .sp-shell{height:calc(100dvh - 210px);min-height:570px}
#jaSupportDialog{padding:0;border:0;border-radius:18px;width:min(1280px,calc(100vw - 32px));max-width:none;max-height:94dvh;background:#f0f5fa;box-shadow:0 30px 100px #121f4530}#jaSupportDialog::backdrop{background:#0f1b3950;backdrop-filter:blur(6px)}.sp-student-close{position:absolute;right:20px;top:17px;z-index:10;border:0;border-radius:6px;background:#e8eef6;color:#758aa6;width:30px;height:30px;cursor:pointer}.sp-student-close+div .sp-heading{padding-right:40px}#jaSupportDialog .sp-root{border:0}#jaSupportDialog .sp-shell{height:min(740px,calc(100dvh - 160px))}.sp-site-button{border:1px solid #d4e3f5!important;background:#f5faff!important;border-radius:99px;padding:8px 12px;color:#4775a8;font:650 12px Inter,system-ui;cursor:pointer;margin-left:7px}
@media(min-width:1500px){.sp-shell{grid-template-columns:290px minmax(320px,1fr) 270px}}
@media(max-width:1200px){.sp-shell{grid-template-columns:225px minmax(260px,1fr) 215px}.sp-root{padding:14px}.sp-profile-pane{padding:16px 14px}.sp-ticket{padding:12px!important}.sp-message{max-width:96%}.sp-thread{padding:20px 14px}.sp-composer{margin:7px 14px 14px}}
@media(max-width:1050px){.sp-shell{grid-template-columns:240px minmax(0,1fr);position:relative}.sp-profile-pane{display:none;position:absolute;right:0;top:0;bottom:0;width:260px;z-index:5;box-shadow:-10px 0 35px #182b4b13}.sp-root.sp-show-profile .sp-profile-pane{display:block}.sp-root .sp-profile-toggle{display:block;font-size:11px;min-height:28px;padding:4px 8px}.sp-chat-header{padding:15px}.ja-support-mode .container{padding:17px}.ja-support-mode .sp-root{padding:14px}}
@media(max-width:650px){.sp-root{padding:12px;border-radius:12px;font-size:14px}.sp-heading{gap:8px;margin-bottom:12px;align-items:flex-start}.sp-heading h2{font-size:19px}.sp-heading p{font-size:10px}.sp-heading>div{gap:8px}.sp-heading .sp-title-icon{display:none}.sp-heading .sp-sync{display:block;font-size:9px;margin-top:5px}.sp-heading .sp-primary{font-size:11px;min-height:32px;padding:6px 9px}.sp-shell{display:block;height:calc(100dvh - 205px)!important;min-height:440px;position:relative}.sp-list-pane{height:100%;border:0}.sp-chat-pane{display:none;position:absolute;inset:0;height:100%;z-index:3}.sp-root.sp-has-ticket .sp-chat-pane{display:flex}.sp-root .sp-mobile-back{display:block;padding:4px 8px;min-height:28px;font-size:11px}.sp-chat-header{gap:8px;min-height:71px;padding:12px}.sp-chat-header h3{font-size:13px}.sp-chat-header p{font-size:9px}.sp-state-chip{font-size:9px;max-width:90px;white-space:normal}.sp-thread{padding:18px 13px}.sp-bubble{font-size:13px;padding:10px 12px}.sp-profile-pane{width:100%;border-left:0;z-index:6}.sp-message{max-width:96%}.sp-message .sp-avatar{width:23px;height:23px;font-size:8px}.sp-composer{padding:10px;margin:5px 11px 12px}.sp-composer textarea{min-height:45px!important;font-size:16px!important}.sp-root .sp-note-switch{font-size:10px!important}.sp-note-switch input{width:14px!important}.sp-root .sp-send{font-size:11px;min-height:32px}.sp-profile-pane .sp-profile-toggle{display:block!important}.sp-chat-empty{display:none}.sp-ticket-top strong{font-size:13px}.sp-ticket-copy p{font-size:12px}.sp-ticket-meta small{font-size:10px}.sp-ticket{min-height:86px!important}.sp-search input{font-size:16px!important}.sp-filters select{font-size:12px!important}.sp-tabs button{font-size:12px!important}.sp-root .sp-statusbar{font-size:12px}.ja-support-mode .container{padding:12px!important}.ja-support-mode .sp-root{padding:11px}.ja-support-mode .sp-shell{min-height:430px}#jaSupportDialog{width:calc(100vw - 12px);max-height:97dvh;border-radius:13px}#jaSupportDialog .sp-root{padding:12px}#jaSupportDialog .sp-shell{height:calc(100dvh - 150px)!important}.sp-site-button{font-size:11px;padding:7px 9px}.sp-student-close{right:13px;top:15px;width:26px;height:26px}.sp-student-close+div .sp-heading{padding-right:29px}}
@media(prefers-reduced-motion:reduce){.sp-root *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Keep the reply composer anchored inside the viewport, even in long threads. */
.sp-shell{grid-template-rows:minmax(0,1fr)}.sp-list-pane,.sp-chat-pane,.sp-profile-pane{min-height:0;height:100%}.sp-chat-pane{overflow:hidden}.sp-chat-header,.sp-read-receipt,.sp-composer{flex-shrink:0}.sp-thread{min-height:0}.sp-message{max-width:86%}.sp-bubble{font-size:14px}.sp-ticket-top strong{font-size:13px}.sp-ticket-copy p{font-size:12px}
@media(max-width:650px){.sp-message{max-width:96%}.sp-bubble{font-size:14px}}

/* A compact mobile toolbar leaves more space for the conversation. */
@media(max-width:650px){.sp-heading{flex-wrap:wrap;gap:7px}.sp-heading>div:first-child{width:100%}.sp-heading>div:last-child{width:100%;justify-content:flex-end}.sp-heading h2{font-size:20px;line-height:1.3}.sp-heading p{display:none}.sp-heading .sp-sync{margin-right:auto;margin-top:0}.sp-heading .sp-primary{white-space:nowrap}.sp-chat-header h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.sp-chat-header .sp-state-chip{display:none}.sp-heading .sp-settings{white-space:nowrap}.sp-shell{height:calc(100dvh - 180px)!important}}
