:root{--navy:#123d5b;--navy2:#244f72;--green:#237052;--green-soft:#e8f6ee;--blue:#2d7fac;--blue-soft:#e8f3fb;--amber:#bd7b16;--amber-soft:#fff2d8;--red:#b23d3d;--line:#d5e0e6;--bg:#eef3f6;--ink:#172832;--muted:#657985}*{box-sizing:border-box}body{margin:0;font-family:"Noto Sans KR","Malgun Gothic",sans-serif;color:var(--ink);background:var(--bg)}button,select,input{font:inherit}.hidden{display:none!important}.btn{border:1px solid #b7c6cf;background:#fff;color:#244256;padding:9px 11px;border-radius:8px;font-weight:800;cursor:pointer}.btn:disabled{opacity:.45;cursor:default}.primary{background:var(--navy);border-color:var(--navy);color:#fff}.danger{background:#fff2f2;border-color:#e4a4a4;color:#a73333}.success{background:var(--green);border-color:var(--green);color:#fff}.tiny{padding:6px 8px;font-size:12px}.wide{width:100%}.teacher-shell{height:100vh;display:grid;grid-template-columns:255px minmax(550px,1fr) 330px;grid-template-rows:64px minmax(0,1fr) 66px;grid-template-areas:"top top top" "left main side" "bottom bottom bottom";overflow:hidden}.teacher-topbar{grid-area:top;background:#2e557b;color:#fff;display:grid;grid-template-columns:255px 1fr 330px;align-items:center}.top-left{padding-left:20px}.top-left a{color:#fff;text-decoration:none;font-weight:800}.top-title{text-align:center}.top-title strong{display:block;font-size:19px}.top-title span{font-size:12px;opacity:.8}.top-limit{text-align:center;border-left:1px solid #ffffff30}.top-limit strong{font-size:22px;display:block}.top-limit span{font-size:11px}.teacher-left{grid-area:left;background:#f7fafb;border-right:1px solid var(--line);padding:18px 14px;overflow:auto}.teacher-left h2,.teacher-side h2{margin:0 0 16px;font-size:19px}.teacher-left label,.teacher-side label{display:grid;gap:6px;font-size:12px;font-weight:900;margin-bottom:12px}.teacher-left select,.teacher-side select,.teacher-side input{width:100%;padding:9px;border:1px solid #b8c8d2;border-radius:8px;background:#fff}.limit-card{padding:12px;border-radius:9px;background:#e8f2f8;color:#285b78;font-size:13px;line-height:1.55;margin:12px 0}.selection-summary{padding:12px;background:#fff;border:1px solid var(--line);border-radius:9px;margin-bottom:10px}.selection-summary>strong{display:block;color:var(--navy);margin-bottom:8px}.selected-order{display:flex;flex-wrap:wrap;gap:5px}.selected-chip{min-width:28px;padding:4px 6px;text-align:center;border-radius:6px;background:var(--amber-soft);color:#87590f;font-size:11px;font-weight:900}.teacher-left>.btn{width:100%;margin-top:8px}.session-mini{margin-top:18px;padding:13px;border-top:1px solid var(--line);text-align:center}.session-mini>span{display:block;font-size:11px;color:var(--muted)}.session-mini>strong{display:block;font-size:31px;letter-spacing:.12em;color:var(--navy)}.session-mini>small{display:block;margin-bottom:8px}.session-mini .btn{width:100%;margin-top:6px}.teacher-main{grid-area:main;min-width:0;display:flex;flex-direction:column;background:#f2f6f8}.question-toolbar{height:62px;background:#fff;border-bottom:1px solid var(--line);display:grid;grid-template-columns:110px 1fr auto;align-items:center;padding:0 18px;gap:12px}.question-id strong{font-size:28px;color:var(--navy)}.question-id span{margin-left:5px;font-weight:800}.toolbar-label{font-size:13px;color:#5e7380;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.select-btn.selected{background:var(--amber);border-color:var(--amber);color:#fff}.question-panel{flex:1;overflow:auto;margin:22px auto;padding:30px 36px;width:min(92%,800px);background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:0 7px 24px #23445810}.q-meta{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}.q-meta span{background:var(--blue-soft);color:#326987;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:900}.q-meta .answer{background:var(--green-soft);color:var(--green)}.q-stem{font-size:25px;line-height:1.55;margin:10px 0 22px;word-break:keep-all}.q-image{display:block;max-width:100%;max-height:44vh;object-fit:contain;margin:12px auto 20px}.q-options{display:grid;gap:10px}.q-option{display:grid;grid-template-columns:36px 1fr;gap:4px;padding:12px 14px;border:1px solid #ccd8df;border-radius:9px;background:#fff;font-size:16px;line-height:1.5}.q-option b{color:#2473a0;font-size:18px}.q-option.answer{background:#edf8f2;border-color:#8cc7a7}.q-option.answer b{color:var(--green)}.source-warning{padding:12px;border-radius:8px;background:#fff4d8;color:#7b5b17;margin-bottom:15px}.teacher-side{grid-area:side;background:#f8fafb;border-left:1px solid var(--line);padding:17px 13px;overflow:auto}.toc-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.toc-grid label{margin:0}.search-label{margin-top:10px}.filter-row{display:flex;align-items:center;justify-content:space-between;margin:10px 0;font-size:12px;color:var(--muted)}.question-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.qnum{min-height:42px;border:1px solid #b9c8d1;border-radius:8px;background:#fff;color:#334e60;font-size:12px;font-weight:900;cursor:pointer}.qnum.current{background:var(--navy);border-color:var(--navy);color:#fff}.qnum.used:not(.current):not(.selected){background:var(--green-soft);border-color:#91c8aa;color:var(--green)}.qnum.selected:not(.current){background:var(--amber-soft);border:2px solid #d3a24d;color:#8a5e16}.qnum.used.selected:not(.current){box-shadow:inset 0 0 0 2px #7bb696}.legend{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0;color:var(--muted);font-size:11px}.legend i{width:10px;height:10px;border:1px solid #aebec7;border-radius:3px;background:#fff;display:inline-block;margin-right:3px}.legend .current{background:var(--navy)}.legend .selected{background:#f5d89f}.legend .used{background:#cfeedd}.status-panel{border-top:1px solid var(--line);padding-top:12px;margin-top:15px}.person{display:grid;grid-template-columns:1fr auto auto;gap:7px;padding:7px 2px;border-bottom:1px solid #e5ecef;font-size:12px}.teacher-bottom{grid-area:bottom;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:255px 1fr 330px;align-items:center;padding:0 14px}.bottom-nav{display:flex;justify-content:center;gap:8px}.teacher-bottom>.primary{justify-self:end}.student-header{height:62px;background:var(--green);color:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 5vw}.student-header a{color:#fff;text-decoration:none}.student-main{max-width:760px;margin:28px auto;padding:0 14px}.student-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:25px;box-shadow:0 8px 25px #23445810}.student-card label{display:grid;gap:7px;font-weight:900}.student-card input{padding:12px;border:1px solid #bdcbd3;border-radius:8px}.quiz-top{display:flex;justify-content:space-between;color:var(--green);font-weight:900}.quiz-meta{margin-top:12px;color:var(--muted);font-size:12px}.student-card h2{font-size:24px;line-height:1.55}.quiz-image{display:block;max-width:100%;max-height:45vh;object-fit:contain;margin:10px auto 18px}.option{display:grid;grid-template-columns:36px 1fr;width:100%;text-align:left;margin:8px 0;line-height:1.5;padding:12px;border:1px solid #c9d6dc;border-radius:9px;background:#fff}.option.selected{border:2px solid var(--green);background:#edf7f2}.student-nav{display:flex;justify-content:space-between;margin-top:18px}.linkbtn{display:inline-block;text-decoration:none}.toast{position:fixed;right:20px;bottom:20px;background:#1f2c33;color:#fff;padding:12px 16px;border-radius:8px;z-index:20}@media(max-width:1050px){.teacher-shell{grid-template-columns:220px minmax(430px,1fr) 280px}.teacher-topbar{grid-template-columns:220px 1fr 280px}.teacher-bottom{grid-template-columns:220px 1fr 280px}.question-panel{padding:24px}.q-stem{font-size:21px}}@media(max-width:760px){.teacher-shell{height:auto;display:block;overflow:auto}.teacher-topbar{display:flex;justify-content:space-between;padding:10px 12px}.top-title span,.top-left{display:none}.teacher-left,.teacher-main,.teacher-side{border:0}.teacher-side{max-height:none}.teacher-bottom{position:sticky;bottom:0;display:flex;justify-content:space-between;gap:6px;padding:8px;z-index:10}.teacher-bottom>#current-page{display:none}.bottom-nav .select-btn{display:none}.question-panel{width:calc(100% - 20px);margin:10px;padding:18px}.q-stem{font-size:19px}.question-grid{grid-template-columns:repeat(6,1fr)}}

.q-context{margin:14px 0 18px;padding:12px 14px;border:1px solid #d7e3ea;border-radius:12px;background:#f8fbfd;line-height:1.65}.q-context p{margin:4px 0}.q-context.has-ab{padding-top:10px}.ab-head{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}.ab-head span{display:block;padding:8px 10px;border-radius:10px;background:#ecf3f8;color:#35556c;font-weight:700}.ab-head strong{display:inline-block;margin-right:6px;color:#123d5b}.q-image-wrap{margin:12px 0 18px}.q-image{max-width:100%;height:auto;border:1px solid #d5e0e6;border-radius:12px;background:#fff}.image-missing{margin:10px 0;padding:10px 12px;border:1px dashed #c08a8a;border-radius:10px;background:#fff6f6;color:#8a3d3d}.q-option,.option{align-items:start}.q-option .option-split,.option .option-split{display:grid;grid-template-columns:minmax(110px,.9fr) minmax(0,1.5fr);gap:10px;width:100%}.q-option .ab-left,.option .ab-left{display:block;padding-right:10px;border-right:1px solid #d7e3ea;font-weight:700;color:#244f72}.q-option .ab-right,.option .ab-right{display:block}.student-card .q-context{font-size:15px}

/* V17.5.4: 순서형 제시문 + 실시간 응답분석 */
.q-context p{
  margin:7px 0;
  padding:9px 11px;
  border:1px solid #d5e2e9;
  border-radius:9px;
  background:#fff;
}
.q-context p:first-child{margin-top:0}
.q-context p:last-child{margin-bottom:0}

.analysis-guide{
  margin:-4px 0 10px;
  font-size:11px;
  line-height:1.45;
  color:#667b87;
}
.live-analysis{
  display:grid;
  gap:7px;
  max-height:360px;
  overflow:auto;
  padding-right:2px;
}
.analysis-row{
  width:100%;
  display:grid;
  grid-template-columns:64px 72px 82px 1fr;
  gap:6px;
  align-items:center;
  padding:9px 8px;
  border:1px solid #d3dfe5;
  border-left:5px solid #b7c7cf;
  border-radius:9px;
  background:#fff;
  color:#243d4c;
  text-align:left;
  cursor:pointer;
}
.analysis-row.low{border-left-color:#5aac7b}
.analysis-row.mid{border-left-color:#e0a22f;background:#fffaf0}
.analysis-row.high{border-left-color:#d65a5a;background:#fff5f5}
.analysis-row.none{opacity:.78}
.analysis-title{display:flex;flex-direction:column}
.analysis-title b{font-size:13px}
.analysis-title span{font-size:10px;color:#748792}
.analysis-response,.analysis-wrong{font-size:11px}
.analysis-response strong,.analysis-wrong strong{display:block;font-size:13px;color:#183e57}
.analysis-row.high .analysis-wrong strong{color:#b73e3e}
.analysis-choices{display:flex;flex-wrap:wrap;gap:4px}
.analysis-choices span{
  padding:3px 5px;
  border-radius:5px;
  background:#f1f5f7;
  font-size:10px;
  white-space:nowrap;
}
.analysis-choices .correct-choice{
  background:#e4f5eb;
  color:#19704d;
  font-weight:900;
}
.participant-heading{margin-top:18px!important}

@media(max-width:1050px){
  .analysis-row{grid-template-columns:52px 62px 70px 1fr}
}
@media(max-width:760px){
  .live-analysis{max-height:none}
  .analysis-row{grid-template-columns:52px 64px 74px 1fr}
}

/* V17.5.7 그림 선택지 숫자만 표시 */
.number-only-option{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:52px!important;
}
.image-number-only{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:900;
  color:#176a92;
}
.number-only-option.selected .image-number-only{color:#0b5a91}

/* V17.6.0 teacher-paced LIVE */
.warning{background:#d28a20!important;border-color:#d28a20!important;color:#fff!important}
.teacher-side{overflow:auto}
.live-head{padding:12px;border-radius:10px;background:#eef4f7;margin-bottom:10px}
.live-head span{display:block;font-size:11px;color:#667b87}
.live-head strong{display:block;margin-top:4px;font-size:18px;color:#183e57}
.response-big{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.response-big>div{padding:16px 8px;text-align:center;border-radius:12px;background:#edf5f9}
.response-big strong{display:block;font-size:28px;color:#164c6b}.response-big span{font-size:11px;color:#6d7e87}
.response-big .wrong{background:#fff1f1}.response-big .wrong strong{color:#b23f3f}
.choice-bars{display:grid;gap:7px;margin:13px 0}
.choice-bar{display:grid;grid-template-columns:30px 1fr 48px;gap:7px;align-items:center}
.choice-bar>b{color:#226a91}.choice-track{height:22px;border-radius:6px;background:#edf2f5;overflow:hidden}
.choice-fill{height:100%;min-width:0;background:#74a9c6;transition:width .2s}.choice-bar.correct .choice-fill{background:#5cad7c}
.choice-bar span{text-align:right;font-size:12px;font-weight:800}
.round-result{padding:12px;border-radius:9px;background:#e9f6ee;color:#23694d;margin:10px 0;font-weight:800}
.round-actions{display:grid;gap:8px;margin:12px 0}
.round-actions .btn{width:100%}
.queue-title,.participant-title{font-size:12px;font-weight:900;margin:16px 0 7px;color:#506773}
.live-queue{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.queue-item{height:37px;border:1px solid #b9c9d2;border-radius:7px;background:#fff;font-size:11px;font-weight:900;color:#345366}
.queue-item.current{background:#123d5b;color:#fff;border-color:#123d5b}.queue-item.done{background:#e7f5ec;color:#287052;border-color:#9ac9aa}
.participants{max-height:230px;overflow:auto}.participant-row{display:grid;grid-template-columns:1fr auto;gap:6px;padding:7px 3px;border-bottom:1px solid #e5ecef;font-size:12px}
.joined-summary{margin:8px 0;padding:7px;border-radius:7px;background:#edf5f9;font-size:12px;font-weight:800;color:#325f76}
.center-card{text-align:center;padding:48px 25px}.pulse{width:26px;height:26px;border-radius:50%;background:#3d8a70;margin:0 auto 18px;animation:pulse 1.3s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 #3d8a7066}70%{box-shadow:0 0 0 18px #3d8a7000}100%{box-shadow:0 0 0 0 #3d8a7000}}
.student-result{margin-top:16px;padding:15px;border-radius:10px;background:#eef6f2;font-weight:800}.student-result.wrong{background:#fff0f0;color:#a93a3a}
.option.correct-reveal{background:#e7f7ed!important;border:2px solid #5cad7c!important}.option.wrong-reveal{background:#fff0f0!important;border:2px solid #dc8585!important}
.student-card .q-context{margin:12px 0}.student-card .q-context p{padding:8px 10px;border:1px solid #d7e3ea;border-radius:8px;background:#f8fbfd;margin:6px 0}
@media(max-width:760px){.response-big strong{font-size:24px}.choice-bar{grid-template-columns:26px 1fr 42px}}


/* V17.9.2 LIVE 프라이버시 + 강사용 무음 1분 알림 */
.participant-title{
  margin-top:22px;
  font-size:16px;
  font-weight:900;
  color:#27485d;
}
.privacy-response-card{
  margin-top:9px;
  padding:16px 14px;
  border:1px solid #cfdae1;
  border-radius:12px;
  background:#fff;
  text-align:center;
}
.privacy-response-card strong{
  display:block;
  font-size:24px;
  line-height:1.25;
  color:#123d5b;
}
.teacher-visual-alert{
  margin-top:12px;
  padding:13px 14px;
  border:1px solid #e5c46e;
  border-radius:12px;
  background:#fff8df;
  color:#73520d;
  display:flex;
  align-items:center;
  gap:10px;
  animation:softPulse 1.8s ease-in-out infinite;
}
.teacher-visual-alert.hidden{display:none!important}
.teacher-visual-alert .alert-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#d39a19;
  flex:0 0 auto;
}
.teacher-visual-alert strong{
  display:block;
  font-size:15px;
}
.teacher-visual-alert small{
  display:block;
  margin-top:2px;
  font-size:12px;
  color:#856c35;
}
@keyframes softPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(211,154,25,.08)}
  50%{box-shadow:0 0 0 5px rgba(211,154,25,.08)}
}

/* V18.9.6 그림문항 표시 보정: A/B 단순 표기, 보기별 그림 지원 */
.ab-head span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.ab-head b,
.ab-head strong{
  margin-right:0!important;
}
.q-options:has(.has-option-image),
#quiz-options:has(.has-option-image){
grid-template-columns:repeat(2,minmax(0,1fr));
gap:14px;
}
.q-option.has-option-image,
.option.has-option-image{
grid-template-columns:1fr!important;
padding:14px!important;
min-height:172px;
align-items:center;
justify-items:center;
}
.q-option.has-option-image:nth-last-child(1):nth-child(odd),
.option.has-option-image:nth-last-child(1):nth-child(odd){
grid-column:1 / -1;
}
.option-with-image{
display:grid;
gap:8px;
width:100%;
justify-items:center;
}
.option-with-image>span:empty{
  display:none;
}
.option-image{
display:block;
max-width:100%;
max-height:230px;
object-fit:contain;
margin:0 auto;
border:1px solid #d5e0e6;
  border-radius:10px;
  background:#fff;
}
.student-card .option-image{
max-height:220px;
}
@media(max-width:760px){
.q-options:has(.has-option-image),
#quiz-options:has(.has-option-image){
grid-template-columns:1fr;
}
.q-option.has-option-image,
.option.has-option-image{
min-height:150px;
}
.student-card .option-image,
.option-image{
max-height:210px;
}
}

.live-entry-loading{max-width:600px;margin:70px auto;padding:40px 32px;text-align:center;border:1px solid #dce3e7;border-radius:20px;background:#fff;color:#092a49;box-shadow:0 8px 30px #092a4908}.live-entry-tag{color:#2c7969;font-weight:800;font-size:15px;letter-spacing:.04em}.live-entry-loading h1{font-size:27px;line-height:1.5;margin:22px 0 12px}.live-entry-loading p{font-size:17px;line-height:1.8;color:#687680}.live-entry-loading a{display:block;margin-top:25px;color:#2c7969;font-weight:700}.live-entry-spinner{width:34px;height:34px;border:3px solid #d9eee7;border-top-color:#2c7969;border-radius:50%;animation:live-entry-spin .9s linear infinite;margin:27px auto 0}.live-entry-loading.failed .live-entry-spinner{display:none}#live-resume-status{font-size:14px;line-height:1.7;color:#687680}#join-code:focus-visible{outline:3px solid #9ccbbe;outline-offset:3px}.student-card .btn:hover{filter:brightness(.92)}.student-card .btn:focus-visible{outline:3px solid #c6a563;outline-offset:3px}@keyframes live-entry-spin{to{transform:rotate(360deg)}}@media(max-width:650px){.live-entry-loading{margin:24px 16px;padding:32px 22px}.live-entry-loading h1{font-size:24px}}@media(prefers-reduced-motion:reduce){.live-entry-spinner{animation:none}}
