
:root{--ink:#152642;--muted:#74829a;--bg:#f5f7fc;--surface:#fff;--line:#e7ebf3;--blue:#4167f5;--blue-deep:#2448de;--light:#edf1ff;--success:#12a48f;--red:#e45c68;--purple:#7457bd;--radius:20px;--shadow:0 8px 28px rgba(26,48,97,.06);font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;color-scheme:light}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#e9edf5}body{font-size:14px;line-height:1.5;color:var(--ink);-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit}button{border:0;cursor:pointer;background:none;color:inherit}button:disabled{opacity:.4;cursor:not-allowed}.phone{max-width:460px;margin:auto;min-height:100svh;background:var(--bg);position:relative;box-shadow:0 0 70px rgba(28,50,80,.10)}.page{padding:20px 20px calc(96px + env(safe-area-inset-bottom));min-height:100svh}.page.padded{padding-bottom:145px}.row{display:flex;align-items:center;gap:11px}.between{justify-content:space-between}.grow{flex:1;min-width:0}.small{font-size:12px}.muted{color:var(--muted)}.strong{font-weight:800}.eyebrow{color:#637697;font-size:11px;letter-spacing:.13em;font-weight:800;text-transform:uppercase}.brand{display:flex;align-items:center;gap:9px}.logo{width:37px;height:37px;border-radius:12px;background:linear-gradient(145deg,#516eff,#714fd6);color:#fff;display:grid;place-items:center;box-shadow:0 5px 12px #3552d02f;font-size:19px}.brandname{font-size:17px;font-weight:900;letter-spacing:-.04em}.avatar{display:grid;place-items:center;height:38px;width:38px;border-radius:50%;background:#e9eaff;color:#5963c1;font-weight:800}.header{padding:2px 0 24px}.intro{padding:4px 0 18px}.intro h1{font-weight:850;font-size:25px;letter-spacing:-.065em;line-height:1.32;margin:5px 0}.intro p{margin:0;color:var(--muted);font-size:13px}.hero{background:linear-gradient(127deg,#192b5a 0%,#334eaa 62%,#655ee0 100%);color:#fff;border-radius:24px;padding:24px;min-height:210px;position:relative;overflow:hidden;box-shadow:0 12px 22px #24398b25}.hero:after{content:"";position:absolute;width:190px;height:190px;border:1px solid #ffffff29;border-radius:50%;right:-60px;top:-65px;box-shadow:0 0 0 40px #ffffff07,0 0 0 84px #ffffff05}.hero>*{position:relative;z-index:1}.hero .eyebrow{color:#d7dfff;letter-spacing:.055em}.hero h2{font-size:25px;line-height:1.35;letter-spacing:-.06em;margin:11px 0 15px}.hero .cta{border:1px solid #ffffff3c;background:#ffffff;display:flex;align-items:center;justify-content:space-between;border-radius:13px;padding:12px 15px;color:#253d8b;font-weight:800;width:100%;font-size:13px}.hero-progress{position:absolute;right:22px;top:52px;width:85px;height:85px;display:grid;place-items:center}.ring{width:85px;height:85px;border-radius:50%;background:conic-gradient(#92e6d5 0 64%,#ffffff3c 64% 100%);display:grid;place-items:center}.ring:after{content:"";background:#304da2;border-radius:50%;position:absolute;width:66px;height:66px}.ring span{position:relative;z-index:1;font-size:18px;font-weight:800}.sectionbar{display:flex;justify-content:space-between;align-items:center;margin:24px 0 12px}.sectionbar h2{margin:0;font-size:17px;letter-spacing:-.04em}.link{font-size:12px;color:var(--blue);font-weight:800}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:13px}.metric{background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px 11px;box-shadow:var(--shadow)}.metric b{display:block;font-size:20px;letter-spacing:-.055em;margin:0 0 3px}.metric span{color:var(--muted);font-size:11px}.metric .ico{font-size:16px}.cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cat{border-radius:20px;border:1px solid var(--line);background:#fff;min-height:96px;text-align:left;padding:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:flex-start;gap:7px}.cat:active,.paper:active,.option:active{transform:scale(.99)}.cat .emoji{width:43px;height:43px;display:grid;place-items:center;font-size:23px;border-radius:14px}.cat h3{font-size:15px;margin:0;letter-spacing:-.03em}.cat p{font-size:11px;margin:0;color:var(--muted)}.tint0{background:#eff3ff}.tint1{background:#f3edff}.tint2{background:#e5f8f5}.tint3{background:#fff3e9}.paper{width:100%;border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:16px;text-align:left;box-shadow:var(--shadow);display:flex;gap:12px;align-items:center;margin-bottom:10px}.paperico{height:47px;width:47px;border-radius:14px;display:grid;place-items:center;font-size:23px;background:#ecf0fe;flex:none}.paper b{font-size:14px}.paper p{margin:3px 0 0;color:var(--muted);font-size:12px}.arrow{font-size:19px;color:#9aa5b9}.bottomnav{position:fixed;left:50%;transform:translateX(-50%);bottom:0;max-width:460px;width:100%;display:grid;grid-template-columns:repeat(4,1fr);height:calc(73px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;z-index:10;border-top:1px solid var(--line);box-shadow:0 -6px 25px #1b2f5710}.bottomnav button{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px;color:#94a0b3;font-weight:700;font-size:10px}.bottomnav button.active{color:var(--blue)}.navico{width:22px;height:22px;display:flex;align-items:center;justify-content:center}.navico svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.tag{background:#f0f4ff;color:#4566e0;border-radius:9px;padding:5px 9px;font-size:11px;font-weight:800}.tag.green{background:#e4f8f4;color:#087d73}.tag.orange{background:#fff1e6;color:#b86a2d}.titleline{font-size:24px;letter-spacing:-.07em;font-weight:850;line-height:1.3;margin:6px 0}.description{color:var(--muted);margin:7px 0 22px;font-size:13px}.back{display:inline-flex;align-items:center;min-height:44px;font-size:17px;line-height:1.35;font-weight:850;color:#33496f;padding:10px 8px 10px 0;letter-spacing:-.035em}.filterchips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:4px 0 17px}.filterchips button{padding:9px 13px;border-radius:999px;border:1px solid var(--line);background:#fff;color:#6b7890;font-size:12px;white-space:nowrap;font-weight:700}.filterchips button.on{background:#26375b;color:#fff;border-color:#26375b}.panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:17px;margin-bottom:11px;box-shadow:var(--shadow)}.panel h3{font-size:15px;margin:0 0 9px;letter-spacing:-.04em}.panel p{color:var(--muted);margin:0;font-size:12px}.btn{background:var(--blue);color:#fff;border-radius:15px;padding:14px 18px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;gap:8px}.btn.full{width:100%}.btn.ghost{background:#fff;color:#273956;border:1px solid var(--line)}.btn.soft{background:#ecf0ff;color:#3e5ae0}.btn:disabled{opacity:.4}.stack{display:flex;flex-direction:column;gap:9px}.listrow{display:flex;gap:14px;align-items:center;padding:16px 14px;background:#fff;border:1px solid var(--line);border-radius:15px;width:100%;text-align:left}.listrow b{font-size:14px}.listrow small{display:block;color:var(--muted);margin-top:3px}.quizhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.exit{width:36px;height:36px;border-radius:12px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;font-size:18px}.progress{height:7px;background:#e4e9f4;border-radius:20px;overflow:hidden;margin:16px 0 20px}.progress > span{display:block;background:linear-gradient(90deg,#4269fb,#a18bf9);height:100%;transition:width .2s}.question{background:#fff;border:1px solid var(--line);padding:20px 18px;border-radius:22px;box-shadow:var(--shadow)}.questionnumber{color:var(--blue);font-weight:900;font-size:13px}.questiontext{white-space:pre-line;font-size:18px;font-weight:750;line-height:1.75;letter-spacing:-.035em;margin:12px 0 22px}.option{width:100%;display:flex;align-items:flex-start;gap:12px;border:1px solid #e3e8f3;padding:14px 13px;border-radius:13px;background:#fbfcff;text-align:left;line-height:1.5;font-size:13px;margin:8px 0}.option .number{height:25px;width:25px;border-radius:50%;border:1px solid #cbd4e9;background:#fff;flex:none;display:grid;place-items:center;font-size:12px;color:#8290a8;font-weight:800}.option.selected{border-color:#5171fa;background:#eef2ff}.option.selected .number{background:var(--blue);color:#fff;border-color:var(--blue)}.option.correct{background:#e7f9f5;border-color:#10a48d}.option.wrongpick{background:#ffecef;border-color:#d96a77}.quizbottom{position:fixed;left:50%;transform:translateX(-50%);bottom:0;max-width:460px;width:100%;padding:15px 20px calc(15px + env(safe-area-inset-bottom));display:flex;gap:9px;background:#fff;border-top:1px solid var(--line);z-index:11}.quizbottom button{flex:1}.overview{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:14px}.overview button{background:#f0f3fa;aspect-ratio:1;border-radius:10px;font-weight:800}.overview .answered{background:#e7edff;color:#4167f5}.overview .current{outline:2px solid #4167f5}.scorecard{border-radius:22px;padding:25px 22px;color:#fff;background:linear-gradient(130deg,#172756,#4d54bc);margin:15px 0 22px}.scorecard .big{font-size:53px;font-weight:900;line-height:1.4}.scorecard .big small{font-size:20px;color:#cbd4fc}.resultrow{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.circle{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;font-weight:900}.circle.ok{background:#e1f8f0;color:#078973}.circle.no{background:#ffe6e8;color:#d54b59}.explain{border-left:3px solid #5d72f6;background:#f1f3ff;padding:13px;margin:10px 0;border-radius:0 10px 10px 0;font-size:12px}.empty{text-align:center;padding:40px 20px;color:var(--muted)}.empty .bigemoji{font-size:38px;margin-bottom:15px}.profile{display:flex;align-items:center;gap:12px}.profile .avatar{height:52px;width:52px}.passcard{background:#fff;border:1px solid var(--line);border-radius:19px;padding:18px;margin:10px 0}.passcard.featured{border-color:#6677dd;box-shadow:0 7px 25px #4167f511}.price{font-size:26px;font-weight:900;margin:6px 0}.price small{font-size:12px;font-weight:500;color:var(--muted)}.sep{border:0;border-top:1px solid var(--line);margin:18px 0}a{color:inherit}.floating{position:fixed;bottom:95px;right:calc(50% - 215px);border-radius:50%;background:#263d78;color:#fff;width:46px;height:46px;font-size:20px;box-shadow:0 6px 15px #263d7838;display:grid;place-items:center}.notice{color:#64728c;font-size:12px;line-height:1.6;margin-top:9px}.adminbox{border:1px dashed #cbd3e8;border-radius:17px;padding:17px;background:#fdfdff;margin-bottom:12px}.adminbox label{font-size:12px;color:#607088;font-weight:700;display:block;margin-bottom:7px}.adminbox input,.adminbox textarea,.adminbox select{width:100%;background:#fff;border:1px solid var(--line);border-radius:11px;margin:0 0 12px;padding:11px;color:var(--ink)}.danger{color:var(--red)}
@media(min-width:650px){.phone{margin:24px auto;border-radius:26px;min-height:860px;overflow:hidden}.bottomnav,.quizbottom{bottom:24px;border-radius:0 0 26px 26px}.floating{bottom:118px}}@media(max-width:390px){.hero-progress{right:18px;top:55px;transform:scale(.86);transform-origin:right center}.hero h2{font-size:22px}.page{padding-left:16px;padding-right:16px}}

/* New functional controls: extensions to original B design tokens */
.adminbox{border:1px solid var(--line);background:#fff;border-radius:20px;padding:18px;margin-bottom:18px;box-shadow:var(--shadow)}
.adminbox label,.panel label{display:block;font-size:12px;color:#65748d;font-weight:750;margin:13px 0 5px}
.adminbox input,.adminbox textarea,.adminbox select,.panel select{width:100%;border:1px solid #dbe2ef;border-radius:12px;background:#fcfdff;color:#22334f;padding:12px;font-size:14px;min-height:44px;outline:none}
.adminbox textarea{resize:vertical;line-height:1.55}
.adminbox input:focus,.adminbox textarea:focus,.adminbox select:focus,.panel select:focus{border-color:var(--blue);box-shadow:0 0 0 3px #4167f51b}
.adminbox .btn{margin-top:13px}.manage-row{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);padding:13px 12px;border-radius:14px;margin-bottom:7px;min-width:0}
.manage-row b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.manage-row small{display:block;font-size:11px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.action-btn{border:1px solid #dce3f2;border-radius:9px;padding:7px 9px;font-size:11px;font-weight:800;flex:none;color:#4566da}.action-btn.danger{color:#d65060;border-color:#f5d6dc}
.radio-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.radio-row label{display:flex;align-items:center;gap:7px;background:#f6f8fd;padding:11px 12px;border-radius:12px;font-size:12px;font-weight:750;cursor:pointer}.radio-row input{accent-color:var(--blue)}
.qimage{display:block;max-width:100%;height:auto;border-radius:12px;margin:10px auto 18px;border:1px solid var(--line)}
.explain{white-space:normal;line-height:1.65;color:#293c58}.passcard{border:1px solid var(--line);border-radius:20px;background:#fff;padding:20px;margin-bottom:12px}.passcard.featured{border:2px solid #7457bd}.passcard .price{font-size:25px;font-weight:900;margin:12px 0}.passcard .price small{font-size:11px;font-weight:600;color:var(--muted)}.notice{font-size:12px;color:#63718b;background:#edf1f9;border-radius:13px;padding:13px 14px;line-height:1.6}.profile{display:flex;align-items:center;gap:12px}
.page>.btn.full{margin-top:5px}.page .panel .btn.full{margin-top:0}.quizbottom{touch-action:manipulation}.option:disabled{opacity:1;cursor:default}.paper p,.listrow small{overflow-wrap:anywhere}
@media(min-width:650px){.phone{overflow:visible}}

/* 2027 LEET scanned-source paper: preserve printed diagrams and full choice text */
.scan-source{font-size:12px;color:var(--muted);margin:7px 0 12px;line-height:1.6}
.scan-link{display:block;max-width:100%;margin:12px 0 17px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.scan-link img{width:100%;height:auto;display:block}
.scan-link small{display:block;padding:8px 10px;text-align:center;color:var(--blue);font-weight:800}
.scanchoices{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:10px 0}
.scanchoices .option{width:100%;margin:0;padding:10px 0;display:grid;place-items:center;min-height:51px;font-weight:800}
.scanchoices .option .number{border:0;background:none;font-size:17px;color:inherit;display:grid;place-items:center}
.scanchoices .option.selected .number{color:var(--blue)}
.scanchoices .option.correct .number{color:#078973}
.scanchoices .option.wrongpick .number{color:#c04752}
@media(max-width:370px){.question{padding:14px 11px}.scanchoices{gap:5px}}

/* 문항별 타이머 · 번호형 ○/× 정오표: B UI 컬러와 카드 스타일 유지 */
.clockbar{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:10px 11px;box-shadow:var(--shadow);margin:2px 0 8px}
.clock-info{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.clock-info.total{border-left:1px solid var(--line);padding-left:10px}
.clock-kicker{font-size:10px;font-weight:800;color:#7c8ba6;letter-spacing:-.02em;white-space:nowrap}
.clock-readout{font-size:19px;font-weight:900;letter-spacing:.02em;color:var(--blue);font-variant-numeric:tabular-nums;line-height:1.3}
.clock-toggle{border:1px solid #dfe5f6;border-radius:11px;background:#f3f6ff;color:#3c57b7;padding:10px 8px;font-size:11px;font-weight:800;white-space:nowrap}
.result-total-time{margin-top:14px;padding-top:12px;border-top:1px solid #ffffff45;font-size:13px;font-weight:750}
.result-overview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.result-number{border-radius:12px;min-height:55px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:1px solid transparent}
.result-number span{font-size:11px;font-weight:800;color:#66748a}
.result-number b{font-size:23px;font-weight:900;line-height:1}
.result-number.graded-ok,.overview button.graded-ok{background:#e5f8f2;color:#087d73;border-color:#b9e9d9}
.result-number.graded-no,.overview button.graded-no{background:#ffeded;color:#c74b57;border-color:#f4cbd0}
.overview button.graded-ok,.overview button.graded-no{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border:1px solid}
.overview button.graded-ok span,.overview button.graded-no span{font-size:11px}
.overview button.graded-ok b,.overview button.graded-no b{font-size:18px;line-height:1.1}
.result-item{scroll-margin-top:14px}
.result-time{display:block;font-size:11px;font-weight:800;color:#5068c2;margin-bottom:3px;text-align:right}
@media(max-width:370px){.clockbar{gap:5px;padding:10px 7px}.clock-readout{font-size:17px}.clock-toggle{font-size:10px;padding:9px 5px}.result-overview{gap:5px}}


/* ===========================================================
   EXAM BANK — Premium Answer Selection v1 (B UI Design System)
   Fancy only where it matters: 5-column answers and the palette.
   Existing JS state classes remain unchanged.
   =========================================================== */
:root{
  --choice-ink:#203252;
  --choice-edge:#e0e6f2;
  --choice-glow:0 5px 13px rgba(44,66,115,.055);
}
/* Common answers: balanced typography, comfortable touch area */
.question .option{
  position:relative;
  display:flex;
  align-items:center;
  min-height:62px;
  gap:12px;
  margin:10px 0;
  padding:12px 14px;
  border:1px solid var(--choice-edge);
  border-radius:16px;
  background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);
  box-shadow:var(--choice-glow);
  color:var(--choice-ink);
  transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .12s ease;
  touch-action:manipulation;
}
.question .option .number{
  width:34px;height:34px;flex:0 0 34px;
  display:grid;place-items:center;
  border-radius:11px;
  background:#f3f5fb;
  border:1px solid #e2e8f4;
  color:#42536f;
  font-size:14px;font-weight:850;line-height:1;
  font-variant-numeric:tabular-nums;
}
.question .option .choice-copy{min-width:0;flex:1;font-size:13.5px;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
.question .option .choice-status{
  flex:none;display:grid;place-items:center;
  width:19px;height:19px;border-radius:50%;
  background:#dbe4ff;color:#3c61e9;font-size:12px;font-weight:900;
}
.question .option:focus-visible{outline:3px solid #9dafef;outline-offset:3px}
@media(hover:hover){.question .option:not(:disabled):hover{border-color:#b9c9f3;background:#f8faff;box-shadow:0 7px 18px rgba(44,66,115,.095)}}
.question .option:active:not(:disabled){transform:scale(.985)}
.question .option.selected:not(.correct):not(.wrongpick){
  background:linear-gradient(165deg,#f5f7ff 0%,#edf2ff 100%);
  border-color:#6280f3;
  box-shadow:0 0 0 1px rgba(71,104,242,.18),0 7px 19px rgba(60,86,201,.12);
}
.question .option.selected:not(.correct):not(.wrongpick) .number{
  background:linear-gradient(145deg,#5374fd,#3e5fe2);
  border-color:transparent;color:#fff;
  box-shadow:0 3px 9px rgba(59,95,225,.23);
}
.question .option.correct{
  background:linear-gradient(160deg,#f4fffc,#e6f9f1);
  border-color:#32b79b;
  box-shadow:0 0 0 1px rgba(18,164,143,.12),0 6px 15px rgba(17,137,118,.07);
}
.question .option.correct .number,.question .option.correct .choice-status{
  background:#0d9f86;color:white;border-color:#0d9f86;
}
.question .option.wrongpick{
  background:linear-gradient(155deg,#fff8f9,#ffecee);
  border-color:#eb8690;
  box-shadow:0 0 0 1px rgba(205,86,103,.10),0 6px 15px rgba(178,62,82,.07);
}
.question .option.wrongpick .number,.question .option.wrongpick .choice-status{
  background:#df596b;color:white;border-color:#df596b;
}
/* Scanned paper: select one of five compact, native-looking answer tiles */
.question .scanchoices{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;margin:16px 0 3px;
}
.question .scanchoices .option{
  position:relative;
  min-width:0;min-height:86px;
  margin:0;padding:11px 3px 9px;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  gap:7px;border-radius:16px;
  text-align:center;
}
.question .scanchoices .option .number{
  width:35px;height:35px;flex:0 0 35px;
  border-radius:12px;
  font-size:17px;
  border:1px solid #e4e9f4;
  background:#f4f6fc;color:#344769;
  box-shadow:inset 0 1px 0 #fff9;
}
.question .scanchoices .option .choice-caption{
  font-size:10px;font-weight:700;color:#8a96ad;
  line-height:1.1;letter-spacing:-.02em;white-space:nowrap;
}
.question .scanchoices .option .choice-status{
  position:absolute;right:5px;top:5px;
  width:14px;height:14px;font-size:10px;
  box-shadow:0 1px 3px #2b44841c;
}
.question .scanchoices .option.selected:not(.correct):not(.wrongpick) .number{
  background:linear-gradient(145deg,#5c7aff,#3b5bdf);
  color:#fff;border-color:transparent;
  box-shadow:0 3px 9px #4167f53d;
}
.question .scanchoices .option.selected:not(.correct):not(.wrongpick) .choice-caption{color:#405fdf}
.question .scanchoices .option.correct .number{background:#0d9f86;color:#fff;border-color:#0d9f86}
.question .scanchoices .option.correct .choice-caption{color:#078973}
.question .scanchoices .option.wrongpick .number{background:#df596b;color:#fff;border-color:#df596b}
.question .scanchoices .option.wrongpick .choice-caption{color:#c04752}
@media(max-width:370px){
 .question .scanchoices{gap:5px}
 .question .scanchoices .option{min-height:79px;padding:9px 2px 8px;border-radius:13px}
 .question .scanchoices .option .number{width:31px;height:31px;flex-basis:31px;font-size:15px;border-radius:10px}
 .question .scanchoices .option .choice-caption{font-size:9px}
}
/* Question picker: coordinated tiles, crisp blue active border */
.overview{gap:9px}
.overview button{
  position:relative;min-width:0;min-height:52px;
  border:1px solid #e0e6f2;border-radius:13px;
  background:#fff;box-shadow:0 4px 12px rgba(26,48,97,.045);
  color:#55637e;font-weight:850;
}
.overview button.answered:not(.graded-ok):not(.graded-no){
  background:#edf2ff;color:#4766e9;border-color:#c7d3ff;
}
.overview button.current{
  outline:0;border:2px solid #4567ef;
  box-shadow:0 0 0 3px rgba(69,103,239,.13),0 4px 12px rgba(26,48,97,.05);
}
.overview button.graded-ok{border-color:#a3ddcb;background:#e9f8f2;color:#087d73}
.overview button.graded-no{border-color:#f3bec6;background:#fff0f1;color:#c74b57}
.result-overview{gap:8px}
.result-number{border-radius:14px;box-shadow:0 3px 10px rgba(26,48,97,.04)}
.result-number:focus-visible,.overview button:focus-visible{outline:3px solid #a1b3f8;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.question .option{transition:none}}


/* 2026-11-13 · EXAM BANK brand & typography refresh
   Keep the existing B UI and all quiz functions unchanged. */
.logo{
  width:40px;
  height:40px;
  flex:0 0 40px;
  border-radius:12px;
  background:#162f97;
  overflow:hidden;
  box-shadow:0 5px 13px rgba(32,54,138,.21);
  font-size:initial;
}
.logo img{
  width:100%;height:100%;display:block;object-fit:cover;
}
.back.back-exams{
  font-size:17px;
  line-height:1.35;
  font-weight:850;
  color:#33496f;
  padding:10px 12px 10px 0;
  letter-spacing:-.035em;
}
.back.back-exams:focus-visible{outline:2px solid #4765ee;outline-offset:4px;border-radius:6px}

/* 2026-11-14 · 9 requested UX refinements (B UI preserved) */
/* Compact scanned-paper answer tiles: number only, no redundant ‘보기’ copy. */
.question .scanchoices .option{min-height:62px;padding:10px 3px;gap:0}
.question .scanchoices .option .choice-caption{display:none!important}
.question .scanchoices .option .number{width:38px;height:38px;flex-basis:38px;font-size:18px}
.question .scanchoices .option .choice-status{right:4px;top:4px}
.scan-source{display:none}
/* Image stays within app; full screen dialog offers obvious return buttons. */
button.scan-link{display:block;width:100%;padding:0;text-align:inherit;cursor:zoom-in;color:inherit;font:inherit}
button.scan-link small{font-size:12px;text-decoration:none}
.exam-image-dialog{position:fixed;inset:0;width:100%;max-width:100%;height:100%;max-height:100dvh;margin:0;padding:0;border:0;background:#eef1fa;color:var(--ink);overscroll-behavior:contain}
.exam-image-dialog::backdrop{background:#172745b8}
.image-dialog-head{height:58px;background:#fff;border-bottom:1px solid #dfe5f1;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px max(16px,env(safe-area-inset-right));position:sticky;top:0;z-index:2}
.image-dialog-head strong{font-size:15px}.image-dialog-head button{font-size:15px;font-weight:900;color:var(--blue);padding:9px 13px;border:1px solid #dce2f4;background:#f2f5ff;border-radius:12px}
.image-scroll{height:calc(100dvh - 138px - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;text-align:center;padding:12px}
.image-scroll img{width:100%;max-width:none;height:auto;display:block;margin:0 auto;object-fit:contain;background:white;box-shadow:0 8px 25px #18244717}
.image-dialog-tools{min-height:80px;padding:10px max(12px,env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));display:flex;gap:6px;align-items:center;justify-content:center;background:#fff;border-top:1px solid #dfe5f1;position:sticky;bottom:0;z-index:2}
.image-dialog-tools button{flex:1;border-radius:12px;min-height:43px;background:#eef2ff;border:1px solid #d7dff9;color:#2446a7;font-size:12px;font-weight:850}
.image-dialog-tools #zoomReturn{flex:1.5;background:#4167f5;border-color:#4167f5;color:white}
.result-hint{color:var(--muted);font-size:12px;margin:-2px 0 12px}
.result-expand-hint{color:#4968cc;font-weight:800}
.option-explain{margin-top:14px;padding-top:10px;border-top:1px solid #d8deed}
.option-explain>b{display:block;margin-bottom:8px;font-size:13px}
.option-explain-row{display:flex;align-items:flex-start;gap:9px;margin-top:9px;line-height:1.65}
.option-explain-num{flex:none;display:grid;place-items:center;border-radius:9px;background:#e8ecf7;width:25px;height:25px;font-weight:850;color:#66748c}
.option-explain-num.good{color:#0a856f;background:#e1f7f1}
.goal-panel label{display:block;font-size:12px;font-weight:800;color:#52637d;margin-bottom:9px}
.goal-controls{display:flex;gap:10px;align-items:stretch;margin-bottom:12px}
.goal-controls input{width:100%;min-width:0;flex:1;border:1px solid #dbe2f0;background:#f8faff;padding:11px 13px;border-radius:12px;font-size:16px;font-weight:800;color:#22375b}
.goal-controls .btn{flex:none;padding:11px 18px}
.goal-panel p+p{margin-top:7px;color:#94a0b3}
.hero{min-height:190px}.hero h2{margin-bottom:13px}
.hero-progress{display:none!important}
@media(max-width:370px){.question .scanchoices .option{min-height:59px}.question .scanchoices .option .number{width:34px;height:34px;flex-basis:34px}}


.wrong-entry-headline{margin-bottom:6px}
.wrong-entry-number{font-size:20px;line-height:1.35;font-weight:850;letter-spacing:-.04em;color:var(--ink)}
.wrong-entry-title{margin:10px 0 12px;white-space:pre-line;font-size:16px;line-height:1.65;letter-spacing:-.03em;font-weight:800;color:var(--ink)}
@media(max-width:370px){.wrong-entry-number{font-size:18px}.wrong-entry-title{font-size:15px}}

/* 2026-11-14 · Wrong-answer review: no percentage grade, persistent completion. */
.review-scorecard{padding-top:21px;padding-bottom:23px}
.review-scoreline{font-weight:750;font-size:clamp(22px,5vw,29px);line-height:1.45;letter-spacing:-.04em;margin:18px 0 16px}
.review-scoreline strong{font-size:clamp(28px,7vw,40px);font-weight:950;letter-spacing:-.045em;color:#fff}
.wrong-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center}
.wrong-summary>div+div{border-left:1px solid var(--line);padding-left:15px}
.wrong-summary strong{display:block;margin-top:8px;font-size:28px;font-weight:900;color:var(--ink);line-height:1.2}
.wrong-summary strong small{font-size:12px;font-weight:600;color:var(--muted)}
.wrong-status{display:inline-flex;align-items:center;padding:6px 10px;border-radius:99px;font-size:11px;font-weight:850;color:#9b6335;background:#fff6e9;white-space:nowrap}
.wrong-status.is-done{background:#e4f7f0;color:#087b65}
.wrong-entry.review-done{border-color:#c6e9de}
.wrong-actions{margin-top:14px;padding-top:11px;border-top:1px solid var(--line);display:flex;justify-content:flex-end}
.wrong-remove{border:1px solid #ebd5d9;border-radius:11px;padding:9px 12px;background:#fffafa;color:#bf5260;font-size:11px;font-weight:800}
.wrong-remove:focus-visible,.wrong-retry-all:focus-visible{outline:3px solid #a1b3f8;outline-offset:3px}
.wrong-retry-all{margin:13px auto 4px;display:block;text-align:center;font-size:12px}

/* 응시 기록 선택 삭제 — B UI 톤 유지 */
.result-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px}
.history-delete-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:11px;padding:10px 13px;border:1px solid #f1cbd2;background:#fff5f6;color:#bd4959;font-size:12px;font-weight:850;min-height:40px}
.history-delete-btn:active{background:#ffe5e9}
.history-delete-note{color:#79859b;font-size:11px;line-height:1.6;margin:4px 0 12px}
@media(max-width:360px){.result-topbar{gap:6px}.history-delete-btn{padding:9px 10px;font-size:11px}.history-delete-note{font-size:10px}}

/* 결과 화면 — 시험지 제목 · 응시일 */
.result-paper{margin:9px 0 0}
.result-paper-title{display:block;font-size:16px;font-weight:850;line-height:1.45;letter-spacing:-.045em;color:var(--ink);word-break:keep-all;overflow-wrap:anywhere}
.result-paper-meta{display:inline-block;margin-top:4px;font-size:12px;font-weight:650;color:var(--muted)}

/* 2026-11-16 · 문제 풀이 화면: 스캔 지문 이미지를 화면 폭에 최대한 크게
   - 좌우 여백을 줄여 .scan-link/img가 가로 폭을 끝까지 사용(가로 넘침 0)
   - 짧은 지문일 때 위아래 여백(상단 타이머·카드 안쪽·라벨)을 컴팩트하게
   - 긴 지문/표/그래프는 폭 100%로 확대만 되고, 전체화면 모달·선택지 동작은 그대로 */
.page.padded{padding-left:max(4px,env(safe-area-inset-left));padding-right:max(4px,env(safe-area-inset-right))}
.page.padded>.quizhead,.page.padded>.clockbar{margin-left:12px;margin-right:12px}
.page.padded>.quizhead{margin-bottom:10px}
.page.padded>.progress{margin:9px 12px 11px}
.page.padded>.question{padding:16px 14px}
.page.padded>.question.question-scan{padding:9px 0 10px;border-radius:16px}
.question-scan>.row.between{padding:0 12px}
.question-scan .scan-link{margin:6px 0;border-left:0;border-right:0;border-radius:0}
.question-scan .scan-link small{padding:2px 8px 1px;font-size:12px;line-height:1.5}
.question-scan .scanchoices{margin:7px 12px 1px}
.question-scan .explain{margin-left:12px;margin-right:12px}
