/* DAS university workspace and chat layout. Brand styles are inherited from DAS. */
.campus-label{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid var(--border);border-radius:9px;font-size:11px;color:var(--text-2);background:var(--surface)}
.campus-workspace{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;margin-bottom:18px;background:linear-gradient(130deg,var(--surface),var(--primary-soft));border:1px solid var(--border)}
.campus-workspace h2{font-size:21px;letter-spacing:-.035em;margin:7px 0}.campus-workspace p{font-size:12px;margin:0}.campus-workspace form{display:flex;align-items:center;gap:10px}.campus-workspace label{font-size:11px}
.news-search{max-width:none;flex-wrap:wrap}.news-search .select{flex:1;min-width:180px}.news-search .input{flex:1;min-width:140px}.news-search .btn{flex-shrink:0}
/* Chat: one bounded viewport, independent list scroll, composer always reachable. */
.chat-page [hidden]{display:none!important}.chat-page .footer{display:none}.chat-page .chat-shell{display:grid;grid-template-columns:330px minmax(0,1fr);height:calc(100dvh - 210px);min-height:420px;max-height:880px;border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}.chat-page .chat-sidebar,.chat-page .chat-main,.chat-page .chat-conversation{min-width:0;min-height:0;height:100%;overflow:hidden}.chat-page .chat-sidebar{display:flex;flex-direction:column;border-right:1px solid var(--border);background:var(--surface)}.chat-page .chat-user-list{flex:1;overflow-y:auto;min-height:0;overscroll-behavior:contain}.chat-page .chat-conversation{display:flex;flex-direction:column}.chat-page .chat-main{background:var(--bg)}.chat-page .chat-conversation-head{flex:0 0 auto;background:var(--surface);padding:14px 18px;display:flex;gap:12px;border-bottom:1px solid var(--border)}.chat-page .chat-conversation-head>div{min-width:0;display:grid;gap:4px}.chat-page [data-peer-name]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.chat-page [data-peer-status]{font-size:11px;color:var(--text-2)}.chat-page .chat-messages{flex:1;min-height:0;overflow-y:auto;padding:22px;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px}.chat-page .chat-bubble-row{flex-shrink:0;display:flex;width:100%;min-width:0}.chat-page .chat-bubble-row.mine{justify-content:flex-end}.chat-page .chat-bubble{max-width:min(80%,550px);min-width:50px;padding:12px 15px;border-radius:15px;background:var(--surface);border:1px solid var(--border);overflow-wrap:anywhere;word-break:break-word;color:var(--text)}.chat-page .chat-bubble-row.mine .chat-bubble{background:var(--primary-soft);border-color:color-mix(in srgb,var(--primary) 20%,var(--border));border-bottom-right-radius:4px;color:var(--text)}.chat-page .chat-bubble-row.theirs .chat-bubble{border-bottom-left-radius:4px}.chat-page .chat-bubble>div{font-size:14px;line-height:1.6}.chat-page .chat-bubble>span{display:block;text-align:right;font-size:9px;margin-top:6px;color:var(--text-2)}.chat-page .chat-composer{flex:0 0 auto;display:flex;align-items:flex-end;gap:10px;padding:14px 18px;background:var(--surface);border-top:1px solid var(--border)}.chat-page .chat-composer textarea{min-height:44px;max-height:120px;flex:1;min-width:0;resize:none;font:14px/1.5 inherit}.chat-page .chat-send-btn{background:var(--primary);color:white;border:0;border-radius:11px;padding:13px 16px;cursor:pointer}.chat-page .chat-send-btn:disabled{opacity:.5}.chat-page .chat-user{max-width:100%;min-width:0}.chat-page .chat-user-copy{min-width:0}.chat-page .chat-user-copy b,.chat-page .chat-user-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.chat-page .chat-empty-state{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:24px}.chat-page .chat-page-head{padding:22px 0 12px}.chat-page .chat-page-head h1{font-size:28px}.chat-page .chat-page-head p{font-size:12px;margin-top:8px}

@media(max-width:820px){.campus-workspace{flex-direction:column;align-items:flex-start}.campus-workspace form{width:100%;flex-wrap:wrap}.campus-workspace .select{flex:1;min-width:140px}.chat-page .chat-page-head{display:none!important}.chat-page main{padding-top:64px!important;padding-bottom:calc(74px + env(safe-area-inset-bottom))!important;height:var(--chat-vh,100dvh)!important}.chat-page #spa-page{height:100%!important;min-height:0!important;overflow:hidden}.chat-page .section-tight{height:100%!important}.chat-page .chat-shell{height:100%!important;min-height:0!important;max-height:none;display:block!important}.chat-page .chat-conversation{height:100%!important}.chat-page .chat-messages{padding:14px!important;flex:1!important;min-height:0!important;overflow-y:auto!important}.chat-page .chat-composer{padding:10px 12px!important;flex:0 0 auto!important}.chat-page .chat-bubble{max-width:88%!important}.chat-page .chat-composer textarea{font-size:16px!important}.chat-page .chat-send-btn{padding:11px 15px!important}.chat-page .chat-send-btn>span{display:none}.chat-page .chat-back{display:grid!important}}
@media(max-width:480px){.campus-workspace form{display:grid;grid-template-columns:1fr}.campus-workspace form button{width:100%}}
