.ll-workspace{max-width:1120px;margin:0 auto;padding:clamp(16px,3vw,32px);color:var(--text-primary,#172334)}
.ll-workspace h1,.ll-workspace h2,.ll-workspace h3,.ll-dialog h2,.ll-dialog h3{color:inherit;margin:0 0 8px;line-height:1.3}
.ll-workspace h1{font-size:28px}.ll-workspace h2,.ll-dialog h2{font-size:19px}.ll-workspace h3,.ll-dialog h3{font-size:15px}
.ll-page-head,.ll-course-panel>header,.ll-response-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.ll-page-head p,.ll-card p,.ll-course-panel p,.ll-response-card header p{margin:0;color:var(--text-secondary,#516174);font-size:14px;line-height:1.6}
.ll-workspace .btn-ghost,.ll-dialog .btn-ghost,.ll-workspace .btn-accent,.ll-dialog .btn-accent{display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:36px;padding:7px 11px;border:1px solid var(--border,#cbd5df);border-radius:8px;background:var(--surface-1,#fff);color:var(--text-primary,#172334);font:inherit;font-size:13px;text-decoration:none;cursor:pointer;line-height:1.4}
.ll-workspace .btn-accent,.ll-dialog .btn-accent{background:#185fa5;border-color:#185fa5;color:#fff}
.ll-workspace .btn-accent:hover,.ll-dialog .btn-accent:hover{background:#104779;border-color:#104779;color:#fff}
.ll-workspace .btn-ghost:hover,.ll-dialog .btn-ghost:hover{background:var(--surface-2,#edf2f7)}
.ll-workspace button:disabled,.ll-dialog button:disabled{opacity:.5;cursor:default}
.ll-workspace :focus-visible,.ll-dialog :focus-visible{outline:3px solid #2e88d3;outline-offset:3px}
.ll-workspace input,.ll-workspace select,.ll-workspace textarea,.ll-dialog input,.ll-dialog select,.ll-dialog textarea{box-sizing:border-box;min-width:0;max-width:100%;border:1px solid var(--border,#bbc8d6);border-radius:7px;background:var(--surface-1,#fff);color:var(--text-primary,#172334);padding:9px 10px;font:inherit;font-size:14px;line-height:1.5}
.ll-workspace select,.ll-dialog select{white-space:nowrap;text-overflow:ellipsis}.ll-workspace textarea,.ll-dialog textarea{resize:vertical;width:100%;min-height:88px}
.ll-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:20px 0 8px}.ll-toolbar>button{margin-left:auto}.ll-search{flex:1;min-width:180px}.ll-search input{width:100%}
.ll-check{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-secondary,#516174)}.ll-check input{accent-color:#185fa5;flex-shrink:0}
.ll-status{font-size:13px;min-height:20px;margin:8px 0;color:var(--text-secondary,#516174)}.ll-status[data-error="true"],.ll-dialog output[data-error="true"]{color:#bd3737}
.ll-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ll-card{display:flex;flex-direction:column;min-width:0;padding:19px;border:1px solid var(--border,#cbd5df);border-radius:13px;background:var(--surface-1,#fff)}
.ll-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;color:var(--text-secondary,#516174);font-size:11px}.ll-card p{flex:1}.ll-badge{display:inline-block;padding:4px 8px;border-radius:20px;background:var(--surface-2,#edf2f7);color:var(--text-primary,#172334);font-size:11px;white-space:nowrap}
.ll-stage-strip{display:flex;list-style:none;gap:8px;padding:0;margin:18px 0;align-items:stretch}.ll-stage-strip li{display:flex;align-items:center;flex:1;gap:6px;padding:8px 7px;border:1px solid var(--border,#cbd5df);border-radius:8px;background:var(--surface-2,#f2f6fa);color:var(--text-primary,#172334);font-size:12px;line-height:1.4;overflow-wrap:anywhere}.ll-stage-strip li>span{display:grid;place-items:center;width:19px;height:19px;flex-shrink:0;border-radius:50%;font-size:10px;background:#dcebf9;color:#164b7e}.ll-stage-strip li.is-current{border-color:#185fa5;box-shadow:inset 0 0 0 1px #185fa5}
.ll-card>footer{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.ll-menu{position:relative;margin-left:auto;font-size:12px}.ll-menu summary{cursor:pointer;padding:8px;color:var(--text-secondary,#516174)}.ll-menu>div{position:absolute;right:0;top:35px;z-index:3;display:grid;min-width:115px;padding:6px;gap:4px;border:1px solid var(--border,#cbd5df);border-radius:9px;box-shadow:0 5px 18px #0002;background:var(--surface-1,#fff)}
.ll-attribution{margin-top:24px;padding-top:16px;border-top:1px solid var(--border,#cbd5df);font-size:12px;line-height:1.7;color:var(--text-secondary,#516174)}.ll-attribution a{color:var(--accent,#185fa5);text-decoration:underline;text-underline-offset:2px}
.ll-course-panel{margin-bottom:22px;padding:20px;border:1px solid var(--border,#cbd5df);border-radius:12px;background:var(--surface-1,#fff)}.ll-course-panel>header{margin-bottom:8px}.ll-course-panel>header h2{font-size:17px}.ll-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.ll-actions output{margin-right:auto;font-size:13px}.ll-hint{margin:0 0 16px;color:var(--text-secondary,#516174);font-size:13px;line-height:1.6}
.ll-assignment-list{list-style:none;padding:0;margin:15px 0 0}.ll-assignment-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-top:1px solid var(--border,#cbd5df)}.ll-assignment-list strong{display:block;font-size:14px}.ll-assignment-list span{display:block;font-size:12px;color:var(--text-secondary,#516174);margin-top:4px}.ll-empty{padding:22px;border:1px dashed var(--border,#cbd5df);border-radius:10px;color:var(--text-secondary,#516174);font-size:14px;line-height:1.6}
.ll-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid var(--border,#cbd5df);border-radius:14px;box-shadow:0 20px 80px #0005;background:var(--surface-1,#fff);color:var(--text-primary,#172334);overflow:auto}.ll-dialog::backdrop{background:#07152599}.ll-form>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid var(--border,#cbd5df);background:var(--surface-1,#fff)}.ll-form>header h2{margin:0}.ll-close{flex-shrink:0}.ll-dialog-body{padding:20px 22px}.ll-form>footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;align-items:center;gap:9px;padding:15px 22px;border-top:1px solid var(--border,#cbd5df);background:var(--surface-1,#fff)}.ll-form>footer output{margin-right:auto;font-size:13px;line-height:1.5}.ll-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ll-field{display:flex;flex-direction:column;gap:6px;min-width:0;margin-bottom:14px;font-size:13px}.ll-field>span{font-weight:600}.ll-form-grid .ll-field:last-child{grid-column:1/-1}.ll-stage-editors{display:grid;gap:12px}.ll-stage-editors fieldset{min-width:0;margin:0;padding:12px 14px 2px;border:1px solid var(--border,#cbd5df);border-radius:9px}.ll-stage-editors legend{padding:0 6px;font-size:12px;color:var(--text-secondary,#516174)}.ll-stage-editors textarea{min-height:72px}.ll-preserve{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65}.ll-feedback{margin:16px 0;padding:15px;border-left:3px solid #297ec0;border-radius:0 8px 8px 0;background:var(--surface-2,#eff5fc);font-size:14px;line-height:1.6}.ll-feedback p{margin:6px 0 0}.ll-preview-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;font-size:12px;color:var(--text-secondary,#516174)}
.ll-response-list{display:grid;gap:18px}.ll-response-card{padding:20px;border:1px solid var(--border,#cbd5df);border-radius:12px;background:var(--surface-1,#fff)}.ll-response-card>header{margin-bottom:12px}.ll-response-card h2{font-size:17px}.ll-response-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}.ll-response-stages>section{min-width:0;padding:12px;border-radius:8px;background:var(--surface-2,#f2f6fa)}.ll-response-stages p{font-size:13px;line-height:1.6;margin:0}.ll-response-stages h3{font-size:13px}.ll-review{padding:clamp(12px,2vw,24px)}
.professor-tool-icon.loops{background:#dff3ed;color:#196852}
.ll-library-settings{margin-top:20px;font-size:13px;color:var(--text-secondary,#516174)}.ll-library-settings>summary{cursor:pointer;padding:8px 0}.ll-library-settings>div{padding:12px 16px;border:1px solid var(--border,#cbd5df);border-radius:9px;background:var(--surface-1,#fff)}.ll-library-settings .ll-hint{margin:8px 0}.ll-library-settings button{margin-bottom:8px}
@media(max-width:760px){.ll-library-grid{grid-template-columns:1fr}.ll-page-head,.ll-course-panel>header,.ll-response-card>header{flex-wrap:wrap;gap:12px}.ll-toolbar>button{margin-left:0}.ll-toolbar .ll-search{flex-basis:100%}.ll-assignment-list li{align-items:flex-start;flex-direction:column}.ll-response-stages{grid-template-columns:1fr}.ll-workspace h1{font-size:24px}.ll-form-grid{grid-template-columns:1fr}.ll-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.ll-dialog-body,.ll-form>header,.ll-form>footer{padding:16px}.ll-form>footer{flex-wrap:wrap}.ll-form>footer output{flex-basis:100%}.ll-stage-strip{gap:5px}.ll-stage-strip li{flex-direction:column;align-items:flex-start;padding:7px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.ll-workspace *,.ll-dialog *{scroll-behavior:auto;transition:none;animation:none}}
