.projects-workspace{min-width:0}.projects-library,.project-manager{margin-bottom:22px}.projects-library>.section-heading,.project-manager>.section-heading{gap:16px;flex-wrap:wrap}.project-search{max-width:360px;width:100%;font-size:12px;font-weight:600}.project-search input{display:block;width:100%;margin-top:6px}.projects-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin:16px 0}.project-card{text-align:left;background:var(--surface,#fff);color:inherit;border:1px solid var(--border,#dce4df);border-top:3px solid #c49b32;padding:18px;display:flex;flex-direction:column;gap:8px;min-width:0;overflow-wrap:anywhere;cursor:pointer}.project-card:hover,.project-card:focus-visible{border-color:#198754;box-shadow:0 3px 14px #123d2312}.project-card strong{font-size:16px}.project-card span,.project-card small{font-size:12px}.project-archive-badge{color:#146c43;font-weight:800;letter-spacing:.08em}.project-tools,.project-location,.project-editor-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 0}.project-caption{font-size:12px;color:var(--muted,#64746b);line-height:1.6}.project-files-layout{display:grid;grid-template-columns:230px minmax(0,1fr);border:1px solid var(--border,#dce4df);min-height:300px}.project-folders{padding:16px;background:#f5f7f5;border-right:1px solid #dce4df;min-width:0}.project-folders h3{font-size:14px;margin-bottom:12px}.project-folders input{width:100%;font-size:12px;margin-bottom:12px}.project-folder{display:block;text-align:left;background:transparent;border:0;padding:8px 4px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;font-size:12px;cursor:pointer}.project-folder.selected{background:#e1efe7;color:#146c43;font-weight:700}.project-files{padding:0 16px 16px;min-width:0}.project-location strong{font-size:12px;overflow-wrap:anywhere}.project-entry{border:0;background:transparent;color:inherit;text-align:left;padding:6px 0;cursor:pointer;overflow-wrap:anywhere}.project-entry:hover{text-decoration:underline}.project-files table{width:100%;table-layout:fixed}.project-files th:first-child{width:60%}.project-files td{font-size:12px;overflow-wrap:anywhere}.project-editor{border:1px solid #dce4df;margin-top:20px;min-width:0}.project-editor-bar{padding:12px 16px;justify-content:space-between;border-bottom:2px solid #c49b32}.project-editor-bar>div{display:flex;gap:8px;flex-wrap:wrap;align-items:center;min-width:0}.project-editor-bar strong{overflow-wrap:anywhere;font-size:13px}.project-editor-bar small{font-size:11px;color:#65786e}.project-editor>.project-caption{padding:0 16px}#projectCodeEditor{height:540px;width:100%;font-size:14px}#projectCodeFallback{width:100%;height:540px;white-space:pre;font-family:monospace}#projectSubmitForm .form-label{display:block;margin-top:14px}#projectSubmitForm small{display:block;font-size:12px;margin-top:6px}#projectTree{max-height:380px;overflow:auto}[data-theme=dark] .project-card,[data-theme=dark] .project-folders{background:#202b25;color:#e3eae5}[data-theme=dark] .project-folder.selected{background:#284735;color:#e3d1a0}[data-theme=dark] .project-archive-badge{color:#dfbf67}[data-theme=dark] .project-editor-bar small{color:#b4c5ba}@media(max-width:760px){.project-files-layout{grid-template-columns:minmax(0,1fr)}.project-folders{border-right:0;border-bottom:1px solid #dce4df}#projectTree{max-height:145px}.project-tools .button{flex:1 1 auto}.project-files{padding:0 10px 10px}#projectCodeEditor,#projectCodeFallback{height:430px}.project-editor-bar{padding:10px}.projects-cards{grid-template-columns:minmax(0,1fr)}}
.projects-workspace .heading-actions .button::before{content:none!important}.projects-workspace #projectsNotice{background:#e9f4ed;border:1px solid #c9dfd0;color:#146c43}.projects-workspace #projectsNotice.error{background:#fff1ee;border-color:#e8b4a7;color:#a43b25}.projects-cards{max-height:290px;overflow:auto;padding:0 18px}.projects-library>small,.projects-library>#projectsEmpty{display:block;padding:0 18px 16px}.project-manager>#projectDescription,.project-manager>.project-tools{padding-left:18px;padding-right:18px}.project-manager>.project-files-layout,.project-manager>.project-editor{margin-left:18px;margin-right:18px}.project-manager{padding-bottom:18px}.project-folder::before,.folder-entry::before{content:'';display:inline-block;vertical-align:middle;width:17px;height:12px;margin-right:9px;background:#e3b348;clip-path:polygon(0 0,40% 0,50% 20%,100% 20%,100% 100%,0 100%)}.project-folder::before{width:15px;height:11px}.project-editor:focus-within{border-color:#198754}[data-theme=dark] .projects-workspace #projectsNotice{background:#233e2e;border-color:#3e624c;color:#cfdfd4}[data-theme=dark] .projects-workspace #projectsNotice.error{background:#492c27;color:#f3cbc0}.project-location{min-width:0}#projectLocation{min-width:0;word-break:break-word}@media(max-width:760px){.project-files th:first-child{width:65%}.project-files th:last-child,.project-files td:last-child{display:none}.projects-cards{max-height:245px}.project-manager>.project-files-layout,.project-manager>.project-editor{margin-left:10px;margin-right:10px}}

/* Shared collaboration workspace */
[data-module=project-collaborations] .project-files table{table-layout:auto;min-width:640px}[data-module=project-collaborations] .project-files th:first-child{width:38%}[data-module=project-collaborations] .project-files th:last-child,[data-module=project-collaborations] .project-files td:last-child{display:table-cell}.collab-activity{padding:0 18px 18px;max-height:330px;overflow:auto}.collab-activity p{border-bottom:1px solid var(--border,#dce4df);padding:12px 0;margin:0;font-size:13px}.collab-activity small{display:block;color:var(--muted,#64746b);margin-top:5px}.collab-person{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border,#dce4df);padding:10px 0}.collab-person span{overflow-wrap:anywhere}.slps-modal .form-label{display:block;margin-top:12px}.slps-modal form>.button{margin-top:16px}.collab-recent{background:#1987540d}.project-card .collab-updated{color:var(--muted,#64746b)}
/* Separate library, file manager and editor pages. */
[data-module=project-collaborations] .workspace{max-width:none;min-width:0}
.portal-page[data-module=project-collaborations] .workspace main{width:100%;max-width:none}
[data-collab-view] [hidden]{display:none!important}
[data-collab-view=library] #projectManager,[data-collab-view=library] #projectEditorPanel{display:none!important}
[data-collab-view=files] #collabLibraryHeading,[data-collab-view=files] #collabLibraryPanel,[data-collab-view=files] #projectEditorPanel{display:none!important}
[data-collab-view=editor] #collabLibraryHeading,[data-collab-view=editor] #collabLibraryPanel,[data-collab-view=editor] #projectManager{display:none!important}
[data-collab-view=library] .projects-cards{max-height:none;padding-bottom:18px}
[data-collab-view=files] .project-files-layout{min-height:calc(100dvh - 390px)}
[data-collab-view=files] #projectTree{max-height:calc(100dvh - 440px);min-height:240px}
[data-collab-view=files] .project-manager{margin:0}
[data-collab-view=editor] #projectEditorPanel{margin:0;border-top:3px solid #c49b32}
.collab-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;min-height:calc(100dvh - 280px)}
.collab-code-pane{min-width:0;background:var(--surface,#fff)}
[data-collab-view=editor] #projectCodeEditor,[data-collab-view=editor] #projectCodeFallback{height:calc(100dvh - 280px);min-height:460px;margin:0;border:0}
.collab-history{border-left:1px solid var(--border,#dce4df);min-width:0;max-height:calc(100dvh - 250px);overflow:auto;background:var(--surface,#fff)}
.collab-history-heading{padding:18px;border-bottom:1px solid var(--border,#dce4df)}
.collab-history-heading h2{font-size:18px;margin:8px 0}.collab-history-heading p{font-size:12px;color:var(--muted,#64746b)}
.collab-history-card{padding:16px 18px;border-bottom:1px solid var(--border,#dce4df);font-size:12px;overflow-wrap:anywhere}.collab-history-card>strong,.collab-history-card>small{display:block;margin-bottom:7px}.collab-history-card>small{color:var(--muted,#64746b)}
.collab-history-card .button{font-size:11px;padding:7px 10px;margin-top:8px}.collab-line-link{display:block;text-align:left;border:0;background:transparent;color:#168653;font-size:12px;padding:6px 0;cursor:pointer}.collab-line-link:hover{text-decoration:underline}
.collab-change-notice{padding:12px 18px;border-bottom:1px solid #badbc7;background:#e9f5ed;color:#145b38;font-size:13px;overflow-wrap:anywhere}.collab-change-notice.warning{background:#fff4d8;color:#795909;border-color:#dfcd9f}
.collab-diff{margin-top:12px;border:1px solid var(--border,#dce4df)}.collab-diff>strong,.collab-diff>small{display:block;padding:7px;font-size:11px}.collab-diff-preview{overflow:auto;max-height:440px}.diff-removed,.diff-added{display:grid;grid-template-columns:50px minmax(0,1fr);padding:3px 5px;gap:7px;font:11px/1.6 monospace}.diff-removed{background:#c9444414}.diff-added{background:#19875418}.diff-line-number{opacity:.7;text-align:right}.collab-diff code{white-space:pre-wrap;overflow-wrap:anywhere;color:inherit;font-size:11px}.collab-diff-preview>p{font-size:11px;padding:8px}
[data-theme=dark] .collab-history,[data-theme=dark] .collab-code-pane{background:#202b25}[data-theme=dark] .collab-line-link{color:#a7daba}[data-theme=dark] .collab-change-notice{background:#233e2e;color:#d3ebdb}[data-theme=dark] .collab-change-notice.warning{background:#443b20;color:#f5dfa3}
@media(max-width:1100px){.collab-editor-layout{grid-template-columns:minmax(0,1fr) 285px}}
@media(max-width:760px){.collab-editor-layout{grid-template-columns:minmax(0,1fr)}.collab-history{border-left:0;border-top:1px solid var(--border,#dce4df);max-height:420px}[data-collab-view=files] #projectTree{min-height:0;max-height:170px}[data-collab-view=editor] #projectCodeEditor,[data-collab-view=editor] #projectCodeFallback{height:65dvh;min-height:360px}.project-editor-bar{position:sticky;top:0;background:var(--surface,#fff);z-index:2}[data-theme=dark] .project-editor-bar{background:#202b25}}
/* Hierarchical project explorer and file actions. */
[data-module=project-collaborations] .project-files-layout{grid-template-columns:270px minmax(0,1fr)}
.collab-explorer-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.collab-explorer-heading h3{margin:0;text-transform:uppercase;font-size:11px;letter-spacing:1.1px}.collab-tree-tool{border:0;background:transparent;color:inherit;font-size:20px;cursor:pointer}
.collab-tree-item{min-width:0}.collab-tree-row{display:flex;align-items:center;min-height:30px;gap:2px;border-radius:3px}.collab-tree-row:hover{background:#19875412}.collab-tree-row.selected{background:#19875420;color:#146c43}.collab-tree-children{margin-left:10px;padding-left:6px;border-left:1px solid var(--border,#dce4df)}
.collab-tree-chevron{background:transparent;border:0;color:inherit;cursor:pointer;flex:0 0 22px;width:22px;height:28px;font:20px/1 sans-serif;padding:0}.collab-tree-spacer{flex:0 0 22px;width:22px}.collab-tree-label{display:flex;align-items:center;min-width:0;flex:1;text-align:left;padding:6px 2px;border:0;background:transparent;color:inherit;font-size:12px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collab-tree-label.is-folder::before{content:'';flex:0 0 15px;width:15px;height:11px;background:#e3b348;clip-path:polygon(0 0,40% 0,50% 20%,100% 20%,100% 100%,0 100%);margin-right:7px}.collab-tree-label.is-file::before{content:'▤';color:var(--muted,#64746b);font-size:15px;margin-right:7px}.collab-tree-label:focus-visible,.collab-tree-chevron:focus-visible{outline:2px solid #198754;outline-offset:-2px}
.collab-context-menu{position:fixed;z-index:1100;min-width:230px;max-width:280px;background:var(--surface,#fff);color:var(--text,#172c22);border:1px solid var(--border,#dce4df);box-shadow:0 8px 28px #0003;padding:6px;border-radius:6px}.collab-context-menu[hidden]{display:none!important}.collab-context-menu>strong{display:block;padding:9px 10px;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid var(--border,#dce4df);margin-bottom:4px}.collab-context-menu>button{display:block;width:100%;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;padding:10px;font-size:13px;border-radius:3px}.collab-context-menu>button:hover,.collab-context-menu>button:focus-visible{background:#19875418;outline:none}.collab-context-menu>button[hidden]{display:none}.collab-context-menu .collab-delete-action{color:#bf3939;border-top:1px solid var(--border,#dce4df);margin-top:4px}
[data-theme=dark] .collab-tree-row.selected{background:#284735;color:#e3d1a0}[data-theme=dark] .collab-context-menu{background:#252d29;color:#e3eae5}[data-theme=dark] .collab-context-menu .collab-delete-action{color:#f2a19a}
@media(max-width:760px){[data-module=project-collaborations] .project-files-layout{grid-template-columns:minmax(0,1fr)}}
/* Student submission pages follow the collaboration workspace layout. */
.portal-page[data-module=student-projects] .workspace main{width:100%;max-width:none}
[data-student-view] [hidden]{display:none!important}
[data-student-view=library] #projectManager,[data-student-view=library] #projectEditorPanel{display:none!important}
[data-student-view=files] #studentLibraryHeading,[data-student-view=files] #studentLibraryPanel,[data-student-view=files] #projectEditorPanel{display:none!important}
[data-student-view=editor] #studentLibraryHeading,[data-student-view=editor] #studentLibraryPanel,[data-student-view=editor] #projectManager{display:none!important}
[data-student-view=library] .projects-cards{max-height:none;padding-bottom:18px}
[data-student-view=files] .project-files-layout{grid-template-columns:270px minmax(0,1fr);min-height:calc(100dvh - 390px)}
[data-student-view=files] #projectTree{max-height:calc(100dvh - 440px);min-height:240px}
[data-student-view=editor] #projectEditorPanel{margin:0;border-top:3px solid #c49b32}
[data-student-view=editor] #projectCodeEditor,[data-student-view=editor] #projectCodeFallback{height:calc(100dvh - 270px);min-height:480px}
.student-grade-badge,.student-grade-summary{font-size:12px;font-weight:700;padding:6px 9px;background:#19875412;border:1px solid var(--border,#dce4df)}
.student-grade-large{font-size:25px;display:block;margin-bottom:16px}.grade-pass{color:#168653}.grade-fail{color:#bf3939}.student-grade-result{padding:16px;border:1px solid var(--border,#dce4df);margin-bottom:18px}.student-grade-result p{white-space:pre-wrap;overflow-wrap:anywhere}.student-grade-result small{font-size:12px;color:var(--muted,#64746b)}[data-theme=dark] .grade-pass{color:#a7daba}[data-theme=dark] .grade-fail{color:#f2a19a}
@media(max-width:760px){[data-student-view=files] .project-files-layout{grid-template-columns:minmax(0,1fr)}[data-student-view=files] #projectTree{min-height:0;max-height:170px}[data-student-view=editor] #projectCodeEditor,[data-student-view=editor] #projectCodeFallback{height:70dvh;min-height:360px}}
