/* M5 — calm, mobile-first community UI. Existing courses and account pages stay intact. */
.workspace .content{max-width:1120px}
.workspace .section-heading h1{font-size:clamp(29px,3.5vw,43px);letter-spacing:-1px}
.workspace .section-heading{margin-bottom:25px}
.workspace .section-heading p{max-width:640px}
.workspace .section-title h2{font-size:clamp(22px,2.6vw,27px)}
.c5-welcome{background:#edf3ea;border:1px solid #dce7d8;border-radius:17px;padding:clamp(23px,3.2vw,38px);color:#335742}
.c5-welcome .eyebrow{margin-bottom:10px}
.c5-welcome h1{font:clamp(31px,3.7vw,47px)/1.16 Georgia,'Times New Roman',serif;letter-spacing:-.8px;margin:0 0 12px;overflow-wrap:anywhere}
.c5-welcome p:last-child{margin:0;color:#667d6b;font-size:14px;line-height:1.65}
.c5-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:17px}
.c5-shortcut{border:1px solid #e1e8dc;border-radius:13px;padding:21px 20px;background:#fffefa;color:#355342;text-align:left;display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:10px;align-items:center;min-width:0;min-height:83px;transition:border-color .17s,background .17s}
.c5-shortcut:hover,.c5-shortcut:focus-visible{border-color:#8fac91;background:#f5f9f3}
.c5-shortcut>span{font-size:27px;grid-row:span 2;text-align:center}
.c5-shortcut strong{font-size:14px;overflow-wrap:anywhere}
.c5-shortcut small{font-size:11px;color:#7e9482;margin-top:4px}
.c5-section-title{margin:31px 0 17px}
.c5-news-list{display:grid;gap:12px;min-width:0}
.c5-news-card{background:#fffefa;border:1px solid #e7eae1;border-radius:13px;padding:22px 25px;min-width:0}
.c5-news-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:11px;color:#819080}
.c5-news-card h3{font:clamp(20px,2.2vw,26px)/1.3 Georgia,'Times New Roman',serif;color:#335442;letter-spacing:-.25px;margin:11px 0 8px;overflow-wrap:anywhere}
.c5-news-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;color:#566557;font-size:14px;margin:0}
.c5-news-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:17px;border-top:1px solid #edf0e8;padding-top:15px}
.c5-create-news{margin:0 0 18px}
.c5-admin{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,.9fr);gap:25px;align-items:start}
.c5-admin-tasks,.c5-member-area{min-width:0}
.c5-task{background:#fffefa;border:1px solid #e4e9e0;border-radius:13px;margin-bottom:12px;overflow:hidden;min-width:0}
.c5-task summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:13px;padding:19px 20px;min-height:73px;position:relative;color:#375b45}
.c5-task summary::-webkit-details-marker{display:none}
.c5-task summary::after{content:'⌄';font-size:24px;line-height:1;color:#718b73;margin-left:auto;transform:rotate(0);transition:transform .18s}
.c5-task[open] summary::after{transform:rotate(180deg)}
.c5-task summary strong{display:block;font-size:14px;line-height:1.4}
.c5-task summary small{display:block;color:#91a094;margin-top:4px;font-size:11px;line-height:1.3}
.c5-task summary>span:nth-child(2){min-width:0;flex:1}
.c5-task summary:focus-visible,.c5-nav-more summary:focus-visible{outline:2px solid #65886d;outline-offset:-2px}
.c5-task-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:#eaf1e8;font-size:21px}
.c5-task-body{border-top:1px solid #ebeee7;padding:19px 22px 23px;min-width:0}
.c5-task-body .form-grid{gap:13px}
.c5-task-body .field{min-width:0;margin-bottom:13px}
.c5-task-body label{display:block;font-size:12px;font-weight:650;color:#5c7060;margin-bottom:7px}
.c5-task-body input,.c5-task-body select,.c5-task-body textarea{width:100%;max-width:100%;min-width:0}
.c5-task-body .btn{margin-top:7px}
.c5-task-body .divider{margin:22px 0}
.c5-form-subhead{font:21px Georgia,serif;color:#45614c;margin:0 0 16px}
.c5-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.c5-check{display:flex!important;align-items:center;gap:10px;margin:8px 0 14px!important;font-size:12px!important}
.c5-check input{width:18px!important;height:18px!important;flex:0 0 18px;accent-color:#3e614b}
.c5-member-area>.c5-section-title{margin-top:0}
.c5-member-area .list-row{flex-wrap:wrap;align-items:center;gap:10px}
.c5-member-area .list-row>div:first-child{min-width:0;flex:1}
.c5-member-area .list-buttons{justify-content:flex-end}
.c5-member-area .list-row button{white-space:normal;min-height:35px;max-width:100%}
.c5-invite-history{margin-top:20px}
.c5-invite-history .list-row{padding:12px}
.c5-nav-more{margin-top:8px;border-top:1px solid #edf1e9;padding-top:10px}
.c5-nav-more summary{color:#6d816f;cursor:pointer;font-size:12px;min-height:45px;padding:13px 14px;border-radius:8px}
.c5-nav-more summary:hover{background:#edf3ea}
.c5-nav-submenu{padding:4px 0 0 9px}
.c5-nav-submenu .nav-link{font-size:12px;padding:11px 12px}
.c5-nav-submenu .nav-link span{font-size:19px}
.sidebar{overflow-y:auto;scrollbar-width:thin}
.sidebar .logo{margin-bottom:29px}
.sidebar .side-label{margin-bottom:11px}
.sidebar .navigation{gap:3px}
.sidebar .nav-link{padding:12px 14px}
.sidebar .quote-card{padding:15px;margin-top:30px;font-size:12px}
.c5-chat-shell{height:min(690px,calc(100svh - 225px));min-height:370px}
.c5-chat-title{flex:1;min-width:0}
.c5-chat-title small{display:block;margin-top:4px;overflow-wrap:anywhere}
.c5-chat-title small.connected{color:#427b55}
.c5-chat-clear{flex-shrink:0;white-space:nowrap}
.c5-chat-shell .chat-head{gap:10px;padding:15px 19px}
.c5-chat-shell .chat-messages{padding:17px;gap:12px}
.c5-chat-shell .message{max-width:min(90%,620px)}
.c5-chat-shell .message-body{max-width:100%;overflow-wrap:anywhere}
.c5-message-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}
.c5-message-tools{display:flex;gap:9px;flex-wrap:wrap}
.c5-message-tools button{font-size:11px;text-decoration:underline;min-height:30px}
.c5-chat-edit-form{margin:10px 0 0;min-width:0}
.c5-chat-edit-form textarea{width:100%;max-width:100%;min-width:0;min-height:80px;resize:vertical}
.c5-chat-edit-form label{font-size:11px;display:block;margin-bottom:7px}
.c5-chat-edit-form .btn{margin-top:8px}
.c5-chat-shell .chat-compose{padding:12px;gap:9px;align-items:end}
.c5-chat-shell .chat-compose textarea{min-width:0;flex:1}
.c5-chat-shell .chat-compose button{min-height:44px}
.sidebar-scrim{display:none}
.workspace .item-card h3,.workspace .item-card p,.workspace .meeting-time{overflow-wrap:anywhere}
.workspace .btn{max-width:100%;white-space:normal}
.workspace input,.workspace textarea,.workspace select{max-width:100%}
.workspace .form-card,.workspace .item-card{min-width:0}
@media(max-width:1100px){.c5-admin{grid-template-columns:1fr}.c5-member-area{margin-top:10px}.c5-member-area>.c5-section-title{margin-top:0}}
@media(max-width:760px){
 .workspace .content{padding:23px 16px 60px}
 .workspace .section-heading{margin-bottom:19px}
 .workspace .section-heading h1{font-size:clamp(29px,7.8vw,39px)}
 .c5-welcome{padding:23px 20px}
 .c5-welcome h1{font-size:clamp(30px,7.8vw,42px)}
 .c5-shortcuts{gap:9px}
 .c5-shortcut{grid-template-columns:1fr;gap:5px;padding:15px 10px;text-align:center;min-height:106px;justify-items:center}
 .c5-shortcut>span{grid-row:auto;font-size:24px}
 .c5-shortcut strong{font-size:12px;line-height:1.3}
 .c5-shortcut small{font-size:10px;line-height:1.3}
 .c5-news-card{padding:19px 17px}
 .c5-task summary{padding:16px}
 .c5-task-body{padding:17px 15px 20px}
 .c5-task-body .form-grid{grid-template-columns:1fr}
 .c5-task-body .field-wide{grid-column:auto}
 .sidebar{overflow-y:auto;max-height:100svh;width:min(285px,86vw);padding-bottom:22px}
 .sidebar .quote-card{display:none}
 .sidebar.open+.sidebar-scrim{display:block;position:fixed;inset:0;width:100%;height:100%;background:rgba(24,38,28,.32);border:0;z-index:49;cursor:pointer}
 .c5-chat-shell{height:calc(100svh - 200px);min-height:340px}
 .c5-chat-shell .chat-messages{padding:12px}
 .c5-chat-shell .message{max-width:100%;gap:7px}
 .c5-chat-shell .message-avatar{width:26px;height:26px}
 .c5-chat-shell .chat-compose textarea{font-size:16px}
 .c5-chat-clear{font-size:10px;padding:8px}
 .c5-chat-title h3{font-size:13px}
 .c5-chat-title small{font-size:10px}
}
@media(max-width:390px){
 .c5-shortcut{min-height:103px;padding:12px 5px}
 .c5-shortcut strong{font-size:11px}
 .c5-shortcut small{font-size:9px}
 .c5-task-icon{flex-basis:33px;width:33px;height:33px;font-size:18px}
 .c5-chat-shell .chat-head{padding:12px 10px}
 .c5-chat-shell .chat-compose{flex-direction:column;align-items:stretch}
 .c5-chat-shell .chat-compose button{width:100%;min-height:42px}
 .workspace .topbar{padding:0 13px}
 .workspace .topbar-crumb{margin-left:10px;letter-spacing:.5px}
}
@media(prefers-reduced-motion:reduce){.c5-shortcut{transition:none}.c5-task summary::after{transition:none}}

.c5-mfa-warning{border:1px solid #ecd8a5;background:#fff9ed;color:#66583a;border-radius:13px;padding:18px 20px;margin:0 0 22px}
.c5-mfa-warning strong{font-size:15px;color:#705b30}
.c5-mfa-warning p{font-size:13px;line-height:1.7;margin:7px 0 11px;max-width:680px}
