:root{--ink:#202e2b;--muted:#6c7772;--green:#315f50;--green-light:#edf4ef;--line:#e2e8e2;--paper:#f7f9f6;--red:#a33435}*{box-sizing:border-box}body{font-family:Inter,Pretendard,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;color:var(--ink);background:var(--paper);font-size:14px}a{color:var(--green);text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:10px 15px;background:white;color:var(--ink);font-weight:600}button:disabled{opacity:.5;cursor:not-allowed}button:hover:not(:disabled){filter:brightness(.97)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #92bdaa;outline-offset:2px}.primary{background:var(--green);border-color:var(--green);color:white}.secondary{background:#fff}.danger{color:var(--red);border-color:#eccccc}.text-button{background:none;border:0;text-align:left;padding:6px 0;font-size:12px;color:var(--muted)}.icon-button{font-size:24px;line-height:1;padding:4px 9px;border:0}.muted,small{color:var(--muted)}.error{color:var(--red);white-space:pre-wrap}.eyebrow,.nav-label{letter-spacing:1.5px;font-size:10px;font-weight:700;color:var(--muted)}h1{font-size:28px;letter-spacing:-1px;font-weight:750;margin:0 0 10px}h2{font-size:19px;letter-spacing:-.5px;font-weight:700;margin:0 0 14px}h3{font-size:15px;font-weight:700;margin:0 0 10px}p{line-height:1.7}label{display:block;font-size:13px;font-weight:600;margin:14px 0}input:not([type=checkbox]),select,textarea{display:block;width:100%;border:1px solid #d4ded6;border-radius:7px;padding:10px 12px;background:white;color:var(--ink);margin-top:7px;min-height:42px}textarea{min-height:110px;resize:vertical;line-height:1.65}input[type=checkbox]{width:17px;height:17px;accent-color:var(--green);vertical-align:middle}.row{display:flex;align-items:center;gap:12px;margin:0}.row.between{justify-content:space-between}.row.wrap{flex-wrap:wrap}.stack{display:grid;gap:18px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--green);color:white;font-size:18px;font-weight:800;flex-shrink:0}.brand{display:flex;gap:11px;align-items:center;color:var(--ink);font-size:19px;font-weight:800;padding:32px 24px 40px}.brand small{display:block;font-size:10px;letter-spacing:.7px;font-weight:500;margin-top:3px}#workspace[hidden],#login[hidden]{display:none!important}#sidebar-wrapper{width:232px;min-width:232px;min-height:100vh;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;margin:0}.nav-label{padding:0 28px 15px}nav{padding:0 14px;display:grid;gap:7px}nav a{padding:13px 17px;border-radius:8px;color:#66736a;font-size:13px;font-weight:600}nav a.active{color:var(--green);background:var(--green-light)}.sidebar-bottom{margin:auto 25px 22px;border-top:1px solid var(--line);padding-top:22px;display:grid;gap:4px}.sidebar-bottom small{font-size:11px;overflow-wrap:anywhere}#page-content-wrapper{min-width:0;width:100%}.topbar{height:67px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 38px;background:rgba(255,255,255,.8);font-size:12px;color:var(--muted)}.environment{background:#eef2ef;border-radius:20px;padding:5px 10px;font-size:11px}main#content{padding:36px 38px 65px;max-width:1500px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.page-heading p{margin:0;color:var(--muted);font-size:13px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0 28px}.stat,.panel,.class-card{background:white;border:1px solid var(--line);border-radius:12px;padding:22px}.stat small{font-size:12px}.stat strong{display:block;font-size:28px;margin-top:8px;letter-spacing:-1px}.section-heading{margin:28px 0 15px}.class-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.class-card{display:block;color:var(--ink);transition:border-color .15s,transform .15s}.class-card:hover{border-color:#9ab7a6;transform:translateY(-2px)}.class-icon{width:42px;height:42px;border-radius:10px;background:#f0f4ee;display:grid;place-items:center;color:var(--green);font-weight:800;margin-bottom:22px}.class-card h2{font-size:17px;margin-bottom:6px}.class-card .card-foot{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:17px;margin-top:24px;font-size:12px;color:var(--muted)}.badge{display:inline-flex;padding:5px 9px;font-size:11px;border-radius:6px;background:#eef1ef;color:#64716a;white-space:nowrap;font-weight:600}.badge.green{background:#e8f3eb;color:#2c7052}.badge.purple{background:#f0ecf8;color:#725398}.badge.orange{background:#fff0dd;color:#98652a}.badge.red{background:#fdecec;color:var(--red)}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:18px 0}.filters{display:flex;gap:10px;align-items:center}.filters input,.filters select{margin:0;width:auto;max-width:240px}.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:10px}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{background:#f7f9f6;color:var(--muted);font-size:11px;font-weight:600;text-align:left;padding:14px 15px;border-bottom:1px solid var(--line)}td{padding:16px 15px;border-bottom:1px solid #edf0eb;vertical-align:middle}tr:last-child td{border-bottom:0}td button{padding:6px 9px;font-size:11px}.table-link{font-weight:700;cursor:pointer}.table-link:hover{text-decoration:underline}.empty{text-align:center;padding:65px 25px;color:var(--muted);background:white;border:1px dashed #d4dfd5;border-radius:12px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin:18px 0 22px}.tabs button{border:0;background:none;border-radius:0;padding:12px 4px;color:var(--muted)}.tabs button.active{border-bottom:2px solid var(--green);color:var(--green)}.pagination{display:flex;gap:12px;justify-content:flex-end;align-items:center;margin-top:15px;font-size:12px}.pagination button{padding:6px 12px}.notice{padding:12px 0;color:var(--muted);font-size:12px;line-height:1.7}.text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:14px}.panel+.panel{margin-top:18px}.meta{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-bottom:15px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.detail-card{margin-bottom:17px}.detail-card h3{font-size:12px;color:var(--muted)}details{margin:12px 0;border-top:1px solid var(--line);padding-top:12px}summary{cursor:pointer;font-size:12px;color:var(--green)}.history-item{padding:14px 0;border-bottom:1px solid var(--line)}.history-item:last-child{border:0}.history-item small{display:block;margin-bottom:8px}dialog{border:1px solid var(--line);border-radius:14px;width:min(620px,calc(100% - 32px));padding:25px;box-shadow:0 24px 100px #11251930;max-height:90vh}dialog::backdrop{background:#172d2955;backdrop-filter:blur(2px)}dialog header{display:flex;justify-content:space-between;align-items:center}dialog header h2{margin:0}dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#263d34;color:white;border-radius:9px;padding:13px 22px;z-index:1000;box-shadow:0 10px 30px #182e2920;max-width:90vw}#toast.error{background:#8a3434}.login-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-brand{background:#edf3ec;padding:12vh 12%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.login-brand>p:first-of-type{font-size:20px;font-weight:800;margin:18px 0 45px}.login-brand h1{font-size:44px;line-height:1.4;letter-spacing:-2px}.login-brand p:last-child{font-size:13px;color:var(--muted);max-width:280px;margin-top:22px}.login-form{align-self:center;justify-self:center;width:min(350px,80%);padding:30px 0}.login-form h2{font-size:28px;margin-top:15px}.login-form label{margin:22px 0}.login-form .primary{width:100%;margin-top:14px;padding:13px}.student-shell{max-width:900px;margin:0 auto;padding:32px 20px}.student-header{display:flex;align-items:center;gap:12px;margin-bottom:25px}.student-shell h1{font-size:26px}.student-shell textarea{min-height:200px;font-size:16px;line-height:1.9}.student-shell .prep-input{min-height:90px}.student-shell .reading{font-size:14px;max-height:550px;overflow:auto;padding:15px 0}.student-shell .self-check{display:flex;gap:12px;align-items:flex-start;font-weight:500;line-height:1.8}.student-shell #saved{font-size:12px;color:var(--muted)}.student-shell .actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:20px}.student-shell .recovery{border:1px solid #dfc291;padding:12px;border-radius:8px;background:#fff8e8}.student-shell .read-feedback{margin-top:12px}
@media(max-width:1100px){.class-grid{grid-template-columns:repeat(2,minmax(0,1fr))}main#content{padding:25px}.topbar{padding:0 25px}#sidebar-wrapper{width:195px;min-width:195px}.brand{padding:25px 20px}.stats{gap:10px}.stat{padding:17px}}@media(max-width:760px){#workspace{display:block!important}#sidebar-wrapper{position:static;width:100%;height:auto;min-height:0;min-width:0;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:18px 20px}.brand small,.nav-label,.sidebar-bottom{display:none}nav{display:flex;overflow:auto;padding:0 10px 10px;gap:2px}nav a{font-size:12px;white-space:nowrap;padding:9px 12px}.topbar{height:45px;padding:0 20px;font-size:10px}main#content{padding:25px 17px}.stats{grid-template-columns:repeat(2,1fr)}.class-grid,.two-col{grid-template-columns:1fr}.page-heading{align-items:flex-start}.page-heading h1{font-size:23px}.toolbar{align-items:flex-start;flex-wrap:wrap}.filters{flex-wrap:wrap}.filters input{max-width:180px}.login-shell{grid-template-columns:1fr}.login-brand{padding:30px 25px}.login-brand h1,.login-brand p:last-child{display:none}.login-brand>p:first-of-type{margin:8px 0}.login-brand .brand-mark{display:none}.login-form{padding:45px 0}.tabs{gap:13px;overflow:auto}.tabs button{white-space:nowrap}.panel{padding:18px}}

/* Avoid inherited Bootstrap row widths on the compact action groups. */
.row > *{width:auto;max-width:100%}
@media(max-width:760px){.sidebar-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 20px 12px;padding-top:8px}.sidebar-bottom small{display:none}.sidebar-bottom b{font-size:11px}.sidebar-bottom .text-button{padding:5px 0}}
.student-row{cursor:pointer}.student-row:hover,.student-row:focus-within{background:#f4f8f5}.student-row:focus{outline:2px solid #23664c;outline-offset:-2px}
 .class-grid{display:none}.class-list-section{margin-top:30px}.class-list-table{width:100%;border-collapse:collapse;background:#fff;font-size:13px}.class-list-table th,.class-list-table td{padding:15px 16px;text-align:left;border-bottom:1px solid var(--line)}.class-list-table th{background:#f7f9f6;color:var(--muted);font-size:11px}.class-list-table td small{display:block;margin-top:4px;color:var(--muted)}.class-list-row{cursor:pointer}.class-list-row:hover,.class-list-row:focus{background:#f3f8f4;outline:2px solid #9ab7a6;outline-offset:-2px}
 .writing-summary-card h2{margin:0}.writing-summary-card details{margin-top:16px}.writing-summary-card .meta{margin-top:10px;margin-bottom:0}
