:root{--c-brand:#173b67;--c-primary:#1d5fa7;--c-primary-hover:#174f8d;--c-secondary:#536273;--c-secondary-hover:#435363;--c-danger:#b42318;--c-danger-hover:#912018;--c-danger-text:#a32218;--c-success:#146335;--c-text:#182230;--c-muted:#64748b;--c-line:#dfe5ee;--c-line-strong:#bfc9d7;--c-bg:#f5f7fb;--c-card:#fff;--c-soft:#f4f7fb;--c-note:#f0f6ff;--c-focus:#91b7df;--radius:8px;--radius-card:12px;--radius-pill:999px;--control-h:44px;--control-h-compact:36px;--gap:10px;--fs-control:14px;--fs-help:13px}
*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,"Malgun Gothic",sans-serif;background:var(--c-bg);color:var(--c-text)}header{background:var(--c-brand);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 var(--c-line);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 var(--c-line-strong);border-radius:8px;font:inherit;background:white}input[type=checkbox]:not(.sun-editor *){width:18px;height:18px;transform:none}:where(input:not([type=checkbox],[type=radio],[type=file],[type=hidden],[type=range],[type=color],[type=image],[type=submit],[type=button],[type=reset]):not(.sun-editor *)),:where(select:not(.sun-editor *)){min-height:var(--control-h)}input[type=file]:not(.sun-editor *){min-height:var(--control-h);padding:8px 10px;line-height:1.4}textarea{min-height:130px}button,.button{display:inline-block;background:var(--c-primary);color:white;border:1px solid var(--c-primary);border-radius:8px;padding:10px 15px;text-decoration:none;font-weight:700;cursor:pointer}.secondary{background:var(--c-secondary);border-color:var(--c-secondary)}.ghost{background:white;color:var(--c-primary)}.big{font-size:16px;margin:0}.msg{padding:12px;border-radius:8px;margin:10px 0}.msg.error{background:#ffe7e7}.msg.success{background:#e7f7eb}.msg.info{background:#e8f1ff;color:var(--c-brand);border:1px solid #9cb5ce}.warn{color:#a13b18}.ok{color:#13733a}.req{color:#c22}.help{font-size:13px;color:var(--c-muted)}.pre{white-space:pre-wrap}.actions{display:flex;gap:var(--gap);flex-wrap:wrap;align-items:stretch}.pagehead{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px 18px;margin-top:8px}.pagehead>.actions{flex:0 1 auto;justify-content:flex-end}.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:var(--c-soft);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:var(--c-muted)}.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,.student-target-filters label{display:block;font-weight:700;font-size:13px;margin:0 0 6px}.error-text{color:var(--c-danger);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%}.table-scroll>table{min-width:780px}.table-scroll.tall{max-height:60vh;overflow:auto}td.wrap,th.wrap{white-space:normal;max-width:380px;overflow-wrap:anywhere}.kv-table th{width:7em;white-space:nowrap}.empty-row td{text-align:center;color:var(--c-muted)}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:var(--c-note);border-left:4px solid #4d7fb8;padding:12px;margin:12px 0;border-radius:4px}.steps li{margin:8px 0}.codebox{background:var(--c-text);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:var(--c-primary)}.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 var(--c-line);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:var(--c-soft)}@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 var(--c-line);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:var(--c-soft)}.student-row small{color:#6b7280}
.assignment-guide img{display:block;max-width:100%;height:auto;margin:12px auto;border-radius:8px}.assignment-guide h2{margin-top:1.2em}.assignment-guide h3{margin-top:1em}.assignment-guide blockquote{margin:12px 0;padding:10px 14px;border-left:4px solid #9bb6d4;background:#f7faff}.assignment-guide a{word-break:break-all}.image-caption-hint{font-size:13px;color:#7b8796}.resource-list{border:1px solid var(--c-line);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:var(--c-muted)}.assignment-guide{line-height:1.65}.assignment-materials ul{margin-bottom:0}.assignment-materials li{margin:7px 0}.filemeta{font-size:12px;color:var(--c-muted);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 input,.student-target-filters select{margin-top:5px}
.student-target-filters button{align-self:end}
.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 var(--c-danger);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:var(--c-danger-text);font-weight:650}.errorlist{padding:12px 12px 12px 30px;border-left:4px solid var(--c-danger);border-radius:6px;background:#fff1f0}.msg.error{color:#8f1912;border:1px solid #d47670;font-weight:650}.msg.success{color:var(--c-success);border:1px solid #83bd95}
input[aria-invalid="true"],textarea[aria-invalid="true"],select[aria-invalid="true"]{border:2px solid var(--c-danger);background:#fff8f7}
.question-editor[hidden]{display:none!important}.delete-field .delete-checkbox{display:none}.delete-question{color:var(--c-danger-text);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:15px;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:var(--c-soft);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 var(--c-focus);outline-offset:3px}
button:disabled,.button[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
button:not(:disabled):hover,.button:hover{background:var(--c-primary-hover);border-color:var(--c-primary-hover)}
button.ghost:not(:disabled):hover,.button.ghost:hover{background:#eff5fc;border-color:#5785b7;color:var(--c-primary-hover)}
button.secondary:not(:disabled):hover,.button.secondary:hover{background:var(--c-secondary-hover);border-color:var(--c-secondary-hover)}
button.danger,.button.danger{background:var(--c-danger);border-color:var(--c-danger);color:white}
button.danger:not(:disabled):hover,.button.danger:hover{background:var(--c-danger-hover);border-color:var(--c-danger-hover)}
.button.danger-ghost,button.danger-ghost{background:white;border-color:#ddb4b0;color:var(--c-danger-text)}
.button.danger-ghost:hover,button.danger-ghost:not(:disabled):hover{background:#fff1f0;border-color:var(--c-danger)}

.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:var(--c-danger);color:var(--c-danger-text)}
.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}


.row-between{flex-wrap:wrap}
.row-between>.actions{min-width:0}
button.small,.button.small{min-height:44px;padding:7px 12px;font-size:13px}
button.compact,.button.compact,.qws-nav-tools button,.qws-quick button{min-height:var(--control-h-compact);padding:6px 10px;font-size:13px;line-height:1.4}
.bar nav .nav-logout-btn{min-height:32px}
.pagehead .danger-actions,.list-head .danger-actions{margin-left:0;padding-left:0;border-left:0}.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{flex:1 1 300px;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:var(--c-muted)}
.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:var(--c-soft);border-radius:6px}
.teacher-assignment-hint{margin:8px 0 0;line-height:1.5}
.teacher-assignment-summary{align-self:center;padding:18px 20px;background:var(--c-soft);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:var(--c-muted)}
.teacher-assignment-counts .submitted-count dd{color:var(--c-primary)}
.teacher-assignment-progress-label{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#5d6f85}
.teacher-assignment-progress-label strong{color:var(--c-primary)}
.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%;justify-content:flex-start}.pagehead>.actions>*,.list-head>.actions>*{flex:1 1 auto}.danger-actions{margin-left:0;padding-left:0;border-left:0}.danger-actions>*{flex:1 1 auto}.list-head>.actions{width:100%}.list-head>.actions>input[type=search]{flex-basis: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-actions>:last-child:nth-child(odd){grid-column:1/-1}.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}

.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 .field label{line-height:1.5}
.storage-policy .field>label{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:var(--c-primary);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:var(--c-brand)}.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 var(--c-focus);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}}
/* 표 머리글 정렬(table-sort.js) */
.th-sort{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;cursor:pointer;font:inherit;font-weight:700;color:inherit;border-radius:4px;padding:1px 2px;margin:-1px -2px}.th-sort:hover{color:var(--c-primary)}.th-sort:focus-visible{outline:2px solid var(--c-primary);outline-offset:2px}.th-sort::after{content:"↕";font-size:11px;color:#9aa6b6}th[aria-sort=ascending] .th-sort::after{content:"▲";color:var(--c-primary)}th[aria-sort=descending] .th-sort::after{content:"▼";color:var(--c-primary)}th[aria-sort=ascending],th[aria-sort=descending]{background:#eaf2fb}
.sort-link{color:inherit;text-decoration:none;font-weight:700;display:inline-flex;gap:4px;align-items:center}.sort-link:hover{color:var(--c-primary);text-decoration:underline}.sort-link .sort-arrow{font-size:11px;color:#9aa6b6}.sort-link.is-sorted .sort-arrow{color:var(--c-primary)}
/* 페이지 이동(모든 목록 공통): « ‹ 1 … 10 › » */
.pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;margin:14px 0 4px}.pagination a,.pagination button,.pagination span.pg-num,.pagination span.pg-arrow{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 8px;border:1px solid #d5deea;border-radius:8px;background:#fff;color:var(--c-primary);text-decoration:none;font-weight:700;font-size:14px}.pagination a:hover,.pagination button:hover{background:#eaf2fb;border-color:#9fc1e8}.pagination a:focus-visible{outline:2px solid var(--c-primary);outline-offset:2px}.pagination .pg-num.is-current{background:var(--c-primary);border-color:var(--c-primary);color:#fff}.pagination .pg-arrow{font-size:17px}.pagination span[aria-disabled=true]{color:#b6c0cd;background:#f6f8fb;cursor:default}.pagination .pg-total{margin-left:8px;color:var(--c-muted);font-size:13px;font-weight:600}
/* 본문 폭: 창이 넓으면 함께 넓어지되(창 폭의 92%) 최대 1680px. 1180px보다 좁은 창에서는 지금처럼 창에 맞춥니다. */
.wrap{max-width:min(1680px,max(1180px,92vw))}
.pagination button{cursor:pointer;font-family:inherit;line-height:1;margin:0}.list-pager-tools{margin:8px 0 4px;text-align:center}.list-pager-tools .list-pager-all{margin:4px auto}
.more-row{display:flex;justify-content:center;margin:14px 0 0}.more-row button{min-width:240px}
.pagination[hidden],.list-pager-tools [hidden]{display:none}
/* 개인 저장소(내 저장소)와 과제 화면의 ‘내 저장소에서 가져오기’ */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ps-usage h2{margin:2px 0 0}.ps-usage .ps-free{text-align:right}.ps-usage-num .help{font-size:15px;font-weight:600}
.ps-meter{height:12px}.ps-meter.is-high>span{background:#c77a12}.ps-meter.is-full>span{background:var(--c-danger)}
.ps-drop input[type=file]{background:white}
.ps-table td.ps-name{white-space:normal;word-break:break-all;min-width:240px}.ps-table tr.ps-expiring{background:#fff8f0}
.ps-rename>summary{list-style:none}.ps-rename>summary::-webkit-details-marker{display:none}.ps-rename-box{display:flex;gap:6px;margin-top:6px;min-width:260px}.ps-rename-box input{min-width:0}
.ps-cell-meter{min-width:140px}.ps-cell-meter .progress{height:6px;margin:4px 0 0}
.ps-quota{display:flex;gap:6px;align-items:center;min-width:200px}.ps-quota input{width:110px}
.sp-open{margin-top:8px}
.sp-modal .qws-modal-content{max-width:760px}.sp-toolbar{display:flex;gap:8px;margin:6px 0 10px}.sp-toolbar input{flex:1}
.sp-list{max-height:min(52vh,460px);overflow:auto;border:1px solid var(--c-line);border-radius:8px}
.sp-row{display:flex;gap:10px;align-items:center;padding:9px 12px;border-bottom:1px solid #eef1f5;cursor:pointer}.sp-row:last-child{border-bottom:0}.sp-row:hover{background:var(--c-soft)}
.sp-row input{width:18px;height:18px;flex:0 0 18px;margin:0}.sp-row .sp-name{flex:1;min-width:0;word-break:break-all;font-weight:600}.sp-row .sp-where{display:block;margin-top:2px;font-size:12px;font-weight:400;color:var(--c-muted)}.sp-row .sp-meta{font-size:12px;color:var(--c-muted);white-space:nowrap}
.sp-row.is-off{opacity:.55;cursor:not-allowed}.sp-row.is-off .sp-why{font-size:12px;color:#a13b18}
.sp-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}.sp-status{font-size:13px;color:#536780}
@media(max-width:700px){.ps-usage .row-between{display:block}.ps-usage .ps-free{text-align:left;margin-top:8px}.sp-row .sp-meta{display:none}}
/* 버튼·입력 칸 높이 통일(44px) */
.ps-quota input{padding:9px 10px}.sp-toolbar{align-items:center}
/* 같은 줄의 글자·체크칸·버튼은 세로 가운데 정렬 */
.filters>label.compact-check{min-height:44px;align-items:center;margin:0}.filters>label.compact-check input[type=checkbox]{margin:0}
.ps-head{align-items:center}.ps-head h2{margin:0}.ps-search{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ps-search input{width:260px;max-width:100%}
.ps-table td,.ps-table th,#psUsers td,#psUsers th{vertical-align:middle}.ps-rename-box{align-items:center}.ps-table td input[type=checkbox],.ps-table th input[type=checkbox]{display:block;margin:0}
.actions>.help{margin:0}

/* 개인 저장소: 용량·자동 삭제 규칙 입력(기본 규칙·계정별 개별 설정 공통) */
.ps-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ps-rule{border:1px solid var(--c-line);border-radius:10px;padding:12px 16px;margin:0 0 6px;background:#fafcff}
.ps-rule legend{font-weight:800;padding:0 6px;color:var(--c-brand)}
.ps-rule-row{display:flex;gap:12px;align-items:flex-start;padding:6px 0}
.ps-rule-row+.ps-rule-row{border-top:1px dashed #e3e8ef}
.ps-rule-title{flex:0 0 72px;font-weight:700;font-size:14px;min-height:44px;display:flex;align-items:center}
.ps-choices{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center}
.ps-choices label.compact-check{min-height:44px;align-items:center;margin:0}
.ps-choices label.compact-check input[type=radio]{width:18px;height:18px;flex:0 0 18px;margin:0}
.ps-inline input[type=number]{width:96px;padding:8px 10px}.ps-inline input.ps-dates{width:180px;padding:8px 10px}
.ps-rule-now{margin:4px 2px 0}.ps-auth{margin-top:12px}
.ps-accounts{margin-top:14px}.ps-accounts>summary{list-style:none;cursor:pointer}.ps-accounts>summary::-webkit-details-marker{display:none}.ps-accounts[open]>summary{margin-bottom:12px}
@media(max-width:800px){.ps-role-grid{grid-template-columns:1fr}.ps-rule-row{flex-direction:column;gap:0}.ps-rule-title{min-height:0;padding-top:4px}}
/* 한글이 다음 줄로 넘어갈 때 낱말 중간이 아니라 띄어쓰기에서 나뉘게(예: ‘적용할 / 계정’). 아주 긴 주소 등은 그래도 칸 안에서 나뉨 */
body{word-break:keep-all;overflow-wrap:anywhere}
td,th,pre,code,.codebox{word-break:normal}
.reauth-box{margin-top:18px;padding-top:14px;border-top:1px solid #e3e8ef}.reauth-box .reauth-note{margin:0}
.badge.former{background:#fff1d6;color:#8a5300;font-weight:700}
/* 서식 있는 글 편집기(학생 글 문항)와 교사 화면의 답안 표시 */
/* 학생 글 문항 편집기(SunEditor): 창 높이에 맞춰 편집 칸이 커지고 작아집니다 */
.answer-editor .sun-editor{border-radius:10px;overflow:hidden;font-family:inherit}
.answer-editor .sun-editor .se-wrapper-inner{height:calc(100vh - 380px)!important;height:calc(100dvh - 380px)!important;min-height:300px!important;max-height:none!important}
.answer-editor .sun-editor .sun-editor-editable{font-family:'Malgun Gothic','Apple SD Gothic Neo','Noto Sans KR',sans-serif;font-size:11pt;line-height:1.6}
.answer-editor .sun-editor .se-toolbar button.se-btn{min-height:36px}
.answer-editor.is-readonly .se-toolbar{display:none!important}.answer-editor.is-readonly .se-wrapper-inner{height:auto!important;min-height:120px!important;background:#f8fafc}
.re-note{margin:6px 0 0;padding:6px 12px;background:#fff8e1;border-radius:8px}
button.danger-ghost.armed{background:#9b2424;color:#fff;border-color:#9b2424}
.re-area p,.rich-answer p,.rich-content p{margin:0 0 .4em}.re-area h2,.rich-answer h2,.rich-content h2{font-size:16pt;margin:.6em 0 .3em}.re-area h3,.rich-answer h3,.rich-content h3{font-size:13pt;margin:.5em 0 .25em}
.re-area table,.rich-answer table,.rich-content table{border-collapse:collapse;width:100%;margin:.5em 0}
.re-area td,.re-area th,.rich-answer td,.rich-answer th,.rich-content td,.rich-content th{border:1px solid #8a9bb0;padding:6px 8px;min-width:40px;vertical-align:top;word-break:normal;overflow-wrap:anywhere}
.re-area th,.rich-answer th,.rich-content th{background:#eef3f9;font-weight:700}
.re-area img,.rich-answer img,.rich-content img{max-width:100%;height:auto;vertical-align:bottom}.re-area hr,.rich-answer hr,.rich-content hr{border:0;border-top:1px solid #8a9bb0;margin:.6em 0}
.rich-answer{border:1px solid #e3e8ef;border-radius:10px;padding:14px 16px;background:#fff;line-height:1.7;font-size:11pt;overflow-x:auto}
.rich-images{margin-top:10px;padding:10px 12px;border:1px dashed #cdd9e6;border-radius:10px;background:#f8fafc}
.rich-images-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.rich-upload{position:relative;margin-left:auto;cursor:pointer}
.rich-image-list{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.rich-image-list:empty{display:none}.rich-image-list li{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #e3e8ef;border-radius:8px;padding:8px}
.rich-image-list img{width:100%;height:110px;object-fit:contain;background:#f1f4f8;border-radius:6px}.rich-image-name{font-size:13px;overflow-wrap:anywhere}
.rich-image-status:empty{display:none}
/* 교사 화면 편집기(과제 설명·피드백·처리방침): 내용 길이에 맞춰 자랍니다(최소 높이는 data-min-height) */
.rich-editor-box{min-width:0;max-width:100%}.field:has(>.rich-editor-box),.field:has(>.rich-images){min-width:0}
.rich-editor-box .sun-editor{border-radius:10px;overflow:hidden;font-family:inherit}
.rich-editor-box .sun-editor .se-wrapper-inner{min-height:var(--rich-min-h,220px)!important;height:auto!important;max-height:none!important}
.rich-editor-box .sun-editor .sun-editor-editable{font-family:'Malgun Gothic','Apple SD Gothic Neo','Noto Sans KR',sans-serif;font-size:11pt;line-height:1.6}
.rich-editor-box .sun-editor .se-toolbar button.se-btn{min-height:36px}
.rich-content{line-height:1.7;overflow-wrap:anywhere;overflow-x:auto}.rich-content a{word-break:break-all}
.feedback-card .rich-content{border:0;padding:0}
.privacy-section-row .rich-editor-box{margin-top:6px}.privacy-summary>b{display:block;margin-top:6px}.privacy-summary .rich-content p{margin:0 0 .2em}
/* 문항 이미지(학생 화면·교사 상세·미리보기, 과제 설정의 이미지 목록) */
.question-images{display:flex;flex-wrap:wrap;gap:var(--gap);margin:4px 0 12px}
.question-images figure{margin:0;max-width:min(320px,100%)}
.question-images a{display:block}
.question-images img{display:block;max-width:100%;height:auto;max-height:320px;border:1px solid var(--c-line);border-radius:var(--radius);background:#fff}
.field-label{display:block;font-weight:700;font-size:13px;margin:0 0 6px}
.field .rich-images label.rich-upload{display:inline-flex;margin:0 0 0 auto;font-size:var(--fs-control)}
.rich-upload.is-full{opacity:.5;pointer-events:none}
.qimg-tools{display:flex;flex-wrap:wrap;gap:6px}.qimg-tools button{min-height:var(--control-h);padding:6px 12px}.qimg-tools .qimg-up,.qimg-tools .qimg-down{min-width:var(--control-h)}

.rich-answer .se-component,.rich-content .se-component{margin:.5em 0}.rich-answer .se-image-container figure,.rich-content .se-image-container figure{margin:0;max-width:100%}.rich-answer figure,.rich-content figure{margin:.5em 0;max-width:100%}
.rich-answer .__se__float-center figure,.rich-content .__se__float-center figure{margin-left:auto;margin-right:auto}.rich-answer .__se__float-right figure,.rich-content .__se__float-right figure{margin-left:auto}
.rich-answer figure img,.rich-content figure img{width:100%;height:auto;margin:0}.rich-answer figcaption,.rich-content figcaption{font-size:10pt;color:#526177;text-align:center;padding:4px 0}

/* UX 공용 틀(R27): 목록 머리·탭·확인 페이지·폼 하단·선택 카드·대화상자 */
.list-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;margin:0 0 12px}.list-head>h2{margin:0;flex:1 1 220px}.list-head>.actions{flex:0 1 auto;justify-content:flex-end}.list-head input[type=search]{flex:1 1 200px;width:auto;min-width:0}
.tab-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.actions.stack{flex-direction:column;align-items:flex-start}
.formgrid>.actions{grid-column:1/-1}.formgrid>.form-actions{margin-top:6px}
.check-stack{display:grid;gap:8px;margin-top:14px}
.inline-field{display:inline-flex;align-items:center;gap:8px;margin:0;font-weight:700;font-size:13px;white-space:nowrap}.inline-field>input:not(.input-xs){width:auto}
/* 라벨 안에 든 입력칸은 라벨의 굵은 13px 글꼴을 물려받지 않음(다른 입력칸과 같은 글꼴) */
label:not(.sun-editor *)>:is(input:not([type=checkbox],[type=radio]),select,textarea){font-weight:400;font-size:1rem;line-height:normal}
.qr-box{text-align:center}.qr-box img{max-width:280px;width:100%}
.input-xs{width:6em}.draft-discard{margin:0 0 16px}
.export-toolbar>.help{margin:0}.status-tools .actions input[type=datetime-local]{width:auto}
.empty-state{padding:32px;text-align:center}
.modal-actions{justify-content:flex-end}
.actions>.question-kind-summary{align-self:center}
.actions>input[type=file]{width:auto;flex:1 1 260px;min-width:0}
label.replace-field{display:block;margin:10px 0;font-weight:700;font-size:13px}label.replace-field>input{margin-top:6px;font-weight:400}
.button[aria-disabled="true"]{pointer-events:none}
/* Django form.as_p 출력도 .field와 같은 라벨·도움말 모양 */
form>p>label[for]:not(.compact-check){display:block;font-weight:700;font-size:13px;margin:0 0 6px}form>p:has(>input[type=checkbox])>label[for]{display:inline;margin:0 6px 0 0}.helptext{display:block;font-size:13px;color:var(--c-muted);margin-top:4px}
/* 라디오·체크 선택 카드(보안·백업의 수동 백업 저장 방식 등) */
.choice-list{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;margin:14px 0}.choice-card{display:flex;align-items:center;gap:10px;width:100%;margin:0;padding:13px 15px;border:1px solid #d8e2ef;border-radius:10px;background:#f8fafd;font-size:14px;line-height:1.45;cursor:pointer;font-weight:600}.choice-card:hover{background:var(--c-note);border-color:#a8c6e6}.choice-card:has(input:checked){background:#eaf3ff;border-color:#3979bc;box-shadow:inset 0 0 0 1px #3979bc}.choice-card input[type=radio],.choice-card input[type=checkbox]{width:18px;height:18px;min-width:18px;margin:0;padding:0;flex:0 0 18px;accent-color:var(--c-primary)}.choice-card>span{flex:1;min-width:0}
/* 서버 폴더 선택 대화상자(보안·백업) */
.backup-folder-dialog{border:1px solid #ccd7e7;border-radius:14px;padding:0;width:min(680px,calc(100vw - 24px));max-height:min(82vh,780px);box-shadow:0 14px 45px #0005;color:var(--c-text)}.backup-folder-dialog::backdrop{background:rgba(14,25,44,.6)}.backup-folder-dialog .dialog-inner{padding:20px;max-height:80vh;overflow:auto}.backup-folder-dialog h3{margin:0 0 7px}.backup-folder-dialog .chosen-folder{background:#f1f5f9;border-radius:8px;padding:10px;overflow-wrap:anywhere;font-size:14px;margin:10px 0}.backup-folder-dialog .folder-list{min-height:70px;max-height:40vh;overflow-y:auto;border:1px solid #dce4ef;border-radius:9px;padding:7px;display:grid;align-content:start;gap:3px;margin:9px 0}.backup-folder-dialog .folder-list button{width:100%;background:#fff;color:#193a61;justify-content:flex-start;text-align:left;border:0;padding:10px;border-radius:7px;white-space:normal;overflow-wrap:anywhere}.backup-folder-dialog .folder-list button:hover,.backup-folder-dialog .folder-list button:focus-visible{background:#eaf3ff}.backup-folder-dialog .drive-list{display:flex;gap:7px;flex-wrap:wrap;margin:9px 0}.backup-folder-dialog .drive-list button{background:var(--c-note);color:var(--c-brand);border-color:#c7d8eb}.backup-folder-dialog .dialog-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:16px}@media(max-width:600px){.backup-folder-dialog .dialog-inner{padding:13px}}
/* 과제 설정: Word 양식 도움말, 저장 전 모둠 편성 창(.qws-modal 틀 사용) */
#wordTemplateHelp[hidden]{display:none!important}#wordTemplateHelp{margin-top:16px}#wordTemplateHelp code{overflow-wrap:anywhere}#wordTemplateHelp th,#wordTemplateHelp td{text-align:left}#wordTemplateHelp summary{cursor:pointer;font-weight:600}#groupEditorWrap[hidden],#groupPolicyWrap[hidden]{display:none!important}#groupEditorModal .qws-modal-content{max-width:1050px}#groupEditorModal .table-scroll{max-height:46vh;overflow:auto}.group-modal-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:10px 0}.group-modal-toolbar input[type=file]{width:auto;max-width:100%;flex:1 1 220px}
/* 개인정보 처리방침 편집 항목 */
.privacy-sections{display:grid;gap:12px;margin:16px 0}.privacy-section-row{border:1px solid var(--c-line);padding:14px;border-radius:10px;background:#fff}.privacy-section-top{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.privacy-section-top input{flex:1 1 230px;width:auto;min-width:0}.privacy-section-actions{display:flex;gap:6px;flex-wrap:wrap}.privacy-section-actions .section-remove{font-weight:700}.privacy-section-row textarea{min-height:105px;margin-top:8px}
/* 내 저장소 폴더·공유(교사), 공유 자료(학생) */
.ps-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:44px;margin:12px 0 0;font-size:15px}.ps-crumbs a{display:inline-flex;align-items:center;min-height:44px;overflow-wrap:anywhere}.ps-crumbs strong{overflow-wrap:anywhere}.ps-sep{color:var(--c-muted)}.ps-crumbs .ps-share-badge{min-height:44px;padding:0 14px;margin-left:6px;background:var(--c-note);color:var(--c-brand);border:1px solid #c7d8eb;text-decoration:none;font-weight:700}
.badge.ps-type{background:#fff4dc;color:#7a4d00;font-weight:700}.badge.ps-inherit{background:white;border:1px solid var(--c-line-strong);color:var(--c-muted)}.ps-share a.badge{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;text-decoration:none;font-weight:700}
.ps-where{display:block;margin-top:2px;font-size:var(--fs-help);color:var(--c-muted);word-break:break-all}
.ps-table th.ps-share,.ps-table td.ps-share{min-width:120px}.ps-row-tools{display:flex;flex-wrap:nowrap;gap:6px;align-items:flex-start}.ps-row-tools>.ps-rename>summary{white-space:nowrap}.ps-row-tools>.button{flex:0 0 auto}
.ps-tools{display:flex;flex-wrap:wrap;gap:var(--gap);align-items:center;margin:12px 0 4px}.ps-mkdir .ps-rename-box{max-width:420px}.ps-rename-box>button{flex:0 0 auto;white-space:nowrap}.ps-mkdir-form{margin-top:6px;max-width:640px}.ps-mkdir-form .ps-shared-note{margin:0 0 6px}.ps-viewers>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-weight:700;color:var(--c-primary)}.ps-viewers .ps-recipient-group h3{margin-top:4px}
.ps-folder-row .ps-name a{font-weight:700}.ps-bulk{margin-top:12px}label.ps-ack{margin:8px 0 0;min-height:44px;align-items:center}label.ps-ack input[type=checkbox]{margin:0}
.ps-share-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:0 16px;align-items:start}.ps-share-grid .student-row[hidden]{display:none}
.table-scroll>table.ps-compact{min-width:520px}.ps-share-grid .table-scroll>table.ps-compact{min-width:0}.ps-share-grid .ps-compact td.ps-name{min-width:120px}.ps-compact td,.ps-compact th{white-space:nowrap}.ps-compact td.ps-name{white-space:normal}.table-scroll>table.ps-shared{min-width:560px}.ps-head+.table-scroll{margin-top:10px}
.ps-recipient-group h3{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:15px;margin:14px 0 4px}.ps-recipient-group p{margin:0 0 6px;line-height:1.7;overflow-wrap:anywhere}
.ps-pick-head{flex-wrap:wrap}.ps-pick-sub{font-size:15px;margin:16px 0 6px}.ps-teacher-pick{margin-top:16px;border-top:1px solid var(--c-line)}.ps-teacher-pick>summary{cursor:pointer;min-height:44px;padding:10px 0}.ps-teacher-pick>summary .ps-pick-sub{display:inline;margin:0}
.ps-teacher-tools{display:flex;flex-wrap:wrap;gap:var(--gap);margin:4px 0 12px}.ps-teacher-tools input{flex:1 1 220px;width:auto;min-width:0}.ps-teacher-pick .student-row[hidden]{display:none}.ps-teacher-list{border:1px solid var(--c-line);border-radius:10px;overflow:hidden}
.table-scroll>table.ps-recipients-table{min-width:560px}
@media(max-width:900px){.ps-share-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.table-scroll>table.ps-compact,.table-scroll>table.ps-shared,.table-scroll>table.ps-recipients-table{min-width:0}.ps-teacher-tools button{flex:1 1 auto}.ps-compact td.ps-name,.ps-shared td.ps-name{min-width:120px}.ps-shared td{white-space:nowrap}.ps-shared td.ps-name{white-space:normal;min-width:96px}.ps-crumbs{font-size:14px}.ps-mkdir .ps-rename-box{min-width:0;max-width:100%}.ps-row-tools .ps-rename-box{min-width:220px}}
