/* 사이트 테마 (2026-12-05 선생 결정): codexrui dashboard-v62와 거의 같은 느낌.
   세이지 그린 팔레트, Plus Jakarta Sans 본문, 큰 둥근 바탕 + 왼쪽 아이콘 메뉴, 부드러운 등장 애니메이션.
   app.css 다음에 불러온다. 시험 화면(exam.html)과 인쇄(print.html)는 이 파일을 불러오지 않아 그대로 둔다. */
:root {
  --page: #dcdcd9;            /* 가장 바깥 바탕 */
  --bg: #ebeae6;              /* 큰 둥근 바탕 (shell) */
  --panel: #fbfbf9;           /* 카드 */
  --soft: #f2f2ef;
  --soft-2: #e9e9e5;
  --border: #e7e7e2;
  --line-2: #dcdcd6;
  --track: #ecece8;
  --text: #1c1d1b;
  --ink-2: #464744;
  --muted: #868782;
  --subtle: #b5b6b0;
  --solid: #171816;
  --accent: #3e6a52;          /* 진한 세이지 그린: 포인트색 */
  --accent-2: #5d8a70;
  --accent-soft: #e4ece6;
  --up: #4b7d5b; --up-bg: #e3eee5;
  --sage: #9ac5a2; --sand: #e8dbb9; --mist: #c7d8de; --lavender: #b8b7da;   /* 차트 보조색 */
  --shadow-card: 0 1px 1px rgba(30,30,25,.025), 0 14px 34px -24px rgba(30,30,25,.16);
  --shadow-pop: 0 26px 60px -20px rgba(25,25,20,.26), 0 4px 14px -6px rgba(25,25,20,.08);
  --shadow-lift: 0 30px 60px -28px rgba(25,25,20,.28), 0 2px 6px -2px rgba(25,25,20,.06);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --radius: 18px; --r-md: 12px; --r-sm: 10px;
  --font-body: 'Plus Jakarta Sans', -apple-system, system-ui, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --font-num: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}
body { background: var(--page); -webkit-font-smoothing: antialiased; }
h1, h2, .display { font-weight: 600; }
h1 { font-size: 26px; letter-spacing: -0.6px; }
h2 { font-size: 20px; letter-spacing: -0.3px; }
.score, .frq-pts, .q-result { font-family: var(--font-num); letter-spacing: -0.02em; font-weight: 600; }

/* ---------- 공통 부품 ---------- */
.panel, .card { border: 0; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-card); }
.panel { padding: 26px 28px; }
.card { padding: 22px 24px; }
.btn { border-radius: 999px; padding: 0 18px; border-color: var(--line-2); background: var(--panel); color: var(--ink-2);
  transition: background-color .25s, border-color .25s, transform .3s var(--spring); }
.btn:hover:not(:disabled) { background: var(--soft); color: var(--text); }
.btn.primary { background: var(--solid); border-color: var(--solid); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #2e2f2c; color: #fff; }
.btn:active:not(:disabled) { transform: scale(.95); }
input, select, textarea { border-radius: var(--r-sm); border-color: var(--line-2); background: var(--panel); transition: border-color .25s, box-shadow .25s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.badge { background: var(--soft); border-color: transparent; color: var(--ink-2); font-weight: 600; }
.badge.attention { background: var(--up-bg); color: var(--up); }
th { font-weight: 500; color: var(--muted); }
th, td { border-bottom-color: var(--border); }
tr.clickable td, .qtable tr.clickable td { transition: background-color .2s; }
tr.clickable:hover td, .qtable tr.clickable:hover td { background: var(--soft); }
.qtable th { background: transparent; }
a { text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }

/* ---------- 큰 둥근 바탕 + 왼쪽 아이콘 메뉴 ---------- */
.app.shell { --rb: clamp(42px, 5.3vh, 54px);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 2.6vw, 44px);
  width: min(1760px, calc(100% - 2 * clamp(12px, 2.4vw, 40px))); margin: clamp(12px, 2vw, 28px) auto;
  min-height: calc(100vh - 2 * clamp(12px, 2vw, 28px)); background: var(--bg); border-radius: 26px;
  padding: clamp(20px, 2.4vw, 36px) clamp(20px, 2.6vw, 42px); animation: shell-in .7s var(--ease) both; }
.rail { position: sticky; top: clamp(20px, 2.4vw, 36px); align-self: start; height: calc(100vh - clamp(64px, 8.8vw, 128px));
  min-height: 480px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0; border: 0; background: none; }
.rail-logo { width: calc(var(--rb) + 8px); height: calc(var(--rb) + 8px); display: grid; place-items: center; color: var(--accent);
  margin-bottom: clamp(4px, 2.6vh, 28px); border-radius: 50%; transition: transform .5s var(--spring); }
.rail-logo:hover { transform: rotate(30deg) scale(1.05); }
.rail-logo .logo { width: 100%; height: 100%; animation: logo-in 1.1s var(--spring) .15s both; }
.rail-logo .logo-core { fill: var(--accent); transform-origin: 24px 24px; animation: pop-in .6s var(--spring) .9s both; }
.rail-pill { position: relative; flex: 1; width: calc(var(--rb) + 18px); background: var(--panel); border-radius: 999px; padding: 9px;
  display: flex; flex-direction: column; align-items: center; gap: clamp(4px, .9vh, 10px); box-shadow: var(--shadow-card);
  animation: rail-in .9s var(--ease) .1s both; }
.rail-ind { position: absolute; top: 9px; left: 9px; width: var(--rb); height: var(--rb); border-radius: 50%; background: var(--solid);
  transition: transform .6s var(--ease), opacity .3s; opacity: 0; }
.sidebar .rail-btn, .rail-btn { position: relative; z-index: 1; width: var(--rb); height: var(--rb); flex: none; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-2); text-decoration: none; padding: 0; margin: 0; background: none;
  transition: color .35s, transform .3s var(--spring); animation: pop-in .5s var(--spring) both; }
