body.student-site{--accent:#58b900;--accent-soft:#f0f9e5;--ink:#454b51;--muted:#78838a;--line:#e4e9ed;--font:MathAppRound,"Malgun Gothic",sans-serif;background:white;color:var(--ink);font-family:var(--font);font-size:15px}
.student-site *{box-sizing:border-box}.student-site [hidden]{display:none!important}
.student-site a{text-decoration:none;color:#299abe}.student-site button,.student-site input,.student-site textarea{font-family:inherit}
.student-site button,.student-site .student-btn{border:2px solid #e0e6e9;border-bottom-width:4px;border-radius:13px;background:white;color:#64747c;padding:11px 17px;font-weight:800;cursor:pointer;display:inline-block;text-align:center;line-height:1.5}
.student-site button:hover,.student-site .student-btn:hover{background:#f5f9ef}.student-site button:disabled{opacity:.55;cursor:wait}
.student-site .student-primary{background:#58b900;color:white;border-color:#58b900;border-bottom-color:#469600}.student-site .student-primary:hover{background:#65c513}
.student-site :is(a,button,input,textarea,summary):focus-visible{outline:3px solid #f5b63d;outline-offset:4px}
.student-header{border-bottom:2px solid #f0f2f3;background:#fff}.student-bar{max-width:1180px;min-height:84px;margin:auto;display:flex;align-items:center;gap:34px;padding:14px 24px;flex-wrap:wrap}
.student-brand{display:flex;align-items:center;gap:9px;font-weight:800;font-size:25px!important;color:#58b900!important;letter-spacing:-1px;white-space:nowrap}
.student-brand>span{background:#58b900;color:white;width:29px;height:29px;border-radius:9px;transform:rotate(-8deg);display:grid;place-items:center;line-height:1}.student-brand small{font-size:11px;letter-spacing:0;color:#7f996a;background:#f1f8e9;padding:4px 7px;border-radius:6px;margin-left:4px}
.student-bar nav{display:flex;gap:10px}.student-bar nav a{font-size:14px;font-weight:800;padding:10px 14px;color:#7b858b;border-radius:11px}.student-bar nav a[aria-current=page]{color:#57a515;background:#f0f8e7}
.student-user{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:12px}.student-user button{font-size:11px;padding:6px 10px}
.student-site #view{max-width:1072px;min-height:65vh;margin:auto;padding:32px 20px 64px}
.student-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 10px 34px}.student-heading h1{font-size:34px;letter-spacing:-1px;margin:10px 0}.student-heading p{line-height:1.8;color:var(--muted);margin:0}.student-heading img{width:176px;height:176px;object-fit:contain}
.student-kicker{font-size:12px;letter-spacing:.3px;color:#7e9d65;font-weight:800}.student-title-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0}.student-title-row h2{font-size:21px;margin:0}
.student-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.student-card{border:2px solid #e4eadf;border-bottom:5px solid #dfe7d8;border-radius:22px;padding:24px;background:#fff;min-width:0}.student-card h2,.student-card h3{margin:12px 0;font-size:21px;line-height:1.6}.student-card p{line-height:1.8}.student-card-link{display:flex;align-items:center;gap:20px;color:var(--ink)!important;transition:transform .15s}.student-card-link:hover{transform:translateY(-3px);background:#fbfef7}.student-card-link img{width:80px;height:100px;object-fit:contain;border:1px solid #edf0eb;border-radius:9px}.student-card-link>div{min-width:0;flex:1}.student-card-link h3{font-size:18px;overflow-wrap:anywhere}.student-card-link small{font-size:12px;color:#8a969f}.student-pill{display:inline-block;background:#f0f8e7;color:#609f24;border-radius:7px;padding:4px 9px;font-size:11px;font-weight:800}.student-pill.waiting{background:#eef7fc;color:#4e95b4}.student-pill.failed{background:#fff2ee;color:#c4745d}
.student-empty{text-align:center;padding:42px 24px;border:2px dashed #dbe5d2;border-radius:24px;background:#fbfdf8}.student-empty h2{font-size:23px}.student-empty p{color:#839075;line-height:1.8;margin-bottom:25px}
.student-detail-title{font-size:29px;line-height:1.5;overflow-wrap:anywhere;margin:24px 0 12px}.student-detail-meta{color:#799060;line-height:1.8;margin:0 0 25px}.student-detail-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:22px;align-items:start}.student-original{max-width:100%;max-height:360px;object-fit:contain;display:block;margin:0 auto 24px}.student-card .rich{font-family:"Malgun Gothic",sans-serif;font-size:16px;line-height:1.9;overflow-wrap:anywhere}.student-card .katex-display{overflow-x:auto;overflow-y:hidden;padding:8px 0}.student-card details{margin-top:22px;border-top:2px solid #edf1e9;padding-top:18px}.student-card summary{font-weight:800;color:#4f9c22;cursor:pointer;padding:5px 0;line-height:1.6}.student-choices{padding-left:24px;line-height:2}.student-answer{background:#f2f9e9;border-radius:12px;padding:14px;margin-top:14px}
.student-practice{background:#f8fbf4}.student-practice h2{margin:0 0 12px;font-size:22px}.student-practice p{font-size:13px;color:#839075}.student-practice button{width:100%;margin-top:12px}.student-practice small{display:block;line-height:1.8;color:#8c9883;margin-top:14px;font-size:11px}.student-result{margin-top:22px}.student-result h3{font-size:18px}.student-status{padding:20px;border:2px solid #dfeaf1;border-radius:16px;background:#f4fbff;line-height:1.8;color:#497b92}.student-status.error{background:#fff7f3;border-color:#f1e3d9;color:#af7255}
.student-login{max-width:440px;margin:20px auto;text-align:center}.student-login>img{width:160px;height:160px;object-fit:contain}.student-login h1{font-size:27px;margin:8px 0 14px}.student-login>p{color:#85917e;line-height:1.8;font-size:14px}.student-form{text-align:left;margin-top:26px}.student-form label{display:block;margin:17px 0 9px;font-weight:800;font-size:14px}.student-form input{width:100%;min-height:49px;border:2px solid #e3e8ec;border-radius:12px;padding:12px 14px;background:#fbfcfd}.student-form button{width:100%;margin-top:23px}.student-form p{font-size:12px;color:#889181;line-height:1.8}.student-form .error{color:#b76448;min-height:20px;margin-top:12px}.student-loading{padding:65px 20px;text-align:center;color:#839075}.student-footer{border-top:2px solid #f1f4ed;padding:24px;display:flex;justify-content:center;gap:26px;color:#95a18d;font-size:12px;flex-wrap:wrap}.student-footer a{font-weight:800}#student-notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100;max-width:90vw;background:#454b51;color:white;border-radius:15px;padding:17px 24px;font-size:14px;box-shadow:0 5px 20px #0002}
@media(max-width:800px){.student-bar{gap:15px;padding:14px 20px}.student-brand{font-size:22px!important}.student-bar nav{order:3;width:100%;justify-content:center}.student-bar nav a{flex:1;text-align:center;font-size:13px;padding:8px}.student-grid,.student-detail-grid{grid-template-columns:1fr}.student-user{gap:7px}.student-user a{max-width:85px;overflow:hidden;text-overflow:ellipsis}.student-heading h1{font-size:27px}.student-heading img{width:130px;height:145px}.student-heading{gap:8px;padding:10px 0 25px}.student-heading p{font-size:13px}.student-card{padding:22px}.student-detail-title{font-size:25px}.student-title-row{gap:12px}.student-title-row h2{font-size:19px}.student-title-row .student-btn{font-size:13px;padding:9px 12px}}
@media(max-width:370px){.student-brand{font-size:20px!important}.student-brand small{font-size:10px}.student-user{width:100%;justify-content:flex-end}.student-heading img{width:90px;height:125px}.student-heading h1{font-size:24px}.student-card{padding:18px}.student-card-link img{width:60px}.student-card-link{gap:14px}.student-site #view{padding:22px 18px 40px}}

#student-coins{background:#fff6d9;color:#805900;border-radius:12px;padding:8px 11px;white-space:nowrap;max-width:none}.student-google-card{margin:24px 0}.student-google{display:flex!important;align-items:center;justify-content:center;gap:12px;width:100%;background:#fff!important;color:#313639!important;border:1px solid #747775!important;border-radius:20px!important;box-shadow:none!important;font-family:Arial,'Malgun Gothic',sans-serif!important;font-size:15px!important;min-height:44px}.student-google>span{font:bold 22px Arial;color:#4285f4}.student-google[aria-disabled]{opacity:.55;cursor:default}.student-google-card p,.student-price{font-size:14px!important;line-height:1.8;color:#65745c}.student-existing-login{text-align:left;margin:24px 0}.student-existing-login summary,.student-manage summary{cursor:pointer;font-weight:800;min-height:36px}.student-existing-login .student-form{margin-top:12px}.student-wallet{max-width:640px;margin:26px auto}.student-wallet>p{font-size:14px;line-height:1.8}.student-wallet ul{padding:0;list-style:none}.student-wallet li{display:grid;grid-template-columns:1fr auto;gap:7px;border-top:1px solid #e5ebdf;padding:15px 0}.student-wallet time{grid-column:1/-1;color:#737e6b;font-size:12px}.student-manage{margin-top:20px}.student-manage form{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:18px 0}.student-manage input{min-width:0;flex:1;padding:10px;border:2px solid #e3e8dc;border-radius:10px}.student-manage label{width:100%;font-weight:800}.student-manage p{line-height:1.8}.student-manage #delete-yes{color:#a33920}.student-user{flex-wrap:wrap}@media(max-width:800px){.student-user{margin-left:auto}.student-bar{flex-wrap:wrap}.student-user a#student-coins{font-size:12px}.student-manage form button{flex-shrink:0}}

.survey-email{overflow-wrap:anywhere;padding:14px;border:1px solid #dbe3f1;border-radius:8px;background:#f5f8ff}
.record-index {max-width:1000px;margin:0 auto}
.index-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
.index-toolbar h1 {margin:0;font-size:clamp(23px,3vw,30px);line-height:1.25;letter-spacing:-.04em;color:#303b36}
.index-toolbar h1 small {font-size:14px;letter-spacing:0;font-weight:500;color:#63716a}
.student-site .index-toolbar .student-btn {flex:none;min-height:44px;padding:9px 15px;font-size:14px}
.material-list {--index-columns:minmax(0,1fr) minmax(7rem,22%) 5.5rem 7rem}
.record-rows {list-style:none;padding:0;margin:0;border-block:1px solid #cdd7d0}
.record-rows>li {margin:0;padding:0}.record-rows>li+li {border-top:1px solid #e1e7e3}
.index-labels,.record-index .index-row {display:grid;grid-template-columns:var(--index-columns);align-items:center;gap:12px;padding:8px 10px;text-align:start}
.index-labels {background:#f6f8f5;color:#55645b;border-top:1px solid #ced8cf;font-size:12px;font-weight:700}
.index-labels>:last-child,.index-row time {text-align:right}
.record-index .index-row {min-height:46px;line-height:1.4;color:#303b36}
.index-row:hover,.practice-item>summary:hover {background:#f4f9ef}
.record-index .index-row:focus-visible {outline-offset:-3px}
.index-title,.index-topic {min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.index-title {font-weight:700;font-size:15px}
.index-topic,.index-row time,.index-state {font-size:13px;color:#5d6962}
.index-row time {white-space:nowrap;font-variant-numeric:tabular-nums}
.index-state {white-space:nowrap;font-weight:700}.index-state[data-state="ready"] {color:#3b7020}.index-state[data-state="analyzing"] {color:#246a83}.index-state[data-state="failed"] {color:#9a4b32}
.index-empty {padding:20px 8px;margin:0;border-block:1px solid #dce3db;color:#58665c;line-height:1.6}
.practice-item {border:0;background:transparent;border-radius:0;box-shadow:none}
.practice-item>summary {display:flex;align-items:center;gap:12px;min-height:46px;padding:8px 10px}
.practice-item>summary::before {display:none}
.practice-number {font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;color:#66736b}
.practice-toggle {margin-left:auto;width:8px;height:8px;border:solid #66736b;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.practice-item[open]>summary .practice-toggle {transform:rotate(225deg)}
.practice-work {padding:8px 16px 16px;overflow-wrap:anywhere}.practice-work .katex-display {overflow-x:auto;overflow-y:hidden}
.practice-work>details {margin-top:12px}.practice-list .practice-error {padding:12px 10px;color:#9a4b32}
@media(max-width:640px){
  .index-toolbar {margin-bottom:12px}.index-labels {display:none}
  .record-index .index-row {grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title state" "topic date";gap:3px 8px;padding:7px 4px;min-height:50px}
  .board-list .index-row {grid-template-areas:"title title" "topic date"}
  .index-title {grid-area:title}.index-state {grid-area:state;text-align:right}.index-topic {grid-area:topic}.index-row time {grid-area:date}
  .index-topic,.index-row time,.index-state {font-size:12px}
}
.problem-titlebar {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}
.problem-titlebar .student-detail-title {margin:0;min-width:0}
.student-site #problem-options {flex:0 0 44px;height:44px;padding:0;border:0;background:transparent;color:#526158;font-size:24px;line-height:1}
.student-site #problem-options:hover {background:#f1f5ee}
.problem-options-dialog {width:min(24rem,calc(100% - 32px));max-height:85vh;margin:auto;padding:20px;border:1px solid #d6dfd4;border-radius:16px;background:#fff;color:var(--ink)}
.problem-options-dialog::backdrop {background:rgb(22 36 28 / .35)}
.options-heading,.options-actions {display:flex;align-items:center;justify-content:space-between;gap:12px}
.options-heading h2 {margin:0;font-size:20px}
.student-site .options-heading button {width:44px;height:44px;padding:0;border:0;font-size:24px}
.problem-options-dialog label {display:block;margin:12px 0 6px;font-size:14px;font-weight:700}
.problem-options-dialog input {width:100%;padding:10px;border:1px solid #aebbae;border-radius:8px;font:inherit}
.options-actions {margin-top:18px}.options-actions button {min-height:44px}
.student-site .options-actions [data-remove],.student-site .options-actions [data-delete],.options-error {color:#a33525}
.problem-options-dialog p {line-height:1.6}.options-error:empty {display:none}

.student-source-page{max-width:740px;margin:0 auto}.student-source-page form{margin-top:18px}.student-source-page fieldset{padding:0;border:0;margin:0;min-width:0}.student-source-page legend,.student-source-page label[for="problem-text"]{font-weight:700}.source-method{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px}.source-method label{border:1px solid #c9d6c3;border-radius:12px;padding:9px 13px;cursor:pointer}.source-method input{accent-color:#428d18}.source-method label:has(:checked){background:#f0f8e9;border-color:#7eab60}.student-source-page textarea{width:100%;box-sizing:border-box;min-height:140px;margin-top:6px;padding:12px;font:inherit;border:1px solid #b8c7b4;border-radius:12px;resize:vertical}.student-source-page [hidden]{display:none!important}.student-source-page #drop-problem{width:100%;min-height:92px;border:2px dashed #b4cfa1;background:#f8fbf4}.student-source-page #problem-preview{display:block;max-width:100%;max-height:260px;object-fit:contain;margin:10px auto}.student-source-page #start{width:100%}.student-source-page #problem-feedback:empty{display:none}.student-source-text{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;border-radius:10px;background:#f6f8f3;color:#233125}
