
:root{--ink:#2B2A26;--ink-2:#625E55;--ink-3:#8F8A80;--paper:#FAFAF7;--desk:#F2F0EB;--soft:#E8E5DE;
--wash:rgba(43,42,38,.05);--wash-2:rgba(43,42,38,.09);--line:rgba(43,42,38,.12);--line-2:rgba(43,42,38,.24);
--hl:#F6CF3E;--hl-soft:#FBEBB0;--mark:var(--hl);--bad:#B3261E;--bad-soft:#FBE7E4;--tone:var(--ink);
--shadow:0 1px 6px rgba(43,42,38,.12);--r:2px;--r-ctl:12px;--r-sheet:16px;--page:1040px;--form:560px;--gut:24px;
--font:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,sans-serif;
--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--desk);color:var(--ink);font:400 16px/1.5 var(--font);word-break:keep-all;overflow-wrap:anywhere;-webkit-font-smoothing:antialiased}
a{color:inherit}
h1{margin:0;font-size:22px;font-weight:600;line-height:1.35}
h2{margin:0;font-size:18px;font-weight:600;line-height:1.4}
h3{margin:24px 0 8px;font-size:16px;font-weight:600;line-height:1.4}
p,dl,dd,ol,ul,form{margin:0}
b,strong{font-weight:600}
small,.sub{color:var(--ink-2)}
small{font-size:13px}.remember small{font-weight:400}
.sub{font-size:15px}
.cap{color:var(--ink-2);font-size:13px;line-height:1.45}
.bad{color:var(--bad)}
.pre{white-space:pre-wrap}
.sp{flex:1}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mono{font-family:var(--mono);letter-spacing:.06em}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
/* the app bar: the mark, the class (a dot of its ink), its four tabs in the middle, the gear and her menu */
.bar{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;height:64px;padding:0 12px 0 16px;background:var(--desk);border-bottom:1px solid var(--line)}
.bar a{text-decoration:none}
.start{display:flex;align-items:center;gap:14px;min-width:0}
.end{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:0}
.brand{display:inline-flex;align-items:center;gap:10px;font-size:17px;font-weight:600;white-space:nowrap}
.mark{flex:none}.mark .k{fill:var(--ink)}.mark .p{fill:var(--paper)}.mark .h{fill:var(--hl)}
.cname{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.cname b{overflow:hidden;max-width:280px;font-size:16px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}
.cname b::before{content:'';display:inline-block;width:8px;height:8px;margin:0 8px 2px 0;border-radius:50%;background:var(--tone)}
.cname small{padding-left:16px;font-size:13px}
.tabs{display:flex;align-self:stretch}
.tabs a{display:flex;align-items:center;padding:0 18px;color:var(--ink-2);font-size:15px;font-weight:600;white-space:nowrap}
.tabs a:hover{color:var(--ink);background:var(--wash)}
.tabs a.on{color:var(--ink);box-shadow:inset 0 -3px 0 var(--tone)}
.bar.task{grid-template-columns:auto minmax(0,1fr) auto}
.title{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.title b{overflow:hidden;font-size:18px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}
.title small{font-size:13px}
.tools{display:flex;align-items:center;gap:12px}.tools:empty{display:none}
.icon{flex:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:none;color:var(--ink-2);font:inherit;font-size:22px;line-height:1;cursor:pointer;text-decoration:none}
.icon:hover{background:var(--wash);color:var(--ink)}
.icon.on{color:var(--tone);background:var(--wash)}
.icon[aria-disabled=true]{opacity:.3;pointer-events:none}
.icon svg{width:22px;height:22px}
.av{flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--soft);color:var(--ink);font-size:14px;font-weight:600}
/* a ⋮ menu: a slip of paper */
.menu{position:relative}
.menu>summary{list-style:none;cursor:pointer}.menu>summary::-webkit-details-marker{display:none}
/* every other fold: one look, a short grey name and a drawn chevron (no browser triangle); a box fold keeps its box */
summary{list-style:none;cursor:pointer}summary::-webkit-details-marker{display:none}summary::after{content:'';display:inline-block;width:7px;height:7px;margin:0 0 3px 10px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);vertical-align:middle}details[open]>summary::after{margin-bottom:-1px;transform:rotate(-135deg)}.menu>summary::after{content:none}details.more>summary,details.ai>summary,.lf-more>summary,.tpop summary{width:fit-content;padding:6px 0;color:var(--ink-2);font-size:15px;font-weight:600}details.more>summary:hover,details.ai>summary:hover,.lf-more>summary:hover{color:var(--ink)}
.pop{position:absolute;top:calc(100% + 6px);right:0;z-index:20;min-width:200px;padding:6px;border:1px solid var(--line);border-radius:var(--r-ctl);background:var(--paper);box-shadow:var(--shadow);text-align:left}
.pop.left{right:auto;left:0}
.pop a,.pop button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:6px;background:none;color:var(--ink);font:inherit;font-size:15px;font-weight:400;text-align:left;text-decoration:none;white-space:nowrap;cursor:pointer}
.pop a:hover,.pop button:hover{background:var(--wash)}
.pop .bad{color:var(--bad)}
.pop hr{margin:6px -6px;border:0;border-top:1px solid var(--line)}
.pop .who{display:flex;flex-direction:column;padding:6px 12px;line-height:1.4}.pop .who small{font-size:13px}
.pop .who>*{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.me .pop{width:max-content;max-width:min(320px,calc(100vw - 32px))}
.pop svg{flex:none;width:22px;height:22px;color:var(--ink-2)}
/* the page: one 1040 frame whose left edge stays put from tab to tab; 560 for a form on its own */
.wrap{max-width:var(--page);margin:0 auto;padding:32px var(--gut) 96px}
.wrap.form{max-width:calc(var(--form) + 2 * var(--gut))}
main.full{padding:0}
main.narrow{max-width:calc(var(--form) + 2 * var(--gut));margin:0 auto;padding:48px var(--gut) 64px}
/* the student's web view (src/webview.tsx) */
main.wv{padding-top:24px}.wv h1{margin:20px 0 4px}.wv h2{margin:28px 0 10px;font-size:17px}.wv .card{overflow:hidden}
.wv-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.wv-head>div{min-width:0}
.wv-say{margin:12px 0;padding:10px 14px;border-radius:var(--r-ctl);background:var(--wash-2);font-size:15px}.wv-say.bad{background:var(--bad-soft);color:var(--bad)}
.wv .prev{height:calc(100vh - 220px)}form.pad>label:first-of-type{margin-top:0}
.head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:20px}
.head h1{min-width:0}
.find{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:12px;color:var(--ink-2);font-size:14px}
.find input{width:100%;max-width:280px;height:40px;padding:0 14px;border:1px solid var(--line-2);border-radius:var(--r-ctl);background-color:var(--paper);color:var(--ink);font:inherit;font-size:16px}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;margin-bottom:6px;color:var(--ink-2);font-size:13px}
.crumbs a{text-decoration:none}.crumbs a:hover{color:var(--ink);text-decoration:underline}
.crumbs b{color:var(--ink);font-weight:600}
.head>.crumbs{margin:0;font-size:22px;font-weight:600}
.col{max-width:560px}.col.w640{max-width:640px}
.col>h1{margin-bottom:20px}
/* paper: flat, a hairline, square corners, the one shadow */
.card,.sheet,.reqs,.cc,details.box{border:1px solid var(--line);border-radius:var(--r);background:var(--paper);box-shadow:var(--shadow)}
.pad{padding:20px}.pad>label:first-child{margin-top:0}
.sheet{padding:32px}
.sec{margin:0 0 8px;padding:0 4px;color:var(--ink-2);font-size:13px;font-weight:600}
/* a row: the whole row is the link */
.li{display:flex;align-items:center;gap:14px;min-height:56px;padding:10px 20px;border-top:1px solid var(--line);color:inherit;text-decoration:none}
.li:first-child{border-top:0}
a.li:hover{background:var(--wash)}a.li:active{background:var(--wash-2)}
.li .t{flex:1;min-width:0}
.li .t b{display:block;overflow:hidden;font-weight:600;white-space:nowrap;text-overflow:ellipsis}
/* a row with its button (스트림's 할 일): the button takes the room, so the title wraps instead of losing its end on a phone */
.li:has(>.btn) .t b{white-space:normal}
.li .t small{display:block;font-size:13px}
.li .end{display:flex;flex:none;align-items:center;gap:8px}
/* a chip inside a row's name (the exam list's '테스트용'): beside the name, grey, its small line under both */
.li .t:has(>.tag){display:flex;flex-wrap:wrap;align-items:center;column-gap:8px}.li .t:has(>.tag)>b{flex:0 1 auto;min-width:0}.li .t:has(>.tag)>small{flex-basis:100%}.li .t .tag.todo{background:var(--wash-2);color:var(--ink-2)}
.go{flex:none;color:var(--ink-3);font-size:22px;line-height:1;text-decoration:none}
.none{padding:16px 20px;color:var(--ink-2);font-size:15px}
.ic{flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;color:var(--tone);background:color-mix(in srgb,var(--tone) 10%,transparent)}
.ic.fo{color:var(--ink-2);background:var(--wash)}
.ic svg{width:22px;height:22px}
.n{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--wash);color:var(--ink-2);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
/* 사용자: the number is said once, in the row's name ('1번 김하나'), so its circle goes */
.reqs .prow>.n,.phead+.card .li>.n{display:none}.phead+.card .li{min-height:44px;padding-top:6px;padding-bottom:6px}
/* chips: what waits for her on the highlighter, a problem in red, the rest grey */
.tag{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:var(--wash-2);color:var(--ink-2);font-size:13px;font-weight:600;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.tag.todo{background:var(--mark);color:var(--ink)}
.tag.bad{background:var(--bad-soft);color:var(--bad)}
.tag.done{padding:0 2px;background:none}.tag.done::before{content:'✓';margin-right:4px}
.tag.lock::before{content:'🔒';margin-right:4px}
progress.meter{flex:none;width:80px;height:6px;border:0;border-radius:999px;background:var(--wash-2);vertical-align:middle;-webkit-appearance:none;appearance:none;overflow:hidden}
progress.meter::-webkit-progress-bar{border-radius:999px;background:var(--wash-2)}
progress.meter::-webkit-progress-value{border-radius:999px;background:var(--tone)}
progress.meter::-moz-progress-bar{border-radius:999px;background:var(--tone)}
.of{flex:none;color:var(--ink-2);font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
/* buttons: one ink button a screen, the rest outlined */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border:1px solid var(--line-2);border-radius:var(--r-ctl);background-color:var(--paper);color:var(--ink);font:inherit;font-size:15px;font-weight:600;line-height:1;white-space:nowrap;cursor:pointer;text-decoration:none}
.btn:hover{background-image:linear-gradient(var(--wash),var(--wash))}
.btn:active{transform:translateY(1px)}
.btn.main{border-color:var(--ink);background-color:var(--ink);color:var(--paper)}
.btn.main:hover{background-image:linear-gradient(rgba(255,255,255,.12),rgba(255,255,255,.12))}
.btn.danger{border-color:var(--bad);background-color:var(--bad);color:#fff}
.btn.ghost{border-color:transparent;background-color:transparent}
.btn.sm{height:36px;padding:0 14px;border-radius:var(--r-ctl);font-size:15px}
.btn.warn{color:var(--bad)}
.btn.wide{width:100%}
.btn svg{width:20px;height:20px}
.btn[disabled]{opacity:.4;cursor:default;pointer-events:none}
/* forms */
label,.lbl{display:block;margin:20px 0 8px;font-size:14px;font-weight:600}
label.check{display:flex;align-items:center;gap:10px;margin:8px 0;font-size:15px;font-weight:400;cursor:pointer}
input[type=text],input[type=number],input[type=date],input[type=time],input[type=datetime-local],input[type=url],input[type=email],input[type=password],textarea,select{display:block;width:100%;height:44px;padding:0 14px;border:1px solid var(--line-2);border-radius:var(--r-ctl);background-color:var(--paper);color:var(--ink);font:inherit;font-size:16px}
textarea{height:auto;min-height:96px;padding:10px 14px;line-height:1.5;resize:vertical}
select{padding-right:40px;-webkit-appearance:none;appearance:none;background:var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23625E55' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center}
input::placeholder,textarea::placeholder{color:var(--ink-3)}
input:focus,textarea:focus,select:focus{outline:0;border-color:var(--ink);box-shadow:0 0 0 3px var(--hl-soft)}
input[type=checkbox],input[type=radio]{flex:none;width:20px;height:20px;margin:0;accent-color:var(--ink);cursor:pointer}
input:is([type=checkbox],[type=radio]):focus{box-shadow:none}input:is([type=checkbox],[type=radio]):focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.num{max-width:120px}
.hint{margin-top:6px;color:var(--ink-2);font-size:13px}
/* the lesson form (long, its button always in the bar under it): a box's hint shows while that box is in use */
.lf :is(input:not([type=hidden]),select,textarea):not(:focus)+.hint{display:none}
.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-top:28px}
.actions.start{justify-content:flex-start}
.empty{padding:64px 24px;text-align:center}
.empty h1{font-size:18px}
.empty p{margin-top:8px;color:var(--ink-2);font-size:15px}
.empty>p:first-child{color:var(--ink);font-size:18px;font-weight:600}.empty p.cap{font-size:13px}
.empty .btn{margin-top:20px}
.empty .btn+.btn{margin-left:8px}
/* the toast: bottom centre; a done one fades, a problem stays until tapped */
.toast{position:fixed;left:50%;bottom:24px;z-index:30;max-width:min(480px,calc(100% - 32px));margin:0;padding:14px 20px;border-radius:12px;background:var(--ink);color:var(--paper);font-size:15px;font-weight:600;line-height:1.45;transform:translateX(-50%);cursor:pointer}
.toast.bad{background:var(--bad);color:#fff}.toast.bad::after{content:'  ×'}.toast.out{display:none}
/* a press is heard at once: a line runs along the top until the next page is there */
body.busy{cursor:progress}
body.busy::before{content:'';position:fixed;top:0;left:0;z-index:40;width:100%;height:3px;background:var(--ink);transform-origin:0 50%;animation:busy 1.2s ease-out forwards}
@keyframes busy{from{transform:scaleX(0)}to{transform:scaleX(.9)}}
@media (prefers-reduced-motion:reduce){body.busy::before{animation:none;transform:scaleX(.6)}}
/* the bar under a long form: what it does, and its button, always in view */
.dock{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;gap:8px;padding:12px 16px;border-top:1px solid var(--line);background:var(--paper)}
.dock .sum{flex:1;min-width:0;overflow:hidden;color:var(--ink-2);font-size:14px;white-space:nowrap;text-overflow:ellipsis}
/* home: a card per class, its ink as the spine; what waits for her on it */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}
.cc{position:relative;display:flex;flex-direction:column;min-width:0;border-left:4px solid var(--tone)}
.cc>.menu{position:absolute;top:10px;right:6px}
.cc .ban{display:block;padding:18px 18px 14px 16px;text-decoration:none}
.cc .ban b{display:block;overflow:hidden;padding-right:36px;color:var(--tone);font-size:20px;font-weight:600;line-height:1.3;white-space:nowrap;text-overflow:ellipsis}
.cc .ban:hover b{text-decoration:underline}
.cc .ban span{display:flex;align-items:center;gap:8px;min-height:24px;margin-top:2px;color:var(--ink-2);font-size:14px}
.cc .ban i{margin-left:auto;font-size:12px;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums}
.cc .ban i:not(.tag){font-size:13px;font-weight:400}
.cc .tasks{flex:1;min-height:132px;border-top:1px solid var(--line)}
.cc .tasks .li{min-height:44px;padding:6px 14px 6px 16px}
.cc .foot{display:flex;flex-wrap:wrap;gap:4px;padding:6px 8px;border-top:1px solid var(--line)}
.storage{margin-top:32px}.head+.storage{margin:-8px 0 20px}
/* 스트림: the code in one strip with [참여 QR] and [수업 시작], the one thing to do now (big), the rest small, the announcement
   box and the posts */
.strip{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:16px;padding:12px 16px}
.strip .code{margin:0;font-size:22px}.strip .btn{height:36px;padding:0 14px}
.now{padding:20px 20px 16px;border-left:4px solid var(--tone)}
.now .k{color:var(--ink-2);font-size:13px;font-weight:600}
.now h2{margin:6px 0 2px;font-size:22px}
.now p:not(.k){color:var(--ink-2);font-size:15px}
.now .btn{margin-top:14px;height:52px;font-size:17px}
.now.none{padding:14px 20px}
.next{margin-top:12px}
.mini{display:flex;flex-wrap:wrap;gap:4px 20px;margin-top:20px;font-size:14px}.mini a{color:var(--ink-2);font-weight:600}.mini a:hover{color:var(--ink)}
details.more.due{margin-top:8px}
@media (min-width:900px){.now .btn{width:auto;padding:0 28px}}
.post{display:flex;align-items:flex-start;gap:12px;margin-top:24px;padding:12px 16px}
.post textarea{flex:1;height:44px;min-height:44px;resize:none}
.post textarea:focus,.post textarea:not(:placeholder-shown){height:120px}
.post .btn{align-self:flex-end}
.post textarea:placeholder-shown~.btn{display:none}
.feed{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.ann{display:flex;align-items:flex-start;gap:12px;padding:14px 8px 14px 16px}
.ann .t{flex:1;min-width:0}
.ann .by{margin:6px 0 4px;font-size:15px}.ann .by small{margin-left:8px;font-size:13px;white-space:nowrap}
.feed>a.li{border:1px solid var(--line);border-radius:var(--r);background:var(--paper)}
.feed>a.li small{flex:none;font-size:13px}
.code{margin:2px 0 14px;color:var(--tone);font:600 28px/1.2 var(--mono);letter-spacing:.06em}
.due a{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line);font-size:15px;text-decoration:none}
.due a:hover b{text-decoration:underline}
.due a span{flex:none;width:86px;color:var(--ink-2);font-size:13px;font-variant-numeric:tabular-nums}
.due a b{flex:1;min-width:0;overflow:hidden;font-weight:400;white-space:nowrap;text-overflow:ellipsis}
/* 과제 and 자료: the head, where the class is, 학생 과제 / 안내 */
.whead{display:flex;align-items:center;gap:8px}
.whead h1{flex:1;min-width:0}
.lk{min-width:0;height:36px;padding:0 8px;border:0;border-radius:var(--r-ctl);background:none;color:var(--ink-2);font:inherit;font-size:13px;text-overflow:ellipsis}
.meta{margin-top:4px;color:var(--ink-2);font-size:15px}
/* a 과제's one line and one bar (돌려줌 in ink, the rest turned in on the highlighter) and its one ink button, the grading view's way in */
.flow{margin:16px 0 0;padding:18px 20px}
.flow .legend{display:flex;flex-wrap:wrap;gap:4px 16px;color:var(--ink-2);font-size:14px}
.flow .legend b{color:var(--ink);font-size:17px;font-variant-numeric:tabular-nums}
.flow .bar2{display:flex;height:12px;margin:10px 0 8px;border-radius:999px;overflow:hidden;background:var(--wash-2)}
.flow .bar2 i{display:block}.flow .bar2 .r{background:var(--ink)}.flow .bar2 .s{background:var(--hl)}
.flow .btn{min-height:52px;height:auto;margin-top:16px;padding:12px 20px;font-size:17px;line-height:1.35;white-space:normal;text-align:center}
@media (min-width:900px){.flow .btn{width:auto;padding:12px 28px}}
.vt{position:absolute;opacity:0;pointer-events:none}
.seg{display:flex;gap:4px;margin:12px 0;border-bottom:1px solid var(--line)}
.seg label{margin:0;padding:12px 16px;color:var(--ink-2);font-size:15px;font-weight:600;cursor:pointer}
.seg label:hover{color:var(--ink)}
.pane{display:none}
#v-info:checked~.p-info,#v-work:checked~.p-work{display:block}
#v-info:checked~.seg label[for=v-info],#v-work:checked~.seg label[for=v-work]{color:var(--ink);box-shadow:inset 0 -3px 0 var(--tone)}
#v-info:focus-visible~.seg label[for=v-info],#v-work:focus-visible~.seg label[for=v-work]{outline:2px solid var(--ink)}
.ghead{display:flex;align-items:center;gap:12px;padding:14px 16px 6px;border-top:1px solid var(--line);scroll-margin-top:80px}
.ghead:first-child{border-top:0}
.ghead b{font-size:15px}
.ghead .all{display:flex;align-items:center;gap:8px;margin:0 0 0 auto;color:var(--ink-2);font-size:14px;font-weight:400}
.srow{display:flex;align-items:center;gap:12px;min-height:52px;padding:6px 16px}
.srow:hover{background:var(--wash)}
.srow .nm{display:flex;flex:1;align-items:center;gap:8px;min-width:0}
.srow .nm a{overflow:hidden;font-weight:600;white-space:nowrap;text-overflow:ellipsis;text-decoration:none}
.srow .nm a:hover{text-decoration:underline}
.srow .at{flex:none;width:140px;color:var(--ink-2);font-size:13px;font-variant-numeric:tabular-nums}
/* 반 시험: a student's score or code and an item's rate are the numbers she came for */
div.roster .srow .at{width:auto;min-width:96px;color:var(--ink);font-size:15px;text-align:right}div.roster .srow .at code{font:600 15px var(--mono);letter-spacing:.04em}div.roster+.head{margin-top:32px}div.roster+.cap{margin-top:16px}
.grade{display:inline-flex;flex:none;align-items:center;gap:4px;color:var(--ink-2);font-size:14px}
.grade input[type=text]{width:72px;height:36px;padding:0 10px;text-align:right;font-variant-numeric:tabular-nums}
/* 할당됨·누락: nothing in to score, so its box is faint until touched (a score still goes in: work on paper) */
.srow:has(input[data-scope=new]) .grade input:not(:focus):not(:hover){border-style:dashed;border-color:var(--line);background:transparent}
/* a row's box and [모두 고르기]: 44 px to touch, the 20 px box where it was */
.srow .pk{display:flex;flex:none;align-items:center;justify-content:center;width:44px;height:44px;margin:0 -12px;cursor:pointer}.ghead .all{min-height:44px}
.roster{counter-reset:pick}
.roster input[name=pick]:checked{counter-increment:pick}
.picked{color:var(--ink-2);font-size:14px}.picked::before{content:counter(pick) "명 고름"}
.roster:not(:has(input[name=pick]:checked)) .picked{visibility:hidden}
.roster:not(:has(input[name=pick]:checked)) .dock .main{opacity:.4;pointer-events:none}
.roster .dock{flex-wrap:wrap;justify-content:flex-end}
/* 학생 과제 at rest: no boxes, the bar under the list where the list ends; [고르기] shows the boxes, and the bar stays in view with
   the ink [돌려주기] of the picked */
form.roster .dock{position:static}form.roster:has(#pick-on:checked) .dock{position:sticky}
form.roster:not(:has(#pick-on:checked)) :is(.pk,.all){display:none}
form.roster:not(:has(#pick-on:checked,input[name=pick]:checked)) .dock .main{display:none}
form.roster .dock label.btn{margin:0}form.roster:has(#pick-on:checked) label[for=pick-on]{background-color:var(--wash-2)}#pick-on:focus-visible~.dock label[for=pick-on]{outline:2px solid var(--ink);outline-offset:2px}
.roster details.rest>summary{padding:12px 16px 12px 20px;color:var(--ink-2);font-size:15px;font-weight:600}
.info{display:flex;flex-direction:column;gap:12px}.meta+.info{margin-top:20px}
.prev{display:block;width:100%;height:calc(100vh - 260px);min-height:420px;border:1px solid var(--line);border-radius:var(--r);background:#fff}
.att{display:flex;align-items:center;gap:12px;max-width:560px;padding:12px 16px;text-decoration:none}
.att span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.att .t{flex:1;min-width:0}.att .t b,.att .t small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.att .t small{font-size:13px}
/* 과제·자료 만들기 and 수정: one column on a sheet, its button in the bar under it */
.compose .sheet{max-width:720px;margin:32px auto 0}
.compose .dock{margin-top:32px;padding:0;background:var(--desk)}
.compose .dock .in{display:flex;align-items:center;gap:8px;width:100%;max-width:calc(720px + 2 * var(--gut));margin:0 auto;padding:12px var(--gut)}
.compose hr{margin:28px 0 8px;border:0;border-top:1px solid var(--line)}
.compose #link{min-height:56px;font-size:17px;resize:vertical}
.compose .sheet>label:first-child{margin-top:0}
.or{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:16px;color:var(--ink-2);font-size:14px}
.or label.btn{margin:0}#file:focus-visible+label{outline:2px solid var(--ink);outline-offset:2px}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
.compose .pair+label.check{margin-top:20px}.compose #again{margin:0 0 8px}
.due-in{display:flex;gap:8px}
.chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:10px 14px;border:1px solid var(--line);border-radius:var(--r-ctl);background:var(--desk);color:var(--ink-2);font-size:14px}
.chip span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.said{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
/* 반 시험: the answer table's rows of the form, and the state card of an exam's screen */
.xrows{display:grid;gap:6px;margin-top:12px}
.xrow{display:grid;grid-template-columns:32px 104px minmax(0,1fr) 88px;align-items:center;gap:8px}
.xrow .xno{color:var(--ink-2);font-size:14px;text-align:right;font-variant-numeric:tabular-nums}
.xrow select,.xrow input{height:40px}
/* read off a PDF or a pasted table, for her to look at: until she changes it */
input.read{background-color:var(--hl-soft)}
.card.xnow{margin:16px 0 24px;padding:20px 24px}
.card.xnow .xhead{font-size:18px}
.card.xnow form{margin-top:12px}
.card.xnow .cap{margin-top:6px}
.said button{max-width:100%;padding:6px 12px;overflow:hidden;border:1px solid var(--line-2);border-radius:999px;background:var(--paper);color:var(--ink);font:inherit;font-size:15px;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}.said button:hover{background:var(--hl-soft);border-color:var(--hl)}
/* 수업 만들기 (32.3): a part of the lesson is a box that opens; its rows are grids of one-line boxes */
.lf-part{margin-top:12px;border:1px solid var(--line);border-radius:var(--r);background:var(--paper)}
.lf-part>summary{padding:14px 18px;font-size:16px;font-weight:600;cursor:pointer}
.lf-part[open]>summary{border-bottom:1px solid var(--line)}
.lf-body{padding:4px 18px 18px}.lf-body>.hint:first-child{margin:12px 0 8px}
.lf-body>input[type=text]+input[type=text]{margin-top:8px}
.lf-grid{display:grid;gap:8px;margin-top:8px}
.lf-w{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.6fr)}
.lf-l{grid-template-columns:130px minmax(0,1fr) 96px}
.lf-s{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.lf-head{margin-top:12px;color:var(--ink-2);font-size:13px;font-weight:600}
.lf-more{margin-top:8px}
.lf-q{display:grid;grid-template-columns:28px minmax(0,1fr) 130px;gap:8px;align-items:start;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.lf-q>b{grid-column:1;grid-row:1;padding-top:12px;text-align:right}
.lf-q>input{grid-column:2;grid-row:1}
.lf-q>select{grid-column:3;grid-row:1}
.lf-q>.lf-opts{grid-column:2/4;grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:8px}
/* AI로 채우기 (32.4): its box above the lesson's form; the button with this month's count beside it, the line about Anthropic under it */
.lf-go{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:20px}.lf-go .hint{margin:0}
.lf-ai .pair{row-gap:8px}
/* while it is asked (its button locked; 16 s and 43 s in the owner's runs, the relay stops at 120 s): words by the button, a slower line */
.lf-go:has(button[data-locked])::after{content:'AI가 수업을 만들고 있어요 · 보통 1분 안에 끝나요';font-size:15px;font-weight:600}
body.busy:has(.lf-go button[data-locked])::before{animation-duration:45s}
/* 선생님 인증 코드 (32.4.11): four big boxes of one digit, as a bank's one-time code, and [확인] beside them */
.lf-code{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.lf-code input[type=text]{width:56px;height:56px;padding:0;font-size:28px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.lf-code .btn{height:56px}.lf-code input:disabled{opacity:.4}
@media (max-width:600px){.lf-w,.lf-l,.lf-s,.lf-q,.lf-q>.lf-opts{grid-template-columns:minmax(0,1fr)}.lf-q>b,.lf-q>input,.lf-q>select,.lf-q>.lf-opts{grid-column:1;grid-row:auto}.lf-q>b{text-align:left;padding:0}.lf-head{display:none}
.lf-code{gap:8px}.lf-code input[type=text]{width:52px;height:52px}.lf-code .btn{height:52px}}
details.ai{margin-top:24px}
#prompt{min-height:120px;margin:12px 0 8px;font-size:14px}
#file-note{margin-top:8px;color:var(--ink-2);font-size:13px}#file-note.bad{color:var(--bad)}
/* the grading view: the PDF as big as the screen, the score beside it */
.grader{display:grid;grid-template-columns:minmax(0,1fr) 360px;height:calc(100vh - 65px)}
.grader .pdf{min-width:0;background:var(--desk)}
.grader .prev{height:100%;min-height:0;border:0;border-radius:0}
.panel{overflow:auto;padding:16px 24px 24px;border-left:1px solid var(--line);background:var(--paper)}
.panel .who{display:flex;align-items:center;gap:4px;margin:0 -8px}
.panel .who h1{flex:1;min-width:0;text-align:center}
.panel .state{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.panel .open{display:inline-block;margin-top:8px;font-size:14px}
.score{display:flex;align-items:center;gap:8px;color:var(--ink-2)}
.score input[type=text]{width:120px;height:56px;font-size:28px;font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.panel textarea{min-height:150px}
/* 사용자 */
.reqs{margin-bottom:32px}
.rhead{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 16px}
.prow{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 16px;border-top:1px solid var(--line)}
.prow .who{min-width:9em}.prow .who small{margin-left:6px;font-size:13px}
.acts{display:flex;gap:8px;margin-left:auto}
.reqs .none{border-top:1px solid var(--line)}
/* no request: one line, its head comes back with the first one (the box is drawn anew every 10 s) */
.reqs:has(>.none) .rhead{display:none}.reqs:has(>.none)>.none{border-top:0}
/* the head's [참여 QR] in ink (nobody in yet) goes back to outlined once a request shows up in the box: one ink button a screen */
.reqs:has(.prow)~.phead .btn.main{border-color:var(--line-2);background-color:var(--paper);color:var(--ink)}
.phead{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:12px}
.phead .missing{display:flex;flex-wrap:wrap;align-items:center;gap:4px;color:var(--ink-2);font-size:13px}
.phead .missing .tag::after{content:'번'}
.in-ok{color:var(--ink-2);font-size:14px;white-space:nowrap}
details.box{margin-top:24px;padding:0 16px}
details.box>summary{padding:14px 0;font-weight:600;cursor:pointer}
details.box[open]{padding-bottom:16px}
.foot-note{margin-top:16px}
/* 참여 QR: from the back of a classroom and on paper, black on white with its quiet zone; on a 768 px high screen the steps still fit */
.jq{display:flex;flex-direction:column;align-items:center;gap:8px;padding:20px 16px 40px;text-align:center}
.jq h1{font-size:28px}
.jq .qr{width:min(50vh,88vw);min-width:200px;height:auto;aspect-ratio:1}
.jcode{color:#000;font:600 clamp(40px,7vh,96px)/1.1 var(--mono);letter-spacing:.14em}
.jq ol{margin:4px 0 0;padding-left:1.4em;font-size:20px;line-height:1.6;text-align:left}
.jstat{display:flex;align-items:center;gap:10px}
.jstat .meter{width:120px}
/* 성적: what is still to grade in bold ink (the highlighter is one a screen at most), what is missing in red */
.scroll{width:fit-content;max-width:100%;max-height:calc(100vh - 160px);overflow:auto}
table{border-collapse:separate;border-spacing:0}
.grid th,.grid td{min-width:132px;padding:10px 12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--paper);font-size:15px;text-align:left;vertical-align:middle}
.grid thead th{position:sticky;top:0;z-index:2;vertical-align:bottom;font-weight:600}
.grid th small{display:block;font-size:13px;font-weight:400}
.grid th a{display:-webkit-box;overflow:hidden;text-decoration:none;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.grid th a:hover{text-decoration:underline}
.grid th:first-child,.grid td:first-child{position:sticky;left:0;z-index:1;min-width:200px;white-space:nowrap}
.grid thead th:first-child{z-index:3}
.grid td{padding:0;text-align:center}
.grid td:first-child{padding:8px 12px;text-align:left}
.grid td:first-child .n{margin-right:8px}
.grid td a{display:block;padding:12px;text-decoration:none;font-variant-numeric:tabular-nums}
.grid td a:hover{background-image:linear-gradient(var(--wash),var(--wash))}
.grid td .gc{display:flex;align-items:center;gap:4px;padding:6px 8px}
.grid td .gc input{display:inline-block;width:64px;height:32px;padding:0 8px;font-size:15px;text-align:right;font-variant-numeric:tabular-nums}
.grid td .gc a{flex:1;padding:6px 4px;text-align:left;white-space:nowrap}
.gform{width:fit-content;max-width:100%;margin-top:16px}
.gform .dock{margin-top:12px;border:1px solid var(--line);border-radius:var(--r)}
.grid td.c-sub{font-weight:600}
.grid td.c-bad{background:var(--bad-soft);color:var(--bad);font-weight:600}
.grid tr>:last-child{border-right:0}.grid tbody tr:last-child td{border-bottom:0}
/* 설정 and 삭제 */
.facts{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px 16px;margin:32px 0;padding-top:24px;border-top:1px solid var(--line);font-size:15px}
.facts dt{color:var(--ink-2)}
.facts dd small{display:block;margin-top:4px;font-size:13px}
.found{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:24px;font-size:22px}.found b{font-weight:600}
/* AI 연결 and its consent */
.ai-card{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:20px}
.ai-card ol.steps{margin:0;padding-left:1.4em}.ai-card ol.steps li{margin:2px 0}.ai-card details.more{margin-top:0}
.can{margin:4px 0 0;padding:0;list-style:none}
.can li{margin:6px 0}
.can li::before{content:'✓';display:inline-block;width:24px;font-weight:600}
.can.not li::before{content:'✕';color:var(--bad)}
.sheet h2{margin-top:20px;font-size:15px}
details.more{margin-top:24px}
/* 모의고사 목록 (owner 2026-11-12 "이 ui도 졸라 구리다"): what there is, then the two kinds of test side by side, then a new exam; a
   section's small title as the app's GroupTitle, a card's one line of what it is under its name, the rest behind a fold */
.xsec{margin:32px 0 8px;padding:0 4px;color:var(--ink-2);font-size:13px;font-weight:600}
.xkinds{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;align-items:start}
.xkinds>.card{margin:0!important}.xlead{margin:6px 0 0;color:var(--ink-2);font-size:15px;line-height:1.5}
.xkind .xname{margin:16px 0 0;font-weight:600}.xkind .actions{margin-top:16px}
.xkind details.more{margin-top:16px}
.xkind input[type=datetime-local]{max-width:320px}.xkind .xpick{display:flex;margin-top:12px;font-weight:400}
details.more ol{margin:8px 0;padding-left:1.4em}details.more li{margin:4px 0}
.copy{display:flex;gap:8px;margin-top:8px}.copy input{flex:1}
/* signing in, and the public pages (link, join QR, privacy) */
.login{text-align:center}
main.login{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:calc(100vh - 56px);padding:24px 16px}
main.login h1{margin-top:12px;font-size:24px}
.signin{display:flex;flex-direction:column;align-items:center;gap:12px;margin:24px 0 12px}
#apple{padding:0;border:0;background:none;line-height:0;cursor:pointer}
.lfoot{padding:0 16px 24px;text-align:center}
.login .brand{margin-bottom:20px}
.login p,.narrow p,.narrow ol,.narrow ul{margin:12px 0}
.narrow h1{margin:16px 0}.narrow h2{margin:32px 0 8px}.narrow h3{margin:20px 0 4px;font-size:16px}.narrow li{margin:8px 0}
.mt{margin-top:20px}
@media (max-width:899px){
.bar{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"start end" "tabs tabs";height:auto;padding:0}
.bar>.start{grid-area:start;height:56px;padding-left:16px}.bar>.end{grid-area:end;padding-right:8px}.bar>.mid{display:none}
.bar>.tabs{grid-area:tabs;height:48px;overflow-x:auto;border-top:1px solid var(--line)}.tabs a{padding:0 14px}
.bar.task{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:none;min-height:64px;padding:8px 12px 8px 8px}
.grader{grid-template-columns:minmax(0,1fr)}
.grader{height:auto}.grader .prev{height:60vh}
.panel{overflow:visible;border-left:0;border-top:1px solid var(--line)}
.panel .actions{position:sticky;bottom:0;margin:28px -24px -24px;padding:12px 24px;border-top:1px solid var(--line);background:var(--paper)}
.ghead{scroll-margin-top:128px}
.pair{grid-template-columns:minmax(0,1fr)}
form.roster .srow .at{display:none}}
@media (max-width:600px){
:root{--gut:16px}
/* a finger, not a pointer: the small buttons and the round icons (⋮, ×, ‹ ›) are 44 px on a phone */
.btn.sm,.find input,.strip .btn{height:44px}.icon{width:44px;height:44px}
/* 성적: the names' column as wide as the names, not 200 px of a 390 px screen */
.grid th:first-child,.grid td:first-child{min-width:0}
h1{font-size:20px}
.wrap{padding-top:24px}
.cards{grid-template-columns:minmax(0,1fr)}
.cname b{max-width:190px}
.li .end progress,.li .end .of{display:none}
.cc .tasks{min-height:0}
.feed>a.li .t b{white-space:normal}
.whead{flex-wrap:wrap}.whead .lk{order:1;flex:1 0 100%;padding:0}
.grader .prev{height:50vh}
.bar.task{grid-template-columns:auto minmax(0,1fr)}.bar.task>.tools{grid-column:1/-1;flex-wrap:wrap;justify-content:flex-end}
.jstat .meter{display:none}
.pop.left{right:0;left:auto}
.sheet,.pad{padding:20px}
.facts{grid-template-columns:minmax(0,1fr)}}
/* lesson session block on the 스트림 (32.1): status is a word and a mark, colour only helps */
.sess{margin-bottom:16px;padding:18px 20px}
.sess .top{display:flex;align-items:center;gap:12px}.sess .top h2{flex:1;min-width:0;margin:0;font-size:18px}.sess .top small{font-size:13px;font-weight:400;white-space:nowrap}
/* three numbers as tiles, the one out of the app on the highlighter while it is not 0 (/js/session.js) */
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
.tiles>div{padding:10px 12px;border:1px solid var(--line);border-radius:var(--r);background:var(--paper);color:var(--ink-2);font-size:14px}
.tiles b{display:block;color:var(--ink);font-size:28px;font-weight:600;line-height:1.15;font-variant-numeric:tabular-nums}
.tiles .away b{width:fit-content;margin-left:-6px;padding:0 6px;border-radius:6px;background:var(--mark)}
/* the three things she does in a lesson: three equal buttons (each a box's label, its state under its name), each opening its own box */
.acts3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.acts3 .btn{flex-direction:column;gap:2px;min-width:0;height:56px;margin:0;padding:0 8px;white-space:normal}
.acts3 .btn small{max-width:100%;overflow:hidden;color:var(--ink-2);font-size:12px;font-weight:400;white-space:nowrap;text-overflow:ellipsis}
.acts3 .btn.on{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
#t-cover:checked~.acts3 [for=t-cover],#t-follow:checked~.acts3 [for=t-follow],#t-board:checked~.acts3 [for=t-board]{background-color:var(--wash-2)}
#t-cover:focus-visible~.acts3 [for=t-cover],#t-follow:focus-visible~.acts3 [for=t-follow],#t-board:focus-visible~.acts3 [for=t-board]{outline:2px solid var(--ink);outline-offset:2px}
.sess .tool{display:none;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:var(--r-ctl);background:var(--desk)}
#t-cover:checked~.p-cover,#t-follow:checked~.p-follow,#t-board:checked~.p-board{display:flex}
.sess .tool form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sess .tool input[type=text]{width:260px;max-width:100%}.sess .tool input[type=number]{width:90px}.sess .tool select{width:260px;max-width:100%}
/* only the students to look at; the whole class's table folded under them */
.sess .look{margin-top:16px}.sess .look:empty{display:none}.sess .look .li{min-height:52px;padding:8px 16px}
.sess details.more{margin-top:12px}.sess details.more .tbl{margin-top:4px}
.sess .note{margin:8px 0 0;color:var(--ink-2);font-size:13px}.sess .sum{margin:0 0 8px;color:var(--ink-2);font-size:14px}
/* a data table (the live one here, a lesson's in 지난 수업): cells 15, its head 13 grey, 8 inside, a line under each row */
.sess table,.rep table{width:100%;border-collapse:collapse;font-size:15px}.sess :is(th,td),.rep :is(th,td){padding:8px;border-bottom:1px solid var(--line);text-align:left}.sess th,.sess td{white-space:nowrap}
.sess th,.rep th{color:var(--ink-2);font-size:13px;font-weight:600;white-space:nowrap}.sess td.num{font-variant-numeric:tabular-nums;white-space:nowrap}
.sess .chip{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 10px;border-radius:999px;font-size:13px;font-weight:600;border:1px solid var(--line-2)}
.sess .chip.active{background:var(--wash-2);color:var(--ink)}.sess .chip.away{background:var(--mark);color:var(--ink);border-color:var(--ink)}.sess .chip.offline{background:var(--bad-soft);color:var(--bad);border-style:dashed;border-color:var(--bad)}
.sess .chip.cover{background:var(--ink);color:var(--paper);border-color:var(--ink)}.sess .chip.follow{background:var(--hl-soft);color:var(--ink)}
@media(max-width:700px){.sess .tbl{overflow-x:auto}}
/* 지난 수업 (32.1): the list and one lesson's table; numbers in tabular figures, the share a plain bar */
.rep{padding:16px 20px}.rep>.back{display:inline-flex;align-items:center;min-height:44px;margin-top:-8px;color:var(--ink-2);font-size:16px;text-decoration:none}.rep>.back:hover{color:var(--ink)}.rep h2{margin:0 0 4px;font-size:18px}.rep h2 small{color:var(--ink-2);font-size:14px;font-weight:400}.rep .note{margin:8px 0 0;color:var(--ink-2);font-size:13px}
.rep .tnum{font-variant-numeric:tabular-nums;white-space:nowrap}.rep .sum{margin:12px 0 4px;font-size:18px;font-weight:600;white-space:normal}
.rep .live{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;font-size:13px;font-weight:600;border:1px solid var(--line-2);background:var(--wash-2);color:var(--ink)}
.rep-list{list-style:none;margin:8px 0 0;padding:0}.rep-list a{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center;padding:12px 4px;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}.rep-list a:hover{background:var(--wash)}.rep-list b{min-width:110px}
.rep-list a{display:grid;grid-template-columns:120px 170px 90px 1fr}
.rep td.none{color:var(--ink-2)}.rep td.pg{overflow-wrap:anywhere}.rep td.nm{white-space:nowrap}
.share{display:inline-flex;align-items:center;gap:8px}.rbar{display:inline-block;width:96px;height:8px;border-radius:999px;background:var(--wash-2);overflow:hidden}.rbar>span{display:block;height:100%;background:var(--ink)}
/* one lesson's table on a phone: its six columns in 390 px with the longest a row says (the heads and the times wrap at their spaces, the bar narrower) */
@media(max-width:600px){.rep.one table{overflow-wrap:normal}.rep.one :is(th,td.tnum){white-space:normal}.rep.one .share{gap:4px}.rep.one .rbar{width:24px}}
@media(max-width:600px){.rep{padding:12px}.rep th,.rep td{padding:6px 4px;font-size:13px}.rbar{width:40px}.rep .tbl{overflow-x:auto}.rep h2{font-size:16px}.rep .sum{font-size:16px}.rep-list a{grid-template-columns:auto 1fr}}
/* 모의고사 관리 (/x/exams): a part's box, the range's first and last page, the pages it sent in small, the definition's box */
.xpart{margin-bottom:16px}.xpart form{margin-top:16px}.xpart .row{margin-top:10px}.xtimes>span{flex:1;min-width:120px}
.ends{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}.ends figure{margin:0}.ends canvas{display:block;width:160px;height:auto;border:1px solid var(--line);background:#fff}
.ends figcaption{margin-top:4px;color:var(--ink-2);font-size:13px}
.thumbs{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.thumbs canvas{width:62px;height:auto;border:1px solid var(--line);background:#fff}
textarea.mono{min-height:320px;font-size:13px;letter-spacing:0}
/* printing: the 참여 QR on one A4 page */
@media print{@page{size:A4;margin:10mm}.noprint,.toast,body::before{display:none!important}body{background:#fff}main{max-width:none;padding:0}.jq .qr{width:120mm;min-width:0}.jcode{font-size:44pt}.jq ol{font-size:14pt}}

/* 수업 비서 (32.4.12, after dropship-auto's 다락 비서): her talks down the side, the talk in a reading column, her words marked
   with the highlighter, the AI's on paper with its draft as a card; the box stays at the foot of the screen */
.talkwrap{display:grid;grid-template-columns:240px minmax(0,1fr);gap:0;min-height:calc(100vh - 64px)}
.tside{position:sticky;top:64px;align-self:start;display:flex;flex-direction:column;gap:12px;height:calc(100vh - 64px);padding:16px;border-right:1px solid var(--line);overflow:auto}
.btn.block{width:100%}
.tlist{display:flex;flex-direction:column;gap:2px}
.tlist a{display:block;padding:9px 10px;border-radius:8px;color:var(--ink-2);font-size:14px;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tlist a:hover{background:var(--wash)}
.tlist a.on{background:var(--wash-2);color:var(--ink);font-weight:600}
.tcol{display:flex;flex-direction:column;width:100%;max-width:760px;margin:0 auto;padding:16px max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px));min-width:0}
.tpop{display:none}
.tpop summary{padding:6px 0}
.tpop .panel{display:flex;flex-direction:column;gap:12px;padding:12px;margin:4px 0 12px;background:var(--paper);border:1px solid var(--line);border-radius:var(--r-ctl)}
.tcol .hero{display:flex;flex-direction:column;gap:12px;margin:auto 0;padding:48px 0 24px}
.tcol .hero h1{font-size:28px;text-wrap:balance}
.tcol .hero .lead{color:var(--ink-2);max-width:60ch}
.thread{display:flex;flex-direction:column;gap:20px;padding:8px 0 24px;flex:1}
.bub{display:flex;gap:10px;align-items:flex-start;max-width:100%}
.bub .av{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--ink);color:var(--paper);font-size:12px;font-weight:700;letter-spacing:.04em}
.bub .bd{display:flex;flex-direction:column;gap:10px;min-width:0;max-width:100%}
.bub .t{white-space:pre-wrap;line-height:1.6}
.bub.me{justify-content:flex-end}
.bub.me .bd{max-width:min(560px,85%)}
.bub.me .t{padding:10px 14px;border-radius:14px 14px 4px 14px;background:var(--hl-soft)}
.bub.bad .t{color:var(--bad)}
.bub.wait .t b{font-variant-numeric:tabular-nums;font-weight:600}
.bub.wait .av{animation:talkpulse 1.4s ease-in-out infinite}
@keyframes talkpulse{50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){.bub.wait .av{animation:none}}
.tcard{display:flex;flex-direction:column;gap:6px;align-items:flex-start;padding:16px 18px;background:var(--paper);border:1px solid var(--line);border-radius:var(--r-ctl);box-shadow:var(--shadow)}
.tcard .tlabel{font-size:13px}
.tcard .ttitle{font-size:18px;font-weight:600;line-height:1.35;background:linear-gradient(transparent 62%,var(--hl-soft) 62%)}
.tcard .tsub{color:var(--ink-2);font-size:14px}
.tcard .tgoal{font-size:14px;line-height:1.55}
.tcard .tparts{color:var(--ink-2);font-size:14px}
.tcard form{margin-top:6px}
.composer{position:sticky;bottom:0;display:flex;flex-direction:column;gap:8px;padding:12px 0 max(16px,env(safe-area-inset-bottom,0px));background:var(--desk)}
.composer form{display:flex;flex-direction:column;gap:8px;padding:10px 12px;background:var(--paper);border:1px solid var(--line-2);border-radius:14px}
.composer form:focus-within{border-color:var(--ink)}
.composer textarea{width:100%;min-height:48px;max-height:40vh;padding:4px 2px;border:0;background:transparent;color:inherit;font:inherit;resize:vertical;outline:none}
.composer .crow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.composer select{width:auto;max-width:60%;height:34px;padding:0 32px 0 10px;background-position:right 10px center;border:1px solid var(--line);border-radius:8px;font-size:14px}
.composer .crow .hint{margin:0}
.composer .send{margin-left:auto;display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:var(--ink);color:var(--paper);font-size:18px;font-weight:700;cursor:pointer}
.composer .send:disabled{opacity:.35;cursor:default}
.composer > .hint{font-size:13px;color:var(--ink-2)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.tchip{padding:8px 12px;border:1px solid var(--line-2);border-radius:999px;background:var(--paper);color:var(--ink);font:inherit;font-size:14px;text-align:left;cursor:pointer}
.tchip:hover{background:var(--hl-soft);border-color:var(--hl)}
.modal{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:16px;background:rgba(43,42,38,.35)}
.modal .sheet{display:flex;flex-direction:column;gap:12px;width:min(440px,100%);background:var(--paper);border-radius:var(--r-sheet);box-shadow:var(--shadow);padding:24px}
.modal .acts{display:flex;justify-content:flex-end;gap:8px}
.lf-talk{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
@media (max-width:800px){
  .talkwrap{grid-template-columns:minmax(0,1fr)}
  .tside{display:none}
  .tpop{display:block}
  .composer .send{width:44px;height:44px}
  .tcol .hero{padding-top:24px}
  .tcol .hero h1{font-size:24px}
}