.rail-pill .rail-btn:nth-of-type(1) { animation-delay: .35s; } .rail-pill .rail-btn:nth-of-type(2) { animation-delay: .42s; }
.rail-pill .rail-btn:nth-of-type(3) { animation-delay: .49s; } .rail-pill .rail-btn:nth-of-type(4) { animation-delay: .56s; }
.rail-pill .rail-btn:nth-of-type(5) { animation-delay: .63s; }
.sidebar a.rail-btn:hover:not(.active) { color: var(--text); transform: scale(1.08); background: none; }
.rail-btn:active { transform: scale(.9); }
.sidebar a.rail-btn.active { color: #fff; background: none; }
.no-ind .sidebar a.rail-btn.active, .sidebar .no-ind a.rail-btn.active { background: var(--solid); }   /* 표시 원이 없을 때 */
.rail-tip { position: absolute; left: calc(100% + 18px); top: 50%; translate: -6px -50%; padding: 7px 11px; border-radius: 10px;
  background: var(--solid); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0;
  transition: opacity .2s, translate .3s var(--ease); z-index: 50; }
.rail-btn:hover .rail-tip, .rail-btn:focus-visible .rail-tip { opacity: 1; translate: 0 -50%; }
.rail-out { margin-top: 4px; animation-delay: .8s; }

/* 위쪽: 인사말 + 과목 고르기 */
.main-col { min-width: 0; }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: clamp(20px, 2.6vw, 36px); }
.greet h1 { font-size: clamp(28px, 2.5vw, 38px); letter-spacing: -0.9px; line-height: 1.15; margin: 0; animation: rise .7s var(--ease) .1s both; }
.greet-sub { margin: 8px 0 0; font-size: clamp(15px, 1.25vw, 18px); color: var(--ink-2); animation: rise .7s var(--ease) .22s both; }
.top-tools { display: flex; align-items: center; gap: 12px; flex: none; }
.top-tools .course-pick { width: auto; margin: 0; height: 52px; min-height: 52px; padding: 0 44px 0 20px; border-radius: 999px; border: 0;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23464744' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
  appearance: none; -webkit-appearance: none; box-shadow: var(--shadow-card); font-size: 15px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; animation: pop-in .6s var(--spring) .3s both; }
.main { padding: 0; max-width: none; }
.page-head h1, .bank-head h1, .res-head h1 { font-size: 26px; }

/* 로그인 */
body:has(.login) { background: var(--bg); }
.login { padding: 36px 32px; gap: 14px; border-radius: 22px; box-shadow: var(--shadow-pop); animation: modal-in .7s var(--spring) both; }
.login h1 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 28px; }
.login .btn.primary { min-height: 48px; }
.login input { min-height: 48px; }
.login .error:empty { display: none; }

