@import url("/assets/daitg-panel-design.css?v=20261005-layerlab2");
:root {
  --os-blue: #2563eb;
  --os-red: #dc2626;
  --os-orange: #d97706;
  --os-purple: #7c3aed;
  --os-teal: #2563eb;
  --os-ink: #172033;
  --os-line: #dce4f0;
  --os-soft: #f6f8fc;
}

/* 모든 과목 Da it G의 공통 첫 진입: 나비쌤 판서 해설 */
.daitg-guided-first{display:flex;width:calc(100% - 16px);min-width:280px;box-sizing:border-box;align-items:center;gap:11px;margin:8px;padding:11px 12px;border:1px solid #9dbcf4;border-radius:12px;background:linear-gradient(135deg,#eff6ff 0%,#f5f3ff 100%);color:#173b7a;box-shadow:0 5px 15px rgba(37,99,235,.10);font-family:inherit;text-align:left;cursor:pointer}.daitg-guided-first:hover,.daitg-guided-first:focus-visible{border-color:#2563eb;background:linear-gradient(135deg,#e3efff 0%,#ede9fe 100%);outline:0;transform:translateY(-1px)}.daitg-guided-first>i{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#2563eb;color:#fff;font-style:normal;font-size:13px;box-shadow:0 4px 10px rgba(37,99,235,.2)}.daitg-guided-first>i .daitg-ui-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.daitg-guided-first>span{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.daitg-guided-first b{font-size:13px;font-weight:900;line-height:1.25}.daitg-guided-first small{color:#52647f;font-size:10.5px;font-weight:700;line-height:1.35;word-break:keep-all}.daitg-guided-first>em{color:#2563eb;font-style:normal;font-size:19px;font-weight:900}.korean-neo-menu>.daitg-guided-first{width:calc(100% - 24px);margin:0 12px 10px}.daitg-select-step>.daitg-guided-first{width:100%;margin:0 0 13px}
@media(max-width:560px){.daitg-guided-first{min-width:0;width:calc(100% - 12px);margin:6px;padding:10px}.korean-neo-menu>.daitg-guided-first{width:calc(100% - 20px);margin:0 10px 9px}}
.sr-only { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }

/* Korean and mathematics one-shot extensions */
.pe-oneshot-trigger.subject-oneshot-trigger { margin: 2px 0 10px; }

/* 긴 지문에서도 현재 문항의 Da it G를 화면 오른쪽 위에 유지 */
.pe-daitg-sticky-trigger { position: fixed; top: var(--daitg-sticky-top, 16px); right: var(--daitg-sticky-right, 16px); z-index: 2147483001; display: none; align-items: center; justify-content: center; gap: 6px; min-width: 78px; height: 32px; padding: 0 10px; border: 1px solid #1f5ff2; border-radius: 7px; background: #2563eb; color: #fff; font: 850 11px/1 "Pretendard Variable", Pretendard, sans-serif; white-space: nowrap; cursor: pointer; box-shadow: 0 5px 14px rgba(31,95,242,.24); }
.pe-daitg-sticky-trigger[data-visible="true"] { display: inline-flex; }
.pe-daitg-sticky-trigger:hover, .pe-daitg-sticky-trigger:focus-visible { background: #1d4ed8; border-color: #1d4ed8; }
.pe-daitg-sticky-trigger:focus-visible { outline: 3px solid rgba(37,99,235,.25); outline-offset: 2px; }
@media (max-width: 700px) { .pe-daitg-sticky-trigger { top: 10px; right: 10px; min-width: 70px; height: 30px; padding: 0 8px; } }
.ko-os-flowchart { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; margin:18px 0; }
.ko-os-node { position:relative; min-height:112px; padding:14px 12px; border:1px solid currentColor; border-radius:8px; background:#fff; color:#2563eb; }
.ko-os-node:not(:last-child)::after { content:"\2192"; position:absolute; right:-20px; top:42px; color:#64748b; font-size:22px; font-weight:800; }
.ko-os-node.reason { color:#d97706; }
.ko-os-node.transition { color:#7c3aed; }
.ko-os-node.conclusion { color:#2563eb; }
.ko-os-node b,.ko-os-node span { display:block; }
.ko-os-node b { font-size:13px; margin-bottom:8px; }
.ko-os-node span { color:#334155; font-size:12px; line-height:1.55; }
.ko-os-summary { display:grid; grid-template-columns:120px 1fr; gap:8px 14px; margin-top:15px; padding:14px; border:1px solid #cfd9ea; border-radius:8px; background:#fbfcff; font-size:12.5px; line-height:1.5; }
.ko-os-summary b { color:#172033; }
.ko-os-summary span { color:#43506a; }

.subject-oneshot-math { position:absolute; inset:0; z-index:4; display:flex; flex-direction:column; min-height:0; padding:12px 14px 10px; background:#fff; border-radius:18px; }
.subject-oneshot-math[hidden] { display:none; }
.coach-card.subject-oneshot-open > :not(.subject-oneshot-math) { display:none !important; }
.coach.subject-oneshot-open { position:relative; overflow:hidden; }
.coach.subject-oneshot-open > :not(.subject-oneshot-math) { display:none !important; }
.coach.subject-oneshot-open .subject-oneshot-math { border-radius:0; }
.app.subject-oneshot-open .grid2 { grid-template-columns:minmax(0,1.25fr) minmax(600px,.95fr) !important; }
.math-os-steps { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(190px,.65fr); gap:14px; }
.math-os-step-list { display:flex; flex-direction:column; gap:9px; }
.math-os-step { position:relative; display:grid; grid-template-columns:34px 1fr; gap:10px; align-items:start; }
.math-os-step:not(:last-child)::after { content:"\2193"; position:absolute; left:11px; bottom:-13px; color:#64748b; font-size:18px; }
.math-os-step-no { width:32px; height:32px; border-radius:999px; display:grid; place-items:center; background:#2563eb; color:#fff; font-size:13px; font-weight:900; }
.math-os-step:nth-child(2) .math-os-step-no { background:#d97706; }
.math-os-step:nth-child(3) .math-os-step-no { background:#7c3aed; }
.math-os-step:nth-child(4) .math-os-step-no { background:#2563eb; }
.math-os-step-card { min-height:78px; padding:11px 12px; border:1px solid #dce5f3; border-radius:8px; background:#fff; }
.math-os-step-head { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.math-os-step-head b { color:#172033; font-size:14px; }
.math-os-step-head em { padding:3px 7px; border-radius:5px; background:#eef4ff; color:#2563eb; font-size:10px; font-style:normal; font-weight:900; }
.math-os-step-card p { margin:7px 0 0; color:#475569; font-size:12.5px; line-height:1.5; }
.math-os-formula { margin-top:5px; color:#1d4ed8; font-family:Georgia,"Times New Roman",serif; font-size:14px; font-weight:700; }
.math-os-concept { padding:14px; border:1px solid #dce5f3; border-radius:8px; background:#fbfcff; }
.math-os-concept h4 { margin:0 0 10px; color:#172033; font-size:14px; }
.math-os-concept p { margin:7px 0; color:#475569; font-size:12px; line-height:1.55; }
.math-os-summary { display:grid; grid-template-columns:repeat(3,1fr); margin-top:13px; border:1px solid #cfd9ea; border-radius:8px; overflow:hidden; }
.math-os-summary div { padding:12px; text-align:center; border-left:1px solid #e4eaf3; }
.math-os-summary div:first-child { border-left:0; }
.math-os-summary b,.math-os-summary span { display:block; }
.math-os-summary b { color:#2563eb; font-size:11px; margin-bottom:6px; }
.math-os-summary span { color:#172033; font-size:12px; font-weight:750; line-height:1.45; }
.subject-oneshot-coach-trigger {
  order:-10;
  min-height:38px;
  padding:0 13px;
  border:1px solid #2563eb;
  border-radius:9px;
  background:#2563eb;
  color:#fff;
  font:850 12px/1 "Pretendard Variable",Pretendard,sans-serif;
  cursor:pointer;
}
.subject-oneshot-coach-trigger:hover { background:#1d4ed8; }
.subject-oneshot-coach-trigger[hidden] { display:none !important; }
.math-tutor-menu-trigger {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 9px;
  box-shadow: 0 5px 14px rgba(37,99,235,.2);
}
.math-tutor-card-trigger {
  width:auto;
  min-width:78px;
  height:30px;
  min-height:30px;
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 9px;
  border:1px solid #cbd8ee;
  border-radius:7px;
  background:#2563eb;
  color:#fff;
  cursor:pointer;
  box-shadow:0 3px 9px rgba(37,99,235,.16);
}
.math-tutor-card-trigger .math-tutor-grid-icon { transform:scale(.82); }
.math-tutor-card-trigger::after,
.math-course-analysis-trigger::after,
.pe-oneshot-trigger.subject-oneshot-trigger::after {
  content:"Da it G";
  color:currentColor;
  font:850 11px/1 "Pretendard Variable",Pretendard,sans-serif;
  letter-spacing:.01em;
  white-space:nowrap;
}
.math-tutor-grid-icon { width:17px; height:17px; display:grid; grid-template-columns:repeat(2,6px); grid-template-rows:repeat(2,6px); gap:3px; place-content:center; }
.math-tutor-grid-icon i { display:block; width:6px; height:6px; border:1.5px solid currentColor; border-radius:2px; background:rgba(255,255,255,.08); }

.math-tutor-menu-popover { position:fixed; z-index:10070; width:max-content; max-width:calc(100vw - 12px); max-height:min(360px,calc(100vh - 12px)); overflow:auto; border:1px solid #cbd6e7; border-radius:8px; background:#fff; box-shadow:0 12px 32px rgba(15,23,42,.2); }
.math-tutor-menu-groups { display:grid; gap:0; padding:2px 3px; }
.math-tutor-menu-group { display:grid; grid-template-columns:78px max-content; gap:4px; align-items:center; padding:4px 2px; border-bottom:1px solid #e5eaf2; }
.math-tutor-menu-group:last-child { border-bottom:0; }
.math-tutor-menu-label { min-height:26px; display:flex; align-items:center; padding-left:5px; color:#26364f; }
.math-tutor-menu-label b { font-size:11px; }
.math-tutor-menu-items { display:flex; flex-wrap:nowrap; gap:3px; }
.math-tutor-menu-item { min-height:26px; padding:0 7px; border:1px solid #d5deeb; border-radius:5px; background:#fff; color:#3c485c; font:800 10.5px/1 "Pretendard Variable",Pretendard,sans-serif; cursor:pointer; }
.math-tutor-menu-item:hover,.math-tutor-menu-item:focus-visible { border-color:#6f96dd; background:#f6f9ff; color:#174ea6; outline:2px solid rgba(37,99,235,.16); outline-offset:1px; }
.math-tutor-menu-item.is-current { border-color:#245fd4; background:#edf3ff; color:#174ea6; }

.math-tutor-panel-nav { display:grid; grid-template-columns:42px 1fr auto; gap:10px; align-items:center; padding:10px 0 11px; border-bottom:1px solid #dce4f0; }
.math-tutor-panel-menu { width:38px; height:38px; display:grid; place-items:center; padding:0; border:1px solid #245fd4; border-radius:8px; background:#245fd4; color:#fff; cursor:pointer; }
.math-tutor-panel-nav small,.math-tutor-panel-nav strong { display:block; }
.math-tutor-panel-nav small { margin-bottom:2px; color:#788397; font-size:10px; font-weight:800; }
.math-tutor-panel-nav strong { color:#172033; font-size:13px; }
.math-tutor-panel-nav > span { padding:4px 7px; border:1px solid #d6dfec; border-radius:6px; color:#627087; font-size:10px; font-weight:800; }

.pe-coach.subject-oneshot-open { position:relative; flex-basis:min(680px,52vw); width:min(680px,52vw); overflow:hidden; }
.pe-coach.subject-oneshot-open > :not(.subject-oneshot-math) { display:none !important; }
.pe-coach.subject-oneshot-open .subject-oneshot-math { border-radius:0; }

.math-tutor-content { min-height:100%; padding:18px; color:#172033; }
.math-tutor-content > header { margin-bottom:14px; padding-bottom:13px; border-bottom:1px solid #e1e7f0; }
.math-tutor-content > header small { display:block; margin-bottom:5px; color:#245fd4; font-size:10.5px; font-weight:850; }
.math-tutor-content > header h4 { margin:0; color:#172033; font-size:17px; letter-spacing:0; }
.math-tutor-content > header p { margin:7px 0 0; color:#5d697c; font-size:12px; line-height:1.55; }
.math-tutor-content-cards { display:grid; gap:9px; }
.math-tutor-content-cards article { display:grid; grid-template-columns:30px minmax(0,1fr); gap:10px; padding:12px; border:1px solid #dce4ef; border-radius:8px; background:#fff; }
.math-tutor-content-cards article > span { width:28px; height:28px; display:grid; place-items:center; border-radius:7px; background:#edf3ff; color:#245fd4; font-size:11px; font-weight:900; }
.math-tutor-content-cards article b { display:block; color:#243047; font-size:13px; }
.math-tutor-content-cards article p { margin:5px 0 0; color:#566276; font-size:12px; line-height:1.55; }
.math-tutor-primary { width:100%; min-height:42px; margin-top:13px; border:1px solid #245fd4; border-radius:8px; background:#245fd4; color:#fff; font:850 12px/1 "Pretendard Variable",Pretendard,sans-serif; cursor:pointer; }
.math-tutor-primary:hover { background:#194da9; }
.math-tutor-primary:disabled { opacity:.55; cursor:wait; }
.math-video-panel { min-height:0; }
.math-video-brief {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px;
}
.math-video-brief > div {
  min-width:0;
  padding:10px 11px;
  border:1px solid #d9e2ef;
  border-radius:7px;
  background:#f8faff;
}
.math-video-brief b { display:block; margin-bottom:4px; color:#245fd4; font-size:10.5px; }
.math-video-brief span { display:block; color:#3c4a60; font-size:11.5px; line-height:1.5; overflow-wrap:anywhere; }
.math-video-status {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  min-height:112px;
  padding:16px;
  border:1px solid #d9e2ef;
  border-radius:7px;
  background:#f8faff;
  text-align:left;
}
.math-video-status > div { display:grid; gap:4px; min-width:0; }
.math-video-status b { color:#25334a; font-size:12.5px; }
.math-video-status span { color:#667389; font-size:11.5px; line-height:1.5; }
.math-video-status button,
.math-video-refresh {
  min-height:34px;
  padding:0 12px;
  border:1px solid #aebed4;
  border-radius:6px;
  background:#fff;
  color:#28415f;
  font:800 11px/1 "Pretendard Variable",Pretendard,sans-serif;
  cursor:pointer;
}
.math-video-status.is-error { border-color:#e4c7c7; background:#fffafa; }
.math-video-source { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin:2px 0 8px; }
.math-video-source span { color:#24324a; font-size:12px; font-weight:850; }
.math-video-source small { color:#778399; font-size:10.5px; text-align:right; }
.math-video-list { display:grid; gap:8px; }
.math-video-card {
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  gap:10px;
  align-items:center;
  width:100%;
  min-width:0;
  padding:7px;
  border:1px solid #d8e0eb;
  border-radius:7px;
  background:#fff;
  color:#26344a;
  text-align:left;
  cursor:pointer;
}
.math-video-card:hover,
.math-video-card.is-playing { border-color:#6995df; background:#f7faff; }
.math-video-card img,
.math-video-card-mark {
  display:block;
  width:112px;
  aspect-ratio:16/9;
  border-radius:5px;
  object-fit:cover;
  background:#e9eef6;
}
.math-video-card-mark { display:grid; place-items:center; color:#245fd4; font-size:19px; }
.math-video-card > span:last-child { display:grid; gap:5px; min-width:0; }
.math-video-card b { color:#26344a; font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.math-video-card small { color:#728096; font-size:10.5px; line-height:1.4; }
.math-video-refresh { width:100%; margin-top:9px; }
.math-video-player {
  position:relative;
  display:grid;
  gap:7px;
  margin-bottom:12px;
  padding:8px;
  border:1px solid #b9c9df;
  border-radius:7px;
  background:#f7f9fc;
}
.math-video-player iframe,
.math-video-player video { display:block; width:100%; aspect-ratio:16/9; border:0; border-radius:5px; background:#111827; }
.math-video-player > b { padding:0 2px 2px; color:#28364b; font-size:11.5px; line-height:1.45; }
.math-video-player > button {
  position:absolute;
  z-index:2;
  top:13px;
  right:13px;
  display:grid;
  width:28px;
  height:28px;
  place-items:center;
  border:1px solid rgba(255,255,255,.75);
  border-radius:50%;
  background:rgba(15,23,42,.82);
  color:#fff;
  font-size:17px;
  cursor:pointer;
}
.math-tutor-animation { display:grid; gap:10px; padding:8px 0; }
.math-tutor-animation > div { position:relative; display:grid; grid-template-columns:minmax(90px,.55fr) minmax(0,1.45fr); gap:12px; align-items:center; padding:12px 14px; border:1px solid #cfd9e8; border-radius:8px; background:#fff; animation:mathTutorReveal .55s ease both; animation-delay:calc(var(--delay) * .16s); }
.math-tutor-animation > div:not(:last-child)::after { content:"↓"; position:absolute; left:22px; bottom:-17px; z-index:1; color:#7890b6; font-weight:900; }
.math-tutor-animation b { color:#245fd4; font-size:12.5px; }
.math-tutor-animation span { color:#4f5c70; font-size:12px; line-height:1.5; }
@keyframes mathTutorReveal { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:none; } }

body.math-simulator-modal-open { overflow:hidden!important; }
.math-simulator-modal {
  position:fixed;
  inset:0;
  z-index:10080;
  display:grid;
  place-items:center;
  padding:16px;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(3px);
}
.math-simulator-dialog {
  width:min(1240px,calc(100vw - 32px));
  height:min(820px,calc(100vh - 32px));
  min-height:520px;
  display:grid;
  grid-template-rows:58px minmax(0,1fr);
  overflow:hidden;
  border:1px solid #d8e0ec;
  border-radius:12px;
  background:#fff;
  box-shadow:0 26px 80px rgba(15,23,42,.32);
}
.math-simulator-dialog > header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 16px 0 19px;
  border-bottom:1px solid #e8edf6;
  background:#fff;
}
.math-simulator-dialog > header small { display:block; margin-bottom:2px; color:#2563ff; font-size:10px; font-weight:850; }
.math-simulator-dialog > header h3 { margin:0; color:#151a24; font-size:16px; font-weight:900; letter-spacing:0; }
.math-simulator-dialog > header button {
  height:34px;
  padding:0 13px;
  border:0;
  border-radius:9px;
  color:#fff;
  background:#e5484d;
  box-shadow:0 4px 12px rgba(229,72,77,.24);
  font:850 12.5px/1 "Pretendard Variable",Pretendard,sans-serif;
  cursor:pointer;
}
.math-simulator-frame-wrap { position:relative; min-width:0; min-height:0; overflow:hidden; background:#fff; }
.math-simulator-frame-wrap iframe { display:block; width:100%; height:100%; border:0; background:#fff; }
.math-simulator-loading {
  position:absolute;
  inset:0;
  z-index:1;
  display:none;
  place-content:center;
  justify-items:center;
  gap:12px;
  color:#667085;
  background:#fff;
  font-size:13px;
}
.math-simulator-modal.is-loading .math-simulator-loading { display:grid; }
@media (max-width:720px) {
  .math-simulator-modal { padding:6px; }
  .math-simulator-dialog { width:calc(100vw - 12px); height:calc(100vh - 12px); min-height:0; border-radius:9px; }
}

/* Keep the one-shot chrome fixed while its result body scrolls independently. */
.subject-oneshot-math {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  overscroll-behavior: contain;
}
.subject-oneshot-math .pe-oneshot-kicker,
.subject-oneshot-math .pe-oneshot-tabs,
.subject-oneshot-math .pe-oneshot-view,
.subject-oneshot-math .pe-oneshot-title,
.subject-oneshot-math .pe-oneshot-actions,
.subject-oneshot-math .pe-oneshot-report {
  flex: 0 0 auto;
}
.subject-oneshot-math .pe-oneshot-output {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.subject-oneshot-math .pe-oneshot-output::-webkit-scrollbar { width: 8px; }
.subject-oneshot-math .pe-oneshot-output::-webkit-scrollbar-thumb {
  border: 2px solid #fff;
  border-radius: 999px;
  background: #c7d2e3;
}
.pe-oneshot-view[hidden] { display:none !important; }
.math-os-steps.concept-first { grid-template-columns:minmax(230px,.75fr) minmax(0,1.25fr); }
.math-os-steps.concept-first .math-os-concept { grid-column:1; }
.math-os-steps.concept-first .math-os-step-list { grid-column:2; }
.math-os-hint { display:block; margin-top:7px; color:#64748b; font-size:11px; line-height:1.45; }
.subject-oneshot-lightbox { position:fixed; inset:0; z-index:10050; display:grid; place-items:center; padding:32px; background:rgba(15,23,42,.78); }
.subject-oneshot-lightbox img { max-width:min(1120px,94vw); max-height:90vh; object-fit:contain; border-radius:8px; background:#fff; box-shadow:0 24px 70px rgba(0,0,0,.32); }
.subject-oneshot-lightbox button { position:fixed; top:20px; right:24px; width:44px; height:44px; border:1px solid rgba(255,255,255,.55); border-radius:999px; background:rgba(15,23,42,.7); color:#fff; font-size:24px; cursor:pointer; }

@media (max-width:1100px) {
  .app.subject-oneshot-open .grid2 { grid-template-columns:1fr !important; grid-template-rows:minmax(0,1fr); }
  .app.subject-oneshot-open .book-card { display:none; }
  .app.subject-oneshot-open .coach-card { display:flex !important; }
  .ko-os-flowchart { grid-template-columns:1fr 1fr; }
  .ko-os-node:nth-child(2)::after { display:none; }
  .math-os-steps { grid-template-columns:1fr; }
  .math-os-concept { display:none; }
  .math-os-steps.concept-first .math-os-concept { display:block; grid-column:auto; }
  .math-os-steps.concept-first .math-os-step-list { grid-column:auto; }
}

@media (max-width:640px) {
  .ko-os-flowchart { grid-template-columns:1fr; gap:9px; }
  .ko-os-node::after { display:none; }
  .ko-os-summary { grid-template-columns:1fr; }
  .math-os-summary { grid-template-columns:1fr; }
  .math-os-summary div { border-left:0; border-top:1px solid #e4eaf3; }
  .math-os-summary div:first-child { border-top:0; }
  .math-tutor-menu-popover { width:calc(100vw - 12px); max-height:calc(100vh - 12px); }
  .math-tutor-menu-groups { padding:3px 5px; }
  .math-tutor-menu-group { grid-template-columns:1fr; gap:4px; padding:7px 2px; }
  .math-tutor-menu-items { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
  .math-tutor-menu-item { min-width:0; min-height:40px; padding:0 6px; white-space:normal; }
  .math-tutor-content { padding:13px 10px; }
  .math-tutor-animation > div { grid-template-columns:1fr; gap:5px; }
}

.pe-oneshot-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin: 0 0 12px;
  padding: 0 14px;
  border: 1px solid #1f5ff2;
  border-radius: 9px;
  background: #2563eb;
  color: #fff;
  font: 850 12.5px/1 "Pretendard Variable", Pretendard, sans-serif;
  cursor: pointer;
  box-shadow: 0 5px 13px rgba(37, 99, 235, .2);
}
.pe-oneshot-trigger:hover { background: #1d4ed8; }
.pe-exam-active .pe-oneshot-trigger { display: none; }
.pe-oneshot-trigger svg { width: 15px; height: 15px; }

.pe-oneshot-mark {
  margin: 0;
  padding: 0;
  border-radius: 3px;
  background: #e8eeff;
  color: inherit;
  box-shadow: inset 0 -1px 0 #9eb8f7;
}

.pe-coach.oneshot-open {
  flex-basis: min(700px, 48vw);
  width: min(700px, 48vw);
}
.pe-coach.oneshot-open .pe-coach-title::after {
  content: " · 국어 추가분석";
  color: #64748b;
  font-weight: 750;
}
.pe-coach.oneshot-open .pe-coach-body,
.pe-coach.oneshot-open .pe-coach-chips,
.pe-coach.oneshot-open .pe-coach-input { display: none; }
.pe-coach.oneshot-open.collapsed .pe-oneshot-shell { display: none; }
.m-main.coach-open.oneshot-open .pe-next-float { right: min(718px, calc(48vw + 18px)); }
.m-main.coach-open.oneshot-open .pe-ink-layer { right: min(700px, 48vw); }
.m-main.coach-open.oneshot-open .pe-ink-tools { right: min(718px, calc(48vw + 18px)); }

.pe-oneshot-shell {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 16px 18px;
  background: #fff;
}
.pe-oneshot-shell[hidden] { display: none; }
.korean-tutor-shell .pe-oneshot-output { min-height: 0; max-height: calc(100vh - 245px); overflow-y: auto; }
.korean-tutor-shell .math-tutor-panel-nav { margin-bottom: 4px; }
.korean-tutor-shell .pe-oneshot-title { margin: 12px 0 9px; }
.korean-tutor-shell .math-followup { margin-inline: 10px; }
.korean-view-switch { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:10px 12px 0; }
.korean-view-switch button { min-height:34px; border:1px solid #d4deec; border-radius:6px; background:#fff; color:#5b687b; font:800 11px/1 inherit; cursor:pointer; }
.korean-view-switch button.on { border-color:#245fd4; background:#edf3ff; color:#174ea6; }
.korean-media-status { min-height:260px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; padding:24px; color:#56657b; text-align:center; }
.korean-media-status b { color:#26364f; font-size:13px; }
.korean-media-status span:not(.pe-oneshot-spinner) { font-size:11px; line-height:1.5; }
.korean-media-status button { min-height:34px; padding:0 12px; border:1px solid #245fd4; border-radius:6px; background:#fff; color:#174ea6; font:800 11px/1 inherit; cursor:pointer; }
.korean-media-status.is-error { color:#b42318; }
.korean-generated-figure { margin:0; padding:10px; border:1px solid #dce4ef; border-radius:8px; background:#f8faff; }
.korean-generated-figure img { display:block; width:100%; max-height:460px; object-fit:contain; border:1px solid #dce4ef; border-radius:6px; background:#fff; cursor:zoom-in; }
.korean-generated-figure figcaption { padding:8px 2px 3px; color:#5c6b80; font-size:11px; }
.korean-generated-figure > div { display:flex; gap:6px; padding-top:7px; }
.korean-generated-figure button { min-height:31px; padding:0 9px; border:1px solid #cad6e7; border-radius:5px; background:#fff; color:#33465f; font:750 10.5px/1 inherit; cursor:pointer; }
.korean-extra-question { padding:15px; border:1px solid #d9e2ef; border-radius:8px; background:#fbfcfe; }
.korean-extra-question > b { display:block; color:#172033; font-size:14px; line-height:1.7; }
.korean-extra-question ol { display:grid; gap:7px; margin:12px 0 0; padding-left:28px; }
.korean-extra-question li { padding:7px 9px; border:1px solid #e0e6ef; border-radius:5px; background:#fff; color:#3b495f; font-size:12px; line-height:1.5; }
.korean-extra-choices { display:grid; gap:7px; margin-top:12px; }
.korean-extra-choices button { display:grid; grid-template-columns:25px minmax(0,1fr); gap:8px; align-items:center; min-height:40px; padding:6px 9px; border:1px solid #dce4ef; border-radius:6px; background:#fff; color:#334155; text-align:left; font:700 12px/1.45 inherit; cursor:pointer; }
.korean-extra-choices button > span { display:grid; width:23px; height:23px; place-items:center; border-radius:50%; background:#edf3ff; color:#245fd4; font-size:10px; font-weight:900; }
.korean-extra-choices button.is-selected { border-color:#245fd4; background:#f4f8ff; box-shadow:0 0 0 2px rgba(36,95,212,.1); }
.korean-extra-choices button.is-correct { border-color:#2f9e66; background:#f0faf5; }
.korean-extra-choices button.is-wrong { border-color:#dc5b5b; background:#fff5f5; }
.korean-extra-feedback { margin-top:11px; padding:10px 12px; border:1px solid #d5e6dc; border-radius:6px; background:#f5fbf7; }
.korean-extra-feedback.is-wrong { border-color:#efd1d1; background:#fff7f7; }
.korean-extra-feedback b { color:#21754b; font-size:12px; }
.korean-extra-feedback.is-wrong b { color:#b42318; }
.korean-extra-feedback p { margin:5px 0 0; color:#4f5f73; font-size:11.5px; line-height:1.55; }
.subject-oneshot-trigger { display:inline-flex; align-items:center; justify-content:center; min-height:32px; padding:0 10px; border:1px solid #245fd4; border-radius:7px; background:#245fd4; color:#fff; font:850 11px/1 "Pretendard Variable",Pretendard,sans-serif; cursor:pointer; }
@media (max-width:720px) {
  .korean-tutor-menu-popover { width:calc(100vw - 16px); }
  .korean-tutor-menu-popover .math-tutor-menu-group { grid-template-columns:66px minmax(0,1fr); }
  .korean-tutor-menu-popover .math-tutor-menu-items { flex-wrap:wrap; }
  .korean-tutor-shell .pe-oneshot-output { max-height:none; }
}
.pe-oneshot-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #667085;
  font-size: 11.5px;
  font-weight: 750;
}
.pe-oneshot-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--os-line);
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font: 800 18px/1 inherit;
  cursor: pointer;
}
.pe-oneshot-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--os-line);
}
.pe-oneshot-tab {
  position: relative;
  min-width: 0;
  height: 42px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #657087;
  font: 800 12px/1.2 "Pretendard Variable", Pretendard, sans-serif;
  cursor: pointer;
}
.pe-oneshot-tab.on { color: var(--os-blue); }
.pe-oneshot-tab.on::after {
  content: "";
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--os-blue);
}
.pe-oneshot-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.pe-oneshot-view button {
  height: 38px;
  border: 1px solid var(--os-line);
  border-radius: 9px;
  background: #fff;
  color: #657087;
  font: 800 12px/1 inherit;
  cursor: pointer;
}
.pe-oneshot-view button.on {
  border-color: var(--os-blue);
  color: var(--os-blue);
  background: #f7f9ff;
}
.pe-oneshot-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 10px;
}
.pe-oneshot-title h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  letter-spacing: 0;
}
.pe-oneshot-title span {
  padding: 4px 7px;
  border-radius: 6px;
  background: #eaf1ff;
  color: #315fae;
  font-size: 10.5px;
  font-weight: 850;
}
.pe-oneshot-output {
  min-height: 400px;
  border: 1px solid #cfd9e8;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.pe-oneshot-loading {
  min-height: 400px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 32px;
  color: #667085;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
}
.pe-oneshot-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #dce6fb;
  border-top-color: var(--os-blue);
  border-radius: 50%;
  animation: pe-oneshot-spin .8s linear infinite;
}
@keyframes pe-oneshot-spin { to { transform: rotate(360deg); } }

.os-diagram {
  padding: 18px 18px 14px;
  color: var(--os-ink);
  font-family: Georgia, "Times New Roman", serif;
}
.os-sentence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: baseline;
  padding: 0 2px 12px;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.5;
}
.os-segment {
  padding-bottom: 2px;
  border-bottom: 3px solid currentColor;
}
.os-role-subject { color: var(--os-blue); }
.os-role-predicate { color: var(--os-red); }
.os-role-request { color: var(--os-orange); }
.os-role-action, .os-role-object { color: var(--os-purple); }
.os-role-time, .os-role-modifier { color: var(--os-teal); }
.os-role-neutral { color: #475569; }
.os-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  padding: 8px 10px;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  background: #fbfcfe;
  font: 750 10.5px/1.2 "Pretendard Variable", Pretendard, sans-serif;
}
.os-legend span { display: inline-flex; align-items: center; gap: 6px; color: #475569; }
.os-legend i { width: 18px; height: 3px; border-radius: 3px; background: currentColor; }
.os-legend .subject { color: var(--os-blue); }
.os-legend .predicate { color: var(--os-red); }
.os-legend .request { color: var(--os-orange); }
.os-legend .action { color: var(--os-purple); }
.os-legend .time { color: var(--os-teal); }

.os-tree {
  min-height: 230px;
  padding: 20px 4px 10px;
  overflow-x: auto;
}
.os-mainline {
  min-width: 520px;
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(210px, 1.45fr);
  border-bottom: 2px solid #1f2937;
}
.os-main-part {
  position: relative;
  min-height: 48px;
  padding: 7px 14px 4px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 21px;
  font-weight: 600;
}
.os-main-part + .os-main-part { border-left: 2px solid #1f2937; }
.os-main-modifiers {
  min-width: 520px;
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(210px, 1.45fr);
}
.os-main-modifiers .os-modifiers {
  padding: 9px 8px 0 18px;
}
.os-main-modifiers .os-modifiers-predicate {
  border-left: 2px solid transparent;
}
.os-main-part small,
.os-branch-core small,
.os-branch-object small,
.os-modifier small {
  display: block;
  margin-top: 4px;
  font: 800 10px/1.1 "Pretendard Variable", Pretendard, sans-serif;
}
.os-branches {
  min-width: 520px;
  padding-left: min(32%, 185px);
}
.os-branch {
  position: relative;
  min-width: 300px;
  width: calc(100% - var(--os-depth, 0) * 36px);
  margin-left: calc(var(--os-depth, 0) * 40px);
  padding-top: 16px;
}
.os-branch::before {
  content: "";
  position: absolute;
  left: -24px;
  top: -2px;
  width: 42px;
  height: 2px;
  background: #263246;
  transform: rotate(58deg);
  transform-origin: left center;
}
.os-branch-line {
  display: grid;
  grid-template-columns: minmax(100px, auto) minmax(100px, 1fr);
  width: fit-content;
  min-width: min(100%, 330px);
  border-bottom: 2px solid #1f2937;
}
.os-branch-core, .os-branch-object {
  min-height: 43px;
  padding: 5px 12px 3px;
  font-size: 18px;
  font-weight: 600;
}
.os-branch-object { border-left: 2px solid #1f2937; }
.os-modifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  padding: 9px 0 0 46%;
}
.os-modifier {
  position: relative;
  min-width: 78px;
  padding: 9px 7px 2px 18px;
  border-bottom: 1.5px solid #334155;
  color: var(--os-teal);
  font-size: 16px;
}
.os-modifier::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -3px;
  width: 28px;
  height: 1.5px;
  background: #334155;
  transform: rotate(56deg);
  transform-origin: left center;
}
.os-reading {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #24324a;
  border-radius: 8px;
  background: #fbfcfe;
  font: 700 12px/1.65 "Pretendard Variable", Pretendard, sans-serif;
}
.os-reading strong { color: #172033; }
.os-reading .translation { margin-top: 4px; color: #334155; font-size: 13px; }

.os-list-panel { padding: 14px; font-family: "Pretendard Variable", Pretendard, sans-serif; }
.os-list-panel h4 { margin: 0 0 4px; color: #182033; font-size: 15px; }
.os-list-panel > p { margin: 0 0 13px; color: #64748b; font-size: 12px; line-height: 1.55; }
.os-list { display: grid; gap: 8px; }
.os-list-item {
  display: grid;
  grid-template-columns: minmax(120px, .72fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.os-list-item b { color: #1d4ed8; font-size: 12.5px; }
.os-list-item span { color: #475569; font-size: 12px; line-height: 1.55; }
.os-flow { counter-reset: osflow; }
.os-flow .os-list-item { grid-template-columns: 28px minmax(0, 1fr); }
.os-flow .os-list-item::before {
  counter-increment: osflow;
  content: counter(osflow);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf1ff;
  color: #2563eb;
  font-weight: 900;
  font-size: 11px;
}

.pe-oneshot-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.pe-oneshot-actions button {
  min-height: 39px;
  padding: 0 8px;
  border: 1px solid var(--os-line);
  border-radius: 9px;
  background: #fff;
  color: #344054;
  font: 800 11.5px/1.25 "Pretendard Variable", Pretendard, sans-serif;
  cursor: pointer;
}
.pe-oneshot-actions button:hover { border-color: #9ab9f6; background: #f8faff; }
.pe-oneshot-error {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #b42318;
  text-align: center;
  font: 750 13px/1.6 "Pretendard Variable", Pretendard, sans-serif;
}
.pe-oneshot-report {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #2563eb;
  font: 750 11px/1.3 "Pretendard Variable", Pretendard, sans-serif;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .pe-coach.oneshot-open {
    position: absolute;
    z-index: 26;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(700px, 94vw);
    flex-basis: auto;
    box-shadow: -16px 0 36px rgba(23, 37, 80, .18);
  }
  .m-main.coach-open.oneshot-open .pe-next-float { right: 16px; bottom: 112px; }
  .m-main.coach-open.oneshot-open .pe-ink-layer { right: 0; }
  .m-main.coach-open.oneshot-open .pe-ink-tools { right: 16px; }
}
@media (max-width: 560px) {
  .math-video-brief { grid-template-columns:1fr; }
  .math-video-card { grid-template-columns:96px minmax(0,1fr); }
  .math-video-card img,
  .math-video-card-mark { width:96px; }
}
@media (max-width: 620px) {
  .pe-oneshot-shell { padding: 10px; }
  .pe-oneshot-close,
  .pe-oneshot-tab,
  .pe-oneshot-view button,
  .pe-oneshot-actions button { min-height: 44px; }
  .pe-oneshot-close { width: 44px; height: 44px; }
  .pe-oneshot-tab { font-size: 10.5px; }
  .pe-oneshot-title h3 { font-size: 15px; }
  .os-diagram { padding: 13px 10px; }
  .os-mainline, .os-main-modifiers, .os-branches { min-width: 0; width: 100%; }
  .os-mainline, .os-main-modifiers { grid-template-columns: minmax(72px, .7fr) minmax(130px, 1.3fr); }
  .os-main-part { min-height: 43px; padding: 6px 9px 3px; font-size: 18px; }
  .os-branches { padding-left: 54px; }
  .os-branch {
    min-width: 0;
    width: calc(100% - var(--os-depth, 0) * 19px);
    margin-left: calc(var(--os-depth, 0) * 19px);
  }
  .os-branch::before { left: -15px; width: 29px; }
  .os-branch-line {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(74px, auto) minmax(90px, 1fr);
  }
  .os-branch-core, .os-branch-object { padding: 5px 8px 3px; font-size: 15.5px; }
  .os-modifiers { gap: 7px 10px; padding-left: 42%; }
  .os-main-modifiers .os-modifiers { padding-left: 12px; }
  .os-modifier { min-width: 64px; padding-left: 14px; font-size: 13.5px; }
  .os-list-item { grid-template-columns: 1fr; gap: 4px; }
}

/* 2026-08-01: align the live panels with the approved Korean/math one-shot comps. */
.pe-coach.oneshot-open {
  flex-basis: min(720px, 49vw);
  width: min(720px, 49vw);
}
.pe-oneshot-shell,
.subject-oneshot-math {
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
}
.pe-oneshot-kicker {
  min-height: 34px;
  margin-bottom: 6px;
  padding: 0 2px;
}
.pe-oneshot-tabs { background: #fff; }
.pe-oneshot-view {
  gap: 10px;
  margin: 10px 0 14px;
}
.pe-oneshot-view button {
  height: 40px;
  border-radius: 7px;
  font-size: 12.5px;
}
.pe-oneshot-title { margin: 10px 0 11px; }
.pe-oneshot-title h3 { font-size: 17px; font-weight: 900; }
.pe-oneshot-output { min-height: 0; border-radius: 9px; }
.os-diagram {
  padding: 18px 16px 16px;
  font-family: "Pretendard Variable", Pretend, "Noto Sans KR", sans-serif;
}
.os-sentence {
  gap: 4px 7px;
  padding: 2px 4px 14px;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.72;
}
.os-segment { border-bottom-width: 2px; }
.os-legend { padding: 9px 12px; border-radius: 7px; background: #fcfdff; }
.ko-os-flowchart {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 18px 0 10px;
}
.ko-os-node {
  min-height: 112px;
  padding: 14px 11px 12px;
  border-radius: 7px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}
.ko-os-node b { font-size: 13px; text-align: center; }
.ko-os-node span { font-size: 12px; line-height: 1.55; }
.ko-os-link {
  position: relative;
  width: 58%;
  height: 32px;
  margin: -1px auto 9px;
  border-right: 2px solid #334155;
  border-bottom: 2px solid #334155;
  border-left: 2px solid #334155;
}
.ko-os-link::before,
.ko-os-link::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #334155;
  border-left: 2px solid #334155;
  transform: rotate(45deg);
}
.ko-os-link::before { left: -5px; }
.ko-os-link::after { right: -5px; transform: rotate(135deg); }
.ko-os-link span {
  position: absolute;
  left: 50%;
  bottom: -9px;
  padding: 0 9px;
  background: #fff;
  color: #475569;
  font-size: 10.5px;
  font-weight: 850;
  transform: translateX(-50%);
}
.ko-os-summary {
  grid-template-columns: 104px 1fr;
  gap: 7px 14px;
  margin-top: 13px;
  padding: 13px 15px;
  border-color: #27364f;
  background: #fff;
  font-size: 12px;
}
.ko-os-summary b:first-child + span { color: #dc2626; font-weight: 850; }

.subject-oneshot-math { padding: 12px 16px 11px; border-radius: 16px; }
.app.subject-oneshot-open .grid2 { grid-template-columns: minmax(0, 1.18fr) minmax(620px, .98fr) !important; }
.math-os-steps {
  grid-template-columns: minmax(0, 1.22fr) minmax(220px, .78fr);
  gap: 16px;
  padding: 14px 14px 0;
}
.math-os-step-list { gap: 9px; }
.math-os-step {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
}
.math-os-step:not(:last-child)::after {
  content: "\2193";
  left: 11px;
  bottom: -15px;
  color: #475569;
  font-size: 20px;
}
.math-os-step-no { width: 34px; height: 34px; font-size: 14px; }
.math-os-step-card {
  min-height: 76px;
  padding: 11px 13px;
  border-radius: 8px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .035);
}
.math-os-step-head b { font-size: 14px; }
.math-os-step-card p { margin-top: 5px; font-size: 12px; line-height: 1.48; }
.math-os-step:nth-child(1) .math-os-step-head b { color: #2563eb; }
.math-os-step:nth-child(2) .math-os-step-head b { color: #d97706; }
.math-os-step:nth-child(3) .math-os-step-head b { color: #7c3aed; }
.math-os-step:nth-child(4) .math-os-step-head b { color: #2563eb; }
.math-os-formula {
  margin-top: 5px;
  color: #172554;
  font-family: "STIX Two Math", Cambria, Georgia, serif;
  font-size: 15px;
  line-height: 1.45;
}
.math-os-formula sup { font-size: .72em; }
.math-os-concept {
  align-self: stretch;
  padding: 13px;
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.math-os-concept:hover { border-color: #8eace5; box-shadow: 0 8px 24px rgba(31,94,215,.1); transform: translateY(-1px); }
.math-os-concept:focus-visible { outline: 3px solid rgba(31,94,215,.22); outline-offset: 2px; }
.math-os-concept-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:11px; }
.math-os-concept-heading h4 { margin:0; font-size:13px; text-align:left; }
.math-os-concept-heading > span { flex:0 0 auto; color:#1f5ed7; font-size:10.5px; font-weight:850; }
.math-os-problem-visual {
  min-height: 250px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
}
.math-os-problem-visual img {
  display: block;
  width: 100%;
  max-height: 330px;
  object-fit: contain;
}
.math-os-concept-map { display: grid; gap: 9px; }
.math-os-concept-node {
  position: relative;
  padding: 11px 10px;
  border: 1px solid #dbe4f1;
  border-radius: 7px;
  background: #fbfdff;
}
.math-os-concept-node:not(:last-child)::after {
  content: "\2193";
  position: absolute;
  left: 50%;
  bottom: -16px;
  z-index: 1;
  color: #94a3b8;
  font-size: 14px;
}
.math-os-concept-node b,
.math-os-concept-node span { display: block; }
.math-os-concept-node b { margin-bottom: 4px; color: #1d4ed8; font-size: 11.5px; }
.math-os-concept-node span { color: #475569; font-size: 11px; line-height: 1.45; }
.math-os-concept-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 13px;
  margin-top: 11px;
  color: #64748b;
  font-size: 10px;
  font-weight: 750;
}
.math-os-concept-legend span { display: inline-flex; align-items: center; gap: 5px; }
.math-os-concept-legend i { width: 18px; height: 2px; background: #2563eb; }
.math-os-concept-legend span:nth-child(2) i { background: #2563eb; }
.math-os-relation-modal {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(4px);
}
.math-os-relation-dialog {
  width: min(900px, 94vw);
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15,23,42,.3);
}
.math-os-relation-dialog > header { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px 20px 15px; border-bottom:1px solid #dbe3ef; }
.math-os-relation-dialog > header small { display:block; margin-bottom:4px; color:#64748b; font-size:11px; font-weight:750; }
.math-os-relation-dialog > header h3 { margin:0; color:#172033; font-size:21px; letter-spacing:0; }
.math-os-relation-dialog > header button { width:38px; height:38px; border:0; border-radius:8px; background:#dc3545; color:#fff; font-size:22px; line-height:1; cursor:pointer; }
.math-os-relation-body { max-height:calc(90vh - 74px); overflow:auto; padding:20px; }
.math-os-relation-image { margin:0 0 18px; padding:14px; border:1px solid #dbe3ef; border-radius:9px; background:#f8fafc; }
.math-os-relation-image img { display:block; width:100%; max-height:430px; object-fit:contain; background:#fff; }
.math-os-relation-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.math-os-relation-item { display:grid; grid-template-columns:34px minmax(0,1fr); gap:11px; min-height:96px; padding:14px; border:1px solid #d7dfeb; border-radius:9px; background:#fff; }
.math-os-relation-item > span { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:#eef4ff; color:#174ea6; font-size:12px; font-weight:900; }
.math-os-relation-item b { display:block; margin:2px 0 7px; color:#174ea6; font-size:14px; }
.math-os-relation-item p { margin:0; color:#334155; font-size:14px; line-height:1.65; overflow-wrap:anywhere; }
.math-os-relation-empty { grid-column:1/-1; padding:28px; border:1px dashed #cbd5e1; color:#64748b; text-align:center; }
.math-drill-modal { position:fixed; inset:0; z-index:10075; display:grid; place-items:center; padding:24px; background:rgba(15,23,42,.56); backdrop-filter:blur(3px); }
.math-drill-dialog { width:min(620px,94vw); max-height:88vh; overflow:hidden; border:1px solid #cbd5e1; border-radius:10px; background:#fff; box-shadow:0 26px 72px rgba(15,23,42,.3); }
.math-drill-dialog > header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 18px; border-bottom:1px solid #dbe3ef; background:#f8fafc; }
.math-drill-dialog > header small { display:block; margin-bottom:3px; color:#64748b; font-size:10px; font-weight:800; }
.math-drill-dialog > header h3 { margin:0; color:#172033; font-size:18px; letter-spacing:0; }
.math-drill-dialog > header > div:last-child { display:flex; align-items:center; gap:9px; }
.math-drill-dialog > header [data-math-drill-round] { padding:5px 8px; border:1px solid #d4dfed; border-radius:5px; background:#fff; color:#50657d; font-size:10px; font-weight:800; }
.math-drill-dialog > header button { width:34px; height:34px; border:0; border-radius:6px; background:#dc3545; color:#fff; font-size:20px; cursor:pointer; }
.math-drill-body { max-height:calc(88vh - 69px); overflow:auto; padding:20px; }
.math-drill-loading { min-height:230px; display:grid; place-items:center; align-content:center; gap:9px; color:#334155; text-align:center; }
.math-drill-loading b { font-size:14px; }
.math-drill-loading small { color:#718096; font-size:11px; }
.math-drill-question { margin-bottom:15px; padding:15px 16px; border:1px solid #d7e1ee; border-radius:7px; background:#f8fbff; }
.math-drill-question small { display:block; margin-bottom:6px; color:#1767e8; font-size:10px; font-weight:850; }
.math-drill-question h4 { margin:0; color:#172033; font-size:16px; line-height:1.65; }
.math-drill-choices { display:grid; gap:8px; }
.math-drill-choices button { display:grid; grid-template-columns:29px minmax(0,1fr); align-items:center; gap:10px; min-height:48px; padding:8px 12px; border:1px solid #d7dfeb; border-radius:7px; background:#fff; color:#26364f; text-align:left; cursor:pointer; }
.math-drill-choices button > span { display:grid; width:27px; height:27px; place-items:center; border-radius:50%; background:#edf3fb; color:#315f9c; font-size:11px; font-weight:900; }
.math-drill-choices button > b { font-size:13px; font-weight:650; overflow-wrap:anywhere; }
.math-drill-choices button:hover:not(:disabled) { border-color:#80a6e4; background:#f7faff; }
.math-drill-choices button.is-correct { border-color:#49a77b; background:#effaf4; color:#12663f; }
.math-drill-choices button.is-wrong { border-color:#dd7d7d; background:#fff3f3; color:#9c3030; }
.math-drill-guide { margin:11px 2px 0; color:#718096; font-size:10.5px; }
.math-drill-feedback { margin-top:13px; padding:12px 13px; border:1px solid #cfdbea; border-radius:7px; background:#f8fafc; }
.math-drill-feedback b { display:block; margin-bottom:4px; font-size:13px; }
.math-drill-feedback p { margin:0; color:#40516a; font-size:12px; line-height:1.6; }
.math-drill-feedback.is-correct b { color:#147653; }
.math-drill-feedback.is-wrong b { color:#b43a3a; }
.math-drill-next { display:block; width:100%; min-height:42px; margin-top:12px; border:0; border-radius:6px; background:#1767e8; color:#fff; font-weight:850; cursor:pointer; }
.math-drill-error { min-height:210px; display:grid; place-items:center; align-content:center; gap:8px; color:#8e3434; text-align:center; }
.math-drill-error span { font-size:11px; }
.math-drill-error button { min-height:34px; padding:0 13px; border:1px solid #d89b9b; border-radius:5px; background:#fff; color:#a42e2e; font-weight:800; cursor:pointer; }
.math-os-generated { width:calc(100% - 28px); max-width:calc(100% - 28px); min-width:0; margin:14px; overflow:hidden; border:1px solid #cbd5e1; border-radius:9px; background:#fff; }
.math-os-generated > header { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 15px; border-bottom:1px solid #dbe3ef; background:#f8fafc; }
.math-os-generated > header small { display:block; margin-bottom:3px; color:#64748b; font-size:10px; font-weight:800; }
.math-os-generated > header h4 { margin:0; color:#172033; font-size:14px; }
.math-os-generated > header > span { padding:4px 8px; border-radius:5px; background:#eaf7ef; color:#16834a; font-size:10px; font-weight:850; }
.math-os-generated-loading { min-height:210px; display:flex; align-items:center; justify-content:center; gap:13px; padding:30px; color:#334155; }
.math-os-generated-loading > div { display:grid; gap:4px; }
.math-os-generated-loading b { font-size:14px; }
.math-os-generated-loading small { color:#64748b; font-size:11.5px; }
.math-os-generated-error { display:grid; justify-items:start; gap:7px; padding:22px; color:#334155; }
.math-os-generated-error b { color:#b42318; }
.math-os-generated-error span { font-size:12px; }
.math-os-generated-error button { margin-top:4px; padding:8px 12px; border:1px solid #d7dfeb; border-radius:7px; background:#fff; color:#174ea6; font-weight:800; cursor:pointer; }
.math-os-generated-figure { min-width:0; margin:0; padding:16px; overflow:hidden; background:#fff; }
.math-os-generated-figure img { display:block; width:100%; max-width:100%; height:auto; max-height:min(440px,52vh); object-fit:contain; border:1px solid #e2e8f0; border-radius:7px; background:#fff; cursor:zoom-in; }
.math-os-generated-figure figcaption { margin-top:9px; color:#475569; font-size:11.5px; line-height:1.55; }
.math-os-generated-actions { display:flex; flex-wrap:wrap; gap:8px; padding:0 16px 15px; }
.math-os-generated-actions button { min-height:34px; padding:0 11px; border:1px solid #d7dfeb; border-radius:7px; background:#fff; color:#26364f; font:800 11px/1 "Pretendard Variable",Pretendard,sans-serif; cursor:pointer; }
.math-os-generated-actions button:hover { border-color:#92ace0; background:#f8faff; }
.subject-oneshot-math [data-mos-action="concept"]:disabled { cursor:wait; opacity:.72; }
.math-os-summary {
  margin: 14px;
  border-color: #94a3b8;
  background: #fff;
}
.math-os-summary div { padding: 12px 10px; }
.math-os-summary b { font-size: 11px; }
.math-os-summary span { font-size: 11.5px; }
.pe-oneshot-actions { margin-top: 10px; }

@media (max-width: 1220px) {
  .app.subject-oneshot-open .grid2 { grid-template-columns: minmax(0, 1fr) minmax(560px, 1fr) !important; }
  .math-os-steps { grid-template-columns: minmax(0, 1.3fr) minmax(190px, .7fr); }
  .math-os-problem-visual { min-height: 210px; }
}
@media (max-width: 700px) {
  .math-os-relation-modal { padding:12px; }
  .math-os-relation-dialog { width:100%; max-height:94vh; }
  .math-os-relation-body { max-height:calc(94vh - 72px); padding:14px; }
  .math-os-relation-list { grid-template-columns:1fr; }
  .math-drill-modal { padding:10px; }
  .math-drill-dialog { width:100%; max-height:94vh; }
  .math-drill-body { max-height:calc(94vh - 69px); padding:14px; }
}
@media (max-width: 1100px) {
  .ko-os-link { display: none; }
}

/* 2026-08-01 restrained one-shot palette: hierarchy and line styles replace rainbow colors. */
.pe-oneshot-shell,
.subject-oneshot-math {
  --os-blue: #1f5ed7;
  --os-ink: #172033;
  --os-line: #d7dfeb;
  --os-soft: #f7f9fc;
}
.pe-oneshot-tab.on::after { height: 2px; background: #1f5ed7; }
.pe-oneshot-view button.on {
  border-color: #1f5ed7;
  background: #f7faff;
  color: #174ea6;
}
.pe-oneshot-title span {
  background: #f1f5fb;
  color: #3f5069;
}
.pe-oneshot-output { border-color: #d7dfeb; box-shadow: none; }

/* Korean sentence roles: one accent, one core-claim cue, then line-pattern semantics. */
.pe-oneshot-shell .os-role-subject {
  color: #1f5ed7;
  border-bottom-color: #1f5ed7;
  border-bottom-style: solid;
}
.pe-oneshot-shell .os-role-predicate {
  color: #172033;
  border-bottom-color: #b42318;
  border-bottom-style: solid;
}
.pe-oneshot-shell .os-role-request {
  color: #172033;
  border-bottom-color: #486ea8;
  border-bottom-style: dashed;
}
.pe-oneshot-shell .os-role-action,
.pe-oneshot-shell .os-role-object {
  color: #26364f;
  border-bottom-color: #52647d;
  border-bottom-style: dotted;
}
.pe-oneshot-shell .os-role-time,
.pe-oneshot-shell .os-role-modifier {
  color: #29485b;
  border-bottom-color: #41677d;
  border-bottom-style: double;
}
.pe-oneshot-shell .os-legend span { color: #3d4c63; }
.pe-oneshot-shell .os-legend i { height: 2px; color: #334155; background: currentColor; }
.pe-oneshot-shell .os-legend .subject { color: #1f5ed7; }
.pe-oneshot-shell .os-legend .predicate { color: #172033; }
.pe-oneshot-shell .os-legend .predicate i { background: #b42318; }
.pe-oneshot-shell .os-legend .request,
.pe-oneshot-shell .os-legend .action,
.pe-oneshot-shell .os-legend .time { color: #3d4c63; }
.pe-oneshot-shell .os-legend .request i { background: repeating-linear-gradient(90deg,#486ea8 0 6px,transparent 6px 10px); }
.pe-oneshot-shell .os-legend .action i { background: repeating-linear-gradient(90deg,#52647d 0 2px,transparent 2px 5px); }
.pe-oneshot-shell .os-legend .time i { height: 4px; border-top: 1px solid #41677d; border-bottom: 1px solid #41677d; background: transparent; }

.ko-os-flowchart { counter-reset: ko-os-stage; }
.ko-os-node,
.ko-os-node.reason,
.ko-os-node.transition,
.ko-os-node.conclusion {
  color: #1f5ed7;
  border-color: #6f97df;
  background: #fff;
}
.ko-os-node::before {
  counter-increment: ko-os-stage;
  content: counter(ko-os-stage);
  position: absolute;
  top: 11px;
  left: 11px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef4ff;
  color: #174ea6;
  font-size: 10px;
  font-weight: 900;
}
.ko-os-node b { padding-left: 23px; color: #172033; text-align: left; }
.ko-os-node span { color: #3d4c63; }
.ko-os-node:not(:last-child)::after { color: #718096; }
.ko-os-link { border-color: #314158; }
.ko-os-link::before,
.ko-os-link::after { border-color: #314158; }
.ko-os-summary { border-color: #526176; background: #fff; }
.ko-os-summary b { color: #26364f; }
.ko-os-summary b:first-child + span { color: #9f241d; }

/* Mathematics: a single blue progression instead of per-step rainbow colors. */
.math-os-step-no,
.math-os-step:nth-child(2) .math-os-step-no,
.math-os-step:nth-child(3) .math-os-step-no,
.math-os-step:nth-child(4) .math-os-step-no {
  background: #1f5ed7;
  color: #fff;
}
.math-os-step:not(:last-child)::after { color: #1f5ed7; }
.math-os-step-card { border-color: #d7dfeb; background: #fff; box-shadow: none; }
.math-os-step:nth-child(1) .math-os-step-head b,
.math-os-step:nth-child(2) .math-os-step-head b,
.math-os-step:nth-child(3) .math-os-step-head b,
.math-os-step:nth-child(4) .math-os-step-head b { color: #174ea6; }
.math-os-step-head em {
  background: #f1f5fb;
  color: #3f5069;
}
.math-os-formula { color: #172033; }
.math-os-concept,
.math-os-summary { border-color: #cbd5e1; }
.math-os-concept-node { border-color: #d7dfeb; background: #f9fbfe; }
.math-os-concept-node b { color: #174ea6; }
.math-os-concept-legend i,
.math-os-concept-legend span:nth-child(2) i { background: #1f5ed7; }
.math-os-summary b { color: #174ea6; }
.pe-oneshot-actions button {
  border-color: #d7dfeb;
  background: #fff;
  color: #26364f;
}
.pe-oneshot-actions button:hover {
  border-color: #92ace0;
  background: #f8faff;
}

/* 2026-08-02: stable math-practice analysis layout and always-visible relations. */
.pe-coach.subject-oneshot-open {
  flex: 0 0 min(720px, 54vw);
  width: min(720px, 54vw);
  min-width: 0;
}
.m-main.subject-oneshot-open .pe-next-float { display: none !important; }
.pe-coach.subject-oneshot-open .subject-oneshot-math .pe-oneshot-output { padding-bottom: 18px; }
.pe-coach.subject-oneshot-open .math-os-steps,
.pe-coach.subject-oneshot-open .math-os-steps.concept-first {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}
.pe-coach.subject-oneshot-open .math-os-step-list,
.pe-coach.subject-oneshot-open .math-os-steps.concept-first .math-os-step-list {
  grid-column: 1;
  grid-row: 2;
}
.pe-coach.subject-oneshot-open .math-os-concept,
.pe-coach.subject-oneshot-open .math-os-steps.concept-first .math-os-concept {
  display: block;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.pe-coach.subject-oneshot-open .math-os-concept-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.pe-coach.subject-oneshot-open .math-os-concept-node { min-height: 78px; }
.pe-coach.subject-oneshot-open .math-os-concept-node::after { display: none; }
.pe-coach.subject-oneshot-open .math-os-concept-legend { justify-content: flex-start; }

@media (max-width: 1100px) {
  .pe-coach.subject-oneshot-open {
    position: absolute;
    z-index: 26;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(720px, 94vw);
    flex-basis: auto;
    box-shadow: -16px 0 36px rgba(23, 37, 80, .18);
  }
  .pe-coach.subject-oneshot-open .math-os-concept { display: block; }
}
@media (max-width: 620px) {
  .pe-coach.subject-oneshot-open .math-os-concept-map { grid-template-columns: 1fr; }
}

/* Formula output uses KaTeX; this is the readable fallback before it is ready. */
.math-os-formula .katex { font-size: 1.05em; }
.lmbinom { position:relative; display:inline-grid; grid-template-rows:auto auto; gap:0; min-width:1.5em; margin:0 .12em; padding:0 .38em; vertical-align:middle; text-align:center; line-height:1; }
.lmbinom > span { display:block; font-size:.78em; line-height:1.02; }
.lmbinom::before,.lmbinom::after { position:absolute; top:50%; color:currentColor; font-size:1.55em; font-weight:400; transform:translateY(-52%) scaleY(1.18); }
.lmbinom::before { content:"("; left:0; }
.lmbinom::after { content:")"; right:0; }

/* 2026-08-02: contextual follow-up inside the current math explanation. */
.math-followup {
  margin: 16px 12px 6px;
  padding: 15px;
  border: 1px solid #cbd9f1;
  border-radius: 8px;
  background: #f7faff;
  color: #172033;
}
.math-followup > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.math-followup > header > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.math-followup h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #15233a;
}
.math-followup header div > span {
  padding: 3px 7px;
  border: 1px solid #b9cdf1;
  border-radius: 4px;
  background: #edf4ff;
  color: #2457a6;
  font-size: 10px;
  font-weight: 800;
}
.math-followup header small {
  max-width: 235px;
  color: #66758b;
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}
.math-followup-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.math-followup-suggestions button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #c7d4e8;
  border-radius: 5px;
  background: #fff;
  color: #33465f;
  font: 700 11px/1.3 inherit;
  cursor: pointer;
}
.math-followup-suggestions button:hover:not(:disabled) {
  border-color: #5f8fe4;
  background: #f0f6ff;
  color: #174ea6;
}
.math-followup-log {
  display: grid;
  gap: 8px;
  max-height: 260px;
  margin: 0 0 10px;
  padding: 10px;
  overflow: auto;
  border: 1px solid #d9e2f0;
  border-radius: 6px;
  background: #fff;
}
.math-followup-message {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
}
.math-followup-message > span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 4px;
  background: #1f5ed7;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.math-followup-message.ai > span { background: #e6eefb; color: #174ea6; }
.math-followup-message-body { min-width:0; }
.math-followup-message p {
  min-width: 0;
  margin: 0;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f5f8fc;
  color: #26364f;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.math-followup-message.user p { background: #edf4ff; }
.math-followup-scope {
  min-width:0;
  padding:9px;
  border:1px solid #d9e2f0;
  border-radius:6px;
  background:#f8faff;
}
.math-followup-visual {
  min-width:0;
  overflow:hidden;
  border:1px solid #d8e2ef;
  border-radius:7px;
  background:#fff;
}
.math-followup-visual > p { border-radius:0; background:#f5f8fc; }
.math-followup-visual figure { margin:0; padding:8px; }
.math-followup-visual figure img {
  display:block;
  width:100%;
  max-height:360px;
  border:1px solid #e1e7f0;
  border-radius:5px;
  object-fit:contain;
  background:#fff;
  cursor:zoom-in;
}
.math-followup-visual figcaption { margin-top:6px; color:#667389; font-size:10.5px; line-height:1.45; }
.math-followup-visual > div {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:0 8px 8px;
}
.math-followup-visual button {
  min-height:30px;
  padding:0 9px;
  border:1px solid #cbd6e5;
  border-radius:5px;
  background:#fff;
  color:#344761;
  font:750 10.5px/1 "Pretendard Variable",Pretendard,sans-serif;
  cursor:pointer;
}
.math-followup-visual button:hover { border-color:#6c93da; background:#f5f8ff; }
.math-followup-thinking { color: #718096; }
.math-followup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
}
.math-followup-form input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #bfcde1;
  border-radius: 5px;
  outline: none;
  background: #fff;
  color: #172033;
  font: 500 12px/1 inherit;
}
.math-followup-form input:focus { border-color: #3173e3; box-shadow: 0 0 0 2px rgba(49,115,227,.12); }
.math-followup-form button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: #1767e8;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.math-followup button:disabled,
.math-followup input:disabled { cursor: wait; opacity: .62; }
.math-tutor-simulator { min-height: 0; }
.math-tutor-simulator > header { margin-bottom: 10px; }
.math-tutor-simulator-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.math-tutor-simulator-head > div { min-width:0; }
.math-tutor-simulator-head > div > small { display:block; margin-bottom:5px; color:#245fd4; font-size:10.5px; font-weight:850; }
.math-tutor-simulator-head > div > h4 { margin:0; color:#172033; font-size:17px; }
.math-tutor-simulator-head > div > p { margin:7px 0 0; color:#5d697c; font-size:12px; line-height:1.55; }
.math-tutor-simulator-head > button {
  flex:0 0 auto;
  min-height:34px;
  padding:0 11px;
  border:1px solid #b9c8dc;
  border-radius:6px;
  background:#fff;
  color:#28548f;
  font:800 11px/1 "Pretendard Variable",Pretendard,sans-serif;
  cursor:pointer;
}
.math-tutor-simulator-head > button:hover { border-color:#6d94d7; background:#f5f8ff; }
.math-tutor-simulator-frame {
  height: clamp(390px, 56vh, 520px);
  min-height: 390px;
  overflow: hidden;
  border: 1px solid #d7dfeb;
  border-radius: 7px;
  background: #fff;
}
.math-tutor-simulator-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.math-extra-generated {
  margin: 10px 12px 2px;
  padding: 14px;
  border: 1px solid #c8d8ee;
  border-radius: 7px;
  background: #f8fbff;
  color: #17243a;
  scroll-margin-top: 12px;
}
.math-extra-generated > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.math-extra-generated header small { display: block; margin-bottom: 2px; color: #55708f; font-size: 11px; font-weight: 700; }
.math-extra-generated header h4 { margin: 0; color: #15233b; font-size: 15px; }
.math-extra-generated header > span:not(.pe-oneshot-spinner) { color: #147653; font-size: 11px; font-weight: 800; }
.math-extra-generated .pe-oneshot-spinner { flex: 0 0 auto; }
.math-extra-output {
  padding: 12px 13px;
  border: 1px solid #d8e3f1;
  border-radius: 5px;
  background: #fff;
  color: #172033;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.math-extra-output > b { display:block; margin-bottom:9px; color:#172033; font-size:13px; line-height:1.65; }
.math-extra-output ol { display:grid; gap:4px; margin:0; padding-left:24px; }
.math-extra-output li { padding-left:3px; color:#334155; font-size:12px; line-height:1.55; }
.math-extra-solve-open { display:block; width:100%; min-height:40px; margin-top:10px; border:0; border-radius:6px; background:#1767e8; color:#fff; font-weight:850; cursor:pointer; }
.math-extra-note { display: block; margin-top: 8px; color: #6c7c91; font-size: 10px; }
.math-extra-generated.is-loading .math-extra-output { color: #60738d; }
.math-extra-generated.is-error { border-color: #edc8c8; background: #fffafa; }
.math-extra-generated.is-error > p { margin: 4px 0 10px; color: #8e3434; font-size: 12px; }
.math-extra-generated.is-error > button { min-height: 32px; padding: 0 12px; border: 1px solid #d89b9b; border-radius: 5px; background: #fff; color: #a42e2e; font-weight: 700; cursor: pointer; }
.math-extra-solve-modal { position:fixed; inset:0; z-index:2147483600; display:grid; place-items:center; padding:18px; background:rgba(15,23,42,.62); backdrop-filter:blur(3px); }
.math-extra-solve-dialog { width:min(1050px,97vw); max-height:94vh; overflow:hidden; border:1px solid #cbd5e1; border-radius:10px; background:#fff; box-shadow:0 28px 84px rgba(15,23,42,.34); }
.math-extra-solve-dialog > header { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:13px 16px; border-bottom:1px solid #dbe3ef; background:#f8fafc; }
.math-extra-solve-dialog > header small { display:block; margin-bottom:2px; color:#64748b; font-size:10px; font-weight:800; }
.math-extra-solve-dialog > header h3 { margin:0; color:#172033; font-size:18px; letter-spacing:0; }
.math-extra-solve-tools { display:flex; align-items:center; gap:7px; }
.math-extra-solve-tools button { min-height:34px; padding:0 11px; border:1px solid #c8d5e6; border-radius:6px; background:#fff; color:#31516f; font-size:11px; font-weight:800; cursor:pointer; }
.math-extra-solve-tools button.is-active { border-color:#1767e8; background:#1767e8; color:#fff; }
.math-extra-solve-tools button.is-close { width:34px; padding:0; border:0; background:#dc3545; color:#fff; font-size:19px; }
.math-extra-solve-body { max-height:calc(94vh - 61px); overflow:auto; padding:18px; background:#f2f5f9; }
.math-extra-solve-sheet { position:relative; min-height:620px; padding:24px; overflow:hidden; border:1px solid #cbd5e1; border-radius:7px; background:#fff; }
.math-extra-solve-problem,.math-extra-solve-choices,.math-extra-scratch { position:relative; z-index:1; }
.math-extra-solve-problem { margin-bottom:16px; padding:18px 20px; border:1px solid #d8e2ef; border-radius:6px; background:#fbfdff; }
.math-extra-solve-problem small { display:block; margin-bottom:7px; color:#1767e8; font-size:10px; font-weight:900; }
.math-extra-solve-problem h4 { margin:0; color:#111827; font-size:18px; line-height:1.75; }
.math-extra-solve-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.math-extra-solve-choices button { display:grid; grid-template-columns:31px minmax(0,1fr); align-items:center; gap:10px; min-height:52px; padding:9px 12px; border:1px solid #d5deea; border-radius:6px; background:#fff; color:#26364f; text-align:left; cursor:pointer; }
.math-extra-solve-choices button > span { display:grid; width:29px; height:29px; place-items:center; border-radius:50%; background:#edf3fb; color:#315f9c; font-size:11px; font-weight:900; }
.math-extra-solve-choices button > b { font-size:13px; font-weight:650; }
.math-extra-solve-choices button:hover:not(:disabled),.math-extra-solve-choices button.is-selected { border-color:#4f83d6; background:#f3f7ff; }
.math-extra-solve-choices button.is-correct { border-color:#49a77b; background:#effaf4; color:#12663f; }
.math-extra-solve-choices button.is-wrong { border-color:#dd7d7d; background:#fff3f3; color:#9c3030; }
.math-extra-scratch { min-height:280px; margin-top:16px; border:1px solid #d8e2ef; border-radius:6px; background:repeating-linear-gradient(to bottom,#fff 0,#fff 31px,#e5ebf3 32px); }
.math-extra-scratch span { display:inline-block; margin:10px 12px; padding:3px 6px; border-radius:4px; background:rgba(255,255,255,.9); color:#8290a3; font-size:10px; font-weight:750; }
.math-extra-solve-sheet canvas { position:absolute; inset:0; z-index:3; display:block; width:100%; height:100%; pointer-events:none; touch-action:none; cursor:crosshair; }
.math-extra-solve-sheet.is-writing { box-shadow:inset 0 0 0 2px rgba(23,103,232,.35); }
.math-extra-solve-sheet.is-writing canvas { pointer-events:auto; }
.math-extra-solve-feedback { margin-top:12px; padding:13px 15px; border:1px solid #cfdbea; border-radius:6px; background:#fff; }
.math-extra-solve-feedback b { display:block; margin-bottom:4px; font-size:13px; }
.math-extra-solve-feedback p { margin:0; color:#40516a; font-size:12px; line-height:1.65; }
.math-extra-solve-feedback.is-correct b { color:#147653; }
.math-extra-solve-feedback.is-wrong b { color:#b43a3a; }
.math-extra-solve-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:12px; }
.math-extra-solve-footer > span { color:#6b7b90; font-size:11px; }
.math-extra-solve-footer > button { min-width:150px; min-height:42px; border:0; border-radius:6px; background:#1767e8; color:#fff; font-weight:850; cursor:pointer; }
.math-extra-solve-footer > button:disabled { cursor:not-allowed; opacity:.45; }
@media (max-width: 620px) {
  .math-followup { margin-inline: 7px; padding: 12px; }
  .math-followup > header { display: block; }
  .math-followup header small { display: block; max-width: none; margin-top: 5px; text-align: left; }
  .math-followup-suggestions button { flex: 1 1 calc(50% - 6px); }
  .math-tutor-simulator-frame { height: 470px; min-height: 470px; }
  .math-extra-solve-modal { padding:6px; }
  .math-extra-solve-dialog { width:100%; max-height:98vh; }
  .math-extra-solve-dialog > header { align-items:flex-start; }
  .math-extra-solve-tools { flex-wrap:wrap; justify-content:flex-end; }
  .math-extra-solve-body { max-height:calc(98vh - 66px); padding:8px; }
  .math-extra-solve-sheet { min-height:660px; padding:12px; }
  .math-extra-solve-choices { grid-template-columns:1fr; }
  .math-extra-solve-footer { align-items:stretch; flex-direction:column; }
}

/* ───────── 상세분석 리치 렌더링 (2026-08-05) ───────── */
.so-rich { display:grid; gap:11px; font-size:13px; line-height:1.62; color:#2b3648; }
.so-rich > *:first-child { margin-top:0; }
.so-rich p { margin:0; }
.so-rich b { color:#174ea6; font-weight:800; }

.so-rich .so-rich-h {
  margin:4px 0 0; padding:0 0 0 9px;
  font:800 13px/1.45 "Pretendard Variable",Pretendard,sans-serif;
  color:#1b2a44; border-left:3px solid #245fd4;
}

.so-rich .so-rich-ul,
.so-rich .so-rich-ol { margin:0; padding:0; list-style:none; display:grid; gap:6px; }

.so-rich .so-rich-ul > li { position:relative; padding-left:15px; }
.so-rich .so-rich-ul > li::before {
  content:""; position:absolute; left:4px; top:8px;
  width:5px; height:5px; border-radius:50%; background:#7aa0e8;
}

.so-rich .so-rich-ol { counter-reset:so-step; }
.so-rich .so-rich-ol > li { position:relative; padding-left:27px; counter-increment:so-step; }
.so-rich .so-rich-ol > li::before {
  content:counter(so-step); position:absolute; left:0; top:1px;
  width:19px; height:19px; display:grid; place-items:center;
  border-radius:6px; background:#eaf1ff; color:#174ea6;
  font:800 10.5px/1 "Pretendard Variable",Pretendard,sans-serif;
}

.so-rich .so-rich-note {
  padding:9px 11px; border-radius:8px;
  background:#f4f8ff; border:1px solid #d9e5fb; border-left:3px solid #245fd4;
  color:#1c3563; font-weight:700;
}

.so-rich .so-rich-hr { margin:2px 0; border:0; border-top:1px dashed #d5deeb; }

.so-rich .so-rich-tablewrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.so-rich .so-rich-table {
  width:100%; min-width:250px; border-collapse:collapse;
  font-size:12px; line-height:1.5;
}
.so-rich .so-rich-table th,
.so-rich .so-rich-table td {
  padding:7px 9px; border:1px solid #dfe6f2; text-align:left; vertical-align:top;
}
.so-rich .so-rich-table thead th {
  background:#eff4fd; color:#1b3563; font-weight:800; white-space:nowrap;
}
.so-rich .so-rich-table tbody tr:nth-child(even) td { background:#fafcff; }

.so-rich .so-rich-emoji { font-style:normal; }

/* 이미지 아래에 붙는 설명 블록 */
.math-os-generated + .so-rich { margin-top:12px; padding-top:12px; border-top:1px solid #e5eaf2; }

@media (max-width:760px) {
  .so-rich { font-size:13.5px; gap:12px; }
  .so-rich .so-rich-table { font-size:12px; }
  .so-rich .so-rich-table th,
  .so-rich .so-rich-table td { padding:8px; }
}

/* ───────── 국어 상세메뉴 3층 구조 (2026-08-05) ───────── */

/* 그룹이 16개라 팝오버가 길어짐 → 세로 스크롤 */
.korean-tutor-menu-popover { max-height: 72vh; overflow-y: auto; overscroll-behavior: contain; }

/* 층 머리말 */
.korean-tier-head {
  position: sticky; top: 0; z-index: 1;
  margin: 0 -3px; padding: 7px 8px 5px;
  background: #fff; border-bottom: 1px solid #dbe3f0;
  font: 800 10.5px/1 "Pretendard Variable", Pretendard, sans-serif;
  color: #5a6b86; letter-spacing: .02em;
}
.korean-tier-head[data-tier="extra"] { margin-top: 6px; }

/* 연한 배경 = 이 문제 / 추가 학습 */
.korean-tier-group[data-tier="problem"] { background: #fbfcff; }
.korean-tier-group[data-tier="extra"] { background: #fafbfe; }

/* 진한 배경 = 전체 범위 기반 */
.korean-tier-group[data-tier="global"] { background: #eef2fa; }
.korean-tier-group[data-tier="global"] .math-tutor-menu-label b { color: #16305c; }
.korean-tier-group[data-tier="global"] .math-tutor-menu-item {
  border-color: #c3d1e8; background: #f7f9fd;
}

/* 전체범위 숨기기/보기 토글 */
.korean-tier-toggle {
  width: calc(100% + 6px); margin: 7px -3px 0; padding: 8px 9px;
  display: block; text-align: left; cursor: pointer;
  border: 0; border-top: 1px solid #d5deeb; border-bottom: 1px solid #d5deeb;
  background: #e8eefb; color: #1b3563;
  font: 800 11px/1 "Pretendard Variable", Pretendard, sans-serif;
}
.korean-tier-toggle:hover,
.korean-tier-toggle:focus-visible { background: #dde7fa; outline: 2px solid rgba(37, 99, 235, .18); outline-offset: -2px; }

/* 문제 우측 상단 상세분석 트리거 (다른 과목과 동일한 그리드 아이콘) */
#peStage .tq { position: relative; }
.pe-oneshot-trigger.korean-tq-trigger {
  margin: 0;
  width: auto; min-width: 82px; height: 34px; padding: 0 9px;
  display: inline-flex; align-items:center; justify-content:center; gap:6px;
  border: 1px solid #245fd4; border-radius: 9px;
  background: #245fd4; color: #fff; cursor: pointer;
  box-shadow: 0 3px 10px rgba(36, 95, 212, .22);
}
.pe-oneshot-trigger.korean-tq-trigger-top {
  position: absolute; top: 10px; right: 0;
}
.korean-question-prompt-row {
  display: flex !important; align-items: flex-start; gap: 12px;
  margin-top: 14px !important;
}
.korean-question-prompt-row .korean-tq-trigger-stem {
  position: static; flex: 0 0 auto; margin-left: auto;
  font-size: 12px; line-height: 1;
}
.pe-oneshot-trigger.korean-tq-trigger:hover,
.pe-oneshot-trigger.korean-tq-trigger:focus-visible { background: #1d4ed8; border-color: #1d4ed8; }
#peStage .tq > .q,
#peStage .tq > .qq,
#peStage .tq > p:first-of-type { padding-right: 92px; }

@media (max-width: 760px) {
  .korean-tutor-menu-popover { max-height: 78vh; }
  .pe-oneshot-trigger.korean-tq-trigger { width: auto; min-width: 78px; height: 32px; }
  .pe-oneshot-trigger.korean-tq-trigger-top { top: 8px; }
  .korean-question-prompt-row { gap: 8px; }
}

/* ───────── 질문창 접기 시 상세분석 셸도 함께 접기 (2026-08-05) ─────────
   #subjectOneshotKorean 은 #peCoach 안에 삽입되므로, .pe-coach.collapsed 가
   셸을 숨기지 않으면 콘텐츠 폭 때문에 패널이 52px 로 줄지 않고
   왼쪽 교재 영역도 넓어지지 않는다. */
.pe-coach.collapsed .pe-oneshot-shell { display: none !important; }
.pe-coach.collapsed { overflow: hidden; }

/* ───────── 국어 상호작용 도구 (2026-08-05) ───────── */

/* 회상 쓰기 / 녹음 */
.ko-recall .ko-recall-input {
  width: 100%; margin-top: 10px; padding: 11px 12px; box-sizing: border-box;
  border: 1px solid #d5deeb; border-radius: 10px; background: #fff;
  font: 400 13px/1.6 inherit; color: #1f2430; resize: vertical; min-height: 130px;
}
.ko-recall .ko-recall-input:focus {
  outline: 2px solid rgba(37, 99, 235, .18); outline-offset: 1px; border-color: #6f96dd;
}
.ko-recall .ko-recall-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px;
}
.ko-recall .ko-recall-bar > span { font-size: 11.5px; font-weight: 700; color: #7b8798; }

.ko-recall .ko-recall-rec {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  padding: 10px 12px; border: 1px solid #e3e9f4; border-radius: 10px; background: #f8fafe;
}
.ko-recall .ko-recall-recbtn {
  height: 34px; padding: 0 14px; border-radius: 9px; cursor: pointer;
  border: 1px solid #e0382f; background: #fff; color: #e0382f;
  font: 800 12.5px/1 inherit;
}
.ko-recall .ko-recall-recbtn.is-on { background: #e0382f; color: #fff; }
.ko-recall .ko-recall-recbtn[disabled] { opacity: .5; cursor: default; }
.ko-recall .ko-recall-timer {
  font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #1b2a44;
}
.ko-recall .ko-recall-stt {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  font-size: 11.5px; font-weight: 700; color: #4a5568;
}
.ko-recall .ko-recall-feedback {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5eaf2;
}

/* 3D 논리구조 시뮬레이터 */
.ko-sim .ko-sim-stage {
  margin-top: 10px; height: 300px; border-radius: 12px;
  border: 1px solid #dfe6f2;
  background: radial-gradient(120% 90% at 50% 0%, #f7faff 0%, #eef3fb 100%);
  overflow: hidden; touch-action: none; cursor: grab;
}
.ko-sim .ko-sim-stage:active { cursor: grabbing; }
.ko-sim .ko-sim-stage canvas { display: block; }
.ko-sim .ko-sim-legend {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 9px;
  font-size: 11.5px; font-weight: 700; color: #55627a;
}
.ko-sim .ko-sim-key { display: inline-flex; align-items: center; gap: 5px; }
.ko-sim .ko-sim-key i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ko-sim .ko-sim-key[data-type="claim"] i { background: #245fd4; }
.ko-sim .ko-sim-key[data-type="reason"] i { background: #2563eb; }
.ko-sim .ko-sim-key[data-type="premise"] i { background: #8b5cf6; }
.ko-sim .ko-sim-key[data-type="counter"] i { background: #e0382f; }
.ko-sim .ko-sim-key[data-type="example"] i { background: #f59e0b; }
.ko-sim .ko-sim-off {
  margin-top: 9px; padding: 8px 11px; border-radius: 8px;
  background: #fdf4f4; border: 1px solid #f4dcdc; color: #8a3b36;
  font-size: 12px; font-weight: 700;
}
.ko-sim .ko-sim-off b { color: #e0382f; margin-right: 5px; }
.ko-sim [data-ko-sim-reset] { margin-top: 10px; }

@media (max-width: 760px) {
  .ko-sim .ko-sim-stage { height: 260px; }
  .ko-recall .ko-recall-input { min-height: 150px; }
}

/* ───────── 다음문제 버튼이 우측 패널을 가리지 않도록 (2026-08-05) ─────────
   페이지 CSS 는 .m-main.coach-open 일 때 right:378px(=360+18) 로 고정하지만,
   상세분석 패널은 min(680px,52vw) 까지 넓어져 버튼이 패널 위에 겹친다.
   JS(syncKoreanSideWidth)가 --pe-side-w 에 실제 폭을 넣어 준다. */
.m-main .pe-next-float { right: calc(var(--pe-side-w, 360px) + 18px) !important; }

/* 3D 캔버스를 스테이지 박스 가운데로 (2026-08-05) */
.ko-sim .ko-sim-stage { display: grid; place-items: center; }
.ko-sim .ko-sim-stage canvas { display: block; margin: 0 auto; max-width: 100%; }

/* ───────── 국어 채점 컴포넌트 (2026-08-05) ───────── */
.ko-quiz .ko-quiz-progress {
  height: 5px; margin: 9px 0 6px; border-radius: 999px; background: #e7edf7; overflow: hidden;
}
.ko-quiz .ko-quiz-progress > span {
  display: block; height: 100%; border-radius: 999px; background: #245fd4; transition: width .25s ease;
}
.ko-quiz .ko-quiz-q {
  margin: 12px 0 10px; padding: 12px 14px; border-radius: 10px;
  background: #f7faff; border: 1px solid #e0e8f5;
  font-size: 13.5px; font-weight: 800; line-height: 1.65; color: #1b2a44;
}
.ko-quiz .ko-quiz-choices { display: grid; gap: 7px; }
.ko-quiz .ko-quiz-choice {
  display: flex; align-items: flex-start; gap: 9px; width: 100%;
  padding: 11px 13px; border: 1px solid #d5deeb; border-radius: 10px; background: #fff;
  font: 400 13px/1.6 inherit; color: #2b3648; text-align: left; cursor: pointer;
}
.ko-quiz .ko-quiz-choice > span {
  flex: 0 0 auto; width: 19px; height: 19px; margin-top: 1px;
  display: grid; place-items: center; border-radius: 6px;
  background: #eef3fb; color: #4a5a76; font: 800 10.5px/1 inherit;
}
.ko-quiz .ko-quiz-choice:hover:not([disabled]) { border-color: #6f96dd; background: #f6f9ff; }
.ko-quiz .ko-quiz-choice.is-correct { border-color: #2563eb; background: #f1fbf6; }
.ko-quiz .ko-quiz-choice.is-correct > span { background: #2563eb; color: #fff; }
.ko-quiz .ko-quiz-choice.is-wrong { border-color: #e0382f; background: #fdf5f5; }
.ko-quiz .ko-quiz-choice.is-wrong > span { background: #e0382f; color: #fff; }
.ko-quiz .ko-quiz-choice[disabled] { cursor: default; }

.ko-quiz .ko-quiz-input {
  width: 100%; box-sizing: border-box; padding: 11px 12px;
  border: 1px solid #d5deeb; border-radius: 10px; background: #fff;
  font: 400 13px/1.6 inherit; color: #1f2430; resize: vertical;
}
.ko-quiz .ko-quiz-input:focus { outline: 2px solid rgba(37,99,235,.18); outline-offset: 1px; border-color: #6f96dd; }
.ko-quiz .ko-quiz-input[disabled] { background: #f7f9fc; color: #6b7789; }

.ko-quiz .ko-quiz-criteria {
  margin: 9px 0 0; padding: 10px 12px 10px 26px; border-radius: 9px;
  background: #f8fafe; border: 1px solid #e3e9f4;
  font-size: 12px; line-height: 1.7; color: #4a5568;
}
.ko-quiz .ko-quiz-criteria li { margin: 0; }

.ko-quiz .ko-quiz-feedback { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5eaf2; }
.ko-quiz .ko-quiz-feedback > b { display: block; margin-bottom: 7px; font-size: 13px; }
.ko-quiz .ko-quiz-feedback > b.is-correct { color: #2563eb; }
.ko-quiz .ko-quiz-feedback > b.is-wrong { color: #e0382f; }

.ko-quiz .math-tutor-primary,
.ko-quiz .ko-quiz-restart { margin-top: 11px; }
.ko-quiz .ko-quiz-restart {
  display: block; width: 100%; height: 38px; margin-top: 8px;
  border: 1px solid #d5deeb; border-radius: 10px; background: #fff;
  color: #45526b; font: 800 12.5px/1 inherit; cursor: pointer;
}
.ko-quiz .ko-quiz-restart:hover { background: #f6f9ff; border-color: #6f96dd; color: #174ea6; }
.ko-quiz .ko-quiz-summary {
  padding: 16px; border-radius: 11px; text-align: center;
  background: #f2f7ff; border: 1px solid #d9e5fb;
}
.ko-quiz .ko-quiz-summary b { font-size: 17px; color: #174ea6; }

/* 추가문제: 새 지문 블록 */
.ko-extra-passage {
  margin: 11px 0; padding: 13px 15px; border-radius: 11px;
  background: #fbfcff; border: 1px solid #e0e8f5;
  font-size: 13px; line-height: 1.8; color: #28304a;
}

/* 내 노트 추가 버튼 (2026-08-05) */
.ko-note-add { margin-top: 12px; padding-top: 11px; border-top: 1px dashed #d5deeb; }
.ko-note-add button {
  width: 100%; height: 38px; border: 1px solid #bcd0f5; border-radius: 10px;
  background: #eef4ff; color: #1d4ed8; font: 800 12.5px/1 inherit; cursor: pointer;
}
.ko-note-add button:hover:not([disabled]) { background: #dde8ff; border-color: #8bb0ff; }
.ko-note-add button[disabled] { background: #f1f5f9; border-color: #dde3ec; color: #6b7789; cursor: default; }

/* 영어 기출: 문항 헤더(.q-head) 우측에 상세분석 트리거 (2026-08-06) */
#peStage .card .q-head { position: relative; }
.pe-oneshot-trigger.en-tq-trigger {
  position: static; margin-left: auto; flex: 0 0 auto;
  width: auto; min-width: 78px; height: 32px; padding: 0 9px;
}

/* 영어 기출 상세분석 트리거: 아이콘이 비어 보이던 문제 수정 (2026-08-06)
   .math-tutor-grid-icon i 는 currentColor 테두리 + 투명 배경이라
   버튼 배경이 확실히 깔리지 않으면 뚫린 것처럼 보인다. */
#peStage .card .q-head .en-tq-trigger {
  display: inline-flex !important; align-items:center; justify-content:center; gap:6px;
  width: auto !important; min-width:78px !important; height: 32px !important; padding: 0 9px !important;
  border: 1px solid #245fd4 !important; border-radius: 9px !important;
  background: #245fd4 !important; color: #fff !important;
  box-shadow: 0 3px 10px rgba(36, 95, 212, .22);
  margin-left: auto; flex: 0 0 auto;
}
#peStage .card .q-head .en-tq-trigger:hover,
#peStage .card .q-head .en-tq-trigger:focus-visible {
  background: #1d4ed8 !important; border-color: #1d4ed8 !important;
}
#peStage .card .q-head .en-tq-trigger .math-tutor-grid-icon { transform: none; }
#peStage .card .q-head .en-tq-trigger .math-tutor-grid-icon i {
  background: #fff !important; border-color: #fff !important;
}

/* 영어 트리거 아이콘 중앙 정렬 (2026-08-06)
   grid + 2자식(아이콘 + sr-only) 조합에서 아이콘이 한쪽으로 밀리던 문제.
   flex 로 바꾸고 sr-only 는 이 버튼 안에서 확실히 레이아웃에서 제외한다. */
#peStage .card .q-head .en-tq-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  line-height: 0;
}
#peStage .card .q-head .en-tq-trigger > .sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important;
}
#peStage .card .q-head .en-tq-trigger > .math-tutor-grid-icon {
  margin: 0 !important; transform: none !important; flex: 0 0 auto;
}

/* 영어 트리거: 조상 셀렉터 의존 제거 (2026-08-06)
   버튼이 .q-head 가 아닌 다른 컨테이너에 붙어도 적용되도록 클래스만으로 고정한다.
   기본 .korean-tq-trigger 가 display:grid 라 자식 2개(아이콘+sr-only)에서 아이콘이 밀렸다. */
button.en-tq-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  width: auto !important; min-width:78px !important; height: 32px !important;
  padding: 0 9px !important; margin-left: auto !important;
  border: 1px solid #245fd4 !important; border-radius: 9px !important;
  background: #245fd4 !important; color: #fff !important;
  box-shadow: 0 3px 10px rgba(36,95,212,.22);
  flex: 0 0 auto !important; line-height: 0 !important;
  font-size: 0 !important; text-indent: 0 !important;
}
button.en-tq-trigger:hover,
button.en-tq-trigger:focus-visible { background: #1d4ed8 !important; border-color: #1d4ed8 !important; }
button.en-tq-trigger > .sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important;
  left: 0 !important; top: 0 !important;
}
button.en-tq-trigger > .math-tutor-grid-icon {
  margin: 0 !important; transform: none !important; flex: 0 0 auto !important;
  width: 17px !important; height: 17px !important; place-content: center !important;
}
button.en-tq-trigger > .math-tutor-grid-icon i { background: #fff !important; border-color: #fff !important; }

/* 전체범위 메뉴를 펼쳤을 때 스크롤을 최소화 (2026-08-06) */
.korean-tutor-menu-popover { max-height: 90vh !important; }
.korean-tutor-menu-popover .math-tutor-menu-group { padding: 2px 2px !important; }
.korean-tutor-menu-popover .math-tutor-menu-label { min-height: 22px !important; }
.korean-tutor-menu-popover .math-tutor-menu-label b { font-size: 10.5px !important; }
.korean-tutor-menu-popover .math-tutor-menu-item { min-height: 23px !important; padding: 0 6px !important; font-size: 10px !important; }
.korean-tutor-menu-popover .math-tutor-menu-items { gap: 2px !important; }
.korean-tutor-menu-popover .korean-tier-head { padding: 4px 8px 3px !important; font-size: 10px !important; }
.korean-tutor-menu-popover .korean-tier-toggle { padding: 5px 9px !important; margin-top: 4px !important; font-size: 10.5px !important; }
@media (max-width: 760px) {
  .korean-tutor-menu-popover { max-height: 86vh !important; }
  .korean-tutor-menu-popover .math-tutor-menu-item { min-height: 34px !important; font-size: 11px !important; }
}

/* 채점 패널 옆 필기 영역 (2026-08-06) */
.so-quiz-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 42%); gap: 12px; align-items: start; }
.so-pad { display: grid; gap: 7px; }
.so-pad-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.so-pad-bar button { height: 28px; padding: 0 11px; border: 1px solid #d5deeb; border-radius: 8px; background: #fff; color: #45526b; font: 800 11.5px/1 inherit; cursor: pointer; }
.so-pad-bar button.is-on { background: #245fd4; border-color: #245fd4; color: #fff; }
.so-pad-bar span { font-size: 11px; color: #8b97a8; margin-left: auto; }
.so-pad canvas { width: 100%; height: 320px; display: block; border: 1px solid #d5deeb; border-radius: 10px; background: #fff; touch-action: pan-y; }
.so-pad.is-on canvas { border-color: #245fd4; box-shadow: 0 0 0 2px rgba(36,95,212,.12); touch-action: none; cursor: crosshair; }
@media (max-width: 900px) {
  .so-quiz-split { grid-template-columns: 1fr; }
  .so-pad canvas { height: 260px; }
}

/* 전체범위 펼침 후 아래가 잘리지 않도록 (2026-08-06) */
.korean-tutor-menu-popover, .math-tutor-menu-popover { overflow-y: auto !important; overscroll-behavior: contain; }

/* 통합사회·통합과학·한국사 상세분석 메뉴 — 세로형 직사각형 (2026-08-08)
   .math-tutor-menu-items 가 flex-wrap:nowrap 이고 팝오버가 width:max-content 라
   한 그룹의 항목 수만큼 가로로 계속 늘어나 화면 위쪽을 가로지르는 띠가 됐다.
   폭을 고정하고 항목을 줄바꿈시켜 아래로 쌓는다. 라벨은 항목 위로 올린다. */
.integrated-tutor-menu-popover { width: min(420px, calc(100vw - 16px)); max-height: min(720px, calc(100vh - 24px)); }
.integrated-tutor-menu-popover .math-tutor-menu-group { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 6px 4px 7px; align-items: start; }
.integrated-tutor-menu-popover .math-tutor-menu-label { min-height: 0; padding-left: 3px; }
.integrated-tutor-menu-popover .math-tutor-menu-items { flex-wrap: wrap; gap: 4px; }
.integrated-tutor-menu-popover .math-tutor-menu-item { white-space: normal; text-align: left; line-height: 1.25; }

/* 변형문제: 문제 전문을 크게 (2026-08-06) */
.ko-quiz .ko-quiz-q-big {
  white-space: pre-wrap; font-size: 15px; line-height: 1.85; padding: 16px 18px;
  font-weight: 700; color: #12233f;
}

/* 큰 창에서 풀기 (2026-08-06) */
.so-big { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.55); }
.so-big-panel { width: min(1240px, 96vw); height: min(92vh, 900px); display: grid; grid-template-rows: auto minmax(0,1fr); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 70px rgba(15,23,42,.35); }
.so-big-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid #e5eaf2; background: #f8fafe; }
.so-big-bar b { font-size: 13px; color: #1b2a44; margin-right: auto; }
.so-big-bar button { height: 32px; padding: 0 13px; border: 1px solid #d5deeb; border-radius: 9px; background: #fff; color: #45526b; font: 800 12px/1 inherit; cursor: pointer; }
.so-big-bar button.is-on { background: #245fd4; border-color: #245fd4; color: #fff; }
.so-big-body { display: grid; grid-template-columns: minmax(300px, 40%) minmax(0,1fr); gap: 0; min-height: 0; }
.so-big-q { overflow-y: auto; padding: 20px 22px; border-right: 1px solid #e5eaf2; font-size: 15px; line-height: 1.85; color: #12233f; white-space: pre-wrap; }
.so-big-choices { margin-top: 16px; display: grid; gap: 7px; white-space: normal; }
.so-big-choices button { pointer-events: none; opacity: .95; }
.so-big-canvas { width: 100%; height: 100%; display: block; background: #fff; touch-action: pan-y; }
.so-big-canvas.is-on { touch-action: none; cursor: crosshair; background: #fcfdff; }
@media (max-width: 900px) { .so-big-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(220px,1fr); } .so-big-q { border-right: 0; border-bottom: 1px solid #e5eaf2; max-height: 40%; } }

/* 큰 창 필기 도구 (2026-08-06) */
.so-big-tools { display: inline-flex; align-items: center; gap: 5px; opacity: .45; pointer-events: none; }
.so-big-tools.is-on { opacity: 1; pointer-events: auto; }
.so-big-color { width: 24px; height: 24px; padding: 0 !important; border-radius: 50% !important; border: 2px solid #fff !important; box-shadow: 0 0 0 1px #cbd5e1; cursor: pointer; }
.so-big-color.is-on { box-shadow: 0 0 0 2px #245fd4; }
.so-big-tools button[data-so-big-tool].is-on { background: #245fd4 !important; border-color: #245fd4 !important; color: #fff !important; }
.so-big-q .ko-quiz-q { margin: 0 0 14px; }



/* 작은 창 필기 도구 (2026-08-06) */
.so-pad-tools { display: inline-flex; align-items: center; gap: 4px; opacity: .4; pointer-events: none; }
.so-pad-tools.is-on { opacity: 1; pointer-events: auto; }
.so-pad-color { width: 20px; height: 20px; padding: 0 !important; border-radius: 50% !important; border: 2px solid #fff !important; box-shadow: 0 0 0 1px #cbd5e1; cursor: pointer; }
.so-pad-color.is-on { box-shadow: 0 0 0 2px #245fd4; }
.so-pad-bar button[data-so-pad-tool].is-on { background: #245fd4; border-color: #245fd4; color: #fff; }
.so-pad-ink.is-on { background: #245fd4; border-color: #245fd4; color: #fff; }

/* 큰 창에서도 채점 (2026-08-06) */
.so-big-q .ko-quiz-choices button { cursor: pointer; pointer-events: auto; }
.so-big-q [data-so-big-proxy] { margin-top: 12px; width: 100%; height: 40px; border: 0; border-radius: 10px; background: #245fd4; color: #fff; font: 800 13px/1 inherit; cursor: pointer; }
.so-big-q [data-so-big-input] { width: 100%; box-sizing: border-box; margin-top: 12px; padding: 11px 12px; border: 1px solid #d5deeb; border-radius: 10px; font: 400 14px/1.6 inherit; }
.so-big-q .ko-quiz-feedback { margin-top: 14px; }

/* 주관식·서술형에서 필기 영역이 찌그러지던 문제 (2026-08-06)
   입력창·버튼 높이에 따라 그리드 행이 늘어나며 캔버스가 눌렸다. */
.so-quiz-split { align-items: stretch; }
.so-quiz-split > .ko-quiz { min-width: 0; }
.so-pad { min-width: 0; align-self: stretch; grid-template-rows: auto minmax(0, 1fr); }
.so-pad canvas {
  width: 100% !important;
  height: 100% !important;
  min-height: 300px !important;
  aspect-ratio: auto !important;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .so-pad canvas { min-height: 260px !important; }
}

/* 큰 창 필기 도구가 눌려 찌그러지던 문제 (2026-08-06)
   flex 바에서 버튼이 축소돼 원형 색상 버튼이 타원이 되고 글자가 뭉갰다. */
.so-big-bar { flex-wrap: wrap; row-gap: 6px; min-height: 52px; }
.so-big-bar > * { flex: 0 0 auto; }
.so-big-bar b { flex: 1 1 auto; min-width: 90px; }
.so-big-bar button {
  flex: 0 0 auto !important;
  height: 34px !important; min-height: 34px; line-height: 1 !important;
  white-space: nowrap; box-sizing: border-box;
}
.so-big-tools { flex: 0 0 auto; flex-wrap: nowrap; }
.so-big-color {
  flex: 0 0 auto !important;
  width: 26px !important; height: 26px !important;
  min-width: 26px; min-height: 26px;
  padding: 0 !important; border-radius: 50% !important; box-sizing: border-box;
}
@media (max-width: 760px) {
  .so-big-bar { padding: 9px 10px; }
  .so-big-bar b { flex: 1 1 100%; margin-bottom: 2px; }
}

/* 작은 창 필기 도구도 눌리지 않도록 (2026-08-06)
   좁은 패널에서 flex 축소로 원형 버튼이 타원이 되고 "지우/개" 처럼 줄바꿈됐다. */
.so-pad-bar { flex-wrap: wrap; row-gap: 5px; align-items: center; }
.so-pad-bar > * { flex: 0 0 auto !important; }
.so-pad-bar button {
  flex: 0 0 auto !important;
  height: 28px !important; min-height: 28px; line-height: 1 !important;
  white-space: nowrap !important; word-break: keep-all; box-sizing: border-box;
  padding: 0 9px !important; font-size: 11px !important;
}
.so-pad-bar span { flex: 0 0 auto !important; }
.so-pad-tools { flex-wrap: nowrap !important; gap: 4px; }
.so-pad-color {
  flex: 0 0 auto !important;
  width: 22px !important; height: 22px !important;
  min-width: 22px !important; min-height: 22px !important;
  padding: 0 !important; border-radius: 50% !important; box-sizing: border-box;
}

/* 수학 자유텍스트 학습 그림 (2026-08-06)
   .en-image-box 스타일이 english-oneshot.css 에만 있어 수학에서는
   원본 크기로 나와 잘려 보였다. */
.math-tutor-content + .en-image-box,
#subjectOneshotMath .en-image-box,
[data-mos-output] .en-image-box {
  margin: 0 0 12px; padding: 0;
  border: 1px solid #e0e8f5; border-radius: 12px;
  background: #fbfcff; overflow: hidden;
}
#subjectOneshotMath .en-image-box img,
[data-mos-output] .en-image-box img {
  display: block;
  width: 100%; height: auto;
  max-height: 420px; object-fit: contain;
  background: #fff;
}
#subjectOneshotMath .en-image-box .pe-oneshot-loading,
#subjectOneshotMath .en-image-box .pe-oneshot-error,
[data-mos-output] .en-image-box .pe-oneshot-loading,
[data-mos-output] .en-image-box .pe-oneshot-error {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 120px; padding: 20px 16px;
}

/* 학습 그림은 클릭해서 크게 볼 수 있음 */
.en-image-box img, .math-os-generated-figure img, .korean-generated-figure img { cursor: zoom-in; }

/* 수학 강의 영상 목록 (2026-08-06) */
[data-mos-output] .en-video-box, #subjectOneshotMath .en-video-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e5eaf2; }
[data-mos-output] .en-video-list, #subjectOneshotMath .en-video-list { display: grid; gap: 8px; margin-top: 9px; }
[data-mos-output] .en-video-item, #subjectOneshotMath .en-video-item { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid #dfe6f2; border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
[data-mos-output] .en-video-item:hover, #subjectOneshotMath .en-video-item:hover { border-color: #8bb0ff; background: #f6f9ff; }
[data-mos-output] .en-video-item img, #subjectOneshotMath .en-video-item img { flex: 0 0 auto; width: 92px; height: 52px; object-fit: cover; border-radius: 7px; cursor: pointer; }
[data-mos-output] .en-video-item > span, #subjectOneshotMath .en-video-item > span { display: grid; gap: 3px; min-width: 0; }
[data-mos-output] .en-video-item b, #subjectOneshotMath .en-video-item b { font-size: 12.5px; font-weight: 800; color: #1b2a44; line-height: 1.4; }
[data-mos-output] .en-video-item small, #subjectOneshotMath .en-video-item small { font-size: 11px; color: #7b8798; }

/* 색상 선택 원이 타원이던 원인: 선택자 우선순위 (2026-08-06)
   .so-big-bar button (0,1,1) 이 .so-big-color (0,1,0) 를 이겨 height:34px 로 덮였다.
   같은 형태로 맞춰 우선순위를 역전시킨다. */
.so-big-bar button.so-big-color {
  width: 26px !important; height: 26px !important;
  min-width: 26px !important; min-height: 26px !important;
  max-width: 26px !important; max-height: 26px !important;
  padding: 0 !important; border-radius: 50% !important;
  flex: 0 0 26px !important; box-sizing: border-box !important;
  font-size: 0 !important; line-height: 0 !important;
}
.so-pad-bar button.so-pad-color {
  width: 22px !important; height: 22px !important;
  min-width: 22px !important; min-height: 22px !important;
  max-width: 22px !important; max-height: 22px !important;
  padding: 0 !important; border-radius: 50% !important;
  flex: 0 0 22px !important; box-sizing: border-box !important;
  font-size: 0 !important; line-height: 0 !important;
}

/* 떠 있는 필기창 (2026-08-06) */
.so-float {
  position: fixed; z-index: 10000; display: none;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid #cbd7ea; border-radius: 12px; background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .28); overflow: hidden;
}
.so-float.is-open { display: grid; }
.so-float-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; row-gap: 5px;
  padding: 8px 10px; border-bottom: 1px solid #e5eaf2; background: #f8fafe;
  cursor: move; user-select: none;
}
.so-float-bar b { font-size: 12px; color: #1b2a44; margin-right: auto; }
.so-float-bar button {
  flex: 0 0 auto !important; height: 28px; min-height: 28px; padding: 0 10px;
  border: 1px solid #d5deeb; border-radius: 8px; background: #fff; color: #45526b;
  font: 800 11.5px/1 inherit; cursor: pointer; white-space: nowrap;
}
.so-float-bar button.is-on { background: #245fd4; border-color: #245fd4; color: #fff; }
.so-float-tools { display: inline-flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.so-float-bar button.so-float-color {
  width: 22px !important; height: 22px !important;
  min-width: 22px !important; min-height: 22px !important;
  max-width: 22px !important; max-height: 22px !important;
  padding: 0 !important; border-radius: 50% !important;
  border: 2px solid #fff !important; box-shadow: 0 0 0 1px #cbd5e1;
  flex: 0 0 22px !important; font-size: 0 !important; line-height: 0 !important;
}
.so-float-bar button.so-float-color.is-on { box-shadow: 0 0 0 2px #245fd4; }
.so-float canvas {
  width: 100%; height: 100%; display: block; background: #fff;
  touch-action: none; cursor: crosshair;
}
.so-float.ink-off canvas { touch-action: pan-y; cursor: default; }
.so-float-resize {
  position: absolute; right: 0; bottom: 0; width: 18px; height: 18px;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 48%, #b9c6da 48%, #b9c6da 60%, transparent 60%,
                              transparent 70%, #b9c6da 70%, #b9c6da 82%, transparent 82%);
}

/* 필기 시작 호버 메뉴 (2026-08-06) */
.so-ink-menu {
  position: fixed; z-index: 10001; display: none; flex-direction: column; gap: 4px;
  padding: 5px; border: 1px solid #d5deeb; border-radius: 10px; background: #fff;
  box-shadow: 0 12px 30px rgba(23, 37, 80, .18);
}
.so-ink-menu.is-open { display: flex; }
.so-ink-menu button {
  height: 32px; padding: 0 13px; border: 0; border-radius: 8px; background: #fff;
  color: #334155; font: 800 12px/1 inherit; cursor: pointer; text-align: left; white-space: nowrap;
}
.so-ink-menu button:hover { background: #eef4ff; color: #1d4ed8; }

/* 통합과목 화면에서 직접 만든 영상 팝업 (2026-08-06) */
.so-media-overlay { position: absolute; z-index: 30; left: 0; top: 0; bottom: 0; right: var(--pe-side-w, 360px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 46px 18px 18px; background: rgba(10, 16, 32, .82); backdrop-filter: blur(3px); }
.so-media-overlay[hidden] { display: none; }
.so-media-overlay .pe-media-close { position: absolute; top: 12px; right: 14px; z-index: 2; padding: 7px 13px; border: 0; border-radius: 999px; background: #fff; color: #14204a; font-weight: 700; font-size: 13px; cursor: pointer; }
.so-media-overlay .pe-media-ink { position: absolute; top: 12px; left: 14px; z-index: 2; padding: 7px 13px; border: 0; border-radius: 999px; background: #fff; color: #14204a; font-weight: 700; font-size: 13px; cursor: pointer; }
.so-media-overlay .pe-media-ink.on { background: #ffd76e; }
.so-media-overlay .pe-media-body { width: min(100%, 880px); aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 48px rgba(0, 0, 0, .45); }
.so-media-overlay .pe-media-body iframe,
.so-media-overlay .pe-media-body video { width: 100%; height: 100%; border: 0; display: block; background:#000; object-fit:contain; }
.so-media-find { width: min(100%, 880px); display: flex; flex-direction: column; gap: 7px; }
.so-media-find input { width: 100%; padding: 9px 13px; border: 0; border-radius: 10px; font-size: 14px; }
.so-media-hits { display: flex; flex-wrap: wrap; gap: 6px; max-height: 96px; overflow-y: auto; }
.so-media-hits small { color: #d6def2; font-size: 12px; }
.so-media-hits button { padding: 5px 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .93); color: #16224b; font-size: 12px; cursor: pointer; }
.so-media-hits button:hover { background: #ffe9a8; }

/* 교재 카드 안에 띄우는 영상 팝업 (2026-08-07)
   학습모드(.app)에는 .m-main 이 없어 팝업이 화면 전체를 덮고
   오른쪽 나비쌤 질문창까지 가렸다. 교재 카드 안에 붙일 때는 폭을 카드에 맞춘다. */
/* 교재 카드 안에는 정석나비 문제 화면(#lmMindmapWrap z:40), 버튼 바(#lmBtnBar z:46),
   필기 캔버스(#hwCanvas z:45)가 이미 쌓여 있다. 기본 z-index:30 이면 팝업이 그 아래에 깔려
   재생은 되는데 화면에 보이지 않는다 — 클릭해도 아무 반응 없어 보이던 원인. (2026-08-07) */
.so-media-overlay.so-media-inbook { right: 0; border-radius: 0; padding: 46px 16px 16px; z-index: 60; }
.so-media-overlay.so-media-inbook .pe-media-body { width: 100%; }
.so-media-overlay.so-media-daitg { position:fixed; inset:0 608px 0 0; z-index:2147483050; border-radius:0; padding:46px 16px 16px; }
.so-media-overlay.so-media-daitg .pe-media-body { width:100%; }
@media (max-width:900px) {
  .so-media-overlay.so-media-daitg { right:0; z-index:2147483100; }
}
/* 필기 중에는 교재 캔버스를 영상 팝업 위로 올린다 (2026-08-07) */
/* 문제풀이 화면에서는 JS 가 #hwCanvas 에 인라인 z-index(45) 를 준다. !important 없이는 밀린다. */
#canvaswrap.so-media-ink #hwCanvas { z-index: 61 !important; }
/* 영상 팝업이 열려 있는 동안에는 교재 헤드바의 필기 버튼을 숨긴다. (2026-08-08)
   국어·영어·수학 팝업은 스테이지를 통째로 덮어 필기 버튼이 팝업 것 하나뿐이었는데,
   학습모드 팝업은 교재 뷰(#canvaswrap) 안에만 떠서 헤드바(z-index:50)의 #writeToggle 이
   팝업의 ✎ 필기 와 같이 보여 버튼이 두 개가 됐다. */
body.pe-media-open #writeToggle { display: none !important; }

/* 상세분석 질문 입력줄 (2026-08-08)
   통합 패널의 폼에는 클래스가 없어 input·button 이 브라우저 기본 스타일(2px inset/outset,
   radius 0)로 떨어져 있었다. 수학 패널이 쓰는 .math-followup-form 을 그대로 재사용하되,
   그쪽 버튼은 38px 정사각 아이콘 전제라 '질문' 글자가 잘린다. 폭만 늘려 준다. */
#integratedOneshotPanel .math-followup-form { grid-template-columns: minmax(0, 1fr) auto; margin-top: 10px; }
#integratedOneshotPanel .math-followup-form input { font-size: 13px; }
#integratedOneshotPanel .math-followup-form button { width: auto; padding: 0 16px; font-size: 13px; font-weight: 800; line-height: 1; }
#integratedOneshotPanel .math-followup-form button:hover { background: #1257c8; }
#integratedOneshotPanel .en-video-box { margin: 6px 0 10px; padding: 12px 13px 14px; border: 1px solid #e3ebf8; border-radius: 12px; background: #f9fbff; }
#integratedOneshotPanel .en-video-list { display: grid; gap: 8px; margin-top: 9px; }
#integratedOneshotPanel .en-video-item { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid #dfe6f2; border-radius: 10px; background: #fff; cursor: pointer; text-align: left; width: 100%; }
#integratedOneshotPanel .en-video-item:hover { border-color: #8bb0ff; background: #f6f9ff; }
#integratedOneshotPanel .en-video-item img { flex: 0 0 auto; width: 92px; height: 52px; object-fit: cover; border-radius: 7px; }
#integratedOneshotPanel .en-video-item span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#integratedOneshotPanel .en-video-item b { font-size: 13px; line-height: 1.35; color: #16224b; }
#integratedOneshotPanel .en-video-item small { font-size: 11.5px; color: #6b7893; }
/* 해설 강의 목록 머리말 (2026-08-07)
   .en-video-box header / .en-video-more 에 규칙이 없어 브라우저 기본값으로 떨어졌다.
   과목명·제목이 h4 기본 여백만큼 벌어지고 "다른 영상 찾기" 가 줄 아래로 밀려 레이아웃이 깨진다. */
#integratedOneshotPanel .en-video-box > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
#integratedOneshotPanel .en-video-box > header > div { display: grid; gap: 3px; min-width: 0; }
#integratedOneshotPanel .en-video-box header small { font-size: 11px; font-weight: 800; letter-spacing: .01em; color: #2f56b8; }
#integratedOneshotPanel .en-video-box header h4 { margin: 0; font-size: 14px; line-height: 1.35; color: #15233a; }
#integratedOneshotPanel .en-video-more { flex: 0 0 auto; padding: 5px 11px; border: 1.5px solid #cbd8ef; border-radius: 999px; background: #fff; color: #35456b; font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap; cursor: pointer; }
#integratedOneshotPanel .en-video-more:hover { border-color: #8bb0ff; background: #f6f9ff; }

/* Navi쌤 추천 카드 — 확신도·근거 진단 결과 (2026-08-06) */
.so-reco { margin: 0 0 12px; padding: 12px 14px; border: 1.5px solid #cfe0ff; border-radius: 13px; background: linear-gradient(180deg, #f4f8ff, #eaf1ff); }
.so-reco header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.so-reco header small { font-size: 11px; font-weight: 800; letter-spacing: .02em; color: #2f56b8; }
.so-reco header b { font-size: 12.5px; color: #16224b; }
.so-reco p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: #2b3653; }
.so-reco-go { display: flex; }
.so-reco-start { padding: 9px 16px; border: 0; border-radius: 10px; background: #1f3f9e; color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; }
.so-reco-start:hover { background: #17337f; }
.so-reco-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed #c6d6f5; }
.so-reco-next small { font-size: 11.5px; font-weight: 700; color: #6b7893; }
.so-reco-next button { padding: 5px 11px; border: 1.5px solid #cbd8ef; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; color: #35456b; cursor: pointer; }
.so-reco-next button:hover { border-color: #8bb0ff; background: #f6f9ff; }


/* 상세분석 메뉴 머리말 — 어느 과목 메뉴인지 표시 (2026-08-07) */
.integrated-menu-head { position: sticky; top: 0; z-index: 2; padding: 8px 12px 7px; border-bottom: 1px solid #e4eaf3; background: #f7faff; font-size: 11.5px; font-weight: 800; color: #2f56b8; letter-spacing: .01em; }


/* 상세분석 쓰기·첨삭 영역 (2026-08-07) */
.so-write textarea { width: 100%; margin-top: 10px; padding: 11px 12px; border: 1.5px solid #dbe4f3; border-radius: 10px; font: inherit; font-size: 13.5px; line-height: 1.65; resize: vertical; background: #fff; color: #1f2740; }
.so-write textarea:focus { border-color: #8bb0ff; outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 255, .1); }
.so-write-bar { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.so-write-bar button { height: 34px; padding: 0 14px; border: 1px solid #dbe4f3; border-radius: 9px; background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: #35456b; cursor: pointer; }
.so-write-bar button.math-tutor-primary { border-color: #1f3f9e; background: #1f3f9e; color: #fff; }
.so-write-bar button:disabled { opacity: .6; cursor: not-allowed; }


/* 패널 머리말의 상태 문구가 줄바꿈되지 않게 (2026-08-07) panel-nav-nowrap */
.math-tutor-panel-nav > span { white-space: nowrap; justify-self: end; }


/* 수학 전체 범위 메뉴: 펼침 직후 위로 재배치하면서 한 화면에 모두 보이도록 압축한다.
   더 낮은 화면에서는 팝오버 자체의 overflow-y가 안전하게 스크롤을 제공한다. */
.math-tutor-menu-popover.is-global-expanded .math-tutor-menu-group {
  padding-top: 3px;
  padding-bottom: 3px;
}
.math-tutor-menu-popover.is-global-expanded .korean-tier-toggle {
  margin-top: 4px;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Math Da it G — 영역 선택 → 질문 → 멀티모드 답변 */
.daitg-flow-overlay{position:fixed;inset:0;z-index:2147483000;pointer-events:none;background:linear-gradient(90deg,transparent 0 58%,rgba(15,23,42,.08));font-family:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.daitg-flow-panel{pointer-events:auto;position:absolute;top:18px;right:18px;bottom:18px;width:min(590px,calc(100vw - 36px));box-sizing:border-box;overflow:auto;overscroll-behavior:contain;border:1px solid #d7dfec;border-radius:22px;background:rgba(255,255,255,.985);color:#172033;box-shadow:0 24px 70px rgba(15,23,42,.24);scrollbar-width:thin}
.daitg-select-step,.daitg-question-step,.daitg-answer-step{min-height:100%;box-sizing:border-box;padding:24px}.daitg-step-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.daitg-step-heading small{display:block;margin-bottom:6px;color:#2563eb;font-size:12px;font-weight:850;letter-spacing:.02em}.daitg-step-heading h2{margin:0;color:#172033;font-size:22px;line-height:1.34;letter-spacing:-.025em;word-break:keep-all}.daitg-step-heading>button{flex:0 0 auto;width:36px;height:36px;padding:0;border:1px solid #dbe3ef;border-radius:11px;background:#fff;color:#536079;font-size:24px;line-height:1;cursor:pointer}
.daitg-help{margin:14px 0 18px;color:#60708a;font-size:13px;line-height:1.6;word-break:keep-all}.daitg-select-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.daitg-select-modes button,.daitg-select-actions button,.daitg-back-select,.daitg-mode-empty button,.daitg-answer-error button,.daitg-learning-more button{min-height:42px;padding:9px 12px;border:1px solid #d8e1ee;border-radius:11px;background:#fff;color:#344158;font:800 12.5px/1.2 inherit;cursor:pointer}.daitg-select-modes button,.daitg-back-select{display:inline-flex;align-items:center;justify-content:center;gap:7px}.daitg-control-icon{display:inline-grid;width:18px;height:18px;place-items:center;flex:0 0 18px}.daitg-ui-icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.daitg-custom-question [data-daitg-mic] .daitg-ui-icon{width:20px;height:20px;margin:auto}.daitg-select-modes button:hover,.daitg-select-modes button:focus-visible,.daitg-back-select:hover{border-color:#6c91ee;background:#f5f8ff;color:#1748c7}.daitg-flow-panel button.is-primary,.daitg-select-actions button.is-primary{border-color:#2457e6;background:linear-gradient(135deg,#3168f4,#1e4ed9);color:#fff;box-shadow:0 7px 18px rgba(37,86,225,.22)}
.daitg-region-list{display:grid;gap:9px;margin:18px 0}.daitg-region-card{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:9px 10px 9px 12px;border:1px solid #bfd0ff;border-radius:12px;background:#f7f9ff}.daitg-region-card>div{min-width:0;display:flex;align-items:center;gap:12px}.daitg-region-card span{flex:0 0 auto;color:#1d4ed8;font-size:12px;font-weight:900}.daitg-region-card img{max-width:330px;height:48px;object-fit:contain;object-position:left center;border:1px dashed #7da1ff;border-radius:7px;background:#fff}.daitg-region-card small{color:#7a879d;font-size:11px}.daitg-region-card>button{width:32px;height:32px;padding:0;border:0;border-radius:9px;background:transparent;color:#6c7890;font-size:20px;cursor:pointer}
.daitg-empty-selection{display:grid;place-items:center;min-height:150px;margin:18px 0;border:1px dashed #cbd7e8;border-radius:14px;background:#f8fafc;text-align:center}.daitg-empty-selection b{align-self:end;color:#44516a;font-size:14px}.daitg-empty-selection span{align-self:start;margin-top:5px;color:#8792a4;font-size:12px}.daitg-select-actions{display:grid;grid-template-columns:1fr 2fr;gap:9px;margin-top:8px}.daitg-select-actions button:disabled{opacity:.45;cursor:not-allowed}.daitg-privacy{margin:14px 0 0;color:#778399;font-size:11.5px;line-height:1.5;text-align:center}
.daitg-question-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;padding:11px 12px;border:1px solid #bed0ff;border-radius:12px;background:#f7f9ff}.daitg-question-preview b{color:#315183;font-size:12px}.daitg-question-preview>div{display:flex;gap:5px;overflow:hidden}.daitg-question-preview img{width:74px;height:38px;object-fit:cover;border:1px dashed #7ea1fc;border-radius:6px;background:#fff}.daitg-question-preview.is-empty{display:grid;gap:4px}.daitg-question-preview.is-empty span{color:#7d899b;font-size:11px}
.daitg-category-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:14px}.daitg-category-tabs button{min-height:43px;padding:8px 5px;border:0;border-radius:11px;background:#f1f4f9;color:#4a566b;font:850 12px/1.2 inherit;cursor:pointer;white-space:nowrap}.daitg-category-tabs button i{display:inline-grid;place-items:center;width:20px;height:20px;margin-right:5px;border-radius:50%;background:#e2e8f1;color:#58657a;font-size:10px;font-style:normal}.daitg-category-tabs button.is-active{background:linear-gradient(135deg,#3268f4,#2352da);color:#fff;box-shadow:0 7px 17px rgba(37,86,225,.22)}.daitg-category-tabs button.is-active i{background:rgba(255,255,255,.24);color:#fff}
.daitg-question-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.daitg-question-grid button{min-height:96px;display:grid;grid-template-columns:50px 1fr 14px;align-items:center;gap:9px;padding:11px 12px;border:1px solid #dbe3ef;border-radius:13px;background:#fff;color:#344158;text-align:left;cursor:pointer}.daitg-question-grid button:hover,.daitg-question-grid button:focus-visible{border-color:#7ea1f6;background:#f7f9ff;outline:3px solid rgba(37,99,235,.11)}.daitg-question-grid i{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#f0f4ff;font-style:normal}.daitg-question-grid i.is-asset{width:50px;height:50px;border-radius:0;background:transparent}.daitg-question-grid i.is-asset img{display:block;width:50px;height:50px;object-fit:contain;filter:drop-shadow(0 4px 7px rgba(37,99,235,.13))}.daitg-question-grid span{font-size:13px;font-weight:800;line-height:1.45;word-break:keep-all}.daitg-question-grid b{color:#40516f;font-size:22px}
.daitg-custom-question{display:grid;grid-template-columns:1fr 38px 84px;gap:7px;margin-top:14px}.daitg-custom-question input{min-width:0;height:48px;box-sizing:border-box;padding:0 14px;border:1px solid #cbd7e7;border-radius:12px;background:#fff;color:#172033;font:650 13px/1 inherit;outline:0}.daitg-custom-question input:focus{border-color:#4d7cf3;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.daitg-custom-question button{border:1px solid #d5deec;border-radius:12px;background:#fff;color:#2451ca;font-weight:850;cursor:pointer}.daitg-custom-question [data-daitg-mic].is-listening{border-color:#ef4444;background:#fef2f2;animation:daitgPulse 1s infinite}.daitg-back-select{margin-top:12px}
.daitg-answer-modes{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:18px 0 10px}.daitg-answer-modes button{min-height:38px;padding:6px 3px;border:1px solid #dbe3ef;border-radius:9px;background:#fff;color:#647087;font:750 11.5px/1.1 inherit;cursor:pointer}.daitg-answer-modes button.is-active{border-color:#2d62ea;background:#2d62ea;color:#fff;box-shadow:0 5px 14px rgba(37,99,235,.2)}.daitg-answer-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.daitg-answer-options select{height:34px;padding:0 30px 0 10px;border:1px solid #d8e0eb;border-radius:9px;background:#fff;color:#41506a;font:700 12px/1 inherit}.daitg-answer-options label{display:inline-flex;align-items:center;gap:8px;color:#5f6d82;font-size:12px;font-weight:750}.daitg-answer-options input{width:34px;height:18px;accent-color:#2563eb}
.daitg-answer-panel{min-height:270px;box-sizing:border-box;padding:18px;border:1.5px solid #9db7ff;border-radius:15px;background:linear-gradient(180deg,#fff,#fbfcff)}.daitg-answer-copy{color:#263247;font-size:14px;line-height:1.75;word-break:keep-all}.daitg-answer-copy.is-steps{padding-left:8px;border-left:3px solid #4f7df1}.daitg-answer-loading,.daitg-answer-error,.daitg-mode-empty{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;color:#5d6a7f;text-align:center}.daitg-answer-loading b,.daitg-answer-error b,.daitg-mode-empty b{color:#26354e;font-size:15px}.daitg-answer-loading small,.daitg-answer-error span,.daitg-mode-empty span{max-width:370px;font-size:12px;line-height:1.55}.daitg-mode-empty button,.daitg-answer-error button{border-color:#4f7df1;color:#1e50d2}.daitg-answer-image{margin:0}.daitg-answer-image img{display:block;width:100%;max-height:340px;object-fit:contain;border-radius:10px;background:#f7f9fc}.daitg-answer-image figcaption{margin-top:8px;color:#6e7b90;font-size:11px;text-align:center}
.daitg-variant-guide{margin:14px 0;color:#5b6b82;font-size:13px;line-height:1.6}.daitg-variant-panel{min-height:0;padding:12px;background:#f6f9fe}.daitg-variant-panel .math-extra-generated{margin:0;border-radius:12px;background:#fff}.daitg-variant-panel .math-extra-output{border-radius:9px}.daitg-variant-panel .math-extra-output>b{font-size:14px}.daitg-variant-panel .math-extra-output li{font-size:13px}.daitg-variant-panel .math-extra-solve-open{min-height:46px;border-radius:10px;font-size:13px}.daitg-variant-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.daitg-variant-actions button{min-height:42px;padding:9px 10px;border:1px solid #b9caf2;border-radius:11px;background:#fff;color:#2453cc;font:850 12px/1.25 inherit;cursor:pointer}.daitg-variant-actions button:hover:not(:disabled){border-color:#5d83ec;background:#f4f7ff}.daitg-variant-actions button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:560px){.daitg-variant-actions{grid-template-columns:1fr}}
.daitg-answer-copy.so-rich{display:grid;gap:12px}.daitg-answer-copy.so-rich .so-rich-h{margin:4px 0 0;padding:0 0 8px;border-bottom:1px solid #dbe6ff;color:#174ec8;font-size:15px}.daitg-answer-copy.so-rich .so-rich-ol>li{min-height:30px;padding:7px 9px 7px 38px;border:1px solid #e1e8f4;border-radius:10px;background:#fff}.daitg-answer-copy.so-rich .so-rich-ol>li:before{left:8px;top:7px;background:#2563eb;color:#fff}.daitg-answer-copy.so-rich .so-rich-note{border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1e40af;font-weight:800}.daitg-generated-result,.daitg-video-result{display:grid;gap:12px}.daitg-generated-result>header,.daitg-video-result>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #e2e8f2}.daitg-generated-result>header small,.daitg-video-result>header small{display:block;margin-bottom:3px;color:#2563eb;font-size:11px;font-weight:900}.daitg-generated-result>header h3,.daitg-video-result>header h3{margin:0;color:#243148;font-size:15px;line-height:1.4}.daitg-generated-result>header>span,.daitg-video-result>header>span{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#eaf1ff;color:#2456d8;font-size:10px;font-weight:900}.daitg-media-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.daitg-media-actions button,.daitg-video-refresh{min-height:36px;border:1px solid #d7e1f0;border-radius:9px;background:#fff;color:#3156aa;font:800 11px/1 inherit;cursor:pointer}.daitg-video-list{display:grid;gap:8px}.daitg-video-card{display:grid;grid-template-columns:118px 1fr;align-items:center;gap:12px;min-height:74px;padding:7px;border:1px solid #dce5f1;border-radius:11px;background:#fff;text-align:left;cursor:pointer}.daitg-video-card:hover,.daitg-video-card.is-playing{border-color:#5d86ef;background:#f5f8ff}.daitg-video-card img{width:118px;height:66px;object-fit:cover;border-radius:7px;background:#e9eef6}.daitg-video-card>i{display:grid;place-items:center;width:118px;height:66px;border-radius:7px;background:#eaf1ff;color:#2563eb;font-style:normal}.daitg-video-card>span{display:grid;gap:6px;min-width:0}.daitg-video-card b{overflow:hidden;color:#27364f;font-size:12.5px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.daitg-video-card small{color:#718097;font-size:10.5px}.daitg-video-refresh{width:100%;border-color:#8dadfa;color:#1d4ed8}.daitg-video-player{position:relative;display:grid;gap:7px;padding:9px;border-radius:12px;background:#111827;color:#fff}.daitg-video-player iframe,.daitg-video-player video{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:8px;background:#000}.daitg-video-player>b{padding:0 5px 3px;font-size:12px}.daitg-video-player>button{position:absolute;top:15px;right:15px;z-index:2;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:rgba(15,23,42,.8);color:#fff;font-size:20px;cursor:pointer}
.daitg-simulator-result{display:grid;gap:13px}.daitg-simulator-result>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #e2e8f2}.daitg-simulator-result>header small{display:block;margin-bottom:3px;color:#2563eb;font-size:11px;font-weight:900}.daitg-simulator-result>header h3{margin:0;color:#243148;font-size:15px;line-height:1.4}.daitg-simulator-result>header>span{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#eaf1ff;color:#2456d8;font-size:10px;font-weight:900}.daitg-simulator-guide{margin:0;color:#53627a;font-size:12px;line-height:1.6}.daitg-simulator-controls{display:grid;gap:9px;padding:12px;border:1px solid #dbe6f5;border-radius:12px;background:#f7faff}.daitg-simulator-controls label{display:grid;gap:7px}.daitg-simulator-controls label>span{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#314058;font-size:12px}.daitg-simulator-controls output{min-width:42px;padding:3px 8px;border-radius:7px;background:#2457e6;color:#fff;font-weight:900;text-align:center}.daitg-simulator-controls input[type=range]{width:100%;accent-color:#2457e6;cursor:grab}.daitg-simulator-controls input[type=range]:active{cursor:grabbing}.daitg-simulator-outputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.daitg-simulator-outputs article{display:grid;gap:5px;min-width:0;padding:10px;border:1px solid #dce5f2;border-radius:11px;background:#fff}.daitg-simulator-outputs article small{color:#69778d;font-size:10px;font-weight:800}.daitg-simulator-outputs article>b{overflow:hidden;color:#334155;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.daitg-simulator-outputs article>strong{color:#2457e6;font-size:22px;line-height:1}.daitg-simulator-outputs article>i{display:block;height:5px;overflow:hidden;border-radius:999px;background:#e9eef7}.daitg-simulator-outputs article>i span{display:block;height:100%;border-radius:inherit;background:#3971ed;transition:width .16s ease}.daitg-simulator-outputs article.is-orange>strong{color:#e87018}.daitg-simulator-outputs article.is-orange>i span{background:#f18a37}.daitg-simulator-outputs article.is-green>strong{color:#18845d}.daitg-simulator-outputs article.is-green>i span{background:#25a775}.daitg-simulator-outputs article.is-purple>strong{color:#7149bf}.daitg-simulator-outputs article.is-purple>i span{background:#8a63d2}.daitg-simulator-challenge{display:grid;gap:5px;padding:11px 12px;border:1px solid #bcd0ff;border-radius:11px;background:#eef4ff;color:#29416f}.daitg-simulator-challenge b{font-size:12px;color:#174ec8}.daitg-simulator-challenge span{font-size:12px;line-height:1.5}.daitg-simulator-challenge small{color:#66758b;font-size:10.5px;line-height:1.45}@media(max-width:520px){.daitg-simulator-outputs{grid-template-columns:1fr}}
.daitg-simulator-visual{display:grid;gap:8px;overflow:hidden;border:1px solid #d4e0f1;border-radius:14px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);box-shadow:0 8px 24px rgba(37,87,230,.07)}.daitg-simulator-visual>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 0}.daitg-simulator-visual>header>div{display:grid;gap:2px;min-width:0}.daitg-simulator-visual>header small{color:#2563eb;font-size:10px;font-weight:900}.daitg-simulator-visual>header b{overflow:hidden;color:#26364f;font-size:12.5px;text-overflow:ellipsis;white-space:nowrap}.daitg-simulator-expand-button{flex:0 0 auto;min-height:30px;padding:5px 10px;border:1px solid #b9ccf7;border-radius:9px;background:#eef4ff;color:#2456cf;font:850 10.5px/1 inherit;cursor:zoom-in;transition:background .16s ease,border-color .16s ease,transform .16s ease}.daitg-simulator-expand-button:hover,.daitg-simulator-expand-button:focus-visible{border-color:#6f94ee;background:#dfeaff;outline:3px solid rgba(37,99,235,.12);transform:translateY(-1px)}.daitg-simulator-canvas{padding:0 6px 2px}.daitg-simulator-canvas svg{display:block;width:100%;height:auto;max-height:380px}.daitg-simulator-canvas .sim-axis-label{fill:#7b8799;font-size:10px;font-weight:700}.daitg-simulator-canvas .sim-point-label{font-size:11px;font-weight:800;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}.daitg-simulator-canvas .sim-geometry-label{font-size:13px;font-weight:900;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}.daitg-simulator-canvas .sim-bar-value{font-size:13px;font-weight:900}.daitg-simulator-canvas .sim-bar-label{fill:#4d5c73;font-size:11px;font-weight:800}.daitg-simulator-legend{display:flex;flex-wrap:wrap;gap:7px 12px;padding:0 12px 10px;color:#59687d;font-size:10px;font-weight:700}.daitg-simulator-legend span{display:inline-flex;align-items:center;gap:5px}.daitg-simulator-legend i{width:9px;height:9px;border-radius:50%}@media(max-width:520px){.daitg-simulator-expand-button{min-height:28px;padding:4px 8px;font-size:9.5px}.daitg-simulator-canvas{padding:0}.daitg-simulator-canvas svg{max-height:300px}.daitg-simulator-canvas .sim-point-label{font-size:10px}.daitg-simulator-canvas .sim-geometry-label{font-size:12px}}
.daitg-simulator-zoom-open{overflow:hidden}.daitg-simulator-zoom-modal{position:fixed;inset:0;z-index:2147483600;display:grid;place-items:center;box-sizing:border-box;padding:20px;background:rgba(13,24,43,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.daitg-simulator-zoom-dialog{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(1180px,calc(100vw - 40px));max-height:calc(100vh - 40px);overflow:hidden;border:1px solid rgba(255,255,255,.55);border-radius:24px;background:#fff;box-shadow:0 34px 90px rgba(4,15,34,.42)}.daitg-simulator-zoom-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 20px;border-bottom:1px solid #dfe7f2;background:linear-gradient(135deg,#f7faff,#eef4ff)}.daitg-simulator-zoom-header>div{min-width:0}.daitg-simulator-zoom-header small{display:block;margin-bottom:3px;color:#2563eb;font-size:11px;font-weight:900}.daitg-simulator-zoom-header h2{overflow:hidden;margin:0;color:#1e2d46;font-size:20px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.daitg-simulator-zoom-header>button{flex:0 0 auto;width:40px;height:40px;padding:0;border:1px solid #cbd8ea;border-radius:12px;background:#fff;color:#42516a;font:400 28px/1 inherit;cursor:pointer}.daitg-simulator-zoom-header>button:hover,.daitg-simulator-zoom-header>button:focus-visible{border-color:#7396ed;background:#edf3ff;color:#1f54d2;outline:3px solid rgba(37,99,235,.13)}.daitg-simulator-zoom-content{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,.8fr);gap:18px;min-height:0;overflow:auto;padding:18px;background:#f5f8fc}.daitg-simulator-zoom-stage{display:grid;align-content:start;gap:10px;min-width:0}.daitg-simulator-zoom-stage>p{margin:0;padding:0 3px;color:#53627a;font-size:13px;line-height:1.6}.daitg-simulator-zoom-stage .daitg-simulator-visual{min-height:0;border-radius:18px;box-shadow:0 16px 42px rgba(37,87,230,.11)}.daitg-simulator-zoom-stage .daitg-simulator-expand-button{display:none}.daitg-simulator-zoom-stage .daitg-simulator-visual>header{padding:14px 17px 2px}.daitg-simulator-zoom-stage .daitg-simulator-visual>header small{font-size:11px}.daitg-simulator-zoom-stage .daitg-simulator-visual>header b{font-size:15px}.daitg-simulator-zoom-stage .daitg-simulator-canvas{display:grid;place-items:center;padding:0 14px 4px}.daitg-simulator-zoom-stage .daitg-simulator-canvas svg{width:100%;max-height:600px}.daitg-simulator-zoom-stage .daitg-simulator-legend{padding:0 17px 14px;font-size:11px}.daitg-simulator-zoom-side{display:grid;align-content:start;gap:12px;min-width:0;padding:15px;border:1px solid #d9e3f0;border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(32,54,91,.08)}.daitg-simulator-zoom-side>div:first-child small{display:block;margin-bottom:3px;color:#2563eb;font-size:10.5px;font-weight:900}.daitg-simulator-zoom-side>div:first-child h3{margin:0;color:#27364e;font-size:15px}.daitg-simulator-zoom-side .daitg-simulator-controls{padding:13px}.daitg-simulator-zoom-side .daitg-simulator-outputs{grid-template-columns:1fr 1fr}.daitg-simulator-zoom-side .daitg-simulator-outputs article>strong{font-size:25px}@media(max-width:860px){.daitg-simulator-zoom-modal{padding:10px}.daitg-simulator-zoom-dialog{width:calc(100vw - 20px);max-height:calc(100vh - 20px);border-radius:18px}.daitg-simulator-zoom-content{grid-template-columns:1fr}.daitg-simulator-zoom-stage .daitg-simulator-canvas svg{max-height:52vh}.daitg-simulator-zoom-side{grid-template-columns:1fr 1fr;align-items:start}.daitg-simulator-zoom-side>div:first-child,.daitg-simulator-zoom-side .daitg-simulator-challenge{grid-column:1/-1}}@media(max-width:560px){.daitg-simulator-zoom-header{padding:13px 14px}.daitg-simulator-zoom-header h2{font-size:16px}.daitg-simulator-zoom-content{padding:10px}.daitg-simulator-zoom-stage .daitg-simulator-canvas{padding:0 4px}.daitg-simulator-zoom-side{grid-template-columns:1fr;padding:12px}.daitg-simulator-zoom-side>div:first-child,.daitg-simulator-zoom-side .daitg-simulator-challenge{grid-column:auto}.daitg-simulator-zoom-side .daitg-simulator-outputs{grid-template-columns:1fr}.daitg-simulator-zoom-stage .daitg-simulator-canvas svg{max-height:42vh}}
.daitg-simulator-outputs article.is-red>strong{color:#dc3f55}.daitg-simulator-outputs article.is-red>i span{background:#dc3f55}.daitg-simulator-outputs article.is-teal>strong{color:#0b8f9c}.daitg-simulator-outputs article.is-teal>i span{background:#0b8f9c}
.daitg-audio-result{display:grid;gap:12px}.daitg-audio-result>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #e2e8f2}.daitg-audio-result>header small{display:block;margin-bottom:3px;color:#2563eb;font-size:11px;font-weight:900}.daitg-audio-result>header h3{margin:0;color:#243148;font-size:15px;line-height:1.4}.daitg-audio-result>header>span{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#eaf1ff;color:#2456d8;font-size:10px;font-weight:900}.daitg-audio-transcript{display:grid;gap:7px;max-height:235px;overflow:auto;padding:12px;border:1px solid #dce6f3;border-radius:12px;background:#fbfdff}.daitg-audio-transcript>small{color:#2563eb;font-size:10px;font-weight:900}.daitg-audio-transcript .so-rich{color:#334155;font-size:12.5px;line-height:1.7}.daitg-audio-transcript .so-rich>*:first-child{margin-top:0}.daitg-audio-transcript .so-rich>*:last-child{margin-bottom:0}.daitg-audio-loading,.daitg-audio-error{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:9px 11px;border-radius:10px;background:#f3f7ff;color:#52627a;font-size:11px}.daitg-audio-error{flex-wrap:wrap;background:#fff7f2;color:#9a4b23}.daitg-audio-error button,.daitg-audio-player button{min-height:34px;padding:7px 11px;border:1px solid #9ab5fa;border-radius:9px;background:#fff;color:#2457d6;font:800 11px/1 inherit;cursor:pointer}.daitg-audio-player{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.daitg-audio-player audio{display:block;width:100%;height:42px}@media(max-width:520px){.daitg-audio-player{grid-template-columns:1fr}.daitg-audio-player button{width:100%}}
.daitg-answer-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.daitg-answer-actions button{min-height:70px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px 5px;border:1px solid #dce4ef;border-radius:12px;background:#fff;color:#2455d7;font-size:21px;cursor:pointer}.daitg-answer-actions span{font-size:11.5px;font-weight:850;line-height:1.3}.daitg-return{width:100%;min-height:48px;margin-top:10px;border:0;border-radius:12px;background:linear-gradient(135deg,#3167f2,#214ed7);color:#fff;font:900 14px/1 inherit;box-shadow:0 8px 20px rgba(37,86,225,.22);cursor:pointer}.daitg-learning-more{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.daitg-learning-more button{min-height:36px;padding:6px;font-size:11px}.daitg-flowguard{margin:12px -24px -24px;padding:13px 24px;border-radius:0 0 22px 22px;background:#f7f9fc;color:#748197;font-size:11.5px;text-align:center}.daitg-flowguard.is-strong{background:#fff7ed;color:#b45309;font-weight:800}
@keyframes daitgPulse{50%{transform:scale(.94);box-shadow:0 0 0 6px rgba(239,68,68,.12)}}
@media(max-width:900px){.daitg-flow-overlay{background:rgba(15,23,42,.14)}.daitg-flow-panel{inset:8px;width:auto;border-radius:17px}.daitg-select-step,.daitg-question-step,.daitg-answer-step{padding:18px}.daitg-flowguard{margin:12px -18px -18px;border-radius:0 0 17px 17px}}
@media(max-width:560px){.daitg-step-heading h2{font-size:18px}.daitg-select-modes{grid-template-columns:1fr}.daitg-question-grid{grid-template-columns:1fr}.daitg-category-tabs button{font-size:10.5px}.daitg-answer-modes{grid-template-columns:repeat(3,1fr)}.daitg-answer-actions{grid-template-columns:1fr 1fr}.daitg-custom-question{grid-template-columns:1fr 42px}.daitg-custom-question button[type="submit"]{grid-column:1/-1;min-height:42px}}

/* 기존 국어 Da it G 메뉴 안의 Navi-Guide 진입 및 추천 화면 */
.korean-guide-entry{display:grid;grid-template-columns:30px auto minmax(120px,1fr) 18px;align-items:center;gap:8px;width:calc(100% - 8px);min-height:42px;margin:4px;padding:5px 9px;border:1px solid #8db0fa;border-radius:8px;background:linear-gradient(135deg,#f7faff,#edf4ff);color:#1c4fb9;text-align:left;cursor:pointer}.korean-guide-entry>span{display:grid;width:26px;height:26px;place-items:center;border-radius:50%;background:#2563eb;color:#fff;font-size:11px;font-weight:950}.korean-guide-entry>b{font-size:11px}.korean-guide-entry>small{overflow:hidden;color:#6b7890;font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}.korean-guide-entry>i{font-size:19px;font-style:normal}.korean-guide-entry:hover{border-color:#2563eb;background:#eaf2ff}
.korean-tutor-menu-popover.is-korean-guide{width:min(830px,calc(100vw - 16px));max-height:min(620px,calc(100vh - 12px))!important;border-radius:12px;overflow:auto!important;background:#fff}
.ko-guide-target{display:block;min-width:0;background:#fff;color:#1f2a3d;font-family:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.ko-guide-target button{font-family:inherit}
.ko-guide-target-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px 12px}.ko-guide-target-head>div{display:flex;align-items:center;gap:10px;min-width:0}.ko-guide-target-head b{font-size:18px;font-weight:950;letter-spacing:-.03em}.ko-guide-target-head small{overflow:hidden;color:#758197;font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.ko-guide-target-head>button{min-height:35px;padding:0 13px;border:1px solid #a9c2fb;border-radius:9px;background:#fff;color:#1256d7;font-size:11px;font-weight:900;cursor:pointer}
.ko-guide-target-hero{margin:0 20px;padding:14px 16px 13px;border:1px solid #c5d7fb;border-radius:11px;background:linear-gradient(135deg,#f8fbff,#f2f7ff)}.ko-guide-target-hero>small{display:inline-flex;align-items:center;min-height:23px;padding:0 10px;border-radius:999px;background:#fff;color:#1559dc;font-size:9.5px;font-weight:900}.ko-guide-target-hero h3{margin:7px 0 4px;color:#172e63;font-size:18px;line-height:1.25;font-weight:950;letter-spacing:-.035em}.ko-guide-target-hero p{margin:0;color:#53637e;font-size:11px;line-height:1.45}.ko-guide-target-hero>div{display:flex;gap:7px;margin-top:9px}.ko-guide-target-hero>div span{display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:999px;background:#fff;color:#53647f;font-size:9px;font-weight:800}.ko-guide-target-hero>div span:first-child{background:#e8f1ff;color:#1259d7}
.ko-guide-target-progress{display:grid;grid-template-columns:repeat(4,1fr);margin:9px 20px 10px;padding:0;list-style:none}.ko-guide-target-progress li{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-height:35px;color:#526078;font-size:10px;font-weight:850}.ko-guide-target-progress li:before{content:"";position:absolute;top:17px;left:-45%;width:90%;height:1px;background:#dbe2ec}.ko-guide-target-progress li:first-child:before{display:none}.ko-guide-target-progress i{position:relative;z-index:1;display:grid;width:21px;height:21px;place-items:center;border:1px solid #cbd5e3;border-radius:50%;background:#fff;font-size:9px;font-style:normal}.ko-guide-target-progress .is-done{color:#16935a}.ko-guide-target-progress .is-done i{border-color:#19a664;background:#19a664;color:#fff}.ko-guide-target-progress .is-active{color:#fff}.ko-guide-target-progress .is-active:after{content:"";position:absolute;inset:3px 8px;z-index:0;border-radius:999px;background:#155ce6}.ko-guide-target-progress .is-active i,.ko-guide-target-progress .is-active span{position:relative;z-index:1}.ko-guide-target-progress .is-active i{width:auto;height:auto;border:0;background:transparent}
.ko-guide-target-body{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(210px,.75fr);gap:10px;margin:0 20px}.ko-guide-target-lesson,.ko-guide-target-actions{min-width:0;border:1px solid #dfe5ee;border-radius:11px;background:#fff}.ko-guide-target-lesson{padding:13px 15px 11px}.ko-guide-target-lesson h4{margin:0 0 6px;font-size:12px}.ko-guide-target-lesson>p{margin:0 0 8px;color:#637087;font-size:10px;line-height:1.45}.ko-guide-target-lesson dl{margin:0;border:1px solid #dce3ee;border-radius:8px;overflow:hidden}.ko-guide-target-lesson dl>div{display:grid;grid-template-columns:128px 1fr;min-height:27px;border-bottom:1px solid #e4e9f0}.ko-guide-target-lesson dl>div:last-child{border-bottom:0}.ko-guide-target-lesson dt,.ko-guide-target-lesson dd{display:flex;align-items:center;margin:0;padding:0 11px;color:#4d5b71;font-size:9.5px}.ko-guide-target-lesson dt{font-weight:900}.ko-guide-target-lesson dd:before{content:"—";margin-right:18px;color:#aab4c3}.ko-guide-methods{display:flex;gap:7px;margin-top:9px}.ko-guide-methods button{min-height:31px;padding:0 13px;border:1px solid #dce3ee;border-radius:7px;background:#fff;color:#5a6780;font-size:9.5px;font-weight:850;cursor:pointer}.ko-guide-methods button.is-active{border-color:#3f7ff1;color:#155cdf;box-shadow:0 0 0 2px rgba(37,99,235,.07)}
.ko-guide-target-actions{display:grid;align-content:start;gap:7px;padding:13px}.ko-guide-target-actions>button{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:32px;padding:0 12px;border:1px solid #dbe2ec;border-radius:8px;background:#fff;color:#5d6980;font-size:9.5px;font-weight:800;cursor:pointer}.ko-guide-target-actions>button:nth-child(2){justify-content:center;min-height:39px}.ko-guide-target-actions .ko-guide-primary{justify-content:center;min-height:41px;border:0;background:linear-gradient(135deg,#075ce9,#064bd5);color:#fff;font-size:11px;font-weight:950}.ko-guide-target-bottom{margin:10px 20px 0;padding:0 0 16px}.ko-guide-target-bottom button{width:100%;min-height:40px;border:1px solid #d9e0e9;border-radius:8px;background:#fafbfc;color:#667389;font-size:10px;font-weight:850;cursor:pointer}
@media(max-width:760px){.korean-guide-entry{grid-template-columns:30px auto 18px}.korean-guide-entry>small{display:none}.ko-guide-target-head{padding:13px 14px 10px}.ko-guide-target-head small{display:none}.ko-guide-target-hero,.ko-guide-target-progress,.ko-guide-target-body,.ko-guide-target-bottom{margin-left:12px;margin-right:12px}.ko-guide-target-body{grid-template-columns:1fr}.ko-guide-target-actions{grid-template-columns:1fr 1fr}.ko-guide-target-actions .ko-guide-primary{grid-column:1/-1}}
.ko-guide-target-hero.is-preliminary{border-style:dashed;background:linear-gradient(135deg,#fbfdff,#f5f8fd)}.ko-guide-target-hero.is-preliminary>small{color:#52647f}.ko-guide-target-hero.is-preliminary>div span:first-child{background:#eef2f7;color:#53627a}
.ko-guide-preliminary,.ko-guide-check,.ko-guide-transfer,.ko-guide-dispute{display:grid;gap:12px;margin:0 20px;padding:16px;border:1px solid #dfe6f1;border-radius:11px;background:#fff}.ko-guide-preliminary{grid-template-columns:minmax(0,1fr) auto auto;align-items:center}.ko-guide-preliminary>div{min-width:0}.ko-guide-preliminary b{color:#26364f;font-size:13px}.ko-guide-preliminary p,.ko-guide-check p,.ko-guide-transfer p,.ko-guide-dispute p{margin:5px 0 0;color:#64728a;font-size:10.5px;line-height:1.55}.ko-guide-preliminary>button,.ko-guide-check>button,.ko-guide-dispute button{min-height:38px;padding:0 13px;border:1px solid #cfd9e8;border-radius:8px;background:#fff;color:#395273;font-size:10px;font-weight:900;cursor:pointer}.ko-guide-preliminary .ko-guide-primary,.ko-guide-check .ko-guide-primary{border-color:#1760e8;background:#1760e8;color:#fff}.ko-guide-primary:disabled{opacity:.45;cursor:not-allowed}
.ko-guide-inline-next{width:100%;min-height:38px;margin-top:10px;border:0;border-radius:8px;background:#155ce6;color:#fff;font-size:10.5px;font-weight:950;cursor:pointer}.ko-guide-target-actions>b{color:#24406f;font-size:11px}.ko-guide-target-actions>p{margin:0 0 5px;color:#64728a;font-size:10px;line-height:1.55}
.ko-guide-check>small,.ko-guide-transfer header>small{color:#155ce6;font-size:10px;font-weight:950}.ko-guide-check h4,.ko-guide-transfer h4,.ko-guide-dispute h4{margin:0;color:#22314a;font-size:14px}.ko-guide-check>div{display:grid;gap:7px}.ko-guide-check>div>button{display:flex;align-items:center;gap:9px;min-height:38px;padding:7px 10px;border:1px solid #dce4ef;border-radius:9px;background:#fff;color:#46566f;font-size:10.5px;font-weight:800;text-align:left;cursor:pointer}.ko-guide-check>div>button>span{display:grid;flex:0 0 auto;width:23px;height:23px;place-items:center;border-radius:50%;background:#eef3fb;color:#45618d}.ko-guide-check>div>button.is-selected{border-color:#3776ed;background:#f1f6ff;color:#164fbf}.ko-guide-check>div>button.is-selected>span{background:#1d63e5;color:#fff}.ko-guide-check p.is-wrong{padding:9px 11px;border-radius:8px;background:#fff5f3;color:#b34a39;font-weight:800}
.ko-guide-transfer>header{display:grid;gap:3px}.ko-guide-transfer>header p{margin:0}.ko-guide-transfer>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ko-guide-transfer article{display:grid;grid-template-columns:32px 1fr;gap:4px 8px;padding:12px;border:1px solid #dce5f1;border-radius:10px;background:#fbfdff}.ko-guide-transfer article>i{grid-row:1/3;display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:#e8f1ff;color:#155ce6;font-size:12px;font-style:normal;font-weight:950}.ko-guide-transfer article>b{color:#273750;font-size:11px}.ko-guide-transfer article>span{color:#718097;font-size:9.5px}.ko-guide-transfer article>button{grid-column:1/-1;min-height:34px;margin-top:5px;border:1px solid #2f70eb;border-radius:8px;background:#fff;color:#1558d5;font-size:10px;font-weight:900;cursor:pointer}.ko-guide-transfer article:first-child>button{background:#155ce6;color:#fff}
.ko-guide-dispute>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ko-guide-dispute button{text-align:left}.ko-guide-target-actions>button b,.ko-guide-target-actions>button span{font-size:inherit}
@media(max-width:760px){.ko-guide-preliminary{grid-template-columns:1fr}.ko-guide-transfer>div,.ko-guide-dispute>div{grid-template-columns:1fr}.ko-guide-preliminary,.ko-guide-check,.ko-guide-transfer,.ko-guide-dispute{margin-left:12px;margin-right:12px}.ko-guide-target-progress li span{font-size:9px}.ko-guide-target-actions{grid-template-columns:1fr}.ko-guide-target-actions .ko-guide-primary{grid-column:auto}}

/* Math Da it G: shared subject-menu visual language, existing answer panels. */
.math-tutor-menu-popover.math-daitg-floating {
  position: fixed; z-index: 2147483646; box-sizing: border-box;
  width: min(860px, calc(100vw - 36px)); max-width: calc(100vw - 36px);
  left: clamp(18px, calc(60vw - 430px), calc(100vw - 878px)); top: 58px;
  max-height: calc(100dvh - 76px); overflow-x: hidden; overflow-y: auto;
  border: 1px solid #d7deea; border-radius: 20px; background: #fff;
  box-shadow: 0 12px 30px rgba(28,42,72,.14); color: #17253e;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  overscroll-behavior: contain; scrollbar-width: thin;
}
.math-daitg-floating .math-menu-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 10px; }
.math-daitg-floating .math-menu-header h2 { margin: 0; color: #17253e; font-size: 24px; font-weight: 850; line-height: 1.25; letter-spacing: -.04em; }
.math-daitg-floating .math-menu-header p { margin: 6px 0 0; color: #76839a; font-size: 12px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.math-daitg-floating .math-menu-close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid #dce2eb; border-radius: 10px; background: #fff; color: #26364f; font-size: 24px; cursor: pointer; }
.math-daitg-floating .math-tutor-menu-groups { display: block; padding: 0 20px 16px; }
.math-daitg-floating .math-menu-section { padding: 8px 0 10px; border-bottom: 1px dashed #d7dce5; }
.math-daitg-floating .math-menu-section h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: #1b2940; font-size: 14px; line-height: 1.4; font-weight: 800; }
.math-daitg-floating .math-menu-section h3 > span { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 6px; background: #2860f5; color: #fff; font-size: 21px; font-weight: 850; }
.math-daitg-floating .math-tutor-menu-group { display: grid; grid-template-columns: 140px minmax(0,1fr); align-items: stretch; gap: 8px; padding: 0; margin-top: 5px; border: 0; }
.math-daitg-floating .math-tutor-menu-label { min-height: 28px; padding: 5px 9px; box-sizing: border-box; border-radius: 4px; background: #f2f5fc; color: #254474; }
.math-daitg-floating .math-tutor-menu-label b { font-size: 11.5px; line-height: 1.35; font-weight: 800; }
.math-daitg-floating .math-tutor-menu-items { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.math-daitg-floating .math-tutor-menu-item { min-height: 28px; min-width: 0; padding: 5px 9px; border: 1px solid #d8dfea; border-radius: 6px; background: #fff; color: #354258; font-size: 11.5px; font-weight: 650; line-height: 1.3; white-space: normal; word-break: keep-all; }
.math-daitg-floating .math-tutor-menu-item:hover:not(:disabled), .math-daitg-floating .math-tutor-menu-item.is-current { border-color: #80a1f5; background: #f1f6ff; color: #174ec8; }
.math-daitg-floating [data-math-guided] { background: #2860f5; border-color: #2860f5; color: #fff; font-weight: 800; }
.math-daitg-floating [data-math-guided]:hover:not(:disabled) { background: #174ee0; color: #fff; }
.math-daitg-floating .math-tutor-menu-item:disabled { background: #f7f8fa; color: #a0a9b9; border-color: #e1e5ec; cursor: not-allowed; box-shadow: none; }
.math-daitg-floating .math-menu-global-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 36px; margin: 12px 0 0; padding: 7px 11px; border: 1px solid #d8dfea; border-radius: 8px; background: #fff; color: #293952; font: 750 12px/1.4 "Pretendard Variable", Pretendard, sans-serif; cursor: pointer; }
.math-daitg-floating .math-menu-global-toggle > span:last-child { font-size: 22px; line-height: 1; }
.math-daitg-floating button:focus-visible { outline: 2px solid #6490f7; outline-offset: 2px; }
.math-daitg-floating #math-menu-global:not([hidden]) { padding-top: 6px; }
#subjectOneshotMath .so-rich { min-width: 0; overflow-wrap: anywhere; }
#subjectOneshotMath .so-rich > * { min-width: 0; }
#subjectOneshotMath .so-rich-tablewrap { max-width: 100%; }
#subjectOneshotMath .so-rich-math { overflow-wrap: normal; }
#subjectOneshotMath .katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
@media (max-width: 980px) {
  .math-tutor-menu-popover.math-daitg-floating { left: 18px; top: 18px; max-height: calc(100dvh - 36px); }
}
@media (max-width: 600px) {
  .math-tutor-menu-popover.math-daitg-floating { left: 8px; top: 8px; width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 15px; }
  .math-daitg-floating .math-menu-header { padding: 15px 13px 8px; }
  .math-daitg-floating .math-menu-header h2 { font-size: 21px; }
  .math-daitg-floating .math-tutor-menu-groups { padding: 0 13px 14px; }
  .math-daitg-floating .math-tutor-menu-group { grid-template-columns: 1fr; gap: 5px; margin-top: 9px; }
  .math-daitg-floating .math-tutor-menu-label { min-height: 25px; }
  .math-daitg-floating .math-tutor-menu-items { gap: 6px; }
  .math-daitg-floating .math-tutor-menu-item { min-height: 36px; padding: 7px 10px; font-size: 12px; }
}
@media (max-height: 640px) and (min-width: 981px) {
  .math-tutor-menu-popover.math-daitg-floating { top: 12px; max-height: calc(100dvh - 24px); }
}

/* LayerLab: original 1672 × 941; tabs 27,202,1080,63; panel 1162,211,483,614.
   Only the text-free selected fill is raster. All text/controls remain native DOM. */
.math-plan-active { --mp-blue:#1655ff; --mp-ink:#17233d; --mp-muted:#7e8ca5; --mp-line:#d9e1ef; --mp-soft:#f5f8ff; }
.math-plan-active .pe-coach.subject-oneshot-open { flex:0 0 clamp(390px,35vw,650px)!important; width:clamp(390px,35vw,650px)!important; min-width:0!important; max-width:46vw!important; padding:0!important; background:#fff; }
.math-plan-active .m-stage { flex:1 1 auto!important; min-width:0!important; width:auto!important; }
.math-plan-active .coach-card.subject-oneshot-open { min-width:0; }
#subjectOneshotMath.math-plan-panel:not([hidden]) { display:flex; flex-direction:column; height:100%; max-height:100%; margin:0!important; padding:0!important; border:0!important; border-radius:0!important; box-shadow:none!important; background:#fff; color:var(--mp-ink); overflow:hidden; }
#subjectOneshotMath.math-plan-panel > .pe-oneshot-kicker,
#subjectOneshotMath.math-plan-panel > .math-tutor-panel-nav,
#subjectOneshotMath.math-plan-panel > .pe-oneshot-title,
#subjectOneshotMath.math-plan-panel > .pe-oneshot-report { display:none!important; }
.math-plan-chrome { display:flex; flex-direction:column; min-height:0; height:100%; width:100%; }
.math-plan-head { flex:none; padding:18px 20px 13px; position:relative; }
.math-plan-mode { display:grid; grid-template-columns:1fr 1fr; margin-right:30px; border:1px solid var(--mp-line); border-radius:8px; overflow:hidden; }
.math-plan-mode button { height:38px; border:0; background:#fff; color:#63718c; font:750 14px/1.3 "Pretendard Variable",Pretendard,sans-serif; cursor:pointer; }
.math-plan-mode button[aria-selected=true] { background:var(--mp-blue); color:#fff; box-shadow:inset 0 1px 3px #fff4; }
.math-plan-close { position:absolute; top:21px; right:10px; width:28px; height:30px; border:0; background:transparent; color:#68768e; font-size:23px; cursor:pointer; }
.math-plan-head h3 { margin:17px 0 6px; font-size:19px; font-weight:850; letter-spacing:-.035em; line-height:1.35; }
.math-plan-head p { margin:0; font-size:12.5px; line-height:1.55; color:var(--mp-muted); word-break:keep-all; }
.math-plan-scroll { flex:1; min-height:0; overflow:auto; padding:0 16px 16px; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#cbd7ec transparent; }
.math-plan-group { margin:0; border:1px solid var(--mp-line); border-radius:9px; background:#fff; overflow:hidden; }
.math-plan-group + .math-plan-group { margin-top:-1px; }
.math-plan-group h4 { margin:0; }
.math-plan-group h4 > button { display:flex; align-items:center; gap:11px; width:100%; min-height:43px; text-align:left; border:0; padding:9px 12px; background:linear-gradient(110deg,#fff,#f7f8fb); color:var(--mp-ink); font:inherit; cursor:pointer; }
.math-plan-group h4 b { flex:1; font-size:13px; line-height:1.45; font-weight:750; word-break:keep-all; }
.math-plan-number { display:grid; place-items:center; width:25px; height:25px; border:1px solid #cdd7e8; border-radius:50%; flex:none; color:#405373; background:#fff; font-size:14px; font-weight:650; }
.math-plan-chevron { font-size:22px; line-height:1; font-weight:500; }
.math-plan-group.is-open { border-color:#7395ff; position:relative; z-index:1; }
.math-plan-group.is-open h4 > button { background:#f8faff; color:var(--mp-blue); }
.math-plan-group.is-open .math-plan-number { border-color:#7395ff; color:var(--mp-blue); }
.math-plan-items { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; padding:11px 12px 9px; border-top:1px solid #e5ebf5; }
.math-plan-items button { min-width:0; min-height:39px; padding:8px 7px; border:1px solid var(--mp-line); border-radius:6px; color:#26344e; background:#fff; font:700 12px/1.45 "Pretendard Variable",Pretendard,sans-serif; word-break:keep-all; overflow-wrap:anywhere; cursor:pointer; }
.math-plan-items button[aria-pressed=true] { border-color:var(--mp-blue); color:var(--mp-blue); background:#e7efff url('/assets/math-daitg-plan/selected-fill.png') repeat-x center/auto 100%; box-shadow:inset 0 0 0 1px #1655ff16; }
.math-plan-items button:hover { border-color:#7498ff; background-color:#f0f5ff; }
.math-plan-lesson:empty { display:none; }
.math-plan-lesson { padding:1px 12px 13px; }
.math-plan-breadcrumb { color:#7786a2; font-size:11px; line-height:1.6; margin:4px 0 10px; word-break:keep-all; }
.math-plan-panel #subjectOneshotMathOutput { max-height:clamp(150px,calc(100dvh - 660px),360px); min-height:100px; width:100%; box-sizing:border-box; margin:0; border:0!important; border-radius:0!important; padding:0!important; overflow:auto; background:#fff; box-shadow:none; scrollbar-width:thin; }
.math-plan-panel #subjectOneshotMathOutput > .math-tutor-content { padding:0; border:0; background:#fff; }
.math-plan-panel .so-rich { font-size:13px; line-height:1.85; color:#293952; }
.math-plan-panel .so-rich-h { font-size:15px; line-height:1.5; margin:12px 0 8px; letter-spacing:-.02em; }
.math-plan-panel .so-rich p { margin:8px 0; }
.math-plan-panel .so-rich-table { overflow:auto; max-width:100%; font-size:12px; }
.math-plan-panel .math-os-formula,.math-plan-panel .katex-display { border:0; border-radius:6px; background:var(--mp-soft); padding:8px; margin:10px 0; overflow:auto; }
.math-plan-panel .math-tutor-primary { background:var(--mp-blue); color:#fff; border:1px solid var(--mp-blue); border-radius:7px; min-height:38px; }
.math-plan-panel [hidden],.math-plan-scopebar[hidden] { display:none!important; }
.math-plan-question { display:flex; flex:none; gap:9px; align-items:center; padding:12px 16px 15px; border-top:1px solid #edf0f6; background:#fff; margin:0; }
.math-plan-question textarea { box-sizing:border-box; flex:1; min-width:0; resize:none; height:48px; min-height:48px; padding:14px 12px; border:1px solid var(--mp-line); border-radius:9px; color:var(--mp-ink); background:#fff; font:13px/1.5 "Pretendard Variable",Pretendard,sans-serif; }
.math-plan-question textarea::placeholder { color:#8794ab; }
.math-plan-question button { height:46px; width:46px; border:0; border-radius:10px; color:#fff; background:var(--mp-blue); font-size:23px; flex:none; cursor:pointer; }
.math-plan-question button:disabled { opacity:.5; cursor:wait; }
.math-plan-followup-history .math-followup-form,.math-plan-followup-history .math-followup-suggestions { display:none; }
.math-plan-scopebar { position:sticky; top:0; z-index:12; padding:9px 12px 12px; background:#fff; font-family:"Pretendard Variable",Pretendard,sans-serif; }
.math-plan-mapbar { display:flex; justify-content:space-between; align-items:center; border:1px solid var(--mp-line); background:linear-gradient(100deg,#fff,#f5f8ff); border-radius:8px; min-height:39px; padding:3px 14px; margin-bottom:10px; }
.math-plan-mapbar strong { color:#32435f; font-size:14px; font-weight:800; }
.math-plan-mapbar strong span { border-left:1px solid #dfe5ee; margin-left:10px; padding-left:10px; color:#25324a; }
.math-plan-mapbar button { border:0; background:transparent; color:#40516f; padding:7px 2px; font:700 12px/1.4 "Pretendard Variable",Pretendard,sans-serif; cursor:pointer; }
.math-plan-tabs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border:1px solid var(--mp-line); border-radius:9px; overflow:hidden; }
.math-plan-tabs button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:60px; padding:8px 7px; border:0; border-right:1px solid var(--mp-line); background:#fff; color:#2a3b56; cursor:pointer; }
.math-plan-tabs button:last-child { border-right:0; }
.math-plan-tabs span { border:1px solid #ccd6e7; width:23px; height:23px; display:grid; place-items:center; flex:none; border-radius:50%; background:#fff; color:#2a3b56; font-size:13px; }
.math-plan-tabs b { font:700 12px/1.45 "Pretendard Variable",Pretendard,sans-serif; word-break:keep-all; overflow-wrap:anywhere; text-align:left; }
.math-plan-tabs [aria-selected=true] { background:var(--mp-blue); color:#fff; border-color:var(--mp-blue); }
.math-plan-tabs [aria-selected=true] span { color:var(--mp-blue); border-color:#fff; }
.math-plan-guide-list { list-style:none; padding:0; margin:0 0 17px; }
.math-plan-guide-list li { display:flex; align-items:flex-start; gap:12px; position:relative; padding-bottom:12px; }
.math-plan-guide-list li:not(:last-child):before { content:''; position:absolute; width:1px; background:#cad6ed; top:25px; bottom:-7px; left:15px; }
.math-plan-guide-list li > span { width:31px; height:31px; display:grid; place-items:center; border-radius:50%; border:1px solid #cbd6e9; margin-top:10px; background:#fff; position:relative; flex:none; }
.math-plan-guide-list li > button { position:relative; flex:1; text-align:left; padding:12px 34px 12px 15px; border:1px solid var(--mp-line); border-radius:9px; background:#fff; color:var(--mp-ink); cursor:pointer; }
.math-plan-guide-list small { display:block; font-size:11px; color:#8491a8; margin-bottom:5px; }
.math-plan-guide-list b { display:block; font-size:16px; }
.math-plan-guide-list em { display:inline-block; font-size:10px; color:var(--mp-blue); border:1px solid #ccd9ff; border-radius:12px; font-style:normal; padding:2px 7px; margin-top:7px; }
.math-plan-guide-list i { position:absolute; right:14px; top:26px; font-size:20px; font-style:normal; }
.math-plan-guide-list .is-current > span { background:var(--mp-blue); border-color:var(--mp-blue); color:#fff; }
.math-plan-guide-list .is-current > button { border-color:#6e92ff; background:#f6f9ff; }
.math-plan-guide-content { border-top:1px solid var(--mp-line); padding-top:12px; }
.math-plan-next { width:100%; border:0; border-radius:7px; color:#fff; background:var(--mp-blue); padding:12px; margin-top:14px; font:750 13px/1.4 "Pretendard Variable",Pretendard,sans-serif; cursor:pointer; }
.math-plan-check { border:1px solid var(--mp-line); border-radius:9px; padding:12px; margin-top:18px; }
.math-plan-check > b { font-size:12px; }
.math-plan-check > div { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; margin-top:9px; }
.math-plan-check button { background:#fff; border:1px solid var(--mp-line); border-radius:6px; padding:8px 3px; font-size:11px; color:#334666; cursor:pointer; word-break:keep-all; }
.math-plan-check > button { width:100%; margin-top:8px; }
.math-plan-panel button:focus-visible,.math-plan-scopebar button:focus-visible { outline:2px solid #487cff; outline-offset:2px; }
.math-plan-panel .ko-quiz-input { box-sizing:border-box; width:100%; }
@media(min-width:1600px){.math-plan-tabs b{font-size:14px}.math-plan-group h4 b{font-size:15px}.math-plan-items button{font-size:13px}.math-plan-head h3{font-size:21px}.math-plan-panel .so-rich{font-size:14px}}
@media(max-width:1100px){.math-plan-active .pe-coach.subject-oneshot-open{flex-basis:390px!important;width:390px!important;max-width:49vw!important}.math-plan-tabs button{flex-direction:column;gap:4px;padding:7px 3px}.math-plan-tabs b{text-align:center;font-size:10.5px}.math-plan-head{padding:12px 14px}.math-plan-scroll{padding:0 11px 12px}.math-plan-items{padding:9px}.math-plan-group h4 > button{padding:8px 9px}.math-plan-panel #subjectOneshotMathOutput{max-height:clamp(140px,calc(100dvh - 600px),300px)}}
@media(max-width:720px){.math-plan-active .pe-coach.subject-oneshot-open{position:fixed!important;right:0;bottom:0;top:auto!important;height:66dvh!important;max-height:66dvh!important;min-height:0!important;max-width:100vw!important;width:100vw!important;z-index:120!important;border-top:1px solid #cbd8ee;border-radius:16px 16px 0 0;box-shadow:0 -4px 20px #18365a19}.math-plan-active .m-stage{padding-bottom:68dvh!important}.math-plan-scopebar{padding:5px 6px 8px}.math-plan-tabs button{min-height:61px}.math-plan-tabs b{font-size:10px}.math-plan-head{padding:10px 12px 8px}.math-plan-head h3{font-size:16px;margin:10px 0 4px}.math-plan-head p{font-size:11px}.math-plan-mode button{height:32px}.math-plan-close{top:11px}.math-plan-question{padding:8px 12px}.math-plan-question textarea{height:40px;min-height:40px;padding:9px}.math-plan-question button{height:40px;width:40px}.math-plan-panel #subjectOneshotMathOutput{max-height:33dvh}}

.math-plan-followup-history .math-followup > header{display:none}.math-plan-panel .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

.math-plan-active .q-card{scroll-margin-top:155px}.math-plan-panel .math-plan-guide-content #subjectOneshotMathOutput{max-height:36dvh}

.math-plan-active .pe-ink-layer{overflow:hidden}body.math-plan-active{overflow-x:clip}

.app.math-plan-active.subject-oneshot-open .grid2{grid-template-columns:minmax(0,1.8fr) minmax(390px,1fr)!important;gap:14px}
.app.math-plan-active .book-card{display:flex!important;min-width:0}.app.math-plan-active .coach-card{padding:0!important;gap:0!important}
@media(max-width:900px){.app.math-plan-active.subject-oneshot-open .grid2{grid-template-columns:minmax(0,1fr)!important}.app.math-plan-active .coach-card.subject-oneshot-open{position:fixed;right:0;bottom:0;height:66dvh;width:100vw;z-index:120}.app.math-plan-active .book-card{padding-bottom:40dvh}}

.math-plan-active .pe-ink-layer{top:var(--mp-map-offset,0px)!important}.math-plan-scopebar{z-index:42}

/* Interactive activities retain the established learning-map typography. */
.math-plan-panel #subjectOneshotMathOutput:has(.mf-activity),.math-plan-panel .math-plan-guide-content #subjectOneshotMathOutput:has(.mf-activity){max-height:52dvh;padding:0 2px 12px}
.mf-activity{font:13px/1.65 "Pretendard Variable",Pretendard,sans-serif;color:#263854;min-width:0}
.mf-activity h4{font-size:17px;line-height:1.6;margin:14px 0 7px}.mf-activity p{color:#64758f;margin:7px 0 14px}.mf-activity-kicker{color:#456ee1;font-size:11px;font-weight:700;letter-spacing:.02em}
.mf-activity button{font:inherit;cursor:pointer;padding:8px 12px;border:1px solid #d3ddec;border-radius:7px;background:white;color:#344966}.mf-activity button:disabled{opacity:.45;cursor:default}.mf-activity button.math-tutor-primary{background:#3264f5;color:white;border-color:#3264f5}
.mf-label{display:flex;flex-direction:column;gap:6px;margin:15px 0;font-weight:650}.mf-label textarea,.mf-label select,.mf-record-controls select{box-sizing:border-box;width:100%;padding:10px;border:1px solid #d3ddec;border-radius:7px;background:#fff;font:400 13px/1.7 inherit;color:#263854}.mf-label textarea{resize:vertical;font-family:inherit;line-height:1.7}.mf-label select{font-family:inherit}
.mf-recall-note{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f0f5ff;border-radius:7px;padding:9px;font-size:11px}.mf-recall-note button{font-size:11px;white-space:nowrap;padding:5px 8px}
body.math-plan-recall-active .q-card .q-passage,body.math-plan-recall-active .q-card .opts,body.math-plan-recall-active #bookFrame,body.math-plan-recall-active #lmMindmapFrame{visibility:hidden}
.mf-actions,.mf-map-tools,.mf-record-controls,.mf-board-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0}.mf-actions{justify-content:space-between}.mf-actions>span{font-size:11px;color:#7a8aa1}
.mf-mindmap{position:relative;width:100%;height:360px;border:1px solid #d8e2f1;border-radius:9px;background-color:#fbfcff;background-image:radial-gradient(#d9e2f2 1px,transparent 1px);background-size:16px 16px;overflow:hidden}.mf-map-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.mf-map-lines path{fill:none;stroke:#8da9eb;stroke-width:2}.mf-map-node{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;width:42%;max-width:165px;background:#fff;border:1px solid #b5c7e9;border-radius:8px;box-shadow:0 3px 8px #29466f09}.mf-map-node.is-selected{border:2px solid #477cf0}.mf-map-node button{border:0;padding:6px 3px;cursor:grab;touch-action:none}.mf-map-node input{min-width:0;width:100%;border:0;background:transparent;padding:9px 4px;font:12px/1.5 inherit;color:#304366}.mf-ink{display:block;width:100%;height:220px;border:1px solid #c9d7eb;border-radius:7px;background:#fff;touch-action:none;box-sizing:border-box}.mf-ink-label{font-size:12px;font-weight:700;margin:10px 0 6px}
.mf-feedback{margin-top:18px;border-top:1px solid #d8e2f0;padding-top:8px}.mf-feedback h4{font-size:13px}.mf-feedback blockquote{margin:12px 0;background:#f2f6ff;padding:10px;border-left:3px solid #5985ec}.mf-feedback ul{padding-left:20px}
.mf-ox-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.mf-ox-options button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:70px}.mf-ox-options b{font-size:29px}.mf-ox-options [aria-pressed=true]{background:#edf3ff;border:2px solid #3264f5;color:#2856d3}.mf-ox-result{padding:13px;border-radius:8px;background:#fff4ec}.mf-ox-result.is-correct{background:#eef8f3}.mf-ox-result+.math-tutor-primary{margin-top:12px}
.mf-loading{display:flex;gap:12px;align-items:center;padding:20px 5px;font-size:13px;color:#677d9d}.mf-board-sheet{border:1px solid #d7e3f4;border-radius:10px;padding:18px;background:linear-gradient(#fff,#f7faff);min-height:180px}.mf-board-sheet small{color:#5480d9;letter-spacing:.12em}.mf-board-sheet h3{font-size:18px}.mf-board-equation{font-size:23px;text-align:center;padding:20px 0;overflow:auto}.mf-board-outline{padding-left:22px;color:#91a0b6;font-size:12px}.mf-board-outline .is-current{color:#3264f5;font-weight:700}.mf-board-outline .is-done{color:#566b87}.mf-voice{font-size:12px;color:#607591}
.mf-preview,.mf-playback{display:block;max-width:100%;width:100%;max-height:250px;border-radius:8px;background:#edf2f9;margin:12px 0}.mf-upload{display:block;font-size:11px;color:#7185a3;margin:14px 0}.mf-upload input{display:block;max-width:100%;margin-top:7px}.mf-geometry{width:100%;height:auto;background:#f7faff;border-radius:9px}.mf-geometry text{font:12px sans-serif;fill:#34517a}.mf-range{display:grid;grid-template-columns:1fr auto;font-size:12px;margin:12px 0}.mf-range input{grid-column:1/-1;width:100%;accent-color:#3264f5}.mf-geometry-result{background:#f1f6ff;padding:10px;border-radius:7px;font-size:12px}
@media(max-width:720px){.math-plan-panel #subjectOneshotMathOutput:has(.mf-activity){max-height:40dvh}.mf-mindmap{height:320px}}

body.math-plan-recall-active .q-card .math-workspace,body.math-plan-recall-active .q-card .q-sol,body.math-plan-recall-active .pe-ink-layer{visibility:hidden}
