body.grade-view{--grade-blue:#0969ff;--grade-blue-dark:#0055df;--grade-navy:#071d48;--grade-muted:#60718f;--grade-line:#dce6f4;--grade-soft:#f3f8ff;overflow:auto}
body.grade-view .main>:not(#gradeRoot):not(#gradeEntryRoot){display:none!important}
#gradeRoot,#gradeEntryRoot{flex:1;min-width:0;min-height:100vh;background:linear-gradient(135deg,#fff 0%,#f7fbff 100%);color:var(--grade-navy);font-family:"Pretendard","Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif}
#gradeRoot *,#gradeEntryRoot *{box-sizing:border-box}
#gradeRoot button,#gradeRoot input,#gradeRoot select,#gradeEntryRoot button,#gradeEntryRoot input,#gradeEntryRoot select{font:inherit}
.gr-shell{width:100%;min-height:100vh;padding:20px 24px 30px}
.gr-header{display:flex;align-items:flex-start;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--grade-line);flex-wrap:wrap}
.gr-title{min-width:0;flex:1}
.gr-title-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.gr-title h1{margin:0;color:var(--grade-navy);font-size:29px;line-height:1.15;font-weight:900;letter-spacing:-1px}
.gr-grade-chip{display:inline-flex;align-items:center;min-height:24px;padding:2px 9px;border-radius:999px;background:#eaf3ff;color:var(--grade-blue);font-size:11px;font-weight:850}
.gr-title p{margin:5px 0 0;color:#526681;font-size:13px;font-weight:600}
.gr-header-actions{display:flex;gap:9px;flex:none;flex-wrap:wrap;justify-content:flex-end}
.gr-action{height:41px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #bdd2ef;border-radius:10px;background:#fff;color:#17437c;font-size:13px;font-weight:850;box-shadow:0 2px 7px rgba(20,63,115,.04);cursor:pointer;white-space:nowrap}
.gr-action svg{width:18px;height:18px}
.gr-action.primary{border-color:var(--grade-blue);background:linear-gradient(135deg,#0873ff,#0560ed);color:#fff;box-shadow:0 7px 18px rgba(9,105,255,.2)}
.gr-action:hover{transform:translateY(-1px)}
.gr-filters{min-width:0;min-height:48px;height:auto;display:flex;align-items:center;border-bottom:1px solid var(--grade-line);gap:12px}
.gr-tabs{height:48px;display:flex;align-items:stretch;gap:2px;min-width:0;flex:0 0 auto}
.gr-tab{position:relative;min-width:92px;padding:0 14px;border:0;background:transparent;color:#445775;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap}
.gr-tab.on{color:var(--grade-blue)}
.gr-tab.on:after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:4px;border-radius:5px 5px 0 0;background:var(--grade-blue)}
.gr-subjects{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:4px 0;min-width:0;flex:1 1 auto}
.gr-subjects::-webkit-scrollbar{display:none}
.gr-subject{height:32px;min-width:60px;padding:0 12px;border:1px solid #d8e3f2;border-radius:999px;background:linear-gradient(#fff,#f7faff);color:#526582;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer}
.gr-subject.on{border-color:var(--grade-blue);background:linear-gradient(135deg,#0873ff,#075eee);color:#fff;box-shadow:0 5px 12px rgba(9,105,255,.18)}
.gr-body{padding-top:16px}
.gr-state{display:none;margin:0 0 12px;padding:11px 14px;border:1px solid #cfddf2;border-radius:10px;background:#f7fbff;color:#496380;font-size:12px;font-weight:700}
.gr-state.show{display:block}.gr-state.error{border-color:#ffd3d3;background:#fff6f6;color:#a94343}
.gr-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:14px}
.gr-kpi{height:82px;padding:14px 16px;display:flex;align-items:center;gap:13px;border:1px solid #cfe0f4;border-radius:12px;background:linear-gradient(135deg,#fff,#f6faff);box-shadow:0 2px 8px rgba(21,60,109,.04)}
.gr-kpi-icon{width:48px;height:48px;display:grid;place-items:center;flex:none;border-radius:12px;background:#e8f2ff;color:var(--grade-blue)}
.gr-kpi-icon svg{width:25px;height:25px;stroke-width:2}
.gr-kpi-copy{min-width:0}.gr-kpi-copy span{display:block;color:#5b6e8b;font-size:12px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gr-kpi-copy strong{display:block;margin-top:4px;color:#075eea;font-size:24px;line-height:1;font-weight:900;letter-spacing:-.6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gr-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.96fr);gap:14px;align-items:start}
.gr-card{border:1px solid #d8e3f1;border-radius:12px;background:#fff;box-shadow:0 3px 10px rgba(22,54,92,.035);overflow:hidden}
.gr-card+.gr-card{margin-top:14px}
.gr-card-head{min-height:48px;padding:12px 16px;display:flex;align-items:center;gap:10px}
.gr-card-head h2{margin:0;color:#0b214d;font-size:16px;font-weight:900;letter-spacing:-.25px}
.gr-card-head .spacer{flex:1}.gr-card-head small{color:#69809f;font-weight:700}
.gr-segmented{display:flex;gap:2px;padding:3px;border:1px solid #dce6f3;border-radius:999px;background:#f8fbff}
.gr-segmented button{height:30px;min-width:70px;padding:0 13px;border:0;border-radius:999px;background:transparent;color:#4d607d;font-size:11px;font-weight:800;cursor:pointer}
.gr-segmented button.on{background:var(--grade-blue);color:#fff;box-shadow:0 3px 8px rgba(9,105,255,.2)}
.gr-chart-wrap{height:236px;padding:4px 16px 12px;position:relative}
.gr-chart{width:100%;height:100%;display:block;overflow:visible}
.gr-chart text{font-family:inherit;fill:#526887;font-size:11px;font-weight:700}
.gr-chart .grid{stroke:#e3eaf4;stroke-width:1}.gr-chart .axis{stroke:#aabbd0;stroke-width:1}
.gr-chart .area{fill:url(#grArea)}.gr-chart .line{fill:none;stroke:var(--grade-blue);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.gr-chart .dot{fill:#fff;stroke:var(--grade-blue);stroke-width:4}.gr-chart .value{fill:var(--grade-blue);font-size:13px;font-weight:900}
.gr-chart-empty{height:100%;display:grid;place-items:center;text-align:center;color:#7588a2;font-size:13px;font-weight:700;line-height:1.7}
.gr-analysis{padding:14px 18px 18px}.gr-analysis h3{margin:0;color:#0a204b;font-size:20px;font-weight:900;letter-spacing:-.35px}.gr-analysis .blue{margin:7px 0;color:#0870ff;font-size:15px;font-weight:900}
.gr-analysis p{margin:0;color:#627691;font-size:12px;line-height:1.55;font-weight:650}
.gr-goal{margin-top:15px;padding-top:13px;border-top:1px solid #dbe5f1}.gr-goal-top{display:flex;align-items:center;justify-content:space-between;color:#0b214d;font-size:12px;font-weight:850}.gr-goal-top strong{font-size:17px}.gr-goal-bar{height:8px;margin-top:8px;border-radius:999px;background:#e4ebf4;overflow:hidden}.gr-goal-bar i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0874ff,#0b62ef);transition:width .35s ease}
.gr-calendar{padding-bottom:16px}.gr-cal-tools{display:flex;align-items:center;justify-content:center;gap:22px;padding:4px 18px 10px}.gr-cal-tools button{width:30px;height:30px;border-radius:8px;color:#46607f;font-size:22px;cursor:pointer}.gr-cal-tools strong{min-width:130px;text-align:center;font-size:17px}
.gr-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);margin:0 12px;border-top:1px solid #dce5f1;border-left:1px solid #dce5f1}
.gr-cal-grid>div{min-height:38px;padding:7px 8px;border-right:1px solid #dce5f1;border-bottom:1px solid #dce5f1;color:#20365a;font-size:11px;font-weight:700;position:relative}
.gr-cal-grid .dow{min-height:31px;text-align:center;background:#f8fbff;color:#536681;font-weight:850}.gr-cal-grid .sun{color:#f04444}.gr-cal-grid .sat{color:#0b68f3}.gr-cal-grid .muted{color:#b2bdcc;background:#fbfcfe}.gr-cal-grid .today{background:#eef5ff;color:#075eea}.gr-cal-grid .event{margin:4px -5px -3px;padding:4px 5px;border-radius:5px;background:#e4f0ff;color:#075bd8;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gr-cal-grid .event.school{background:#f0e7ff;color:#7b39c5}
.gr-cal-foot{display:flex;justify-content:space-between;align-items:center;padding:13px 18px 0;color:#71829a;font-size:11px;font-weight:700}.gr-link{border:0;background:transparent;color:var(--grade-blue);font-size:11px;font-weight:850;cursor:pointer}
.gr-upcoming{padding:14px 16px}.gr-upcoming h3{margin:0 0 8px;color:#0b214d;font-size:16px;font-weight:900}.gr-next-card{padding:11px 12px;display:flex;align-items:center;gap:11px;border-radius:9px;background:linear-gradient(90deg,#f0f6ff,#e9f3ff)}
.gr-next-line{width:5px;height:44px;border-radius:99px;background:var(--grade-blue)}.gr-next-copy{min-width:0;flex:1}.gr-next-copy strong{display:block;color:#0757cc;font-size:14px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gr-next-copy span{display:block;margin-top:4px;color:#526885;font-size:11px;font-weight:700}.gr-next-badge{padding:7px 10px;border-radius:999px;background:#d5e8ff;color:#0964dc;font-size:10px;font-weight:850;white-space:nowrap}
.gr-empty-next{padding:16px;border:1px dashed #c8d8ec;border-radius:9px;background:#fbfdff;color:#72849d;font-size:12px;text-align:center;line-height:1.6}
.gr-recent{padding:0 16px 13px}.gr-table{width:100%;border-collapse:separate;border-spacing:0;font-size:11px}.gr-table th{padding:9px 8px;background:#f5f8fc;color:#667995;text-align:left;font-weight:850}.gr-table th:first-child{border-radius:7px 0 0 7px}.gr-table th:last-child{border-radius:0 7px 7px 0}.gr-table td{padding:9px 8px;border-bottom:1px solid #e6edf5;color:#20365a;font-weight:700}.gr-table tbody tr:last-child td{border-bottom:0}.gr-source{display:inline-flex;padding:4px 7px;border-radius:999px;background:#e5f7ee;color:#18815a;font-size:9px;font-weight:850}.gr-source.camera{background:#fff1d8;color:#a26909}.gr-source.system{background:#e8f1ff;color:#1761c7}.gr-table-empty{text-align:center!important;color:#7b8ca3!important;padding:22px!important}
.gr-note{margin-top:12px;color:#71839c;font-size:10px;font-weight:650}
.gr-source-note{margin:12px 4px 0;color:#6b7f9a;font-size:10px;font-weight:700;text-align:right}.gr-source-note a{color:#0969ff;text-decoration:underline;text-underline-offset:2px}
.gr-overlay[hidden]{display:none}.gr-overlay{position:fixed;inset:0;z-index:15000;display:grid;place-items:center;padding:18px;background:rgba(10,30,62,.45);backdrop-filter:blur(3px)}
.gr-dialog{width:min(1180px,calc(100vw - 36px));max-height:calc(100vh - 36px);display:flex;flex-direction:column;border:1px solid #cfdcec;border-radius:17px;background:#fff;box-shadow:0 28px 80px rgba(8,30,64,.3);overflow:hidden}
.gr-dialog.full{width:min(1320px,calc(100vw - 32px));height:min(900px,calc(100vh - 32px))}
.gr-dialog-head{padding:18px 22px;display:flex;align-items:flex-start;gap:14px;border-bottom:1px solid #dce5f1;background:linear-gradient(180deg,#fff,#fbfdff)}
.gr-dialog-head>div{min-width:0;flex:1}.gr-dialog-head h2{margin:0;color:#0a204b;font-size:27px;font-weight:900;letter-spacing:-.7px}.gr-dialog-head p{margin:5px 0 0;color:#5e7390;font-size:13px;font-weight:650}.gr-dialog-close{width:38px;height:38px;border:1px solid #d7e2f0;border-radius:10px;background:#fff;color:#536983;font-size:24px;cursor:pointer}
.gr-entry-tabs{display:grid;grid-template-columns:1fr 1fr;margin:14px 22px 0;border:1px solid #9fc2fb;border-radius:8px;overflow:hidden}.gr-entry-tabs button{height:42px;border:0;background:#fff;color:#1262df;font-weight:850;cursor:pointer}.gr-entry-tabs button.on{background:linear-gradient(135deg,#0873ff,#075feb);color:#fff}
.gr-steps{display:flex;align-items:center;justify-content:center;gap:14px;padding:15px 22px 12px}.gr-step{display:flex;align-items:center;gap:8px;color:#60728e;font-weight:800}.gr-step b{width:38px;height:38px;display:grid;place-items:center;border:1px solid #cbd8e8;border-radius:50%;background:#eff4fa;color:#50627c}.gr-step.on{color:#0965ea}.gr-step.on b{border-color:#0870ff;background:#0870ff;color:#fff}.gr-step-line{width:170px;height:2px;background:#dbe4ef}.gr-step-line.on{background:#0870ff}
.gr-dialog-body{min-height:0;flex:1;overflow:auto;padding:0 22px 20px}.gr-entry-grid{display:grid;grid-template-columns:minmax(310px,.9fr) minmax(0,1.35fr);gap:16px;min-height:490px}.gr-photo-panel,.gr-form-panel{border:1px solid #d8e3f1;border-radius:11px;background:#fff;padding:16px}.gr-photo-panel h3,.gr-form-panel h3{margin:0 0 12px;color:#0a204b;font-size:19px;font-weight:900}.gr-drop{width:100%;min-height:360px;display:grid;place-items:center;border:2px dashed #aec9ef;border-radius:10px;background:#f5f9ff;color:#627995;text-align:center;overflow:hidden;position:relative}.gr-drop.has-image{border-style:solid;background:#13243b}.gr-drop img{width:100%;height:100%;max-height:420px;object-fit:contain}.gr-drop img[hidden]{display:none!important}.gr-drop-copy svg{width:52px;height:52px;color:#1972ee}.gr-drop-copy strong{display:block;margin-top:11px;color:#234369;font-size:15px}.gr-drop-copy span{display:block;margin-top:5px;font-size:11px}.gr-photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.gr-photo-actions button{height:40px;border:1px solid #cbdaf0;border-radius:8px;background:#f3f8ff;color:#1762cb;font-size:12px;font-weight:850;cursor:pointer}.gr-photo-note{margin-top:8px;color:#71839a;font-size:10px;font-weight:700}
.gr-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px 14px}.gr-field{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:8px}.gr-field label{color:#304968;font-size:12px;font-weight:850}.gr-field input,.gr-field select{width:100%;height:39px;padding:0 11px;border:1px solid #cedbeb;border-radius:7px;background:#fff;color:#20365a;font-size:12px;font-weight:700;outline:0}.gr-field input:focus,.gr-field select:focus{border-color:#78a9f5;box-shadow:0 0 0 3px rgba(9,105,255,.1)}
.gr-score-table{margin-top:14px;border:1px solid #dbe5f1;border-radius:9px;overflow:hidden}.gr-score-head,.gr-score-row{display:grid;grid-template-columns:1.15fr 1fr 1fr 1fr 1.25fr;align-items:center}.gr-score-head{min-height:38px;background:#f1f6fc;color:#405672;font-size:11px;font-weight:850;text-align:center}.gr-score-row{min-height:49px;border-top:1px solid #e1e9f3;color:#21395d;font-size:12px;font-weight:750}.gr-score-row>div{padding:6px 8px;border-right:1px solid #e1e9f3}.gr-score-row>div:last-child{border-right:0}.gr-score-row input{width:100%;height:34px;border:1px solid #d0ddec;border-radius:6px;text-align:center;color:#20365a;font-weight:750}.gr-recognition{display:flex;align-items:center;gap:6px;color:#15905f!important;font-size:10px;font-weight:850}.gr-recognition.warn{color:#c17b0a!important}.gr-score-message{padding:12px 13px;margin-top:13px;border-radius:9px;background:#f3f7fc;color:#60738e;font-size:11px;line-height:1.6;font-weight:700}.gr-form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:13px}.gr-form-actions button{height:42px;padding:0 20px;border:1px solid #8eb7fb;border-radius:8px;background:#fff;color:#075fdd;font-size:12px;font-weight:850;cursor:pointer}.gr-form-actions button.primary{border-color:#0870ff;background:#0870ff;color:#fff}.gr-form-actions button:disabled{opacity:.55;cursor:wait}
.manual-only{display:none}.gr-entry-manual .camera-only{display:none!important}.gr-entry-manual .manual-only{display:block}.gr-entry-manual .gr-entry-grid{grid-template-columns:1fr}.gr-entry-manual .gr-photo-panel{display:none}.gr-entry-manual .gr-dialog{width:min(830px,calc(100vw - 36px));height:auto}.gr-entry-manual .gr-steps{display:none}.gr-entry-manual .gr-dialog-body{padding-top:16px}.gr-entry-manual .gr-score-table{max-height:360px;overflow:auto}
.gr-saving-flow{display:none;margin:14px 22px 18px;padding:16px;border:1px solid #dce6f3;border-radius:10px;background:#f8fbff}.gr-saving-flow.show{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:16px;align-items:center}.gr-flow-card{display:flex;align-items:center;gap:11px}.gr-flow-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#e7f1ff;color:#0a68ec}.gr-flow-icon svg{width:25px;height:25px}.gr-flow-card strong{display:block;color:#173457;font-size:13px}.gr-flow-card span{display:block;margin-top:3px;color:#7587a0;font-size:10px}.gr-flow-arrow{color:#87a2c5;font-size:27px}
.gr-toast{position:fixed;right:28px;bottom:28px;z-index:17000;max-width:360px;padding:13px 16px;border-radius:10px;background:#102d58;color:#fff;font-size:12px;font-weight:750;box-shadow:0 12px 32px rgba(5,26,58,.25);transform:translateY(20px);opacity:0;pointer-events:none;transition:.22s}.gr-toast.show{transform:none;opacity:1}.gr-toast.error{background:#a33a3a}
@media(max-width:1420px){.gr-filters{display:block;padding:3px 0 8px}.gr-tabs{width:100%;height:43px}.gr-subjects{width:100%;padding-top:7px}.gr-tab{flex:1;min-width:84px}}
@media(max-width:1280px){.gr-shell{padding:18px}.gr-title h1{font-size:27px}.gr-grid{grid-template-columns:1fr}.gr-right{display:grid;grid-template-columns:1fr 1fr;gap:14px}.gr-right .gr-card{margin-top:0}.gr-right .gr-recent-card{grid-column:1/-1}.gr-entry-grid{grid-template-columns:1fr}.gr-drop{min-height:260px}.gr-step-line{width:90px}}
@media(max-width:1100px){.gr-header-actions{width:100%;justify-content:flex-start}.gr-header-actions .gr-action{flex:1}}
@media(max-width:980px){body.grade-view{--sidebar:230px}.gr-filters{height:auto;display:block;padding:6px 0 10px}.gr-tabs{height:42px}.gr-tab{min-width:82px;padding:0 10px}.gr-kpis{grid-template-columns:1fr 1fr}.gr-subjects{padding-top:7px}.gr-right{grid-template-columns:1fr}.gr-right .gr-recent-card{grid-column:auto}.gr-meta-grid{grid-template-columns:1fr}.gr-score-head,.gr-score-row{grid-template-columns:1fr .85fr .85fr .7fr 1.1fr}.gr-saving-flow.show{grid-template-columns:1fr}.gr-flow-arrow{display:none}}
@media(max-width:720px){.gr-shell{padding:14px 10px}.gr-title h1{font-size:24px}.gr-title p{font-size:11px}.gr-action{padding:0 10px;font-size:11px}.gr-kpis{grid-template-columns:1fr}.gr-kpi{height:76px}.gr-grid{display:block}.gr-right{display:block}.gr-right .gr-card{margin-top:12px}.gr-tabs{overflow-x:auto;scrollbar-width:none}.gr-tab{flex:0 0 auto;min-width:78px}.gr-dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}.gr-dialog.full{height:calc(100vh - 16px)}.gr-dialog-head{padding:14px}.gr-dialog-head h2{font-size:22px}.gr-entry-tabs{margin:10px 14px 0}.gr-steps{gap:7px;padding:10px}.gr-step span{display:none}.gr-step-line{width:50px}.gr-dialog-body{padding:0 12px 14px}.gr-photo-panel,.gr-form-panel{padding:12px}.gr-score-table{overflow-x:auto}.gr-score-head,.gr-score-row{min-width:580px}.gr-field{grid-template-columns:68px 1fr}}