/* ---------- 애니메이션 ---------- */
@keyframes card-in { from { opacity: 0; transform: translateY(22px) scale(.975); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } }
@keyframes shell-in { from { opacity: 0; transform: scale(.985); } }
@keyframes logo-in { from { transform: rotate(-140deg) scale(.3); opacity: 0; } }
@keyframes rail-in { from { opacity: 0; clip-path: inset(0 0 100% 0 round 999px); } to { clip-path: inset(0 round 999px); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.94); } }
@keyframes pop-open { from { opacity: 0; transform: translateY(-6px) scale(.95); } }
.m-in { animation: card-in .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.pop { animation: pop-open .32s var(--ease) both; border-radius: var(--r-md); box-shadow: var(--shadow-pop); }
dialog[open] { animation: modal-in .5s var(--spring) both; border-radius: 18px; border: 0; box-shadow: var(--shadow-pop); }
.card, .cards > * { transition: transform .4s var(--spring), box-shadow .4s; }
/* 카드 호버 들림 없음 (사용자 2026-12-05) */

@media (max-width: 760px) {
  .app.shell { grid-template-columns: 1fr; border-radius: 18px; }
  .rail { position: static; height: auto; min-height: 0; flex-direction: row; }
  .rail-pill { flex-direction: row; width: auto; height: calc(var(--rb) + 18px); }
  .rail-ind { display: none; } .sidebar a.rail-btn.active { background: var(--solid); }
  .rail-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .card:hover { transform: none; }
}

/* ---------- Dashboard · Exams · Assignments (portal.js) ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-head { display: flex; align-items: center; gap: 14px; }
.kpi-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.tone-sage { background: #e4ece6; color: #6f8f78; } .tone-lav { background: #e7e6ef; color: #7d7c9c; }
.tone-sand { background: #f2e9d8; color: #b0915c; } .tone-mist { background: #e3ebee; color: #6f8a95; }
.tone-red { background: #f7e3df; color: #c4554a; }
.kpi h2 { margin: 0; font-size: 17px; flex: 1; }
.more { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-2); background: none; display: grid; place-items: center;
  color: var(--ink-2); font-weight: 700; letter-spacing: 1px; font-size: 12px; cursor: pointer; transition: background-color .25s, transform .3s var(--spring); }
.more:hover { background: var(--soft); transform: scale(1.06); }
.kpi-row { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.num { font: 600 44px/1 var(--font-num); letter-spacing: -1px; }
.delta { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: var(--up-bg); color: var(--up); font-size: 13px; font-weight: 600; }
.delta.warn { background: #f6ecd7; color: #b7852f; }
.kpi-note { color: var(--muted); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.card-head h2 { margin: 0; }
.card-note { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.seeall { color: var(--muted); font-weight: 500; text-decoration: none; font-size: 15px; transition: color .25s; }
.seeall:hover { color: var(--text); }
.prow { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr) 64px; gap: 16px; align-items: center; padding: 12px 8px; margin: 0 -8px;
  text-decoration: none; border-radius: 10px; transition: background-color .25s; }
.prow:hover { background: var(--soft); }
.prow + .prow { border-top: 1px solid var(--border); }
.prow .who { font-weight: 600; } .prow .sub { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.seg-bar { display: flex; gap: 4px; height: 14px; }
.seg-bar i { border-radius: 999px; height: 100%; display: block; animation: grow-x .9s var(--ease) both; transform-origin: left; }
.c-graded { background: var(--sage); } .c-submitted { background: var(--accent); } .c-progress { background: var(--lavender); } .c-not { background: var(--track); }
.pct { text-align: right; font: 600 18px var(--font-num); }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.todo { display: flex; align-items: center; gap: 14px; padding: 12px 8px; margin: 0 -8px; text-decoration: none; border-radius: 10px; transition: background-color .25s, padding .35s var(--ease); }
.todo:hover { background: var(--soft); padding-left: 14px; }
.todo + .todo { border-top: 1px solid var(--border); }
.todo .kpi-ic { width: 44px; height: 44px; }
.todo b { display: block; font-weight: 600; } .todo small { color: var(--muted); font-size: 13px; }
.todo .go { margin-left: auto; color: var(--muted); font-size: 20px; }
.chart { display: flex; align-items: flex-end; gap: 18px; height: 220px; padding: 0 8px; border-bottom: 1px dashed var(--line-2);
  background: repeating-linear-gradient(to top, transparent 0 54px, var(--border) 54px 55px); }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.chart .bar { width: 100%; max-width: 72px; height: var(--h); border-radius: 8px; background: #e0e5e1; animation: bar-grow 1s var(--ease) both; transition: background-color .3s; }
.chart .col:hover .bar { background: #cfd8d1; }
.chart .bar.hl { background: repeating-linear-gradient(135deg, var(--accent) 0 7px, #4f7a61 7px 10px); }
.chart .bar-v { font: 600 14px var(--font-num); color: var(--ink-2); }
.xlab { display: flex; gap: 18px; padding: 10px 8px 0; } .xlab span { flex: 1; text-align: center; color: var(--ink-2); font-size: 14px; }
@keyframes bar-grow { from { height: 0; } }
@keyframes grow-x { from { transform: scaleX(0); } }

.toolbar2 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.tabs2 { display: inline-flex; background: var(--panel); border-radius: 12px; padding: 4px; box-shadow: var(--shadow-card); }
.tabs2 button { height: 36px; padding: 0 16px; border-radius: 8px; border: 0; background: none; font: 600 13.5px var(--font-body); color: var(--muted); cursor: pointer; transition: color .3s, background-color .3s; }
.tabs2 button.on { background: var(--solid); color: #fff; }
.paper { display: grid; grid-template-columns: 52px minmax(0, 1.6fr) minmax(0, 1.2fr) 110px 110px 90px 40px; gap: 18px; align-items: center; padding: 14px 0; }
.paper + .paper { border-top: 1px solid var(--border); }
.paper.head { padding: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 500; }
.paper .kpi-ic { width: 48px; height: 48px; }
.paper b { font-weight: 600; display: block; } .paper small { color: var(--muted); font-size: 13px; }
.mix { display: flex; height: 10px; gap: 3px; } .mix i { border-radius: 999px; animation: grow-x .9s var(--ease) both; transform-origin: left; }
.u1{background:#3e6a52}.u2{background:#9ac5a2}.u3{background:#b8b7da}.u4{background:#e8dbb9}.u5{background:#c7d8de}.u6{background:#5d8a70}.u7{background:#d6d5e8}.u8{background:#cfc2a0}
.dbar { display: inline-flex; gap: 3px; } .dbar i { width: 16px; height: 6px; border-radius: 3px; background: var(--track); } .dbar i.on { background: var(--solid); }
.big { font: 600 20px var(--font-num); } .big small { font: 400 13px var(--font-body); color: var(--muted); } .big.sm { font-size: 16px; }
.menu-wrap { position: relative; }
.pop.right { left: auto; right: 0; top: 44px; min-width: 200px; }
.pop .opt { text-decoration: none; padding: 9px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pop .opt:hover { background: var(--soft); }
.chip2 { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }

.asg { margin-bottom: 20px; }
.asg-top { display: flex; align-items: center; gap: 16px; }
.asg-top h2 { margin: 0; }
.asg-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ring { width: 64px; height: 64px; margin-left: auto; position: relative; flex: none; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 15px var(--font-num); }
.ring-arc { animation: ring-draw 1.1s var(--ease) both; }
@keyframes ring-draw { from { stroke-dasharray: 0 164; } }
.asg .release { background: var(--soft); border: 0; border-radius: 12px; }
.stages { border: 0; background: var(--panel); border-radius: 12px; padding: 3px; gap: 2px; }
.stages button { border-radius: 9px; background: none; min-height: 34px; transition: background-color .25s, color .25s; }
.stages button + button { border-left: 0; }
.stages button.on { background: var(--solid); }
.srow { display: grid; grid-template-columns: minmax(90px, 1fr) 120px minmax(80px, 1.4fr) 140px 130px 250px; gap: 14px; align-items: center; padding: 10px 0; font-size: 14px; }
.srow + .srow { border-top: 1px solid var(--border); }
.srow.head { color: var(--muted); font-size: 13px; padding-top: 18px; }
.srow select.small { min-height: 34px; font-size: 13px; padding: 0 8px; border-radius: 10px; }
.row-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.resume { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); }
.resume input { min-height: 0; }
.st2 { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.st2::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.s-not { color: var(--subtle); } .s-progress { color: #7d7c9c; } .s-submitted { color: var(--accent); } .s-graded { color: var(--up); } .s-late { color: #c4554a; }
.mini { height: 8px; background: var(--track); border-radius: 999px; overflow: hidden; }
.mini i { display: block; height: 100%; background: var(--accent); border-radius: 999px; animation: grow-x .9s var(--ease) both; transform-origin: left; }
.asg-foot { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }

/* Assign 창: 오른쪽에서 밀려 나오는 서랍 */
dialog.drawer { margin: 16px 16px 16px auto; height: calc(100vh - 32px); max-height: none; width: min(520px, calc(100vw - 24px)); padding: 0;
  border: 0; border-radius: 18px; background: var(--panel); box-shadow: var(--shadow-pop); animation: drawer-in .6s var(--ease) both; }
dialog.drawer::backdrop { background: rgba(20, 22, 18, .32); animation: fade-in .3s ease both; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.drawer-body { display: flex; flex-direction: column; gap: 20px; padding: 28px; height: 100%; overflow: auto; }
.drawer-body h2 { font-size: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field select, .field input { width: 100%; height: 46px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { border: 2px solid var(--line-2); border-radius: 12px; padding: 14px; cursor: pointer; transition: border-color .25s, background-color .25s; }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice b { display: block; } .choice small { color: var(--muted); font-size: 12.5px; }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; cursor: pointer; }
input.sw { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: var(--track);
  position: relative; cursor: pointer; flex: none; transition: background-color .3s; }
input.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .35s var(--spring); }
input.sw:checked { background: var(--accent); } input.sw:checked::after { left: 21px; }
input.sw:focus { box-shadow: 0 0 0 4px var(--accent-soft); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .25s, color .25s, transform .3s var(--spring); }
.pills label:active { transform: scale(.94); }
.pills label:has(input:checked) { background: var(--solid); color: #fff; border-color: var(--solid); }
.pills label.off { opacity: .4; cursor: default; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.drawer-foot { margin-top: auto; display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid2 { grid-template-columns: 1fr; }
  .paper { grid-template-columns: 48px minmax(0, 1fr) 100px 90px 40px; } .paper > :nth-child(3), .paper > :nth-child(5) { display: none; }
  .srow { grid-template-columns: 1fr 110px 120px 110px; } .srow > :nth-child(3), .srow > :nth-child(6) { display: none; } }

/* ---------- Question Bank ---------- */
.bank-head { margin-bottom: 18px; gap: 10px; flex-wrap: wrap; }
.fchips { gap: 8px; margin-bottom: 18px; }
.fchip { height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--panel); box-shadow: var(--shadow-card); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: background-color .25s, color .25s, transform .3s var(--spring); }
.fchip:hover { background: var(--panel); color: var(--text); transform: translateY(-1px); }
.fchip.on { background: var(--solid); color: #fff; }
.fchip .car { opacity: .6; }
.linkbtn { font-weight: 500; }
.bank-count { color: var(--ink-2); margin-bottom: 12px; }
.panel.flush { padding: 8px 12px; border-radius: var(--radius); }
.qtable th { background: transparent; font-size: 12.5px; color: var(--muted); padding: 14px 16px 10px; }
.qtable td { height: 56px; border-bottom-color: var(--border); }
.qtable tr.clickable td:first-child { border-radius: 14px 0 0 14px; } .qtable tr.clickable td:last-child { border-radius: 0 14px 14px 0; }
.qtable tr.clickable:hover td { background: var(--soft); }
.qid { font-family: var(--font-num); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.dbars i { width: 16px; height: 6px; border-radius: 3px; background: var(--track); } .dbars i.on { background: var(--solid); }
.st { color: var(--ink-2); } .st.todo { color: #b7852f; } .st.ok::before { background: var(--sage); }
.pager button { border-radius: 10px; } .pager button.on { background: var(--solid); color: #fff; border-color: var(--solid); }
.pop { padding: 6px; border: 1px solid var(--border); }
.pop .opt.on { color: var(--accent); }
.pop-sec { color: var(--muted); }
.qtable .badge { background: var(--soft); }
.choice-row { border-radius: 10px; padding: 10px 14px; border-color: var(--border); } .rubric { background: var(--soft); border-radius: 10px; } .review .meta dt { color: var(--muted); }
/* 정답 보기: 왼쪽 굵은 선 대신 상자 전체를 같은 두께로 (2026-12-05 선생 요청) */
.choice-row.correct, .q-choice.right { box-shadow: none; border: 2px solid var(--text); padding: 9px 13px; }
/* 문제 그림의 흰 바탕이 미색 카드 위에서 보이지 않게 (원본 이미지는 그대로, 화면에서만) */
.figure img, .opt-body img, .q-text img, .choice-row img { mix-blend-mode: multiply; }
/* 문제 상세 "Fits exams for": 테두리 없이 체크박스 + 과목 이름만. 맞으면 ✓, 아니면 ✕, 같은 색 (2026-12-05 선생 요청) */
.fit-toggles { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.fit { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.fit:has(input:disabled) { cursor: default; }
.fit input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0; flex: none;
  border: 1.5px solid var(--accent); border-radius: 6px; background: var(--panel) no-repeat center / 14px; cursor: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 3.5l7 7M10.5 3.5l-7 7' stroke='%233e6a52' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fit input:checked { background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fit input:disabled { opacity: 1; }
/* 문제 상세 오른쪽: 주제별 작은 카드로 나눔 (2026-12-05 선생 요청) */
.review { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.meta-stack { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.mcard { padding: 20px 22px; border-radius: 14px; }
.mcard h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; }
.kv + .kv { border-top: 1px solid var(--border); }
.kv > span:first-child { color: var(--muted); }
.kv > span:last-child { text-align: right; }
.big-ans { padding-top: 0; }
.big-ans strong { font: 600 34px/1 var(--font-num); color: var(--text); }
.big-ans .muted { font-size: 13px; }
.topics { font-size: 14px; line-height: 1.7; }
.mnote { margin: 10px 0 0; padding: 10px 12px; background: var(--soft); border-radius: 12px; font-size: 13px; color: var(--ink-2); }
.mcard .choice-dist span { border-radius: 8px; }
.fit { font-size: 14px; gap: 8px; }
.fit input { width: 16px; height: 16px; border-radius: 4px; background-size: 10px; }

/* 탭 제목 헤더 + 필터 줄의 과목 고르기 */
.seg-row { display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.course-seg button { white-space: nowrap; }
.page-head .course-seg { margin: 0; }

/* ---------- 버튼 하나로 통일: 탭 묶음(All courses …)과 같은 높이, 같은 모서리 ---------- */
.btn, .fchip { height: 44px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-card);
  font: 600 13.5px var(--font-body); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn.primary { background: var(--solid); color: #fff; }
.btn.sm { height: 36px; min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; }
.card .btn:not(.primary), .panel .btn:not(.primary), dialog .btn:not(.primary) { background: var(--soft); box-shadow: none; }
.card .btn:not(.primary):hover:not(:disabled), .panel .btn:not(.primary):hover:not(:disabled) { background: #e9e9e4; }
.fchip:hover { transform: none; }
.tabs2 a { height: 36px; padding: 0 16px; border-radius: 8px; display: inline-flex; align-items: center; font: 600 13.5px var(--font-body); color: var(--muted); text-decoration: none; transition: color .3s, background-color .3s; }
.tabs2 a.on { background: var(--solid); color: #fff; }
.tabs2 select.seg-other { height: 36px; min-height: 36px; width: auto; border: 0; box-shadow: none; background-color: transparent; border-radius: 8px; padding: 0 30px 0 14px;
  font: 600 13.5px var(--font-body); color: var(--muted); cursor: pointer; }
.tabs2 select.seg-other.on { background-color: var(--solid); color: #fff; }
.srow select.small { height: 44px; min-height: 44px; border: 0; background-color: var(--soft); border-radius: 12px; font: 600 13.5px var(--font-body); padding: 0 32px 0 14px; }
.page-head + .seg, .seg { display: inline-flex; border: 0; background: var(--panel); border-radius: 12px; padding: 4px; gap: 0; box-shadow: var(--shadow-card); overflow: visible; }
.seg a { height: 36px; padding: 0 16px; border-radius: 8px; display: inline-flex; align-items: center; font: 600 13.5px var(--font-body); color: var(--muted); }
.seg a + a { border-left: 0; }
.seg a.on { background: var(--solid); color: #fff; }
.paper.clickable { cursor: pointer; border-radius: 12px; transition: background-color .25s; }
.paper.clickable:hover { background: var(--soft); }
.sname { border: 0; background: none; padding: 0; font: 700 14px var(--font-body); color: var(--text); text-align: left; cursor: pointer; text-decoration: none; }
.sname:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.sdetail { padding: 6px 0 14px; }
.psteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pstep { position: relative; background: var(--soft); border-radius: 12px; padding: 12px 14px 12px 34px; display: flex; flex-direction: column; gap: 3px; }
.pstep i { position: absolute; left: 13px; top: 16px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--subtle); }
.pstep.done i { background: var(--accent); border-color: var(--accent); }
.pstep.now i { border-color: #7d7c9c; background: #c9c8e3; }
.pstep b { font-size: 13.5px; } .pstep small { color: var(--muted); font-size: 12.5px; }
.grp-pills { margin-bottom: 8px; }
.umix { display: grid; grid-template-columns: 64px 1fr 28px; gap: 12px; align-items: center; padding: 7px 0; font-size: 14px; }
.umix .mini { height: 10px; } .umix b { font-family: var(--font-num); text-align: right; }
.prow2 { display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; gap: 12px; align-items: center; padding: 10px 0; font-size: 14px; }
.prow2 + .prow2 { border-top: 1px solid var(--border); }
.qrow { display: grid; grid-template-columns: 64px 96px minmax(0, 1fr) 100px 110px 100px; gap: 14px; align-items: center; padding: 11px 10px; margin: 0 -10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14px; }
.qrow + .qrow { border-top: 1px solid var(--border); }
a.qrow:hover { background: var(--soft); }
.qrow.head { color: var(--muted); font-size: 13px; padding-top: 0; }
.qrow .qn { font: 600 14px var(--font-num); color: var(--ink-2); }
.qrow b.low { color: #c4554a; }
.crumbs { margin: 0 0 14px; font-size: 14px; } .crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--text); }
@media (max-width: 900px) { .psteps { grid-template-columns: 1fr 1fr; } .qrow { grid-template-columns: 54px 1fr 90px; } .qrow > :nth-child(2), .qrow > :nth-child(4), .qrow > :nth-child(6) { display: none; } }
.mini i.u1{background:#3e6a52}.mini i.u2{background:#9ac5a2}.mini i.u3{background:#b8b7da}.mini i.u4{background:#e8dbb9}.mini i.u5{background:#c7d8de}.mini i.u6{background:#5d8a70}.mini i.u7{background:#d6d5e8}.mini i.u8{background:#cfc2a0}
.tabs2 select.seg-other { width: auto; flex: none; field-sizing: content; min-width: 84px; max-width: 220px; }
.prow2 .big.sm { text-align: right; }
.grid2 { margin-bottom: 20px; }

/* 문제 미리보기 팝업 */
.peek { position: fixed; z-index: 60; width: min(520px, calc(100vw - 24px)); max-height: min(70vh, 640px); overflow: auto; padding: 18px 20px;
  background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-pop); font-size: 14.5px; line-height: 1.55; animation: pop-open .25s var(--ease) both; }
.peek[hidden] { display: none; }
.peek p { margin: 0 0 10px; }
.peek .choice-row { margin: 6px 0; padding: 7px 11px; }
.peek .choice-row.correct { padding: 6px 10px; }
.peek .figure { margin: 6px 0 10px; } .peek .figure img { width: 100%; height: auto; }
.peek-part { margin: 10px 0; } .peek-part p { margin: 4px 0; }
.peek-head { position: sticky; top: -18px; margin: -18px -20px 12px; padding: 12px 20px; background: var(--panel); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); font-size: 13.5px; z-index: 1; }
.peek-head b { font: 600 16px var(--font-num); margin-left: 4px; }
@media (hover: none) { .peek { display: none; } }

/* ---------- 학생 포털 (student.js, 2026-12-05): 선생 화면과 같은 카드·줄 디자인 ---------- */
.sp .num small { font: 500 18px var(--font-num); color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.srow2 { display: grid; grid-template-columns: 48px minmax(0, 1.8fr) minmax(90px, .7fr) 90px 170px 130px; gap: 18px; align-items: center; padding: 12px 8px; margin: 0 -8px; border-radius: 12px; }
.srow2 + .srow2 { border-top: 1px solid var(--border); }
.srow2.head { padding: 0 8px 10px; color: var(--muted); font-size: 13px; font-weight: 500; }
.srow2 .kpi-ic { width: 48px; height: 48px; }
.srow2 b { font-weight: 600; display: block; } .srow2 small { color: var(--muted); font-size: 13px; display: block; }
.srow2 .due { display: flex; flex-direction: column; }
.srow2.clickable { cursor: pointer; transition: background-color .25s; } .srow2.clickable:hover { background: var(--soft); }
.sp .res-head { align-items: center; margin-bottom: 18px; }
.sp .res-sec { margin-top: 20px; }
.steps3 { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 18px 24px; }
.step { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.step b { display: block; font-weight: 600; font-size: 14.5px; } .step small { font-size: 12.5px; }
.step-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); flex: none; }
.step-ic svg { width: 18px; height: 18px; }
.step.on { color: var(--text); } .step.on .step-ic { background: var(--accent); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--track); border-radius: 2px; min-width: 24px; }
.sp .legend { margin: 0; } .sp .legend span { height: 30px; }
.lg-right { background: var(--soft-2); } .lg-wrong { background: #f2c9c4; } .lg-blank { background: none; border: 1.5px dashed var(--subtle); }
.sp .qgrid { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.sp .qtile { min-height: 58px; border: 0; border-radius: 12px; background: var(--soft); color: var(--text); text-decoration: none; transition: background-color .25s, transform .3s var(--spring); }
.sp .qtile b { font: 600 16px var(--font-num); } .sp .qtile span { color: var(--up); font-size: 12px; }
.sp .qtile.wrong { background: #f7e3df; color: #b4473d; } .sp .qtile.wrong span { color: #c4554a; }
.sp .qtile.blank { background: none; box-shadow: inset 0 0 0 1.5px var(--line-2); } .sp .qtile.blank span { visibility: visible; color: var(--subtle); }
.sp .qtile:hover { background: var(--soft-2); transform: scale(1.04); } .sp .qtile.wrong:hover { background: #f2d4ce; } .sp .qtile.blank:hover { background: var(--soft); }
.sp .frq-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 80px; column-gap: 20px; row-gap: 8px; align-items: center; padding: 16px 8px; margin: 0 -8px; border-radius: 12px; border: 0; color: inherit; transition: background-color .25s; }
.sp .frq-row + .frq-row { border-top: 1px solid var(--border); }
.sp .frq-row:hover { background: var(--soft); }
.frq-q { font-weight: 600; }
.frq-bar { display: flex; gap: 4px; height: 12px; }
.fpart { background: var(--track); border-radius: 999px; overflow: hidden; }
.fpart i { display: block; height: 100%; background: var(--accent); border-radius: 999px; animation: grow-x .9s var(--ease) both; transform-origin: left; }
.sp .frq-pts { text-align: right; font-size: 20px; } .sp .frq-pts small { font: 500 14px var(--font-num); color: var(--muted); }
.sp .frq-parts { grid-column: 2 / -1; display: flex; gap: 14px; margin: 0; font-size: 13px; color: var(--muted); }
.sp .frq-parts b { color: var(--ink-2); font-weight: 600; font-family: var(--font-num); }
.sp .frq-cmt { grid-column: 2 / -1; margin: 2px 0 0; padding: 10px 12px; background: var(--soft); border-radius: 12px; font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.sp .frq-cmt b { color: var(--muted); font-weight: 600; margin-right: 4px; }
.sp .heat-unit { grid-template-columns: 190px minmax(0, 1fr); padding: 12px 0; }
.sp .heat { border-radius: 10px; padding: 10px 12px; min-height: 60px; }
.sp .h4, .sp .heat-legend .h4 { background: var(--solid); } .sp .h3 { background: #6b6c68; } .sp .h2 { background: var(--soft-2); }
.sp .heat-legend i { border-radius: 4px; }
.sp .q-review { gap: 20px; } .sp .qnav { margin-bottom: 16px; }
@media (max-width: 1100px) { .srow2 { grid-template-columns: 44px minmax(0, 1fr) 90px 120px; } .srow2 > :nth-child(3), .srow2 > :nth-child(4) { display: none; }
  .steps3 { flex-wrap: wrap; } .step-line { display: none; } }
/* 학생 Dashboard / Analytics */
.hero { display: flex; flex-direction: column; gap: 18px; padding: 28px 30px; min-height: 280px; }
.hero-top { display: flex; gap: 8px; }
.hero-title { font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -1px; line-height: 1.1; margin: 0; }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hero-facts small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 4px; } .hero-facts b { font-weight: 600; font-size: 15px; }
.hero-go { align-self: flex-start; height: 52px; padding: 0 26px; font-size: 15px; margin-top: auto; }
.hero-go span { transition: transform .3s var(--spring); } .hero-go:hover span { transform: translateX(4px); }
.hero.done { justify-content: center; }
.trend { display: flex; gap: 14px; align-items: stretch; height: 250px; padding-top: 8px;
  background: repeating-linear-gradient(to top, transparent 0 49px, var(--border) 49px 50px); background-size: 100% calc(100% - 46px); background-repeat: no-repeat; }
.tcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; border-radius: 10px; transition: background-color .25s; }
.tcol:hover { background: color-mix(in srgb, var(--soft) 70%, transparent); }
.tbars { flex: 1; display: flex; gap: 5px; align-items: flex-end; justify-content: center; }
.bar2 { width: min(34px, 40%); height: var(--h); border-radius: 8px 8px 4px 4px; position: relative; animation: bar-grow 1s var(--ease) both; }
.bar2 em { position: absolute; top: -20px; left: 50%; translate: -50% 0; font: 600 12px var(--font-num); font-style: normal; color: var(--ink-2); }
.b-mcq, .c-mcq { background: var(--accent); } .b-frq, .c-frq { background: var(--sage); } .bar2.none { background: var(--track); }
.tlab { height: 38px; text-align: center; overflow: hidden; } .tlab b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlab small { color: var(--muted); font-size: 12px; }
.weak { display: grid; grid-template-columns: 44px minmax(0, 1fr) 48px; gap: 12px; align-items: center; padding: 11px 0; }
.weak + .weak { border-top: 1px solid var(--border); }
.weak-code { height: 30px; border-radius: 8px; background: #f7e3df; color: #b4473d; display: grid; place-items: center; font: 600 13px var(--font-num); }
.weak-t b { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weak .mini i { background: #d98a80; } .weak-p { text-align: right; font: 600 16px var(--font-num); }
.an-pick { height: 44px; min-width: 260px; border: 0; border-radius: 12px; box-shadow: var(--shadow-card); font: 600 13.5px var(--font-body); padding: 0 36px 0 16px; color: var(--ink-2); }
.retry { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.retry .qtile span { font-size: 10.5px; }
@media (max-width: 1100px) { .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.weak-t .mini { display: block; }
.an-pick { appearance: none; -webkit-appearance: none; padding: 0 40px 0 16px; line-height: 44px; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23464744' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; cursor: pointer; }
.retry-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; padding: 12px 0; align-items: start; }
.retry-row:has(> .retry:only-child) { grid-template-columns: 1fr; }
.retry-row + .retry-row { border-top: 1px solid var(--border); }
.retry-name { text-decoration: none; color: inherit; padding-top: 4px; } .retry-name b { display: block; font-size: 14px; font-weight: 600; } .retry-name small { color: var(--muted); font-size: 12.5px; }
.retry { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }

/* ---------- 채점 목록 (grading.js, 2026-12-05) ---------- */
.grow { display: grid; grid-template-columns: 48px minmax(0, 1.5fr) minmax(120px, 1fr) minmax(120px, 1fr) 110px 20px; gap: 18px; align-items: center; padding: 12px 8px; margin: 0 -8px; border-radius: 12px; }
.grow + .grow { border-top: 1px solid var(--border); }
.grow.head { padding: 0 8px 10px; color: var(--muted); font-size: 13px; font-weight: 500; }
.grow.clickable { cursor: pointer; transition: background-color .25s; } .grow.clickable:hover { background: var(--soft); }
.grow .kpi-ic { width: 48px; height: 48px; } .kpi-ic.av { font: 600 15px var(--font-num); }
.grow b { display: block; font-weight: 600; } .grow small { display: block; color: var(--muted); font-size: 13px; }
.grow .go { color: var(--muted); font-size: 20px; text-align: right; }
.gbar { display: flex; flex-direction: column; gap: 6px; } .gbar small { font-size: 12.5px; }
.qnum { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font: 600 16px var(--font-num); }
.grow.q { grid-template-columns: 40px minmax(0, 1.2fr) minmax(90px, 1fr) minmax(90px, 1fr) 90px 14px; gap: 14px; }
.grow.q .kpi-ic { width: 40px; height: 40px; }
.grid2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.toolbar2 > .kpi-note { margin-left: auto; }
@media (max-width: 1100px) { .grow { grid-template-columns: 44px minmax(0, 1fr) 120px 20px; } .grow > :nth-child(4), .grow > :nth-child(5) { display: none; } }
.an-pick { margin: 0; }
.grow.stu { grid-template-columns: 48px minmax(0, 1.3fr) minmax(0, 1fr) 140px 120px 20px; }
.grow .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.grow .big.sm small { display: inline; }
.grow.stu { grid-template-columns: 48px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr) 120px 110px 20px; }
.cchip { height: 30px; padding: 0 11px; border: 1.5px solid var(--line-2); border-radius: 9px; background: none; font: 600 12.5px var(--font-body); color: var(--muted); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--spring); }
.cchip:hover { color: var(--text); } .cchip:active { transform: scale(.94); }
.cchip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.grow.grp { grid-template-columns: 48px minmax(0, .8fr) minmax(0, 2fr) 80px; }
.grow.grp .btn.sm { justify-self: end; }
/* 왼쪽 메뉴의 말풍선(Sign out 등)이 카드 뒤로 숨지 않게: 메뉴 전체를 카드보다 위 층에 둔다 */
.rail { z-index: 30; }
/* Assignments: 시험 카드 접고 펴기 (맨 위 시험만 기본으로 펼침) */
.asg { padding-top: 18px; padding-bottom: 18px; }
.asg-top[data-toggle] { cursor: pointer; border-radius: 12px; margin: -6px -8px; padding: 6px 8px; transition: background-color .25s; }
.asg-top[data-toggle]:hover { background: var(--soft); }
.asg-sum { margin-left: auto; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.asg-top .ring { margin-left: 0; }
.chev { width: 28px; text-align: center; font-size: 22px; color: var(--muted); transition: transform .35s var(--ease); }
.asg.open .chev { transform: rotate(90deg); }
.asg-body { display: none; } .asg.open .asg-body { display: block; animation: rise .4s var(--ease) both; }
.srow { grid-template-columns: minmax(90px, 1fr) 120px 120px 120px 140px 130px 200px; }
.srow .when { font-size: 13px; color: var(--ink-2); }
@media (max-width: 1100px) { .srow { grid-template-columns: 1fr 110px 120px 110px; } .srow > :nth-child(3), .srow > :nth-child(4), .srow > :nth-child(7) { display: none; } }
.late-line { display: block; font-size: 11.5px; margin-top: 2px; }
.srow { grid-template-columns: minmax(90px, 1fr) 110px 120px 120px 80px 110px 130px 180px; }
.srow select.small { appearance: none; -webkit-appearance: none; padding: 0 36px 0 14px; cursor: pointer;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23464744' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.srow .big.sm small { font-size: 12px; margin-left: 1px; }
@media (max-width: 1100px) { .srow { grid-template-columns: 1fr 110px 80px 110px 130px; } .srow > :nth-child(3), .srow > :nth-child(4), .srow > :nth-child(8) { display: none; } }
.srow { grid-template-columns: minmax(90px, 1fr) 110px 120px 130px 64px 80px 48px 130px 96px; }
.srow .row-actions { justify-content: flex-end; }
@media (max-width: 1100px) { .srow { grid-template-columns: 1fr 110px 64px 80px 48px 130px; } .srow > :nth-child(3), .srow > :nth-child(4), .srow > :nth-child(9) { display: none; } }
/* 이름 칸은 짧게, 남는 폭은 오른쪽 동작 칸(Allow resume + Reset)으로 */
.srow { grid-template-columns: 130px 110px 120px 130px 60px 100px 40px 130px minmax(190px, 1fr); gap: 12px; }
.srow .row-actions { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.srow .resume, .srow .grade-state { white-space: nowrap; }
.asg-top[data-toggle]:focus:not(:focus-visible) { outline: none; }
@media (max-width: 1100px) { .srow { grid-template-columns: 1fr 110px 64px 120px 48px 130px; } }
.q-reveal { margin-top: 18px; padding: 18px; border-radius: 14px; background: var(--soft); }
.q-reveal p { margin: 0 0 12px; font-size: 14px; }
.q-hide { margin-top: 14px; }
/* 틀린 답은 초록(포인트색)이 아니라 빨강 */
.q-result.wrong { color: #c4554a; }
.q-choice.wrong { border-color: #c4554a; background: #fbecea; }
.q-choice.wrong .q-letter { background: #c4554a; border-color: #c4554a; }
.q-choice.wrong .q-tag { color: #c4554a; }

/* ---------- Analytics: Group / Exam / Student (2026-12-05) ---------- */
.an-pick.an-sm { min-width: 0; max-width: 340px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; text-align: left; }
.ms { position: relative; display: inline-block; }
.ms-btn { display: inline-block; }
.ms-pop { display: none; position: absolute; top: 52px; left: 0; z-index: 20; width: 340px; background: var(--panel); padding: 8px; }
.ms.open .ms-pop { display: block; }
.ms-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.ms-opt:hover { background: var(--soft); }
.ms-opt input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--accent); box-shadow: none; }
.ms-opt small { margin-left: auto; color: var(--muted); font-weight: 500; }
.ms-pop hr { border: 0; border-top: 1px solid var(--border); margin: 6px 4px; }
.ms-note { margin: 6px 10px 4px; font-size: 12.5px; color: var(--muted); }
.an-k { display: flex; flex-direction: column; gap: 10px; }
.an-k .num { font-size: 38px; } .an-k .num small { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.an-k .an-k-sm { font: 600 21px/1.25 var(--font-body); letter-spacing: -0.3px; display: block; }
.an-k-note { color: var(--muted); font-size: 13px; }
.an-up { color: var(--up); font-weight: 600; } .an-down { color: #b4473d; font-weight: 600; }
.an-n { font-family: var(--font-num); font-weight: 600; }
.an-more { font-size: 14px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.an-more:hover { color: var(--text); }
.an-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 38% 48px; gap: 14px; align-items: center; padding: 11px 0; font-size: 14px; }
.an-bar-row + .an-bar-row { border-top: 1px solid var(--border); }
.an-bar-row b { text-align: right; font: 600 15px var(--font-num); }
.an-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.an-facts div { background: var(--soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.an-facts b { font: 600 28px var(--font-num); } .an-facts span { color: var(--muted); font-size: 13px; }
.an-sub { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.an-table tr.clickable { cursor: pointer; }
