*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,"Malgun Gothic",sans-serif;background:#f5f7fb;color:#182230}header{background:#173b67;color:white;position:sticky;top:0;z-index:10}header a,.linkbtn{color:white}.brand{font-weight:800;text-decoration:none}.wrap{max-width:1180px;margin:auto;padding:18px}.bar{display:flex;justify-content:space-between;align-items:center}.bar nav{display:flex;gap:14px;align-items:center}.inline{display:inline}.linkbtn{border:0;background:none;padding:0}.card{background:white;border:1px solid #dfe5ee;border-radius:12px;padding:20px;margin:16px 0;box-shadow:0 2px 8px #0000000b}.narrow{max-width:520px;margin:40px auto}.narrow-wide{max-width:760px;margin:30px auto}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:15px}.assignment{text-decoration:none;color:inherit}.assignment:hover{border-color:#5c87bb}.badge{display:inline-block;background:#e8eef6;padding:5px 9px;border-radius:999px;font-size:13px;margin:2px}.badge.success{background:#e0f4e7;color:#146c37}.badge.danger{background:#fee8e8;color:#9b2424}input,textarea,select{width:100%;padding:10px;border:1px solid #bfc9d7;border-radius:8px;font:inherit;background:white}input[type=checkbox]{width:auto;transform:scale(1.08)}textarea{min-height:130px}button,.button{display:inline-block;background:#1d5fa7;color:white;border:1px solid #1d5fa7;border-radius:8px;padding:10px 15px;text-decoration:none;font-weight:700;cursor:pointer}.secondary{background:#536273;border-color:#536273}.ghost{background:white;color:#1d5fa7}.big{font-size:16px;margin:10px 0 40px}.msg{padding:12px;border-radius:8px;margin:10px 0}.msg.error{background:#ffe7e7}.msg.success{background:#e7f7eb}.msg.info{background:#e8f1ff}.warn{color:#a13b18}.ok{color:#13733a}.req{color:#c22}.help{font-size:13px;color:#64748b}.pre{white-space:pre-wrap}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.pagehead{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-top:8px}.pagehead h1{margin-bottom:4px}.row-between{display:flex;justify-content:space-between;gap:12px;align-items:center}.statusline{display:flex;gap:6px;flex-wrap:wrap}.mini-stats,.metric-row{display:flex;gap:12px;flex-wrap:wrap}.mini-stats>div,.metric{background:#f4f7fb;border-radius:10px;padding:10px 16px;min-width:92px}.mini-stats b,.metric b{display:block;font-size:24px}.mini-stats span,.metric span{font-size:12px;color:#64748b}.danger-metric{background:#fff0f0}.formgrid,.qgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field.wide{grid-column:1/-1}.field label,.filters label{display:block;font-weight:700;font-size:13px;margin:0 0 6px}.error-text{color:#b42318;font-size:13px;margin-top:4px}.question-editor{border:1px solid #e2e8f0;border-radius:10px;padding:14px;margin:12px 0}.filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.filters>div{min-width:120px}.filters .grow{flex:1;min-width:220px}.table-card{padding-bottom:10px}.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}table{border-collapse:collapse;width:100%;min-width:780px}th,td{border-bottom:1px solid #e4e8ef;padding:10px;text-align:left;white-space:nowrap}th{background:#f8fafc}.missing-row{background:#fff9f9}.alert-card{border-color:#f1b7b7}.ip-alert{padding:10px 0;border-top:1px solid #f0d6d6}.note{background:#f0f6ff;border-left:4px solid #4d7fb8;padding:12px;margin:12px 0;border-radius:4px}.steps li{margin:8px 0}.codebox{background:#182230;color:#f8fafc;padding:14px;border-radius:8px;overflow:auto;white-space:pre-wrap}.result-card{border-color:#aac8e9}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(340px,1fr))}
@media(max-width:700px){.wrap{padding:12px}.bar{align-items:flex-start;gap:10px}.bar nav{gap:8px;flex-wrap:wrap;justify-content:flex-end}.card{padding:14px}.pagehead{display:block}.pagehead .actions{margin-top:10px}.formgrid,.qgrid{grid-template-columns:1fr}.field.wide{grid-column:auto}.question h2{font-size:17px}.stats-grid{grid-template-columns:1fr}}
.progress{height:10px;background:#e5eaf1;border-radius:999px;overflow:hidden;margin:6px 0 12px}.progress>span{display:block;height:100%;background:#1d5fa7}.overall{min-width:220px}.progressline>span{font-size:13px;font-weight:700}.disabled,.button:disabled{opacity:.5;cursor:not-allowed}.student-choices{max-height:340px;overflow:auto;border:1px solid #dfe5ee;border-radius:8px;padding:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 12px}.student-choices label{padding:5px;border-radius:6px}.student-choices label:hover{background:#f4f7fb}@media(max-width:800px){.student-choices{grid-template-columns:1fr}}
.class-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}.class-card{border:1px solid #dfe5ee;border-radius:10px;overflow:hidden}.class-head{display:flex;justify-content:space-between;align-items:center;background:#f5f8fc;padding:10px 12px}.class-students{max-height:260px;overflow:auto;padding:8px}.student-row{display:block;padding:6px 8px;border-radius:6px}.student-row:hover{background:#f4f7fb}.student-row small{color:#6b7280}
.rich-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:8px;background:#f6f8fb;border:1px solid #dfe5ee;border-bottom:0;border-radius:10px 10px 0 0}.rich-toolbar button{padding:7px 10px}.rich-editor{min-height:260px;border:1px solid #bfc9d7;border-radius:0 0 10px 10px;padding:16px;background:white;overflow:auto;line-height:1.6}.rich-editor:focus{outline:2px solid #9fc1e8;outline-offset:-2px}.rich-editor img,.assignment-guide img{display:block;max-width:100%;height:auto;margin:12px auto;border-radius:8px}.rich-editor h2,.assignment-guide h2{margin-top:1.2em}.rich-editor h3,.assignment-guide h3{margin-top:1em}.rich-editor blockquote,.assignment-guide blockquote{margin:12px 0;padding:10px 14px;border-left:4px solid #9bb6d4;background:#f7faff}.rich-editor a,.assignment-guide a{word-break:break-all}.image-caption-hint{font-size:13px;color:#7b8796}.resource-list{border:1px solid #dfe5ee;border-radius:8px;margin:10px 0 16px;overflow:hidden}.resource-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid #edf0f4}.resource-row:last-child{border-bottom:0}.resource-row small{color:#64748b}.assignment-guide{line-height:1.65}.assignment-materials ul{margin-bottom:0}.assignment-materials li{margin:7px 0}.filemeta{font-size:12px;color:#64748b;margin-left:6px}
.hidden{display:none!important}.compact-check{display:flex!important;align-items:center;gap:8px;font-weight:700}.compact-check input[type=checkbox]{flex:0 0 auto}.conditional-field{border-left:3px solid #d8e5f3;padding-left:12px}.extension-box{background:#f8fafc;border:1px solid #e3e8ef;border-radius:10px;padding:14px}.extension-presets>div,.extension-presets ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:7px 14px;margin:8px 0;padding:0;list-style:none}.extension-presets label{display:flex;align-items:center;gap:7px;font-weight:500;margin:0;padding:5px 7px;border-radius:6px}.extension-presets label:hover{background:#eef4fb}.question-head{align-items:flex-start}.question-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #edf1f5}.question-kind-summary{font-size:12px;color:#496780;background:#eef5fc;border-radius:999px;padding:4px 8px}.question-type-help{margin-top:8px;padding:8px 10px;background:#f8fafc;border-radius:7px}.delete-field{margin-top:4px;padding-top:8px;border-top:1px dashed #d8dee8}.question-editor [data-qfield="extension_presets"]{background:#f8fafc;border:1px solid #e5eaf0;border-radius:8px;padding:10px}@media(max-width:700px){.extension-presets>div,.extension-presets ul{grid-template-columns:1fr}.question-head{display:block}.question-head>button{margin-top:8px}}

.site-footer{margin-top:45px;padding:24px 0;border-top:1px solid #d9e0eb;background:#f7f9fc;color:#35445c;font-size:13px}.footer-row{display:flex;gap:14px;flex-wrap:wrap;align-items:center}.site-footer a{font-weight:700}.privacy-card{max-width:950px}.privacy-card table{width:100%;border-collapse:collapse}.privacy-card th,.privacy-card td{border:1px solid #d8e0e9;padding:11px;text-align:left;vertical-align:top;overflow-wrap:anywhere}.privacy-card h2{margin-top:30px}.privacy-choice{display:flex;align-items:center;gap:8px;margin:14px 0}.privacy-choice input{width:auto;margin:0}.privacy-note{padding:12px;background:#eef5ff;border:1px solid #cedff5;border-radius:8px}.privacy-card p,.privacy-card li{line-height:1.7}

.privacy-editor textarea{min-height:105px}.privacy-editor .field{min-width:0}.privacy-editor input[type=date]{max-width:300px}

.privacy-editor .formgrid{grid-template-columns:minmax(0,1fr)}

/* 과제 대상 학생: 학교·학년·반·번호·아이디·이름 조합 검색 */
.student-target-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end;margin:14px 0}
.student-target-filters label{display:block;font-size:13px;font-weight:700}
.student-target-filters input,.student-target-filters select{margin-top:5px}
.student-target-filters button{align-self:end;min-height:43px}
.target-results{flex-wrap:wrap;gap:12px;margin:12px 0}
.student-row b{font-size:14px}.student-row small{display:block;margin-left:23px;line-height:1.5;white-space:normal}
.class-card[hidden]{display:none!important}
@media(max-width:760px){.student-target-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.student-target-filters{grid-template-columns:minmax(0,1fr)}.target-results .actions button{flex:1 1 auto}}

/* 상단 메뉴: 로그아웃 버튼은 링크와 같은 글꼴 크기의 둥근 사각형 */
.bar nav .nav-logout-form{display:inline-flex;align-items:center;margin:0}
.bar nav .nav-logout-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;font:inherit;font-weight:500;line-height:1.25;color:#fff;background:#285785;border:1px solid #91afcd;border-radius:7px;padding:5px 10px;white-space:nowrap;cursor:pointer}
.bar nav .nav-logout-btn:hover{background:#35699e;border-color:#d2e2f4}
.bar nav .nav-logout-btn:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* Submission feedback: keep native form fields and download streaming intact. */
.busy-overlay[hidden],#busyNotice[hidden],#busyRecovery[hidden]{display:none!important}
.busy-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(42,47,54,.64);cursor:wait}
.busy-panel{box-sizing:border-box;width:min(100%,520px);max-height:90vh;overflow:auto;padding:32px 26px;border-radius:14px;background:#fff;color:#172c42;text-align:center;box-shadow:0 12px 48px #0005}
.busy-panel h2{font-size:1.2rem;margin:18px 0 12px}.busy-panel p{line-height:1.7;white-space:normal;word-break:keep-all}
.busy-spinner{display:inline-block;width:40px;height:40px;border:4px solid #d8e0e8;border-top-color:#285785;border-radius:50%;animation:busy-spin 1s linear infinite}
.busy-open{overflow:hidden}#busyNotice{position:sticky;bottom:12px;z-index:100;max-width:960px;margin:12px auto;background:#edf4fc;border:1px solid #9cb5ce;color:#172c42}
@keyframes busy-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.busy-spinner{animation:none}}

/* Visible feedback shared by login, account forms, and the assignment editor. */
.error-summary{padding:18px 22px;margin:16px 0;border:2px solid #b42318;border-radius:10px;background:#fff1f0;color:#8f1912;scroll-margin-top:105px}
.error-summary h2{margin:0 0 10px;font-size:1.08rem}.error-summary ul{margin:0;padding-left:24px}.error-summary li{margin:8px 0}.error-summary a{color:#8f1912;text-decoration:underline;font-weight:700}
.errorlist,.error-text{color:#a32218;font-weight:650}.errorlist{padding:12px 12px 12px 30px;border-left:4px solid #b42318;border-radius:6px;background:#fff1f0}.msg.error{color:#8f1912;border:1px solid #d47670;font-weight:650}.msg.success{color:#146335;border:1px solid #83bd95}
input[aria-invalid="true"],textarea[aria-invalid="true"],select[aria-invalid="true"]{border:2px solid #b42318;background:#fff8f7}
.question-editor[hidden]{display:none!important}.delete-field .delete-checkbox{display:none}.delete-question{color:#a32218;border-color:#d6a4a0;background:#fff}
[data-question-form] .field,.error-summary{scroll-margin-top:110px}
/* Student workspace, scoped so teacher management tables retain their layout. */
.student-overview{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px;border:1px solid #d5e3f0;border-radius:16px;background:linear-gradient(120deg,#eef5fd,#fff);margin:14px 0 20px}
.student-overview h1{margin:0 0 8px;font-size:1.65rem}.student-overview p{margin:0;color:#536780}.student-overview .overall{min-width:260px}.student-assignment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:20px}
.student-assignment-grid .assignment-card{margin:0;padding:24px;display:flex;flex-direction:column;gap:18px;min-width:0;border-top:4px solid #2f6fb1;box-shadow:0 3px 12px #173b670b}
.assignment-card .assignment-card-title{margin:0;font-size:1.3rem;line-height:1.5;overflow-wrap:anywhere}.assignment-card .assignment-description{margin:0;color:#526276;line-height:1.65;overflow-wrap:anywhere}
.assignment-card .assignment-dates{display:grid;grid-template-columns:auto 1fr;gap:7px 14px;margin:0;padding:13px 15px;background:#f6f8fc;border-radius:9px;font-size:.9rem}.assignment-dates dt{color:#5e6f84}.assignment-dates dd{margin:0;font-variant-numeric:tabular-nums}
.assignment-card .progressline{padding:0}.assignment-card .progress-heading{display:flex;justify-content:space-between;gap:10px;font-size:.9rem}.assignment-card .progress{height:8px;margin:9px 0}.assignment-card .card-actions{margin-top:auto;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.assignment-card .card-actions .button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:11px 18px;font-size:.95rem;line-height:1.25}
#submissionForm .question h2{font-size:1.12rem;line-height:1.6;margin-top:0}#submissionForm .question{padding:24px;border-color:#d9e3ee}#submissionForm textarea{min-height:170px;line-height:1.7}
#submissionForm .submit-actions{gap:12px;margin:22px 0;padding:16px;background:#fff;border:1px solid #dae3ed;border-radius:12px}
#submissionForm .submit-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:160px;margin:0;padding:12px 24px;font-size:16px;line-height:1.4;border-radius:9px}
@media(max-width:700px){.student-overview{display:block;padding:20px}.student-overview .overall{margin-top:20px;min-width:0}.student-assignment-grid{grid-template-columns:1fr}.student-assignment-grid .assignment-card{padding:20px}.assignment-card .assignment-dates{font-size:.85rem;gap:7px 9px}#submissionForm .submit-actions{flex-wrap:nowrap;padding:12px}#submissionForm .submit-actions button{flex:1;min-width:0;padding:12px 10px}.error-summary{padding:14px}}

.error-text{font-size:15px;line-height:1.6}.errorlist,.msg.error{font-size:17px;line-height:1.6}

.image-preview{margin:14px 0;padding:12px;border:1px solid #d8e2ed;border-radius:10px;background:#f8fafc;max-width:620px;white-space:normal}.uploaded-image-preview{display:block;max-width:100%;max-height:360px;width:auto;height:auto;object-fit:contain;border-radius:5px}.uploaded-image-preview[hidden]{display:none}.image-preview a{display:block}.image-preview figcaption{font-size:13px;color:#526276;margin-top:8px;overflow-wrap:anywhere}.image-preview-error[hidden]{display:none}.local-image-previews{margin-top:12px}.local-image-previews .image-preview{display:inline-block;vertical-align:top;max-width:min(100%,320px);margin-right:10px}.local-image-previews .uploaded-image-preview{max-height:220px}

.current-attachment{border:1px solid #dce4ef;border-radius:10px;padding:14px;margin:14px 0;background:#f8fafc}.current-attachment p{overflow-wrap:anywhere}.export-toolbar{display:grid;gap:16px;margin:16px 0;padding:18px;background:#f4f7fb;border:1px solid #dce4ef;border-radius:12px}.export-row{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.export-row label{display:flex;flex-direction:column;gap:6px;margin:0;min-width:170px}.export-row button,.export-row select{min-height:44px;margin:0}.export-row .export-explanation{flex:1;margin:0;color:#526177}.selection-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}

/* Shared controls: anchors and submit buttons use the same font and box model. */
button,.button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;max-width:100%;margin:0;font-family:inherit;font-size:14px;font-weight:700;line-height:1.4;text-align:center;vertical-align:middle;overflow-wrap:anywhere;transition:background-color .15s,border-color .15s}
button[hidden],.button[hidden]{display:none!important}
button:focus-visible,.button:focus-visible{outline:3px solid #91b7df;outline-offset:3px}
button:disabled,.button[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
button:not(:disabled):hover,.button:hover{background:#174f8d;border-color:#174f8d}
button.ghost:not(:disabled):hover,.button.ghost:hover{background:#eff5fc;border-color:#5785b7;color:#174f8d}
button.secondary:not(:disabled):hover,.button.secondary:hover{background:#435363;border-color:#435363}
button.danger,.button.danger{background:#b42318;border-color:#b42318;color:white}
button.danger:not(:disabled):hover,.button.danger:hover{background:#912018;border-color:#912018}
.button.danger-ghost,button.danger-ghost{background:white;border-color:#ddb4b0;color:#a32218}
.button.danger-ghost:hover,button.danger-ghost:not(:disabled):hover{background:#fff1f0;border-color:#b42318}
.actions{align-items:stretch;gap:10px}
.actions>form.inline{display:flex;align-items:stretch;margin:0;min-width:0;max-width:100%}
.actions>form.inline>button{flex:1}
.actions>.big{margin:0}
.delete-question:not(:disabled):hover{background:#fff1f0;border-color:#b42318;color:#a32218}
.maintenance-log-link{display:block;margin-top:6px;font-weight:700}
.actions>label,.actions>.help{align-self:center}
.form-actions{margin-top:20px}
.control-row{align-items:flex-end}
.control-row>label{align-self:auto}
.filters button,.filters .button{min-height:44px}
.filters input,.filters select{min-height:44px}
.row-between{flex-wrap:wrap}
.row-between>.actions{min-width:0}
button.small,.button.small{min-height:36px;padding:7px 10px;font-size:13px}
.rich-toolbar button{min-height:36px;font-size:13px;line-height:1.4}
.bar nav .nav-logout-btn{min-height:32px}
.bar nav .nav-logout-btn:hover{background:#35699e;border-color:#d2e2f4}
.table-actions{flex-wrap:nowrap}
.table-actions>.button{white-space:nowrap}
.selection-tools{align-items:stretch}
.selection-tools>label{align-self:center}
.pagehead>div:first-child{min-width:0}
.pagehead h1{overflow-wrap:anywhere}
/* Teacher dashboard follows the existing blue, white and light gray palette. */
.teacher-assignment-list{display:grid;gap:18px;margin:20px 0}
.teacher-assignment-card{margin:0;padding:0;overflow:hidden}
.teacher-assignment-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:28px;padding:24px}
.teacher-assignment-info{min-width:0}
.teacher-assignment-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.teacher-assignment-heading h2{margin:0;font-size:22px;line-height:1.45;overflow-wrap:anywhere}
.teacher-assignment-heading .badge{margin:0;flex-shrink:0;font-weight:600}
.teacher-assignment-meta{display:grid;gap:9px;margin:0;font-size:14px;line-height:1.6}
.teacher-assignment-meta>div{display:flex;gap:16px;align-items:baseline}
.teacher-assignment-meta dt{flex:0 0 58px;color:#64748b}
.teacher-assignment-meta dd{margin:0;min-width:0;overflow-wrap:anywhere}
.teacher-assignment-period{display:flex;flex-wrap:wrap;column-gap:8px;row-gap:2px;font-variant-numeric:tabular-nums}
.teacher-assignment-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;color:#4c6078;font-size:13px;line-height:1.5}
.teacher-assignment-options>span{padding:5px 9px;background:#f4f7fb;border-radius:6px}
.teacher-assignment-hint{margin:8px 0 0;line-height:1.5}
.teacher-assignment-summary{align-self:center;padding:18px 20px;background:#f4f7fb;border-radius:10px;min-width:0}
.teacher-assignment-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 16px}
.teacher-assignment-counts>div{text-align:center;padding:0 8px}
.teacher-assignment-counts>div+div{border-left:1px solid #dce4ee}
.teacher-assignment-counts dt{font-size:13px;color:#5d6f85;margin-bottom:7px;white-space:nowrap}
.teacher-assignment-counts dd{margin:0;font-size:26px;line-height:1.35;font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.teacher-assignment-counts dd span{display:inline-block;margin-left:3px;font-size:12px;font-weight:500;color:#64748b}
.teacher-assignment-counts .submitted-count dd{color:#1d5fa7}
.teacher-assignment-progress-label{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#5d6f85}
.teacher-assignment-progress-label strong{color:#1d5fa7}
.teacher-assignment-summary .progress{height:6px;margin:7px 0 0}
.teacher-assignment-summary .progress>span{max-width:100%}
.teacher-assignment-no-target{margin:0;text-align:center}
.teacher-assignment-footer{display:flex;justify-content:space-between;align-items:stretch;flex-wrap:wrap;gap:12px;padding:16px 24px;border-top:1px solid #e7edf4}
.teacher-assignment-actions>.button,.teacher-assignment-actions>form.inline{min-width:106px}
.teacher-assignment-delete{margin-left:auto}
.teacher-assignment-empty{padding:32px;text-align:center}
.teacher-assignment-empty h2{margin:0 0 8px;font-size:18px}
.teacher-assignment-empty p{margin:0}
@media(max-width:800px){.teacher-assignment-body{grid-template-columns:minmax(0,1fr);gap:20px}.teacher-assignment-summary{width:100%}.teacher-assignment-counts dd{font-size:25px}}
@media(max-width:700px){.row-between{gap:12px}.teacher-assignment-body{padding:20px}.teacher-assignment-footer{padding:16px 20px}.teacher-assignment-heading h2{font-size:20px}.pagehead>.actions{width:100%}}
@media(max-width:480px){.teacher-assignment-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.teacher-assignment-actions>.button,.teacher-assignment-actions>form.inline{min-width:0}.teacher-assignment-delete{width:100%;margin-left:0}.teacher-assignment-summary{padding:16px 10px}.teacher-assignment-meta>div{gap:10px}.teacher-assignment-meta dt{flex-basis:54px}.teacher-assignment-period{column-gap:6px}.teacher-assignment-options{gap:6px}.form-actions>.button,.form-actions>button{flex:1 1 auto}.control-row>label{width:100%}.control-row input:not([type=checkbox]){max-width:100%}}
@media(prefers-reduced-motion:reduce){button,.button{transition:none}}

.bar{gap:16px;flex-wrap:wrap}.bar nav{flex-wrap:wrap;justify-content:flex-end}

/* Help and settings use the existing site palette and shared control sizes. */
.filters label:has(>input:not([type=checkbox]),>select){display:flex;flex-direction:column;gap:6px;margin:0}
.filters label.compact-check{flex-direction:row}
.field.compact-check{display:block!important}
.compact-check>label{display:flex;align-items:flex-start;gap:8px}
label.compact-check{line-height:1.6;align-items:flex-start}
.compact-check input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px;padding:0;margin:3px 0 0;transform:none}
.field label.compact-check{font-size:14px;margin:0;min-height:44px;align-items:center}
.field label.compact-check>span{min-width:0}
.field>label+input,.field>label+select{min-height:44px}
.storage-search{margin:16px 0;align-items:flex-end}.storage-search .grow{min-width:0;flex:1 1 200px}
.storage-search input,.storage-search button{height:44px}.storage-search label{margin-bottom:6px}
.storage-operation{margin-top:20px;align-items:start}.storage-operation select{min-height:44px}
.storage-operation .field label{line-height:1.5;font-size:14px}
.storage-policy .field>label{font-size:14px;line-height:1.5}
.storage-policy .policy-group{border-top:1px solid #e2e8f0;padding-top:16px}
.storage-policy .policy-group>label.compact-check{min-height:0;align-items:flex-start}
.policy-days{max-width:480px}.policy-group .help{line-height:1.6}
.storage-operation [hidden],[hidden].field{display:none!important}
.action-explanation{line-height:1.65;margin-bottom:8px}.inline-help{margin:12px 0}.inline-help summary{cursor:pointer;font-weight:600;color:#1d5fa7;line-height:1.6}
.inline-help p{font-size:14px;line-height:1.7;color:#4d6075}.inline-help[open]>summary{margin-bottom:10px}
.settings-fold>summary{cursor:pointer;line-height:1.6;font-weight:700;font-size:19px}.settings-fold>summary .help{display:block;margin:3px 0 0 20px;font-weight:400}.settings-fold[open]>summary{margin-bottom:18px}
.retention-option>label.compact-check{min-height:52px;margin-bottom:8px}
.guide-role-tabs{margin:18px 0}.guide-start h2{margin-top:0;font-size:21px}.guide-start .steps{padding-left:24px;line-height:1.8}
.guide-section{padding:0;overflow:hidden;scroll-margin-top:160px}.guide-section>summary{padding:19px 22px;cursor:pointer;line-height:1.6;font-size:17px;font-weight:700;color:#173b67}.guide-section[open]>summary{border-bottom:1px solid #e5ebf2;background:#f8fafc}
.guide-content{padding:4px 22px 18px;line-height:1.8}.guide-content p,.guide-content li{overflow-wrap:anywhere}.guide-content li{margin:8px 0}.guide-content ol,.guide-content ul{padding-left:24px}
.guide-table table{min-width:550px}.guide-table th,.guide-table td{white-space:normal;vertical-align:top;line-height:1.7}.guide-table th:first-child{width:24%}
.guide-content .note{background:none;border:0;padding:0}.guide-content .note h3{font-size:17px}.guide-content .help{line-height:1.7}
.guide-section>summary:focus-visible,.settings-fold>summary:focus-visible,.inline-help>summary:focus-visible{outline:3px solid #91b7df;outline-offset:-3px}
@media(max-width:700px){.storage-operation{grid-template-columns:1fr}.guide-role-tabs>.button{flex:1 1 auto}.guide-section>summary{padding:16px;font-size:16px}.guide-content{padding:2px 16px 16px}.retention-option>label.compact-check{min-height:0}.settings-fold>summary{font-size:18px}}
