/* V14 — purposeful, calm UI. Load LAST to consolidate prior design layers. */
:root{--hd14-bg:#f4f7fc;--hd14-line:#dfe8f3;--hd14-text:#203b5a;--hd14-muted:#6f85a0;--hd14-blue:#276de6;--hd14-green:#15916f;--hd14-radius:15px}
html{scroll-padding-top:75px}
body.rolework-v10{background:var(--hd14-bg)!important;color:var(--hd14-text)}
body.rolework-v10 .rail{background:#f8fbff!important;border-right:1px solid var(--hd14-line)!important}
body.rolework-v10 .topbar{background:#fff!important;border-bottom:1px solid var(--hd14-line)!important;box-shadow:0 1px 8px #254a7007!important}
body.rolework-v10 .top-live,body.rolework-v10 .top-clock{display:none!important}
body.rolework-v10 .app-content{background:var(--hd14-bg)!important}
body.rolework-v10 .hd-role-workspace{border:1px solid var(--hd14-line)!important;border-radius:var(--hd14-radius)!important;box-shadow:0 10px 34px #1d3f6610!important}
body.rolework-v10 .hd-inbox-col{background:#fff}
body.rolework-v10 .hd-conversation-col{background:#fff}
body.rolework-v10 .hd-inbox-head{padding:18px 17px 12px}
body.rolework-v10 .hd-inbox-head h2{font-size:18px;font-weight:760;letter-spacing:-.035em}
body.rolework-v10 .hd-overline{font-size:10px;letter-spacing:.045em;color:#598abf}
body.rolework-v10 .hd-thread{min-height:88px;padding:14px 12px;gap:12px;border-color:transparent}
body.rolework-v10 .hd-thread.is-selected{background:#edf5ff;border-color:#dbe9ff}
body.rolework-v10 .hd-thread-title{font-size:13px!important}
body.rolework-v10 .hd-thread-copy small{font-size:11px;line-height:1.4}
body.rolework-v10 .hd-conversation-head{padding:14px 19px;min-height:75px}
body.rolework-v10 .hd-conversation-title strong{font-size:16px;line-height:1.35}
body.rolework-v10 .hd-conversation-title small{font-size:11px}
body.rolework-v10 .hd-chat-subhead{font-size:11px;padding:10px 19px}
body.rolework-v10 .hd-chat-feed .chat-message{max-width:min(86%,560px)!important}
body.rolework-v10 .hd-chat-feed .chat-bubble{padding:13px 15px!important;line-height:1.55}
body.rolework-v10 .hd-chat-feed .chat-body{font-size:14px!important;line-height:1.6!important;overflow-wrap:anywhere}
body.rolework-v10 .hd-chat-feed .chat-who{font-size:11px!important;line-height:1.5}
body.rolework-v10 .hd-new-chat{background:#fff}
body.rolework-v10 .hd-new-note{display:none!important}
body.rolework-v10 .hd-search{border-radius:10px}
body.rolework-v10 input,body.rolework-v10 textarea,body.rolework-v10 select{font-size:14px}
body.rolework-v10 .page-top:not(:has(+ .hd-role-workspace)){padding-bottom:13px}
body.rolework-v10 .page-top:not(:has(+ .hd-role-workspace)) .eyebrow{display:none}
body.rolework-v10 .page-top:not(:has(+ .hd-role-workspace)) h1{font-size:clamp(22px,2.6vw,29px);font-weight:760}
body.rolework-v10 .page-top:not(:has(+ .hd-role-workspace)) .page-subtitle{font-size:12px;line-height:1.5;max-width:60ch}
body.rolework-v10 button:focus-visible,body.rolework-v10 a:focus-visible,.auth-body :focus-visible,body.student-signin :focus-visible{outline:3px solid #8ec6ff!important;outline-offset:2px!important}
body.rolework-v10 .status{font-size:11px}
.hd13-dialog{border-radius:17px!important}
/* Login: desktop keeps a modest brand side; mobile prioritizes authentication. */
.auth-body.sma-native .auth-layout{position:relative;grid-template-columns:minmax(260px,40%) minmax(0,60%);min-height:100dvh}
.auth-body.sma-native .auth-hero{background:linear-gradient(150deg,#1b304b,#17273f);padding:clamp(28px,4vw,58px)}
.auth-body.sma-native .hero-content{padding:24px 0}
.auth-body.sma-native .hero-content h1{font-size:clamp(29px,3.2vw,44px);line-height:1.14;font-weight:750}
.auth-body.sma-native .auth-right{padding:clamp(26px,5vw,66px)}
.auth-body.sma-native .login-panel{max-width:435px}
.auth-body.sma-native .login-panel h2{font-size:clamp(26px,3vw,32px);font-weight:770;color:#1d304d}
.auth-body.sma-native .login-panel .eyebrow{margin-bottom:8px}
.auth-body.sma-native .login-options{display:none}
.auth-body.sma-native .login-submit{display:flex;justify-content:flex-end;margin:2px 0 18px}
.auth-body.sma-native .login-submit .action-icon{width:100%;border-radius:10px;min-height:46px;background:#2678eb!important;color:#fff!important}
.auth-body.sma-native .login-submit .action-icon span{font-size:14px;font-weight:750;margin-left:9px}
.auth-body.sma-native .hd11-access-caption{margin-top:15px;font-size:12px}
.auth-body.sma-native .hd11-access-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.auth-body.sma-native .hd11-access-links a,.auth-body.sma-native .hd11-access-links button{font-size:13px;line-height:1.4;padding:12px 9px;min-height:48px}
.auth-body.sma-native .auth-footer{margin-top:25px;text-align:center}
.auth-language{position:absolute;z-index:10;top:22px;right:24px;display:flex;align-items:center;gap:9px;padding:5px;border:1px solid #dfe7f2;border-radius:10px;background:#fff}
.auth-language label{font-size:11px;color:#5c7390;margin:0}
.auth-language select{border:0;background:#fff;color:#213e60;font-weight:650;font-size:12px;padding:4px;max-width:130px}
body.student-signin .student-access{position:relative;max-width:460px;padding:clamp(22px,4.5vw,36px)}
body.student-signin .student-mark{margin-top:42px}
body.student-signin .student-access h1{font-size:clamp(24px,3.4vw,30px)}
body.student-signin .guest-note{margin-top:17px;padding-top:16px}
/* compact authoring forms */
.hd-new-chat .hd-new-form,.hd-new-chat .hd-new-content{max-width:100%}
.hd-new-chat textarea{min-height:145px}
/* responsive three pane composition */
@media (max-width:1080px){
 body.rolework-v10 .hd-role-workspace{grid-template-columns:minmax(230px,275px) minmax(0,1fr)}
 body.rolework-v10 .hd-task-side{top:77px;bottom:14px}
 body.rolework-v10 .v7-top-search{width:min(340px,34vw)!important}
}
@media (max-width:850px){
 body.rolework-v10 .topbar{height:61px!important;min-height:61px!important;left:0!important;padding:0 12px!important;gap:8px!important}
 body.rolework-v10 .top-brand{display:flex!important;min-width:0;flex:none}
 body.rolework-v10 .top-logo{width:32px;height:32px}
 body.rolework-v10 .brand-copy strong{font-size:16px!important;line-height:1.1}
 body.rolework-v10 .brand-copy small{font-size:8px!important}
 body.rolework-v10 .top-meta,body.rolework-v10 .top-clock,body.rolework-v10 .v7-top-search{display:none!important}
 body.rolework-v10 .top-right{gap:5px!important;min-width:0;margin-left:auto}
 body.rolework-v10 .top-right .install-app-control,body.rolework-v10 .top-right .top-search{display:none!important}
 body.rolework-v10 .top-right .language-choice{max-width:115px;min-width:0;gap:3px;padding:5px 5px}
 body.rolework-v10 .top-right .language-choice select{max-width:81px;font-size:11px!important;padding:0}
 body.rolework-v10 .top-right .language-choice .language-symbol{font-size:12px}
 body.rolework-v10 .top-right .user-pill{padding:1px!important}
 body.rolework-v10 .top-right .user-info{display:none!important}
 body.rolework-v10 .top-right .user-avatar{width:30px;height:30px}
 body.rolework-v10 .body-wrap{margin-left:0!important}
 body.rolework-v10 .rail{top:61px!important;z-index:80!important;bottom:0!important}
 body.rolework-v10:has(.hd-role-workspace) .app-content{padding:69px 8px 65px!important;height:100dvh!important;min-height:0!important;overflow:hidden!important}
 body.rolework-v10 .mobile-bottom{min-height:54px!important;padding-bottom:env(safe-area-inset-bottom)!important;z-index:70!important}
 body.rolework-v10 .mobile-bottom .mobile-navitem{min-height:50px;height:50px;padding:4px!important;gap:3px!important}
 body.rolework-v10 .mobile-bottom .mobile-navitem svg{width:20px;height:20px}
 body.rolework-v10 .mobile-bottom .mobile-navitem .nav-text{font-size:10px}
 body.rolework-v10 .hd-role-workspace{height:calc(100dvh - 137px)!important;max-height:calc(100dvh - 137px)!important;min-height:0!important;border-radius:12px!important;grid-template-columns:1fr!important}
 body.rolework-v10 .hd-inbox-col{min-height:0}
 body.rolework-v10 .hd-inbox-head{padding:15px 13px 10px}
 body.rolework-v10 .hd-inbox-head h2{font-size:19px}
 body.rolework-v10 .hd-thread-list{padding:4px 9px 12px}
 body.rolework-v10 .hd-thread{min-height:80px;padding:12px 10px}
 body.rolework-v10 .hd-conversation-head{min-height:59px!important;padding:8px 12px!important;gap:7px}
 body.rolework-v10 .hd-title-mark{width:30px!important;height:30px!important}
 body.rolework-v10 .hd-conversation-title strong{font-size:13px!important;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 body.rolework-v10 .hd-conversation-title small{font-size:10px!important}
 body.rolework-v10 .hd-channel-tabs{min-height:38px;padding:0 8px;gap:3px}
 body.rolework-v10 .hd-channel-tabs a{font-size:11px;padding:10px 7px}
 body.rolework-v10 .hd-chat-subhead{padding:7px 12px!important;font-size:10px}
 body.rolework-v10 .hd-chat-subhead>span:last-child{white-space:nowrap;max-width:50vw;text-overflow:ellipsis;overflow:hidden}
 body.rolework-v10 .hd-chat-feed{padding:12px 11px!important;gap:12px!important}
 body.rolework-v10 .hd-chat-feed .chat-message{max-width:91%!important}
 body.rolework-v10 .hd-chat-feed .chat-bubble{padding:10px 12px!important;border-radius:13px!important}
 body.rolework-v10 .hd-chat-feed .chat-body{font-size:14px!important;line-height:1.52!important}
 body.rolework-v10 .hd-chat-feed .chat-who{font-size:11px!important}
 body.rolework-v10 .hd-chat-composer{padding:8px!important}
 body.rolework-v10 .hd-chat-composer textarea{min-height:43px!important;max-height:125px!important;font-size:14px!important}
 body.rolework-v10 .hd-task-side{top:68px!important;bottom:64px!important;right:7px;width:min(340px,calc(100vw - 14px))!important}
 body.rolework-v10 .hd-role-student .hd-conversation-col{min-width:0}
 body.rolework-v10 .hd-new-chat{padding:14px 10px;overflow:auto}
 body.rolework-v10 .hd-new-chat h2{font-size:19px}
 body.rolework-v10 .hd-new-form{padding:13px!important}
 body.rolework-v10 .hd-new-form select,body.rolework-v10 .hd-new-form textarea{font-size:16px!important}
 body.rolework-v10 .hd-new-chat textarea{min-height:110px}
 body.rolework-v10 .hd-new-bottom{gap:10px}
 body.rolework-v10 .hd-new-bottom button{min-height:46px}
 body.rolework-v10 .hd-admin-dashboard{max-width:100%;overflow-x:hidden}
 body.rolework-v10 .app-content:not(:has(.hd-role-workspace)){padding:76px 12px 76px!important}
 #hd13-toast-host{top:65px!important;right:8px!important;left:8px!important;max-width:none!important}
}
@media(max-width:600px){
 .auth-body.sma-native .auth-layout{display:block!important;min-height:100dvh}
 .auth-body.sma-native .auth-hero{min-height:0!important;padding:14px 20px!important;background:#fff!important;box-shadow:none!important;border-bottom:1px solid #e5edf6}
 .auth-body.sma-native .auth-hero:after,.auth-body.sma-native .hero-content{display:none!important}
 .auth-body.sma-native .auth-logo{color:#173a62!important;min-height:40px}
 .auth-body.sma-native .auth-logo strong{color:#16385d!important;font-size:19px}
 .auth-body.sma-native .auth-logo small{color:#7e92a9!important}
 .auth-body.sma-native .auth-logo img{width:34px;height:34px}
 .auth-body.sma-native .auth-right{min-height:calc(100dvh - 70px);padding:28px 22px 16px!important;justify-content:flex-start}
 .auth-body.sma-native .login-panel{max-width:440px}
 .auth-body.sma-native .login-panel h2{font-size:27px}
 .auth-body.sma-native .login-panel .subtle{margin-bottom:20px;font-size:13px}
 .auth-body.sma-native .login-panel form>label{margin-bottom:14px;font-size:13px}
 .auth-body.sma-native .login-panel input{min-height:46px!important;font-size:16px}
 .auth-body.sma-native .auth-footer{font-size:10px;margin-top:24px}
 .auth-body.sma-native .hd11-access-links{grid-template-columns:1fr!important}
 .auth-language{right:14px;top:17px;box-shadow:none;border:0;background:transparent}
 .auth-language label{display:none}
 .auth-language select{background:#eff5fc;font-size:12px;max-width:116px;border-radius:8px;padding:6px}
 body.student-signin{align-items:start!important;padding:0!important;background:#f7faff}
 body.student-signin .student-access{min-height:100dvh;border:0;border-radius:0;box-shadow:none;padding:24px 22px 34px}
 body.student-signin .student-mark{margin-top:47px}
 body.student-signin .student-access h1{font-size:25px}
 body.student-signin .student-access .lead{font-size:13px;margin-bottom:18px}
 body.student-signin .student-access-form input{font-size:16px;min-height:49px}
 body.student-signin .auth-language{top:15px;right:15px}
}
@media(max-width:370px){
 body.rolework-v10 .topbar .mobile-menu{width:29px;min-width:29px}
 body.rolework-v10 .brand-copy small{display:none!important}
 body.rolework-v10 .top-right .language-choice{max-width:83px}
 body.rolework-v10 .top-right .language-choice select{max-width:58px}
 body.rolework-v10 .top-right .language-choice .language-symbol{display:none}
}
