:root{--font-en:Century, "Century Schoolbook", "Times New Roman", serif;--font-ja:"Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", "MS PMincho", serif;--ink:#1c2a38;--ink-soft:#3d4f5f;--paper:#f3f0e8;--paper-deep:#e7e1d4;--line:#c9c0b0;--accent:#1f6b5c;--accent-hover:#185648;--danger:#8b3a3a;--warn:#7a5b1e;--fs-xs:.8125rem;--fs-sm:.9375rem;--fs-md:1.0625rem;--fs-lg:1.375rem;--fs-xl:1.875rem}*{box-sizing:border-box}html,body{min-height:100%;color:var(--ink);background:radial-gradient(1200px 500px at 10% -10%, #fff9ef 0%, transparent 55%), linear-gradient(180deg, #f7f4ed 0%, var(--paper) 40%, #ebe6db 100%);font-family:var(--font-ja);font-size:var(--fs-md);margin:0;padding:0;line-height:1.7}a{color:var(--accent);text-underline-offset:3px;text-decoration-thickness:1px}a:hover{color:var(--accent-hover)}.en{font-family:var(--font-en)}.shell{width:min(960px,100% - 2rem);margin:0 auto;padding:2.5rem 0 4rem}.brand{font-family:var(--font-ja);font-size:var(--fs-xl);letter-spacing:.04em;margin:0;font-weight:600}.brand .en{font-size:var(--fs-sm);color:var(--ink-soft);letter-spacing:.02em;margin-top:.35rem;font-weight:400;display:block}.lede{color:var(--ink-soft);max-width:36rem;margin:1rem 0 0}.panel{border:1px solid var(--line);background:#fffcf6e0;border-radius:4px;margin-top:2rem;padding:1.5rem 1.75rem}.panel h2{font-size:var(--fs-lg);margin:0 0 .75rem;font-weight:600}.btn{min-width:44px;min-height:44px;font-family:var(--font-ja);font-size:var(--fs-sm);cursor:pointer;border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;padding:.65rem 1.25rem;transition:background .15s,border-color .15s,opacity .15s;display:inline-flex}.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.btn:disabled{opacity:.5;pointer-events:none}.btn-primary{background:var(--accent);color:#f7faf8}.btn-primary:hover{background:var(--accent-hover)}.btn-primary:active{transform:translateY(1px)}.btn-secondary{background:var(--paper-deep);border:1px solid var(--line);color:var(--ink)}.btn-secondary:hover:not(:disabled){border-color:var(--ink-soft);background:#e8ece9}.btn-secondary:active:not(:disabled){transform:translateY(1px)}.btn-ghost{border-color:var(--line);color:var(--ink);background:0 0}.btn-ghost:hover{background:var(--paper-deep)}.btn-danger{background:var(--danger);color:#fff}.btn-flow-green{background:var(--accent);color:#f7faf8}.btn-flow-green:hover:not(:disabled){background:var(--accent-hover)}.btn-flow-orange{color:#fff;background:#d97706}.btn-flow-orange:hover:not(:disabled){background:#b45309}.btn-flow-black{background:var(--ink);color:#f7faf8}.btn-flow-black:hover:not(:disabled){background:#0f1820}.btn-flow-preview{color:var(--accent);background:#e6f0ed;border-color:#9fc4b8}.btn-flow-preview:hover:not(:disabled){border-color:var(--accent);background:#d4e8e1}.btn-flow-preview-active{background:var(--accent);border-color:var(--accent);color:#fff}.btn-flow-preview-active:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover);color:#fff}.student-photo-actions{grid-template-columns:1fr 1fr;gap:.75rem;display:grid}@media (max-width:520px){.student-photo-actions{grid-template-columns:1fr}}.student-photo-btn{width:100%;min-height:52px;font-size:var(--fs-md);border-style:solid;border-width:2px;padding:.85rem 1rem;font-weight:600}.student-photo-btn-camera{border-color:#92400e;box-shadow:0 2px #92400e}.student-photo-btn-camera:hover:not(:disabled){box-shadow:0 1px #92400e}.student-photo-btn-gallery{border-color:var(--ink);box-shadow:0 2px 0 var(--ink)}.student-photo-btn-gallery:hover:not(:disabled){box-shadow:0 1px 0 var(--ink)}.student-submit-btn{width:100%;min-height:52px;font-size:var(--fs-md);padding:.9rem 1.25rem;font-weight:600}.student-submit-row{flex-direction:column;gap:.75rem;width:100%;display:flex}.student-submit-flow-guide{background:var(--paper-deep);border:1px solid var(--line);font-size:var(--fs-sm);border-radius:6px;flex-wrap:wrap;justify-content:center;align-items:center;gap:.35rem .5rem;padding:.75rem 1rem;line-height:1.4;display:flex}.student-submit-flow-step{color:var(--ink-soft);font-weight:500}.student-submit-flow-step-active{color:var(--accent);font-weight:700}.student-submit-flow-step-done{color:var(--ink);font-weight:600}.student-flow-arrow{color:var(--ink-soft);font-size:var(--fs-md);-webkit-user-select:none;user-select:none;font-weight:700;line-height:1}.student-flow-section{flex-direction:column;gap:.65rem;display:flex}.student-flow-section-title{font-size:var(--fs-md);color:var(--ink);margin:0;font-weight:600}.student-flow-section-title span{color:var(--accent);margin-right:.35rem}.student-flow-connector{color:var(--ink-soft);font-size:var(--fs-lg);justify-content:center;align-items:center;padding:.15rem 0;font-weight:700;line-height:1;display:flex}.review-flow-actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.review-flow-arrow{color:var(--ink-soft);font-size:var(--fs-md);-webkit-user-select:none;user-select:none;font-weight:600;line-height:1}.stack{flex-direction:column;gap:.75rem;display:flex}.row{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.list{margin:0;padding:0;list-style:none}.list li{border-top:1px solid var(--line)}.list li:first-child{border-top:none}.list a.item,.list .item{color:inherit;padding:1rem .25rem;text-decoration:none;display:block}.list a.item:hover{background:#1f6b5c0f}.item-title{font-weight:600}.item-meta{font-size:var(--fs-xs);color:var(--ink-soft);margin-top:.25rem}.badge{border:1px solid var(--line);font-size:var(--fs-xs);color:var(--ink-soft);border-radius:999px;padding:.15rem .5rem;display:inline-block}.badge-ok{color:var(--accent);background:#1f6b5c14;border-color:#9fc7bd}.badge-warn{color:var(--warn);background:#7a5b1e14;border-color:#d6c28a}.muted{color:var(--ink-soft);font-size:var(--fs-sm)}.pre{white-space:pre-wrap;word-break:break-word;font-family:var(--font-en);font-size:var(--fs-sm);border:1px solid var(--line);background:#faf7f0;border-radius:4px;margin:0;padding:1rem;line-height:1.65}.essay-input{box-sizing:border-box;border:1px solid var(--line);width:100%;min-height:12rem;color:var(--ink);font-family:var(--font-en);font-size:var(--fs-sm);resize:vertical;background:#fff;border-radius:4px;margin:0;padding:1rem;line-height:1.65;display:block}.essay-input:focus{outline-offset:1px;outline:2px solid #1f6b5c59}.essay-input:disabled{opacity:.7;background:#faf7f0}.pre-ja{font-family:var(--font-ja)}.status{background:#1f6b5c14;border:1px solid #9fc7bd;border-radius:4px;margin-top:1rem;padding:.85rem 1rem}.status-error{color:var(--danger);background:#8b3a3a14;border-color:#d4a0a0}.topbar{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.5rem;display:flex}.section{margin-top:1.75rem}.section h3{font-size:var(--fs-md);margin:0 0 .75rem;font-weight:600}@media (max-width:640px){.shell{width:min(100% - 1.25rem,960px);padding-top:1.5rem}.panel{padding:1.15rem 1.1rem}}.student-result-score-main{font-family:var(--font-ja);font-size:var(--fs-lg);font-weight:700}.student-result-score-sub{font-family:var(--font-ja);font-size:var(--fs-sm)}.student-result-score-line{font-family:var(--font-ja);font-size:var(--fs-md);font-weight:600}.student-explanation-html-wrap{background:var(--bg-panel,#fff)}.student-explanation-html{font-family:var(--font-ja);font-size:var(--fs-md);line-height:1.7}.explanation-section-head{margin:.85rem 0 .35rem}.explanation-section-head:first-child{margin-top:0}.explanation-line{white-space:pre-wrap;word-break:break-word;margin:.2rem 0}.explanation-blank-line{height:.65rem}.grammar-correct-en{font-family:var(--font-en);color:#b42318;font-weight:600}.polish-improved-en{font-family:var(--font-en);color:#1d4ed8;font-weight:600}.final-essay-en{white-space:pre-wrap;font-family:var(--font-en);font-size:var(--fs-md);margin:0;line-height:1.65}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}body.report-resizing{cursor:col-resize;-webkit-user-select:none;user-select:none}.report-compare-dialog{background:var(--paper);border:none;border-radius:12px;width:96vw;max-width:min(96vw,1200px);max-height:92vh;padding:0;box-shadow:0 16px 48px #0000002e}.report-compare-dialog::backdrop{background:#00000073}.report-compare-inner{flex-direction:column;max-height:92vh;padding:1rem 1.1rem 1.1rem;display:flex}.report-compare-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:.75rem;display:flex}.report-resize-split{border:1px solid var(--border);background:var(--paper-deep);border-radius:8px;align-items:stretch;gap:0;min-height:min(62vh,560px);display:flex;overflow:hidden}.report-resize-pane{flex-direction:column;min-width:0;display:flex;overflow:auto}.report-resize-handle{cursor:col-resize;background:var(--border);flex:0 0 10px;justify-content:center;align-items:center;display:flex}.report-resize-handle:hover,.report-resize-handle:focus-visible{background:#c4b5a0}.report-resize-handle-grip{background:#00000026;border-radius:2px;width:4px;height:2.5rem}.report-compare-pane{box-sizing:border-box;height:100%;padding:.75rem .85rem}.report-compare-pane-title{font-size:var(--fs-sm);font-family:var(--font-ja);margin:0 0 .5rem}.report-compare-docs-frame{border:1px solid var(--border);background:#fff;border-radius:6px;flex:1;width:100%;min-height:420px}.report-compare-essay{max-height:none;font-size:var(--fs-sm);white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;margin:0}@media (max-width:768px){.report-resize-split{flex-direction:column;min-height:auto}.report-resize-handle{cursor:row-resize;flex:0 0 8px;width:100%}.report-compare-docs-frame{min-height:280px}}.review-edit-split-wrap{margin-top:.25rem}.review-edit-split-wrap .report-resize-split{min-height:min(68vh,640px)}.review-edit-dialog{background:var(--paper);border:none;border-radius:0;width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;padding:0}.review-edit-dialog::backdrop{background:#0000008c}.review-edit-inner{box-sizing:border-box;flex-direction:column;height:100vh;max-height:100vh;padding:.85rem 1rem 1rem;display:flex}.review-edit-head{flex-wrap:wrap;flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:.65rem;display:flex}.review-edit-inner .report-resize-split{flex:1;height:auto;min-height:0}.review-edit-pane{flex-direction:column;height:100%;min-height:0;display:flex}.review-edit-essay{flex:1;min-height:0;overflow:auto}.review-edit-docs-frame{flex:1;min-height:0}.addon-shell{padding-bottom:2.5rem}.addon-hero{padding:.85rem 0 .25rem}.addon-hero-brand{align-items:center;gap:.85rem;display:flex}.addon-hero-logo{object-fit:cover;border-radius:10px;flex-shrink:0;width:48px;height:48px;box-shadow:0 2px 8px #1c2a381f}.addon-shell .panel{background:linear-gradient(165deg,#fffdf8f5 0%,#f7f2e8eb 100%);border-radius:12px;box-shadow:inset 0 1px #ffffffb3}.processing-banner{background:#1f6b5c14;border:1px solid #9fc7bd;border-radius:12px;align-items:center;gap:.85rem;margin:0;padding:.9rem 1.1rem;display:flex}.processing-banner-icon{color:var(--accent);flex-shrink:0}.processing-banner-text{font-family:var(--font-ja);font-size:var(--fs-sm);color:var(--ink);margin:0}.processing-eyes-icon{vertical-align:middle;flex-shrink:0;align-items:center;gap:5px;display:inline-flex}.processing-eyes-eye{background:#fff;border:1.5px solid #3d4f5f;border-radius:50%;flex-shrink:0;width:14px;height:11px;position:relative;overflow:hidden}.processing-eyes-pupil{background:#1c2a38;border-radius:50%;width:5px;height:5px;margin-top:-2.5px;margin-left:-2.5px;animation:.88s linear infinite processing-eyes-orbit;position:absolute;top:50%;left:50%}.processing-eyes-pupil--lag{animation-delay:-.22s}@keyframes processing-eyes-orbit{0%{transform:rotate(0)translate(3.5px)rotate(0)}to{transform:rotate(360deg)translate(3.5px)rotate(-360deg)}}.processing-pen-icon{color:var(--accent);align-items:center;display:inline-flex}.processing-pen-svg{overflow:visible}.processing-pen-line{stroke-dashoffset:40px;animation:1.4s ease-in-out infinite processing-pen-draw}.processing-pen-nib{transform-origin:38px 8px;animation:1.4s ease-in-out infinite processing-pen-write}@keyframes processing-pen-draw{0%{stroke-dashoffset:40px;opacity:.35}45%{stroke-dashoffset:0;opacity:1}to{stroke-dashoffset:0;opacity:.55}}@keyframes processing-pen-write{0%{transform:translateY(2px)rotate(-8deg)}50%{transform:translate(6px,-1px)rotate(4deg)}to{transform:translate(12px,1px)rotate(-2deg)}}.speaking-mouth-icon{flex-shrink:0;justify-content:center;align-items:center;width:1.35rem;height:1.35rem;display:inline-flex}.speaking-mouth-face{box-sizing:border-box;background:#fff8ef;border:1.5px solid;border-radius:50%;width:1.2rem;height:1.2rem;position:relative}.speaking-mouth-eye{background:currentColor;border-radius:50%;width:2px;height:2px;position:absolute;top:.28rem}.speaking-mouth-eye:first-child{left:.28rem}.speaking-mouth-eye:nth-child(2){right:.28rem}.speaking-mouth-lip{transform-origin:50%;background:currentColor;border-radius:999px;width:.42rem;height:.12rem;margin-left:-.21rem;position:absolute;bottom:.22rem;left:50%}.speaking-mouth-icon--active .speaking-mouth-lip{animation:.28s ease-in-out infinite speaking-mouth-talk}@keyframes speaking-mouth-talk{0%,to{border-radius:999px;height:.12rem;transform:scaleX(1)}50%{border-radius:45% 45% 55% 55%;height:.38rem;transform:scaleX(1.05)}}@media (prefers-reduced-motion:reduce){.processing-eyes-pupil{animation-duration:2.4s}.processing-pen-line,.processing-pen-nib{animation:none}.speaking-mouth-icon--active .speaking-mouth-lip{border-radius:40%;height:.28rem;animation:none}}.report-charts-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;display:grid}.report-chart-figure{background:var(--paper-deep);border:1px solid var(--line);border-radius:4px;margin:0;padding:.85rem 1rem}.report-chart-figure figcaption{font-size:var(--fs-sm);margin:0 0 .65rem;font-weight:600}.report-chart-histogram{align-items:flex-end;gap:.35rem;min-height:140px;display:flex}.report-chart-bar-col{flex-direction:column;flex:1;align-items:center;gap:.2rem;min-width:0;display:flex}.report-chart-bar-count{font-size:var(--fs-xs);color:var(--ink-soft);min-height:1rem}.report-chart-bar-track{justify-content:center;align-items:flex-end;width:100%;height:96px;display:flex}.report-chart-bar-fill{background:var(--accent);border-radius:3px 3px 0 0;width:72%;max-width:2.25rem;min-height:2px;transition:height .2s}.report-chart-bar-label{color:var(--ink-soft);text-align:center;word-break:break-all;font-size:.68rem;line-height:1.2}.report-chart-scatter,.report-chart-trend{width:100%;height:auto;display:block}.report-chart-axis{stroke:var(--line);stroke-width:1px}.report-chart-axis-label,.report-chart-trend-label{fill:var(--ink-soft);font-size:10px;font-family:var(--font-ja)}.report-chart-dot{fill:var(--accent)}.report-chart-line{stroke:var(--accent);stroke-width:2px}.report-handout-wrap{margin-top:.5rem}.report-handout-sheet{border:1px dashed var(--line);background:#fff;border-radius:4px;margin-top:1rem;padding:1.25rem 1.5rem}.report-handout-brand{font-size:var(--fs-xs);letter-spacing:.06em;text-transform:uppercase;margin:0}.report-handout-title{font-size:var(--fs-lg);margin:.35rem 0 0}.report-handout-meta{font-size:var(--fs-sm);margin:.35rem 0 0}.report-handout-section{margin-top:1.25rem}.report-handout-section h2{font-size:var(--fs-md);margin:0 0 .5rem}.report-handout-stats,.report-handout-list{margin:0;padding-left:1.25rem}.report-handout-table{border-collapse:collapse;width:100%;font-size:var(--fs-sm)}.report-handout-table th,.report-handout-table td{border:1px solid var(--line);text-align:left;padding:.35rem .5rem}.report-handout-footer{font-size:var(--fs-xs);margin-top:1.5rem}.student-result-preview-badge{min-height:32px;color:var(--warn);font-family:var(--font-ja);background:#7a5b1e1f;border-radius:4px;align-items:center;padding:.25rem .65rem;display:inline-flex}@media print{@page{size:A4;margin:10mm}body{background:#fff!important}.no-print{display:none!important}.shell{width:100%;padding:0}.report-handout-sheet{border:none;margin:0;padding:0}.panel:not(.report-handout-sheet):not(.student-result-preview){break-inside:avoid}body.printing-assignment-sheet{background:#fff!important}body.printing-assignment-sheet .shell,body.printing-assignment-sheet .addon-shell{visibility:hidden}body.printing-assignment-sheet .assignment-sheet-print-host,body.printing-assignment-sheet .assignment-sheet-print-host *{visibility:visible}body.printing-assignment-sheet .assignment-sheet-print-host{width:100%;position:absolute;top:0;left:0;box-shadow:none!important;background:#fff!important;border:none!important;margin:0!important;padding:0!important}body.printing-assignment-sheet .assignment-sheet-toolbar,body.printing-assignment-sheet .assignment-sheet-toolbar *{visibility:hidden!important;display:none!important}body.printing-assignment-sheet .assignment-sheet-root{margin:0!important}body.printing-assignment-sheet .assignment-sheet-page{width:100%;max-width:none;box-shadow:none;border:none;margin:0;padding:0;color:#1a1a1a!important;background:#fff!important}}.assignment-sheet-root{margin-top:.5rem}.assignment-sheet-toolbar{flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:.75rem;display:flex}.assignment-sheet-page{border:1px solid var(--line);color:#1a1a1a;max-width:210mm;font-family:var(--font-ja);background:#fff;border-radius:4px;margin:0 auto;padding:8mm 10mm}.assignment-sheet-header{border-bottom:1.5px solid #334155;align-items:flex-start;gap:10px;margin-bottom:10px;padding-bottom:8px;display:flex}.assignment-sheet-task-id-block{text-align:center;background:#f8fafc;border:1.5px solid #0f172a;border-radius:4px;flex:none;min-width:5.5rem;max-width:8.5rem;padding:6px 8px}.assignment-sheet-task-id-label{letter-spacing:.04em;color:#64748b;font-size:10px;display:block}.assignment-sheet-task-id{word-break:break-all;margin-top:2px;font-size:12px;font-weight:700;line-height:1.25;display:block}.assignment-sheet-qr{text-align:center;flex:none}.assignment-sheet-qr img{border:1px solid #cbd5e1;border-radius:4px;width:88px;height:88px;display:block}.assignment-sheet-qr-caption{color:#64748b;margin-top:3px;font-size:9px;line-height:1.2;display:block}.assignment-sheet-qr--missing{width:88px;height:88px;font-size:var(--fs-xs);border:1px dashed #cbd5e1;border-radius:4px;justify-content:center;align-items:center;display:flex}.assignment-sheet-meta{flex:1;min-width:0}.assignment-sheet-school{color:#475569;margin:0 0 2px;font-size:10px}.assignment-sheet-title{margin:0;font-size:14px;font-weight:600;line-height:1.4}.assignment-sheet-student-row{flex-wrap:wrap;justify-content:flex-end;gap:10px 18px;margin-top:2.8em;font-size:12px;display:flex}.assignment-sheet-student-row label{align-items:flex-end;gap:6px;display:inline-flex}.assignment-sheet-blank{border-bottom:1px solid #334155;width:4.5rem;height:1.2em;display:inline-block}.assignment-sheet-blank.wide{width:9rem}.assignment-sheet-question h2,.assignment-sheet-answer h2{margin:0 0 6px;font-size:12px;font-weight:700}.assignment-sheet-question-body{white-space:pre-wrap;border:1px solid #94a3b8;border-radius:4px;min-height:3.5rem;margin-bottom:12px;padding:8px 10px;font-size:11px;line-height:1.5}.assignment-sheet-lines{border:1px solid #94a3b8;border-radius:4px;padding:4px 8px 8px}.assignment-sheet-line{border-bottom:1px solid #cbd5e1;height:calc(2.25rem + 2.5mm)}.docs-embed-wrap{flex-direction:column;flex:1;min-height:0;display:flex}.docs-embed-fallback{padding:.75rem 0}.docs-embed-hint .btn-link-like{font:inherit;color:var(--accent);text-underline-offset:3px;cursor:pointer;background:0 0;border:none;padding:0;text-decoration:underline}.docs-embed-hint .btn-link-like:hover{color:var(--accent-hover)}.admin-shell .topbar{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.5rem;display:flex}.admin-stat-grid{grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.75rem;margin-top:1rem;display:grid}.admin-stat{border:1px solid var(--line);background:#fffcf6b3;border-radius:4px;padding:.75rem 1rem}.admin-stat-label{font-size:var(--fs-xs);color:var(--ink-soft);margin-bottom:.25rem;display:block}.admin-stat strong{font-size:var(--fs-lg);font-family:var(--font-en)}.admin-note{font-size:var(--fs-sm);margin:1rem 0 0}.admin-table-wrap{margin-top:.5rem;overflow-x:auto}.admin-table{border-collapse:collapse;width:100%;font-size:var(--fs-sm)}.admin-table th,.admin-table td{border:1px solid var(--line);text-align:left;vertical-align:top;padding:.5rem .65rem}.admin-table th{background:var(--paper-deep);white-space:nowrap;font-weight:600}.admin-table tbody tr:nth-child(2n){background:#fffcf68c}
