.fc-dialog{width:min(1100px,calc(100vw - 28px));max-width:none;max-height:min(90dvh,900px);padding:0;border:2px solid #253d38;border-radius:18px;background:#fff9ed;color:#233732;box-shadow:6px 7px 0 #1c3731;font-family:Paperlogy,'Malgun Gothic',sans-serif}.fc-dialog::backdrop{background:#122c2bb8}.fc-dialog *{box-sizing:border-box}.fc-head,.fc-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:#fff4db;border-bottom:2px solid #28413b}.fc-head small{font-size:12px;color:#36746a;font-weight:700}.fc-head h2{font-size:24px;margin:4px 0}.fc-foot{border-bottom:0;border-top:1px solid #c3c3a9}.fc-button{min-height:44px;border:2px solid #30483e;border-radius:9px;background:#fffaf0;color:#243a30;padding:9px 14px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}.fc-button:focus-visible,.fc-dialog input:focus-visible,.fc-dialog button:focus-visible{outline:3px solid #d66c36;outline-offset:2px}.fc-button:disabled{opacity:.55;cursor:not-allowed}.fc-primary{background:#ffd16c;box-shadow:2px 3px 0 #30483e}.fc-entry,.fc-send-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px}.fc-entry section,.fc-send-grid section{border:1px solid #adc1aa;border-radius:12px;background:#ecf4e8;padding:18px;min-width:0}.fc-entry section:nth-child(2),.fc-send-grid section:nth-child(2){background:#fff0d5;border-color:#dac29a}.fc-entry h3,.fc-send-grid h3{margin:10px 0;font-size:21px}.fc-entry p,.fc-send-grid p{font-size:14px;line-height:1.6}.fc-chip{display:inline-block;padding:4px 8px;border-radius:5px;background:#e87045;color:white;font-size:12px;font-weight:700}.fc-entry form{display:grid;gap:10px}.fc-entry label{display:grid;gap:6px;font-size:13px;font-weight:700}.fc-entry input{min-height:44px;width:100%;border:1.5px solid #9aab9e;border-radius:8px;padding:8px;background:white;font:inherit}.fc-link{border:0;background:none;text-decoration:underline;color:#256c66;cursor:pointer;padding:12px 0;font:inherit}.fc-status{margin:0;padding:10px 18px;background:#e5f2e8;font-size:13px;line-height:1.5}.fc-footnote{font-size:13px;color:#50675a;line-height:1.5}.fc-student{padding:20px}.fc-send-grid{padding:14px 0}.fc-callout{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;border:1px solid #bbccaf;border-radius:10px;background:#edf4e3;padding:14px}.fc-callout p{width:100%;margin:0;font-size:14px}.fc-room-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 16px;background:#e5f1e9}.fc-room-bar span{margin-right:8px;font-size:14px}.fc-board{display:grid;grid-template-columns:220px 1fr;gap:14px;padding:16px;min-height:340px}.fc-list{display:flex;flex-direction:column;gap:7px;max-height:55dvh;overflow:auto}.fc-list button,.fc-room{display:flex;flex-direction:column;gap:4px;min-height:54px;padding:10px;border:1.5px solid #b2c4b3;border-radius:8px;background:#f9fbf4;text-align:left;font:inherit;cursor:pointer}.fc-list button.is-current{border-color:#26766a;background:#d9eee2}.fc-list small,.fc-room span{color:#60796a;font-size:12px}.fc-detail{max-height:55dvh;overflow:auto;padding:0 6px}.fc-detail h3{font-size:19px;margin:0 0 10px}.fc-record{padding:12px;border:1px solid #b5c9ad;border-radius:9px;background:#edf5ea;margin-bottom:10px}.fc-record h4{margin:0 0 8px;font-size:16px}.fc-record h4 small{font-size:11px;font-weight:500}.fc-record p{display:flex;flex-wrap:wrap;gap:4px 8px;margin:7px 0;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.fc-record p>b{min-width:76px}.fc-group{background:#fff1dc;border-color:#d9c8a4}.fc-person{border-top:1px solid #d9c8a4;margin-top:8px;padding-top:8px;font-size:13px}.fc-empty{padding:24px;color:#60796a}.fc-room-list{display:grid;gap:8px;padding:20px}.fc-room{width:100%}@media(max-width:650px){.fc-entry,.fc-send-grid{grid-template-columns:1fr}.fc-board{grid-template-columns:1fr}.fc-list{max-height:150px}.fc-detail{max-height:40dvh}.fc-room-bar{gap:6px}.fc-head h2{font-size:20px}.fc-foot{align-items:flex-start}.fc-foot span{font-size:12px}.fc-dialog{max-height:92dvh}}

/* A readable A4 preview: teacher-selected sources remain verbatim and can flow
   onto additional sheets rather than being clipped or shrunk invisibly. */
.fc-report-layout{display:grid;grid-template-columns:minmax(250px,340px) minmax(0,1fr);gap:16px;padding:16px;align-items:start}
.fc-report-controls,.fc-report-preview{min-width:0}.fc-report-controls{padding:14px;border:1px solid #b6c8b5;border-radius:12px;background:#edf5ea}
.fc-report-controls h3,.fc-preview-top h3{font-size:17px;margin:4px 0 7px}.fc-report-controls p,.fc-preview-top p{font-size:13px;line-height:1.5;margin:5px 0 10px}.fc-report-buttons{display:flex;gap:7px;flex-wrap:wrap}
.fc-report-list{max-height:210px;overflow:auto;margin:10px 0 16px;display:grid;gap:6px}.fc-report-list label{display:flex;align-items:center;gap:9px;min-height:44px;padding:8px;border:1px solid #b9cab9;border-radius:8px;background:#fffefa;cursor:pointer}.fc-report-list input{width:19px;height:19px;flex:none;accent-color:#237566}.fc-report-list span{min-width:0;display:grid;gap:3px;overflow-wrap:anywhere}.fc-report-list small{font-size:12px;color:#536d60}
.fc-report-list .fc-source-text{white-space:pre-wrap;line-height:1.45;color:#243d33}
.fc-reference-cards{margin-top:9px;padding:9px;border-left:3px solid #da9e38;background:#fff4d6;border-radius:4px;font-size:12px}.fc-reference-cards p{display:block;margin:4px 0;white-space:pre-wrap}.fc-reference-cards small{font-size:11px;color:#586b58}
.fc-report-field{display:grid;gap:5px;font-size:13px;font-weight:700;margin:10px 0}.fc-report-field textarea{width:100%;min-height:64px;resize:vertical;border:1.5px solid #a3b9a7;border-radius:8px;background:white;color:#203931;padding:10px;font:400 16px/1.5 Paperlogy,'Malgun Gothic',sans-serif}.fc-report-save{color:#496257}
.fc-preview-top{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}.fc-paper{box-sizing:border-box;min-width:0;padding:22px;border:1.5px solid #b7c5b8;border-radius:6px;background:white;color:#1e322c;font:400 14px/1.5 Paperlogy,'Malgun Gothic',sans-serif;overflow-wrap:anywhere}.fc-paper *{box-sizing:border-box}.fc-paper p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.fc-paper-head{border-bottom:2px solid #246b62;padding-bottom:9px}.fc-paper-head span{font-size:12px;color:#28756a;font-weight:700}.fc-paper-head h3{margin:4px 0;font-size:25px}.fc-paper-head p{font-size:12px;color:#486256}.fc-paper-caution{padding:9px;border-radius:5px;background:#fff2d6;font-size:12px}.fc-paper h4{margin:0 0 4px;font-size:14px}.fc-paper-sources,.fc-paper-summary{margin-top:12px}.fc-paper-entry{padding:9px 0;border-bottom:1px solid #d6e2d7}.fc-paper-entry h4{color:#246b62}.fc-paper-person{padding:4px 0 4px 8px;border-left:2px solid #9bc9b3;margin:5px 0}.fc-paper footer{border-top:1px solid #cddbd0;margin-top:12px;padding-top:8px;font-size:12px;color:#536b5f}
@media(max-width:700px){.fc-report-layout{grid-template-columns:1fr;padding:12px}.fc-report-list{max-height:170px}.fc-report-controls,.fc-report-preview{width:100%}.fc-paper{padding:15px}.fc-paper-head h3{font-size:21px}}
.fc-print{margin:0;background:white;color:#20352f;font-family:Paperlogy,'Malgun Gothic',sans-serif;print-color-adjust:exact;-webkit-print-color-adjust:exact}.fc-print .fc-paper{width:auto;margin:0;padding:0;border:0;border-radius:0;font-size:10.5pt;line-height:1.35}.fc-print .fc-paper h3{font-size:19pt}.fc-print .fc-paper h4{font-size:11pt}.fc-print .fc-paper p{font-size:inherit}.fc-print .fc-paper-entry{break-inside:auto}.fc-print .fc-paper footer{font-size:9pt}
@page{size:A4 portrait;margin:10mm}
