/* Scoped to the new classroom community and student task pages. */
.cc-page{display:block;max-width:1140px;margin:0 auto}
.cc-page .panel{padding:16px}
.cc-page h2{margin:0 0 6px;font-size:24.2px}
.cc-page h3{margin:4px 0 10px;font-size:17.6px}
.cc-page p{line-height:1.55}
.cc-page .cc-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:14px 0}
.cc-page .cc-tabs button{padding:9px 12px;min-height:40px;white-space:normal}
.cc-page .cc-form{display:grid;gap:9px;padding:14px;background:#f3f7fe;border:1px solid #dce6f5;border-radius:12px;margin-bottom:14px}
.cc-page .cc-form .field{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.cc-page .cc-form button{justify-self:end}
.cc-page .cc-between{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.cc-page .cc-actions{display:inline-flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.cc-page .cc-feed{display:grid;gap:10px}
.cc-page .cc-post{border:1px solid #e0e7f2;border-radius:10px;background:#fff;padding:12px}
.cc-page .cc-post.cc-reply{margin-left:clamp(16px,4vw,40px);border-left:3px solid #9fc4fb;background:#f9fbff}
.cc-page .cc-post .cc-body-text{overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.65;margin:9px 0;font-size:15.4px}
.cc-page .cc-pill{display:inline-block;padding:4px 9px;background:#eaf0fa;color:#345477;border-radius:999px;font-size:13.2px}
.cc-page .cc-poll-options,.cc-page .cc-mood-options{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.cc-page .cc-poll-option{min-height:39px;white-space:normal;text-align:left}
.cc-page .cc-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:15px 0}
.cc-page .cc-summary span{padding:12px;border:1px solid #dfe8f5;border-radius:10px;background:#f4f8fe;text-align:center;font-weight:600}
.cc-page .cc-check{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.cc-page .cc-check input{width:18px;height:18px}
@media(max-width:760px){
 .cc-page .panel{padding:12px}
 .cc-page h2{font-size:22px}
 .cc-page .cc-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .cc-page .cc-tabs button{width:100%;font-size:14.3px}
 .cc-page .cc-form{padding:11px}
 .cc-page .cc-summary{grid-template-columns:1fr}
 .cc-page .cc-summary span{text-align:left}
 .cc-page .cc-post.cc-between{align-items:flex-start}
 .cc-page .cc-post .cc-actions{justify-content:flex-start}
}

.cc-page{max-width:none;width:100%;min-width:0}.cc-page .cc-task-form{grid-template-columns:minmax(180px,1fr) minmax(200px,1.4fr) minmax(150px,.7fr) auto;align-items:end;gap:10px;padding:12px}
.cc-task-form h3{grid-column:1/-1;text-align:center;margin:0 0 4px}.cc-task-form>div{display:grid;gap:5px;min-width:0;text-align:center}.cc-task-form input,.cc-task-form textarea{text-align:center}.cc-task-form textarea{height:44px;min-height:44px;resize:vertical}.cc-task-form .btn{min-height:44px}
.cc-todo-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cc-todo-columns>section{min-width:0}.cc-todo-columns h3{text-align:center}.cc-todo-columns .cc-post{padding:9px;text-align:center;justify-content:center;overflow-wrap:anywhere}.cc-todo-columns .cc-pill{white-space:normal;overflow-wrap:anywhere;max-width:100%}.cc-page .cc-summary{margin:8px 0;gap:8px}.cc-page .cc-summary span{padding:8px}
@media(max-width:950px){.cc-page .cc-task-form{grid-template-columns:1fr 1fr}.cc-task-form h3{grid-column:1/-1}.cc-task-form .btn{justify-self:stretch}}
@media(max-width:700px){.cc-todo-columns,.cc-page .cc-task-form{grid-template-columns:1fr}.cc-page .cc-summary{grid-template-columns:repeat(3,minmax(0,1fr));font-size:13.2px}}


.cc-page .cc-poll-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}
.cc-page .cc-poll-settings>label{display:flex;flex-direction:column;gap:5px;min-width:0;margin:0}
.cc-page .cc-page-tools{margin:0 0 12px}
.cc-page-tools .cc-tabs{margin:0}
@media(max-width:700px){.cc-page .cc-poll-settings{grid-template-columns:1fr}}


/* Private task attachments: compact on desktop, fully stacked on phones. */
.cc-page .cc-task-form{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
.cc-task-form .cc-task-upload-hint{grid-column:1/-1;margin:0}
.cc-task-form .cc-task-upload,.cc-task-form .cc-task-file-access{min-width:0}
.cc-task-form .cc-task-upload input[type=file]{font-size:13.2px;text-align:left}
.cc-page .cc-task-card{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;text-align:left;overflow-wrap:anywhere}
.cc-page .cc-task-content{min-width:0;flex:1}
.cc-page .cc-task-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;flex:0 0 auto}
.cc-task-files{display:grid;gap:6px;margin:10px 0 6px}
.cc-task-file{border:1px solid #e0e6ef;border-radius:9px;padding:7px 8px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center;background:#f7f9fd}
.cc-task-file .cc-file-name{font-size:13.2px;font-weight:600;overflow-wrap:anywhere;min-width:0}
.cc-task-file .cc-file-name small{font-weight:400;white-space:nowrap}
.cc-file-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.cc-file-actions .btn{min-height:29px;padding:5px 8px;text-decoration:none}
.cc-file-policy-label{display:flex;flex-direction:column;gap:2px;font-size:12.1px;font-weight:500}
.cc-file-policy-label .field{padding:4px 6px;font-size:13.2px;min-width:104px}
.cc-only-view{font-size:12.1px;color:#63718a}
.cc-task-add-files{margin-top:9px;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(110px,.8fr);gap:8px}
.cc-task-add-files label{display:grid;gap:4px;font-size:13.2px}
.cc-task-add-files input[type=file]{max-width:100%;font-size:12.1px}
.cc-task-add-files .field{padding:6px}
.cc-preview-dialog{border:1px solid #dce4ee;border-radius:14px;padding:0;width:min(1000px,calc(100vw - 20px));height:min(88dvh,900px);max-height:88dvh;max-width:calc(100vw - 20px);box-shadow:0 16px 45px #18253a35}
.cc-preview-dialog::backdrop{background:#0f172a99}
.cc-preview-shell{padding:14px;display:flex;flex-direction:column;gap:8px;height:100%;min-height:0}
.cc-preview-header{display:flex;justify-content:space-between;gap:12px;align-items:center;min-width:0}
.cc-preview-header b{overflow-wrap:anywhere}
.cc-preview-header b{flex:1;min-width:0}
.cc-post-document-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}
.cc-post-document-row .cc-post-document{flex:1;min-width:0;overflow-wrap:anywhere}
.cc-preview-header .btn{flex-shrink:0;white-space:nowrap}
.cc-preview-dialog.cc-preview-expanded{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}
@media(max-width:500px){.cc-preview-header{flex-wrap:wrap;gap:8px}.cc-preview-header b{flex-basis:100%}.cc-preview-header .btn{min-height:38px}}
.cc-preview-content{overflow:auto;flex:1;min-height:0;padding:12px;background:#fff;border:1px solid #e3e8f0;border-radius:8px;line-height:1.55}
.cc-preview-image{display:block;max-width:100%;height:auto;margin:auto;object-fit:contain}
.cc-office-paragraph{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 9px}
.cc-office-table{border-collapse:collapse;width:max-content;min-width:100%;font-size:13.2px;margin-bottom:14px}
.cc-office-table td{border:1px solid #cbd5e1;padding:6px 8px;max-width:350px;overflow-wrap:anywhere}
@media(max-width:950px){.cc-page .cc-task-form{grid-template-columns:repeat(2,minmax(0,1fr))}.cc-page .cc-task-card{flex-direction:column}.cc-page .cc-task-actions{align-self:flex-start}}
@media(max-width:700px){.cc-page .cc-task-form,.cc-task-add-files{grid-template-columns:1fr}.cc-file-actions{width:100%}.cc-file-policy-label{flex:1;min-width:110px}.cc-preview-shell{padding:8px}.cc-preview-content{padding:7px}}

/* Chat image/document attachments: compact composition and responsive media. */
.cc-page .cc-message-form{gap:10px}
.cc-chat-attach{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}
.cc-chat-attach .cc-attach-label{border:1px solid #b7cbe8;background:#fff;color:#194d86;border-radius:9px;padding:9px 12px;cursor:pointer;font-weight:600;font-size:14.3px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.cc-chat-attach input[type=file]{max-width:245px;min-width:0;font-size:12.1px}
.cc-chat-attach .cc-selected-files{color:#3e5b81;overflow-wrap:anywhere;max-width:100%}
.cc-chat-attach .muted{font-size:12.1px}
.cc-post-attachments{display:flex;flex-wrap:wrap;gap:9px;margin:10px 0;align-items:flex-start;min-width:0}
.cc-post-image{width:min(240px,100%);max-width:100%;border:1px solid #d9e5f2;border-radius:10px;overflow:hidden;background:#f7fafd}
.cc-post-image>a{display:block}
.cc-post-image img{display:block;width:100%;max-height:210px;height:auto;object-fit:contain;background:#eef3fa}
.cc-post-image>div{font-size:12.1px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:7px;flex-wrap:wrap;overflow-wrap:anywhere}
.cc-file-link{color:#185aa0;white-space:nowrap}
.cc-post-document{display:inline-flex;align-items:center;gap:6px;padding:9px 11px;border-radius:9px;background:#f3f7fc;border:1px solid #dae6f4;font-size:14.3px;color:#174d8a;overflow-wrap:anywhere;max-width:100%;text-decoration:none}
.cc-post-document small{font-size:12.1px;color:#526783}
@media(max-width:640px){.cc-chat-attach{align-items:flex-start;flex-direction:column}.cc-chat-attach .cc-attach-label{width:100%;box-sizing:border-box;white-space:normal}.cc-chat-attach input[type=file]{max-width:100%}.cc-post-image{width:min(100%,290px)}}

/* Private mood notes and view-only community media. */
.cc-page .cc-mood-messages{border-top:1px solid #dce5f2;padding-top:15px;margin-top:18px}
.cc-page .cc-mood-messages>h3{text-align:left;margin:0 0 12px;color:#1a4e81}
.cc-page .cc-post-image-button{border:0;background:transparent;padding:0;display:block;width:100%;cursor:zoom-in;box-shadow:none}
.cc-page .cc-post-image-button:focus-visible{outline:3px solid #2563eb;outline-offset:-3px}
.cc-page .cc-post-document{cursor:pointer;font:inherit;text-align:left}
.cc-page .cc-post-document:hover{background:#e9f2ff;border-color:#adc9ef}
.cc-page .cc-post-document:focus-visible{outline:3px solid #2563eb}
.cc-preview-content:has(.cc-preview-pdf){padding:4px;overflow:hidden}
.cc-preview-pdf{display:block;width:100%;height:100%;min-height:330px;border:0;background:#fff}
.cc-preview-plain{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14.3px;line-height:1.65;margin:0}
.cc-page .cc-post-image>div .cc-only-view{white-space:nowrap;color:#426282;font-weight:600}
@media(max-width:640px){.cc-preview-pdf{min-height:360px}.cc-page .cc-post-document{width:100%;justify-content:flex-start}}

/* Author-only controls for messages, replies and private GVCN submissions. */
.cc-page .cc-post .cc-actions{align-items:center;gap:7px}
.cc-page .cc-post .cc-actions .btn{min-height:31px;padding:5px 11px;border-radius:8px;font-size:13.2px}
.cc-page .cc-post .cc-actions .btn.danger{border-color:#f1c5c9;background:#fff8f8;color:#a52b3b}
.cc-page .cc-post .cc-actions .btn.danger:hover{background:#ffe8e8;border-color:#e79aa4}
.cc-edit-dialog{border:1px solid #d8e2f0;border-radius:15px;padding:0;width:min(590px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:88dvh;box-shadow:0 20px 70px #1a32563b;overflow:auto}
.cc-edit-dialog::backdrop{background:#0f172a80}
.cc-edit-dialog .cc-edit-form{display:grid;gap:12px;padding:22px}
.cc-edit-dialog h2{font-size:22px;margin:0;color:#214b78}
.cc-edit-dialog .field{display:block;width:100%;min-width:0;max-width:100%;padding:11px;box-sizing:border-box;resize:vertical;line-height:1.55}
.cc-edit-dialog .cc-existing-files{display:grid;gap:7px}
.cc-edit-dialog .cc-edit-file-row{display:flex;gap:8px;align-items:center;min-width:0;padding:9px 10px;border:1px solid #dce6f4;border-radius:9px;background:#f7faff;font-size:13.2px}
.cc-edit-dialog .cc-edit-file-row span{min-width:0;flex:1;overflow-wrap:anywhere}
.cc-edit-dialog .cc-edit-file-row input{width:18px;height:18px;accent-color:#2563eb}
.cc-edit-dialog .cc-edit-file-row small{color:#a52b3b;white-space:nowrap}
.cc-edit-dialog .cc-edit-uploads{display:grid;gap:7px;min-width:0;font-size:13.2px;font-weight:600;color:#315375}
.cc-edit-dialog .cc-edit-uploads input[type=file]{width:100%;max-width:100%;min-width:0;font-size:13.2px}
.cc-edit-dialog .cc-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}
@media(max-width:640px){.cc-edit-dialog .cc-edit-form{padding:15px}.cc-page .cc-post .cc-actions{width:100%;justify-content:flex-start}.cc-edit-dialog .cc-actions .btn{flex:1;min-width:120px}}
